write.skin.php 상단에 추가
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
write.skin.php 상단에 추가
<script>
$(function(){ //달력
$("#wr_1").datepicker({changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+3650d"});
});
$(function(){ //달력
$("#wr_2").datepicker({changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+3650d"});
});
</script>
write.skin.php 원하는 위치에 추가
<div class="write_div">
시작 <input type="text" name="wr_1" value="<?php echo $wr_1 ?>" id="wr_1" class="frm_input" size="10" required placeholder="시작 날짜">
마감 <input type="text" name="wr_2" value="<?php echo $wr_2 ?>" id="wr_2" class="frm_input" size="10" required placeholder="마감 날짜">
</div>