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
00025
00026
00050 require ('init.php');
00051 require ('template.php');
00052
00053
00054
00055
00063 class SC_alt_mod_frameset {
00064
00065
00066 var $defaultWidth = 245;
00067 var $resizable = TRUE;
00068
00069
00070 var $content;
00071
00072
00073 var $exScript='';
00074 var $id='';
00075 var $fW='';
00076
00077
00078
00079
00080
00081
00082
00088 function main() {
00089 global $BE_USER,$TBE_TEMPLATE,$TBE_STYLES;
00090
00091
00092 $this->exScript = t3lib_div::_GP('exScript');
00093 $this->id = t3lib_div::_GP('id');
00094 $this->fW = t3lib_div::_GP('fW');
00095
00096
00097 $this->resizable = $BE_USER->uc['navFrameResizable'] ? TRUE : FALSE;
00098
00099
00100 if (intval($this->fW) && $this->resizable) {
00101 $width = t3lib_div::intInRange($this->fW,100,1000)+10;
00102 } else {
00103 $width = $BE_USER->uc['navFrameWidth'];
00104 $width = intval($width)?intval($width):($TBE_STYLES['dims']['navFrameWidth'] ? intval($TBE_STYLES['dims']['navFrameWidth']) : $this->defaultWidth);
00105 }
00106
00107
00108 $script = t3lib_div::_GP('script');
00109 $nav = t3lib_div::_GP('nav');
00110 $URL_nav = htmlspecialchars($nav.'?currentSubScript='.rawurlencode($script));
00111
00112
00113 $URL_list = htmlspecialchars($this->exScript?$this->exScript:($script.($this->id?'?id='.rawurlencode($this->id):'')));
00114
00115
00116 $TBE_TEMPLATE->docType='xhtml_frames';
00117 $this->content = $TBE_TEMPLATE->startPage('Frameset');
00118
00119
00120 $onLoadHandler = ' onload="if(top.content.nav_frame.location.href.length == 1) {top.content.nav_frame.location=\''.$URL_nav.'\';};"';
00121
00122 if ($this->resizable) {
00123 $this->content.= '
00124 <frameset cols="'.$width.',*"'.$onLoadHandler.'>
00125 <frame name="nav_frame" src="'.$URL_nav.'" marginwidth="0" marginheight="0" scrolling="auto" />
00126 <frame name="list_frame" src="'.$URL_list.'" marginwidth="0" marginheight="0" scrolling="auto" />
00127 </frameset>
00128
00129 </html>
00130 ';
00131 } else {
00132 $this->content.= '
00133
00134 <frameset cols="'.$width.',8,*" framespacing="0" frameborder="0" border="0"'.$onLoadHandler.'>
00135 <frame name="nav_frame" src="'.$URL_nav.'" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />
00136 <frame name="border_frame" src="border.html" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />
00137 <frame name="list_frame" src="'.$URL_list.'" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />
00138 </frameset>
00139
00140 </html>
00141 ';
00142 }
00143 }
00144
00150 function printContent() {
00151 echo $this->content;
00152 }
00153 }
00154
00155
00156 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_mod_frameset.php']) {
00157 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_mod_frameset.php']);
00158 }
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175 $SOBE = t3lib_div::makeInstance('SC_alt_mod_frameset');
00176 $SOBE->main();
00177 $SOBE->printContent();
00178 ?>