Public Member Functions | |
| main () | |
| Creates the header and frameset for the module/submodules. | |
| printContent () | |
| Outputting the accumulated content to screen. | |
Public Attributes | |
| $defaultWidth = 245 | |
| $resizable = TRUE | |
| $content | |
| $exScript = '' | |
| $id = '' | |
| $fW = '' | |
|
|
Creates the header and frameset for the module/submodules.
Definition at line 88 of file alt_mod_frameset.php. References $TBE_STYLES, and $TBE_TEMPLATE. 00088 {
00089 global $BE_USER,$TBE_TEMPLATE,$TBE_STYLES;
00090
00091 // GPvars:
00092 $this->exScript = t3lib_div::_GP('exScript');
00093 $this->id = t3lib_div::_GP('id');
00094 $this->fW = t3lib_div::_GP('fW');
00095
00096 // Setting resizing flag:
00097 $this->resizable = $BE_USER->uc['navFrameResizable'] ? TRUE : FALSE;
00098
00099 // Setting frame width:
00100 if (intval($this->fW) && $this->resizable) { // Framewidth from stored value, last one.
00101 $width = t3lib_div::intInRange($this->fW,100,1000)+10; // +10 to compensate for width of scrollbar. However, width is always INSIDE scrollbars, so potentially it will jump a little forth/back...
00102 } else { // Framewidth from configuration;
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 // Navigation frame URL:
00108 $script = t3lib_div::_GP('script');
00109 $nav = t3lib_div::_GP('nav');
00110 $URL_nav = htmlspecialchars($nav.'?currentSubScript='.rawurlencode($script));
00111
00112 // List frame URL:
00113 $URL_list = htmlspecialchars($this->exScript?$this->exScript:($script.($this->id?'?id='.rawurlencode($this->id):'')));
00114
00115 // Start page output
00116 $TBE_TEMPLATE->docType='xhtml_frames';
00117 $this->content = $TBE_TEMPLATE->startPage('Frameset');
00118
00119 // THis onload handler is a bug-fix for a possible bug in Safari browser for Mac. Posted by Jack COLE. Should not influence other browsers negatively.
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 }
|
|
|
Outputting the accumulated content to screen.
Definition at line 150 of file alt_mod_frameset.php. 00150 {
00151 echo $this->content;
00152 }
|
|
|
Definition at line 70 of file alt_mod_frameset.php. |
|
|
Definition at line 66 of file alt_mod_frameset.php. |
|
|
Definition at line 73 of file alt_mod_frameset.php. |
|
|
Definition at line 75 of file alt_mod_frameset.php. |
|
|
Definition at line 74 of file alt_mod_frameset.php. |
|
|
Definition at line 67 of file alt_mod_frameset.php. |
1.3.8-20040913