[ PHPXref.com ] [ Generated: Sun Jul 20 16:23:03 2008 ] [ Achievo ATK 5.6.0 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> app.php (source)

   1  <?php
   2    /**
   3     * This file is part of the Achievo ATK distribution.
   4     * Detailed copyright and licensing information can be found
   5     * in the doc/COPYRIGHT and doc/LICENSE files which should be
   6     * included in the distribution.
   7     *
   8     * This file is the skeleton main frameset file, which you can copy
   9     * to your application dir and modify if necessary. By default, it checks
  10     * the settings $config_top_frame to determine how many frames to show,
  11     * and reads the menu config to display the proper menu.
  12     *
  13     * @package atk
  14     * @subpackage skel
  15     *
  16     * @author Ivo Jansch <ivo@achievo.org>
  17     *
  18     * @copyright (c)2000-2004 Ibuildings.nl BV
  19     * @license http://www.achievo.org/atk/licensing ATK Open Source License
  20     *
  21     * @version $Revision: 1.3 $
  22     * $Id: app.php,v 1.3 2005/10/23 09:05:26 ivo Exp $
  23     */
  24  
  25    /**
  26     * @internal includes..
  27     */
  28  
  29    $config_atkroot = "./";
  30    include_once ("atk.inc");
  31    atksession();
  32    atksecure();
  33    $output='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">';
  34    $output.="\n<html>\n <head>\n";
  35    $output.='  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset='.text("charset","","atk").'">';
  36    $output.="\n  <title>".text('app_title')."</title>\n </head>\n";
  37  
  38    atkimport("atk.menu.atkmenu");
  39    atkimport("atk.utils.atkframeset");
  40    $menu = &atkMenu::getMenu();
  41  
  42    /* @var $menu atkmenuinterface */
  43  
  44    $position = $menu->getPosition();
  45    $scrolling = ($menu->getScrollable()==MENU_SCROLLABLE?FRAME_SCROLL_AUTO:FRAME_SCROLL_NO);
  46    if(isset($ATK_VARS["atknodetype"]) && isset($ATK_VARS["atkaction"]))
  47    {
  48      $destination = "dispatch.php?atknodetype=".$ATK_VARS["atknodetype"]."&atkaction=".$ATK_VARS["atkaction"];
  49      if (isset($ATK_VARS["atkselector"])) $destination.="&atkselector=".$ATK_VARS["atkselector"];
  50    }
  51    else
  52    {
  53      $destination = "welcome.php";
  54    }
  55  
  56    $topframe = &new atkFrame("75", "top", "top.php", FRAME_SCROLL_NO, true);
  57    $mainframe = &new atkFrame("*", "main", $destination, FRAME_SCROLL_AUTO, true);
  58    $menuframe = &new atkFrame(($position==MENU_LEFT||$position==MENU_RIGHT?190:$menu->getHeight()), "menu", "menu.php", $scrolling);
  59    $noframes = '<p>Your browser doesnt support frames, but this is required to run '.text('app_title')."</p>\n";
  60  
  61    $root = &new atkRootFrameset();
  62    if (atkconfig("top_frame"))
  63    {
  64      $outer = &new atkFrameSet("*", FRAMESET_VERTICAL, 0, $noframes);
  65      $outer->addChild($topframe);
  66      $root->addChild($outer);
  67    }
  68    else
  69    {
  70      $outer = &$root;
  71      $outer->m_noframes = $noframes;
  72    }
  73  
  74    $orientation = ($position==MENU_TOP||$position==MENU_BOTTOM?FRAMESET_VERTICAL:FRAMESET_HORIZONTAL);
  75  
  76    $wrapper = &new atkFrameSet("*", $orientation);
  77  
  78    if($position==MENU_TOP||$position==MENU_LEFT)
  79    {
  80      $wrapper->addChild($menuframe);
  81      $wrapper->addChild($mainframe);
  82    }
  83    else
  84    {
  85      $wrapper->addChild($mainframe);
  86      $wrapper->addChild($menuframe);
  87    }
  88  
  89    $outer->addChild($wrapper);
  90  
  91    $output.= $root->render();
  92    $output.= "</html>";
  93    echo $output;
  94  ?>


[ Powered by PHPXref - Served by Debian GNU/Linux ]