Ver Mensaje Individual
  #9 (permalink)  
Antiguo 07/07/2009, 12:35
Avatar de visitante28
visitante28
 
Fecha de Ingreso: julio-2009
Ubicación: Black Stone City
Mensajes: 128
Antigüedad: 14 años, 9 meses
Puntos: 1
Respuesta: Actualizar Multiples Registros

ok,, a qui te dejo el resto,,, gracias el apoyo... saludos

//////

<form id="form1" name="form1" method="post" action="">
<p> Buscar por
<select name="buscar" id="buscar">
<option value="">...</option>
<option value="Jesus Mares">Jesus Mares</option>
</select>
<input type="submit" name="boton" id="boton" value="ir" />
<hr /></p>
</form>
<form action="<?php echo $editFormAction; ?>" method="POST" name="form2" id="form2">
<table width="110%" border="1" cellspacing="1" cellpadding="1">
<tr>
<th background="imagen/barra.png" class="p" scope="col">Id</th>
<th background="imagen/barra.png" class="p" scope="col">Numero</th>
<th background="imagen/barra.png" class="p" scope="col">Nombre </th>
<th background="imagen/barra.png" class="p" scope="col">Dpto</th>
<th background="imagen/barra.png" class="p" scope="col">Suspension</th>
<th background="imagen/barra.png" class="p" scope="col">Vacaciones</th>
<th background="imagen/barra.png" class="p" scope="col">Dias</th>
<th background="imagen/barra.png" class="p" scope="col">Fecha</th>
<th background="imagen/barra.png" class="p" scope="col">Hora</th>
<th background="imagen/barra.png" class="p" scope="col">Regresa</th>
</tr>
<?php $registros ="";?>
<?php do { ?>
<tr>
<th class="t" scope="row"></th>
<th class="t" scope="row"><?php echo $row_Recordset1['num']; ?></th>
<th class="t"><?php echo $row_Recordset1['nombre']; ?></th>
<th class="t"><?php echo $row_Recordset1['dpto']; ?></th>
<th><p>
<input type="radio" name="suspencion<?php echo $row_Recordset1['id']; ?>" value="suspencion" id="suspencion" />
</th>
<th><input type="radio" name="vacacciones<?php echo $row_Recordset1['id']; ?>" value="vacacciones" id="vacacciones" />
</th>
<th class="t"><input type="text" name="dias<?php echo $row_Recordset1['id']; ?>" size="3" />
<th class="t"><input type="text" name="fecha_ini<?php echo $row_Recordset1['id']; ?>" size="12" /></th>
<th class="t"><input type="text" name="hora<?php echo $row_Recordset1['id']; ?>" size="5" /></th>
<th class="t"><input type="text" name="fecha_fin<?php echo $row_Recordset1['id']; ?>" size="12" /></th>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
<?php $registros.= $row_Recordset1['id'].",";?>
<?php $registros = substr($registros,0,strlen($registros)-1);?>

</table>
<input type="submit" name="button" id="button" value="Actualizar registros" />
<span class="t"></span>
<input type="hidden" name="registros" value="$registros"/>
<input type="hidden" name="MM_update" value="form2" />
</form>

</body>
</html>
<?php
mysql_free_result($Recordset1);
?>