returned.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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="address" />
  8. <input type="hidden" name="a" value="returned" />
  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 href="{:U('config/address.addreturn')}" class="btn btn-primary"><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-remove' data-confirm="确认要删除?" data-href="{:U('config/address.delreturn')}">
  30. <i class="icow icow-shanchu1"></i>删除</button>
  31. </div>
  32. </div>
  33. <?php if( count($list)>0){ ?>
  34. <table class="table table-responsive">
  35. <thead class="navbar-inner">
  36. <tr>
  37. <th style="width:25px;"><input type='checkbox' /></th>
  38. <th>名称</th>
  39. <th style='width:80px;'>联系人</th>
  40. <th style='width:100px;'>手机</th>
  41. <th>地址</th>
  42. <th style='width:60px;'>默认</th>
  43. <th>操作</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. <?php foreach( $list as $item ){ ?>
  48. <tr>
  49. <td>
  50. <input type='checkbox' value="{$item['id']}"/>
  51. </td>
  52. <td>{$item['title']}</td>
  53. <td>{$item['name']}</td>
  54. <td>{$item['mobile']}</td>
  55. <td>{$item['address']}</td>
  56. <td>
  57. <span class='label <?php if( $item['isdefault']==1){ ?>label-primary<?php }else{ ?>label-default<?php } ?> defaults'
  58. data-toggle='ajaxSwitch'
  59. data-switch-value='{$item['isdefault']}'
  60. data-switch-value0='0|否|label label-default defaults|{:U('config/address.setdefault',array('isdefault'=>1,'id'=>$item['id']))}'
  61. data-switch-value1='1|是|label label-primary defaults|{:U('config/address.setdefault',array('isdefault'=>0,'id'=>$item['id']))}'
  62. data-switch-css='.defaults'
  63. data-switch-other = 'true'
  64. style="cursor: pointer;"
  65. >
  66. <?php if( $item['isdefault']==1){ ?>是<?php }else{ ?>否<?php } ?></span>
  67. </td>
  68. <td style="text-align:left;">
  69. <?php if( $item['uniacid']!=0){ ?>
  70. <a href="{:U('config/address.editreturn', array('id' => $item['id']))}" class="btn btn-default btn-sm btn-operation btn-op">
  71. <span data-toggle="tooltip" data-placement="top" title="" data-original-title="修改">
  72. <i class="icow icow-bianji2"></i>
  73. </span>
  74. </a>
  75. <a data-toggle='ajaxRemove' href="{:U('config/address.delreturn', array('id' => $item['id']))}"class="btn btn-default btn-sm btn-operation btn-op" data-confirm='确认要删除此退货地址吗?'>
  76. <span data-toggle="tooltip" data-placement="top" title="" data-original-title="删除">
  77. <i class="icow icow-shanchu1"></i>
  78. </span>
  79. </a>
  80. <?php } ?>
  81. </td>
  82. </tr>
  83. <?php } ?>
  84. <tr>
  85. <td colspan='7'>
  86. <div class='pagers' style='float:right;'>
  87. {$pager}
  88. </div>
  89. </td>
  90. </tr>
  91. </tbody>
  92. </table>
  93. <?php }else{ ?>
  94. <div class='panel panel-default'>
  95. <div class='panel-body' style='text-align: center;padding:30px;'>
  96. 暂时没有任何退货地址!
  97. </div>
  98. </div>
  99. <?php } ?>
  100. </div>
  101. </div>
  102. </form>
  103. </div>
  104. {template '_footer'}