Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
editexport.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  * Export edition
9  *
10  * @author Anakeen 2007
11  * @version $Id: editexport.php,v 1.4 2008/11/13 17:25:29 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/Lib.Dir.php");
21 include_once ("GENERIC/generic_util.php");
22 
23 function editexport(&$action)
24 {
25  $dbaccess = $action->GetParam("FREEDOM_DB");
26  $docid = GetHttpVars("id", 0);
27 
29 
30  $action->lay->Set("dirid", $docid);
31  $action->lay->Set("title", $doc->title);
32  $famid = 0;
33  $tclassdoc = GetClassesDoc($dbaccess, $action->user->id, $famid, "TABLE");
34  $selectclass = array();
35  $pref = getFamilyParameters($action, "FREEDOM_EXPORTCOLS");
36  $tfam = array_keys($pref);
37  foreach ($tclassdoc as $k => $cdoc) {
38  $selectclass[$k]["idcdoc"] = $cdoc["id"];
39  $selectclass[$k]["classname"] = getFamTitle($cdoc);
40  $selectclass[$k]["pref"] = in_array($cdoc["id"], $tfam);
41  }
42  $action->lay->setBlockData("coptions", $selectclass);
43 }
44 ?>
← centre documentaire © anakeen - published under CC License - Dynacase