noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
default_menu.inc.php
Go to the documentation of this file.
00001 <?php
00002 /*
00003  *   This file is part of NOALYSS.
00004  *
00005  *   NOALYSS is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   NOALYSS is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with NOALYSS; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018  */
00019 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00020 
00021 if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
00022 require_once 'class_default_menu.php';
00023 
00024 global $cn,$g_failed,$g_succeed;
00025 
00026 $a_default=new Default_Menu();
00027 
00028 if ( isset($_POST['save_menu_default']) ) {
00029     $a_default->set('code_follow',$_POST['code_follow']);
00030     $a_default->set('code_invoice',$_POST['code_invoice']);
00031     try
00032     {
00033         $a_default->save();
00034         echo h2("Sauvé",'class="notice"',$g_succeed);
00035     } catch (Exception $ex)
00036     {
00037         echo h2("Code menu invalide",'class="notice"',$g_failed);
00038     }
00039 }
00040 
00041 echo '<form method="POST">';
00042 echo HtmlInput::hidden('ac',$_REQUEST['ac']);
00043 echo Dossier::hidden();
00044 $a_default->input_value();
00045 echo HtmlInput::submit('save_menu_default', "Sauver");
00046 echo '</form>';
00047 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations