PluginProbe
Welcart e-Commerce / 1.3.2
Welcart e-Commerce v1.3.2
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.2, at includes/admin_mail.php

361 lines 17.3 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 ?>
10 <script type="text/javascript">
11 jQuery(function($){
12 <?php if($status == 'success'){ ?>
13 $("#anibox").animate({ backgroundColor: "#ECFFFF" }, 2000);
14 <?php }else if($status == 'caution'){ ?>
15 $("#anibox").animate({ backgroundColor: "#FFF5CE" }, 2000);
16 <?php }else if($status == 'error'){ ?>
17 $("#anibox").animate({ backgroundColor: "#FFE6E6" }, 2000);
18 <?php } ?>
19
20 $("#aAdditionalURLs").click(function () {
21 $("#AdditionalURLs").toggle();
22 });
23 });
24
25 function toggleVisibility(id) {
26 var e = document.getElementById(id);
27 if(e.style.display == 'block')
28 e.style.display = 'none';
29 else
30 e.style.display = 'block';
31 }
32 </script>
33 <div class="wrap">
34 <div class="usces_admin">
35 <h2>Welcart Shop <?php _e('E-mail Setting','usces'); ?></h2>
36 <div id="aniboxStatus" class="<?php echo $status; ?>">
37 <div id="anibox" class="clearfix">
38 <img src="<?php echo USCES_PLUGIN_URL; ?>/images/list_message_<?php echo $status; ?>.gif" />
39 <div class="mes" id="info_massage"><?php echo $message; ?></div>
40 </div>
41 </div>
42 <form action="" method="post" name="option_form" id="option_form">
43 <input name="usces_option_update" type="submit" class="button" value="<?php _e('change decision','usces'); ?>" />
44 <div id="poststuff" class="metabox-holder">
45
46 <div class="postbox">
47 <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>
48 <div class="inside">
49 <table class="form_table">
50 <tr>
51 <th width="150"><?php _e('Host name','usces'); ?></th>
52 <td><input name="smtp_hostname" id="smtp_hostname" type="text" class="mail_title" value="<?php echo $smtp_hostname; ?>" /></td>
53 <td>&nbsp;</td>
54 </tr>
55 </table>
56 <hr size="1" color="#CCCCCC" />
57 <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>
58 </div>
59 </div><!--postbox-->
60
61 <div class="postbox">
62 <h3 class="hndle"><span><?php _e('Options','usces'); ?></span><a style="cursor:pointer;" onclick="toggleVisibility('ex_mail_options');"> (<?php _e('explanation', 'usces'); ?>) </a></h3>
63 <div class="inside">
64 <table class="form_table">
65 <tr>
66 <th width="150"><?php _e('New sign-in completion email','usces'); ?></th>
67 <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>
68 <td width="100"><label for="newmem_admin_mail_0">送信しない</label></td>
69 <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>
70 <td width="100"><label for="newmem_admin_mail_1">送信する</label></td>
71 </tr>
72 </table>
73 <hr size="1" color="#CCCCCC" />
74 <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>
75 </div>
76 </div><!--postbox-->
77
78 <div class="postbox">
79 <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>
80 <div class="inside">
81 <table class="form_table">
82 <tr>
83 <th width="150"><?php _e('Title', 'usces'); ?></th>
84 <td><input name="title[thankyou]" id="title[thankyou]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['thankyou']); ?>" /></td>
85 <td>&nbsp;</td>
86 </tr>
87 <tr>
88 <th><?php _e('header', 'usces'); ?></th>
89 <td><textarea name="header[thankyou]" id="header[thankyou]" class="mail_header"><?php echo esc_html($mail_datas['header']['thankyou']); ?></textarea></td>
90 <td>&nbsp;</td>
91 </tr>
92 <tr>
93 <th><?php _e('footer', 'usces'); ?></th>
94 <td><textarea name="footer[thankyou]" id="footer[thankyou]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['thankyou']); ?></textarea></td>
95 <td>&nbsp;</td>
96 </tr>
97 </table>
98 <hr size="1" color="#CCCCCC" />
99 <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>
100 </div>
101 </div><!--postbox-->
102
103 <div class="postbox">
104 <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>
105 <div class="inside">
106 <table class="form_table">
107 <tr>
108 <th width="150"><?php _e('Title', 'usces'); ?></th>
109 <td><input name="title[order]" id="title[order]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['order']); ?>" /></td>
110 <td>&nbsp;</td>
111 </tr>
112 <tr>
113 <th><?php _e('header', 'usces'); ?></th>
114 <td><textarea name="header[order]" id="header[order]" class="mail_header"><?php echo esc_html($mail_datas['header']['order']); ?></textarea></td>
115 <td>&nbsp;</td>
116 </tr>
117 <tr>
118 <th><?php _e('footer', 'usces'); ?></th>
119 <td><textarea name="footer[order]" id="footer[order]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['order']); ?></textarea></td>
120 <td>&nbsp;</td>
121 </tr>
122 </table>
123 <hr size="1" color="#CCCCCC" />
124 <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>
125 </div>
126 </div><!--postbox-->
127
128 <div class="postbox">
129 <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>
130 <div class="inside">
131 <table class="form_table">
132 <tr>
133 <th width="150"><?php _e('Title', 'usces'); ?></th>
134 <td><input name="title[inquiry]" id="title[inquiry]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['inquiry']); ?>" /></td>
135 <td>&nbsp;</td>
136 </tr>
137 <tr>
138 <th><?php _e('header', 'usces'); ?></th>
139 <td><textarea name="header[inquiry]" id="header[inquiry]" class="mail_header"><?php echo esc_html($mail_datas['header']['inquiry']); ?></textarea></td>
140 <td>&nbsp;</td>
141 </tr>
142 <tr>
143 <th><?php _e('footer', 'usces'); ?></th>
144 <td><textarea name="footer[inquiry]" id="footer[inquiry]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['inquiry']); ?></textarea></td>
145 <td>&nbsp;</td>
146 </tr>
147 </table>
148 <hr size="1" color="#CCCCCC" />
149 <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>
150 </div>
151 </div><!--postbox-->
152
153 <div class="postbox">
154 <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>
155 <div class="inside">
156 <table class="form_table">
157 <tr>
158 <th width="150"><?php _e('Title', 'usces'); ?></th>
159 <td><input name="title[membercomp]" id="title[membercomp]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['membercomp']); ?>" /></td>
160 <td>&nbsp;</td>
161 </tr>
162 <tr>
163 <th><?php _e('header', 'usces'); ?></th>
164 <td><textarea name="header[membercomp]" id="header[membercomp]" class="mail_header"><?php echo esc_html($mail_datas['header']['membercomp']); ?></textarea></td>
165 <td>&nbsp;</td>
166 </tr>
167 <tr>
168 <th><?php _e('footer', 'usces'); ?></th>
169 <td><textarea name="footer[membercomp]" id="footer[membercomp]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['membercomp']); ?></textarea></td>
170 <td>&nbsp;</td>
171 </tr>
172 </table>
173 <hr size="1" color="#CCCCCC" />
174 <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>
175 </div>
176 </div><!--postbox-->
177
178
179 <div class="postbox">
180 <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>
181 <div class="inside">
182 <table class="form_table">
183 <tr>
184 <th width="150"><?php _e('Title', 'usces'); ?></th>
185 <td><input name="title[completionmail]" id="title[completionmail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['completionmail']); ?>" /></td>
186 <td>&nbsp;</td>
187 </tr>
188 <tr>
189 <th><?php _e('header', 'usces'); ?></th>
190 <td><textarea name="header[completionmail]" id="header[completionmail]" class="mail_header"><?php echo esc_html($mail_datas['header']['completionmail']); ?></textarea></td>
191 <td>&nbsp;</td>
192 </tr>
193 <tr>
194 <th><?php _e('footer', 'usces'); ?></th>
195 <td><textarea name="footer[completionmail]" id="footer[completionmail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['completionmail']); ?></textarea></td>
196 <td>&nbsp;</td>
197 </tr>
198 </table>
199 <hr size="1" color="#CCCCCC" />
200 <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>
201 </div>
202 </div><!--postbox-->
203
204 <div class="postbox">
205 <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>
206 <div class="inside">
207 <table class="form_table">
208 <tr>
209 <th width="150"><?php _e('Title', 'usces'); ?></th>
210 <td><input name="title[ordermail]" id="title[ordermail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['ordermail']); ?>" /></td>
211 <td>&nbsp;</td>
212 </tr>
213 <tr>
214 <th><?php _e('header', 'usces'); ?></th>
215 <td><textarea name="header[ordermail]" id="header[ordermail]" class="mail_header"><?php echo esc_html($mail_datas['header']['ordermail']); ?></textarea></td>
216 <td>&nbsp;</td>
217 </tr>
218 <tr>
219 <th><?php _e('footer', 'usces'); ?></th>
220 <td><textarea name="footer[ordermail]" id="footer[ordermail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['ordermail']); ?></textarea></td>
221 <td>&nbsp;</td>
222 </tr>
223 </table>
224 <hr size="1" color="#CCCCCC" />
225 <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>
226 </div>
227 </div><!--postbox-->
228
229 <div class="postbox">
230 <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>
231 <div class="inside">
232 <table class="form_table">
233 <tr>
234 <th width="150"><?php _e('Title', 'usces'); ?></th>
235 <td><input name="title[changemail]" id="title[changemail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['changemail']); ?>" /></td>
236 <td>&nbsp;</td>
237 </tr>
238 <tr>
239 <th><?php _e('header', 'usces'); ?></th>
240 <td><textarea name="header[changemail]" id="header[changemail]" class="mail_header"><?php echo esc_html($mail_datas['header']['changemail']); ?></textarea></td>
241 <td>&nbsp;</td>
242 </tr>
243 <tr>
244 <th><?php _e('footer', 'usces'); ?></th>
245 <td><textarea name="footer[changemail]" id="footer[changemail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['changemail']); ?></textarea></td>
246 <td>&nbsp;</td>
247 </tr>
248 </table>
249 <hr size="1" color="#CCCCCC" />
250 <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>
251 </div>
252 </div><!--postbox-->
253
254 <div class="postbox">
255 <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>
256 <div class="inside">
257 <table class="form_table">
258 <tr>
259 <th width="150"><?php _e('Title', 'usces'); ?></th>
260 <td><input name="title[receiptmail]" id="title[receiptmail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['receiptmail']); ?>" /></td>
261 <td>&nbsp;</td>
262 </tr>
263 <tr>
264 <th><?php _e('header', 'usces'); ?></th>
265 <td><textarea name="header[receiptmail]" id="header[receiptmail]" class="mail_header"><?php echo esc_html($mail_datas['header']['receiptmail']); ?></textarea></td>
266 <td>&nbsp;</td>
267 </tr>
268 <tr>
269 <th><?php _e('footer', 'usces'); ?></th>
270 <td><textarea name="footer[receiptmail]" id="footer[receiptmail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['receiptmail']); ?></textarea></td>
271 <td>&nbsp;</td>
272 </tr>
273 </table>
274 <hr size="1" color="#CCCCCC" />
275 <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>
276 </div>
277 </div><!--postbox-->
278
279 <div class="postbox">
280 <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>
281 <div class="inside">
282 <table class="form_table">
283 <tr>
284 <th width="150"><?php _e('Title', 'usces'); ?></th>
285 <td><input name="title[mitumorimail]" id="title[mitumorimail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['mitumorimail']); ?>" /></td>
286 <td>&nbsp;</td>
287 </tr>
288 <tr>
289 <th><?php _e('header', 'usces'); ?></th>
290 <td><textarea name="header[mitumorimail]" id="header[mitumorimail]" class="mail_header"><?php echo esc_html($mail_datas['header']['mitumorimail']); ?></textarea></td>
291 <td>&nbsp;</td>
292 </tr>
293 <tr>
294 <th><?php _e('footer', 'usces'); ?></th>
295 <td><textarea name="footer[mitumorimail]" id="footer[mitumorimail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['mitumorimail']); ?></textarea></td>
296 <td>&nbsp;</td>
297 </tr>
298 </table>
299 <hr size="1" color="#CCCCCC" />
300 <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>
301 </div>
302 </div><!--postbox-->
303
304 <div class="postbox">
305 <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>
306 <div class="inside">
307 <table class="form_table">
308 <tr>
309 <th width="150"><?php _e('Title', 'usces'); ?></th>
310 <td><input name="title[cancelmail]" id="title[cancelmail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['cancelmail']); ?>" /></td>
311 <td>&nbsp;</td>
312 </tr>
313 <tr>
314 <th><?php _e('header', 'usces'); ?></th>
315 <td><textarea name="header[cancelmail]" id="header[cancelmail]" class="mail_header"><?php echo esc_html($mail_datas['header']['cancelmail']); ?></textarea></td>
316 <td>&nbsp;</td>
317 </tr>
318 <tr>
319 <th><?php _e('footer', 'usces'); ?></th>
320 <td><textarea name="footer[cancelmail]" id="footer[cancelmail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['cancelmail']); ?></textarea></td>
321 <td>&nbsp;</td>
322 </tr>
323 </table>
324 <hr size="1" color="#CCCCCC" />
325 <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>
326 </div>
327 </div><!--postbox-->
328
329 <div class="postbox">
330 <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>
331 <div class="inside">
332 <table class="form_table">
333 <tr>
334 <th width="150"><?php _e('Title', 'usces'); ?></th>
335 <td><input name="title[othermail]" id="title[othermail]" type="text" class="mail_title" value="<?php echo esc_attr($mail_datas['title']['othermail']); ?>" /></td>
336 <td>&nbsp;</td>
337 </tr>
338 <tr>
339 <th><?php _e('header', 'usces'); ?></th>
340 <td><textarea name="header[othermail]" id="header[othermail]" class="mail_header"><?php echo esc_html($mail_datas['header']['othermail']); ?></textarea></td>
341 <td>&nbsp;</td>
342 </tr>
343 <tr>
344 <th><?php _e('footer', 'usces'); ?></th>
345 <td><textarea name="footer[othermail]" id="footer[othermail]" class="mail_footer"><?php echo esc_html($mail_datas['footer']['othermail']); ?></textarea></td>
346 <td>&nbsp;</td>
347 </tr>
348 </table>
349 <hr size="1" color="#CCCCCC" />
350 <div id="ex_othermail_mail" class="explanation"><?php _e('e-mail which will be sent on temporaly basis', 'usces'); ?></div>
351 </div>
352 </div><!--postbox-->
353
354 <?php do_action( 'usces_action_admin_mailform' ); ?>
355
356
357 </div><!--poststuff-->
358 <input name="usces_option_update" type="submit" class="button" value="<?php _e('change decision','usces'); ?>" />
359 </form>
360 </div><!--usces_admin-->
361 </div><!--wrap-->