echo " <td><input type='checkbox' id='noMostrarEditar_$fila[Field]' value='1' /></td>"; echo " <td><input type='checkbox' id='noListar_$fila[Field]' value='1' ".(($tipo=='text' or $tipo=='mediumtext' or $tipo=='longtext' or $tipo=='tinytext' or $tipo=='binary' or $tipo=='varbinary' or $tipo=='blob' or $tipo=='mediumblob' or $tipo=='longblob' or $tipo=='tinyblob') ? "checked='checked'" : "")." /></td>"; echo " <td><input type='checkbox' id='noNuevo_$fila[Field]' value='1' ".($fila['Extra']=='auto_increment' ? "checked='checked'" : "")." /></td>"; echo " <td><input type='checkbox' id='noOrdenar_$fila[Field]' value='1' /></td>"; echo "</tr>"; } ?> </table> <br/> Order by por defecto: <select id="orderBy"> <option value=""></option> <? $db->data_seek($result,0); while($fila = $db->fetch_array($result)){ echo "<option value='$fila[Field]'>$fila[Field]</option>"; } ?> </select> <select id="orderBy2"> <option value=""></option> <option value=" DESC">DESC</option> </select> <br/> <input type="checkbox" id="mostrarNuevo" value="1" checked="checked"/><label for="mostrarNuevo">Mostrar botón Nuevo</label><br/> <input type="checkbox" id="mostrarEditar" value="1" checked="checked"/><label for="mostrarEditar">Mostrar botón Editar</label><br/> <input type="checkbox" id="mostrarBorrar" value="1" checked="checked"/><label for="mostrarBorrar">Mostrar botón Borrar</label><br/> <br/>