zhanghao.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. {template 'public/header'}
  2. {template 'public/comhead'}
  3. <link rel="stylesheet" type="text/css" href="../addons/zh_jdgjb/template/public/ygcsslist.css">
  4. <style type="text/css">
  5. .yg5_key>div{float: left;line-height: 34px;}
  6. .store_td1{height: 45px;}
  7. .store_list_img{width: 60px;height: 60px;}
  8. .yg5_tabel{border-color: #e5e5e5;outline: 1px solid #e5e5e5;}
  9. .yg5_tr2>td{padding: 10px 15px;border: 1px solid #e5e5e5;text-align: center;}
  10. .yg5_tr1>th{
  11. border: 1px solid #e5e5e5;
  12. padding-left: 15px;
  13. background-color: #FAFAFA;
  14. font-weight: bold;
  15. text-align: center;
  16. }
  17. .yg5_btn{background-color: #EEEEEE;color: #333;border: 1px solid #E4E4E4;border-radius: 6px;width: 100px;height: 34px;}
  18. .yangshi>a{color: #44ABF7;font-size: 14px;}
  19. .ygbody{border-color: #B3D6FF;background-color: #EEF6FF;color: #595961;border-radius: 6px;}
  20. </style>
  21. <ul class="nav nav-tabs">
  22. <span class="ygxian"></span>
  23. <div class="ygdangq">当前位置:</div>
  24. <li class="active"><a href="{php echo $this->createWebUrl('zhanghao')}">账号管理</a></li>
  25. <li><a href="{php echo $this->createWebUrl('addzhanghao')}">添加/编辑账号</a></li>
  26. </ul>
  27. <div class="main">
  28. <div class="panel panel-default">
  29. <div class="panel-heading">
  30. 账号管理
  31. </div>
  32. <div class="panel-body" style="padding: 0px 15px;">
  33. <div class="row">
  34. <table class="yg5_tabel col-md-12">
  35. <tr class="yg5_tr1">
  36. <th class="col-md-1 store_td1">(ID)账号</th>
  37. <th class="col-md-2">状态</th>
  38. <th class="col-md-2">操作</th>
  39. </tr>
  40. {loop $list $key $item}
  41. <tr class="yg5_tr2">
  42. <td><div class="type-parent">{$item['username']}</div></td>
  43. <!-- <td><a class="btn btn-info btn-sm" href="javascript:void(0);">店长</a></td> -->
  44. {if $item['status']==2}
  45. <td><a class="btn storeblue btn-xs">启用</a></td>
  46. {elseif $item['status']==1}
  47. <td><a class="btn storegrey btn-xs">禁用</a></td>
  48. {/if}
  49. <td>
  50. <a href="{php echo $this->createWebUrl('addzhanghao', array('id' => $item['id']))}" class="storespan btn btn-xs">
  51. <span class="fa fa-pencil"></span>
  52. <span class="bianji">编辑
  53. <span class="arrowdown"></span>
  54. </span>
  55. </a>
  56. <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$item['id']}">
  57. <span class="fa fa-trash-o"></span>
  58. <span class="bianji">删除
  59. <span class="arrowdown"></span>
  60. </span>
  61. </a>
  62. <!-- <a class="btn btn-warning btn-sm" href="{php echo $this->createWebUrl('countadd', array('id' => $item['id']))}" title="编辑">改</a>&nbsp;&nbsp;
  63. <button type="button" class="btn btn-danger btn-sm" data-toggle="modal" data-target="#myModal{$item['id']}">删</button> -->
  64. </td>
  65. </tr>
  66. <div class="modal fade" id="myModal{$item['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  67. <div class="modal-dialog" role="document">
  68. <div class="modal-content">
  69. <div class="modal-header">
  70. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  71. <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>
  72. </div>
  73. <div class="modal-body" style="font-size: 20px">
  74. 确定删除么?
  75. </div>
  76. <div class="modal-footer">
  77. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  78. <a href="{php echo $this->createWebUrl('zhanghao', array('op' => 'delete', 'id' => $item['id']))}" type="button" class="btn btn-info" >确定</a>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. {/loop}
  84. {if empty($list)}
  85. <tr class="yg5_tr2">
  86. <td colspan="4">
  87. 暂无账号信息
  88. </td>
  89. </tr>
  90. {/if}
  91. </table>
  92. </div>
  93. </form>
  94. </div>
  95. </div>
  96. <div class="text-right we7-margin-top">{$pager}</div>
  97. <script type="text/javascript">
  98. $(function(){
  99. $("#frame-12").show();
  100. $("#yframe-12").addClass("wyactive");
  101. })
  102. </script>{template 'common/footer'}