Ver Mensaje Individual
  #8 (permalink)  
Antiguo 10/03/2009, 10:34
ingluis
 
Fecha de Ingreso: enero-2009
Mensajes: 197
Antigüedad: 15 años, 4 meses
Puntos: 0
Información Respuesta: Consulta de paginacion

Ok, ya me apare el abcedario: pero cuando doy clic en una letra no me muestra nada, queda en blanco la pagina, revisa el codigopor fa, te lo agradezco... disculpame... por tanta molestia


case "Listar":
{
echo"<center>";
echo"<center><img src='image002.gif' width='131' height='47' /></center>";
echo"<strong>MASA - Mecánicos Asociados S.A.</strong>";
echo"<br>";
echo"<strong>891102723-8</strong>";
echo"<br><br>";
echo"<strong>1-Activo</strong>";
echo"<br>";
echo"<strong>0-No Activo</strong>";
echo"<br>";
echo"==||> para buscar oprima ctrl+f <||==";
echo "<form action='acta.php' method='get' name='form1' target='_self'>";

function generaAbecedario(){
$nombre=$_GET['nombre'];
//ordena el alfabeto espaol
setlocale(LC_ALL, "sp");
$arreglo=array("A","B","C","D","E","F","G","H","I" ,"J","K","L","M","N","","O","P","Q","R","S","T","U ","V","W","X","Y","Z");
//Ordenar letras
sort($arreglo);
//Genera letras dentro de una tabla
echo "<table border='0' cellpadding='2' cellspacing='1' class='fuenteabc'><tr>";
for($x=0;$x<count($arreglo);$x++)
echo "<td><a href='guardar.php?nombre=".strtolower($arreglo[$x])."&nombre=".$nombre."' class='enlaceabc'>".$arreglo[$x]."</a></td>";
echo "</tr></table>";
}
$letra=$_GET['nombre'];
$_pagi_sql="SELECT * FROM contratos where nombre LIKE '".$letra."%' order by nombre";

generaAbecedario();


echo "<table border = 2>";
echo "<tr><td><strong><center>Ver Acta</center></strong></td><td><center><strong>Cedula</center></strong></td><td><center><strong>Nombre</center></strong></td><td><center><strong>Cargo</center></strong></td><td><center><strong>Contrato</center></strong></td><td><center><strong>Email</center></strong></td><td><center><strong>Activo</center></strong></td>";
$sql="select * from contratos order by nombre";
$registros = mysql_query($sql);
$c=1;
$cantreg=mysql_num_rows($registros);
while($row2=mysql_fetch_array($registros))
{
$amod=$row2["cedula"];
//$amod=$row2["nombre"];
//<a href='mostrar_acta.php?cedula_acta=".$row["cedula"]."'title='Actar'><img src='../imagen/acta.png' border='0' alt='Acta'/></a>
echo "<tr><td><center><a href='acta.php?cedula=".$row2['cedula']."' title='Acta'><img src='Clipboard.JPG' with='25' height='29' border='0' alt='Acta'/></center></a>";
//echo "<tr><td><input type='submit' name='boton[".$row2["cedula"]."]' value='Acta'></td>";
echo "<td>"; echo $row2["cedula"];
echo "</td>";
echo "<td>"; echo $row2["nombre"];
echo "</td>";
echo "<td>"; echo $row2["cargo"];
echo "</td>";
echo "<td>"; echo $row2["contrato"];
echo "</td>";
echo "<td>"; echo $row2["email"];
echo "</td>";
echo "<td>"; echo $row2["visible"];
echo "</td></tr>";
$c++;
}
//echo "</table><br>
echo"</form>";
$sqlcon="select count(*) as email from contratos";
$sqlcont = mysql_query($sqlcon);
echo "<tr><td colspan=7 align='center'><B>TOTAL CUENTAS DE CORREO :::..".mysql_result($sqlcont,"email")."..:::</B></font></td></tr>";
echo "</table>";
echo"<form name='form1' method='post' action='contratos.php'>";
echo"<input type='submit' name='Submit' value='&lt;&lt; Volver'>";
echo"</form>";
echo"</center>";



break;
}