123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- .table th{
- text-align: center;
- background: #ffffff;
- }
- .table tr{
- background: #ffffff;
- }
- .table td{
- text-align: center;
- }
- </style>
- <div class="ibox-content">
- <div class="ibox">
- <div class="alert">
- <form action="wasteZc" method="GET" id='search_form' class="form-inline">
- <div class="input-group" style="width: 200px">
- <span class="input-group-addon">选择类型</span>
- {:widget_view('common/multiselect',['name'=>'type_id','lists' =>$typeList1, 'val' => $type_id])}
- </div>
- <div class="input-group" style="width: 200px">
- <span class="input-group-addon">选择地点</span>
- {:widget_view('common/multiselect',['name'=>'addr_id','lists' =>$addressList, 'val' => $addr_id])}
- </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-warning" type="reset" onclick="empty_search()"><i class="fa fa-undo"></i></button>
- </span>
- </div>
- </form>
- </div>
- <div class="panel-group">
- <div class="panel panel-default">
- <div class="panel-heading clearfix">
- <div class="btn-group pull-left">
- 医废暂存量统计
- </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>
- {foreach $typeList as $k=>$v}
- <th colspan="2">{$v['title']}</th>
- {/foreach}
- <th rowspan="2">备注</th>
- </tr>
- <tr>
- {foreach $typeList as $k=>$v}
- <th>件数/包</th>
- <th>重量/kg</th>
- {/foreach}
- </tr>
- </thead>
- <tbody>
- <tr>
- {foreach $data as $k1=>$v1}
- <td>{$v1}</td>
- {/foreach}
- <td></td>
- </tr>
- </tbody>
- </table>
- </div>
- </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: '#startTime',
- trigger: 'click',
- theme: '#148d8f',
- type:'year'
- });
- laydate.render({
- elem: '#endTime',
- trigger: 'click',
- theme: '#148d8f'
- });
- });
- function empty_search(){
- window.location.href = 'wasteZc';
- }
- function printer(){
- $('#printer').jqprint();
- }
- function exportExcel() {
- window.location.href = "wasteZcExport?"+$('#search_form').serialize();
- }
- </script>
- {/block}
|