Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/06/2005, 14:01
Avatar de richardinj
richardinj
 
Fecha de Ingreso: enero-2005
Ubicación: Ciber Espacio
Mensajes: 2.180
Antigüedad: 19 años, 3 meses
Puntos: 11
!

este quisas sirbaaaaaaaa

Cita:
<table width="66%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="362" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="362" bgcolor="#0000FF">&nbsp;</td>
</tr>
<tr>
<td valign="top"><table style="border-width:0px "width="429" border="1" cellpadding="0" cellspacing="0" bordercolor="#9966FF">
<tr>
<td width="413"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><table width="352" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="352"><?php
$limite=20;
if (isset($HTTP_GET_VARS['inicio']))
{ //si esta
$inicio=$HTTP_GET_VARS['inicio'];
$fin=$HTTP_GET_VARS['fin'];
$inicio=$inicio-1;
$sql="SELECT * FROM participantes where ((estadoinscrip=2) or (estadoinscrip=3)) ORDER BY fechainscrip Desc LIMIT $inicio , $limite";
}
else{ $sql="SELECT * FROM participantes where ((estadoinscrip=2) or (estadoinscrip=3)) ORDER BY fechainscrip Desc LIMIT 0 , $limite"; }

$r=mysql_query($sql) or die("no se puede hacer la consulta $sql");
while ($f=mysql_fetch_array($r))
{
$id=$f['codpartic'];
$tema=$f['nombres']." ".$f['apellidos']." / ".$f['ciudad'];
$fec=$f['fechainscrip'];
$texto_noticia =substr($f['institucion'],0,120)."...";
//Se puede cambiar a nulo o cero, es un complemento..
$estado=$f['estadoinscrip'];
?>
<table width="98%" height="24" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="66" height="24" align="left" valign="top"><span class="Estilo9 Estilo10"> <span class="Estilo12">

</span>
<span style="font-size: 12px"><?php $fecha=substr($fec,8,2)."/".substr($fec,5,2)."/".substr($fec,0,4); echo $fecha; ?></span> </span></td>
<td width="279" align="left" valign="top" class="Estilo1 Estilo7"><div align="justify"><span class="Estilo8"><span class="Estilo13" style="font-size: 14px">
<?php
if ($estado==3)
{
echo "<p title='$texto_noticia' tyle='color:#990000 ' style='font-size:12px'>$tema... Revisando <a href='verdatos_preinscrito.php?id=$id&desblock=$id ' title='Desbloquear'> O </a></p>";
}
else
{
echo "<a title='$texto_noticia' href='verdatos_preinscrito.php?id=$id'>$tema</a>";
}
?>
</span></span></div></td>
</tr>
</table>
<?php } ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="384" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5%">&nbsp;</td>
<td width="95%"><hr>
<b> <a href="aprobar_inscripcion.php
<?php
if (isset($HTTP_GET_VARS['inicio']))
{
$in=$HTTP_GET_VARS['inicio']-$limite;
$fi=$HTTP_GET_VARS['fin']-$limite;
$pag=$HTTP_GET_VARS['pag'];
$pagina=$pag-1;
}else{$pagina=0; $in=0;}
if ($in>0){echo "?inicio=$in&fin=$fi&pag=$pagina";}

?>" target="_self">
<?php if ($in>0){echo "&lt;&lt;&lt; ";} ?>
</a>
<?php
$sql="SELECT count(*) as valor FROM participantes";
$r=mysql_query($sql);
if ($f=mysql_fetch_array($r))
{$total=$f['valor']; $nregistros=$total;}
$res=$total%$limite;
$total=$total/$limite;
$num=floor($total);
if ($res<>0)
{ $num=$num+1; }

$ini=1; $f=$ini+$limite;
for($i=1;$i<=$num;$i++)
{
echo "<a href='aprobar_inscripcion.php?inicio=$ini&fin=$f&p ag=$i' title='$i'>$i</a> ";
$ini=$ini+$limite; $f=$ini+$limite;
}

?>
<a href="aprobar_inscripcion.php
<?php
if (isset($HTTP_GET_VARS['inicio']))
{$in=$HTTP_GET_VARS['inicio']+$limite;
$pag=$HTTP_GET_VARS['pag'];
$pagina=$pag+1;
}
else{$in=$limite+1; $pagina=2;}
if(isset($HTTP_GET_VARS['fin']))
{$fi=$HTTP_GET_VARS['fin']+$limite;}
else{$fi=$limite+$limite+1;}
if ($fi<=$nregistros+$limite)
{ echo "?inicio=$in&fin=$fi&pag=$pagina";}
?>
" target="_self">
<?php if ($fi<=$nregistros+$limite){ echo " >>>";} ?>
</a></b>
<hr>
<div align="center" style="color: #0000FF"><b>
<?php
if(isset($HTTP_GET_VARS['pag']))
{ $pag=$HTTP_GET_VARS['pag']; echo "[Pag $pag de $num]";}
else{ echo "[Pag 1 de $num]";}
?>
</b> </div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td valign="top"><div align="right" class="Estilo2"></div></td>
</tr>
</table></td>
</tr>
</table>