희망배송일에 캘린터 넣기

This commit is contained in:
gnuboard
2013-08-08 18:00:42 +09:00
parent 4c6eaed24f
commit 8ecf75cdd2

View File

@ -1,5 +1,8 @@
<?php
include_once('./_common.php');
if ($default['de_hope_date_use']) {
include_once(G4_PLUGIN_PATH.'/jquery-ui/datepicker.php');
}
if (G4_IS_MOBILE) {
include_once(G4_MSHOP_PATH.'/orderform.php');
@ -640,7 +643,7 @@ function get_intall_file()
<tr>
<th scope="row"><label for="od_hope_date">희망배송일</label></th>
<td>
<select name="od_hope_date" id="od_hope_date">
<!-- <select name="od_hope_date" id="od_hope_date">
<option value="">선택하십시오.</option>
<?php
for ($i=0; $i<7; $i++) {
@ -648,7 +651,8 @@ function get_intall_file()
echo '<option value="'.$sdate.'">'.$sdate.' ('.get_yoil($sdate).')</option>'.PHP_EOL;
}
?>
</select>
</select> -->
<input type="text" name="od_hope_date" value="" id="od_hope_date" class="frm_input" size="11" maxlength="10" readonly="readonly"> 이후로 배송 바랍니다.
</td>
</tr>
<?php } ?>
@ -1543,6 +1547,12 @@ function gumae2baesong(f)
calculate_sendcost(String(f.od_b_zip1.value) + String(f.od_b_zip2.value));
}
<?php if ($default['de_hope_date_use']) { ?>
$(function(){
$("#od_hope_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", minDate: "+<?php echo (int)$default['de_hope_date_after']; ?>d;", maxDate: "+<?php echo (int)$default['de_hope_date_after'] + 6; ?>d;" });
});
<?php } ?>
</script>
<?php