coin.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <include file="Public:header"/>
  2. <div id="main-content">
  3. <div id="top-alert" class="fixed alert alert-error" style="display: none;">
  4. <button class="close fixed" style="margin-top: 4px;">&times;</button>
  5. <div class="alert-content">警告内容</div>
  6. </div>
  7. <div id="main" class="main">
  8. <div class="main-title-h">
  9. <span class="h1-title">用户资产管理</span>
  10. <div class="fr">
  11. <button class="btn btn-warning" onClick="location.href='{:U('User/coin')}'">初始化搜索</button>
  12. </div>
  13. </div>
  14. <div class="cf">
  15. <div class="search-form fl cf">
  16. <div class="sleft">
  17. <form name="formSearch" id="formSearch" method="get" name="form1">
  18. <select style=" width: 160px; float: left; margin-right: 10px;" name="field" class="form-control">
  19. <option value="username"
  20. <eq name="Think.get.field" value="username">selected</eq>
  21. >用户名</option>
  22. </select>
  23. <input type="text" name="name" class="search-input form-control " value="{$Think.get.name}" placeholder="请输入查询内容" style="">
  24. <a class="sch-btn" href="javascript:;" id="search"> <i class="btn-search"></i> </a>
  25. </form>
  26. <script>
  27. //搜索功能
  28. $(function () {
  29. $('#search').click(function () {
  30. $('#formSearch').submit();
  31. });
  32. });
  33. //回车搜索
  34. $(".search-input").keyup(function (e) {
  35. if (e.keyCode === 13) {
  36. $("#search").click();
  37. return false;
  38. }
  39. });
  40. </script>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="data-table table-striped">
  45. <table class="">
  46. <thead>
  47. <tr>
  48. <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th>
  49. <th class="">ID</th>
  50. <th>编辑</th>
  51. <th class="">用户名</th>
  52. <volist name="coinlist" id="v">
  53. <th class="">{$v.title}(<?php echo strtoupper($v['name']);?>)</th>
  54. </volist>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. <notempty name="list">
  59. <volist name="list" id="vo">
  60. <tr>
  61. <td><input class="ids" type="checkbox" name="id[]" value="{$vo.id}"/></td>
  62. <td>{$vo.id}</td>
  63. <th><a href="{:U('User/coinEdit?id='.$vo['userid'])}" class="btn btn-primary btn-xs">编辑</a></th>
  64. <td>{$vo['username']}</td>
  65. <volist name="coinlist" id="v">
  66. <td>
  67. 可用:{$vo[$v['name']] * 1}<br>冻结:
  68. <php>echo $vo[$v['name'].'d'] * 1;</php>
  69. <br> 总计:
  70. <php>echo $vo[$v['name'].'d'] * 1 + $vo[$v['name']] * 1;</php>
  71. <br>
  72. </td>
  73. </volist>
  74. </tr>
  75. </volist>
  76. <else/>
  77. <td colspan="12" class="text-center empty-info"><i class="glyphicon glyphicon-exclamation-sign"></i>暂无数据</td>
  78. </notempty>
  79. </tbody>
  80. </table>
  81. <div class="page">
  82. <div>{$page}</div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <include file="Public:footer"/>
  88. <block name="script">
  89. <script type="text/javascript" charset="utf-8">
  90. //导航高亮
  91. highlight_subnav("{:U('User/coin')}");
  92. </script>
  93. </block>