friendlinkEdit.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:3k
源码类别:

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="java.sql.* "%>
  3. <jsp:useBean id="friendlinkBean" class="MyFly.Bean.friendlinkBean" scope="request"/>
  4. <%
  5.     String index=request.getParameter("index");
  6. if(friendlinkBean.getNew(Integer.parseInt(index)) == false)
  7. {
  8. out.println("<Script language=JavaScript>alert('编辑出错');javascript:history.back();</Script>");
  9. }
  10. %>
  11. <html>
  12. <STYLE type=text/css>
  13. BODY {
  14. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  15. }
  16. TABLE {
  17. BORDER-LEFT: 1 px; BORDER-TOP: 1 px
  18. }
  19. TD {
  20. FONT: 12px 宋体;
  21. border-left-style: none;
  22. }
  23. IMG {
  24. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  25. }
  26. A {
  27. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  28. }
  29. A:hover {
  30. COLOR: #428eff; TEXT-DECORATION: underline
  31. }
  32. .sec_menu {
  33. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  34. }
  35. .menu_title {
  36. }
  37. .menu_title SPAN {
  38. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  39. }
  40. .menu_title2 {
  41. }
  42. .menu_title2 SPAN {
  43. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  44. }
  45. .style1 {color: #FF0000}
  46. </STYLE>
  47. <head>
  48. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  49. <title>添加文章</title>
  50. </head>
  51. <body>
  52. <p>&nbsp;</p>
  53. <table width="585" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  54.   <form action="friendlinkUpdate.jsp?index=<%=friendlinkBean.getFriendID()%>" method="post" name="addarticle" onSubmit = "">
  55.     <tr align="center"> 
  56.       <td height="23" colspan="2"> 
  57.         <table width="100%" border="0" cellpadding="0" cellspacing="0">
  58.           <tr> 
  59.             <td width="79%" height="33" align="center"><span class="style1">友情链接修改</span></td>
  60.           </tr>
  61.         </table>
  62.       </td>
  63.     </tr>
  64.     <tr align="center"> 
  65.       <td width="16%" height="32">友情链接标题</td>
  66.   
  67.       <td width="84%" align="left">&nbsp; <input type="text" size="55" name="topic" value=<%=friendlinkBean.getTopic()%>></td>
  68.     </tr>
  69.     <tr align="center"> 
  70.       <td height="29">友情链接URL</td>
  71.       <td align="left">&nbsp; <input name="originURL" type="text" value="<%=friendlinkBean.getOriginURL()%>" size="55"> 
  72.       </td>
  73.     </tr>
  74.     <tr align="center"> 
  75.       <td height="50" colspan="2"><table width="100%" height="26" border="0" cellpadding="0" cellspacing="0">
  76.           <tr> 
  77.             <td width="16%" align="center">&nbsp;</td>
  78.             <td width="84%" align="center">&nbsp; <div align="left">
  79.   <input type="submit" value="更新">
  80. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <input type="reset" value="重置"> 
  81.             </div></td>
  82.           </tr>
  83.       </table></td>
  84.     </tr>
  85.   </form>
  86. </table>
  87. </body>
  88. </html>