noalyss Version-9
stock_histo.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 the result of stock history
27 *
28 */
29
30?>
31<div class="content">
32 <?php echo $nav_bar?>
33<table class="result">
34 <tr>
35 <th><?php echo $tb->get_header(0);?></th>
36 <th><?php echo $tb->get_header(1);?></th>
37 <th><?php echo $tb->get_header(2);?></th>
38 <th><?php echo $tb->get_header(3);?></th>
39 <th>Opération</th>
40 <th><?php echo $tb->get_header(4);?></th>
41 <th><?php echo $tb->get_header(5);?></th>
42 <th><?php echo $tb->get_header(6);?></th>
43 <th><?php echo $tb->get_header(7);?></th>
44 </tr>
45 <?php
46
47 for ($i=0;$i<$max_row;$i++):
49 $class=($i%2==0)?' class="even" ':' class="odd" ';
50 ?>
51 <tr <?php echo $class?>>
52 <td>
53 <?php echo $row['cdate']?>
54 </td>
55 <td>
56 <?php echo HtmlInput::card_detail($row['sg_code'],"",' class="line" ',true)?>
57 </td>
58 <td>
59 <?php echo $row['r_name']?>
60 </td>
61 <td>
62 <?php if (trim($row['qcode']??"")!='') : ?>
63 <?php echo HtmlInput::card_detail($row['qcode'],$row['fname'],' class="line" ')?>
64 <?php endif; ?>
65 </td>
66 <td>
67 <?php if (trim($row['jr_internal']??"")!='') : ?>
68 <?php echo HtmlInput::detail_op($row['jr_id'],$row['jr_internal'])?>
69 <?php endif; ?>
70 </td>
71 <td>
72 <?php echo $row['ccomment']?>
73 </td>
74 <td class="num">
75 <?php echo nbm($row['j_montant'])?>
76 </td>
77 <td class="num">
78 <?php echo nbm($row['sg_quantity'])?>
79 </td>
80 <td>
81 <?php echo $row['direction']?>
82 </td>
83 </tr>
84 <?php endfor;?>
85</table>
86 <?php echo $nav_bar?>
87</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
nbm($p_number, $p_dec=2)
format the number with a sep.
Definition: ac_common.php:137
static fetch_array($ret, $p_indice=0, $p_mode=PGSQL_ASSOC)
wrapper for the function pg_fetch_array
static detail_op($p_jr_id, $p_mesg)
return a string containing the html code for calling the modifyOperation
static card_detail($p_qcode, $pname='', $p_style="", $p_nohistory=false, $nofollowup=false)
show the detail of a card
$all table
if($g_parameter->MY_STOCK=='N') if(isset( $_POST[ 'add_stock'])) if(isset($_POST['mod_stock'])) $tb
endfor
$class
Definition: stock_histo.php:49