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
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050 require ('init.php');
00051 require ('template.php');
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061 class SC_alt_mod_frameset {
00062
00063
00064 var $defaultWidth = 245;
00065 var $resizable = TRUE;
00066
00067
00068 var $content;
00069
00070
00071 var $exScript='';
00072 var $id='';
00073 var $fW='';
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086 function main() {
00087 global $BE_USER,$TBE_TEMPLATE,$TBE_STYLES;
00088
00089
00090 $this->exScript = t3lib_div::_GP('exScript');
00091 $this->id = t3lib_div::_GP('id');
00092 $this->fW = t3lib_div::_GP('fW');
00093
00094
00095 $this->resizable = $BE_USER->uc['navFrameResizable'] ? TRUE : FALSE;
00096
00097
00098 if (intval($this->fW) && $this->resizable) {
00099 $width = t3lib_div::intInRange($this->fW,100,1000)+10;
00100 } else {
00101 $width = $BE_USER->uc['navFrameWidth'];
00102 $width = intval($width)?intval($width):($TBE_STYLES['dims']['navFrameWidth'] ? intval($TBE_STYLES['dims']['navFrameWidth']) : $this->defaultWidth);
00103 }
00104
00105
00106 $script = t3lib_div::_GP('script');
00107 $nav = t3lib_div::_GP('nav');
00108 $URL_nav = htmlspecialchars($nav.'¤tSubScript='.rawurlencode($script));
00109
00110
00111 $URL_list = htmlspecialchars($this->exScript ? $this->exScript : ($script . ($this->id ? (strpos($script, '?') ? '&' : '?' ) . 'id=' . rawurlencode($this->id) : '')));
00112
00113
00114 $TBE_TEMPLATE->docType='xhtml_frames';
00115 $this->content = $TBE_TEMPLATE->startPage('Frameset');
00116
00117
00118 $onLoadHandler = ' onload="if(top.content.nav_frame.location.href.length == 1) {top.content.nav_frame.location=\''.$URL_nav.'\';};"';
00119
00120 if ($this->resizable) {
00121 $this->content.= '
00122 <frameset id="typo3-content-frameset" cols="'.$width.',*"'.$onLoadHandler.'>
00123 <frame name="nav_frame" src="'.$URL_nav.'" marginwidth="0" marginheight="0" scrolling="auto" />
00124 <frame name="list_frame" src="'.$URL_list.'" marginwidth="0" marginheight="0" scrolling="auto" />
00125 </frameset>
00126
00127 </html>
00128 ';
00129 } else {
00130 $this->content.= '
00131
00132 <frameset id="typo3-content-frameset" cols="'.$width.',8,*" framespacing="0" frameborder="0" border="0"'.$onLoadHandler.'>
00133 <frame name="nav_frame" src="'.$URL_nav.'" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />
00134 <frame name="border_frame" src="'.(isset($GLOBALS['TBE_STYLES']['border']) ? $GLOBALS['TBE_STYLES']['border'] : 'border.html').'" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" />
00135 <frame name="list_frame" src="'.$URL_list.'" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" />
00136 </frameset>
00137
00138 </html>
00139 ';
00140 }
00141 }
00142
00143
00144
00145
00146
00147
00148 function printContent() {
00149 echo $this->content;
00150 }
00151 }
00152
00153
00154 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_mod_frameset.php']) {
00155 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_mod_frameset.php']);
00156 }
00157
00158
00159
00160
00161
00162
00163
00164
00165 $SOBE = t3lib_div::makeInstance('SC_alt_mod_frameset');
00166 $SOBE->main();
00167 $SOBE->printContent();
00168
00169 ?>