detail.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <!-- 头部 -->
  2. <include file="Public/top" />
  3. <div class="wrapper row-offcanvas row-offcanvas-left">
  4. <!-- Left side column. contains the logo and sidebar -->
  5. <aside class="left-side sidebar-offcanvas">
  6. <!-- 左边 -->
  7. <include file="Public/left" />
  8. </aside>
  9. <!-- Right side column. Contains the navbar and content of the page -->
  10. <aside class="right-side">
  11. <!-- Content Header (Page header) -->
  12. <!-- bar -->
  13. <include file="Public/bar" />
  14. <!-- Main content -->
  15. <!-- 右侧 -->
  16. <div class="row">
  17. <div class="col-sm-12">
  18. <div class="row pad">
  19. <form name="form1" method="get">
  20. <div class="col-sm-10">
  21. <div class="btn-group">
  22. <input type="text" placeholder="请输入单词" name="keyword" value="<{$keyword}>" class="form-control input-sm">
  23. </div>
  24. <div class="btn-group">
  25. <button class="btn btn-sm btn-primary" name="sub" type="submit">
  26. <i class="fa fa-search"></i>
  27. </button>
  28. </div>
  29. </div>
  30. <div class="col-sm-1">
  31. <div class="col-sm-1">
  32. <a href="/admin/store/words?store_id=<{$storeId}>" class="btn btn-primary">新增单词</a>
  33. </div>
  34. </div>
  35. <div class="col-sm-1">
  36. <div class="col-sm-1">
  37. <a href="javascript:history.go(-1)" class="btn btn-primary">返回</a>
  38. </div>
  39. </div>
  40. <input type="hidden" name="store_id" value="<{$storeId}>">
  41. </form>
  42. </div>
  43. </div>
  44. <div class="col-xs-6">
  45. <div class="box">
  46. <!-- /.box-header -->
  47. <div class="box-body table-responsive">
  48. <table class="table table-bordered table-striped">
  49. <thead>
  50. <tr>
  51. <th>序号</th>
  52. <th>单词</th>
  53. <th>中文释义</th>
  54. <th colspan="2">操作</th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. <volist name="list" id="val" mod='2'>
  59. <eq name='mod' value='0'>
  60. <tr>
  61. <td><{$i}></td>
  62. <td><a href="/admin/store/words?store_id=<{$val['store_id']}>&words_id=<{$val['words_id']}>"><{$val['words_name']}></a></td>
  63. <td title="<{$val['words_text']}>"><{$val['words_text']|msubstr=0,20,'utf-8'}></td>
  64. <td>
  65. &nbsp;<a href="/admin/store/words?store_id=<{$val['store_id']}>&words_id=<{$val['words_id']}>">编辑</a>
  66. &nbsp;<a href="/admin/store/delWords?words_id=<{$val['words_id']}>&store_id=<{$val['store_id']}>" onclick="return confirm('确定删除吗?')">删除</a>
  67. </td>
  68. </tr>
  69. </eq>
  70. </volist>
  71. <empty name="list">
  72. <tr>
  73. <td colspan="5" align="center">没有记录</td>
  74. </tr>
  75. </empty>
  76. </tbody>
  77. </table>
  78. </div>
  79. <!-- /.box-body -->
  80. </div>
  81. </div>
  82. <div class="col-xs-6">
  83. <div class="box">
  84. <!-- /.box-header -->
  85. <div class="box-body table-responsive">
  86. <table class="table table-bordered table-striped">
  87. <thead>
  88. <tr>
  89. <th>序号</th>
  90. <th>单词</th>
  91. <th>中文释义</th>
  92. <th colspan="2">操作</th>
  93. </tr>
  94. </thead>
  95. <tbody>
  96. <volist name="list" id="val" mod='2'>
  97. <eq name='mod' value='1'>
  98. <tr>
  99. <td><{$i}></td>
  100. <td><{$val['words_name']}></td>
  101. <td title="<{$val['words_text']}>"><{$val['words_text']|msubstr=0,20,'utf-8'}></td>
  102. <td>
  103. &nbsp;<a href="/admin/store/words?store_id=<{$val['store_id']}>&words_id=<{$val['words_id']}>">编辑</a>
  104. &nbsp;<a href="/admin/store/delWords?store_id=<{$val['store_id']}>&words_id=<{$val['words_id']}>" onclick="return confirm('确定删除吗?')">删除</a>
  105. </td>
  106. </tr>
  107. </eq>
  108. </volist>
  109. <empty name="list">
  110. <tr>
  111. <td colspan="5" align="center">没有记录</td>
  112. </tr>
  113. </empty>
  114. </tbody>
  115. </table>
  116. </div>
  117. <!-- /.box-body -->
  118. </div>
  119. </div>
  120. <div class="col-xs-12">
  121. <div class="box">
  122. <!-- /.box-body -->
  123. <{$page}>
  124. </div>
  125. <!-- /.box -->
  126. </div>
  127. </div>
  128. <!-- 右侧 -->
  129. <!-- /.content -->
  130. </aside>
  131. <!-- /.right-side -->
  132. </div>
  133. <!-- ./wrapper -->
  134. </body>
  135. </html>