人人商城

fansgroup.html 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {php $newUI = true;}
  2. {template 'common/header'}
  3. <style>
  4. .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td{white-space:nowrap;}
  5. </style>
  6. <ul class="nav nav-tabs">
  7. <li {if $do == 'display'}class="active"{/if}><a href="{php echo url('mc/fangroup/display');}">粉丝标签</a></li>
  8. </ul>
  9. {if $do == 'display'}
  10. <div class="clearfix" ng-controller="GroupListCtrl" ng-cloak>
  11. <form action="{php echo url('mc/fangroup/post');}" method="post" id="form">
  12. <input type="hidden" name="acid" value="{$acid}">
  13. <div class="panel panel-default">
  14. <div class="panel-body table-responsive">
  15. <table class="table table-hover" style="width:100%;" cellspacing="0" cellpadding="0">
  16. <thead class="navbar-inner">
  17. <tr>
  18. <th width="20%">标签名称</th>
  19. <th width="20%"></th>
  20. <th width="20%">标签id</th>
  21. <th width="20%">标签内用户数量</th>
  22. <th width="20%">操作</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. <tr ng-repeat="tag in tags">
  27. <input type="hidden" name="tagid[]" value="{{tag.id}}">
  28. <input type="hidden" name="origin_name[]" value="{{tag.name}}">
  29. <td ng-if="tag.id == 1 || tag.id == 2">
  30. <input type="text" class="form-control" style="width:250px;" name="tagname[]" value="{{tag.name}}" readonly>
  31. </td>
  32. <td ng-if="tag.id != 1 && tag.id != 2">
  33. <input type="text" class="form-control" style="width:250px;" name="tagname[]" value="{{tag.name}}">
  34. </td>
  35. <td class="text-left">
  36. <span ng-if="tag.id == 1 || tag.id == 2">
  37. <span class="label label-danger">系统标签,不能修改</span>
  38. </span>
  39. </td>
  40. <td>{{tag.id}}</td>
  41. <td>{{tag.count}}</td>
  42. <td>
  43. <span ng-if="tag.id != 1 && tag.id != 2">
  44. <a ng-click="deltag(tag.id)" href="javascript:;" class="btn btn-danger tag-{{tag.id}}">删除标签</a>
  45. </span>
  46. </td>
  47. </tr>
  48. <tr id="position">
  49. <td colspan="5"><a href="javascript:;" ng-click="addtag()"><i class="fa fa-plus-circle"></i> 添加新标签</a></td>
  50. </tr>
  51. <tr>
  52. <td colspan="5">
  53. <button ng-click="submit()" type="button" class="btn btn-primary span2">保存</button>
  54. </td>
  55. </tr>
  56. </tbody>
  57. </table>
  58. </div>
  59. </div>
  60. </form>
  61. </div>
  62. <script type="text/javascript">
  63. $(function(){
  64. angular.module('fansApp').value('config', {
  65. 'tags' : {php echo !empty($tags) ? json_encode($tags) : 'null'},
  66. 'delurl' : '{php echo url('mc/fangroup/del');}'
  67. });
  68. angular.bootstrap(document, ['fansApp']);
  69. });
  70. </script>
  71. {/if}
  72. {template 'common/footer'}