dlaccount.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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->createWebUrl2('dlaccount')}">账号管理</a></li>
  25. <li><a href="{php echo $this->createWebUrl2('dladdaccount')}">添加/编辑账号</a></li>
  26. </ul>
  27. <div class="main">
  28. <div class="panel panel-default ygbody">
  29. <div class="panel-body">
  30. <p class="yangshi">酒店后台登陆地址:&nbsp;&nbsp;<a href="{$_W['siteroot']}web/zhjd.php?c=user&a=login" target="_blank">{$_W['siteroot']}web/zhjd.php?c=user&a=login</a></p>
  31. </div>
  32. </div>
  33. <div class="panel panel-default">
  34. <div class="panel-heading">
  35. 账号管理
  36. </div>
  37. <div class="panel-body" style="padding: 0px 15px;">
  38. <div class="row">
  39. <table class="yg5_tabel col-md-12">
  40. <tr class="yg5_tr1">
  41. <th class="col-md-1 store_td1">(ID)账号</th>
  42. <th class="col-md-1">酒店名称</th>
  43. <th class="col-md-2">状态</th>
  44. <th class="col-md-2">操作</th>
  45. </tr>
  46. {loop $list $key $item}
  47. <tr class="yg5_tr2">
  48. <td><div class="type-parent">{$item['username']}</div></td>
  49. <td><div class="type-parent">{$item['user_name']}</div></td>
  50. <!-- <td><a class="btn btn-info btn-sm" href="javascript:void(0);">店长</a></td> -->
  51. {if $item['status']==2}
  52. <td><a class="btn storeblue btn-xs">启用</a></td>
  53. {elseif $item['status']==1}
  54. <td><a class="btn storegrey btn-xs">禁用</a></td>
  55. {/if}
  56. <td>
  57. <a href="{php echo $this->createWebUrl2('dladdaccount', array('id' => $item['id']))}" class="storespan btn btn-xs">
  58. <span class="fa fa-pencil"></span>
  59. <span class="bianji">编辑
  60. <span class="arrowdown"></span>
  61. </span>
  62. </a>
  63. <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$item['id']}">
  64. <span class="fa fa-trash-o"></span>
  65. <span class="bianji">删除
  66. <span class="arrowdown"></span>
  67. </span>
  68. </a>
  69. <!-- <a class="btn btn-warning btn-sm" href="{php echo $this->createWebUrl('countadd', array('id' => $item['id']))}" title="编辑">改</a>&nbsp;&nbsp;
  70. <button type="button" class="btn btn-danger btn-sm" data-toggle="modal" data-target="#myModal{$item['id']}">删</button> -->
  71. </td>
  72. </tr>
  73. <div class="modal fade" id="myModal{$item['id']}" 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. 确定删除么?
  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->createWebUrl2('dlaccount', array('op' => 'delete', 'id' => $item['id']))}" type="button" class="btn btn-info" >确定</a>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. {/loop}
  91. {if empty($list)}
  92. <tr class="yg5_tr2">
  93. <td colspan="4">
  94. 暂无账号信息
  95. </td>
  96. </tr>
  97. {/if}
  98. </table>
  99. </div>
  100. </form>
  101. </div>
  102. {$pager}
  103. </div>
  104. <script type="text/javascript">
  105. $(function(){
  106. $("#frame-14").show();
  107. $("#yframe-14").addClass("wyactive");
  108. })
  109. </script>
  110. {template 'common/footer'}