123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- {extend name="common/common2" /}
- {block name="main"}
- <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="{$is_spot==0?'active':''}">
- <a href="{:url('index1')}?is_spot=0">
- 预定餐
- </a>
- </li>
- <li class="{$is_spot==1?'active':''}">
- <a href="{:url('index1')}?is_spot=1">
- 当日餐
- </a>
- </li>
- <li class="{$is_spot==2?'active':''}">
- <a href="{:url('index1')}?is_spot=2">
- 特殊套餐
- </a>
- </li>
- </ul>
- </div>
- <div class="ibox-content">
- <div class="tab-content">
- <form action="{:url('index1')}" method="GET" class="form-inline">
- <input type="hidden" name="is_spot" value="{$is_spot}">
- <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" >
- <caption>
- <h3 class="text-center">厨房配菜表</h3>
- <span class="text-right">日期:{$start}</span>
- </caption>
- <thead>
- <tr>
- {foreach $type as $k=>$v}
- <th nowrap="nowrap" class="text-center">{$v.dinner_type_name}</th>
- <th nowrap="nowrap" class="text-center">数量</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['nums'.$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}
|