답변 2개 / 댓글 2개
visit.sub.php 에는 기간별검색을 복사해서
<form name="fsearch" id="fsearch" class="local_sch01 local_sch" method="get">
다음에 넣으신 후에
아래 부분도 같이 넣어주셔야 합니다.
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
if (empty($fr_date) || ! preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $fr_date) ) $fr_date = G5_TIME_YMD;
if (empty($to_date) || ! preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $to_date) ) $to_date = G5_TIME_YMD;
<script>
$(function(){
$("#fr_date, #to_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+0d" });
});
</script>
그 다음에 point_list.php 9줄을 수정하세요.
$sql_search = " where vi_date between '{$fr_date}' and '{$to_date}' ";
답변을 작성하려면 로그인이 필요합니다.