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_system.php

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

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