write.skin.php 상단에 추가
[code]
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
[/code]
write.skin.php 상단에 추가
[code]
<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>
[/code]
write.skin.php 원하는 위치에 추가
[code]
<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>
[/code]
다들 아시겠지만 혹 모르시는분을 위해 남겨봅니다^^;
댓글 15개
<?php
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
?>
<script type="text/javascript">
$(function(){ //달력
$(".datepicker").datepicker({changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+3650d"});
});
</script>
<input name="wr_1" value="<?php echo $wr_1; ?>" class="datepicker">
<input name="wr_2" value="<?php echo $wr_2; ?>" class="datepicker">
게시글 목록
| 번호 | 제목 |
|---|---|
| 24318 | |
| 24317 | |
| 24315 | |
| 24309 | |
| 24294 | |
| 24293 | |
| 24277 | |
| 24262 | |
| 24260 | |
| 24253 | |
| 24251 | |
| 24236 | |
| 24233 | |
| 24228 | |
| 24226 | |
| 24221 | |
| 24214 | |
| 24203 | |
| 24201 | |
| 24199 | |
| 24196 | |
| 24195 | |
| 24194 | |
| 24192 | |
| 24191 | |
| 24187 | |
| 24185 | |
| 24183 | |
| 24172 | |
| 24168 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기