PluginProbe
Welcart e-Commerce / 1.3.4
Welcart e-Commerce v1.3.4
2.12.4 2.12.3 2.11.35 2.12.2 2.12.1 2.11.34 2.11.33 2.11.32 2.11.31 2.11.30 1.3.16 1.3.17 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 All 292 releases
usc-e-shop / includes / admin_mail.php

admin_mail.php in Welcart e-Commerce 1.3.4, at includes/admin_mail.php

377 lines 18.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $status = $this->action_status;
3 $message = $this->action_message;
4 $this->action_status = 'none';
5 $this->action_message = '';
6 $mail_datas = $this->options['mail_data'];
7 $smtp_hostname = $this->options['smtp_hostname'];
8 $newmem_admin_mail = $this->options['newmem_admin_mail'];
9 $delmem_admin_mail = $this->options['delmem_admin_mail'];
10 $delmem_customer_mail = $this->options['delmem_customer_mail'];
11 ?>
12 <script type="text/javascript">
13 jQuery(function($){
14 <?php if($status == 'success'){ ?>
15 $("#anibox").animate({ backgroundColor: "#ECFFFF" }, 2000);
16 <?php }else if($status == 'caution'){ ?>
17 $("#anibox").animate({ backgroundColor: "#FFF5CE" }, 2000);
18 <?php }else if($status == 'error'){ ?>
19 $("#anibox").animate({ backgroundColor: "#FFE6E6" }, 2000);
20 <?php } ?>
21
22 $("#aAdditionalURLs").click(function () {
23 $("#AdditionalURLs").toggle();
24 });
25 });
26
27 function toggleVisibility(id) {
28 var e = document.getElementById(id);
29 if(e.style.display == 'block')
30 e.style.display = 'none';
31 else
32 e.style.display = 'block';
33 }
34 </script>
35 <div class="wrap">
36 <div class="usces_admin">
37 <h2>Welcart Shop <?php _e('E-mail Setting','usces'); ?></h2>
38 <div id="aniboxStatus" class="<?php echo $status; ?>">
39 <div id="anibox" class="clearfix">
40 <img src="<?php echo USCES_PLUGIN_URL; ?>/images/list_message_<?php echo $status; ?>.gif" />
41 <div class="mes" id="info_massage"><?php echo $message; ?></div>
42 </div>
43 </div>
44 <form action="" method="post" name="option_form" id="option_form">
45 <input name="usces_option_update" type="submit" class="button" value="<?php _e('change decision','usces'); ?>" />
46 <div id="poststuff" class="metabox-holder">
47
48 <div class="postbox">
49 <h3 class="hndle"><span><?php _e('SMTP server host','usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_smtp_host');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
50 <div class="inside">
51 <table class="form_table">
52 <tr>
53 <th width="150"><?php _e('Host name','usces'); ?></th>
54 <td><input name="smtp_hostname" id="smtp_hostname" type="text" class="mail_title" value="<?php echo $smtp_hostname; ?>" /></td>
55 <td>&nbsp;</td>
56 </tr>
57 </table>
58 <hr size="1" color="#CCCCCC" />
59 <div id="ex_smtp_host" class="explanation"><?php _e('This is a field setting the host name of a server for email transmission of a message. When the transmission of a message is not possible in localhost, a SMTP server is necessary.','usces'); ?></div>
60 </div>
61 </div><!--postbox-->
62
63 <div class="postbox">
64 <h3 class="hndle"><span><?php _e('Options','usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_mail_options');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
65 <div class="inside">
66 <table class="form_table">
67 <tr>
68 <th width="150"><?php _e('New sign-in completion email','usces'); ?></th>
69 <td width="10"><input name="newmem_admin_mail" type="radio" id="newmem_admin_mail_0" value="0"<?php if(0 == $newmem_admin_mail) echo ' checked="checked"'; ?> /></td>
70 <td width="100"><label for="newmem_admin_mail_0"><?php _e("Don't send",'usces'); ?></label></td>
71 <td width="10"><input name="newmem_admin_mail" type="radio" id="newmem_admin_mail_1" value="1"<?php if(1 == $newmem_admin_mail) echo ' checked="checked"'; ?> /></td>
72 <td width="100"><label for="newmem_admin_mail_1"><?php _e("Send",'usces'); ?></label></td>
73 </tr>
74 <tr>
75 <th width="150"><?php _e('Member removal completion email to admin','usces'); ?></th>
76 <td width="10"><input name="delmem_admin_mail" type="radio" id="delmem_admin_mail_0" value="0"<?php if(0 == $delmem_admin_mail) echo ' checked="checked"'; ?> /></td>
77 <td width="100"><label for="delmem_admin_mail_0"><?php _e("Don't send",'usces'); ?></label></td>
78 <td width="10"><input name="delmem_admin_mail" type="radio" id="delmem_admin_mail_1" value="1"<?php if(1 == $delmem_admin_mail) echo ' checked="checked"'; ?> /></td>
79 <td width="100"><label for="delmem_admin_mail_1"><?php _e("Send",'usces'); ?></label></td>
80 </tr>
81 <tr>
82 <th width="150"><?php _e('Member removal completion email to customer','usces'); ?></th>
83 <td width="10"><input name="delmem_customer_mail" type="radio" id="delmem_customer_mail_0" value="0"<?php if(0 == $delmem_customer_mail) echo ' checked="checked"'; ?> /></td>
84 <td width="100"><label for="delmem_customer_mail_0"><?php _e("Don't send",'usces'); ?></label></td>
85 <td width="10"><input name="delmem_customer_mail" type="radio" id="delmem_customer_mail_1" value="1"<?php if(1 == $delmem_customer_mail) echo ' checked="checked"'; ?> /></td>
86 <td width="100"><label for="delmem_customer_mail_1"><?php _e("Send",'usces'); ?></label></td>
87 </tr>
88 </table>
89 <hr size="1" color="#CCCCCC" />
90 <div id="ex_mail_options" class="explanation"><?php _e('When there is a new sign-in, I transmit a report email to a manager.','usces'); ?></div>
91 </div>
92 </div><!--postbox-->
93
94 <div class="postbox">
95 <h3 class="hndle"><span><?php _e('Thanks email(automatic transmission)', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_thakyou_mail');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
96 <div class="inside">
97 <table class="form_table">
98 <tr>
99 <th width="150"><?php _e('Title', 'usces'); ?></th>
100 <td><input name="title[thankyou]" id="title[thankyou]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['thankyou']); ?>" /></td>
101 <td>&nbsp;</td>
102 </tr>
103 <tr>
104 <th><?php _e('header', 'usces'); ?></th>
105 <td><textarea name="header[thankyou]" id="header[thankyou]" class="mail_header"><?php echo esc_html($mail_datas['header']['thankyou']); ?></textarea></td>
106 <td>&nbsp;</td>
107 </tr>
108 <tr>
109 <th><?php _e('footer', 'usces'); ?></th>
110 <td><textarea name="footer[thankyou]" id="footer[thankyou]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['thankyou']); ?></textarea></td>
111 <td>&nbsp;</td>
112 </tr>
113 </table>
114 <hr size="1" color="#CCCCCC" />
115 <div id="ex_thakyou_mail" class="explanation"><?php _e('This is an email transmitting a message for a visitor at the time of an order.', 'usces'); ?></div>
116 </div>
117 </div><!--postbox-->
118
119 <div class="postbox">
120 <h3 class="hndle"><span><?php _e('Order email(automatic transmission)', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_order_mail');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
121 <div class="inside">
122 <table class="form_table">
123 <tr>
124 <th width="150"><?php _e('Title', 'usces'); ?></th>
125 <td><input name="title[order]" id="title[order]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['order']); ?>" /></td>
126 <td>&nbsp;</td>
127 </tr>
128 <tr>
129 <th><?php _e('header', 'usces'); ?></th>
130 <td><textarea name="header[order]" id="header[order]" class="mail_header"><?php echo esc_html($mail_datas['header']['order']); ?></textarea></td>
131 <td>&nbsp;</td>
132 </tr>
133 <tr>
134 <th><?php _e('footer', 'usces'); ?></th>
135 <td><textarea name="footer[order]" id="footer[order]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['order']); ?></textarea></td>
136 <td>&nbsp;</td>
137 </tr>
138 </table>
139 <hr size="1" color="#CCCCCC" />
140 <div id="ex_order_mail" class="explanation"><?php echo sprintf(__('This is an email transmitting a message for owner of shop(%s).', 'usces'), $this->options['order_mail']); ?></div>
141 </div>
142 </div><!--postbox-->
143
144 <div class="postbox">
145 <h3 class="hndle"><span><?php _e('Inquiry receptionist email(automatic transmission)', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_inquiry_mail');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
146 <div class="inside">
147 <table class="form_table">
148 <tr>
149 <th width="150"><?php _e('Title', 'usces'); ?></th>
150 <td><input name="title[inquiry]" id="title[inquiry]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['inquiry']); ?>" /></td>
151 <td>&nbsp;</td>
152 </tr>
153 <tr>
154 <th><?php _e('header', 'usces'); ?></th>
155 <td><textarea name="header[inquiry]" id="header[inquiry]" class="mail_header"><?php echo esc_html($mail_datas['header']['inquiry']); ?></textarea></td>
156 <td>&nbsp;</td>
157 </tr>
158 <tr>
159 <th><?php _e('footer', 'usces'); ?></th>
160 <td><textarea name="footer[inquiry]" id="footer[inquiry]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['inquiry']); ?></textarea></td>
161 <td>&nbsp;</td>
162 </tr>
163 </table>
164 <hr size="1" color="#CCCCCC" />
165 <div id="ex_inquiry_mail" class="explanation"><?php _e('This is an e-mail which will be sent aytomatically to your customers at the contact from customer.', 'usces'); ?></div>
166 </div>
167 </div><!--postbox-->
168
169 <div class="postbox">
170 <h3 class="hndle"><span><?php _e('Conformation e-mail of membership registeration.', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_membercomp_mail');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
171 <div class="inside">
172 <table class="form_table">
173 <tr>
174 <th width="150"><?php _e('Title', 'usces'); ?></th>
175 <td><input name="title[membercomp]" id="title[membercomp]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['membercomp']); ?>" /></td>
176 <td>&nbsp;</td>
177 </tr>
178 <tr>
179 <th><?php _e('header', 'usces'); ?></th>
180 <td><textarea name="header[membercomp]" id="header[membercomp]" class="mail_header"><?php echo esc_html($mail_datas['header']['membercomp']); ?></textarea></td>
181 <td>&nbsp;</td>
182 </tr>
183 <tr>
184 <th><?php _e('footer', 'usces'); ?></th>
185 <td><textarea name="footer[membercomp]" id="footer[membercomp]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['membercomp']); ?></textarea></td>
186 <td>&nbsp;</td>
187 </tr>
188 </table>
189 <hr size="1" color="#CCCCCC" />
190 <div id="ex_membercomp_mail" class="explanation"><?php _e('This is an e-mail which will be snnt automatically to your customers when their membership registration is completed.', 'usces'); ?></div>
191 </div>
192 </div><!--postbox-->
193
194
195 <div class="postbox">
196 <h3 class="hndle"><span><?php _e('Shipping complete email (sent from the admin)', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_completionmail_mail');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
197 <div class="inside">
198 <table class="form_table">
199 <tr>
200 <th width="150"><?php _e('Title', 'usces'); ?></th>
201 <td><input name="title[completionmail]" id="title[completionmail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['completionmail']); ?>" /></td>
202 <td>&nbsp;</td>
203 </tr>
204 <tr>
205 <th><?php _e('header', 'usces'); ?></th>
206 <td><textarea name="header[completionmail]" id="header[completionmail]" class="mail_header"><?php echo esc_html($mail_datas['header']['completionmail']); ?></textarea></td>
207 <td>&nbsp;</td>
208 </tr>
209 <tr>
210 <th><?php _e('footer', 'usces'); ?></th>
211 <td><textarea name="footer[completionmail]" id="footer[completionmail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['completionmail']); ?></textarea></td>
212 <td>&nbsp;</td>
213 </tr>
214 </table>
215 <hr size="1" color="#CCCCCC" />
216 <div id="ex_completionmail_mail" class="explanation"><?php _e('This is an email transmitted manual operation to than a management screen, when the shipment of the article was completed.', 'usces'); ?></div>
217 </div>
218 </div><!--postbox-->
219
220 <div class="postbox">
221 <h3 class="hndle"><span><?php _e('Order confirmation email (sent from the admin)', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_ordermail_mail');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
222 <div class="inside">
223 <table class="form_table">
224 <tr>
225 <th width="150"><?php _e('Title', 'usces'); ?></th>
226 <td><input name="title[ordermail]" id="title[ordermail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['ordermail']); ?>" /></td>
227 <td>&nbsp;</td>
228 </tr>
229 <tr>
230 <th><?php _e('header', 'usces'); ?></th>
231 <td><textarea name="header[ordermail]" id="header[ordermail]" class="mail_header"><?php echo esc_html($mail_datas['header']['ordermail']); ?></textarea></td>
232 <td>&nbsp;</td>
233 </tr>
234 <tr>
235 <th><?php _e('footer', 'usces'); ?></th>
236 <td><textarea name="footer[ordermail]" id="footer[ordermail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['ordermail']); ?></textarea></td>
237 <td>&nbsp;</td>
238 </tr>
239 </table>
240 <hr size="1" color="#CCCCCC" />
241 <div id="ex_ordermail_mail" class="explanation"><?php _e('This is an email transmitted manual operation to than a management screen, when you registered a new order.', 'usces'); ?></div>
242 </div>
243 </div><!--postbox-->
244
245 <div class="postbox">
246 <h3 class="hndle"><span><?php _e('Confirmation mail for change of orders. (sent by admin.)', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_changemail_mail');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
247 <div class="inside">
248 <table class="form_table">
249 <tr>
250 <th width="150"><?php _e('Title', 'usces'); ?></th>
251 <td><input name="title[changemail]" id="title[changemail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['changemail']); ?>" /></td>
252 <td>&nbsp;</td>
253 </tr>
254 <tr>
255 <th><?php _e('header', 'usces'); ?></th>
256 <td><textarea name="header[changemail]" id="header[changemail]" class="mail_header"><?php echo esc_html($mail_datas['header']['changemail']); ?></textarea></td>
257 <td>&nbsp;</td>
258 </tr>
259 <tr>
260 <th><?php _e('footer', 'usces'); ?></th>
261 <td><textarea name="footer[changemail]" id="footer[changemail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['changemail']); ?></textarea></td>
262 <td>&nbsp;</td>
263 </tr>
264 </table>
265 <hr size="1" color="#CCCCCC" />
266 <div id="ex_changemail_mail" class="explanation"><?php _e('This is an e-mail which will be sent manually from admin screen, when there is changes of order.', 'usces'); ?></div>
267 </div>
268 </div><!--postbox-->
269
270 <div class="postbox">
271 <h3 class="hndle"><span><?php _e('Mail for Confirmation of payment. ( sent from admin)', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_receiptmail_mail');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
272 <div class="inside">
273 <table class="form_table">
274 <tr>
275 <th width="150"><?php _e('Title', 'usces'); ?></th>
276 <td><input name="title[receiptmail]" id="title[receiptmail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['receiptmail']); ?>" /></td>
277 <td>&nbsp;</td>
278 </tr>
279 <tr>
280 <th><?php _e('header', 'usces'); ?></th>
281 <td><textarea name="header[receiptmail]" id="header[receiptmail]" class="mail_header"><?php echo esc_html($mail_datas['header']['receiptmail']); ?></textarea></td>
282 <td>&nbsp;</td>
283 </tr>
284 <tr>
285 <th><?php _e('footer', 'usces'); ?></th>
286 <td><textarea name="footer[receiptmail]" id="footer[receiptmail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['receiptmail']); ?></textarea></td>
287 <td>&nbsp;</td>
288 </tr>
289 </table>
290 <hr size="1" color="#CCCCCC" />
291 <div id="ex_receiptmail_mail" class="explanation"><?php _e('This is an e-mail which will be sent to customers when their transfer payment is confirmed.', 'usces'); ?></div>
292 </div>
293 </div><!--postbox-->
294
295 <div class="postbox">
296 <h3 class="hndle"><span><?php _e('Estimate email (sent from the admin)', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_mitumorimail_mail');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
297 <div class="inside">
298 <table class="form_table">
299 <tr>
300 <th width="150"><?php _e('Title', 'usces'); ?></th>
301 <td><input name="title[mitumorimail]" id="title[mitumorimail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['mitumorimail']); ?>" /></td>
302 <td>&nbsp;</td>
303 </tr>
304 <tr>
305 <th><?php _e('header', 'usces'); ?></th>
306 <td><textarea name="header[mitumorimail]" id="header[mitumorimail]" class="mail_header"><?php echo esc_html($mail_datas['header']['mitumorimail']); ?></textarea></td>
307 <td>&nbsp;</td>
308 </tr>
309 <tr>
310 <th><?php _e('footer', 'usces'); ?></th>
311 <td><textarea name="footer[mitumorimail]" id="footer[mitumorimail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['mitumorimail']); ?></textarea></td>
312 <td>&nbsp;</td>
313 </tr>
314 </table>
315 <hr size="1" color="#CCCCCC" />
316 <div id="ex_mitumorimail_mail" class="explanation"><?php _e('This is an email transmitted manual operation to than a management screen, when you registered an estimate.', 'usces'); ?></div>
317 </div>
318 </div><!--postbox-->
319
320 <div class="postbox">
321 <h3 class="hndle"><span><?php _e('E-mail for confirmation of cancellation. (sent from admin)', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_cancelmail_mail');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
322 <div class="inside">
323 <table class="form_table">
324 <tr>
325 <th width="150"><?php _e('Title', 'usces'); ?></th>
326 <td><input name="title[cancelmail]" id="title[cancelmail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['cancelmail']); ?>" /></td>
327 <td>&nbsp;</td>
328 </tr>
329 <tr>
330 <th><?php _e('header', 'usces'); ?></th>
331 <td><textarea name="header[cancelmail]" id="header[cancelmail]" class="mail_header"><?php echo esc_html($mail_datas['header']['cancelmail']); ?></textarea></td>
332 <td>&nbsp;</td>
333 </tr>
334 <tr>
335 <th><?php _e('footer', 'usces'); ?></th>
336 <td><textarea name="footer[cancelmail]" id="footer[cancelmail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['cancelmail']); ?></textarea></td>
337 <td>&nbsp;</td>
338 </tr>
339 </table>
340 <hr size="1" color="#CCCCCC" />
341 <div id="ex_cancelmail_mail" class="explanation"><?php _e('This is an e-mail which will be sent when order has been canselled.', 'usces'); ?></div>
342 </div>
343 </div><!--postbox-->
344
345 <div class="postbox">
346 <h3 class="hndle"><span><?php _e('Other e-mails(sent from admin)', 'usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_othermail_mail');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
347 <div class="inside">
348 <table class="form_table">
349 <tr>
350 <th width="150"><?php _e('Title', 'usces'); ?></th>
351 <td><input name="title[othermail]" id="title[othermail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['othermail']); ?>" /></td>
352 <td>&nbsp;</td>
353 </tr>
354 <tr>
355 <th><?php _e('header', 'usces'); ?></th>
356 <td><textarea name="header[othermail]" id="header[othermail]" class="mail_header"><?php echo esc_html($mail_datas['header']['othermail']); ?></textarea></td>
357 <td>&nbsp;</td>
358 </tr>
359 <tr>
360 <th><?php _e('footer', 'usces'); ?></th>
361 <td><textarea name="footer[othermail]" id="footer[othermail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['othermail']); ?></textarea></td>
362 <td>&nbsp;</td>
363 </tr>
364 </table>
365 <hr size="1" color="#CCCCCC" />
366 <div id="ex_othermail_mail" class="explanation"><?php _e('e-mail which will be sent on temporaly basis', 'usces'); ?></div>
367 </div>
368 </div><!--postbox-->
369
370 <?php do_action( 'usces_action_admin_mailform' ); ?>
371
372
373 </div><!--poststuff-->
374 <input name="usces_option_update" type="submit" class="button" value="<?php _e('change decision','usces'); ?>" />
375 </form>
376 </div><!--usces_admin-->
377 </div><!--wrap-->