Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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("TXT_FS_TITLE", "ILIAS - ".$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 $tpl->show("DEFAULT", false);
00132 }
00133
00134 }
00135