Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
editattr.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @package FDL
5 */
6 /**
7  * Generated Header (not documented yet)
8  *
9  * @author Anakeen
10  * @version $Id: editattr.php,v 1.10 2005/06/28 08:37:46 eric Exp $
11  * @package FDL
12  * @subpackage
13  */
14 /**
15  */
16 // ---------------------------------------------------------------
17 // $Id: editattr.php,v 1.10 2005/06/28 08:37:46 eric Exp $
18 // $Source: /home/cvsroot/anakeen/freedom/freedom/Zone/Fdl/editattr.php,v $
19 // ---------------------------------------------------------------
20 include_once ("FDL/Class.Doc.php");
21 include_once ("FDL/Class.DocAttr.php");
22 
23 include_once ("FDL/freedom_util.php");
24 include_once ("FDL/editutil.php");
25 // Compute value to be inserted in a specific layout
26 // -----------------------------------
27 function editattr(Action & $action)
28 {
29  // -----------------------------------
30  // GetAllParameters
31  $docid = GetHttpVars("id", 0);
32  $classid = GetHttpVars("classid");
33  // Set the globals elements
34  $dbaccess = $action->dbaccess;
35 
36  if ($docid == 0) $doc = new_Doc($dbaccess, $classid);
37  else $doc = new_Doc($dbaccess, $docid);
38 
39  $doc->lay = $action->lay;
40  $doc->editattr();
41 
42  $action->lay = $doc->lay;
43 
44  return;
45 }
global $action
$docid
Definition: cleanFamily.php:13
new_Doc($dbaccess, $id= '', $latest=false)
$dbaccess
Definition: checkVault.php:17
editattr(Action &$action)
Definition: editattr.php:27
← centre documentaire © anakeen