newArticle.jsp
上传用户:bjjsss
上传日期:2018-06-10
资源大小:4236k
文件大小:2k
源码类别:

SilverLight

开发平台:

Java

  1. <%@ page contentType="text/html;charset=UTF-8" language="java"%>
  2. <%@ page import="cn.com.blogonline.*"%>
  3. <%@ page import="java.util.*"%>
  4. <%
  5. Blog loginBlog = (Blog)session.getAttribute(Constants.LOGIN_USER_KEY);
  6. Blog visitBlog = (Blog)session.getAttribute(Constants.VISIT_BLOG_KEY);
  7. if(loginBlog == null){
  8. response.sendRedirect("main.jsp");
  9. }
  10. else if((loginBlog.getId() != visitBlog.getId())){
  11. response.sendRedirect("main.jsp");
  12. }
  13. else{
  14. %>
  15. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  16. <html>
  17. <head>
  18. <title>发表新文章</title>
  19. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  20. <link rel="StyleSheet" type="text/css" href="images/mystyle.css">
  21. <script language="javascript" src="images/newArticle.js" type="text/javascript"></script>
  22. </head>
  23. <body>
  24. <table border="1" width="550" bordercolor="#FF9900">
  25. <tr>
  26. <td width="100%">
  27. <p align="left">
  28. <b><font color="#FF0000">发表新文章</font></b>
  29. </p>
  30. </td>
  31. </tr>
  32. <tr>
  33. <td width="100%">
  34. <table cellspacing="2" cellpadding="0" width="98%" align="center" border="0">
  35. <tbody>
  36. <form name="articleForm" action="">
  37. <tr>
  38. <td class="redfont" nowrap width="10%" height="30">
  39. 日志标题
  40. </td>
  41. <td>
  42. <input class="text" id="entrytitle" title="entrytitle" size="75" name="entrytitle">
  43. </td>
  44. </tr>
  45. <tr>
  46. <td class="redfont" height="30">
  47. 是否选择文章分类
  48. </td>
  49. <td width="90%">
  50. <input type="checkbox" name="sortOk" onclick="refreshList()">
  51. </td>
  52. </tr>
  53. <tr>
  54. </tr>
  55. <tr>
  56. <td class="redfont" height="30">
  57. 日志分类
  58. </td>
  59. <td width="90%">
  60. <select class="text" id="category" name="category"></select>
  61. &nbsp; <a></a>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="redfont" valign="top" height="30">
  66. 日志内容
  67. </td>
  68. <td>
  69. <textarea name="entrycontent" rows="10" cols="50"></textarea>
  70. </td>
  71. </tr>
  72. </form>
  73. </tbody>
  74. </table>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td width="100%" align="center">
  79. <input class="button-submit" id="save" type="submit" value="发布日志" name="save" onclick="saveRequest()">
  80. &nbsp;
  81. </td>
  82. </tr>
  83. </table>
  84. </body>
  85. </html>
  86. <%}%>