Public Member Functions | |
main () | |
Main function. | |
printContent () | |
Outputs the page content. | |
Public Attributes | |
$content |
|
Main function. Creates the header code in XHTML, the JavaScript, then the frameset for the two frames.
Definition at line 77 of file browser.php. 00077 { 00078 00079 // Setting GPvars: 00080 $mode =t3lib_div::_GP('mode'); 00081 $bparams = t3lib_div::_GP('bparams'); 00082 00083 00084 // Set doktype: 00085 $GLOBALS['TBE_TEMPLATE']->docType='xhtml_frames'; 00086 $GLOBALS['TBE_TEMPLATE']->JScode=$GLOBALS['TBE_TEMPLATE']->wrapScriptTags(' 00087 function closing() { // 00088 close(); 00089 } 00090 function setParams(mode,params) { // 00091 parent.content.document.location = "browse_links.php?mode="+mode+"&bparams="+params; 00092 } 00093 if (!window.opener) { 00094 alert("ERROR: Sorry, no link to main window... Closing"); 00095 close(); 00096 } 00097 '); 00098 00099 $this->content.=$GLOBALS['TBE_TEMPLATE']->startPage($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:TYPO3_Element_Browser')); 00100 00101 // URL for the inner main frame: 00102 $url = 'browse_links.php?mode='.rawurlencode($mode).'&bparams='.rawurlencode($bparams); 00103 00104 // Create the frameset for the window: 00105 // Formerly there were a ' onunload="closing();"' in the <frameset> tag - but it failed on Safari browser on Mac unless the handler was "onUnload" 00106 $this->content.=' 00107 <frameset rows="*,1" framespacing="0" frameborder="0" border="0"> 00108 <frame name="content" src="'.htmlspecialchars($url).'" marginwidth="0" marginheight="0" frameborder="0" scrolling="auto" noresize="noresize" /> 00109 <frame name="menu" src="dummy.php" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" noresize="noresize" /> 00110 </frameset> 00111 '; 00112 00113 $this->content.=' 00114 </html>'; 00115 }
|
|
Outputs the page content.
Definition at line 122 of file browser.php. 00122 { 00123 echo $this->content; 00124 }
|
|
Definition at line 69 of file browser.php. |