noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
stock_inv.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 /* $Revision$ */
00021 
00022 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00023 
00024 /**
00025  * @file
00026  * @brief show the input
00027  *
00028  */
00029 ?>
00030 <div class="content">
00031         <form method="POST" class="print" onsubmit="return confirm('<?php echo _("Vous confirmez ?")?>')">
00032 <table>
00033         <tr><td>
00034                         <?php echo _("Date")?>
00035                 </td>
00036                 <td>
00037                         <?php echo $date->input()?>
00038                 </td>
00039         </tr>
00040         <tr>
00041                 <td>
00042                         <?php echo _("Dépot")?>
00043                 </td>
00044                 <td>
00045                         <?php echo $idepo->input()?>
00046                 </td>
00047         </tr>
00048         <tr>
00049                 <td>
00050                         <?php echo _("Motif de changement")?>
00051                 </td>
00052                 <td>
00053                         <?php echo $motif->input()?>
00054                 </td>
00055         </tr>
00056 </table>
00057 <table id="stock_tb" style="width: 80%">
00058         <tr>
00059                 <th style="text-align: left">
00060                         <?php echo _("Code Stock")?>
00061                 </th>
00062 <?php if ( $p_readonly == true ) :?>
00063                 <th style="text-align: left">
00064                         <?php echo _("Fiche")?>
00065                 </th>
00066 <?php endif;?>
00067                 <th style="text-align:right">
00068                         <?php echo _("Quantité")?>
00069                 </th>
00070         </tr>
00071 <?php for($i=0;$i<$nb;$i++): ?>
00072         <tr>
00073                 <td>
00074 <?php if ( $p_readonly == false) : ?>
00075                         <?php echo $sg_code[$i]->input()?>
00076                         <?php echo $sg_code[$i]->search()?>
00077                         <?php echo $label[$i]->input()?>
00078 <?php else: ?>
00079                         <?php if ( trim($sg_code[$i]->value) != "")  echo HtmlInput::card_detail($sg_code[$i]->value,h($sg_code[$i]->value),' class="line"',true)?>
00080 <?php endif ?>
00081 
00082                 </td>
00083 <?php if ( $p_readonly == true && isset ($fiche[$i])) :?>
00084                 <td>
00085                         <?php echo HtmlInput::card_detail($fiche[$i]->get_quick_code(),h($fiche[$i]->getName()),' class="line"');?>
00086                 </td>
00087 <?php endif;?>
00088                 <TD class="num"">
00089                 <?php if ($sg_quantity[$i]->value==0 && $p_readonly==true):?>
00090 
00091                 <?php else : ?>
00092                         <?php echo $sg_quantity[$i]->input()?>
00093                         <?php endif;?>
00094                 </td>
00095                 <TD class="num"">
00096                         <?php if (isset ($sg_type[$i])):?>
00097                         <?php echo $sg_type[$i]?>
00098                         <?php endif;?>
00099                 </td>
00100         </tr>
00101 <?php endfor; ?>
00102 </table>
00103 <?php if ($p_readonly == false) echo HtmlInput::button_action(_('Ajouter une ligne'),'stock_add_row();')?>
00104 <?php if ($p_readonly == false) echo HtmlInput::submit('save',_('Sauver'))?>
00105 <?php if ($p_readonly == false) echo HtmlInput::hidden('row',$nb)?>
00106         </form>
00107 </div>
 All Data Structures Namespaces Files Functions Variables Enumerations