[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 源代码 gv_mail.php

Zen Cart 源代码 gv_mail.php




下载文件

文件名: gv_mail.php
文件类型: PHP文件
文件大小: 20.24 KiB
MD5: 77bd3459f18f72cb8228740b43097c37

gv_mail.php - 关闭高亮
  1. <?php
  2. /**
  3.  * @package admin
  4.  * @copyright Copyright 2003-2014 Zen Cart Development Team
  5.  * @copyright Portions Copyright 2003 osCommerce
  6.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  7.  * @version GIT: $Id: Author: DrByte  Jun 30 2014 Modified in v1.5.4 $
  8.  */
  9.  
  10.   require('includes/application_top.php');
  11.  
  12.   require(DIR_WS_CLASSES . 'currencies.php');
  13.   $currencies = new currencies();
  14.  
  15.   $_POST['amount'] = preg_replace('/[^0-9.%]/', '', $_POST['amount']);
  16.   $_POST['amount'] = abs($_POST['amount']);
  17.  
  18.   if ($_GET['action'] == 'set_editor') {
  19.     // Reset will be done by init_html_editor.php. Now we simply redirect to refresh page properly.
  20.     $action='';
  21.     zen_redirect(zen_href_link(FILENAME_GV_MAIL));
  22.   }
  23.  
  24.   if ( ($_GET['action'] == 'send_email_to_user') && ($_POST['customers_email_address'] || $_POST['email_to']) && (!$_POST['back_x']) ) {
  25.     $audience_select = get_audience_sql_query($_POST['customers_email_address'], 'email');
  26.     $mail = $db->Execute($audience_select['query_string']);
  27.     $mail_sent_to = $audience_select['query_name'];
  28.     if ($_POST['email_to']) {
  29.       $mail_sent_to = $_POST['email_to'];
  30.     }
  31.  
  32.     // demo active test
  33.     if (zen_admin_demo()) {
  34.       $_GET['action']= '';
  35.       $messageStack->add_session(ERROR_ADMIN_DEMO, 'caution');
  36.       zen_redirect(zen_href_link(FILENAME_GV_MAIL, 'mail_sent_to=' . urlencode($mail_sent_to)));
  37.     }
  38.     $from = zen_db_prepare_input($_POST['from']);
  39.     $subject = zen_db_prepare_input($_POST['subject']);
  40.     $recip_count=0;
  41.  
  42.     // set time-limit for processing to 5 minutes... if allowed by PHP configuration
  43.     zen_set_time_limit(600);
  44.  
  45.     while (!$mail->EOF) {
  46.  
  47.       $id1 = create_coupon_code($mail->fields['customers_email_address']);
  48.       $insert_query = $db->Execute("insert into " . TABLE_COUPONS . "
  49.                                    (coupon_code, coupon_type, coupon_amount, date_created)
  50.                                    values ('" . zen_db_input($id1) . "', 'G', '" . zen_db_input($_POST['amount']) . "', now())");
  51.  
  52.       $insert_id = $db->Insert_ID();
  53.  
  54.       $db->Execute("insert into " . TABLE_COUPON_EMAIL_TRACK . "
  55.                    (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent)
  56.                    values ('" . $insert_id ."', '0', 'Admin',
  57.                            '" . zen_db_input($mail->fields['customers_email_address']) . "', now() )");
  58.  
  59.       $message = $_POST['message'];
  60.       $html_msg['EMAIL_MESSAGE_HTML'] = zen_db_prepare_input($_POST['message_html']);
  61.       $message .= "\n\n" . TEXT_GV_WORTH  . $currencies->format($_POST['amount']) . "\n\n";
  62.       $message .= TEXT_TO_REDEEM;
  63.       $message .= TEXT_WHICH_IS . ' ' . $id1 . ' ' . TEXT_IN_CASE . "\n\n";
  64.  
  65.       $html_msg['GV_WORTH']  = TEXT_GV_WORTH;
  66.       $html_msg['GV_AMOUNT']  = $currencies->format($_POST['amount']);
  67.       $html_msg['GV_REDEEM'] = TEXT_TO_REDEEM . TEXT_WHICH_IS . ' <strong>' . $id1 . '</strong> ' . TEXT_IN_CASE;
  68.  
  69.       if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
  70.         $message .= HTTP_CATALOG_SERVER  . DIR_WS_CATALOG . 'index.php/gv_redeem/gv_no/'.$id1 . "\n\n";
  71.         $html_msg['GV_CODE_URL'] = '<a href="' . HTTP_CATALOG_SERVER  . DIR_WS_CATALOG . 'index.php/gv_redeem/gv_no/'.$id1.'">' .TEXT_CLICK_TO_REDEEM . '</a>'. "&nbsp;";
  72.       } else {
  73.         $message .= HTTP_CATALOG_SERVER  . DIR_WS_CATALOG . 'index.php?main_page=gv_redeem&gv_no='.$id1 . "\n\n";
  74.         $html_msg['GV_CODE_URL'] =  '<a href="'. HTTP_CATALOG_SERVER  . DIR_WS_CATALOG . 'index.php?main_page=gv_redeem&gv_no='.$id1 .'">' .TEXT_CLICK_TO_REDEEM . '</a>' . "&nbsp;";
  75.       }
  76.  
  77.       $message .= TEXT_OR_VISIT . HTTP_CATALOG_SERVER  . DIR_WS_CATALOG . TEXT_ENTER_CODE . "\n\n";
  78.       $html_msg['GV_CODE_URL'] .= TEXT_OR_VISIT .  '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG.'">' . STORE_NAME . '</a>' . TEXT_ENTER_CODE;
  79.       $html_msg['EMAIL_FIRST_NAME'] = $mail->fields['customers_firstname'];
  80.       $html_msg['EMAIL_LAST_NAME']  = $mail->fields['customers_lastname'];
  81.  
  82.       // disclaimer
  83.       $message .= "\n-----\n" . sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS) . "\n\n";
  84.  
  85.       zen_mail($mail->fields['customers_firstname'] . ' ' . $mail->fields['customers_lastname'], $mail->fields['customers_email_address'], $subject , $message, $from, $from, $html_msg, 'gv_mail');
  86.       zen_record_admin_activity('GV mail sent to ' . $mail->fields['customers_email_address'] . ' in the amount of ' . $currencies->format($_POST['amount']), 'info');
  87.       $recip_count++;
  88.       if (SEND_EXTRA_GV_ADMIN_EMAILS_TO_STATUS== '1' and SEND_EXTRA_GV_ADMIN_EMAILS_TO != '') {
  89.         zen_mail('', SEND_EXTRA_GV_ADMIN_EMAILS_TO, SEND_EXTRA_GV_ADMIN_EMAILS_TO_SUBJECT . ' ' . $subject, $message, $from, $from, $html_msg, 'gv_mail_extra');
  90.       }
  91.  
  92.       // Now create the coupon main and email entry
  93.       $mail->MoveNext();
  94.     }
  95.  
  96.     if ($_POST['email_to']) {
  97.       $id1 = create_coupon_code($_POST['email_to']);
  98.       $message = zen_db_prepare_input($_POST['message']);
  99.       $message .= "\n\n" . TEXT_GV_WORTH  . $currencies->format($_POST['amount']) . "\n\n";
  100.       $message .= TEXT_TO_REDEEM;
  101.       $message .= TEXT_WHICH_IS . ' ' . $id1 . ' ' . TEXT_IN_CASE . "\n\n";
  102.  
  103.       $html_msg['GV_WORTH']  = TEXT_GV_WORTH;
  104.       $html_msg['GV_AMOUNT']  = $currencies->format($_POST['amount']);
  105.       $html_msg['GV_REDEEM'] = TEXT_TO_REDEEM . TEXT_WHICH_IS . ' <strong>' . $id1 . '</strong> ' . TEXT_IN_CASE . "\n\n";
  106.  
  107.       if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {
  108.         $message .= HTTP_CATALOG_SERVER  . DIR_WS_CATALOG . 'index.php/gv_redeem/gv_no/'.$id1 . "\n\n";
  109.         $html_msg['GV_CODE_URL']  = '<a href="' . HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'index.php/gv_redeem/gv_no/'.$id1.'">' .TEXT_CLICK_TO_REDEEM . '</a>'. "&nbsp;";
  110.       } else {
  111.         $message .= HTTP_CATALOG_SERVER  . DIR_WS_CATALOG . 'index.php?main_page=gv_redeem&gv_no='.$id1 . "\n\n";
  112.         $html_msg['GV_CODE_URL']  =  '<a href="'. HTTP_CATALOG_SERVER  . DIR_WS_CATALOG . 'index.php?main_page=gv_redeem&gv_no='.$id1 .'">' .TEXT_CLICK_TO_REDEEM . '</a>' . "&nbsp;";
  113.       }
  114.       $message .= TEXT_OR_VISIT . HTTP_CATALOG_SERVER  . DIR_WS_CATALOG  . TEXT_ENTER_CODE . "\n\n";
  115.       $html_msg['GV_CODE_URL']  .= TEXT_OR_VISIT .  '<a href="'.HTTP_CATALOG_SERVER  . DIR_WS_CATALOG.'">' . STORE_NAME . '</a>' . TEXT_ENTER_CODE;
  116.  
  117.       $html_msg['EMAIL_MESSAGE_HTML'] = zen_db_prepare_input($_POST['message_html']);
  118.       $html_msg['EMAIL_FIRST_NAME'] = ''; // unknown, since only an email address was supplied
  119.       $html_msg['EMAIL_LAST_NAME']  = ''; // unknown, since only an email address was supplied
  120.  
  121.       // disclaimer
  122.       $message .= "\n-----\n" . sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS) . "\n\n";
  123.  
  124.       //Send the emails
  125.       zen_mail('Friend', $_POST['email_to'], $subject , $message, $from, $from, $html_msg, 'gv_mail');
  126.       $recip_count++;
  127.       if (SEND_EXTRA_GV_ADMIN_EMAILS_TO_STATUS== '1' and SEND_EXTRA_GV_ADMIN_EMAILS_TO != '') {
  128.         zen_mail('', SEND_EXTRA_GV_ADMIN_EMAILS_TO, SEND_EXTRA_GV_ADMIN_EMAILS_TO_SUBJECT . ' ' . $subject, $message, $from, $from, $html_msg, 'gv_mail_extra');
  129.       }
  130.  
  131.       // Now create the coupon main entry
  132.       $insert_query = $db->Execute("insert into " . TABLE_COUPONS . "
  133.                                    (coupon_code, coupon_type, coupon_amount, date_created)
  134.                                    values ('" . zen_db_input($id1) . "', 'G', '" . zen_db_input($_POST['amount']) . "', now())");
  135.  
  136.       $insert_id = $db->Insert_id();
  137.  
  138.       $insert_query = $db->Execute("insert into " . TABLE_COUPON_EMAIL_TRACK . "
  139.                                    (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent)
  140.                                    values ('" . $insert_id ."', '0', 'Admin',
  141.                                            '" . zen_db_input($_POST['email_to']) . "', now() )");
  142.  
  143.     }
  144.     zen_redirect(zen_href_link(FILENAME_GV_MAIL, 'mail_sent_to=' . urlencode($mail_sent_to) . '&recip_count='. $recip_count ));
  145.   }
  146.  
  147.   if ( ($_GET['action'] == 'preview') && (!$_POST['customers_email_address']) && (!$_POST['email_to']) ) {
  148.     $messageStack->add(ERROR_NO_CUSTOMER_SELECTED, 'error');
  149.   }
  150.  
  151.   if ( ($_GET['action'] == 'preview') && (!$_POST['subject']) ) {
  152.     $messageStack->add(ERROR_NO_SUBJECT, 'error');
  153.   }
  154.   if ( ($_GET['action'] == 'preview') && ($_POST['amount'] <= 0) ) {
  155.     $messageStack->add(ERROR_NO_AMOUNT_SELECTED, 'error');
  156.   }
  157.  
  158.   if ($_GET['mail_sent_to']) {
  159.     $messageStack->add(sprintf(NOTICE_EMAIL_SENT_TO, $_GET['mail_sent_to']. '(' . $_GET['recip_count'] . ')'), 'success');
  160.   }
  161. ?>
  162. <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
  163. <html <?php echo HTML_PARAMS; ?>>
  164. <head>
  165. <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
  166. <title><?php echo TITLE; ?></title>
  167. <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
  168. <link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
  169. <script language="javascript" src="includes/menu.js"></script>
  170. <script type="text/javascript">
  171.   <!--
  172.   function init()
  173.   {
  174.     cssjsmenu('navbar');
  175.     if (document.getElementById)
  176.     {
  177.       var kill = document.getElementById('hoverJS');
  178.       kill.disabled = true;
  179.     }
  180.   if (typeof _editor_url == "string") HTMLArea.replace('message_html');
  181.   }
  182.   // -->
  183. </script>
  184. <script language="javascript" type="text/javascript"><!--
  185. var form = "";
  186. var submitted = false;
  187. var error = false;
  188. var error_message = "";
  189.  
  190. function check_recipient(field_cust, field_input, message) {
  191. //  if (form.elements[field_cust] && form.elements[field_cust].type != "hidden" && form.elements[field_input] && form.elements[field_input].type != "hidden") {
  192.     var field_value_cust = form.elements[field_cust].value;
  193.     var field_value_input = form.elements[field_input].value;
  194.  
  195.     if ((field_value_input == '' || field_value_input.length < 1)  &&  field_value_cust == '') {
  196.       error_message = error_message + "* " + message + "\n";
  197.       error = true;
  198.     }
  199.   }
  200. //}
  201. function check_amount(field_name, field_size, message) {
  202.   if (form.elements[field_name] && (form.elements[field_name].type != "hidden")) {
  203.     var field_value = form.elements[field_name].value;
  204.  
  205.     if (field_value == '' || field_value == 0 || field_value < 0 || field_value.length < field_size ) {
  206.       error_message = error_message + "* " + message + "\n";
  207.       error = true;
  208.     }
  209.   }
  210. }
  211. function check_message(msg) {
  212.   if (form.elements['message'] && form.elements['message_html']) {
  213.     var field_value1 = form.elements['message'].value;
  214.     var field_value2 = form.elements['message_html'].value;
  215.  
  216.     if ((field_value1 == '' || field_value1.length < 3) && (field_value2 == '' || field_value2.length < 3)) {
  217.       error_message = error_message + "* " + msg + "\n";
  218.       error = true;
  219.     }
  220.   }
  221. }
  222. function check_input(field_name, field_size, message) {
  223.   if (form.elements[field_name] && (form.elements[field_name].type != "hidden")) {
  224.     var field_value = form.elements[field_name].value;
  225.  
  226.     if (field_value == '' || field_value.length < field_size) {
  227.       error_message = error_message + "* " + message + "\n";
  228.       error = true;
  229.     }
  230.   }
  231. }
  232.  
  233. function check_form(form_name) {
  234.   if (submitted == true) {
  235.     alert("<?php echo JS_ERROR_SUBMITTED; ?>");
  236.     return false;
  237.   }
  238.   error = false;
  239.   form = form_name;
  240.   error_message = "<?php echo JS_ERROR; ?>";
  241.  
  242.   check_recipient('customers_email_address', 'email_to', "<?php echo ERROR_NO_CUSTOMER_SELECTED; ?>");
  243.   check_message("<?php echo ENTRY_NOTHING_TO_SEND; ?>");
  244.   check_amount('amount',1,"<?php echo ERROR_NO_AMOUNT_SELECTED; ?>");
  245.   check_input('subject','',"<?php echo ERROR_NO_SUBJECT; ?>");
  246.  
  247.   if (error == true) {
  248.     alert(error_message);
  249.     return false;
  250.   } else {
  251.     submitted = true;
  252.     return true;
  253.   }
  254. }
  255. //--></script>
  256. <?php if ($editor_handler != '') include ($editor_handler); ?>
  257. </head>
  258. <body onLoad="init()">
  259. <!-- header //-->
  260. <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
  261. <!-- header_eof //-->
  262.  
  263. <!-- body //-->
  264. <table border="0" width="100%" cellspacing="2" cellpadding="2">
  265.   <tr>
  266. <!-- body_text //-->
  267.     <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  268.       <tr>
  269.         <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
  270.           <tr>
  271.             <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
  272.             <td class="pageHeading" align="right"><?php echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
  273.             <td class="main">
  274. <?php
  275. // toggle switch for editor
  276.         echo TEXT_EDITOR_INFO . zen_draw_form('set_editor_form', FILENAME_GV_MAIL, '', 'get') . '&nbsp;&nbsp;' . zen_draw_pull_down_menu('reset_editor', $editors_pulldown, $current_editor_key, 'onChange="this.form.submit();"') .
  277.         zen_hide_session_id() .
  278.         zen_draw_hidden_field('action', 'set_editor') .
  279.         '</form>';
  280. ?>
  281.           </td>
  282.           </tr>
  283.         </table></td>
  284.       </tr>
  285.       <tr>
  286.         <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
  287. <?php
  288.   if ( ($_GET['action'] == 'preview') && ($_POST['customers_email_address'] || $_POST['email_to']) ) {
  289.   $audience_select = get_audience_sql_query($_POST['customers_email_address']);
  290.     $mail_sent_to = $audience_select['query_name'];
  291.         if ($_POST['email_to']) {
  292.           $mail_sent_to = $_POST['email_to'];
  293.         }
  294. ?>
  295.           <tr><?php echo zen_draw_form('mail', FILENAME_GV_MAIL, 'action=send_email_to_user'); ?>
  296.             <td><table border="0" width="100%" cellpadding="0" cellspacing="2">
  297.               <tr>
  298.                 <td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  299.               </tr>
  300.               <tr>
  301.                 <td class="smallText"><b><?php echo TEXT_CUSTOMER; ?></b><br /><?php echo $mail_sent_to; ?></td>
  302.               </tr>
  303.               <tr>
  304.                 <td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  305.               </tr>
  306.               <tr>
  307.                 <td class="smallText"><b><?php echo TEXT_FROM; ?></b><br /><?php echo htmlspecialchars(stripslashes($_POST['from']), ENT_COMPAT, CHARSET, TRUE); ?></td>
  308.               </tr>
  309.               <tr>
  310.                 <td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  311.               </tr>
  312.               <tr>
  313.                 <td class="smallText"><b><?php echo TEXT_SUBJECT; ?></b><br /><?php echo htmlspecialchars(stripslashes($_POST['subject']), ENT_COMPAT, CHARSET, TRUE); ?></td>
  314.               </tr>
  315.               <tr>
  316.                 <td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  317.               </tr>
  318.               <tr>
  319.                 <td class="smallText"><b><?php echo TEXT_AMOUNT; ?></b><br /><?php echo nl2br(htmlspecialchars(stripslashes($_POST['amount']), ENT_COMPAT, CHARSET, TRUE)) . ($_POST['amount'] <= 0 ? '&nbsp<span class="alert">' . ERROR_GV_AMOUNT . '</span>' : ''); ?></td>
  320.               </tr>
  321.               <tr>
  322.                 <td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  323.               </tr>
  324.               <tr>
  325.                 <td><hr /><b><?php echo TEXT_RICH_TEXT_MESSAGE; ?></b><br /><?php echo stripslashes($_POST['message_html']); ?></td>
  326.               </tr>
  327.               <tr>
  328.                 <td><hr /><b><?php echo TEXT_MESSAGE; ?></b><br /><tt><?php echo nl2br(htmlspecialchars(stripslashes($_POST['message']), ENT_COMPAT, CHARSET, TRUE)); ?></tt><hr /></td>
  329.               </tr>
  330.               <tr>
  331.                 <td><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  332.               </tr>
  333.               <tr>
  334.                 <td>
  335. <?php
  336. /* Re-Post all POST'ed variables */
  337.     reset($_POST);
  338.     while (list($key, $value) = each($_POST)) {
  339.       if (!is_array($_POST[$key])) {
  340.         echo zen_draw_hidden_field($key, htmlspecialchars(stripslashes($value), ENT_COMPAT, CHARSET, TRUE));
  341.       }
  342.     }
  343. ?>
  344.                 <table border="0" width="100%" cellpadding="0" cellspacing="2">
  345.                   <tr>
  346.                     <td><?php echo zen_image_submit('button_back.gif', IMAGE_BACK, 'name="back"'); ?></td>
  347.                     <td align="right"><?php echo '<a href="' . zen_href_link(FILENAME_GV_MAIL) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a> ' . ($_POST['amount'] <= 0 ? '' : zen_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL)); ?></td>
  348.                   </tr>
  349.                 </table></td>
  350.               </tr>
  351.             </table></td>
  352.           </form></tr>
  353. <?php
  354.   } else {
  355. ?>
  356.           <tr><?php echo zen_draw_form('mail', FILENAME_GV_MAIL, 'action=preview','post', 'onsubmit="return check_form(mail);"'); ?>
  357.             <td><table border="0" width="100%" cellpadding="0" cellspacing="2">
  358.               <tr>
  359.                 <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  360.               </tr>
  361. <?php
  362.     $customers = get_audiences_list('email');
  363. ?>
  364.               <tr>
  365.                 <td class="main"><?php echo TEXT_CUSTOMER; ?></td>
  366.                 <td><?php echo zen_draw_pull_down_menu('customers_email_address', $customers, $_GET['customer']);?></td>
  367.               </tr>
  368.               <tr>
  369.                 <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  370.               </tr>
  371.                <tr>
  372.                 <td class="main"><?php echo TEXT_TO; ?></td>
  373.                 <td><?php echo zen_draw_input_field('email_to', '', 'size="50"'); ?><?php echo '&nbsp;&nbsp;' . TEXT_SINGLE_EMAIL; ?></td>
  374.               </tr>
  375.               <tr>
  376.                 <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  377.               </tr>
  378.              <tr>
  379.                 <td class="main"><?php echo TEXT_FROM; ?></td>
  380.                 <td><?php echo zen_draw_input_field('from', htmlspecialchars(EMAIL_FROM, ENT_COMPAT, CHARSET, TRUE), 'size="50"'); ?></td>
  381.               </tr>
  382.               <tr>
  383.                 <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  384.               </tr>
  385.               <tr>
  386.                 <td class="main"><?php echo TEXT_SUBJECT; ?></td>
  387.                 <td><?php echo zen_draw_input_field('subject', '', 'size="50"'); ?></td>
  388.               </tr>
  389.               <tr>
  390.                 <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  391.               </tr>
  392.               <tr>
  393.                 <td valign="top" class="main"><?php echo TEXT_AMOUNT; ?></td>
  394.                 <td><?php echo zen_draw_input_field('amount'); ?></td>
  395.               </tr>
  396.               <tr>
  397.                 <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  398.               </tr>
  399. <?php if (EMAIL_USE_HTML == 'true') {?>
  400.               <tr>
  401.                 <td valign="top" class="main"><?php echo TEXT_RICH_TEXT_MESSAGE; ?></td>
  402.                 <td><?php echo zen_draw_textarea_field('message_html', 'soft', '100%', '20', htmlspecialchars(($_POST['message_html']=='') ? TEXT_GV_ANNOUNCE : stripslashes($_POST['message_html']), ENT_COMPAT, CHARSET, TRUE), 'id="message_html" class="editorHook"'); ?></td>
  403.               </tr>
  404. <?php } ?>
  405.               <tr>
  406.                 <td valign="top" class="main"><?php echo TEXT_MESSAGE; ?></td>
  407.                 <td><?php echo zen_draw_textarea_field('message', 'soft', '60', '15', htmlspecialchars(($_POST['message']=='') ? strip_tags(TEXT_GV_ANNOUNCE) : stripslashes($_POST['message']), ENT_COMPAT, CHARSET, TRUE)); ?></td>
  408.               </tr>
  409.               <tr>
  410.                 <td colspan="2"><?php echo zen_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
  411.               </tr>
  412.               <tr>
  413.                 <td colspan="2" align="right"><?php echo zen_image_submit('button_send_mail.gif', IMAGE_SEND_EMAIL); ?></td>
  414.               </tr>
  415.             </table></td>
  416.           </form></tr>
  417. <?php
  418.   }
  419. ?>
  420. <!-- body_text_eof //-->
  421.         </table></td>
  422.       </tr>
  423.     </table></td>
  424.   </tr>
  425. </table>
  426. <!-- body_eof //-->
  427.  
  428. <!-- footer //-->
  429. <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
  430. <!-- footer_eof //-->
  431. <br />
  432. </body>
  433. </html>
  434. <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>


cron