I’m not sure I understand what you want but I point out a following Jquery tool:
https://datatables.net/
Via Html:
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/DataTables-1.7.6/jquery.dataTables.min.js" type="text/javascript"></script>
Load the css: Demo plugin, you can get it by downloading the latest version of this plugin.
<link rel=’stylesheet’ href=’js/DataTables-1.7.6/css/demo_table_jui.css’ />
<link rel=’stylesheet’ href=’js/DataTables-1.7.6/css/demo_table.css’ />
After loading you need to initialize the script
<script type="text/javascript">
$(document).ready(function() {
$(‘#teste’).dataTable( );
} );
</script>
Create Physical table in Html
<table id="teste" width="100%">
<thead>
<tr>
<th>Nome</th>
<th>Email</th>
<th>Sexo</th>
<th>Data Nascimento</th>
<th>Nivel Escolar</th>
<th>Faculdade</th>
</tr>
</thead>
<tbody>
<?php for( $i=0; $i<100; $i++ ){?>
<tr>
<td><?php echo $i;?></td>
<td><?php echo $i+1;?></td>
<td><?php echo $i+2;?></td>
<td><?php echo $i+3;?></td>
<td><?php echo $i+4;?></td>
<td><?php echo $i+5;?></td>
</tr>
<?php }?>
</tbody>
</table>
You could take the edge off the
<input>
and the cell padding, but it would still be weird. Why don’t you use a lib for that?– Gustavo Rodrigues
I don’t think it’s worth importing a lib to configure cells
td
– CesarMiguel
It would be more organized, depending on what you do. If this is the only table in the application, then ok.
– Gustavo Rodrigues
Yes, in principle it will be the only one. In the other tables I am using Devexpress in the application, and I wanted to replicate the Gridviews as much as possible. The problem is that in Gridview you would have trouble having a field to attach files
– CesarMiguel