_layout.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  6. <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  7. <link rel="stylesheet" href="${contextPath}/css/forum.css">
  8. <link rel="stylesheet" href="${contextPath}/css/bootstrap/bootstrap.min.css">
  9. <link rel="stylesheet" href="${contextPath}/css/font-awesome.min.css">
  10. <title>吉林省产业技术创新联盟管理平台-技术问答</title>
  11. </head>
  12. <body style="background-color:#F5F5F5;">
  13. <header>
  14. <form id="layoutForm1" role="form" action="${contextPath}/TechnicalQa/layout" method="post">
  15. <div class="fo-navbar">
  16. <div class="container">
  17. <a href="${contextPath}/TechnicalQaWeb/" class="fo-navbar-logo">
  18. <img src="${contextPath}/img/forum/3.png" alt="">
  19. </a>
  20. <div class="fo-navbar-info">
  21. <ul>
  22. <%if(session.LoginQaUser!'' == ''){%>
  23. <li class="dropdown">
  24. <a href="${contextPath}/TechnicalQaWeb/tologin" target="_blank">登陆</a>
  25. </li>
  26. <%}else{%>
  27. <li class="dropdown">
  28. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  29. 导航<span class="caret" id="myTabDrop"></span>
  30. </a>
  31. <ul class="dropdown-menu" role="menu" aria-labelledby="myTabDrop">
  32. <li>
  33. <a href="${contextPath}/TechnicalQa/toQuestionPage">等我回答</a>
  34. </li>
  35. <li>
  36. <a href="${contextPath}/TechnicalQa/toMyAnswerPage">我的提问</a>
  37. </li>
  38. <li>
  39. <a href="${contextPath}/TechnicalQa/toMyQuestionPage">我的回答</a>
  40. </li>
  41. </ul>
  42. </li>
  43. <%}%>
  44. <li>
  45. <a href="${contextPath}/TechnicalQaWeb/">主页</a>
  46. </li>
  47. <%if(session.LoginQaUser.role!0 > 0){%>
  48. <li>
  49. <a href="${contextPath}/TechnicalQa/tomanage">管理</a>
  50. </li>
  51. <%}%>
  52. </ul>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="container">
  57. <div class="fo-info">
  58. <%if(session.LoginQaUser!'' == ''){%>
  59. <h3>欢迎进入用技术问答系统,登录后可以使用更多功能!</h3>
  60. <%}else{%>
  61. <img src="${contextPath}/img/forum/defaultHead1.png" alt="${session.LoginQaUser.name!''}" width="200" height="300"/>
  62. <div class="fo-info-jianli">
  63. <a href="${contextPath}/TechnicalQa/toQuestionPage" class="fo-navbar-logo">
  64. <h3>${session.LoginQaUser.name }</h3>
  65. </a>
  66. <%if(session.LoginQaUser.isexperts == 1){%>
  67. <p><span class="label label-info" style="margin-right:10px;">专家</span></p>
  68. <p>专家编号:${session.LoginQaUser.expertsid }</p>
  69. <%}else{%>
  70. <p><span class="label label-warning">非专家</span></p>
  71. <%}%>
  72. 个人签名:<input name="signature" type="text" id="signature" style="color:#666;" placeholder="请输入个人签名" value="${session.LoginQaUser.signature }" onkeyup="layoutSignatureKeyup(event);"/>
  73. <p>注册日期:${session.LoginQaUser.createdate }</p>
  74. </div>
  75. <%}%>
  76. </div>
  77. </div>
  78. </form>
  79. </header>
  80. ${layoutContent}
  81. <footer class="fo-footer">
  82. <p>地址:吉林省长春市朝阳区前进大街1244号</p>
  83. <p>邮编:123456 电话:123456789 传真:239823982 邮箱:1243456@163.com</p>
  84. <p>版权所有 吉林省计算中心</p>
  85. <p>技术支持:长春市福瑞科技有限公司</p>
  86. </footer>
  87. <script src="${contextPath}/js/jquery.min.js"></script>
  88. <script src="${contextPath}/js/bootstrap.min.js"></script>
  89. <%if(session.LoginQaUser!'' != ''){%>
  90. <script >
  91. function layoutSignatureKeyup(event){
  92. if(event.keyCode == 13){
  93. $("#layoutForm1").submit();
  94. }
  95. }
  96. </script>
  97. <%}%>
  98. <!-- 页面中自定义的脚本写在下面 -->
  99. ${jsParam!''}
  100. </body>
  101. </html>