Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 $max=Database::num_row($res);
00030 ?>
00031 <div id="list_cat_div" class="content">
00032 <?php echo "Filtre"; echo HtmlInput::filter_table("fiche_def_tb", "0,1,2,3,4", "1"); ?>
00033 <table id="fiche_def_tb" class="result">
00034 <tR>
00035 <th>
00036 <?php echo $tab->get_header(0)?>
00037 </th>
00038 <th>
00039 <?php echo $tab->get_header(1)?>
00040 </th>
00041 <th>
00042 <?php echo $tab->get_header(2)?>
00043 </th>
00044 <th>
00045 <?php echo $tab->get_header(3)?>
00046 </th>
00047 <th>
00048 Description
00049 </th>
00050 </tR>
00051 <?php
00052 $dossier=Dossier::id();
00053 for ($i=0;$i<$max;$i++):
00054 $class=($i%2==0)?' class="even" ':' class="odd" ';
00055 $row=Database::fetch_array($res, $i);
00056 ?>
00057 <tr <?php echo $class?> >
00058 <td>
00059 <?php echo HtmlInput::anchor(h($row['fd_label']), "javascript:void(0)", "onclick=\"detail_category_show('detail_category_div','".$dossier."','".$row['fd_id']."')\"")?>
00060 </td>
00061 <td>
00062 <?php echo h($row['fd_class_base'])?>
00063 </td>
00064 <td>
00065 <?php
00066 $v=($row['fd_create_account']=='t')?_("Automatique"):_("Manuel");
00067 echo $v;
00068 ?>
00069 </td>
00070 <td>
00071 <?php echo $row['frd_text']?>
00072 </td>
00073 <td>
00074 <?php echo h($row['fd_description']) ?>
00075 </td>
00076 </tr>
00077
00078
00079 <?php
00080 endfor;
00081 ?>
00082 </table>
00083 <?php
00084 echo HtmlInput::button("cat_fiche_def_add",_("Ajout d'une nouvelle catégorie"), "onclick=\"detail_category_show('detail_category_div','".$dossier."','-1')\"");
00085 ?>
00086 </div>
00087 <div id="detail_category_div" style="display:none"">
00088
00089 </div>