noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
ajax_view_mod_stock.php
Go to the documentation of this file.
00001 <?php
00002 
00003 /*
00004  *   This file is part of NOALYSS.
00005  *
00006  *   NOALYSS is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU General Public License as published by
00008  *   the Free Software Foundation; either version 2 of the License, or
00009  *   (at your option) any later version.
00010  *
00011  *   NOALYSS is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details.
00015  *
00016  *   You should have received a copy of the GNU General Public License
00017  *   along with NOALYSS; if not, write to the Free Software
00018  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  */
00020 
00021 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00022 
00023 /**
00024  * @file
00025  * @brief show detail of inv.
00026  *
00027  */
00028 require_once 'class_stock_goods.php';
00029 if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
00030 
00031 $st=new Stock_Goods($cn);
00032 $array=$cn->get_array("select * from stock_goods where c_id=$1",array($_GET['c_id']));
00033 echo HtmlInput::title_box(_("Détail changement"),$_GET['ctl']);
00034 $p_array=array();
00035 $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']));
00036 $p_array['p_motif']=$cn->get_value("select c_comment from stock_change where c_id=$1",array($_GET['c_id']));
00037 $p_array['p_depot']=$cn->get_value("select r_id from stock_change where c_id=$1",array($_GET['c_id']));
00038 for ($i=0;$i<count($array);$i++)
00039 {
00040         $p_array['f_id'.$i]=$array[$i]['f_id'];
00041         $p_array['sg_code'.$i]=$array[$i]['sg_code'];
00042         $p_array['sg_quantity'.$i]=$array[$i]['sg_quantity'];
00043         $p_array['sg_type'.$i]=$array[$i]['sg_type'];
00044         $p_array['row']=$i+1;
00045 }
00046 echo $st->input($p_array,true);
00047 ?>
00048 <form method="POST">
00049         <?php echo HtmlInput::hidden('c_id',$_GET['c_id']);?>
00050         <p>
00051         <?php $ck=new ICheckBox("ok"," 1");
00052                         $ck->label= _("Cochez pour confirmer effacement");
00053                         echo $ck->input();?>
00054         </p>
00055         <?php echo HtmlInput::submit("del",_("Effacer"));?>
00056         <?php echo HtmlInput::button_close($_GET['ctl'])?>
00057         <?php echo HtmlInput::hidden('r_id',$p_array['p_depot'])?>
00058 </form>
 All Data Structures Namespaces Files Functions Variables Enumerations