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
| <script type="text/javascript">
// Mise en page du tableau des termes
dom.query(document).ready(function() {
dom.query('#datatable').dataTable( {
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"sDom": 'T<"clear">lfrtip',
"oLanguage": {
"sUrl": "jscripts/datatable/media/js/fr_FR.txt"
}
} );
} );
</script>
<?php
// definitions
$termes=terme::getTabAssocAllLabelsAllType(true);
// affichage
echo '<form id="form_add_terme" method="post" action="save_plan.php">
<input type="hidden" name="node" value="plan"/>
<input type="hidden" name="mode" value="add_terme"/>
<input type="hidden" name="idp" value="'.$id_plan.'"/>
<input type="hidden" name="idu" value="'.$id_user.'"/>
<input type="hidden" name="addTerme" value="true"/>
<table cellpadding="0" cellspacing="0" id="datatable">
<thead>
<tr>
<th class="col_icone"></th>
<th>'.gettext('Termes').'</th>
<th>'.gettext('Termes liés').'</th>
<th>'.gettext('Type').'</th>
</tr>
</thead>
<tbody>';
foreach ($termes as $id_terme => $term) {
echo '<tr>
<td class="col_icone"><input type="checkbox" name="add_term_'.$id_terme.'" id="add_term_'.$id_terme.'" class="chkbox_sur_une_ligne"/></td>
<td>'.$term['intitule'].'</td>
<td>'.$term['intitules_lies'].'</td>
<td>'.$term['type_lbl'].'</td>
</tr>';
}
echo '</tbody>
</table> |