orderreturngoods.html 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {template '_header'}
  2. <div class="page-header">
  3. 当前位置:<span class="text-primary">退货原因管理</span>
  4. </div>
  5. <div class="page-content">
  6. <form action="" method="get" class="form-horizontal form-search" role="form">
  7. <input type="hidden" name="c" value="order" />
  8. <input type="hidden" name="a" value="orderreturngoods" />
  9. <div class="page-toolbar">
  10. <div class="col-sm-4">
  11. <div class="input-group">
  12. <input type="text" class="input-sm form-control" name='keyword' value="{$_GPC['keyword']}" placeholder="请输入关键词">
  13. <span class="input-group-btn">
  14. <button class="btn btn-primary" type="submit"> 搜索</button>
  15. </span>
  16. </div>
  17. </div>
  18. </div>
  19. </form>
  20. <form action="" method="post" >
  21. <div class="row">
  22. <div class="col-md-12">
  23. <div class="page-table-header">
  24. <input type='checkbox' />
  25. <span class="pull-right">
  26. <a data-toggle="ajaxModal" href="{:U('order/addorderreturngoods')}" class="btn btn-primary btn-xs"><i class="fa fa-plus"></i> 添加原因</a>
  27. </span>
  28. <div class="btn-group">
  29. <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch' data-href="{:U('order/changeorderreturngoods',array('type'=>'state','value'=>1))}">
  30. <i class='icow icow-shangjia2'></i> 启用
  31. </button>
  32. <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch' data-href="{:U('order/changeorderreturngoods',array('type'=>'state','value'=>0))}">
  33. <i class='icow icow-xiajia3'></i> 停用
  34. </button>
  35. <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="{:U('order/delorderreturngoods')}">
  36. <i class="icow icow-shanchu1"></i>删除
  37. </button>
  38. </div>
  39. </div>
  40. <table class="table table-responsive">
  41. <thead>
  42. <tr>
  43. <th style="width:25px;"></th>
  44. <th>原因类型</th>
  45. <th>排序</th>
  46. <th>是否启用</th>
  47. <th style="width:200px;text-align: center;">操作</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. <?php foreach( $list as $row ){ ?>
  52. <tr>
  53. <td>
  54. <input type='checkbox' value="{$row['id']}"/>
  55. </td>
  56. <td>{$row['title']}</td>
  57. <td>
  58. {$row['sortby']}
  59. </td>
  60. <td>
  61. <span class='label a <?php if( $row['state']==1){ ?>label-primary<?php }else{ ?>label-default<?php } ?>'
  62. data-toggle='ajaxSwitch'
  63. data-confirm = "确认是<?php if( $row['state']==1){ ?>禁用<?php }else{ ?>启用<?php } ?>?"
  64. data-switch-refresh='false'
  65. data-switch-value='{$row['state']}'
  66. data-switch-value0='0|禁用|label label-default|{:U('order/changeorderreturngoods',array('type'=>'state','value'=>1,'id'=>$row['id']))}'
  67. data-switch-value1='1|启用|label label-success|{:U('order/changeorderreturngoods',array('type'=>'state','value'=>0,'id'=>$row['id']))}'
  68. >
  69. <?php if( $row['state']==1){ ?>启用<?php }else{ ?>禁用<?php } ?>
  70. </span>
  71. </td>
  72. <td style="text-align: center;">
  73. <a data-toggle="ajaxModal" href="{:U('order/addorderreturngoods', array('id' => $row['id']))}" class="btn btn-default btn-sm btn-operation btn-op">
  74. <span data-toggle="tooltip" data-placement="top" title="" data-original-title=" 修改">
  75. <i class="icow icow-bianji2"></i>编辑
  76. </span>
  77. </a>
  78. <a data-toggle='ajaxRemove' href="{:U('order/delorderreturngoods', array('id' => $row['id']))}"class="btn btn-default btn-sm btn-operation btn-op" data-confirm='确认要删除此快递吗?'>
  79. <span data-toggle="tooltip" data-placement="top" title="" data-original-title="删除">
  80. <i class="icow icow-shanchu1"></i>删除
  81. </span>
  82. </a>
  83. </td>
  84. </tr>
  85. <?php } ?>
  86. </tbody>
  87. <tfoot>
  88. <tr>
  89. <td colspan="2">
  90. <input type="checkbox">
  91. <div class="btn-group">
  92. <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch' data-href="{:U('order/changeorderreturngoods',array('type'=>'state','value'=>1))}">
  93. <i class='icow icow-shangjia2'></i> 启用
  94. </button>
  95. <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch' data-href="{:U('order/changeorderreturngoods',array('type'=>'state','value'=>0))}">
  96. <i class='icow icow-xiajia3'></i> 停用
  97. </button>
  98. <button class="btn btn-default btn-sm btn-operation" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="{:U('order/delorderreturngoods')}">
  99. <i class="icow icow-shanchu1"></i>删除
  100. </button>
  101. </div>
  102. </td>
  103. <td colspan="3" style="text-align: right">
  104. {$pager}
  105. </td>
  106. </tr>
  107. </tfoot>
  108. </table>
  109. </div>
  110. </div>
  111. </form>
  112. </div>
  113. {template '_footer'}