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