optionsListPage.html 335 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <%var cssParam = {%>
  2. <%};%>
  3. <%var jsParam = {%>
  4. <script type="text/javascript">
  5. function todel(url,msg){
  6. bootbox.dialog({
  7. title: "系统提示",
  8. message: msg,
  9. locale:"zh_CN",
  10. buttons: {
  11. cancel: {label: "取消",className: "btn-cancel",callback: function() {}},
  12. ok: {label: "确定",className: "btn-success",
  13. callback: function() {
  14. window.location.href = url;
  15. }
  16. }
  17. }
  18. });
  19. }
  20. </script>
  21. <%};%>
  22. <%layout("/onlineSurvey/afterPage/commonPage/_layout.html", {nav: "主题选项管理",meunsel:"onlineSurveyManage",jsParam:jsParam,cssParam:cssParam}) {%>
  23. <div class="col-xs-12">
  24. <div class="row">
  25. <a class="btn btn-xs btn-success" href="${contextPath}/admin/onlineSurvey/toeditOptions?themeId=${themeId}&pageNumber=${pageNumber!1}">
  26. <i class="icon-ok bigger-120">添加主题选项</i>
  27. </a>
  28. </div>
  29. </div>
  30. <div class="col-xs-12">
  31. <div class="row">
  32. <div class="table-responsive">
  33. <table id="sample-table-1"
  34. class="table table-striped table-bordered table-hover">
  35. <thead>
  36. <tr>
  37. <th>序号</th>
  38. <th>选项说明</th>
  39. <th>目前状态</th>
  40. <th>状态操作</th>
  41. <th>操作 </th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <%for(tempDate in dateList!){%>
  46. <tr>
  47. <td>${tempDateLP.index}</td>
  48. <td>${tempDate.explains!''}</td>
  49. <td>
  50. <%if(tempDate.state == 0){%>
  51. <font color="blue">开启</font>
  52. <%}else if(tempDate.state == 1){%>
  53. <font color="green">未开启</font>
  54. <%}else if(tempDate.state == 2){%>
  55. <font color="red">结束</font>
  56. <%}%>
  57. </td>
  58. <td>
  59. <a href = ${contextPath}/admin/onlineSurvey/editThemeOptionsState?id=${tempDate.id}&themeId=${themeId}&state=${state!0}&pageNumber=${pageNumber!1}&urlParas=${urlParas!''}>开启</a>
  60. <a href = ${contextPath}/admin/onlineSurvey/editThemeOptionsState?id=${tempDate.id}&themeId=${themeId}&state=${state!1}&pageNumber=${pageNumber!1}&urlParas=${urlParas!''}>关闭</a>
  61. <a href = ${contextPath}/admin/onlineSurvey/editThemeOptionsState?id=${tempDate.id}&themeId=${themeId}&state=${state!2}&pageNumber=${pageNumber!1}&urlParas=${urlParas!''}>结束</a>
  62. </td>
  63. <td>
  64. <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
  65. <a class="btn btn-xs btn-info" href="${contextPath}/admin/onlineSurvey/viewThemeOptions?id=${tempDate.id}" target="_blank" data-toggle="tooltip" data-placement="auto" title="查看详情">
  66. <i class="icon-flag bigger-120"></i>
  67. </a>
  68. <a class="btn btn-xs btn-info" href="${contextPath}/admin/onlineSurvey/toeditOptions?id=${tempDate.id}&themeId=${themeId}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}" data-toggle="tooltip" data-placement="auto" title="编辑">
  69. <i class="icon-edit bigger-120"></i>
  70. </a>
  71. <a class="btn btn-xs btn-danger" href="javascript:todel('${contextPath}/admin/onlineSurvey/delOptions?id=${tempDate.id}&themeId=${themeId}&pageNumber=${pageNumber!1}&urlParas=${urlParas!}','记录将被永久删除,并且无法恢复。您确定吗?')" onclick="" data-toggle="tooltip" data-placement="auto" title="删除">
  72. <i class="icon-trash bigger-120"></i>
  73. </a>
  74. </div>
  75. </td>
  76. </tr>
  77. <%}elsefor{%>
  78. <tr>
  79. <td colspan="6">没有记录!</td>
  80. </tr>
  81. <%}%>
  82. </tbody>
  83. </table>
  84. </div>
  85. <!-- /.table-responsive -->
  86. </div>
  87. <!-- /span -->
  88. </div>
  89. <!-- /row -->
  90. <%}%>