Plugins
LAST
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Pages
amortis
include
material_modify.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
18
* 02111-1307 USA /
19
/* $Revision$ */
20
21
// Copyright (c) 2002 Author Dany De Bontridder dany@alchimerys.be
22
23
/*!\file
24
* \brief save the modification for a material
25
*\verb
26
array
27
'gDossier' => string '48' (length=2)
28
'plugin_code' => string 'AMORT' (length=5)
29
'op' => string 'save_modify' (length=11)
30
't' => string 'bxmat' (length=5)
31
'f' => string '210' (length=3)
32
\endverb
33
*/
34
require_once (
'class_am_card.php'
);
35
$a
=
$cn
->get_value(
"select a_id from amortissement.amortissement where f_id=$1"
,
36
array(
$f
));
37
if
(
$cn
->count() == 0 )
38
{
39
echo HtmlInput::anchor_close($t);
40
echo
'<h2 class="title">'
._(
'Détail de matériel'
).
'</h2>'
;
41
echo
"<h2 class=\"error\"> "
._(
"Bien à amortir effacé"
).
" </h2>"
;
42
echo HtmlInput::button(
'close'
,
"⨉"
,
"onclick=\"removeDiv('bxmat');refresh_window()\" "
);
43
}
44
else
45
{
46
$mat
=
new
Am_Card
();
47
$mat
->set_material(
$f
);
48
echo HtmlInput::anchor_close($t);
49
$mat
->input();
50
}
51
?>
$f
$f
Definition:
show_field.php:4
$a
$a
Definition:
print_all.inc.php:27
Am_Card
Definition:
class_am_card.php:30
$mat
$mat
Definition:
material_save.inc.php:28
$cn
global $cn
Definition:
amortis_constant.php:12
Generated on Wed Feb 1 2017 23:19:24 for Plugins by
1.8.6