KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/logicswapweb/aplicaciones/admon/carrito/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/logicswapweb/aplicaciones/admon/carrito/index.php
<?php
error_reporting(E_ERROR);
include('./../fnc/DBConnect.php');
include('./../fnc/componente.php');
include('./../fnc/parametro.php');
include('./../fnc/vinculo.php');
include('./../fnc/UsuarioPanel.php');
include('./../fnc/bitacora.php');
include('./../fnc/aplicacion.php');
include('./../fnc/panel.php');
include('./../fnc/utileria.php');
include('./../usuariosWeb/fnc/usuarioWeb.php');
include('fnc/pedido.php');

session_start('PanelAzulDigial');
if(!session_is_registered("panel")){
	echo "<div style=\"	font-family: Verdana, Arial, Helvetica, sans-serif;	color: #0066CC;	font-size: 16px;font-weight: bolder;\">Invalid User</div>";
}else{
$ini_line = (array_key_exists('ini_line', $_REQUEST)) ? $_REQUEST['ini_line']: 1;
$seleccion = (array_key_exists('seleccion', $_REQUEST)) ? $_REQUEST['seleccion']: "1|General (todos)";
$buscar = (array_key_exists('buscar', $_REQUEST)) ? $_REQUEST['buscar']: NULL;
$estado = (array_key_exists('estado', $_REQUEST)) ? $_REQUEST['estado']: "todos";

$panel->reactivarDB();
$panel->setFilesPanel(2);

$tipo_u=$panel->usuario->tipo;
$user_u=$panel->usuario->id;
$estado_u=$panel->usuario->estado;

$vec = explode("|",$seleccion);
$tm=$vec[0];
$inicio = $panel->inicioPagina($ini_line);
$pbloq="";
$pacti="";

if($estado_u=="bloqueado"){
	$pbloq ="style=\"display:none\"";
}
if($estado_u=="activo"){
	$pacti ="";
}

$userModificar = "jajaajajaa";
$userEliminar = "";
$userAdicionar = "";
$userAdministrar="";

if($panel->usuario->tipo==3 && $panel->usuario->vinculo->modificar=="NO" && $panel->usuario->vinculo->administrador=="NO"){
	$userModificar = "disabled";
}
if($panel->usuario->tipo==3 && $panel->usuario->vinculo->eliminar=="NO" && $panel->usuario->vinculo->administrador=="NO"){
	$userEliminar= "disabled";
}
if($panel->usuario->tipo==3 && $panel->usuario->vinculo->adicionar=="NO" && $panel->usuario->vinculo->administrador=="NO"){
	$userAdicionar= "disabled";
}
if($panel->usuario->tipo==3 && $panel->usuario->vinculo->administrador=="NO"){
	$userAdministrar= "disabled";
}


?>
<html>
<head>
<link href="css/panel2.css" rel="stylesheet" type="text/css">
<link href="css/panel2Contenido.css" rel="stylesheet" type="text/css">
<link href="css/scrollbar.css" rel="stylesheet" type="text/css">
<link href="css/scrollbar2.css" rel="stylesheet" type="text/css">
<script> 
if (history.forward(1)){location.replace(history.forward(1))} 
</script> 
<script src="js/validaciones.js"></script>
<script>
/*
*funcion que valida el contenido de un formulario
*/
function fncCheckFormSearch(form) {
	var fields = new Array(); /* Arreglo de campos obligatorios del formulario */
	var params = fncCheckFormSearch.arguments; /* Arreglo de parametros de la funcion */
	
	for (var i=1; i<params.length; i++) {
		fields[i-1] = form.elements[params[i]];
	}
	
	for (var i=0; i<fields.length; i++) {
		if (fields[i].name=="buscar") {
			if ( !lengSpaceNess(fields[i].value) || specialChar(fields[i].value,true,true,true)) {
				alert("El campo '"+(fields[i].name).toUpperCase()+"' no debe de empezar o terminar con espacios en blanco, o contener caracteres diferentes a los imprimibles directamente por el teclado!");
				fields[i].focus();
				return false;
			}
		}
	}
	
	return true;
} 

function mOvr(src,clrOver) 
{
	var elmts = document.getElementsByTagName("tr");
	elmts[src.id].style.cursor = 'hand';
	elmts[src.id].bgColor = clrOver;

}
function mOut(src,clrIn) 
{
	var elmts = document.getElementsByTagName("tr");
	elmts[src.id].style.cursor = 'default';
	elmts[src.id].bgColor = clrIn;
}
function mgOver(obj){
	var elm = document.getElementsByTagName("a");
	elm[obj.id].setAttribute("class","migasover");
}
function mgOut(obj)
{
	var elm = document.getElementsByTagName("a");
	elm[obj.id].setAttribute("class","migas");
}
function getRadioValue_() {
	var value = null;
	var sel_ = document.frmPedido.sel;
	with (document.frmPedido) {
		if (sel_ == null) {
			return null;
		}
		var longitud = document.frmPedido.length;
		if (longitud) {
			for (var i=0; i<longitud; i++) { 
				if (document.frmPedido.elements[i].checked) { 
					value = document.frmPedido.elements[i].value;
					break;
				} 
			}
		} else {
			if (sel_.checked) { 
				value = sel_.value;
			} 
		}
	}
	return value;
}

function fncAccion(est,ind) 
{
	var sel = getRadioValue_();

	//var sel = concatChecked(document.frmPedido,'pedido_');
	//var cn =numChecked(document.frmUsuario,'pedido_');
	var cn = "";
	if(!ind)
	{
		if(est=="eliminar")
		{
			if(sel)
			{
				if(confirm("Do you want to delete the order?"))
				{
					_fraUsr.location.href = 'fnc/main.php?tarea=delPedido&id_pedido='+sel;
				}else
				{ 
					return false;
				}
			}else
			{
				alert('You must select at least one order!');
				return;
			}
		}
		if(est=="visualizar")
		{			
			if(sel)
			{
					document.location.href = 'info_pedido.php?pedido='+sel;
			}else
			{
				alert('You must select at least one order!');
				return;
			}
			
		}
		
	}else
	{
		if(est=="visualizar")
		{
			document.location.href = 'info_pedido.php?pedido='+ind;
		}
		
	}
}

function reLoad(obj){
	var ind = obj.selectedIndex;
	var est = obj.options[ind].value;
	document.location.href= 'index.php?seleccion=<?=$seleccion?>&estado='+est;
}

</script>
<script src="js/SortTable.js"></script>
<script src="js/validaciones.js"></script>
</head>
<body>
<table width="610" border="0" cellspacing="2" cellpadding="2" align="left">
   	<tr bgcolor="#cccccc">
   	    <td colspan="4" align="left"><div align="left" class="migas">
		<a id="migainicio" href="../contenido.php" class="migas" style="cursor:hand" title="Indice de Aplicaciones" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);">start</a> / <a id="migaindex" href="menu.php" class="migas" onMouseOver="javascript: mgOver(this);" onMouseOut="javascript: mgOut(this);"><?=$panel->aplicativo->nombre?></a> / <span class="migasactivo">Order(s) (<? if ($estado=='todos'){ echo 'Alls';} if($estado=='preactivo'){ echo 'Preactive';} if($estado=='activo'){ echo 'Active';}  if($estado=='cancelado'){ echo 'cancel';} if($estado=='despachado'){ echo 'dispatched';}      if($estado != 'todos')echo 's'; ?>)</span>
        </div></td>
    </tr>
    <tr>
      <td colspan="4"><img src="img/menu.gif" width="49" height="23" align="top">        
	  	<input name="tem" type="button" class="boton1" onClick="javascript: document.location.href= 'index.php'" value="Order(s)">
        <input name="tem22" type="button" class="boton1" onClick="javascript: document.location.href= 'info_historial.php?hist=1'" value="History">
        <input name="tem222" type="button" class="boton1" onClick="javascript: document.location.href= 'valores_config/index.php'" value="Parameters" <?=$userAdministrar?>></td>
    </tr>
    <tr>
        <td colspan="3" class="texto1">
		<form name="listar" method="get" onSubmit="<?=$PHP_SELF?>">
        <div align="left">State
<select name="estado" class="listado" onChange="javascript: reLoad(this);" style="width:80px ">
			<option value="todos" <? if ($estado=="todos"){echo "selected";}?>>All</option>
			<option value="preactivo" <? if ($estado=="preactivo"){echo "selected";}?>>Preactive</option>
			<option value="activo" <? if ($estado=="activo"){echo "selected";}?>>Active</option>
			<option value="despachado" <? if ($estado=="despachado"){echo "selected";}?>>Shipped</option>
			<option value="cancelado" <? if ($estado=="cancelado"){echo "selected";}?>>Cancelled</option>

		  </select> 
          </div>
        </form>
        </td>
        <td width="222" align="right"><form name="buscar" method="post" action="<?=$PHP_SELF?>" onSubmit="return fncCheckFormSearch(this)">
          <div align="right">
            <input type="hidden" name="seleccion" value="<?=$seleccion?>">
            <input name="buscar" type="text" class="listado" style="width:100px " value="<?=$buscar?>">
            
          <input name="bbuscar" type="submit" class="boton1" value="Find">
          </div>
        </form></td>
    </tr>
    <tr>
      <td colspan="4" align="left">
		<form name="frmPedido" action="<?=$PHP_SELF?>" method="post" id="frmUsuario">	  
	  	<table width="100%">
			<tr bgcolor="#000099" class="titular1">
			  
            <td colspan="2" align="left" bgcolor="#000099"><a onClick="javascript: document.location.href= 'menu.php'" title="Volver" style="cursor:hand; width:40"><img src="img/atras.gif" style="cursor:hand "></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Client<a class="titular1" href="javascript:SortRows(t,1)" title="Ordenar por Nombre"></a></td>
			 <td width="12%" align="center"><div align="center"> Order No.</div></td>
			 <td width="26%" align="center"><div align="center">Order Date</div></td>
			 <td width="18%" align="center"><div align="center">Total</div></td>
			  <td width="12%" align="center"><div align="center">Selection</div></td>
		  </tr>
			<input type='radio'  name='sel'  value='-1' style='visibility: hidden'>
			<? 
				$panel->aplicativo->listarPedidos($inicio,$panel->limite,"texto1",$estado,$buscar,$panel->aplicativo->nombre);
				$total=$panel->aplicativo->cantidadPedidos($estado,$buscar,$inicio,$panel->limite,$panel->aplicativo->nombre);
				$num_paginas = $panel->paginas($total);
			?>
			<tr class="filatitulo" bgcolor="#000099">
				
            <td colspan="5"  class="titular1" align="center"> Total Orders: 
              <?=$total?>
            </td>
            <td></td>
			</tr>
		</table>
		</form>
	  </td>
    </tr>
    <tr>
      <td width="127" valign="top" class="textos">
	  <div align="left">
      </div></td>
      <td width="127" valign="top" class="textos">&nbsp;</td>
      <td colspan="2" valign="top" class="textos"><div align="right">
        <input name="button232" type="button" class="boton1" onClick="fncAccion('visualizar',false)" value="Change" <?=$pbloq?> <?=$userModificar?> style="width:60px ">
        <input name="button22" type="button" class="boton1" onClick="fncAccion('eliminar',false)" value="Delete" <?=$userEliminar?> style="width:60px ">
      </div></td>
    </tr>
    <tr>
      <td colspan="4" valign="top" class="textos"><form name="form2">
        <div align="center"> <img title="Inicio" src="img/inicio1.gif" <? if($ini_line>1){?>onClick="document.location.href = 'index.php?ini_line=1&estado=<?=$estado?>&seleccion=<?=$seleccion?>&buscar=<?=$buscar?>'" <? }?>> 
          &nbsp; <img title="Atras" src="img/atras1.gif" <? if($ini_line>1){?>onClick="document.location.href = 'index.php?ini_line=<? echo $ini_line - 1;?>&estado=<?=$estado?>&seleccion=<?=$seleccion?>&buscar=<?=$buscar?>'"<? }?>> 
          &nbsp;<span class="usuario">Page 
          <? if($num_paginas == 0) echo "0";else echo $ini_line;?>
          of <? echo $num_paginas;?></span>&nbsp; <img title="Siguiente" src="img/adelante1.gif" <? if($ini_line<$num_paginas && $num_paginas>0){?>onClick="document.location.href = 'index.php?ini_line=<? echo $ini_line + 1;?>&estado=<?=$estado?>&seleccion=<?=$seleccion?>&buscar=<?=$buscar?>'" <? }?>> 
          &nbsp; <img title="Ultimo" src="img/ultimo1.gif" <? if($ini_line<$num_paginas && $num_paginas>0){?>onClick="document.location.href = 'index.php?ini_line=<? echo $num_paginas;?>&estado=<?=$estado?>&seleccion=<?=$seleccion?>&buscar=<?=$buscar?>'" <? }?>>        </div>
      </form></td>
    </tr>
    <tr>
        <td colspan="4" align="center" class="texto1">
      <div align="left"><img src="img/pedidos/preactivo.gif"> Preactive order, 
        <img src="img/pedidos/activo.gif"> Active order, <img src="img/pedidos/despachado.gif"> 
        Shipped Order, <img src="img/pedidos/cancelado.gif"> Cancelled order</div></td><iframe src="" name="_fraUsr" id="_fraUsr" height="0" width="0" frameborder="0"></iframe>
    </tr>
</table>
</body>
</html>
<? }?>

Anon7 - 2021