人人商城

blacklist.html 3.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {template 'header'}
  2. <ul class="we7-page-tab">
  3. <li class="active"><a href="{php echo $this->createWebUrl('blacklist', array('direct' => 1))}">黑名单设置</a></li>
  4. </ul>
  5. <div class="we7-form blacklist-tab">
  6. <input type="radio" id="1" name="4" checked>
  7. <label for="1">黑名单设置 <span class="active"></span></label>
  8. <input type="radio" id="2" name="4">
  9. <label for="2">白名单设置<span></span></label>
  10. <input type="radio" id="3" name="4">
  11. <label for="3">关闭权限设置<span></span></label>
  12. </div>
  13. <div class="alert we7-page-alert blacklist-alert">
  14. <div class="info">
  15. <p>开启黑名单</p>
  16. <p class="color-default"><i class="wi wi-info-sign"></i><strong >将用户放入黑名单,用户登录就无权限进入“商城” </strong></p>
  17. </div>
  18. <div class="switch switchOn"></div>
  19. </div>
  20. <div class="we7-margin-bottom clearfix">
  21. <div class="pull-right">
  22. <a href="#" class="btn btn-primary we7-padding-horizontal" data-toggle="modal" data-target="#balck">添加黑名单用户</a>
  23. </div>
  24. </div>
  25. <div>
  26. <table class="table we7-table table-hover site-list">
  27. <col width=""/>
  28. <col width="90px"/>
  29. <tr>
  30. <th class="text-left">用户名</th>
  31. <th class="text-left">操作</th>
  32. </tr>
  33. {if !empty($blacklist)}
  34. {loop $blacklist $item}
  35. <tr ng-repeat="multi in multis">
  36. <td class="vertical-middle">
  37. <span>{$item}</span>
  38. </td>
  39. <td class="text-left">
  40. <div class="link-group text-left">
  41. <a href="{php echo $this->createWebUrl('blacklist', array('operation' => 'delete', 'username' => $item, 'direct' =>1))}">删除</a>
  42. </div>
  43. </td>
  44. </tr>
  45. {/loop}
  46. {else}
  47. <tr>
  48. <td colspan="2" class="text-center">暂无数据</td>
  49. </tr>
  50. {/if}
  51. </table>
  52. <div class="modal fade" id="balck" tabindex="-1" role="dialog">
  53. <div class="modal-dialog">
  54. <div class="modal-content">
  55. <div class="modal-header">
  56. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  57. <h4 class="modal-title" id="myModalLabel6">添加黑名单用户</h4>
  58. </div>
  59. <form action="" method="post" class="we7-form">
  60. <input type="hidden" name="c" value="site">
  61. <input type="hidden" name="a" value="entry">
  62. <input type="hidden" name="do" value="blacklist">
  63. <input type="hidden" name="m" value="{$_W['current_module']['name']}">
  64. <input type="hidden" name="direct" value="1">
  65. <input type="hidden" name="operation" value="post">
  66. <input type="hidden" name="token" value="{$_W['token']}">
  67. <div class="modal-body we7-padding">
  68. <div class="form-group">
  69. <label class="control-label col-sm-2">用户名:</label>
  70. <div class="col-sm-8">
  71. <input type="text" name="username" class="form-control" placeholder="请填写用户名">
  72. <span class="help-block">输入用户名,点击保存即可。</span>
  73. </div>
  74. </div>
  75. </div>
  76. <div class="modal-footer">
  77. <button type="submit" class="btn btn-primary">确定</button>
  78. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  79. </div>
  80. </form>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. {template 'common/footer'}