Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
editicon.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: editicon.php,v 1.1 2006/11/16 16:41:19 eric Exp $
11  * @package FDL
12  * @subpackage GED
13  */
14 /**
15  */
16 
17 include_once ("FDL/Class.Doc.php");
18 include_once ("FDL/Class.DocAttr.php");
19 include_once ("VAULT/Class.VaultDiskStorage.php");
20 
21 function editicon(Action & $action)
22 {
23  $docid = GetHttpVars("id", 0);
24 
25  $doc = new_Doc($action->dbaccess, $docid);
26  $action->lay->eSet("APP_TITLE", _($action->parent->description));
27  $action->lay->Set("docid", urlencode($docid));
28  $action->lay->eset("title", $doc->title);
29  $action->lay->Set("iconsrc", $doc->geticon());
30 
31  $q = new QueryDb($action->dbaccess, "VaultDiskStorage");
32  $q->dbaccess = $action->dbaccess;
33  $q->basic_elem->dbaccess = $action->dbaccess; // correct for special constructor
34  $q->AddQuery("public_access");
35  $l = $q->Query(0, 0, "TABLE");
36  $action->lay->setBlockData("ICONLIST", $l);
37 }
global $action
Set($name, &$parent)
$docid
Definition: cleanFamily.php:13
editicon(Action &$action)
Definition: editicon.php:21
new_Doc($dbaccess, $id= '', $latest=false)
← centre documentaire © anakeen