123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="ibox-content">
- <div class="ibox">
- <style>
- #search_form .input-group{
- width: 170px;
- }
- #search_form .btn{
- margin-right: 5px;
- }
- </style>
- <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>
- <th>项目</th>
- <th>总数</th>
- <th>客户</th>
- <th>综合</th>
- <th>保安</th>
- <th>运送</th>
- <th>维修</th>
- <th>保洁</th>
- <th>调度</th>
- <th>管理层</th>
- </tr>
- </thead>
- <tbody>
- {foreach $list as $k=>$v}
- <tr>
- <td>{$v['name']}</td>
- <td>{$v['count']}</td>
- <td>{if isset($v['user'][0])}{$v['user'][0]['value']}{else}0{/if}</td>
- <td>{if isset($v['user'][1])}{$v['user'][1]['value']}{else}0{/if}</td>
- <td>{if isset($v['user'][2])}{$v['user'][2]['value']}{else}0{/if}</td>
- <td>{if isset($v['user'][3])}{$v['user'][3]['value']}{else}0{/if}</td>
- <td>{if isset($v['user'][4])}{$v['user'][4]['value']}{else}0{/if}</td>
- <td>{if isset($v['user'][5])}{$v['user'][5]['value']}{else}0{/if}</td>
- <td>{if isset($v['user'][6])}{$v['user'][6]['value']}{else}0{/if}</td>
- <td>{if isset($v['user'][7])}{$v['user'][7]['value']}{else}0{/if}</td>
- </tr>
- {/foreach}
- </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 printer(){
- $('#printer').jqprint();
- }
- function exportExcel() {
- window.location.href = "orgUserExport";
- }
- </script>
- {/block}
|