123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- .combined{
- width: 100%;
- height: auto;
- font-size: 22px;
- padding: 10px;
- background: #fff;
- }
- </style>
- <div class="ibox">
- <div class="ibox-content">
- <div class="row">
- <div class="col-xs-3">
- <div class="btn-group pull-left">
- <a href="javascript:;" onclick="printer()" class="btn btn-sm btn btn-primary"><i class="glyphicon glyphicon-print"></i> 打印</a>
- <a href="{:url('repairCateExport',['start'=>$start,'end'=>$end])}" class="btn btn-sm btn-danger"><i class="fa fa-cloud-download"> 导出</i></a>
- </div>
- </div>
- <div class="col-xs-9" style="text-align: right;">
- <form class="form-inline" id="form-search" action="{:url('repairCate')}">
- <div class="input-group">
- <input class="form-control" value="{$start}" id="start" readonly placeholder="开始时间" name="start" >
- </div>
- <div class="input-group">
- <input class="form-control" value="{$end}" id="end" readonly placeholder="结束时间" name="end" >
- </div>
- <div class="input-group">
- <span class="input-group-btn">
- <button class="btn-sm btn-primary" type="submit" id ="search-btn" ><i class="fa fa-search"></i></button>
- </span>
- <span class="input-group-btn">
- <button class="btn-sm btn-warning" type="button" id="search-clear"><i class="fa fa-undo"></i></button>
- </span>
- </div>
- </form>
- </div>
- </div>
- </div>
- <div class="panel-group" id="printer" style="margin-top: 10px">
- <div class="panel panel-default">
- <div class="panel-body">
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>报修类型</th>
- <th>订单数</th>
- </tr>
- </thead>
- {foreach $data as $k=>$v}
- <tbody>
- <tr>
- <td>{$v.title}</td>
- <td>{$v.nums}</td>
- </tr>
- </tbody>
- {/foreach}
- </table>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script src="/static/layDate-v5.0.9/laydate.js"></script>
- <script src="/static/browser.js"></script>
- <script src="/static/jquery.jqprint-0.3.js"></script>
- <script>
- $(function () {
- laydate.render({
- elem: '#start',
- trigger: 'click' ,
- theme: '#284a94'
- });
- laydate.render({
- elem: '#end',
- trigger: 'click' ,
- theme: '#284a94'
- });
- });
- function printer(){
- $('#printer').jqprint();
- }
- </script>
- {/block}
|