[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 popup_text_edit.php

Zen Cart 源代码 popup_text_edit.php




下载文件

文件名: popup_text_edit.php
文件类型: PHP文件
文件大小: 3.36 KiB
MD5: a82bd9d1cc81be138e83f3cd6bb22d42

popup_text_edit.php - 关闭高亮
  1. <?php
  2. /**
  3.  * @package admin
  4.  * @copyright Copyright 2006 Andrew Berezin andrew@eCommerce-service.com
  5.  * @copyright Copyright 2003-2006 Zen Cart Development Team
  6.  * @copyright Portions Copyright 2003 osCommerce
  7.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  8.  * @version $Id: popup_text_edit.php v1.0.0 13.10.2006 2:30 Andrew Berezin $
  9.  */
  10.  
  11. require('includes/application_top.php');
  12. @define('FILENAME_POPUP_TEXT_EDIT', 'popup_text_edit');
  13. ?>
  14. <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
  15. <html <?php echo HTML_PARAMS; ?>>
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
  18. <title><?php echo TITLE; ?></title>
  19. <script type="text/javascript">
  20.   <!--
  21.   function init() {
  22.     var ed = document.getElementById('message_html');
  23.     if(ed) {
  24.       ed.value = opener.document.getElementById(opener.textEditFieldID).value;
  25.     }
  26.     if (typeof _editor_url == "string") HTMLArea.replace('message_html');
  27.   }
  28.   function put() {
  29.     var ed = document.getElementById('message_html');
  30. //alert('put');
  31. //vardump(ed);
  32.     if(sendText) {
  33.       opener.document.getElementById(opener.textEditFieldID).value=ed.value;
  34.       window.close();
  35.     }
  36.   }
  37.   function setPopupText(el) {
  38.     sendText = true;
  39.     return true;
  40.   }
  41. var sendText = false;
  42.  
  43. function vardump(obj){
  44.   arr = obj;
  45.   s = '';
  46.   var i = 0;
  47.   if(typeof(obj) == 'object') {
  48.       for (var k in arr) {
  49.         i++;
  50.         s += k + "=>" + arr[k] + "\n";
  51.         if (typeof(arr[k]) == "object") {
  52.           arr1 = arr[k];
  53.           for (var k1 in arr1) {
  54.     //        alert(k + "=>" + k1 + " : " + arr1[k1]);
  55.     //           s += k + "=>" + k1 + " : " + arr1[k1] + "\n";
  56.           }
  57.         }
  58.         if(i>10){
  59.           alert(s);
  60.           s = '';
  61.           i = 0;
  62.         }
  63.     }
  64.   } else {
  65.     s += "" + d + "\n";
  66.   }
  67.   if(s != '') alert(s);
  68. }
  69.   // -->
  70. </script>
  71. <?php if ($editor_handler != '') { $PHP_SELF_save = $PHP_SELF; $PHP_SELF = 'mail.php'; include ($editor_handler); $PHP_SELF = $PHP_SELF_save; } ?>
  72. </head>
  73. <body onLoad="init()" onUnload="put()">
  74. <!-- header //-->
  75. <?php // require(DIR_WS_INCLUDES . 'header.php'); ?>
  76. <!-- header_eof //-->
  77.  
  78. <!-- body //-->
  79. <?php //
  80.     echo zen_draw_form('popup_text_edit', FILENAME_POPUP_TEXT_EDIT, '', 'post', 'enctype="multipart/form-data" onsubmit="setPopupText(this);return true;"');
  81.     echo zen_draw_hidden_field('action', 'set');
  82.     if ($_SESSION['html_editor_preference_status']=="FCKEDITOR") {
  83.         $oFCKeditor = new FCKeditor('message_html') ;
  84.         $oFCKeditor->Value = 'lena';
  85.         $oFCKeditor->Width  = '97%' ;
  86.         $oFCKeditor->Height = '470' ;
  87. //      $oFCKeditor->Create() ;
  88.         $output = $oFCKeditor->CreateHtml() ; echo $output;
  89.     } else { // using HTMLAREA or just raw "source"
  90.         echo zen_draw_textarea_field('message_html', 'soft', '95%', '28', '', 'id="message_html"');
  91.         echo '<script type="text/javascript"><!--
  92.  document.getElementById(\'message_html\').value = opener.document.getElementById(opener.textEditFieldID).value;
  93. // --></script>';
  94.     }
  95.     echo zen_image_submit('button_save.gif', IMAGE_SAVE) . '<a href="javascript:window.close()">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
  96. ?>
  97. </form>
  98. <!-- body_eof //-->
  99.  
  100. <!-- footer //-->
  101. <?php // require(DIR_WS_INCLUDES . 'footer.php'); ?>
  102. <!-- footer_eof //-->
  103. </body>
  104. </html>
  105. <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>


cron