123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="ibox">
- <div class="ibox-title">
- <h5>{$meta_title} </h5>
- <div class="ibox-tools">
- </div>
- </div>
- <div class="ibox-content">
- <div class="row">
- <div class="col-xs-12" style="text-align: left;">
- <form class="form-inline" id="search_form" action="{:url('addrWork',['mode'=>$mode])}">
- <div class="input-group" style="width: 200px">
- {:widget_view('common/laydate',['name'=>'day','title' => '日期', 'val' => $day, 'type'=>'date'])}
- </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="reset" id="search-clear" onclick="empty_search()"><i class="fa fa-undo"></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> -->
- <!-- <span class="input-group-btn">-->
- <!-- <button class="btn-sm btn-danger" type="button" onclick="exportExcel()"><i class="glyphicon glyphicon-download"></i>导出</button>-->
- <!-- </span>-->
- </div>
- </form>
- </div>
- </div>
- </div>
- <div class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading clearfix">
- <div class="btn-group pull-left">
- {$meta_title}
- </div>
- <div class="btn-group pull-right">
- <a href="javascript:;" onclick="printer()" class="btn btn-sm btn btn-primary"><i class="glyphicon glyphicon-print"></i>打印</a>
- <a href="javascript:;" onclick="exportExcel()" class="btn btn-success btn-sm"><i class="glyphicon glyphicon-download"></i>导出</a>
- </div>
- </div>
- <div class="panel-body" id="printer">
- <table class="table table-bordered">
- <thead>
- <tr>
- <th>地点</th>
- <th>总数</th>
- <th>本月</th>
- <th>本周</th>
- <th>今天</th>
- <th>昨日未完成</th>
- <th>今日未完成</th>
- </tr>
- </thead>
- <tbody>
- {foreach $data as $k=>$v}
- <tr>
- <td>{$v['addr']}</td>
- <td>{$v['count']}</td>
- <td>{$v['num']}</td>
- <td>{$v['num1']}</td>
- <td>{$v['num2']}</td>
- <td>{$v['num3']}</td>
- <td>{$v['num4']}</td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- </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 empty_search(){
- window.location.href = "{:url('addrWork')}?mode={$mode}";
- }
- function printer(){
- $('#printer').jqprint();
- }
- function exportExcel() {
- window.location.href = "{:url('addrWorkExport',[],false,false)}?"+$('#search_form').serialize()+'&mode={$mode}';
- }
- </script>
- {/block}
|