Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
generic_root.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  * Display two frames
9  *
10  * @author Anakeen 2003
11  * @version $Id: generic_root.php,v 1.6 2006/11/09 10:52:50 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage
15  */
16 /**
17  */
18 include_once ("GENERIC/generic_util.php");
20 {
21 
22  $famid = GetHttpVars("famid"); // family restriction
23  $dbaccess = $action->GetParam("FREEDOM_DB");
24  if ($famid && (!is_numeric($famid))) $famid = getFamIdFromName($dbaccess, $famid);
25  if ($famid != "") $action->register("DEFAULT_FAMILY", $famid); // for old compatibility
26  $action->lay->set("famid", $famid);
27  $smode = getSplitMode($action);
28 
29  switch ($smode) {
30  case "H":
31 
32  $action->lay->set("rows", $action->getParam("GENEA_HEIGHT") . ",*");
33  $action->lay->set("cols", "");
34  break;
35 
36  default:
37  case "V":
38 
39  $action->lay->set("cols", $action->getParam("GENEA_WIDTH") . ",*");
40  $action->lay->set("rows", "");
41  break;
42  }
43  $action->lay->set("GTITLE", _($action->parent->short_name));
44  $action->lay->set("famid", $famid);
45 }
46 ?>
← centre documentaire © anakeen - published under CC License - Dynacase