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
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
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
00080 <!--
00081
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>