Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
freedom_iedit2.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  * Edition of virtual document
9  *
10  * @author Anakeen 2000
11  * @version $Id: freedom_iedit2.php,v 1.6 2005/03/08 17:53:56 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 include_once ("FDL/Class.Doc.php");
20 include_once ("FDL/Class.WDoc.php");
21 include_once ("Class.QueryDb.php");
22 include_once ("FDL/freedom_util.php");
23 include_once ("FDL/Lib.Dir.php");
24 include_once ("VAULT/Class.VaultFile.php");
25 include_once ("FDL/fdl_xml.php");
26 
27 // -----------------------------------
29 {
30  // -----------------------------------
31  global $action;
32  // Get All Parameters
33  $xml = GetHttpVars("xml");
34 
35  $famid = GetHttpVars("famid");
36  //printf($famid);
37  $type_attr = GetHttpVars("type_attr");
38  $action->lay->Set("type_attr", $type_attr);
39 
40  $mod = GetHttpVars("mod");
41  $action->lay->Set("mod", $mod);
42 
43  $attrid = GetHttpVars("attrid");
44  $action->lay->Set("attrid", $attrid);
45 
46  $action->lay->Set("xml_initial", $xml);
47 
48  $famid = GetHttpVars("famid");
49 
50  $dbaccess = $action->GetParam("FREEDOM_DB");
51 
52  $idoc = fromxml($dbaccess, $xml, $famid, true);
53  SetHttpVar("id", $idoc->id);
54  $idoc->SetTitle($idoc->title);
55 
56  $action->lay->Set("docid", $idoc->id);
57  $action->lay->Set("TITLE", $idoc->title);
58  $action->lay->Set("STITLE", addslashes($idoc->title));
59  $action->lay->Set("iconsrc", $idoc->geticon());
60  $action->lay->Set("famid", $famid);
61  $action->lay->Set("id", $idoc->id);
62  // $xml_initial=addslashes(htmlentities($xml));
63 
64 
65 }
66 ?>
← centre documentaire © anakeen - published under CC License - Dynacase