Plugins
LAST
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Pages
amortis
include
material_new.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
/* $Revision$ */
20
21
// Copyright (c) 2002 Author Dany De Bontridder dany@alchimerys.be
22
23
/*!\file
24
* \brief save new material and show a form with the amount for each year, insert into amortissement and amortissement detail
25
*/
26
require_once(
'class_am_card.php'
);
27
28
/*
29
* save into tables
30
*/
31
$ac
=
new
Am_Card
();
32
$ac
->from_array(
$_REQUEST
);
33
$err
=
$ac
->verify_post() ;
34
if
(
$err
==
""
) {
35
36
$ac
->add();
37
/*
38
* show the div to modify it
39
*/
40
$ac
->input();
41
}
else
{
42
include
'material_add.inc.php'
;
43
$err
=str_replace(
"\n"
,
"<br>"
,
$err
);
44
echo
'<span class="error">'
.$err.
'</div>'
;
45
}
$err
$err
Definition:
material_new.inc.php:33
$ac
$ac
Definition:
material_new.inc.php:31
Am_Card
Definition:
class_am_card.php:30
$_REQUEST
$_REQUEST['sb']
Definition:
am_print.php:39
Generated on Wed Feb 1 2017 23:19:24 for Plugins by
1.8.6