noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
fiche_def-display.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * NOALYSS is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * NOALYSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with NOALYSS; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20/* $Revision$ */
21
22// Copyright Author Dany De Bontridder danydb@aevalys.eu
23
24/**
25 * @file
26 * @brief show all the categories of card fiche_def
27 *
28 */
30?>
31<div id="list_cat_div" class="content">
32 <?php Noalyss\Dbg::echo_file(__FILE__);?>
33 <?php echo _("Cherche"); echo HtmlInput::filter_table("fiche_def_tb", "0,1,2,3,4", "1"); ?>
34<table id="fiche_def_tb" class="result">
35 <tR>
36 <th>
37 <?php echo $tab->get_header(0)?>
38 </th>
39 <th>
40 <?php echo $tab->get_header(1)?>
41 </th>
42 <th>
43 <?php echo $tab->get_header(2)?>
44 </th>
45 <th>
46 <?php echo $tab->get_header(3)?>
47 </th>
48 <th>
49 Description
50 </th>
51 </tR>
52<?php
53$dossier=Dossier::id();
55$ac=$http->request("ac");
56
57
58for ($i=0;$i<$max;$i++):
59 $class=($i%2==0)?' class="even" ':' class="odd" ';
61 $url=http_build_query(array("ac"=>$ac,"gDossier"=>$dossier,"fd"=>$row['fd_id']));
62?>
64 <td>
65 <?php echo HtmlInput::anchor(h($row['fd_label']), "do.php?".$url)?>
66 </td>
67 <td>
68 <?php echo h($row['fd_class_base'])?>
69 </td>
70 <td>
71 <?php
72 $v=($row['fd_create_account']=='t')?_("Automatique"):_("Manuel");
73 echo $v;
74 ?>
75 </td>
76 <td>
77 <?php echo $row['frd_text']?>
78 </td>
79 <td>
80 <?php echo h($row['fd_description']) ?>
81 </td>
82 </tr>
83
84
85<?php
86endfor;
87?>
88</table>
89<?php
90echo HtmlInput::button("cat_fiche_def_add",_("Ajout d'une nouvelle catégorie"), "onclick=\"detail_category_show('detail_category_div','".$dossier."','-1')\"");
91?>
92</div>
93<div id="detail_category_div" style="display:none;margin-left:1rem">
94
95</div>
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
if(isset( $_REQUEST[ 'show'])) if(isset($_REQUEST['del'])) $ac
_("actif, passif,charge,...")
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
static num_row($ret)
wrapper for the function pg_num_rows
manage the http input (get , post, request) and extract from an array
static echo_file($msg, $print=true)
display the file
Definition dbg.php:88
$all table