for($i=0; $i < count($aLisReg); $i++){ ?> <div class="cls_ordenar" id="img_<?php echo $aLisReg[$i]['id']; ?> "> <?php echo limpiarTexto($aLisReg[$i]['titulo']); ?> </div> <? }?> <hr style="clear:both;border:0;visibility:none;"> </div> <? $sortableLists->printForm($_SERVER['PHP_SELF'], 'POST', 'Finalizar Ordenamiento', 'BOTON'); $sortableLists->printBottomJS(); ?> <table width="100%"> <tr> <td align="right"> <!--<input type="submit" class="inp_file inp_submit" value="Guardar Cambios" onClick="document.formulario.submit()" />--> </td> </tr> </table> </div> </div> </div> </div> </div>
padding: 2px 2px; margin: 2px 0px; border: 1px solid #000000; background-color: #daeda3; } div#sortableList div { cursor: move; padding: 2px 2px; margin: 2px 0px; border: 1px solid #000000; background-color: #daeda3; width: 400px; } div#sortableList img { cursor: move; display: block; margin: 5px 0px; border: 1px solid #000000; } </style> </head> <body> Drag and drop to change the order of the following items then click 'Save' to save the new order:<br><br> <? printf($listFormat, $listHTML); $sortableLists->printForm($_SERVER['PHP_SELF'], 'POST', 'Save', 'button'); $sortableLists->printBottomJS(); ?> </body> </html>