Documentation TYPO3 par Ameos |
00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 2004 Kasper Skaarhoj (kasper@typo3.com) 00006 * (c) 2004 Philipp Borgmann <philipp.borgmann@gmx.de> 00007 * (c) 2004-2006 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca> 00008 * All rights reserved 00009 * 00010 * This script is part of the TYPO3 project. The TYPO3 project is 00011 * free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * The GNU General Public License can be found at 00017 * http://www.gnu.org/copyleft/gpl.html. 00018 * A copy is found in the textfile GPL.txt and important notices to the license 00019 * from the author is found in LICENSE.txt distributed with these scripts. 00020 * 00021 * 00022 * This script is distributed in the hope that it will be useful, 00023 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00024 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00025 * GNU General Public License for more details. 00026 * 00027 * This copyright notice MUST APPEAR in all copies of the script! 00028 ***************************************************************/ 00029 00039 error_reporting (E_ALL ^ E_NOTICE); 00040 unset($MCONF); 00041 require ('conf.php'); 00042 require ($BACK_PATH.'init.php'); 00043 require ($BACK_PATH.'template.php'); 00044 require_once (PATH_t3lib.'class.t3lib_div.php'); 00045 00046 $query_string = t3lib_div::getIndpEnv('QUERY_STRING'); 00047 $popupname = t3lib_div::_GET('popupname'); 00048 $src = t3lib_div::_GET('srcpath'); 00049 $editorNo = t3lib_div::_GET('editorNo'); 00050 switch( $popupname ) { 00051 case "link" : $title = "Insert/Modify Link"; break; 00052 case "image" : $title = "Insert Image"; break; 00053 case "user" : $title = "Insert Custom Element"; break; 00054 case "acronym" : $title = "Insert/Modify Acronym"; break; 00055 default : $title = "Editor configuration problem!"; 00056 } 00057 ?> 00058 <html > 00059 <head> 00060 <title><?php echo $title;?></title> 00061 <script type="text/javascript" src="../htmlarea/popups/popup.js"></script> 00062 <script type="text/javascript"> 00063 /*<![CDATA[*/ 00064 var HTMLArea = window.opener.HTMLArea; 00065 var _editor_CSS = window.opener._editor_CSS; 00066 function Init() { 00067 __dlg_translate(HTMLArea.I18N.dialogs); 00068 __dlg_init(null, true); 00069 document.body.onkeypress = __dlg_close_on_esc; 00070 }; 00071 <?php 00072 echo ' 00073 var editor = window.opener.RTEarea[' . $editorNo . ']["editor"]; 00074 '; 00075 ?> 00076 /*]]>*/ 00077 </script> 00078 <style type="text/css"> 00079 /*<![CDATA[*/ 00080 <!-- 00081 /* Opera 9 TP1 does not recognize the changing size of iframe contents and does not add scrollbars when required */ 00082 iframe { width: 100%; height: 2000px; border-style: none; border-width: 0; margin: 0; padding: 0; } 00083 div#htmlarea-popup-div { width: 100%; height: 100%; margin: 0; padding: 0; overflow: scroll; } 00084 * html iframe, :root iframe { height: 100%; overflow: visible; } 00085 * html div#htmlarea-popup-div, :root div#htmlarea-popup-div { overflow: hidden; } 00086 --> 00087 /*]]>*/ 00088 </style> 00089 </head> 00090 <body style="background:ButtonFace; margin: 0; padding: 0; border-style: none;" onload="Init();"> 00091 <div id="htmlarea-popup-div"> 00092 <?php 00093 echo ' 00094 <iframe id="idPopup" src="' . $src . '?' . $query_string . '"></iframe> 00095 '; 00096 ?> 00097 </div> 00098 </body></html>