noalyss Version-9
ajax_view_mod_stock.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
21// Copyright Author Dany De Bontridder danydb@aevalys.eu
22
23/**
24 * @file
25 * @brief show detail of inv.
26 *
27 */
28if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
29
31$array=$cn->get_array("select * from stock_goods where c_id=$1",array($_GET['c_id']));
32echo HtmlInput::title_box(_("Détail changement"),$_GET['ctl']);
33$p_array=array();
34$p_array['p_date']=$cn->get_value("select to_char(c_date,'DD.MM.YYYY') from stock_change where c_id=$1",array($_GET['c_id']));
35$p_array['p_motif']=$cn->get_value("select c_comment from stock_change where c_id=$1",array($_GET['c_id']));
36$p_array['p_depot']=$cn->get_value("select r_id from stock_change where c_id=$1",array($_GET['c_id']));
37for ($i=0;$i<count($array);$i++)
38{
39 $p_array['f_id'.$i]=$array[$i]['f_id'];
40 $p_array['sg_code'.$i]=$array[$i]['sg_code'];
41 $p_array['sg_quantity'.$i]=$array[$i]['sg_quantity'];
42 $p_array['sg_type'.$i]=$array[$i]['sg_type'];
43 $p_array['row']=$i+1;
44}
45echo $st->input($p_array,true);
46?>
47<form method="POST">
48 <?php echo HtmlInput::hidden('c_id',$_GET['c_id']);?>
49 <p>
50 <?php $ck=new ICheckBox("ok"," 1");
51 $ck->label= _("Cochez pour confirmer effacement");
52 echo $ck->input();?>
53 </p>
54 <?php echo HtmlInput::submit("del",_("Effacer"));?>
55 <?php echo HtmlInput::button_close($_GET['ctl'])?>
56 <?php echo HtmlInput::hidden('r_id',$p_array['p_depot'])?>
57</form>
p($p_string)
Definition: ac_common.php:39
$_GET['qcode']
static button_close($div_name, $class='smallbutton')
close button for the HTML popup
static hidden($p_name, $p_value, $p_id="")
static title_box($p_name, $p_div, $p_mod="close", $p_js="", $p_draggable="n", $p_enlarge='n')
Title for boxes, you can customize the symbol thanks symbol with the mode "custom".
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
Html Input.
Manage the goods.