我正在处理一个页面,该页面处理大量数据,用户可以通过表单选择要传递给其他页面的内容。我偶然发现了一个大问题:当我想传递列表中的第一个项目时,页面完美无瑕。但是,当我想选择他们未被传递的最后一项时。实施例
你能告诉我发生了什么事吗?谢谢!
创建复选框的代码。所有1085个:
echo "<form name='frmIns' method = 'POST' action = 'xx.php'>";
if(mysqli_num_rows($tablaO)>0)
{
$i = 0;
$e = 1;
while($registroO=mysqli_fetch_assoc($tablaO))
{
if ($e%2== 0)
{
if($registroO['art_nota'] == 'Inventario' || $registroO['art_nota'] == 'Espera de Devolución' || $registroO['art_nota'] == 'Se va a Inventario') $color = 'e9bd15';
else $color='c5efef';
}else{
if($registroO['art_nota'] == 'Inventario' || $registroO['art_nota'] == 'Espera de Devolución' || $registroO['art_nota'] == 'Se va a Inventario') $color = 'e9bd15';
else $color='fdfdfd';
}
$ValidacionID = $registroO['art_id_verificador'];
if($ISBN13r == null and $libro != null && $articulos == null)
{
$Idverificador = $registroO['art_id_verificador'];
echo '<tr valign="top" class="registro" name="tr/'.$i.'" id="tr/'.$Idverificador.'" style="font-size: 11.5px; text-align: -webkit-center; background-color:#'.$color.'">
<td>'.$e.'</td>
<td>
<input type="checkbox" name="chbArticulo[]" value="'.$Idverificador.'" onChange="cambia(this)" />
<input type="hidden" name="IDEs[]" value="'.$Idverificador.'" />
<input type="hidden" name="IdVerif[]" value="'.$ValidacionID.'" />
</td>';
}else if($ISBN13r != null and $libro == null && $articulos == null){
echo'<tr valign="top" class="registro" style="font-size: 11.5px; text-align: -webkit-center; background-color:#'.$color.'">
<td>'.$e.'</td>
<td></td>';
}else{
$Idverificador = $registroO['art_id_verificador'];
echo '<tr valign="top" class="registro" name="tr/'.$i.'" id="tr/'.$Idverificador.'" style="font-size: 11.5px; text-align: -webkit-center; background-color:#'.$color.'">
<td>'.$e.'</td>
<td>
<input type="checkbox" name="chbArticulo[]" value="'.$Idverificador.'-'.$Idverificador.'" onChange="cambia(this)" />
<input type="hidden" name="IDEs[]" value="'.$Idverificador.'" />
<input type="hidden" name="IdVerif[]" value="'.$ValidacionID.'" />
</td>';
}
echo'<td>'.$registroO['art_id_verificador'].'</td>
<td>'.$registroO['art_id_orden'].'</td>
<td>'.$registroO['art_fecha'].'</td>
<td>'.$registroO['art_N13'].'</td>
<td>'.$registroO['art_destino'].'</td>
<td style="'.($registroO['art_ofna_de'] != "" || $registroO['art_ofna_de'] != null ? "background-color:yellow;" : "").'">'.$registroO['art_ofna_de'].'</td>
<td>'.$registroO['art_ISBN'].'</td>
<td style = "max-width:250px; overflow:ellipsis;">'.$registroO['art_titulo'].'</td>
<td>'.$registroO['art_SKU'].'</td>
<td>'.$registroO['art_cantidad'].'</td>
<td>$'.number_format(($registroO['art_precio_logistica'] > 0 ? $registroO['art_precio_logistica'] : $registroO['art_precio']),2,".",",").'</td>
<td>'.$registroO['art_id_proveedor'].'</td>
<td>'.$registroO['art_nota'].'</td>
<td>'.($registroO['art_guia_ofna_arg'] == '' ? $registroO['art_guia_ofna'] : $registroO['art_guia_ofna_arg']).'</td>
</tr>';
$i=$i+ 1;
$e=$e+ 1;
/*<td>'.$registroO['OfMi_pvp'].'</td>
<td>'.$registroO['OfMi_costUnitario'].'</td>
<td>'.$registroO['OfMi_TotalDeposito'].'</td>
<td>'.$registroO['OfMi_TotalOrden'].'</td>
<td>'.$registroO['OfMi_MarginProf'].'</td>*/
}
}
echo "</form>";