noalyss Version-9
ajax_mod_stock_repo.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 a depot
26 *
27 */
28if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
29require_once NOALYSS_INCLUDE.'/database/stock_sql.class.php';
31$st=new Stock_Sql($cn,$_GET['r_id']);
32?>
33<?php echo HtmlInput::title_box("Ajouter un dépôt","change_stock_repo_div","close")?>
34 <form method="post">
35 <?php echo HtmlInput::hidden("r_id",$_GET['r_id']);?>
36 <table>
37 <tr>
38 <td>
39 <?php echo _("Nom");?>
40 </td>
41 <td>
42 <?php $name=new IText("r_name",$st->r_name); echo $name->input();?>
43 </td>
44 </tr>
45 <tr>
46 <td>
47 <?php echo _("Adresse");?>
48 </td>
49 <td>
50 <?php $name=new IText("r_adress",$st->r_adress); echo $name->input();?>
51 </td>
52 </tr>
53 <tr>
54 <td>
55 <?php echo _("Ville");?>
56 </td>
57 <td>
58 <?php $name=new IText("r_city",$st->r_city); echo $name->input();?>
59 </td>
60 </tr>
61 <tr>
62 <td>
63 <?php echo _("Pays");?>
64 </td>
65 <td>
66 <?php $name=new IText("r_country",$st->r_country); echo $name->input();?>
67 </td>
68 </tr>
69 <tr>
70 <td>
71 <?php echo _("Téléphone");?>
72 </td>
73 <td>
74 <?php $name=new IText("r_phone",$st->r_phone); echo $name->input();?>
75 </td>
76 </tr>
77
78 </table>
79 <?php echo HtmlInput::submit("mod_stock",_("Sauver"))?>
80 </form>
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
$_GET['qcode']
static connect()
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.
Definition: itext.class.php:30
ORM abstract of the table public.stock_repository.
$all table