• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

Services/Frameset/classes/class.ilFramesetGUI.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2006 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
00021         +-----------------------------------------------------------------------------+
00022 */
00023 
00024 
00032 class ilFramesetGUI
00033 {
00034 
00039         function ilFramsetGUI()
00040         {
00041         }
00042         
00046         function setFramesetTitle($a_fs_title)
00047         {
00048                 $this->frameset_title = $a_fs_title;
00049         }
00050         
00054         function setMainFrameSource($a_main_source)
00055         {
00056                 $this->main_frame_source = $a_main_source;
00057         }
00058 
00062         function setMainFrameTitle($a_main_title)
00063         {
00064                 $this->main_frame_title = $a_main_title;
00065         }
00066 
00070         function setMainFrameName($a_main_name)
00071         {
00072                 $this->main_frame_name = $a_main_name;
00073         }
00074 
00078         function setSideFrameSource($a_side_source)
00079         {
00080                 $this->side_frame_source = $a_side_source;
00081         }
00082 
00086         function setSideFrameTitle($a_side_title)
00087         {
00088                 $this->side_frame_title = $a_side_title;
00089         }
00090         
00094         function setSideFrameName($a_side_name)
00095         {
00096                 $this->side_frame_name = $a_side_name;
00097         }
00098 
00102         function show()
00103         {
00104                 global $ilSetting;
00105                 
00106                 if ($ilSetting->get("tree_frame") == "right")
00107                 {
00108                         $main = "LEFT";
00109                         $side = "RIGHT";
00110                 }
00111                 else
00112                 {
00113                         $main = "RIGHT";
00114                         $side = "LEFT";
00115                 }
00116                 
00117                 $main_width = "*";
00118                 $side_width = "25%";
00119 
00120                 $tpl = new ilTemplate("tpl.frameset.html", true, false);
00121                 $tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
00122                 $tpl->setVariable("PAGETITLE", "- ".$this->frameset_title);
00123                 $tpl->setVariable("SRC_".$main, $this->main_frame_source);
00124                 $tpl->setVariable("SRC_".$side, $this->side_frame_source);
00125                 $tpl->setVariable("TITLE_".$main, $this->main_frame_title);
00126                 $tpl->setVariable("TITLE_".$side, $this->side_frame_title);
00127                 $tpl->setVariable("NAME_".$main, $this->main_frame_name);
00128                 $tpl->setVariable("NAME_".$side, $this->side_frame_name);
00129                 $tpl->setVariable("WIDTH_".$main, $main_width);
00130                 $tpl->setVariable("WIDTH_".$side, $side_width);
00131                 if ($ilSetting->get('short_inst_name') != "")
00132                 {
00133                         $tpl->setVariable("WINDOW_TITLE",
00134                                 $ilSetting->get('short_inst_name'));
00135                 }
00136                 else
00137                 {
00138                         $tpl->setVariable("WINDOW_TITLE",
00139                                 "ILIAS");
00140                 }
00141 
00142                 $tpl->show("DEFAULT", false);
00143         }
00144 
00145 }
00146 

Generated on Fri Dec 13 2013 17:56:57 for ILIAS Release_3_9_x_branch .rev 46835 by  doxygen 1.7.1