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
recup_args.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: recup_args.php,v 1.3 2005/06/28 08:37:46 eric Exp $
12
* @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13
* @package FDL
14
* @subpackage GED
15
*/
16
/**
17
*/
18
// ---------------------------------------------------------------
19
// $Id: recup_args.php,v 1.3 2005/06/28 08:37:46 eric Exp $
20
// $Source: /home/cvsroot/anakeen/freedom/freedom/Action/Freedom/recup_args.php,v $
21
// ---------------------------------------------------------------
22
include_once (
"FDL/Class.Doc.php"
);
23
include_once (
"FDL/Class.DocFam.php"
);
24
include_once (
"FDL/modcard.php"
);
25
function
recup_args
(&
$action
)
26
{
27
28
$action
->parent->AddJsRef(
$action
->GetParam(
"CORE_JSURL"
) .
"/subwindow.js"
);
29
30
$famid
=
GetHttpVars
(
"famid"
);
31
// printf($famid);
32
$xml =
GetHttpVars
(
"xml"
);
33
$temp = base64_decode($xml);
34
// printf("hey");
35
//printf($temp);
36
$dbaccess
=
$action
->GetParam(
"FREEDOM_DB"
);
37
$attrid =
GetHttpVars
(
"attrid"
);
38
39
$action
->lay->Set(
"attrid"
, $attrid);
40
41
$docid
=
GetHttpVars
(
"docid"
);
42
//printf($docid);
43
$dbaccess
=
$action
->GetParam(
"FREEDOM_DB"
);
44
45
$doc
=
new_Doc
(
$dbaccess
,
$docid
);
46
//print_r($doc);
47
if
(
$doc
->GetValue(
"act_type"
) == 1) {
//action de type action
48
$idoc
=
createDoc
(
$dbaccess
, 601);
49
$action
->lay->Set(
"famid"
, 601);
// familly action_implement
50
51
}
52
if
(
$doc
->GetValue(
"act_type"
) == 2) {
//action de type condition
53
$idoc
=
createDoc
(
$dbaccess
, 602);
54
$action
->lay->Set(
"famid"
, 602);
// familly condition_implement
55
56
}
57
58
$args_nom =
$doc
->GetValue(
"act_liste_noms"
);
59
//printf($args_nom);
60
$args_descrps =
$doc
->GetValue(
"act_liste_descrps"
);
61
62
$idoc
->SetValue(
"ai_args_nom"
, $args_nom);
63
$idoc
->SetValue(
"ai_args_descrip"
, $args_descrps);
64
65
$nom =
GetHttpVars
(
"nom_act"
);
66
$titre =
GetHttpVars
(
"titre"
);
67
//printf("titre : ");
68
//printf($titre);
69
$idoc
->SetValue(
"ai_action"
, $nom);
70
$idoc
->SetValue(
"ba_title"
, $titre);
71
$idoc
->SetValue(
"ai_idaction"
,
$docid
);
72
//printf("ai_args_nom : ");
73
//printf($idoc->GetValue("ai_args_nom"));
74
// print_r($idoc);
75
$xml2 =
$idoc
->toxml(
false
,
""
);
76
//printf($xml2);
77
$xml_send = base64_encode($xml2);
78
$action
->lay->Set(
"xml2"
, $xml_send);
79
}
80
?>
← centre documentaire
© anakeen
- published under
CC License
-
Dynacase