검색에서 기간설정에 datepicker 적용
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
<?php
|
||||
$sub_menu = '500110';
|
||||
include_once('./_common.php');
|
||||
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "r");
|
||||
|
||||
@ -13,7 +14,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
<div>
|
||||
<form name="frm_sale_today" action="./sale1today.php" method="get">
|
||||
<strong>일일 매출</strong>
|
||||
<input type="text" name="date" value="<?php echo date("Ymd", G5_SERVER_TIME); ?>" id="date" class="frm_input" size="8" maxlength="8">
|
||||
<input type="text" name="date" value="<?php echo date("Ymd", G5_SERVER_TIME); ?>" id="date" required class="required frm_input" size="8" maxlength="8">
|
||||
<label for="date">일 하루</label>
|
||||
<input type="submit" value="확인" class="btn_submit">
|
||||
</form>
|
||||
@ -22,9 +23,9 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
<div>
|
||||
<form name="frm_sale_date" action="./sale1date.php" method="get">
|
||||
<strong>일간 매출</strong>
|
||||
<input type="text" name="fr_date" value="<?php echo date("Ym01", G5_SERVER_TIME); ?>" id="fr_date" class="frm_input" size="8" maxlength="8">
|
||||
<input type="text" name="fr_date" value="<?php echo date("Ym01", G5_SERVER_TIME); ?>" id="fr_date" required class="required frm_input" size="8" maxlength="8">
|
||||
<label for="fr_date">일 ~</label>
|
||||
<input type="text" name="to_date" value="<?php echo date("Ymd", G5_SERVER_TIME); ?>" id="to_date" class="frm_input" size="8" maxlength="8">
|
||||
<input type="text" name="to_date" value="<?php echo date("Ymd", G5_SERVER_TIME); ?>" id="to_date" required class="required frm_input" size="8" maxlength="8">
|
||||
<label for="to_date">일</label>
|
||||
<input type="submit" value="확인" class="btn_submit">
|
||||
</form>
|
||||
@ -33,9 +34,9 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
<div>
|
||||
<form name="frm_sale_month" action="./sale1month.php" method="get">
|
||||
<strong>월간 매출</strong>
|
||||
<input type="text" name="fr_month" value="<?php echo date("Y01", G5_SERVER_TIME); ?>" id="fr_month" class="frm_input" size="6" maxlength="6">
|
||||
<input type="text" name="fr_month" value="<?php echo date("Y01", G5_SERVER_TIME); ?>" id="fr_month" required class="required frm_input" size="6" maxlength="6">
|
||||
<label for="fr_month">월 ~</label>
|
||||
<input type="text" name="to_month" value="<?php echo date("Ym", G5_SERVER_TIME); ?>" id="to_month" class="frm_input" size="6" maxlength="6">
|
||||
<input type="text" name="to_month" value="<?php echo date("Ym", G5_SERVER_TIME); ?>" id="to_month" required class="required frm_input" size="6" maxlength="6">
|
||||
<label for="to_month">월</label>
|
||||
<input type="submit" value="확인" class="btn_submit">
|
||||
</form>
|
||||
@ -44,9 +45,9 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
<div class="sch_last">
|
||||
<form name="frm_sale_year" action="./sale1year.php" method="get">
|
||||
<strong>연간 매출</strong>
|
||||
<input type="text" name="fr_year" value="<?php echo date("Y", G5_SERVER_TIME)-1; ?>" id="fr_year" class="frm_input" size="4" maxlength="4">
|
||||
<input type="text" name="fr_year" value="<?php echo date("Y", G5_SERVER_TIME)-1; ?>" id="fr_year" required class="required frm_input" size="4" maxlength="4">
|
||||
<label for="fr_year">년 ~</label>
|
||||
<input type="text" name="to_year" value="<?php echo date("Y", G5_SERVER_TIME); ?>" id="to_year" class="frm_input" size="4" maxlength="4">
|
||||
<input type="text" name="to_year" value="<?php echo date("Y", G5_SERVER_TIME); ?>" id="to_year" required class="required frm_input" size="4" maxlength="4">
|
||||
<label for="to_year">년</label>
|
||||
<input type="submit" value="확인" class="btn_submit">
|
||||
</form>
|
||||
@ -54,6 +55,19 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#date, #fr_date, #to_date").datepicker({
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
dateFormat: "yymmdd",
|
||||
showButtonPanel: true,
|
||||
yearRange: "c-99:c+99",
|
||||
maxDate: "+0d"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user