1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="ibox-title">
- <h5>订餐日统计</h5>
- <div class="ibox-tools">
- </div>
- </div>
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <ul class="nav nav-tabs" id="myTab">
- <li class="{$cate==0?'active':''}">
- <a href="{:url('day')}?cate=0">
- 普通订单
- </a>
- </li>
- <li class="{$cate==1?'active':''}">
- <a href="{:url('day')}?cate=1">
- 特殊订单
- </a>
- </li>
- </ul>
- </div>
- <div class="ibox-content">
- <div class="tab-content">
- <form action="{:url('day',['cate'=>$cate])}" method="GET" class="form-inline">
- <div class="input-group">
- {:widget_view('common/laydate',['name'=>'start','title' => '下单日期','type' => 'date','val'=>$start])}
- </div>
- <div class="input-group">
- <span class="input-group-btn">
- <button class="btn-sm btn-primary" type="submit" ><i class="fa fa-search"></i></button>
- </span>
- <span class="input-group-btn">
- <button class="btn-sm btn-info" type="button" onclick="printer()"><i class="glyphicon glyphicon-print"></i>打印</button>
- </span>
- </div>
- </form>
- </div>
- </div>
- <div class="ibox-content" style="overflow-y: auto">
- <div id="visaReport">
- <table class="table table-bordered" >
- <thead>
- <tr>
- {foreach $type as $k=>$v}
- <th nowrap="nowrap" class="text-center">{$v.dinner_type_name}</th>
- <th nowrap="nowrap" class="text-center">¥{$v.total}</th>
- {/foreach}
- </tr>
- </thead>
- <tbody>
- {foreach $data as $k=>$v}
- <tr>
- {foreach $type as $k1=>$v1}
- <th nowrap="nowrap" class="text-center">{$v['name'.$v1['id']]}</th>
- <th nowrap="nowrap" class="text-center">{$v['price'.$v1['id']]}</th>
- {/foreach}
- </tr>
- {/foreach}
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script src="/static/browser.js"></script>
- <script src="/static/jquery.jqprint-0.3.js"></script>
- <script>
- function printer() {
- $("#visaReport").jqprint({});
- }
- </script>
- {/block}
|