{include file="sections/header.tpl"}

<!-- reports-period -->
<div class="row">
    <div class="col-sm-12 col-md-10">
        <div class="panel panel-primary panel-hovered panel-stacked mb30">
            <div class="panel-heading">{Lang::T('Period Reports')}</div>
            <div class="panel-body">
                <form class="form-horizontal" method="post" role="form" action="{$_url}reports/period-view">
                    <div class="form-group row">
                        <label class="col-md-3 control-label">{Lang::T('From Date')}</label>
                        <div class="col-md-7">
                            <input type="date" class="form-control" value="{$tdate}" name="fdate" id="fdate">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-md-3 control-label">{Lang::T('To Date')}</label>
                        <div class="col-md-7">
                            <input type="date" class="form-control" value="{$mdate}" name="tdate" id="tdate">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-md-3 control-label">{Lang::T('Type')}</label>
                        <div class="col-md-7">
                            <select class="form-control" id="stype" name="stype">
                                <option value="" selected="">{Lang::T('All Transactions')}</option>
                                <option value="Hotspot" {if $stype == 'Hotspot'}selected{/if}>{Lang::T('Hotspot')}</option>
                                <option value="PPPOE" {if $stype == 'PPPOE'}selected{/if}>{Lang::T('PPPOE')}</option>
                                <option value="Balance" {if $stype == 'Balance'}selected{/if}>{Lang::T('Balance')}</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group row">
                        <label class="col-md-3 control-label">{Lang::T('Router')}</label>
                        <div class="col-md-7">
                            <select class="form-control" id="rts" name="rts">
                                <option value="" selected>{Lang::T('All Routers')}</option>
                                {foreach from=$routers item=router}
                                    <option value="{$router}" {if $rts == $router}selected{/if}>{$router}</option>
                                {/foreach}
                            </select>
                        </div>
                    </div>

                    <div class="form-group row">
                        <div class="col-sm-offset-3 col-sm-9">
                            <button type="submit" id="submit" class="btn btn-primary">{Lang::T('Period Reports')}</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

{include file="sections/footer.tpl"}
