account.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. {template 'public/header'}
  2. {template 'public/comhead'}
  3. <link rel="stylesheet" type="text/css" href="../addons/zh_tcwq/template/public/ygcsslist.css">
  4. {if $_W['role'] != 'operator'}
  5. <ul class="nav nav-tabs">
  6. <span class="ygxian"></span>
  7. <div class="ygdangq">当前位置:</div>
  8. <li class="active"><a href="javascript:void(0);">账号管理</a></li>
  9. <li><a href="{php echo $this->createWebUrl('countadd')}">添加/编辑账号</a></li>
  10. </ul>
  11. {/if}
  12. <div class="main">
  13. <div class="panel panel-default ygbody">
  14. <div class="panel-body">
  15. <p class="yangshi">商户后台登陆地址:&nbsp;&nbsp;<a href="{$_W['siteroot']}web/city.php?c=user&a=login" target="_blank">{$_W['siteroot']}web/city.php?c=user&a=login</a></p>
  16. </div>
  17. </div>
  18. <div class="panel panel-default">
  19. <div class="panel-heading">
  20. 账号管理
  21. </div>
  22. <div class="panel-body" style="padding: 0px 15px;">
  23. <div class="row">
  24. <table class="yg5_tabel col-md-12">
  25. <tr class="yg5_tr1">
  26. <th class="store_td1 col-md-2">顺序</th>
  27. <th class="col-md-1">(ID)账号</th>
  28. <th class="col-md-1">所属城市</th>
  29. <!-- <th class="col-md-2">角色</th> -->
  30. <th class="col-md-2">状态</th>
  31. <th class="col-md-2">操作</th>
  32. <th class="col-md-1">管理入口</th>
  33. </tr>
  34. {loop $list $key $item}
  35. <tr class="yg5_tr2">
  36. <td><div class="type-parent"> {php echo $key+1}</div></td>
  37. <td><div class="type-parent">{$item['username']}</div></td>
  38. <td><div class="type-parent">{$item['cityname']}</div></td>
  39. <!-- <td><a class="btn btn-info btn-sm" href="javascript:void(0);">店长</a></td>
  40. -->
  41. {if $item['status']==2}
  42. <td><a class="btn storeblue btn-xs" href="javascript:void(0);">启用</a></td>
  43. {elseif $item['status']==1}
  44. <td><a class="btn storegrey btn-xs" href="javascript:void(0);">禁用</a></td>
  45. {/if}
  46. {if $_W['role'] == 'operator'}
  47. <td>
  48. <a class="btn storered btn-xs" href="{php echo $this->createWebUrl('inindex', array('cityname' => $item['cityname']))}" title="编辑">管理</a></a>
  49. </td>
  50. {else}
  51. <td>
  52. <a href="{php echo $this->createWebUrl('countadd', array('id' => $item['id']))}" class="storespan btn btn-xs">
  53. <span class="fa fa-pencil"></span>
  54. <span class="bianji">编辑
  55. <span class="arrowdown"></span>
  56. </span>
  57. </a>
  58. <a href="{php echo $this->createWebUrl('account', array('op' => 'delete', 'id' => $item['id']))}" class="storespan btn btn-xs" onclick="return confirm('确认删除吗?');return false;">
  59. <span class="fa fa-trash-o"></span>
  60. <span class="bianji">删除
  61. <span class="arrowdown"></span>
  62. </span>
  63. </a>
  64. <!-- <a class="btn btn-warning btn-xs" href="{php echo $this->createWebUrl('countadd', array('id' => $item['id']))}" title="编辑">改</a>&nbsp;&nbsp;
  65. <a class="btn btn-danger btn-xs" href="{php echo $this->createWebUrl('account', array('op' => 'delete', 'id' => $item['id']))}" onclick="return confirm('确认删除吗?');return false;" title="删除">删</a> -->
  66. </td>
  67. {/if}
  68. <td>
  69. <a class="btn ygshouqian2 btn-xs" href="{php echo $this->createWebUrl('inindex', array('cityname' => $item['cityname'],'account_id'=> $item['uid']))}" title="编辑">管理</a>
  70. </td>
  71. </tr>
  72. {/loop}
  73. <!-- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  74. <div class="modal-dialog" role="document">
  75. <div class="modal-content">
  76. <div class="modal-header">
  77. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  78. <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>
  79. </div>
  80. <div class="modal-body" style="font-size: 20px">
  81. <span style="color: #333;font-size: 14px;">您确定删除吗?</span>
  82. </div>
  83. <div class="modal-footer">
  84. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  85. <a href="{php echo $this->createWebUrl('account', array('op' => 'delete', 'id' => $item['id']))}" type="button" class="btn btn-info">确定</a>
  86. </div>
  87. </div>
  88. </div>
  89. </div> -->
  90. {if empty($list)}
  91. <tr class="yg5_tr2">
  92. <td colspan="12">
  93. 暂无账号信息
  94. </td>
  95. </tr>
  96. {/if}
  97. </table>
  98. </div>
  99. </form>
  100. </div>
  101. </div>
  102. <div class="text-right we7-margin-top">{$pager}</div>
  103. <script type="text/javascript">
  104. $(function(){
  105. $("#frame-15").show();
  106. $("#yframe-15").addClass("wyactive");
  107. })
  108. </script>{template 'common/footer'}