Plugins  LAST
 All Data Structures Files Functions Variables Pages
tools_exercice.inc.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 (c) 2002 Author Dany De Bontridder dany@alchimerys.be
23 
24 /**
25  * @file
26  * @brief add an exercice of 12 month starting when we want
27  *
28  */
29 require_once 'class_tool_exercice.php';
30 global $g_succeed;
31 if (isset ($_POST['save']))
32 {
33  try
34  {
36  $exercice->fromPost();
37  $exercice->save();
38  printf (_("%s Vous avez ajouté %d mois depuis le %d/%d pour l'exercice %d "),$g_succeed,$_POST['nb_month'],$_POST['from_month'],$_POST['year'],$_POST['p_exercice']);
39  return;
40  }
41  catch (Exception $e)
42  {
43  alert($e->getMessage());
44  }
45 
46 }
47 
49 echo $exercice->input();
50 ?>
if(isset($_POST['save'])) $exercice
Description of class_tool_exercice.
global $g_succeed
global $cn