forum3.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <%var cssPar = {%>
  2. <%};%>
  3. <%var jsPar = {%>
  4. <script type="text/javascript">
  5. $(document).ready(
  6. function(){
  7. $(".fo-tabin-content-list-input").hide(),
  8. $(".fo-tabin-content-list ul li .fo-tabin-content-list-info .click").click(function(){
  9. $(this).next().toggle(500);
  10. });
  11. });
  12. </script>
  13. <script type="text/javascript">
  14. $(document).ready(function(){
  15. $(".modal .modal-body .del-tag").on("click","a", function(){
  16. a=$(this),b=a.attr("title"),c=a.attr("value"),d=$(".modal .modal-body .plus-tag");
  17. a.remove();
  18. d.append($("<a "+'value="'+c+'"title="'+b+'" href="javascript:void(0);" ><span>'+b+"</span><em></em></a>"));
  19. $(".flag-btn .show-tag").append($("<a "+'value="'+c+'"title="'+b+'" href="javascript:void(0);" ><span>'+b+"</span></a>"))
  20. $(".modal .modal-body .plus-tag a em").addClass("icon-remove");
  21. });
  22. });
  23. </script>
  24. <script type="text/javascript">
  25. $(document).ready(function(){
  26. $(".modal .modal-body .plus-tag").on("click", "a",function(){
  27. a=$(this),b=a.attr("title"),c=a.attr("value"),d=$(".modal .modal-body .del-tag");
  28. a.remove();
  29. $(".flag-btn .show-tag a").each(function(){
  30. var f=$(this).attr("value");
  31. if(f==c){
  32. $(this).remove();
  33. }
  34. })
  35. remove();
  36. d.append($("<a "+'value="'+c+'"title="'+b+'" href="javascript:void(0);" ><span>'+b+"</span><em></em></a>"));
  37. $(".modal .modal-body .del-tag a em").addClass("icon-plus");
  38. });
  39. });
  40. </script>
  41. <%};%>
  42. <%layout("/technicalQuestionsAnswers/commonPage/_layout.html", {nav:"",meunsel:"indexpage",jsParam:jsPar,cssParam:cssPar}) {%>
  43. <div class="container">
  44. <div class="fo-content">
  45. <ul id="fo-tabout" class="nav nav-tabs">
  46. <li><a href="${contextPath}/TechnicalQa/toQuestionPage">等我回答</a></li>
  47. <li><a href="${contextPath}/TechnicalQa/toMyAnswerPage">我的回答</a></li>
  48. <li class="active"><a href="#no-answer" data-toggle="tab">我的提问</a></li>
  49. </ul>
  50. <div class="tab-content" id="fo-tabout-content">
  51. <div class="tab-pane fade in active" id="no-answer">
  52. <div class="fo-tabin-content-flag">
  53. <form action="">
  54. <ul id="content">
  55. <li>
  56. <%if(urlParas!'' == 'all'){%>
  57. <label><input name="Flag" type="radio" value="" checked="checked" />全部</label>
  58. <%}else{%>
  59. <label><input name="Flag" type="radio" onclick="window.location.href='${contextPath}/TechnicalQa/toMyQuestionPage?urlParas=all'" />全部</label>
  60. <%}%>
  61. </li>
  62. <li>
  63. <%if(urlParas!'' == 'unEnd'){%>
  64. <label><input name="Flag" type="radio" value="" checked="checked" />等待解答</label>
  65. <%}else{%>
  66. <label><input name="Flag" type="radio" onclick="window.location.href='${contextPath}/TechnicalQa/toMyQuestionPage?urlParas=unEnd'" />等待解答</label>
  67. <%}%>
  68. </li>
  69. <li>
  70. <%if(urlParas!'' == 'isEnd'){%>
  71. <label><input name="Flag" type="radio" value="" checked="checked" />已解决</label>
  72. <%}else{%>
  73. <label><input name="Flag" type="radio" onclick="window.location.href='${contextPath}/TechnicalQa/toMyQuestionPage?urlParas=isEnd'" />已解决</label>
  74. <%}%>
  75. </li>
  76. <li style="float:right;">
  77. <a href="javascript:window.location.reload();" class="btn"><span class="icon-refresh"></span>刷新</a>
  78. </li>
  79. <li style="float:right;">
  80. <a href="${contextPath}/TechnicalQa/toMyQuestion" class="btn btn-a">现在提问</a>
  81. </li>
  82. </ul>
  83. </form>
  84. </div>
  85. <div class="fo-tabin-content-list">
  86. <%for(technicalqatheme in technicalqathemelist){%>
  87. <ul id="list2">
  88. <li>
  89. <div style="float:right; margin-top:10px; width:125px;">
  90. <span>
  91. <%if(technicalqatheme.isEnd == 1){%>
  92. 等待解答
  93. <%}else{%>
  94. 已解决
  95. <%}%>
  96. </span>
  97. </div>
  98. <div class="fo-tabin-content-list-info">
  99. <div class="top">
  100. <a href="${contextPath}/TechnicalQaWeb/answer?id=${technicalqatheme.id }">${technicalqatheme.title }</a>
  101. </div>
  102. <div class="middle">
  103. ${technicalqatheme.detailed }
  104. </div>
  105. <div class="bottom">
  106. <span>${technicalqatheme.createDate }</span>
  107. <i class="icon-tag"></i>
  108. <%for(tempLable in technicalqatheme.labelList!){%>
  109. <span>${tempLable.labelName!}</span>
  110. <%}elsefor{%>
  111. <span>提问者没有打标签</span>
  112. <%}%>
  113. </div>
  114. </div>
  115. </li>
  116. </ul>
  117. <%}elsefor{%>
  118. <ul id="list2">
  119. <li>
  120. 没有相关信息!
  121. </li>
  122. </ul>
  123. <%}%>
  124. </div>
  125. <div class="fo-page">
  126. <%include("/technicalQuestionsAnswers/commonPage/_paginate.html", {"currentPage": pageNumber!1, "totalPage": totalPage!1, "totalRow": totalRow!0, "actionUrl": contextPath+"/TechnicalQa/toMyQuestionPage?pageNumber=", "urlParas": urlParas!''}){}%>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. <%}%>