<?php
if (!defined("_GNUBOARD_"))
    exit;

include_once "{$g4['path']}/lib/visit.lib.php";

if (empty($fr_date))
    $fr_date = $g4[time_ymd];
if (empty($to_date))
    $to_date = $g4[time_ymd];

$qstr = "fr_date=$fr_date&to_date=$to_date";
?>
<div class="row">
    <div class='col-sm-12 round-box'>
        <form name='fvisit' method='get' role='form' class='form-inline'>
            <div class='form-group'>
                기간 : 
                <input type='date' name='fr_date' size=11 maxlength=10 value='<?php echo $fr_date ?>' class='form-inline'>
                -
                <input type='date' name='to_date' size=11 maxlength=10 value='<?php echo $to_date ?>' class='form-inline'>
                &nbsp;
                <input type='button' class='btn btn-sm btn-default' value='접속자'   onclick="fvisit_submit('visit_list.php');">
                <input type='button' class='btn btn-sm btn-default' value='도메인'   onclick="fvisit_submit('visit_domain.php');">
                <input type='button' class='btn btn-sm btn-default' value='브라우저' onclick="fvisit_submit('visit_browser.php');">
                <input type='button' class='btn btn-sm btn-default' value='OS'       onclick="fvisit_submit('visit_os.php');">
                <input type='button' class='btn btn-sm btn-default' value='시간'     onclick="fvisit_submit('visit_hour.php');">
                <input type='button' class='btn btn-sm btn-default' value='요일'     onclick="fvisit_submit('visit_week.php');">
                <input type='button' class='btn btn-sm btn-info' value='일'       onclick="fvisit_submit('visit_date.php');">
                <input type='button' class='btn btn-sm btn-info' value='월'       onclick="fvisit_submit('visit_month.php');">
                <input type='button' class='btn btn-sm btn-info' value='년'       onclick="fvisit_submit('visit_year.php');">
            </div>
        </form>
    </div>
</div>
<script type='text/javascript'>
    function fvisit_submit(act) {
        var f = document.fvisit;
        f.action = act;
        f.submit();
    }
</script>
