Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
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>