noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
fiche_def_list.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  *   This file is part of NOALYSS.
00005  *
00006  *   NOALYSS is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License as published by
00008  *   the Free Software Foundation; either version 2 of the License, or
00009  *   (at your option) any later version.
00010  *
00011  *   NOALYSS is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU General Public License
00017  *   along with NOALYSS; if not, write to the Free Software
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 /* $Revision$ */
00021 
00022 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00023 
00024 /**
00025  * @file
00026  * @brief show all the categories of card fiche_def
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>
 All Data Structures Namespaces Files Functions Variables Enumerations