noalyss Version-10
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
default_menu.inc.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19// Copyright Author Dany De Bontridder danydb@aevalys.eu
20
21if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
22
24
26
27if ( isset($_POST['save_menu_default']) ) {
28 $http=new \HttpInput();
29 $a_default->set('code_follow',$http->post('code_follow'));
30 $a_default->set('code_invoice',$http->post('code_invoice'));
31 try
32 {
33 $a_default->save();
34 echo h2("Sauvé",'class="notice"',$g_succeed);
35 } catch (Exception $ex)
36 {
37 echo h2("Code menu invalide",'class="notice"',$g_failed);
38 }
39}
40
41echo '<form method="POST">';
42echo HtmlInput::hidden('ac',$_REQUEST['ac']);
43echo Dossier::hidden();
44$a_default->input_value();
45echo HtmlInput::submit('save_menu_default', _("Sauver"));
46echo '</form>';
47?>
h2($p_string, $p_class="", $raw="")
Definition ac_common.php:68
$_REQUEST['ac']
_("actif, passif,charge,...")
$ex
Description of class_default_menu.
static hidden()
return a string to set gDossier into a FORM
static hidden($p_name, $p_value, $p_id="")
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
global $g_failed
global $g_succeed
$_POST['ac']
Definition do.php:323