Platform
3.1
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
param_edit.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5
* @package FDL
6
*/
7
/**
8
* Generated Header (not documented yet)
9
*
10
* @author Anakeen 2000
11
* @version $Id: param_edit.php,v 1.4 2003/08/18 15:46:41 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage APPMNG
15
*/
16
/**
17
*/
18
// ---------------------------------------------------------------
19
// $Id: param_edit.php,v 1.4 2003/08/18 15:46:41 eric Exp $
20
// $Source: /home/cvsroot/anakeen/freedom/core/Action/Appmng/param_edit.php,v $
21
// ---------------------------------------------------------------
22
// $Log: param_edit.php,v $
23
// Revision 1.4 2003/08/18 15:46:41 eric
24
// phpdoc
25
//
26
// Revision 1.3 2002/05/24 09:23:07 eric
27
// changement structure table paramv
28
//
29
// Revision 1.2 2002/05/23 16:14:40 eric
30
// paramètres utilisateur
31
//
32
// Revision 1.1 2002/01/08 12:41:33 eric
33
// first
34
//
35
// Revision 1.1 2001/01/29 15:50:59 marianne
36
// prise en compte de la gestion des parametres
37
//
38
// ---------------------------------------------------------------
39
include_once (
"Class.Param.php"
);
40
include_once (
"Class.SubForm.php"
);
41
// -----------------------------------
42
function
param_edit
(&
$action
)
43
{
44
// -----------------------------------
45
// Get all the params
46
$name
=
GetHttpVars
(
"id"
);
47
$appid =
GetHttpVars
(
"appid"
);
48
$atype =
GetHttpVars
(
"atype"
,
PARAM_APP
);
49
50
$action
->lay->Set(
"appid"
, $appid);
51
$action
->lay->Set(
"atype"
, $atype);
52
53
if
(
$name
==
""
) {
54
$input_name =
new
Layout
(
$action
->GetLayoutFile(
"input_name.xml"
) ,
$action
);
55
$action
->lay->Set(
"NAME_EDIT"
, $input_name->gen());
56
$param
=
new
Param
(
""
);
57
$action
->lay->Set(
"name"
,
""
);
58
$action
->lay->Set(
"val"
,
""
);
59
$action
->lay->Set(
"TITRE"
,
$action
->text(
"titleparamcreate"
));
60
$action
->lay->Set(
"BUTTONTYPE"
,
$action
->text(
"butcreate"
));
61
}
else
{
62
$param
=
new
Param
(
$action
->dbaccess, array(
63
$name
,
64
$atype,
65
$appid
66
));
67
$input_name =
new
Layout
(
$action
->GetLayoutFile(
"aff_name.xml"
) ,
$action
);
68
$input_name->Set(
"NAME"
,
$name
);
69
$action
->lay->Set(
"NAME_EDIT"
, $input_name->gen());
70
$action
->lay->Set(
"name"
,
$name
);
71
$action
->lay->Set(
"val"
,
$param
->val);
72
$action
->lay->Set(
"TITRE"
,
$action
->text(
"titleparammodify"
));
73
$action
->lay->Set(
"BUTTONTYPE"
,
$action
->text(
"butmodify"
));
74
}
75
}
76
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase