noalyss Version-9
fiche_list.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS 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 NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19/* $Revision$ */
20
21// Copyright Author Dany De Bontridder danydb@aevalys.eu
22
23/**
24 * @file
25 * @brief Show a list of card
26 *
27 */
28?>
29<?php echo $bar?>
30<?php
31
32if ($allcard == 1 ) :
33 echo HtmlInput::filter_table('fiche_list_table_id', '0,1,2,3', 1);
34else:
35 echo HtmlInput::filter_table('fiche_list_table_id', '0,1,2', 1);
37?>
38<form method="POST" id="fiche_list_frm" class="print" style="display:inline" onsubmit="return confirm_box(this,'<?php echo _("Vous confirmez ?")?>')">
39
40 <table class="sortable" id="fiche_list_table_id">
41 <tr>
42 <th >
43 <?php echo _("Quick Code")?>
44 <?php echo Icon_Action::infobulle(17)?>
45 </th>
46 <th >
47 <?php echo _("Nom")?>
48 </th>
49 <th>
50 <?php echo _("Poste Comptable")?>
51 </th>
52 <?php if ($allcard == 1 ) : ?>
53 <th>
54 <?php echo _("Catégorie")?>
55 </th>
56 <?php endif; ?>
57 <th class="sorttable_nosort">
58 <?php echo _("Selection")?>
59 </th>
60 </tr>
61 <?php for ($i = 0; $i < $nb_line; $i++) :?>
63 <?php $class=($i%2 == 0)?' class="even" ':' class="odd" ';?>
64 <tr <?php echo $class?> >
65 <td>
66 <?php echo HtmlInput::card_detail($row['qcode'], "", ' class="line" ')?>
67
68 </td>
69 <td>
70 <?php echo h($row['name'])?>
71 </td>
72 <td>
73 <?php echo HtmlInput::history_account($row['poste'],$row['poste'])?>
74 </td>
75 <?php if ($allcard == 1 ) : ?>
76 <td>
77 <?php echo h($row['fd_label'])?>
78 </td>
79 <?php endif; ?>
80 <td>
81 <?php
82 if ($write == 1)
83 {
84 $ck = new ICheckBox('f_id[]', $row['f_id']);
85 if ( $allcard != 1 ) {
86 $ck->set_range("range".$p_cat);
87 }
88 echo $ck->input();
89 }
90 ?>
91 </td>
92 </tr>
93 <?php endfor;?>
94
95
96 </table>
97 <?php echo $str_add_card?>
98<?php
99if ( $allcard != 1 ) { echo ICheckBox::javascript_set_range("range".$p_cat); }
100
101?>
102<?php echo HtmlInput::hidden('action',"1");?>
103<?php echo HtmlInput::hidden('delete',"0");?>
104<?php echo HtmlInput::hidden('move',"0");?>
105<?php echo HtmlInput::submit('delete_bt',_('Effacer la sélection '),'onclick="$(\'delete\').value=1;$(\'move\').value=0"')?>
106<?php if ( $allcard == 0 ): ?>
107<?php echo HtmlInput::submit('move_bt',_('Déplacer la sélection vers'),'onclick="$(\'delete\').value=0;$(\'move\').value=1"')?>
108<?php
109$iselect=new ISelect('move_to');
110$iselect->value=$cn->make_array("select fd_id,fd_label from fiche_def order by 2");
111echo $iselect->input();
112?>
113
114<?php endif ; ?>
115</form>
116</div>
117
118
th($p_string, $p_extra='', $raw='')
Definition: ac_common.php:58
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
h( $row[ 'oa_description'])
$opd_description style
$class
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
static history_account($p_account, $p_mesg, $p_style="", $p_exercice="")
display a div with the history of the account
static filter_table($p_table_id, $p_col, $start_row)
filter the rows in a table and keep the colored row in alternance
static card_detail($p_qcode, $pname='', $p_style="", $p_nohistory=false, $nofollowup=false)
show the detail of a card
static hidden($p_name, $p_value, $p_id="")
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
Html Input.
static javascript_set_range($p_name)
Before calling this function , you must set a range with the function set_range.
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
static infobulle($p_comment)
Display a info in a bubble, text is in message_javascript.
$all table
$str_add_card
Definition: fiche.inc.php:111
else endif
Definition: fiche_list.php:36
$iselect
Definition: menu.inc.php:121
endfor