noalyss Version-9
stock_inv.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 input
27 *
28 */
29?>
30<?php if ($p_readonly == false) echo HtmlInput::button("reprise_show",_('Reprise inventaire'), " onclick=\"$('reprise_inventaire_div').show();\"")?>
31
32<div style="<?php if ( ! $p_readonly) echo "position:absolute";?>" class="content">
33 <form method="POST" id="stock_reprise" class="print" onsubmit="return confirm_box(this,'<?php echo _("Vous confirmez ?")?>')">
34 <input type="hidden" name="save" value="1">
35<table>
36 <tr><td>
37 <?php echo _("Date")?>
38 </td>
39 <td>
40 <?php echo $date->input()?>
41 </td>
42 </tr>
43 <tr>
44 <td>
45 <?php echo _("Dépot")?>
46 </td>
47 <td>
48 <?php echo $idepo->input()?>
49 </td>
50 </tr>
51 <tr>
52 <td>
53 <?php echo _("Motif de changement")?>
54 </td>
55 <td>
56 <?php echo $motif->input()?>
57 </td>
58 </tr>
59</table>
60<table id="stock_tb" style="width: 80%">
61 <tr>
62 <th style="text-align: left">
63 <?php echo _("Code Stock")?>
64 </th>
65<?php if ( $p_readonly == true ) :?>
66 <th style="text-align: left">
67 <?php echo _("Fiche")?>
68 </th>
69<?php endif;?>
70 <th style="text-align:right">
71 <?php echo _("Quantité")?>
72 </th>
73 </tr>
74<?php for($i=0;$i<$nb;$i++): ?>
75 <tr>
76 <td>
77<?php if ( $p_readonly == false) : ?>
78 <?php echo $sg_code[$i]->input()?>
79 <?php echo $sg_code[$i]->search()?>
80 <?php echo $label[$i]->input()?>
81<?php else: ?>
82 <?php if ( trim($sg_code[$i]->value) != "") echo HtmlInput::card_detail($sg_code[$i]->value,h($sg_code[$i]->value),' class="line"',true)?>
83<?php endif ?>
84
85 </td>
86<?php if ( $p_readonly == true && isset ($fiche[$i])) :?>
87 <td>
88 <?php echo HtmlInput::card_detail($fiche[$i]->get_quick_code(),h($fiche[$i]->getName()),' class="line"');?>
89 </td>
90<?php endif;?>
91 <TD class="num"">
92 <?php if ($sg_quantity[$i]->value==0 && $p_readonly==true):?>
93
94 <?php else : ?>
95 <?php echo $sg_quantity[$i]->input()?>
96 <?php endif;?>
97 </td>
98 <TD class="num"">
99 <?php if (isset ($sg_type[$i])):?>
100 <?php echo $sg_type[$i]?>
101 <?php endif;?>
102 </td>
103 </tr>
104<?php endfor; ?>
105</table>
106<?php if ($p_readonly == false) echo HtmlInput::button_action(_('Ajouter une ligne'),'stock_add_row();',"xx",'smallbutton')?>
107<?php if ($p_readonly == false) echo HtmlInput::submit('save',_('Sauver'))?>
108<?php if ($p_readonly == false) echo HtmlInput::hidden('row',$nb)?>
109 </form>
110</div>
111<div class="inner_box" id="reprise_inventaire_div" style="display:none">
112 <form method="get">
113 <?php echo HtmlInput::title_box(_('Reprise inventaire'), 'reprise_inventaire_div', 'hide');?>
114 <?php echo HtmlInput::request_to_hidden(array('gDossier','ac'))?>
115 <table>
116 <tr>
117 <td>
118 <?php echo _('Dépot'); ?>
119 </td>
120 <td>
121 <?php echo $idepo->input()?>
122 </td>
123 </tr>
124 <tr>
125 <td>
126 <?php echo _('Exercice')?>
127 </td>
128 <td>
129 <?php echo $select_exercice->input();?>
130 </td>
131 </tr>
132 </table>
133 <?php echo HtmlInput::hidden('reprise_frm',1);?>
134 <?php echo HtmlInput::submit("reprise_frm_bt", _('Reprise inventaire'));?>
135 </form>
136</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
h( $row[ 'oa_description'])
$opd_description style
$from_poste name
$input_from type
Definition: balance.inc.php:65
static request_to_hidden(array $array)
transform $_REQUEST data to hidden
static button($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
static card_detail($p_qcode, $pname='', $p_style="", $p_nohistory=false, $nofollowup=false)
show the detail of a card
static button_action($action, $javascript, $id=NULL, $p_class="button", $p_symbole="")
button Html with javascript
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")
$all table
endfor