PluginProbe
Welcart e-Commerce / trunk
Welcart e-Commerce vtrunk
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 1.4.13 1.4.14 All 290 releases
usc-e-shop / includes / admin_system.php

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

687 lines 41.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin - System Setting Page.
4 *
5 * @package Welcart
6 */
7
8 global $usces_settings;
9
10 $divide_item = $this->options['divide_item'];
11 $itemimg_anchor_rel = $this->options['itemimg_anchor_rel'];
12 $fukugo_category_orderby = $this->options['fukugo_category_orderby'];
13 $fukugo_category_order = $this->options['fukugo_category_order'];
14 $settlement_path = $this->options['settlement_path'];
15 $logs_path = ( isset( $this->options['logs_path'] ) ) ? $this->options['logs_path'] : '';
16 $use_ssl = $this->options['use_ssl'];
17 $ssl_url = $this->options['ssl_url'];
18 $ssl_url_admin = $this->options['ssl_url_admin'];
19 $inquiry_id = $this->options['inquiry_id'];
20 $orderby_itemsku = ( isset( $this->options['system']['orderby_itemsku'] ) ) ? $this->options['system']['orderby_itemsku'] : 0;
21 $orderby_itemopt = ( isset( $this->options['system']['orderby_itemopt'] ) ) ? $this->options['system']['orderby_itemopt'] : 0;
22 $front_language = apply_filters( 'usces_filter_front_language', $usces_settings['language'] );
23 $system_front_lang = ( isset( $this->options['system']['front_lang'] ) && ! empty( $this->options['system']['front_lang'] ) ) ? $this->options['system']['front_lang'] : usces_get_local_language();
24 $system_currency = ( isset( $this->options['system']['currency'] ) && ! empty( $this->options['system']['currency'] ) ) ? $this->options['system']['currency'] : usces_get_base_country();
25 $system_addressform = ( isset( $this->options['system']['addressform'] ) && ! empty( $this->options['system']['addressform'] ) ) ? $this->options['system']['addressform'] : usces_get_local_addressform();
26 $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();
27 $no_cart_css = ( isset( $this->options['system']['no_cart_css'] ) ) ? $this->options['system']['no_cart_css'] : 0;
28 $dec_orderid_flag = ( isset( $this->options['system']['dec_orderID_flag'] ) ) ? $this->options['system']['dec_orderID_flag'] : 0;
29 $dec_orderid_prefix = ( isset( $this->options['system']['dec_orderID_prefix'] ) ) ? $this->options['system']['dec_orderID_prefix'] : '';
30 $dec_orderid_digit = ( isset( $this->options['system']['dec_orderID_digit'] ) ) ? $this->options['system']['dec_orderID_digit'] : '';
31 $subimage_rule = ( isset( $this->options['system']['subimage_rule'] ) ) ? $this->options['system']['subimage_rule'] : 0;
32 $pdf_delivery = ( isset( $this->options['system']['pdf_delivery'] ) ) ? $this->options['system']['pdf_delivery'] : 0;
33 $recaptcha_v3 = ( isset( $this->options['system']['recaptcha_v3'] ) ) ? $this->options['system']['recaptcha_v3'] : 0;
34 $recaptcha_site_key = ( isset( $this->options['system']['recaptcha_site_key'] ) ) ? $this->options['system']['recaptcha_site_key'] : '';
35 $recaptcha_secret_key = ( isset( $this->options['system']['recaptcha_secret_key'] ) ) ? $this->options['system']['recaptcha_secret_key'] : '';
36 $member_pass_rule_min = ( isset( $this->options['system']['member_pass_rule_min'] ) ) ? $this->options['system']['member_pass_rule_min'] : 6;
37 $member_pass_rule_max = ( isset( $this->options['system']['member_pass_rule_max'] ) ) && ! empty( $this->options['system']['member_pass_rule_max'] ) ? $this->options['system']['member_pass_rule_max'] : '';
38 $member_pass_rule_upercase = ( isset( $this->options['system']['member_pass_rule_upercase'] ) ) ? boolval( $this->options['system']['member_pass_rule_upercase'] ) : false;
39 $member_pass_rule_lowercase = ( isset( $this->options['system']['member_pass_rule_lowercase'] ) ) ? boolval( $this->options['system']['member_pass_rule_lowercase'] ) : false;
40 $member_pass_rule_digit = ( isset( $this->options['system']['member_pass_rule_digit'] ) ) ? boolval( $this->options['system']['member_pass_rule_digit'] ) : false;
41 $member_pass_rule_symbol = ( isset( $this->options['system']['member_pass_rule_symbol'] ) ) ? boolval( $this->options['system']['member_pass_rule_symbol'] ) : false;
42 $csv_encode_type = ( isset( $this->options['system']['csv_encode_type'] ) ) ? $this->options['system']['csv_encode_type'] : 0;
43 $csv_category_format = ( isset( $this->options['system']['csv_category_format'] ) ) ? $this->options['system']['csv_category_format'] : 0;
44 $settlement_backup = ( isset( $this->options['system']['settlement_backup'] ) ) ? $this->options['system']['settlement_backup'] : 0;
45 $settlement_notice = ( isset( $this->options['system']['settlement_notice'] ) ) ? $this->options['system']['settlement_notice'] : 0;
46 $order_list_delete_link = ( isset( $this->options['system']['order_list_delete_link'] ) ) ? $this->options['system']['order_list_delete_link'] : 0;
47 $member_list_delete_link = ( isset( $this->options['system']['member_list_delete_link'] ) ) ? $this->options['system']['member_list_delete_link'] : 0;
48 ?>
49 <script type="text/javascript">
50 jQuery(function($){
51
52 var pre_target = '';
53
54 operation = {
55 settings: {
56 url: uscesL10n.requestFile,
57 type: 'POST',
58 cache: false,
59 },
60
61 set_target_market: function() {
62 var target = [];
63 var target_text = [];
64 $("#target_market option:selected").each(function () {
65 target.push($(this).val());
66 target_text.push($(this).text());
67 });
68 if(target.length == 0) {
69 alert('<?php esc_html_e( 'Please select one of the country.', 'usces' ); ?>');
70 return -1;
71 }
72 var sel = $('select_target_market_province').val();
73 var name_select = '<select name="select_target_market_province" id="select_target_market_province" onchange="operation.onchange_target_market_province(this.selectedIndex);">'+"\n";
74 var target_args = '';
75 var c = '';
76 for(var i=0; i<target.length; i++){
77 name_select += '<option value="'+target[i]+'">'+target_text[i]+'</option>'+"\n";
78 target_args += c+target[i];
79 c = ',';
80 }
81 name_select += "</select>\n";
82 $("#target_market_province").html(name_select);
83 $("#target_market_loading").html('<img src="<?php echo esc_url( USCES_PLUGIN_URL ); ?>/images/loading-publish.gif" />');
84 var s = operation.settings;
85 s.data = "action=target_market_ajax&target="+target_args+"&wc_nonce=<?php echo wp_create_nonce( 'target_market_ajax' ); ?>";
86 $.ajax( s ).done(function( data ) {
87 $('#province_ajax').empty();
88 for(var i=0; i < data.length; i++) {
89 if(data[i].length > 0) {
90 var state = data[i].split(',');
91 var value = (state[1] === undefined || state[1] === 'undefined') ? '' : state[1];
92 $('#province_ajax').append('<input type="hidden" name="province_'+state[0]+'" id="province_'+state[0]+'" value="'+ value +'">');
93 }
94 }
95 $('#select_target_market_province').triggerHandler('change', 0);
96 $("#target_market_loading").html('');
97 }).fail(function( msg ){
98 $("#tusces_systemarget_market_loading").html('');
99 });
100 return false;
101 },
102
103 onchange_target_market_province: function(index) {
104 if(pre_target != '') $('#province_'+pre_target).val($("#province").val());
105 var target = $("#select_target_market_province option:selected").val();
106 $("#province").val('');
107 $("#province").val($('#province_'+target).val());
108 pre_target = target;
109 },
110
111 backup : function() {
112 var s = operation.settings;
113 s.data = "action=usces_admin_ajax&mode=options_backup&wc_nonce=<?php echo wp_create_nonce( 'options_backup' ); ?>";
114 $.ajax( s ).done(function( data ) {
115 if(data) {
116 alert("<?php esc_html_e( 'Has been saved.', 'usces' ); ?>");
117 $("#options_restore").prop( "disabled", false );
118 $("#options_backup_date").html(data);
119 } else {
120 alert("<?php esc_html_e( 'I failed to save.', 'usces' ); ?>");
121 }
122 }).fail(function( msg ){
123 alert("<?php esc_html_e( 'I failed to save.', 'usces' ); ?>");
124 });
125 return false;
126 },
127
128 restore : function() {
129 var s = operation.settings;
130 s.data = "action=usces_admin_ajax&mode=options_restore&wc_nonce=<?php echo wp_create_nonce( 'options_restore' ); ?>";
131 $.ajax( s ).done(function( data ) {
132 if(data) {
133 location.href = "<?php echo esc_url( USCES_ADMIN_URL ); ?>?page=usces_system";
134 } else {
135 alert("<?php esc_html_e( 'I failed to restore.', 'usces' ); ?>");
136 }
137 }).fail(function( msg ){
138 alert("<?php esc_html_e( 'I failed to restore.', 'usces' ); ?>");
139 });
140 return false;
141 },
142
143 error_bg_color : function(id) {
144 $(id).css({'background-color': '#FFA'}).click(function() {
145 $(id).css({'background-color': '#FFF'});
146 });
147 }
148 };
149
150 $('form').submit(function() {
151 $('#province_'+pre_target).val($("#province").val());
152
153 var error = 0;
154 var tabs = 0;
155
156 if( !checkAlp( $("#dec_orderID_prefix").val() ) ) {
157 error++;
158 $("#dec_orderID_prefix").css({'background-color': '#FFA'}).click(function() {
159 $(this).css({'background-color': '#FFF'});
160 });
161 }
162 if( !checkNum( $("#dec_orderID_digit").val() ) ) {
163 error++;
164 $("#dec_orderID_digit").css({'background-color': '#FFA'}).click(function() {
165 $(this).css({'background-color': '#FFF'});
166 });
167 }
168 if( !checkNum( $("#member_pass_rule_min").val() ) || $("#member_pass_rule_min").val() == false ){
169 error++;
170 operation.error_bg_color("#member_pass_rule_min");
171 }
172 if( !checkNum( $("#member_pass_rule_max").val() ) || $("#member_pass_rule_max").val() > 30 ) {
173 error++;
174 operation.error_bg_color("#member_pass_rule_max");
175 }
176 if( parseInt($("#member_pass_rule_min").val()) > parseInt($("#member_pass_rule_max").val()) ) {
177 error++;
178 operation.error_bg_color("#member_pass_rule_min");
179 operation.error_bg_color("#member_pass_rule_max");
180 }
181 var target = [];
182 $("#target_market option:selected").each(function() {
183 target.push($(this).val());
184 });
185 if( target.length == 0 ) {
186 error++;
187 tabs = 1;
188 $("#target_market").css({'background-color': '#FFA'}).click(function() {
189 $(this).css({'background-color': '#FFF'});
190 });
191
192 } else {
193 var province = 'OK';
194 for(var i=0; i<target.length; i++) {
195 if(target[i] != 'JP' && target[i] != 'US') {
196 if( "" == $("#province_"+target[i]).val() ) province = 'NG';
197 }
198 }
199 if( 'OK' != province ) {
200 error++;
201 tabs = 1;
202 $("#province").css({'background-color': '#FFA'}).click(function() {
203 $(this).css({'background-color': '#FFF'});
204 });
205 }
206 }
207
208 if( 0 < error ) {
209 $("#aniboxStatus").removeClass("none");
210 $("#aniboxStatus").addClass("error");
211 $("#info_image").attr("src", "<?php echo esc_url( USCES_PLUGIN_URL ); ?>/images/list_message_error.gif");
212 $("#info_massage").html("<?php esc_html_e( 'There is incomplete data.', 'usces' ); ?>");
213 $("#anibox").animate({ backgroundColor: "#FFE6E6" }, 2000);
214 if( $.fn.jquery < "1.10" ) {
215 $('#uscestabs_system').tabs("select", tabs);
216 } else {
217 $('#uscestabs_system').tabs("option", "active", tabs);
218 }
219 return false;
220 } else {
221 return true;
222 }
223 });
224
225 $(".hndle").click(function() {
226 var inside = $(this).next();
227 var key = $(this).attr("id");
228 if( 'visible' == $.cookie(key) ){
229 inside.hide('slow');
230 $.cookie(key, 'hidden');
231 }else{
232 inside.show('slow');
233 $.cookie(key, 'visible');
234 }
235 });
236 $("#system_page_setting_3 .hndle").each(function(i,e) {
237 var key = $(e).attr('id');
238 var inside = $(e).next();
239 if( 'visible' == $.cookie(key) ){
240 $(inside).show();
241 }else{
242 $(inside).hide();
243 }
244 });
245
246 $( document ).on( 'click', '#system_page_setting_3 .handlediv', function( e ) {
247 var $el = $( this ),
248 p = $el.closest( '.postbox' ),
249 ariaExpandedValue;
250 p.toggleClass( 'closed' );
251 ariaExpandedValue = ! p.hasClass( 'closed' );
252 $el.attr( 'aria-expanded', ariaExpandedValue );
253
254 var key = $el.attr( 'id' );
255 if ( p.hasClass( 'closed' ) ) {
256 $.cookie( key, 'hidden' );
257 } else {
258 $.cookie( key, 'visible' );
259 }
260 });
261 $( '#system_page_setting_3 .handlediv' ).each( function( i, e ) {
262 var $el = $( this ),
263 p = $el.closest( '.postbox' );
264
265 var key = $( this ).attr( 'id' );
266 if ( 'visible' == $.cookie( key ) ) {
267 p.removeClass( 'closed' );
268 } else {
269 p.toggleClass( 'closed' );
270 }
271 });
272 });
273
274 jQuery(document).ready(function($) {
275 operation.set_target_market();
276
277 if( $.fn.jquery < "1.10" ) {
278 var $tabs = $('#uscestabs_system').tabs({
279 cookie: {
280 // store cookie for a day, without, it would be a session cookie
281 expires: 1
282 }
283 });
284 } else {
285 $( "#uscestabs_system" ).tabs({
286 active: ($.cookie("uscestabs_system")) ? $.cookie("uscestabs_system") : 0
287 , activate: function( event, ui ){
288 $.cookie("uscestabs_system", $(this).tabs("option", "active"));
289 }
290 });
291 }
292 <?php
293 $options_backup = get_option( 'usces_backup' );
294 $options_backup_date = get_option( 'usces_backup_date', '' );
295 if ( empty( $options_backup ) ) :
296 ?>
297 $("#options_restore").prop( "disabled", true );
298 <?php
299 endif;
300 ?>
301 $('#options_backup').click(function() {
302 operation.backup();
303 });
304 $('#options_restore').click(function() {
305 if( !confirm("<?php esc_html_e( 'I will restore the option value. Would you like?', 'usces' ); ?>") ) return;
306 operation.restore();
307 });
308 });
309 </script>
310 <div class="wrap">
311 <div class="usces_admin">
312 <h1>Welcart Shop <?php esc_html_e( 'System Setting', 'usces' ); ?></h1>
313 <?php usces_admin_action_status(); ?>
314 <div id="poststuff" class="metabox-holder">
315
316 <div class="uscestabs" id="uscestabs_system">
317 <ul>
318 <li><a href="#system_page_setting_1"><?php esc_html_e( 'System Setting', 'usces' ); ?></a></li>
319 <li><a href="#system_page_setting_2"><?php esc_html_e( 'Language Currency Country', 'usces' ); ?></a></li>
320 <li><a href="#system_page_setting_3"><?php esc_html_e( 'System extension', 'usces' ); ?></a></li>
321 <li><a href="#system_page_setting_4"><?php esc_html_e( 'System Environment', 'usces' ); ?></a></li>
322 <?php do_action( 'usces_action_admin_system_tab_label' ); ?>
323 </ul>
324
325 <form action="" method="post" name="option_form" id="option_form1">
326
327 <div id="system_page_setting_1">
328 <div class="postbox">
329 <h3><span><?php esc_html_e( 'System Setting', 'usces' ); ?></span></h3>
330 <div class="inside">
331
332 <!-- <input name="usces_option_update" type="submit" class="button" value="<?php esc_html_e( 'change decision', 'usces' ); ?>" /> -->
333
334 <table class="form_table">
335 <tr height="35">
336 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility( 'ex_divide_item' );"><?php esc_html_e( 'Display Modes', 'usces' ); ?></a></th>
337 <td width="10"><input name="divide_item" type="checkbox" id="divide_item" value="<?php echo esc_attr( $divide_item ); ?>"<?php checked( $divide_item, 1 ); ?> /></td>
338 <td width="300"><label for="divide_item"><?php esc_html_e( 'Not display an article in blog', 'usces' ); ?></label></td>
339 <td><div id="ex_divide_item" class="explanation"><?php esc_html_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>
340 </tr>
341 </table>
342 <hr />
343 <table class="form_table">
344 <tr height="35">
345 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_itemimg_anchor_rel');"><?php esc_html_e( 'rel attribute', 'usces' ); ?></a></th>
346 <td width="30">rel="</td>
347 <td width="100"><input name="itemimg_anchor_rel" id="itemimg_anchor_rel" type="text" value="<?php echo esc_attr( $itemimg_anchor_rel ); ?>" /></td>
348 <td width="10">"</td>
349 <td><div id="ex_itemimg_anchor_rel" class="explanation"><?php esc_html_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>
350 </tr>
351 </table>
352 <hr />
353 <table class="form_table">
354 <tr height="35">
355 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_fcat_orderby');"><?php esc_html_e( 'compound category sort item', 'usces' ); ?></a></th>
356 <td width="10"><select name="fukugo_category_orderby" id="fukugo_category_orderby">
357 <option value="ID"<?php selected( $fukugo_category_orderby, 'ID' ); ?>><?php esc_html_e( 'category ID', 'usces' ); ?></option>
358 <option value="name"<?php selected( $fukugo_category_orderby, 'name' ); ?>><?php esc_html_e( 'category name', 'usces' ); ?></option>
359 </select></td>
360 <td><div id="ex_fcat_orderby" class="explanation"><?php esc_html_e( 'In a category to display in a compound category search page, you can choose an object to sort.', 'usces' ); ?></div></td>
361 </tr>
362 <tr height="35">
363 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_fcat_order');"><?php esc_html_e( 'compound category sort order', 'usces' ); ?></a></th>
364 <td width="10"><select name="fukugo_category_order" id="fukugo_category_order">
365 <option value="ASC"<?php selected( $fukugo_category_order, 'ASC' ); ?>><?php esc_html_e( 'Ascending', 'usces' ); ?></option>
366 <option value="DESC"<?php selected( $fukugo_category_order, 'DESC' ); ?>><?php esc_html_e( 'Descendin', 'usces' ); ?></option>
367 </select></td>
368 <td><div id="ex_fcat_order" class="explanation"><?php esc_html_e( 'In a category to display in a compound category search page, you can choose sort order.', 'usces' ); ?></div></td>
369 </tr>
370 </table>
371 <hr />
372 <table class="form_table">
373 <tr height="35">
374 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_settlement_path');"><?php esc_html_e( 'settlement module path', 'usces' ); ?></a></th>
375 <td><input name="settlement_path" type="text" id="settlement_path" value="<?php echo esc_attr( $settlement_path ); ?>" size="60" /></td>
376 <td><div id="ex_settlement_path" class="explanation"><?php esc_html_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>
377 </tr>
378 <!-- <tr height="35">
379 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_logs_path');"><?php esc_html_e( 'Logs path', 'usces' ); ?></a></th>
380 <td><input name="logs_path" type="text" id="logs_path" value="<?php echo esc_attr( $logs_path ); ?>" size="60" />/welcart/logs/</td>
381 <td><div id="ex_logs_path" class="explanation"><?php esc_html_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>
382 </tr>
383 --></table>
384 <hr />
385 <table class="form_table">
386 <tr height="35">
387 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_use_ssl');"><?php esc_html_e( 'Switching SSL', 'usces' ); ?></a></th>
388 <td width="10"><input name="use_ssl" type="checkbox" id="use_ssl" value="<?php echo esc_attr( $use_ssl ); ?>"<?php checked( $use_ssl, 1 ); ?> /></td>
389 <td width="300">&nbsp;</td>
390 <td><div id="ex_use_ssl" class="explanation"><?php esc_html_e( 'Check in case of switching SSL and Non-SSL between cart page and member page.', 'usces' ); ?><br /><?php esc_html_e( 'Uncheck in case of the site is AOSSL.', 'usces' ); ?></div></td>
391 </tr>
392 </table>
393 <table class="form_table">
394 <tr height="35">
395 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_ssl_url_admin');"><?php esc_html_e( 'WordPress address (SSL)', 'usces' ); ?></a></th>
396 <td><input name="ssl_url_admin" type="text" id="ssl_url_admin" value="<?php echo esc_attr( $ssl_url_admin ); ?>" size="60" /></td>
397 <td><div id="ex_ssl_url_admin" class="explanation"><?php _e( 'https://*WordPress address*<br />You can use common use SSL.', 'usces' ); ?></div></td>
398 </tr>
399 </table>
400 <table class="form_table">
401 <tr height="35">
402 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_ssl_url');"><?php esc_html_e( 'Site address (SSL)', 'usces' ); ?></a></th>
403 <td><input name="ssl_url" type="text" id="ssl_url" value="<?php echo esc_attr( $ssl_url ); ?>" size="60" /></td>
404 <td><div id="ex_ssl_url" class="explanation"><?php _e( 'https://*Site address*<br />You can use common use SSL.', 'usces' ); ?></div></td>
405 </tr>
406 </table>
407 <hr />
408 <table class="form_table">
409 <tr height="35">
410 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_inquiry_id');"><?php esc_html_e( 'The page_id of the inquiry-form', 'usces' ); ?></a></th>
411 <td><input name="inquiry_id" type="text" id="inquiry_id" value="<?php echo esc_attr( $inquiry_id ); ?>" size="7" /></td>
412 <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>
413 </tr>
414 </table>
415 <hr />
416 <table class="form_table">
417 <tr height="35">
418 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_no_cart_css');"><?php esc_html_e( 'To disable usces_cart.css', 'usces' ); ?></a></th>
419 <td width="10"><input name="no_cart_css" type="checkbox" id="no_cart_css" value="<?php echo esc_attr( $no_cart_css ); ?>"<?php checked( $no_cart_css, 1 ); ?> /></td>
420 <td width="300">&nbsp;</td>
421 <td><div id="ex_no_cart_css" class="explanation"><?php esc_html_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>
422 </tr>
423 </table>
424 <hr />
425 <table class="form_table">
426 <tr height="35">
427 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_dec_orderID_flag');"><?php esc_html_e( 'Rules of order-ID numbering', 'usces' ); ?></a></th>
428 <td width="10"><input name="dec_orderID_flag" id="dec_orderID_flag0" type="radio" value="0"<?php checked( $dec_orderid_flag, 0 ); ?> /></td><td width="100"><label for="dec_orderID_flag0"><?php esc_html_e( 'Sequential number', 'usces' ); ?></label></td>
429 <td width="10"><input name="dec_orderID_flag" id="dec_orderID_flag1" type="radio" value="1"<?php checked( $dec_orderid_flag, 1 ); ?> /></td><td width="100"><label for="dec_orderID_flag1"><?php esc_html_e( 'Random string', 'usces' ); ?></label></td>
430 <td><div id="ex_dec_orderID_flag" class="explanation"><?php esc_html_e( 'The initial value is a sequential number starting from 1000.', 'usces' ); ?></div></td>
431 </tr>
432 </table>
433 <table class="form_table">
434 <tr height="35">
435 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_dec_orderID_prefix');"><?php esc_html_e( 'Prefix of order-ID', 'usces' ); ?></a></th>
436 <td><input name="dec_orderID_prefix" type="text" id="dec_orderID_prefix" value="<?php echo esc_attr( $dec_orderid_prefix ); ?>" size="7" /></td>
437 <td><div id="ex_dec_orderID_prefix" class="explanation"><?php esc_html_e( 'If you do not need it, leave it blank.', 'usces' ); ?></div></td>
438 </tr>
439 </table>
440 <table class="form_table">
441 <tr height="35">
442 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_dec_orderID_digit');"><?php esc_html_e( 'Digits of order-ID', 'usces' ); ?></a></th>
443 <td><input name="dec_orderID_digit" type="text" id="dec_orderID_digit" value="<?php echo esc_attr( $dec_orderid_digit ); ?>" size="7" /></td>
444 <td><div id="ex_dec_orderID_digit" class="explanation"><?php esc_html_e( 'This value must be at least six digits. The prefix is not included.', 'usces' ); ?></div></td>
445 </tr>
446 </table>
447 <hr />
448 <?php if ( 0 === (int) NEW_PRODUCT_IMAGE_REGISTER::$opts['switch_flag'] ) : ?>
449 <table class="form_table">
450 <tr height="30">
451 <th class="system_th" rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_subimage_rule');"><?php esc_html_e( 'Product sub-image rule', 'usces' ); ?></a></th>
452 <td width="10"><input name="subimage_rule" id="subimage_rule0" type="radio" value="0"<?php checked( $subimage_rule, 0 ); ?> /></td><td width="400"><label for="subimage_rule0"><?php esc_html_e( 'Product Code Forward Matching', 'usces' ); ?></label></td>
453 <td rowspan="2"><div id="ex_subimage_rule" class="explanation"><?php esc_html_e( 'Applies only when the extension "New product image registration" is disabled.', 'usces' ); ?><br><?php _e( 'If the sub-images are not applied correctly, please apply the underscore rule.<br />The file name of the sub-image should have two _ (underscores) between the product code and the sequential number.', 'usces' ); ?></div></td>
454 </tr>
455 <tr height="30">
456 <td width="10"><input name="subimage_rule" id="subimage_rule1" type="radio" value="1"<?php checked( $subimage_rule, 1 ); ?> /></td><td width="400"><label for="subimage_rule1"><?php esc_html_e( 'Put two _ (underscores) between the product code and the sequential number', 'usces' ); ?></label></td>
457 </tr>
458 </table>
459 <hr />
460 <?php endif; ?>
461 <table class="form_table">
462 <tr height="30">
463 <th class="system_th" rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_pdf_delivery');"><?php esc_html_e( 'Described method of invoice', 'usces' ); ?></a></th>
464 <td width="10"><input name="pdf_delivery" id="pdf_delivery0" type="radio" value="0"<?php checked( $pdf_delivery, 0 ); ?> /></td><td width="300"><label for="pdf_delivery0"><?php esc_html_e( 'To address the purchaser information', 'usces' ); ?></label></td>
465 <td rowspan="2"><div id="ex_pdf_delivery" class="explanation"><?php _e( "If you select the 'to address the purchaser information', delivery will be described below address of (purchaser information) when the shipping address is different from the information of the purchaser.<br />Only the information of the destination as you want it to appear on your address if you choose to 'address and the destination'.", 'usces' ); ?></div></td>
466 </tr>
467 <tr height="30">
468 <td width="10"><input name="pdf_delivery" id="pdf_delivery1" type="radio" value="1"<?php checked( $pdf_delivery, 1 ); ?> /></td><td width="300"><label for="pdf_delivery1"><?php esc_html_e( 'To address the shipping information', 'usces' ); ?></label></td>
469 </tr>
470 </table>
471 <hr />
472 <table class="form_table">
473 <tr height="30">
474 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_member_pass_rule');"><?php esc_html_e( 'Character limit for membership password', 'usces' ); ?></a></th>
475 <td><input name="member_pass_rule_min" type="text" id="member_pass_rule_min" value="<?php echo esc_attr( $member_pass_rule_min ); ?>" size="3" />&nbsp;<?php esc_html_e( 'or more characters', 'usces' ); ?>&nbsp;&nbsp;</td>
476 <td><input name="member_pass_rule_max" type="text" id="member_pass_rule_max" value="<?php echo esc_attr( $member_pass_rule_max ); ?>" size="3" />&nbsp;<?php esc_html_e( 'characters or less', 'usces' ); ?></td>
477 <td><div id="ex_member_pass_rule" class="explanation"><?php _e( '[Numeric(one or more)] The password can be set to a length of between 1 and 30 characters.<br />The lower limit must not exceed the upper limit. (10 to 8, etc.)', 'usces' ); ?></div></td>
478 </tr>
479 </table>
480 <table class="form_table">
481 <tr height="30">
482 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_member_character_rule');"><?php esc_html_e( 'Membership password rules', 'usces' ); ?></a></th>
483 <td width="10"><input name="member_pass_rule_upercase" type="checkbox" id="member_pass_rule_upercase" value="1" <?php checked( $member_pass_rule_upercase, true ); ?> /></td>
484 <td><label for="member_pass_rule_upercase"><?php esc_html_e( 'Include upper-case alphabetics', 'usces' ); ?></label></td>
485 <td width="40">&nbsp;</td>
486 <td width="10"><input name="member_pass_rule_lowercase" type="checkbox" id="member_pass_rule_lowercase" value="1" <?php checked( $member_pass_rule_lowercase, true ); ?> /></td>
487 <td><label for="member_pass_rule_lowercase"><?php esc_html_e( 'Include lower-case alphabetics', 'usces' ); ?></label></td>
488 <td width="40">&nbsp;</td>
489 <td width="10"><input name="member_pass_rule_digit" type="checkbox" id="member_pass_rule_digit" value="1" <?php checked( $member_pass_rule_digit, true ); ?> /></td>
490 <td><label for="member_pass_rule_digit"><?php esc_html_e( 'Include numeric character', 'usces' ); ?></label></td>
491 <td width="40">&nbsp;</td>
492 <td width="10"><input name="member_pass_rule_symbol" type="checkbox" id="member_pass_rule_symbol" value="1" <?php checked( $member_pass_rule_symbol, true ); ?>/></td>
493 <td><label for="member_pass_rule_symbol"><?php esc_html_e( 'Include symbolic character', 'usces' ); ?></label></td>
494 <td><div id="ex_member_character_rule" class="explanation"><?php esc_html_e( 'Membership password must follow these rules.', 'usces' ); ?></div></td>
495 </tr>
496 </table>
497 <hr />
498 <table class="form_table">
499 <tr height="30">
500 <th class="system_th" rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_csv_encode_type');"><?php esc_html_e( 'Character code in the CSV file', 'usces' ); ?></a></th>
501 <td width="10"><input name="csv_encode_type" id="csv_encode_type0" type="radio" value="0"<?php checked( $csv_encode_type, 0 ); ?> /></td><td width="300"><label for="csv_encode_type0"><?php esc_html_e( 'Shift_JIS', 'usces' ); ?></label></td>
502 <td rowspan="2"><div id="ex_csv_encode_type" class="explanation"><?php esc_html_e( 'If you want to perform product registration by uploading a CSV file, please upload a CSV file of character code selected here.', 'usces' ); ?></div></td>
503 </tr>
504 <tr height="30">
505 <td width="10"><input name="csv_encode_type" id="csv_encode_type1" type="radio" value="1"<?php checked( $csv_encode_type, 1 ); ?> /></td><td width="300"><label for="csv_encode_type1"><?php esc_html_e( 'UTF-8', 'usces' ); ?></label></td>
506 </tr>
507 </table>
508 <hr />
509 <table class="form_table">
510 <tr height="30">
511 <th class="system_th" rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_csv_category_format');"><?php esc_html_e( "'Category' of CSV product data file", 'usces' ); ?></a></th>
512 <td width="10"><input name="csv_category_format" id="csv_category_format_0" type="radio" value="0"<?php checked( $csv_category_format, 0 ); ?> /></td><td width="300"><label for="csv_category_format_0"><?php esc_html_e( 'ID (tag_ID)', 'usces' ); ?></label></td>
513 <td rowspan="2"><div id="ex_csv_category_format" class="explanation"><?php esc_html_e( "You can select 'Category' registration and output format.", 'usces' ); ?></div></td>
514 </tr>
515 <tr height="30">
516 <td width="10"><input name="csv_category_format" id="csv_category_format_1" type="radio" value="1"<?php checked( $csv_category_format, 1 ); ?> /></td><td width="300"><label for="csv_category_format_1"><?php esc_html_e( 'slug (slug)', 'usces' ); ?></label></td>
517 </tr>
518 </table>
519 <hr />
520 <table class="form_table">
521 <tr height="35">
522 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_options_backup');"><?php esc_html_e( 'Setup data backup', 'usces' ); ?></a></th>
523 <td><input name="options_backup" id="options_backup" type="button" class="button" value="<?php esc_attr_e( 'Backup options', 'usces' ); ?>" ></td>
524 <td><input name="options_restore" id="options_restore" type="button" class="button" value="<?php esc_attr_e( 'Restoring a Backup', 'usces' ); ?>" ></td>
525 <td><div id="options_backup_date"><?php echo esc_html( $options_backup_date ); ?></div></td>
526 <td><div id="ex_options_backup" class="explanation"><?php esc_html_e( 'You can take the backup of the Welcart setup data.', 'usces' ); ?></div></td>
527 </tr>
528 </table>
529 <hr />
530 <table class="form_table">
531 <tr height="30">
532 <th class="system_th" rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_settlement_backup');"><?php esc_html_e( 'Order data re-created from the settlement log', 'usces' ); ?></a></th>
533 <td width="10"><input name="settlement_backup" id="settlement_backup_0" type="radio" value="0"<?php checked( $settlement_backup, 0 ); ?>/></td><td width="100"><label for="settlement_backup_0"><?php esc_html_e( 'Do not Use', 'usces' ); ?></label></td>
534 <td rowspan="2"><div id="ex_settlement_backup" class="explanation"><?php esc_html_e( 'When the credit card settlement is chosen, save the purchase information in log before settlement. Create the order data from log.', 'usces' ); ?></div></td>
535 </tr>
536 <tr height="30">
537 <td width="10"><input name="settlement_backup" id="settlement_backup_1" type="radio" value="1"<?php checked( $settlement_backup, 1 ); ?>/></td><td width="100"><label for="settlement_backup_1"><?php esc_html_e( 'Use', 'usces' ); ?></label></td>
538 </tr>
539 </table>
540 <hr />
541 <table class="form_table">
542 <tr height="30">
543 <th class="system_th" rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_settlement_notice');"><?php esc_html_e( 'Settlement error message', 'usces' ); ?></a></th>
544 <td width="10"><input name="settlement_notice" id="settlement_notice_0" type="radio" value="0"<?php checked( $settlement_notice, 0 ); ?>/></td><td width="100"><label for="settlement_notice_0"><?php esc_html_e( 'Do not display', 'usces' ); ?></label></td>
545 <td rowspan="2"><div id="ex_settlement_notice" class="explanation">
546 <?php
547 esc_html_e( 'A settlement error message will be displayed on the admin screen when a settlement error occurs.', 'usces' );
548 if ( defined( 'WCEX_DLSELLER' ) || defined( 'WCEX_AUTO_DELIVERY' ) ) {
549 esc_html_e( 'If you are using the extension plugin "WCEX DL Seller" or "WCEX Auto Delivery", it always be displayed even if you select "Do not display".', 'usces' );
550 }
551 ?>
552 </div></td>
553 </tr>
554 <tr height="30">
555 <td width="10"><input name="settlement_notice" id="settlement_notice_1" type="radio" value="1"<?php checked( $settlement_notice, 1 ); ?>/></td><td width="100"><label for="settlement_notice_1"><?php esc_html_e( 'Display', 'usces' ); ?></label></td>
556 </tr>
557 </table>
558 <hr />
559 <table class="form_table">
560 <tr height="30">
561 <th class="system_th" rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_order_list_delete_link');"><?php esc_html_e( 'Delete link in the order list', 'usces' ); ?></a></th>
562 <td width="10"><input name="order_list_delete_link" id="order_list_delete_link_0" type="radio" value="0"<?php checked( $order_list_delete_link, 0 ); ?>/></td><td width="100"><label for="order_list_delete_link_0"><?php esc_html_e( 'Do not display', 'usces' ); ?></label></td>
563 <td rowspan="2"><div id="ex_order_list_delete_link" class="explanation">
564 <?php
565 esc_html_e( 'Show/hide the "Delete" link in the order list', 'usces' );
566 ?>
567 </div></td>
568 </tr>
569 <tr height="30">
570 <td width="10"><input name="order_list_delete_link" id="order_list_delete_link_1" type="radio" value="1"<?php checked( $order_list_delete_link, 1 ); ?>/></td><td width="100"><label for="order_list_delete_link_1"><?php esc_html_e( 'Display', 'usces' ); ?></label></td>
571 </tr>
572 </table>
573 <table class="form_table">
574 <tr height="30">
575 <th class="system_th" rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_member_list_delete_link');"><?php esc_html_e( 'Delete link in the member list', 'usces' ); ?></a></th>
576 <td width="10"><input name="member_list_delete_link" id="member_list_delete_link_0" type="radio" value="0"<?php checked( $member_list_delete_link, 0 ); ?>/></td><td width="100"><label for="member_list_delete_link_0"><?php esc_html_e( 'Do not display', 'usces' ); ?></label></td>
577 <td rowspan="2"><div id="ex_member_list_delete_link" class="explanation">
578 <?php
579 esc_html_e( 'Show/hide the "Delete" link in the member list', 'usces' );
580 ?>
581 </div></td>
582 </tr>
583 <tr height="30">
584 <td width="10"><input name="member_list_delete_link" id="member_list_delete_link_1" type="radio" value="1"<?php checked( $member_list_delete_link, 1 ); ?>/></td><td width="100"><label for="member_list_delete_link_1"><?php esc_html_e( 'Display', 'usces' ); ?></label></td>
585 </tr>
586 </table>
587
588 </div>
589 </div><!--postbox-->
590 <input name="usces_system_option_update" type="submit" class="button button-primary" value="<?php esc_attr_e( 'change decision', 'usces' ); ?>" />
591 </div><!--system_page_setting_1-->
592
593 <input type="hidden" name="post_ID" value="<?php echo esc_attr( USCES_CART_NUMBER ); ?>" />
594 <?php wp_nonce_field( 'admin_system', 'wc_nonce' ); ?>
595 </form>
596
597 <form action="" method="post" name="option_form" id="option_form2">
598
599 <div id="system_page_setting_2">
600 <div class="postbox">
601 <h3><span><?php esc_html_e( 'Language Currency Country', 'usces' ); ?></span></h3>
602 <div class="inside">
603 <table class="form_table">
604 <tr height="50">
605 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_front_lang');"><?php esc_html_e( 'The language of the front-end', 'usces' ); ?></a></th>
606 <td width="10"><select name="front_lang" id="front_lang">
607 <?php foreach ( $front_language as $lkey => $lvalue ) : ?>
608 <option value="<?php echo esc_attr( $lkey ); ?>"<?php selected( $system_front_lang, $lkey ); ?>><?php echo esc_attr( $lvalue ); ?></option>
609 <?php endforeach; ?>
610 </select></td>
611 <td><div id="ex_front_lang" class="explanation"><?php esc_html_e( 'You can select the Front-end language. The Back-end language follows setting config.php.', 'usces' ); ?></div></td>
612 </tr>
613 </table>
614 <table class="form_table">
615 <tr height="50">
616 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_currency');"><?php esc_html_e( 'Currencies', 'usces' ); ?></a></th>
617 <td width="10"><select name="currency" id="currency">
618 <?php foreach ( $usces_settings['country'] as $ckey => $cvalue ) : ?>
619 <option value="<?php echo esc_attr( $ckey ); ?>"<?php selected( $system_currency, $ckey ); ?>><?php echo esc_attr( $cvalue ); ?></option>
620 <?php endforeach; ?>
621 <!--<option value="manual"<?php selected( $system_currency, 'manual' ); ?>><?php esc_html_e( 'Manual', 'usces' ); ?></option>-->
622 </select></td>
623 <td><div id="ex_currency" class="explanation"><?php esc_html_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>
624 </tr>
625 </table>
626 <table class="form_table">
627 <tr height="50">
628 <th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_addressform');"><?php esc_html_e( 'The name and address form', 'usces' ); ?></a></th>
629 <td width="10"><select name="addressform" id="addressform">
630 <?php foreach ( $usces_settings['country'] as $ckey => $cvalue ) : ?>
631 <option value="<?php echo esc_attr( $ckey ); ?>"<?php selected( $system_addressform, $ckey ); ?>><?php echo esc_attr( $cvalue ); ?></option>
632 <?php endforeach; ?>
633 </select></td>
634 <td><div id="ex_addressform" class="explanation"><?php esc_html_e( 'For entry form style, choose your country.', 'usces' ); ?></div></td>
635 </tr>
636 </table>
637 <table class="form_table">
638 <tr height="50">
639 <th class="system_th">
640 <a style="cursor:pointer;" onclick="toggleVisibility('ex_target_market');"><?php esc_html_e( 'Target Market', 'usces' ); ?></a>
641 <div><input name="set_target_market" id="set_target_market" type="button" class="button" value="<?php esc_attr_e( 'Choose', 'usces' ); ?>" onclick="operation.set_target_market();" /></div>
642 </th>
643 <td width="20"><select name="target_market[]" size="10" multiple="multiple" class="multipleselect" id="target_market">
644 <!--<option value="all"<?php selected( in_array( 'all', $system_target_markets ), true ); ?>><?php esc_html_e( 'All countries', 'usces' ); ?></option>-->
645 <?php foreach ( $usces_settings['country'] as $ckey => $cvalue ) : ?>
646 <option value="<?php echo esc_attr( $ckey ); ?>"<?php selected( in_array( $ckey, $system_target_markets ), true ); ?>><?php echo esc_attr( $cvalue ); ?></option>
647 <?php endforeach; ?>
648 </select></td>
649 <td><div id="ex_target_market" class="explanation"><?php esc_html_e( 'Select the number of possible areas within the country. Allows multiple selections.', 'usces' ); ?></div></td>
650 </tr>
651 </table>
652 <table class="form_table">
653 <tr height="50">
654 <th class="system_th">
655 <a style="cursor:pointer;" onclick="toggleVisibility('ex_province');"><?php esc_html_e( 'Province', 'usces' ); ?></a>
656 <div><span id="target_market_loading"></span><span id="target_market_province"></span></div>
657 </th>
658 <td width="150"><textarea name="province" id="province" cols="30" rows="10"></textarea><div id="province_ajax"></div></td>
659 <td><div id="ex_province" class="explanation"><?php esc_html_e( 'The district where sale is possible', 'usces' ); ?>(<?php esc_html_e( 'Province', 'usces' ); ?>) <?php _e( 'One line one by one.', 'usces' ); ?></div></td>
660 </tr>
661 </table>
662 </div>
663 </div><!--postbox-->
664 <input name="usces_locale_option_update" type="submit" class="button button-primary" value="<?php esc_attr_e( 'change decision', 'usces' ); ?>" />
665 </div><!--system_page_setting_2-->
666
667 <input type="hidden" name="post_ID" value="<?php echo esc_attr( USCES_CART_NUMBER ); ?>" />
668 <?php wp_nonce_field( 'admin_system', 'wc_nonce' ); ?>
669 </form>
670
671 <div id="system_page_setting_3" class="meta-box-sortables">
672 <?php do_action( 'usces_action_admin_system_extentions' ); ?>
673 </div><!--system_page_setting_3-->
674 <div id="system_page_setting_4">
675 <?php require_once 'admin_system_status.php'; ?>
676 <?php do_action( 'usces_action_admin_system_status' ); ?>
677 </div><!--system_page_setting_4-->
678
679 <?php do_action( 'usces_action_admin_system_tab_body' ); ?>
680
681 </div><!--uscestabs_system-->
682
683 </div><!--poststuff-->
684
685 </div><!--usces_admin-->
686 </div><!--wrap-->
687