<?
$sub_menu = "500110";
include_once("./_common.php");

auth_check($auth[$sub_menu], "r");

$g4[title] = "매출현황";
include_once(G4_ADMIN_PATH."/admin.head.php");
?>

<?=subtitle($g4[title])?>

<table cellpadding=0 cellspacing=0 border=0>
<colgroup width=150></colgroup>
<colgroup bgcolor=#ffffff></colgroup>

<tr height=40>
    <form id="frm_sale_today" name="frm_sale_today" action='./sale1today.php'>
    <td>당일 매출현황</td>
    <td>
        <input type="text" id="date" name="date" size=8 maxlength=8 value='<? echo date("Ymd", $g4['server_time']) ?>'>
        일 하루
        <input type="submit" value='  확  인  '>
    </td>
    </form>
</tr>

<tr height=40>
    <form id="frm_sale_date" name="frm_sale_date" action='./sale1date.php'>
    <td>일별 매출현황</td>
    <td>
        <input type="text" id="fr_date" name="fr_date" size=8 maxlength=8 value='<? echo date("Ym01", $g4['server_time']) ?>'>
        일 부터
        <input type="text" id="to_date" name="to_date" size=8 maxlength=8 value='<? echo date("Ymd", $g4['server_time']) ?>'>
        일 까지
        <input type="submit" value='  확  인  '>
    </td>
    </form>
</tr>

<tr height=40>
    <form id="frm_sale_month" name="frm_sale_month" action='./sale1month.php'>
    <td>월별 매출현황</td>
    <td>
        <input type="text" id="fr_date" name="fr_date" size=6 maxlength=6 value='<? echo date("Y01", $g4['server_time']) ?>'>
        월 부터
        <input type="text" id="to_date" name="to_date" size=6 maxlength=6 value='<? echo date("Ym", $g4['server_time']) ?>'>
        월 까지
        <input type="submit" value='  확  인  '>
    </td>
    </form>
</tr>

<tr height=40>
    <form id="frm_sale_year" name="frm_sale_year" action='./sale1year.php'>
    <td>연별 매출현황</td>
    <td>
        <input type="text" id="fr_date" name="fr_date" size=4 maxlength=4 value='<? echo date("Y", $g4['server_time'])-1 ?>'>
        년 부터
        <input type="text" id="to_date" name="to_date" size=4 maxlength=4 value='<? echo date("Y", $g4['server_time']) ?>'>
        년 까지
        <input type="submit" value='  확  인  '>
    </td>
    </form>
</tr>

</table>

<?
include_once(G4_ADMIN_PATH."/admin.tail.php");
?>
