Código PHP:
<?php
//variables de paginas//
$paginas= array ('12' => array ('1','12','2','11','3','10','4','9','5','8','6','7'),
'16' => array ('1','16','2','15','3','14','4','13','5','12','6','11','7','10','8','9'),
'20' => array ('1','20','2','19','3','18','4','17','5','16','6','15','7','14','8','13','9','12','10','11');
?>
<form method="Post" action="selecpag2.php">
<p><strong>Paginas a Asignar:</strong>
<select name="paginas" id="select">
<option value="Seleccione la Usuario">Seleccione cant de paginas</option>
<option value="12">12</option>
<option value="16">16</option>
<option value="20">20</option>
</select>
</p>
<label>
<input type="submit" name="ok" id="ok" value="Guardar">
</label>
</form> </p>
Código PHP:
<table width="768" border="0">
<tr>
<td width="360"><table width="360" border="1">
<tr>
<td colspan="3" bgcolor="#006699"><div align="center" class="style3 style5">CUERPO A</div></td>
<td width="60" bgcolor="#006699"><div align="center" class="style7">HORA</div></td>
<td width="198" bgcolor="#006699"><div align="center" class="style7">OBSERVACION</div></td>
</tr>
<tr>
<td width="26"><?php echo $_POST[12][1]]; echo $_POST[16][1]; echo $_POST[20][1];?> </td>
<td width="11"><div align="center" class="style4">-</div>
<div align="center"></div></td>
<td width="31"><?php echo $_POST[12][2]]; echo $_POST[16][2]; echo $_POST[20][2];?></td>
<td><span class="style4">
<input name="hora1" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="hora1" size="10" value="<?echo "$hora1";?>"/>
</span></td>
<td><span class="style4">
<input name="obser1" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="obser1" size="33" value="<?echo "$obser1";?>"/>
</span></td>
</tr>
<tr>
<td><?php echo $_POST[12][3]]; echo $_POST[16][3]; echo $_POST[20][3];?></td>
<td><div align="center" class="style4">-</div></td>
<td><?php echo $_POST[12][4]; echo $_POST[16][4]; echo $_POST[20][4];?></td>
<td><span class="style4">
<input name="hora2" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="hora2" size="10" value="<?echo "$hora2";?>"/>
</span></td>
<td><span class="style4">
<input name="obser2" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="obser2" size="33" value="<?echo "$obser2";?>"/>
</span></td>
</tr>
<tr>
<td><?php echo $_POST[12][5]]; echo $_POST[16][5]; echo $_POST[20][5];?></td>
<td><div align="center" class="style4">-</div></td>
<td><?php echo $_POST[12][6]]; echo $_POST[16][6]; echo $_POST[20][6];?></td>
<td><span class="style4">
<input name="hora3" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="hora3" size="10" value="<?echo "$hora3";?>"/>
</span></td>
<td><span class="style4">
<input name="obser3" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="obser3" size="33" value="<?echo "$obser3";?>"/>
</span></td>
</tr>
<tr>
<td><?php echo $_POST[12][7]]; echo $_POST[16][7]; echo $_POST[20][7];?></td>
<td><div align="center" class="style4">-</div></td>
<td><?php echo $_POST[12][8]]; echo $_POST[16][8]; echo $_POST[20][8];?></td>
<td><span class="style4">
<input name="hora4" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="hora4" size="10" value="<?echo "$hora4";?>"/>
</span></td>
<td><span class="style4">
<input name="obser4" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="obser4" size="33" value="<?echo "$obser4";?>"/>
</span></td>
</tr>
<tr>
<td><?php echo $_POST[12][9]]; echo $_POST[16][9]; echo $_POST[20][9];?></td>
<td><div align="center" class="style4">-</div></td>
<td><?php echo $_POST[12][10]]; echo $_POST[16][10]; echo $_POST[20][10];?></td>
<td><span class="style4">
<input name="hora5" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="hora5" size="10" value="<?echo "$hora5";?>"/>
</span></td>
<td><span class="style4">
<input name="obser5" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="obser5" size="33" value="<?echo "$obser5";?>"/>
</span></td>
</tr>
<tr>
<td><?php echo $_POST[12][11]]; echo $_POST[16][11]; echo $_POST[20][11];?></td>
<td><div align="center" class="style4">-</div></td>
<td><?php echo $_POST[12][12]]; echo $_POST[16][12]; echo $_POST[20][12];?></td>
<td><span class="style4">
<input name="hora6" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="hora6" size="10" value="<?echo "$hora6";?>"/>
</span></td>
<td><span class="style4">
<input name="obser6" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="obser6" size="33" value="<?echo "$obser6";?>"/>
</span></td>
</tr>
<tr>
<td><?php echo $_POST[16][13]; echo $_POST[20][13];?></td>
<td><div align="center" class="style4">-</div></td>
<td><?php echo $_POST[16][14]; echo $_POST[20][14];?></td>
<td><span class="style4">
<input name="hora7" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="hora7" size="10" value="<?echo "$hora7";?>"/>
</span></td>
<td><span class="style4">
<input name="obser7" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="obser7" size="33" value="<?echo "$obser7";?>"/>
</span></td>
</tr>
<tr>
<td><?php echo $_POST[16][15]; echo $_POST[20][15];?></td>
<td><div align="center" class="style4">-</div></td>
<td><?php echo $_POST[16][16]; echo $_POST[20][16];?></td>
<td><span class="style4">
<input name="hora8" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="hora8" size="10" value="<?echo "$hora8";?>"/>
</span></td>
<td><span class="style4">
<input name="obser8" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="obser8" size="33" value="<?echo "$obser8";?>"/>
</span></td>
</tr>
<tr>
<td><?php echo $_POST[20][17];?></td>
<td><div align="center" class="style4">-</div></td>
<td><?php echo $_POST[20][18];?></td>
<td><span class="style4">
<input name="hora9" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="hora9" size="10" value="<?echo "$hora9";?>"/>
</span></td>
<td><span class="style4">
<input name="obser9" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="obser9" size="33" value="<?echo "$obser9";?>"/>
</span></td>
</tr>
<tr>
<td><?php echo $_POST[20][19];?></td>
<td><div align="center" class="style4">-</div></td>
<td><?php echo $_POST[20][20];?></td>
<td><span class="style4">
<input name="hora10" type="text"class="letrarelleno"
onkeyup="dateFormat(this,this.value,event,false,'3') onBlur="checkTime(this)" id="hora10" size="10" value="<?echo "$hora10";?>"/>
</span></td>
SI ALGUIEN SABE COMO AYUDARME POR FAVOR SE LO AGRADECERIA