| 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 |
--></table> |
| 368 |
<hr /> |
| 369 |
<table class="form_table"> |
| 370 |
<tr height="35"> |
| 371 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_use_ssl');"><?php _e('Use SSL','usces'); ?></a></th> |
| 372 |
<?php $checked = $use_ssl == 1 ? ' checked="checked"' : ''; ?> |
| 373 |
<td width="10"><input name="use_ssl" type="checkbox" id="use_ssl" value="<?php echo esc_attr($use_ssl); ?>"<?php echo $checked; ?> /></td> |
| 374 |
<td width="300"> </td> |
| 375 |
<td><div id="ex_use_ssl" class="explanation"><?php _e('Please decide whether you use SSL', 'usces'); ?></div></td> |
| 376 |
</tr> |
| 377 |
</table> |
| 378 |
<table class="form_table"> |
| 379 |
<tr height="35"> |
| 380 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_ssl_url_admin');"><?php _e('WordPress address (SSL)', 'usces'); ?></a></th> |
| 381 |
<td><input name="ssl_url_admin" type="text" id="ssl_url_admin" value="<?php echo esc_attr($ssl_url_admin); ?>" size="60" /></td> |
| 382 |
<td><div id="ex_ssl_url_admin" class="explanation"><?php _e('https://*WordPress address*<br />You can use common use SSL.', 'usces'); ?></div></td> |
| 383 |
</tr> |
| 384 |
</table> |
| 385 |
<table class="form_table"> |
| 386 |
<tr height="35"> |
| 387 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_ssl_url');"><?php _e('Blog address (SSL)', 'usces'); ?></a></th> |
| 388 |
<td><input name="ssl_url" type="text" id="ssl_url" value="<?php echo esc_attr($ssl_url); ?>" size="60" /></td> |
| 389 |
<td><div id="ex_ssl_url" class="explanation"><?php _e('https://*Blog address*<br />You can use common use SSL.', 'usces'); ?></div></td> |
| 390 |
</tr> |
| 391 |
</table> |
| 392 |
<hr /> |
| 393 |
<table class="form_table"> |
| 394 |
<tr height="35"> |
| 395 |
<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> |
| 396 |
<td><input name="inquiry_id" type="text" id="inquiry_id" value="<?php echo esc_attr($inquiry_id); ?>" size="7" /></td> |
| 397 |
<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> |
| 398 |
</tr> |
| 399 |
</table> |
| 400 |
<hr /> |
| 401 |
<table class="form_table"> |
| 402 |
<tr height="35"> |
| 403 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_no_cart_css');"><?php _e('To disable usces_cart.css','usces'); ?></a></th> |
| 404 |
<?php $checked = $no_cart_css == 1 ? ' checked="checked"' : ''; ?> |
| 405 |
<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> |
| 406 |
<td width="300"> </td> |
| 407 |
<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> |
| 408 |
</tr> |
| 409 |
</table> |
| 410 |
<hr /> |
| 411 |
<table class="form_table"> |
| 412 |
<tr height="35"> |
| 413 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_dec_orderID_flag');"><?php _e('Rules of order-ID numbering', 'usces'); ?></a></th> |
| 414 |
<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> |
| 415 |
<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> |
| 416 |
<td><div id="ex_dec_orderID_flag" class="explanation"><?php _e("The initial value is a sequential number starting from 1000.", 'usces'); ?></div></td> |
| 417 |
</tr> |
| 418 |
</table> |
| 419 |
<table class="form_table"> |
| 420 |
<tr height="35"> |
| 421 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_dec_orderID_prefix');"><?php _e('Prefix of order-ID', 'usces'); ?></a></th> |
| 422 |
<td><input name="dec_orderID_prefix" type="text" id="dec_orderID_prefix" value="<?php echo esc_attr($dec_orderID_prefix); ?>" size="7" /></td> |
| 423 |
<td><div id="ex_dec_orderID_prefix" class="explanation"><?php _e('If you do not need it, leave it blank.', 'usces'); ?></div></td> |
| 424 |
</tr> |
| 425 |
</table> |
| 426 |
<table class="form_table"> |
| 427 |
<tr height="35"> |
| 428 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_dec_orderID_digit');"><?php _e('Digits of order-ID', 'usces'); ?></a></th> |
| 429 |
<td><input name="dec_orderID_digit" type="text" id="dec_orderID_digit" value="<?php echo esc_attr($dec_orderID_digit); ?>" size="7" /></td> |
| 430 |
<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> |
| 431 |
</tr> |
| 432 |
</table> |
| 433 |
<hr /> |
| 434 |
<table class="form_table"> |
| 435 |
<tr height="30"> |
| 436 |
<th class="system_th" rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_subimage_rule');"><?php _e('Product sub-image rule', 'usces'); ?></a></th> |
| 437 |
<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> |
| 438 |
<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> |
| 439 |
</tr> |
| 440 |
<tr height="30"> |
| 441 |
<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> |
| 442 |
</tr> |
| 443 |
</table> |
| 444 |
<hr /> |
| 445 |
|
| 446 |
<!--20140107 kitamu_start 0000571--> |
| 447 |
<table class="form_table"> |
| 448 |
<tr height="30"> |
| 449 |
<th class="system_th" rowspan="2"><a style="cursor:pointer;" onclick="toggleVisibility('ex_pdf_delivery');"><?php _e('Described method of invoice', 'usces'); ?></a></th> |
| 450 |
<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> |
| 451 |
<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> |
| 452 |
</tr> |
| 453 |
<tr height="30"> |
| 454 |
<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> |
| 455 |
</tr> |
| 456 |
</table> |
| 457 |
<hr /> |
| 458 |
<!--20140107 kitamu_end--> |
| 459 |
<!--20140122 kitamu_start 0000526--> |
| 460 |
<table class="form_table"> |
| 461 |
<tr height="30"> |
| 462 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_member_pass_rule');"><?php _e('Character limit for membership password', 'usces'); ?></a></th> |
| 463 |
<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> |
| 464 |
<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> |
| 465 |
<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> |
| 466 |
</tr> |
| 467 |
</table> |
| 468 |
<hr /> |
| 469 |
<!--20140122 kitamu_end--> |
| 470 |
<table class="form_table"> |
| 471 |
<tr height="30"> |
| 472 |
<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> |
| 473 |
<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> |
| 474 |
<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> |
| 475 |
</tr> |
| 476 |
<tr height="30"> |
| 477 |
<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> |
| 478 |
</tr> |
| 479 |
</table> |
| 480 |
<hr /> |
| 481 |
<!--20120309ysk start 0000430--> |
| 482 |
<table class="form_table"> |
| 483 |
<tr height="35"> |
| 484 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_options_backup');"><?php _e('Setup data backup','usces'); ?></a></th> |
| 485 |
<td><input name="options_backup" id="options_backup" type="button" value="<?php _e('Backup options','usces'); ?>" ></td> |
| 486 |
<td><input name="options_restore" id="options_restore" type="button" value="<?php _e('Restoring a Backup', 'usces'); ?>" ></td> |
| 487 |
<td><div id="options_backup_date"><?php if( !empty( $options_backup_date ) ) echo $options_backup_date; ?></div></td> |
| 488 |
<td><div id="ex_options_backup" class="explanation"><?php _e('You can take the backup of the Welcart setup data.', 'usces'); ?></div></td> |
| 489 |
</tr> |
| 490 |
</table> |
| 491 |
<!--20120309ysk end--> |
| 492 |
</div> |
| 493 |
<!--20110331ysk start--> |
| 494 |
</div><!--postbox--> |
| 495 |
</div><!--system_page_setting_1--> |
| 496 |
<div id="system_page_setting_2"> |
| 497 |
<div class="postbox"> |
| 498 |
<h3 class="hndle"><span><?php _e('Language Currency Country','usces'); ?></span></h3> |
| 499 |
<div class="inside"> |
| 500 |
<table class="form_table"> |
| 501 |
<tr height="50"> |
| 502 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_front_lang');"><?php _e('The language of the front-end', 'usces'); ?></a></th> |
| 503 |
<td width="10"><select name="front_lang" id="front_lang"> |
| 504 |
<?php foreach( $usces_settings['language'] as $Lkey => $Lvalue ){ ?> |
| 505 |
<option value="<?php echo $Lkey; ?>"<?php echo ($system_front_lang == $Lkey ? ' selected="selected"' : ''); ?>><?php echo $Lvalue; ?></option> |
| 506 |
<?php } ?> |
| 507 |
</select></td> |
| 508 |
<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> |
| 509 |
</tr> |
| 510 |
</table> |
| 511 |
<table class="form_table"> |
| 512 |
<tr height="50"> |
| 513 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_currency');"><?php _e('Currencies', 'usces'); ?></a></th> |
| 514 |
<td width="10"><select name="currency" id="currency"> |
| 515 |
<?php foreach( $usces_settings['country'] as $Ckey => $Cvalue ){ ?> |
| 516 |
<option value="<?php echo $Ckey; ?>"<?php echo ($system_currency == $Ckey ? ' selected="selected"' : ''); ?>><?php echo $Cvalue; ?></option> |
| 517 |
<?php } ?> |
| 518 |
<option value="manual"<?php echo ($system_currency == 'manual' ? ' selected="selected"' : ''); ?>><?php _e('Manual', 'usces'); ?></option> |
| 519 |
</select></td> |
| 520 |
<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> |
| 521 |
</tr> |
| 522 |
</table> |
| 523 |
<table class="form_table"> |
| 524 |
<tr height="50"> |
| 525 |
<th class="system_th"><a style="cursor:pointer;" onclick="toggleVisibility('ex_addressform');"><?php _e('The name and address form', 'usces'); ?></a></th> |
| 526 |
<td width="10"><select name="addressform" id="addressform"> |
| 527 |
<?php foreach( $usces_settings['country'] as $Ckey => $Cvalue ){ ?> |
| 528 |
<option value="<?php echo $Ckey; ?>"<?php echo ($system_addressform == $Ckey ? ' selected="selected"' : ''); ?>><?php echo $Cvalue; ?></option> |
| 529 |
<?php } ?> |
| 530 |
</select></td> |
| 531 |
<td><div id="ex_addressform" class="explanation"><?php _e('For entry form style, choose your country.', 'usces'); ?></div></td> |
| 532 |
</tr> |
| 533 |
</table> |
| 534 |
<table class="form_table"> |
| 535 |
<tr height="50"> |
| 536 |
<th class="system_th"> |
| 537 |
<a style="cursor:pointer;" onclick="toggleVisibility('ex_target_market');"><?php _e('Target Market', 'usces'); ?></a> |
| 538 |
<div><input name="set_target_market" id="set_target_market" type="button" value="<?php _e('Choose', 'usces'); ?>" onclick="operation.set_target_market();" /></div> |
| 539 |
</th> |
| 540 |
<td width="20"><select name="target_market[]" size="10" multiple="multiple" class="multipleselect" id="target_market"> |
| 541 |
<!--<option value="all"<?php echo ($system_target_markets == 'all' ? ' selected="selected"' : ''); ?>><?php _e('All countries', 'usces'); ?></option>--> |
| 542 |
<?php foreach( $usces_settings['country'] as $Ckey => $Cvalue ){ ?> |
| 543 |
<option value="<?php echo $Ckey; ?>"<?php echo (in_array($Ckey, $system_target_markets) ? ' selected="selected"' : ''); ?>><?php echo $Cvalue; ?></option> |
| 544 |
<?php } ?> |
| 545 |
</select></td> |
| 546 |
<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> |
| 547 |
</tr> |
| 548 |
</table> |
| 549 |
<table class="form_table"> |
| 550 |
<tr height="50"> |
| 551 |
<th class="system_th"> |
| 552 |
<a style="cursor:pointer;" onclick="toggleVisibility('ex_province');"><?php _e('Province', 'usces'); ?></a> |
| 553 |
<div><span id="target_market_loading"></span><span id="target_market_province"></span></div> |
| 554 |
</th> |
| 555 |
<td width="150"><textarea name="province" id="province" cols="30" rows="10"></textarea><div id="province_ajax"></div></td> |
| 556 |
<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> |
| 557 |
</tr> |
| 558 |
</table> |
| 559 |
</div> |
| 560 |
</div><!--postbox--> |
| 561 |
</div><!--system_page_setting_2--> |
| 562 |
</div><!--uscestabs_system--> |
| 563 |
<!--20110331ysk end--> |
| 564 |
|
| 565 |
|
| 566 |
</div><!--poststuff--> |
| 567 |
|
| 568 |
|
| 569 |
|
| 570 |
<input name="usces_option_update" type="submit" class="button" value="<?php _e('change decision','usces'); ?>" /> |
| 571 |
<input type="hidden" id="post_ID" name="post_ID" value="<?php echo USCES_CART_NUMBER ?>" /> |
| 572 |
</form> |
| 573 |
</div><!--usces_admin--> |
| 574 |
</div><!--wrap--> |