noalyss Version-9
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 $a_default->set('code_follow',$_POST['code_follow']);
29 $a_default->set('code_invoice',$_POST['code_invoice']);
30 try
31 {
32 $a_default->save();
33 echo h2("Sauvé",'class="notice"',$g_succeed);
34 } catch (Exception $ex)
35 {
36 echo h2("Code menu invalide",'class="notice"',$g_failed);
37 }
38}
39
40echo '<form method="POST">';
41echo HtmlInput::hidden('ac',$_REQUEST['ac']);
42echo Dossier::hidden();
43$a_default->input_value();
44echo HtmlInput::submit('save_menu_default', _("Sauver"));
45echo '</form>';
46?>
h2($p_string, $p_class="", $raw="")
Definition: ac_common.php:68
$_REQUEST['ac']
$ex
Definition: balance.inc.php:45
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 $cn
global $g_succeed
$a_default
$_POST['ac']
Definition: do.php:310