123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- {template '_header'}
- <div class="page-header">
- 当前位置:<span class="text-primary">退货原因管理</span>
- </div>
- <div class="page-content">
-
- <form action="" method="get" class="form-horizontal form-search" role="form">
- <input type="hidden" name="c" value="order" />
- <input type="hidden" name="a" value="orderreturngoods" />
- <div class="page-toolbar">
- <div class="col-sm-4">
- <div class="input-group">
- <input type="text" class="input-sm form-control" name='keyword' value="{$_GPC['keyword']}" placeholder="请输入关键词">
- <span class="input-group-btn">
- <button class="btn btn-primary" type="submit"> 搜索</button>
- </span>
- </div>
- </div>
- </div>
- </form>
- <form action="" method="post" >
-
- <div class="row">
- <div class="col-md-12">
- <div class="page-table-header">
- <input type='checkbox' />
- <span class="pull-right">
- <a data-toggle="ajaxModal" href="{:U('order/addorderreturngoods')}" class="btn btn-primary btn-xs"><i class="fa fa-plus"></i> 添加原因</a>
- </span>
- <div class="btn-group">
- <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch' data-href="{:U('order/changeorderreturngoods',array('type'=>'state','value'=>1))}">
- <i class='icow icow-shangjia2'></i> 启用
- </button>
- <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch' data-href="{:U('order/changeorderreturngoods',array('type'=>'state','value'=>0))}">
- <i class='icow icow-xiajia3'></i> 停用
- </button>
- <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="{:U('order/delorderreturngoods')}">
- <i class="icow icow-shanchu1"></i>删除
- </button>
- </div>
- </div>
- <table class="table table-responsive">
- <thead>
- <tr>
- <th style="width:25px;"></th>
- <th>原因类型</th>
- <th>排序</th>
- <th>是否启用</th>
- <th style="width:200px;text-align: center;">操作</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach( $list as $row ){ ?>
- <tr>
- <td>
- <input type='checkbox' value="{$row['id']}"/>
- </td>
- <td>{$row['title']}</td>
- <td>
- {$row['sortby']}
- </td>
- <td>
- <span class='label a <?php if( $row['state']==1){ ?>label-primary<?php }else{ ?>label-default<?php } ?>'
- data-toggle='ajaxSwitch'
- data-confirm = "确认是<?php if( $row['state']==1){ ?>禁用<?php }else{ ?>启用<?php } ?>?"
- data-switch-refresh='false'
- data-switch-value='{$row['state']}'
- data-switch-value0='0|禁用|label label-default|{:U('order/changeorderreturngoods',array('type'=>'state','value'=>1,'id'=>$row['id']))}'
- data-switch-value1='1|启用|label label-success|{:U('order/changeorderreturngoods',array('type'=>'state','value'=>0,'id'=>$row['id']))}'
- >
- <?php if( $row['state']==1){ ?>启用<?php }else{ ?>禁用<?php } ?>
- </span>
- </td>
- <td style="text-align: center;">
-
- <a data-toggle="ajaxModal" href="{:U('order/addorderreturngoods', array('id' => $row['id']))}" class="btn btn-default btn-sm btn-operation btn-op">
- <span data-toggle="tooltip" data-placement="top" title="" data-original-title=" 修改">
- <i class="icow icow-bianji2"></i>编辑
- </span>
- </a>
- <a data-toggle='ajaxRemove' href="{:U('order/delorderreturngoods', array('id' => $row['id']))}"class="btn btn-default btn-sm btn-operation btn-op" data-confirm='确认要删除此快递吗?'>
- <span data-toggle="tooltip" data-placement="top" title="" data-original-title="删除">
- <i class="icow icow-shanchu1"></i>删除
- </span>
- </a>
-
- </td>
- </tr>
- <?php } ?>
- </tbody>
- <tfoot>
- <tr>
- <td colspan="2">
- <input type="checkbox">
- <div class="btn-group">
- <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch' data-href="{:U('order/changeorderreturngoods',array('type'=>'state','value'=>1))}">
- <i class='icow icow-shangjia2'></i> 启用
- </button>
- <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch' data-href="{:U('order/changeorderreturngoods',array('type'=>'state','value'=>0))}">
- <i class='icow icow-xiajia3'></i> 停用
- </button>
- <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="{:U('order/delorderreturngoods')}">
- <i class="icow icow-shanchu1"></i>删除
- </button>
- </div>
- </td>
- <td colspan="3" style="text-align: right">
- {$pager}
- </td>
- </tr>
- </tfoot>
- </table>
- </div>
- </div>
-
- </form>
- </div>
- {template '_footer'}
|