1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| <div id="etudiantTableContainer" style="width: 100%;"></div>
<script type="text/javascript">
$(document).ready(function () {
//Prepare jTable
$('#etudiantTableContainer').jtable({
title: 'Liste des chauffeurs',
paging: true, //Enable paging
sorting: true, //Enable sorting
defaultSorting: 'Name ASC',
selecting: true, //Enable selecting
multiselect:true, //Allow multiple selecting
selectingCheckboxes: true, //Show checkboxes on first column,
/* le fichier ou nous allons nous charger du crud */
actions: {
listAction: 'api/etudiant.php?action=list',
updateAction: 'api/etudiant.php?action=update',
deleteAction: 'api/etudiant.php?action=delete',
createAction: 'api/etudiant.php?action=create'
},
fields: {
Id: {
key: true,
create: false,
edit: false,
list: false
},
Nom: {
title: 'Nom'
},
Prenom: {
title: 'Prenom'
},
}
});
//Load etudiant list from server
$('#etudiantTableContainer').jtable('load');
});
</script>
</div> |
Partager