noalyss Version-9
anc_key_display_list.php
Go to the documentation of this file.
1<?php
2/* * *
3 Copyright (C) 2014 dany
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19/* * *
20 * @file
21 * @brief display a table with the list of available keys for all ledgers
22 * @see Anc_Key::display_list
23 */
25
26?>
27<div class="content">
28 <?php echo _('Cherche')." ".HtmlInput::filter_table("anc_key_table_id", '0,1', 0); ?>
29
30<table id="anc_key_table_id" class="result">
31 <?php for ($i = 0; $i < count($a_key); $i++):
32 $onclick= http_build_query(array(
33 'gDossier'=>Dossier::id(),
34 'ac'=>$_REQUEST['ac'],
35 'op'=>'consult',
36 'key'=>$a_key[$i]['kd_id']
37 ));
38 $class=($i%2==0)?'class="even"':'class="odd"';
39 ?>
40 <tr <?php echo $class;?>>
41 <td>
42 <a class="line" href="do.php?<?php echo $onclick; ?>" >
43 <?php echo $a_key[$i]['kd_name']; ?>
44 </a>
45 </td>
46 <td>
47 <?php echo $a_key[$i]['kd_description'] ?>
48 </td>
49 <?php
50 $sign=($a_key[$i]['distrib']==100)?$g_succeed:$g_failed;
51 ?>
52 <td>
53 <?php echo nbm($a_key[$i]['distrib']);?>%
54 <?php echo $sign;?>
55 </td>
56 </tr>
57 <?php endfor; ?>
58</table>
59</div>
tr($p_string, $p_extra='')
Definition: ac_common.php:88
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
nbm($p_number, $p_dec=2)
format the number with a sep.
Definition: ac_common.php:137
$_REQUEST['ac']
global $g_failed
global $g_succeed
static id()
return the 'gDossier' value after a check
static filter_table($p_table_id, $p_col, $start_row)
filter the rows in a table and keep the colored row in alternance
$all table