noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
anc_key_display_list.php
Go to the documentation of this file.
00001 <?php
00002 /* * *
00003   Copyright (C) 2014 dany
00004 
00005   This program is free software; you can redistribute it and/or
00006   modify it under the terms of the GNU General Public License
00007   as published by the Free Software Foundation; either version 2
00008   of the License, or (at your option) any later version.
00009 
00010   This program 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 this program; if not, write to the Free Software
00017   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018  */
00019 /* * *
00020  * @file
00021  * @brief display a table with the list of available keys for all ledgers
00022  * @see Anc_Key::display_list
00023  */
00024 global $g_succeed,$g_failed;
00025         
00026 ?>
00027 <div class="content">
00028     <?php     echo _('Filtre')." ".HtmlInput::filter_table("anc_key_table_id", '0,1', 0); ?>
00029 
00030 <table id="anc_key_table_id" class="result">
00031     <?php for ($i = 0; $i < count($a_key); $i++):
00032     $onclick=  http_build_query(array(
00033         'gDossier'=>Dossier::id(),
00034         'ac'=>$_REQUEST['ac'],
00035         'op'=>'consult',
00036         'key'=>$a_key[$i]['kd_id']
00037     ));
00038     $class=($i%2==0)?'class="even"':'class="odd"';
00039     ?>
00040         <tr <?php echo $class;?>>
00041             <td>
00042                 <a class="line" href="do.php?<?php echo $onclick; ?>" >
00043                 <?php echo $a_key[$i]['kd_name']; ?>
00044                 </a>
00045             </td>
00046             <td>
00047                 <?php echo $a_key[$i]['kd_description'] ?>
00048             </td>
00049             <?php
00050             $sign=($a_key[$i]['distrib']==100)?$g_succeed:$g_failed;
00051             ?>
00052             <td>
00053                 <?php echo nbm($a_key[$i]['distrib']);?>%
00054                 <?php echo $sign;?>
00055             </td>
00056         </tr>
00057     <?php endfor; ?>
00058 </table>
00059 </div>
 All Data Structures Namespaces Files Functions Variables Enumerations