Sh3ll



Directory :  /home/zjabogados/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Current File : /home/zjabogados/public_html/menu.php
<?php 
session_start();
$motorBD = $_SESSION['motorBD'];
$idusuario = $_SESSION['idusuario'];
$nombreBD = $_SESSION['nombreBD'];

if (isset($_GET['acc'])) {
	$acc = $_GET['acc'];
	}
else {
	if ($idusuario == 1) {
		$acc = '';
		}
	else {
		$acc = 't';
		}
	}


require_once("../Connections/$motorBD.php"); 
require_once("Libs/classdata$motorBD.php");
require_once("Libs/functionsquerys.php"); 
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Documento sin t&iacute;tulo</title>
<script src="Libs/jquery/jquery.js" language="JavaScript" type="text/JavaScript"></script>

<script language="JavaScript" type="text/JavaScript">
function EnviarForm(tb, urldestino, permiso, opcion) {
	var inde = document.getElementById('inde');
	if (inde.checked) {
		document.form1.target = '_blank';
		}
	document.form1.tb.value = tb;	
	document.form1.action = urldestino;	
	document.form1.form_idpermiso.value = permiso
	document.form1.form_idopcion.value = opcion
	document.form1.submit();
	}


</script>

<link href="css/contenido.css" rel="stylesheet" type="text/css">

</head>
<body>
<p>
  <?php if ($acc <> '') { ?>
    
</p>
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><input name="inde" type="checkbox" id="inde" value="S" ></td>
    <td>ABRIR EN VENTANA INDEPENDIENTE</td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">COD BARRA:
      <input type="text" name="codebar" id="codebar" onKeyUp="contar()">

    <script language="javascript">
	function contar() {
	var x = document.getElementById("codebar").value;
	if(x.length == 14) {
		contar2();
		}
	}

	function contar2() {
		document.form1.action='otrosscripts/procesar_codebar.php';
		document.form1.tb.value=document.getElementById("codebar").value;		
		document.form1.submit();
	}





	</script>

    </td>
  </tr>
</table>
<table width="190" border="0" cellpadding="0" cellspacing="1">
  <tr>
    <td width="13" height="16"><img src="img/menu_encabezado_izq.jpg" width="13" height="16"></td>
    <td width="166" background="img/menu_encabezado_medio.jpg">&nbsp;</td>
    <td width="13" height="16"><img src="img/menu_encabezado_der.jpg" width="13" height="16"></td>
</tr>
<?php

$MGMData_Opciones = RSUserOptions($idusuario, $motorBD, $nombreBD, $acc);

$modulo = '';

$indice_cant_opciones = 0; 
while ($indice_cant_opciones < $MGMData_Opciones->cant_rows) { 			

	$MGMData_Opciones->Next();
	
	if ($modulo <> $MGMData_Opciones->row[0]) {
		$modulo = $MGMData_Opciones->row[0];
		?>
	  <tr>
		<td width="13" background="img/menu_modulo_fondo_izq.jpg">&nbsp;</td>
	    <td width="166" height="18" class="ColorEncabezadoGenerica"><?php echo $MGMData_Opciones->row[0] ?></td>
	    <td width="13" background="img/menu_modulo_fondo_der.jpg">&nbsp;</td>
	  </tr>
  
	  	<?php
		}
	if ($MGMData_Opciones->row[4] == 'SI') {
		?>
	  <tr>
		<td width="13" background="img/menu_tit_fondo_izq.jpg">&nbsp;</td>
	    <td width="166" height="18" class="OpcionesGenerica" style="cursor:pointer" OnClick="EnviarForm('<?php echo $MGMData_Opciones->row[2]; ?>', 'genericas/lista_generica.php', <?php echo $MGMData_Opciones->row[5]; ?>, <?php echo $MGMData_Opciones->row[8]; ?>)"><?php echo $MGMData_Opciones->row[1]; ?></td>
	    <td width="13" background="img/menu_tit_fondo_der.jpg">&nbsp;</td>
	  </tr>
  
	  	<?php
		}
	else {
		?>
	  <tr>
		<td width="13" background="img/menu_tit_fondo_izq.jpg">&nbsp;</td>
	    <td width="166" height="18" class="OpcionesGenerica" style="cursor:pointer" OnClick="EnviarForm('<?php echo $MGMData_Opciones->row[2]; ?>', '<?php echo $MGMData_Opciones->row[3]; ?>', <?php echo $MGMData_Opciones->row[5]; ?>, <?php echo $MGMData_Opciones->row[8]; ?>)"><?php echo $MGMData_Opciones->row[1]; ?></td>
	    <td width="13" background="img/menu_tit_fondo_der.jpg">&nbsp;</td>
	  </tr>	  
  
	  	<?php
		}	
	$indice_cant_opciones++;
	}
	
$MGMData_Opciones->Close();
	?>
	<tr>
	    <td width="13"><img src="img/menu_pie_izq.jpg" width="13" height="16"></td>
        <td width="166" background="img/menu_pie_med.jpg">&nbsp;</td>
        <td width="13"><img src="img/menu_pie_der.jpg" width="13" height="16"></td>
  </tr>
</table>

<form name="form1" method="post" action="" target="rightFrame">
  <input name="tb" type="hidden" id="tb">
  <input name="form_idpermiso" type="hidden" id="form_idpermiso">
  <input name="form_idopcion" type="hidden" id="form_idopcion">
</form>
<br>
<?php } ?>
</body>
</html>

Sh3LL