noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
fiche_list.php
Go to the documentation of this file.
00001 <?php
00002 /*
00003  *   This file is part of NOALYSS.
00004  *
00005  *   NOALYSS is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   NOALYSS is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with NOALYSS; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 /* $Revision$ */
00020 
00021 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00022 
00023 /**
00024  * @file
00025  * @brief Show a list of card
00026  *
00027  */
00028 ?>
00029 <?php echo  $bar?>
00030 <form method="POST" class="print" style="display:inline" onsubmit="return confirm('<?php echo _("Vous confirmez ?")?>')">
00031         <table class="result">
00032                 <tr>
00033                         <th>
00034                                 <?php echo _("Quick Code")?>
00035                         </th>
00036                         <th>
00037                                 <?php echo _("Nom")?>
00038 
00039                         </th>
00040                         <th>
00041                                 <?php echo _("Poste Comptable")?>
00042                         </th>
00043                         <?php if ($allcard == 1 ) : ?>
00044                         <th>
00045                                 <?php echo _("Catégorie")?>
00046                         </th>
00047                         <?php endif; ?>
00048                         <th>
00049                                 <?php echo _("Selection")?>
00050                         </th>
00051                 </tr>
00052                 <?php for ($i = 0; $i < $nb_line; $i++) :?>
00053                         <?php $row = Database::fetch_array($res, $i);?>
00054                         <?php $class=($i%2 == 0)?' class="even" ':' class="odd" ';?>
00055                         <tr <?php echo $class?> >
00056                                 <td>
00057                                         <?php echo  HtmlInput::card_detail($row['qcode'], "", ' class="line" ')?>
00058 
00059                                 </td>
00060                                 <td>
00061                                         <?php echo  h($row['name'])?>
00062                                 </td>
00063                                 <td>
00064                                         <?php echo HtmlInput::history_account($row['poste'],$row['poste'])?>
00065                                 </td>
00066                                 <?php if ($allcard == 1 ) : ?>
00067                                 <td>
00068                                         <?php echo  h($row['fd_label'])?>
00069                                 </td>
00070                                 <?php endif; ?>
00071                                 <td>
00072                                         <?php 
00073                                         if ($write == 1)
00074                                         {
00075                                                 $ck = new ICheckBox('f_id[]', $row['f_id']);
00076                                                 echo $ck->input();
00077                                         }
00078                                         ?>
00079                                 </td>
00080                         </tr>
00081                 <?php endfor;?>
00082 
00083 
00084         </table>
00085         <?php echo $str_add_card?>
00086 <?php echo HtmlInput::hidden('action',"1");?>
00087 <?php echo HtmlInput::submit('delete',_('Effacer la sélection '))?>
00088 <?php if ( $allcard ==  0  ): ?>
00089 <?php echo HtmlInput::submit('move',_('Déplacer la sélection  vers'))?>
00090 <?php 
00091 $iselect=new ISelect('move_to');
00092 $iselect->value=$cn->make_array("select fd_id,fd_label from fiche_def order by 2");
00093 echo $iselect->input();
00094 ?>
00095 
00096 <?php endif ; ?>
00097 </form>
00098 </div>
 All Data Structures Namespaces Files Functions Variables Enumerations