Ver Mensaje Individual
  #26 (permalink)  
Antiguo 04/11/2008, 11:30
Avatar de hoberwilly
hoberwilly
 
Fecha de Ingreso: julio-2008
Ubicación: Lima - Perú
Mensajes: 769
Antigüedad: 15 años, 10 meses
Puntos: 2
Respuesta: Ayuda con mensaje

Este es el codigo completo que hasta el momento se ha avanzado:

<?php
include('conec.php');
conectarse();
$qry=mysql_query("select * from factura where estatus='pendiente' order by idFactura desc");
?>

<html>
<head>
<title>Administrador de Pedidos Pendientes</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type='text/javascript'>
function EstoyReLoco(valor)
{
TuLink = document.getElementById('TuLink');
TuLink.href = "consultarPedido.php?idFactura=" + valor;
}
</script>
</head>

<body>
<table>
<tr>
<td align="center" width="4%"><strong>Id</strong></td>
<td align="center" width="21%"><strong>Destinatario</strong></td>
<td align="center" width="5%"><strong>Acci&oacute;n</strong></td>
</tr>
<?php
while($row=mysql_fetch_array($qry)){
?>
<tr valign="middle" class='prod' onmouseover='this.style.background="#f2f2f2"' onmouseout='this.style.background=""'>
<td align="center"><?php echo $row['idFactura'] ?></td>
<td><?php echo $row['destinatario'] ?></td>
<td align="center"><input type="radio" name="un_nombre" value="<?php echo $row['idFactura'] ?>" onclick="EstoyReLoco(this.value)"></td>
</tr>
<?php } ?>
<tr valign="middle">
<td align="center"><?php echo "<a id=\"TuLink\" href=\"consultarPedido.php?idFactura=".$row['idFactura']."\">Actualizar</a>" ?></td> ///para el ejemplo es un enlace, pero pueden ser mas enlaces
</tr>
</table>
</body>
</html>