PluginProbe
Welcart e-Commerce / 1.3.8
Welcart e-Commerce v1.3.8
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_system.php

admin_system.php in Welcart e-Commerce 1.3.8, at includes/admin_system.php

502 lines 25.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 global $usces_settings;
3 $status = $this->action_status;
4 $message = $this->action_message;
5 $this->action_status = 'none';
6 $this->action_message = '';
7
8 $divide_item = $this->options['divide_item'];
9 $itemimg_anchor_rel = $this->options['itemimg_anchor_rel'];
10 $fukugo_category_orderby = $this->options['fukugo_category_orderby'];
11 $fukugo_category_order = $this->options['fukugo_category_order'];
12 $settlement_path = $this->options['settlement_path'];
13 $logs_path = isset($this->options['logs_path']) ? $this->options['logs_path'] : '';
14 $use_ssl = $this->options['use_ssl'];
15 $ssl_url = $this->options['ssl_url'];
16 $ssl_url_admin = $this->options['ssl_url_admin'];
17 $inquiry_id = $this->options['inquiry_id'];
18 $orderby_itemsku = isset($this->options['system']['orderby_itemsku']) ? $this->options['system']['orderby_itemsku'] : 0;
19 $orderby_itemopt = isset($this->options['system']['orderby_itemopt']) ? $this->options['system']['orderby_itemopt'] : 0;
20 $system_front_lang = ( isset($this->options['system']['front_lang']) && !empty($this->options['system']['front_lang']) ) ? $this->options['system']['front_lang'] : usces_get_local_language();
21 $system_currency = ( isset($this->options['system']['currency']) && !empty($this->options['system']['currency']) ) ? $this->options['system']['currency'] : usces_get_base_country();
22 $system_addressform = ( isset($this->options['system']['addressform']) && !empty($this->options['system']['addressform']) ) ? $this->options['system']['addressform'] : usces_get_local_addressform();
23 $system_target_markets = ( isset($this->options['system']['target_market']) && !empty($this->options['system']['target_market']) ) ? $this->options['system']['target_market'] : usces_get_local_target_market();
24 $no_cart_css = isset($this->options['system']['no_cart_css']) ? $this->options['system']['no_cart_css'] : 0;
25 $dec_orderID_flag = isset($this->options['system']['dec_orderID_flag']) ? $this->options['system']['dec_orderID_flag'] : 0;
26 $dec_orderID_prefix = isset($this->options['system']['dec_orderID_prefix']) ? $this->options['system']['dec_orderID_prefix'] : '';
27 $dec_orderID_digit = isset($this->options['system']['dec_orderID_digit']) ? $this->options['system']['dec_orderID_digit'] : '';
28 $subimage_rule = isset($this->options['system']['subimage_rule']) ? $this->options['system']['subimage_rule'] : 0;
29 ?>
30 <script type="text/javascript">
31 jQuery(function($){
32 <?php if($status == 'success'){ ?>
33 $("#anibox").animate({ backgroundColor: "#ECFFFF" }, 2000);
34 <?php }else if($status == 'caution'){ ?>
35 $("#anibox").animate({ backgroundColor: "#FFF5CE" }, 2000);
36 <?php }else if($status == 'error'){ ?>
37 $("#anibox").animate({ backgroundColor: "#FFE6E6" }, 2000);
38 <?php } ?>
39
40 $("#aAdditionalURLs").click(function () {
41 $("#AdditionalURLs").toggle();
42 });
43
44 //20110331ysk start
45 var pre_target = '';
46
47 operation = {
48 set_target_market: function() {
49 var target = [];
50 var target_text = [];
51 $("#target_market option:selected").each(function () {
52 target.push($(this).val());
53 target_text.push($(this).text());
54 });
55 if(target.length == 0) {
56 alert('<?php _e('Please select one of the country.', 'usces'); ?>');
57 return -1;
58 }
59 var sel = $('select_target_market_province').val();
60 var name_select = '<select name="select_target_market_province" id="select_target_market_province" onchange="operation.onchange_target_market_province(this.selectedIndex);">'+"\n";
61 var target_args = '';
62 var c = '';
63 for(var i=0; i<target.length; i++){
64 name_select += '<option value="'+target[i]+'">'+target_text[i]+'</option>'+"\n";
65 target_args += c+target[i];
66 c = ',';
67 }
68 name_select += "</select>\n";
69 $("#target_market_province").html(name_select);
70 $("#target_market_loading").html('<img src="<?php echo USCES_PLUGIN_URL; ?>/images/loading-publish.gif" />');
71 var s = operation.settings;
72 s.data = "action=target_market_ajax&target="+target_args;
73 s.success = function(data, dataType) {
74 $('#province_ajax').empty();
75 var province = data.split('#usces#');
76 for(var i=0; i<province.length; i++) {
77 if(province[i].length > 0) {
78 var state = province[i].split(',');
79 $('#province_ajax').append('<input type="hidden" name="province_'+state[0]+'" id="province_'+state[0]+'" value="'+state[1]+'">');
80 }
81 }
82 $('#select_target_market_province').triggerHandler('change', 0);
83 $("#target_market_loading").html('');
84 };
85 $.ajax( s );
86 return false;
87 },
88
89 onchange_target_market_province: function(index) {
90 if(pre_target != '') $('#province_'+pre_target).val($("#province").val());
91 var target = $("#select_target_market_province option:selected").val();
92 //20120725ysk start 000057
93 //$("#province").text('');
94 //$("#province").text($('#province_'+target).val());
95 $("#province").val('');
96 $("#province").val($('#province_'+target).val());
97 //20120725ysk end
98 pre_target = target;
99 },
100
101 settings: {
102 url: uscesL10n.requestFile,
103 type: 'POST',
104 cache: false,
105 success: function(data, dataType) {
106 $("#target_market_loading").html('');
107 },
108 error: function(msg) {
109 $("#target_market_loading").html('');
110 }
111 //20120309ysk start 0000430
112 },
113 backup : function() {
114 var s = operation.settings;
115 s.data = "action=usces_admin_ajax&mode=options_backup";
116 s.success = function(data, dataType) {
117 if(data) {
118 alert("保存しました。");
119 $("#options_restore").removeAttr("disabled");
120 $("#options_backup_date").html(data);
121 } else {
122 alert("保存に失敗しました。");
123 }
124 };
125 s.error = function(msg) {
126 alert("保存に失敗しました。");
127 };
128 $.ajax( s );
129 return false;
130 },
131 restore : function() {
132 var s = operation.settings;
133 s.data = "action=usces_admin_ajax&mode=options_restore";
134 s.success = function(data, dataType) {
135 if(data) {
136 location.href = "<?php echo USCES_ADMIN_URL; ?>?page=usces_system";
137 } else {
138 alert("復�
139 �に失敗しました。");
140 }
141 };
142 s.error = function(msg) {
143 alert("復�
144 �に失敗しました。");
145 };
146 $.ajax( s );
147 return false;
148 //20120309ysk end
149 }
150 };
151
152 $('form').submit(function() {
153 $('#province_'+pre_target).val($("#province").val());
154
155 var error = 0;
156 var tabs = 0;
157
158 if( !checkAlp( $("#dec_orderID_prefix").val() ) ) {
159 error++;
160 $("#dec_orderID_prefix").css({'background-color': '#FFA'}).click(function() {
161 $(this).css({'background-color': '#FFF'});
162 });
163 }
164 if( !checkNum( $("#dec_orderID_digit").val() ) ) {
165 error++;
166 $("#dec_orderID_digit").css({'background-color': '#FFA'}).click(function() {
167 $(this).css({'background-color': '#FFF'});
168 });
169 }
170
171 var target = [];
172 $("#target_market option:selected").each(function() {
173 target.push($(this).val());
174 });
175 if( target.length == 0 ) {
176 error++;
177 tabs = 1;
178 $("#target_market").css({'background-color': '#FFA'}).click(function() {
179 $(this).css({'background-color': '#FFF'});
180 });
181
182 } else {
183 var province = 'OK';
184 for(var i=0; i<target.length; i++) {
185 if(target[i] != 'JP' && target[i] != 'US') {
186 if( "" == $("#province_"+target[i]).val() ) province = 'NG';
187 }
188 }
189 if( 'OK' != province ) {
190 error++;
191 tabs = 1;
192 $("#province").css({'background-color': '#FFA'}).click(function() {
193 $(this).css({'background-color': '#FFF'});
194 });
195 }
196 }
197
198 if( 0 < error ) {
199 $("#aniboxStatus").removeClass("none");
200 $("#aniboxStatus").addClass("error");
201 $("#info_image").attr("src", "<?php echo USCES_PLUGIN_URL; ?>/images/list_message_error.gif");
202 $("#info_massage").html("データに不備があります");
203 $("#anibox").animate({ backgroundColor: "#FFE6E6" }, 2000);
204 if( $.fn.jquery < "1.10" ) {
205 $('#uscestabs_system').tabs("select", tabs);
206 } else {
207 $('#uscestabs_system').tabs("option", "active", tabs);
208 }
209 return false;
210 } else {
211 return true;
212 }
213 });
214 //20110331ysk end
215 });
216
217 function toggleVisibility(id) {
218 var e = document.getElementById(id);
219 if(e.style.display == 'block')
220 e.style.display = 'none';
221 else
222 e.style.display = 'block';
223 }
224 //20110331ysk start
225 jQuery(document).ready(function($) {
226 operation.set_target_market();
227
228 var $tabs = $('#uscestabs_system').tabs({
229 cookie: {
230 // store cookie for a day, without, it would be a session cookie
231 expires: 1
232 }
233 });
234 //20120309ysk start 0000430
235 <?php
236 $options_backup = get_option('usces_backup');
237 $options_backup_date = get_option('usces_backup_date');
238 if( empty($options_backup) ) {
239 ?>
240 $("#options_restore").attr("disabled", "disabled");
241 <?php
242 }
243 ?>
244 $('#options_backup').click(function() {
245 operation.backup();
246 });
247 $('#options_restore').click(function() {
248 //$('#backup_dialog').dialog('open');
249 if( !confirm("オプション値を復�
250 �します。よろしいですか?") ) return;
251 operation.restore();
252 });
253 //20120309ysk end
254 });
255 //20110331ysk end
256 </script>
257 <div class="wrap">
258 <div class="usces_admin">
259 <h2>Welcart Shop <?php _e('System Setting','usces'); ?></h2>
260 <div id="aniboxStatus" class="<?php echo $status; ?>">
261 <div id="anibox" class="clearfix">
262 <img id="info_image" src="<?php echo USCES_PLUGIN_URL; ?>/images/list_message_<?php echo $status; ?>.gif" />
263 <div class="mes" id="info_massage"><?php echo $message; ?></div>
264 </div>
265 </div>
266 <form action="" method="post" name="option_form" id="option_form">
267 <input name="usces_option_update" type="submit" class="button" value="<?php _e('change decision','usces'); ?>" />
268 <div id="poststuff" class="metabox-holder">
269
270 <!--20110331ysk start-->
271 <div class="uscestabs" id="uscestabs_system">
272 <ul>
273 <li><a href="#system_page_setting_1"><?php _e('System Setting','usces'); ?></a></li>
274 <li><a href="#system_page_setting_2"><?php _e('Language Currency Country','usces'); ?></a></li>
275 </ul>
276 <div id="system_page_setting_1">
277 <!--20110331ysk end-->
278 <div class="postbox">
279 <h3 class="hndle"><span><?php _e('System Setting','usces'); ?></span></h3>
280 <div class="inside">
281 <table class="form_table">
282 <tr height="35">
283 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_divide_item');"><?php _e('Display Modes','usces'); ?></a></th>
284 <?php $checked = $divide_item == 1 ? ' checked="checked"' : ''; ?>
285 <td width="10"><input name="divide_item" type="checkbox" id="divide_item" value="<?php echo esc_attr($divide_item); ?>"<?php echo $checked; ?> /></td>
286 <td width="300"><label for="divide_item"><?php _e('Not display an article in blog', 'usces'); ?></label></td>
287 <td><div id="ex_divide_item" class="explanation"><?php _e('In the case of the loop indication that plural contributions are displayed in a shop, you can be decided display or non-display the item.', 'usces'); ?></div></td>
288 </tr>
289 </table>
290 <hr />
291 <table class="form_table">
292 <tr height="35">
293 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_itemimg_anchor_rel');"><?php _e('rel attribute', 'usces'); ?></a></th>
294 <td width="30">rel="</td>
295 <td width="100"><input name="itemimg_anchor_rel" id="itemimg_anchor_rel" type="text" value="<?php echo esc_attr($itemimg_anchor_rel); ?>" /></td>
296 <td width="10">"</td>
297 <td><div id="ex_itemimg_anchor_rel" class="explanation"><?php _e('In item details page, you can appoint a rel attribute for anchor tag to display an image, sach as Lightbox plugin.', 'usces'); ?></div></td>
298 </tr>
299 </table>
300 <hr />
301 <table class="form_table">
302 <tr height="35">
303 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_fcat_orderby');"><?php _e('compound category sort item', 'usces'); ?></a></th>
304 <td width="10"><select name="fukugo_category_orderby" id="fukugo_category_orderby">
305 <option value="ID"<?php if($fukugo_category_orderby == 'ID') echo ' selected="selected"'; ?>><?php _e('category ID', 'usces'); ?></option>
306 <option value="name"<?php if($fukugo_category_orderby == 'name') echo ' selected="selected"'; ?>><?php _e('category name', 'usces'); ?></option>
307 </select></td>
308 <td><div id="ex_fcat_orderby" class="explanation"><?php _e('In a category to display in a compound category search page, you can choose an object to sort.', 'usces'); ?></div></td>
309 </tr>
310 <tr height="35">
311 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_fcat_order');"><?php _e('compound category sort order', 'usces'); ?></a></th>
312 <td width="10"><select name="fukugo_category_order" id="fukugo_category_order">
313 <option value="ASC"<?php if($fukugo_category_order == 'ASC') echo ' selected="selected"'; ?>><?php _e('Ascending', 'usces'); ?></option>
314 <option value="DESC"<?php if($fukugo_category_order == 'DESC') echo ' selected="selected"'; ?>><?php _e('Descendin', 'usces'); ?></option>
315 </select></td>
316 <td><div id="ex_fcat_order" class="explanation"><?php _e('In a category to display in a compound category search page, you can choose sort order.', 'usces'); ?></div></td>
317 </tr>
318 </table>
319 <hr />
320 <table class="form_table">
321 <tr height="35">
322 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_settlement_path');"><?php _e('settlement module path', 'usces'); ?></a></th>
323 <td><input name="settlement_path" type="text" id="settlement_path" value="<?php echo esc_attr($settlement_path); ?>" size="60" /></td>
324 <td><div id="ex_settlement_path" class="explanation"><?php _e('This is Field appointing the setting path of the settlement module. The initial value is a place same as a sample, but it is deleted at the time of automatic upgrading. Therefore you must arrange a module outside a plugin folder.', 'usces'); ?></div></td>
325 </tr>
326 <!-- <tr height="35">
327 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_logs_path');"><?php _e('Logs path', 'usces'); ?></a></th>
328 <td><input name="logs_path" type="text" id="logs_path" value="<?php echo esc_attr($logs_path); ?>" size="60" />/welcart/logs/</td>
329 <td><div id="ex_logs_path" class="explanation"><?php _e('Specify the path to save the log file. Please specify the directory that can not be viewed in a browser. Log is not saved if you do not specify.', 'usces'); ?></div></td>
330 </tr>
331 --></table>
332 <hr />
333 <table class="form_table">
334 <tr height="35">
335 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_use_ssl');"><?php _e('Use SSL','usces'); ?></a></th>
336 <?php $checked = $use_ssl == 1 ? ' checked="checked"' : ''; ?>
337 <td width="10"><input name="use_ssl" type="checkbox" id="use_ssl" value="<?php echo esc_attr($use_ssl); ?>"<?php echo $checked; ?> /></td>
338 <td width="300">&nbsp;</td>
339 <td><div id="ex_use_ssl" class="explanation"><?php _e('Please decide whether you use SSL', 'usces'); ?></div></td>
340 </tr>
341 </table>
342 <table class="form_table">
343 <tr height="35">
344 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_ssl_url_admin');"><?php _e('WordPress address (SSL)', 'usces'); ?></a></th>
345 <td><input name="ssl_url_admin" type="text" id="ssl_url_admin" value="<?php echo esc_attr($ssl_url_admin); ?>" size="60" /></td>
346 <td><div id="ex_ssl_url_admin" class="explanation"><?php _e('https://*WordPress address*<br />You can use common use SSL.', 'usces'); ?></div></td>
347 </tr>
348 </table>
349 <table class="form_table">
350 <tr height="35">
351 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_ssl_url');"><?php _e('Blog address (SSL)', 'usces'); ?></a></th>
352 <td><input name="ssl_url" type="text" id="ssl_url" value="<?php echo esc_attr($ssl_url); ?>" size="60" /></td>
353 <td><div id="ex_ssl_url" class="explanation"><?php _e('https://*Blog address*<br />You can use common use SSL.', 'usces'); ?></div></td>
354 </tr>
355 </table>
356 <hr />
357 <table class="form_table">
358 <tr height="35">
359 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_inquiry_id');"><?php _e('The page_id of the inquiry-form', 'usces'); ?></a></th>
360 <td><input name="inquiry_id" type="text" id="inquiry_id" value="<?php echo esc_attr($inquiry_id); ?>" size="7" /></td>
361 <td><div id="ex_inquiry_id" class="explanation"><?php _e('When you want to use the inquiry-form through SSL, please input the page_id.<br />When you use a permanent link, you have need to set the permanent link of this page in usces-inquiry.', 'usces'); ?></div></td>
362 </tr>
363 </table>
364 <hr />
365 <table class="form_table">
366 <tr height="35">
367 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_no_cart_css');"><?php _e('To disable usces_cart.css','usces'); ?></a></th>
368 <?php $checked = $no_cart_css == 1 ? ' checked="checked"' : ''; ?>
369 <td width="10"><input name="no_cart_css" type="checkbox" id="no_cart_css" value="<?php echo esc_attr($no_cart_css); ?>"<?php echo $checked; ?> /></td>
370 <td width="300">&nbsp;</td>
371 <td><div id="ex_no_cart_css" class="explanation"><?php _e('When checked, Welcart will not output the usces_cart.css. If you want to make own usces_cart.css file, please copy and paste it in your theme folder currently in use.', 'usces'); ?></div></td>
372 </tr>
373 </table>
374 <hr />
375 <table class="form_table">
376 <tr height="35">
377 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_dec_orderID_flag');"><?php _e('Rules of order-ID numbering', 'usces'); ?></a></th>
378 <td width="10"><input name="dec_orderID_flag" id="dec_orderID_flag0" type="radio" value="0"<?php if($dec_orderID_flag === 0) echo 'checked="checked"'; ?> /></td><td width="100"><label for="dec_orderID_flag0"><?php _e('Sequential number', 'usces'); ?></label></td>
379 <td width="10"><input name="dec_orderID_flag" id="dec_orderID_flag1" type="radio" value="1"<?php if($dec_orderID_flag === 1) echo 'checked="checked"'; ?> /></td><td width="100"><label for="dec_orderID_flag1"><?php _e('Random string', 'usces'); ?></label></td>
380 <td><div id="ex_dec_orderID_flag" class="explanation"><?php _e("The initial value is a sequential number starting from 1000.", 'usces'); ?></div></td>
381 </tr>
382 </table>
383 <table class="form_table">
384 <tr height="35">
385 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_dec_orderID_prefix');"><?php _e('Prefix of order-ID', 'usces'); ?></a></th>
386 <td><input name="dec_orderID_prefix" type="text" id="dec_orderID_prefix" value="<?php echo esc_attr($dec_orderID_prefix); ?>" size="7" /></td>
387 <td><div id="ex_dec_orderID_prefix" class="explanation"><?php _e('If you do not need it, leave it blank.', 'usces'); ?></div></td>
388 </tr>
389 </table>
390 <table class="form_table">
391 <tr height="35">
392 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_dec_orderID_digit');"><?php _e('Digits of order-ID', 'usces'); ?></a></th>
393 <td><input name="dec_orderID_digit" type="text" id="dec_orderID_digit" value="<?php echo esc_attr($dec_orderID_digit); ?>" size="7" /></td>
394 <td><div id="ex_dec_orderID_digit" class="explanation"><?php _e('This value must be at least six digits. The prefix is ​​not included.', 'usces'); ?></div></td>
395 </tr>
396 </table>
397 <hr />
398 <table class="form_table">
399 <tr height="30">
400 <th class="system_th" rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_subimage_rule');"><?php _e('Product sub-image rule', 'usces'); ?></a></th>
401 <td width="10"><input name="subimage_rule" id="subimage_rule0" type="radio" value="0"<?php if($subimage_rule === 0) echo 'checked="checked"'; ?> /></td><td width="400"><label for="subimage_rule0"><?php _e('not apply the new rule<br />(Truncation Product Code)', 'usces'); ?></label></td>
402 <td rowspan="2"><div id="ex_subimage_rule" class="explanation"><?php _e('If the sub-images are not applied correctly, please apply the new rules.<br />And insert Tow hyphens between the Product Code and serial number.', 'usces'); ?></div></td>
403 </tr>
404 <tr height="30">
405 <td width="10"><input name="subimage_rule" id="subimage_rule1" type="radio" value="1"<?php if($subimage_rule === 1) echo 'checked="checked"'; ?> /></td><td width="400"><label for="subimage_rule1"><?php _e('apply the new rule<br />(Tow hyphens between the Product Code and serial number)', 'usces'); ?></label></td>
406 </tr>
407 </table>
408 <hr />
409 <!--20120309ysk start 0000430-->
410 <table class="form_table">
411 <tr height="35">
412 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_options_backup');"><?php _e('Setup data backup','usces'); ?></a></th>
413 <td><input name="options_backup" id="options_backup" type="button" value="<?php _e('Backup options','usces'); ?>" ></td>
414 <td><input name="options_restore" id="options_restore" type="button" value="<?php _e('Restoring a Backup', 'usces'); ?>" ></td>
415 <td><div id="options_backup_date"><?php if( !empty( $options_backup_date ) ) echo $options_backup_date; ?></div></td>
416 <td><div id="ex_options_backup" class="explanation"><?php _e('You can take the backup of the Welcart setup data.', 'usces'); ?></div></td>
417 </tr>
418 </table>
419 <!--20120309ysk end-->
420 </div>
421 <!--20110331ysk start-->
422 </div><!--postbox-->
423 </div><!--system_page_setting_1-->
424 <div id="system_page_setting_2">
425 <div class="postbox">
426 <h3 class="hndle"><span><?php _e('Language Currency Country','usces'); ?></span></h3>
427 <div class="inside">
428 <table class="form_table">
429 <tr height="50">
430 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_front_lang');"><?php _e('The language of the front-end', 'usces'); ?></a></th>
431 <td width="10"><select name="front_lang" id="front_lang">
432 <?php foreach( $usces_settings['language'] as $Lkey => $Lvalue ){ ?>
433 <option value="<?php echo $Lkey; ?>"<?php echo ($system_front_lang == $Lkey ? ' selected="selected"' : ''); ?>><?php echo $Lvalue; ?></option>
434 <?php } ?>
435 </select></td>
436 <td><div id="ex_front_lang" class="explanation"><?php _e('You can select the Front-end language. The Back-end language follows setting config.php.', 'usces'); ?></div></td>
437 </tr>
438 </table>
439 <table class="form_table">
440 <tr height="50">
441 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_currency');"><?php _e('Currencies', 'usces'); ?></a></th>
442 <td width="10"><select name="currency" id="currency">
443 <?php foreach( $usces_settings['country'] as $Ckey => $Cvalue ){ ?>
444 <option value="<?php echo $Ckey; ?>"<?php echo ($system_currency == $Ckey ? ' selected="selected"' : ''); ?>><?php echo $Cvalue; ?></option>
445 <?php } ?>
446 <option value="manual"<?php echo ($system_currency == 'manual' ? ' selected="selected"' : ''); ?>><?php _e('Manual', 'usces'); ?></option>
447 </select></td>
448 <td><div id="ex_currency" class="explanation"><?php _e('Displays the currency symbol for each country, the amount separator, the decimal digits. This is a common item in both front end and back end.', 'usces'); ?></div></td>
449 </tr>
450 </table>
451 <table class="form_table">
452 <tr height="50">
453 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_addressform');"><?php _e('The name and address form', 'usces'); ?></a></th>
454 <td width="10"><select name="addressform" id="addressform">
455 <?php foreach( $usces_settings['country'] as $Ckey => $Cvalue ){ ?>
456 <option value="<?php echo $Ckey; ?>"<?php echo ($system_addressform == $Ckey ? ' selected="selected"' : ''); ?>><?php echo $Cvalue; ?></option>
457 <?php } ?>
458 </select></td>
459 <td><div id="ex_addressform" class="explanation"><?php _e('For entry form style, choose your country.', 'usces'); ?></div></td>
460 </tr>
461 </table>
462 <table class="form_table">
463 <tr height="50">
464 <th class="system_th">
465 <a style="cursor:pointer;" onclick="toggleVisibility('ex_target_market');"><?php _e('Target Market', 'usces'); ?></a>
466 <div><input name="set_target_market" id="set_target_market" type="button" value="<?php _e('Choose', 'usces'); ?>" onclick="operation.set_target_market();" /></div>
467 </th>
468 <td width="20"><select name="target_market[]" size="10" multiple="multiple" class="multipleselect" id="target_market">
469 <!--<option value="all"<?php echo ($system_target_markets == 'all' ? ' selected="selected"' : ''); ?>><?php _e('All countries', 'usces'); ?></option>-->
470 <?php foreach( $usces_settings['country'] as $Ckey => $Cvalue ){ ?>
471 <option value="<?php echo $Ckey; ?>"<?php echo (in_array($Ckey, $system_target_markets) ? ' selected="selected"' : ''); ?>><?php echo $Cvalue; ?></option>
472 <?php } ?>
473 </select></td>
474 <td><div id="ex_target_market" class="explanation"><?php _e('Select the number of possible areas within the country. Allows multiple selections.', 'usces'); ?></div></td>
475 </tr>
476 </table>
477 <table class="form_table">
478 <tr height="50">
479 <th class="system_th">
480 <a style="cursor:pointer;" onclick="toggleVisibility('ex_province');"><?php _e('Province', 'usces'); ?></a>
481 <div><span id="target_market_loading"></span><span id="target_market_province"></span></div>
482 </th>
483 <td width="150"><textarea name="province" id="province" cols="30" rows="10"></textarea><div id="province_ajax"></div></td>
484 <td><div id="ex_province" class="explanation"><?php _e('The district where sale is possible', 'usces'); ?>(<?php _e('Province', 'usces'); ?>) <?php _e('One line one by one.', 'usces'); ?></div></td>
485 </tr>
486 </table>
487 </div>
488 </div><!--postbox-->
489 </div><!--system_page_setting_2-->
490 </div><!--uscestabs_system-->
491 <!--20110331ysk end-->
492
493
494 </div><!--poststuff-->
495
496
497
498 <input name="usces_option_update" type="submit" class="button" value="<?php _e('change decision','usces'); ?>" />
499 <input type="hidden" id="post_ID" name="post_ID" value="<?php echo USCES_CART_NUMBER ?>" />
500 </form>
501 </div><!--usces_admin-->
502 </div><!--wrap-->