noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
tag_select.php
Go to the documentation of this file.
00001 <?php
00002 //This file is part of NOALYSS and is under GPL 
00003 //see licence.txt
00004 ?><?php
00005 echo HtmlInput::title_box('Tag', 'tag_div');
00006 $max=$this->cn->count($ret);
00007 if ( $max == 0 ) {
00008     echo h2(_("Aucune étiquette disponible"),' class="notice"');
00009     return;
00010 }
00011 ?>
00012 Filtrer = <?php echo HtmlInput::filter_table('tag_tb_id', '0,1', 1); ?>
00013 <table id="tag_tb_id">
00014     <tr>
00015         <th>
00016             <?php echo _("Tag")?>
00017         </th>
00018         <th>
00019             <?php echo _("Description")?>
00020         </th>
00021     </tr>
00022 <?php
00023 $gDossier=Dossier::id();
00024 if (isNumber($_REQUEST['ag_id']) == 0 ) die ('ERROR : parameters invalid');
00025     for ($i=0;$i<$max;$i++):
00026         $row=Database::fetch_array($ret, $i);
00027 ?>
00028     <tr class="<?php echo (($i%2==0)?'even':'odd');?>">
00029         <td>
00030             <?php
00031             $js=sprintf("action_tag_add('%s','%s','%s')",$gDossier,$_REQUEST['ag_id'],$row['t_id']);
00032             echo HtmlInput::anchor($row['t_tag'], "", "onclick=\"$js\"");
00033             ?>
00034         </td>
00035         <td>
00036             <?php
00037             echo $row['t_description'];
00038             ?>
00039         </td>
00040     </tr>
00041 <?php
00042  endfor;
00043  ?>
00044 </table>
 All Data Structures Namespaces Files Functions Variables Enumerations