honor_add.asp
Upload User: ahxunteng
Upload Date: 2022-05-16
Package Size: 1606k
Code Size: 3k
Development Platform:

VBScript

  1. <!--#include file="bsconfig.asp"-->
  2. <%if Request.QueryString("no")="eshop" then%>
  3. <%
  4. title=server.htmlencode(Trim(Request("title")))
  5. Entitle=server.htmlencode(Trim(Request("Entitle")))
  6. img=server.htmlencode(Trim(Request("img")))
  7. %>
  8. <%
  9. If title="" Then
  10. response.write "SORRY <br>"
  11. response.write "请输入更新内容的标题!!<a href=""javascript:history.go(-1)"">返回重输</a>"
  12. response.end
  13. end if
  14. If img="" Then
  15. response.write "SORRY <br>"
  16. response.write "内容不能为空!!<a href=""javascript:history.go(-1)"">返回重输</a>"
  17. response.end
  18. end if
  19. Set rs = Server.CreateObject("ADODB.Recordset")
  20. sql="select * from Honor "
  21. rs.open sql,conn,1,3
  22. rs.addnew
  23. rs("title")=title
  24. rs("Entitle")=Entitle
  25. rs("img")=img
  26. rs.update
  27. rs.close
  28. response.redirect "honor.asp"
  29. end if
  30. %>
  31. <!-- #include file="Inc/Head.asp" -->
  32. <BR>
  33. <table cellpadding="2" cellspacing="1" border="0" width="560" align="center" class="a2">
  34. <tr>
  35. <td class="a1" height="25" align="center"><strong>添加荣誉</strong></td>
  36. </tr>
  37. <tr class="a4">
  38. <td align="center">
  39.       <br>
  40.       <table width="550" border="0" cellspacing="0" cellpadding="0">
  41.         <tr> 
  42.           <form method="post" action="honor_add.asp?no=eshop">
  43. <td><div align="center"> 
  44. <table width="100%" border="0" cellspacing="2" cellpadding="3">
  45. <tr> 
  46. <td width="18%" height="25" bgcolor="#C0C0C0"> <div align="right">荣誉名称</div></td>
  47. <td width="62%" bgcolor="#C0C0C0"><input type="text" name="title" class="inputtext" maxlength="30" size="25"></td>
  48. </tr>
  49. <tr> 
  50. <td width="18%" height="25" bgcolor="#C0C0C0"> <div align="right">English名称</div></td>
  51. <td width="62%" bgcolor="#C0C0C0"><input type="text" name="Entitle" class="inputtext" maxlength="30" size="25"></td>
  52. </tr>
  53. <tr> 
  54. <td height="22" bgcolor="#E3E3E3"> <div align="right">荣誉证书</div></td>
  55. <td bgcolor="#E3E3E3"><input name="img" type="text" class="inputtext" id="img" size="30">
  56. <font color="#FF0000"> * 图片地址</font></td>
  57. </tr>
  58. <tr bgcolor="#C0C0C0"> 
  59. <td height="25" colspan="2"> 
  60. <div align="center"> 
  61. <input name="submit" type="submit" value="确定">
  62. &nbsp; 
  63. <input name="reset" type="reset" value="取消">
  64. </div></td>
  65. </tr>
  66. <tr> 
  67. <td colspan="2">图片上传</td>
  68. </tr>
  69. <tr> 
  70. <td colspan="2"><div align="center"> 
  71. <iframe name="ad" frameborder=0 width=100% height=48 scrolling=no src='../WebEdit/Upload_File.asp'></iframe>
  72. </div></td>
  73. </tr>
  74. </table>
  75. </div></td>
  76.           </form>
  77.         </tr>
  78.       </table>
  79.       <br>
  80. </td>
  81. </tr>
  82. </table>
  83. <BR>
  84. <%htmlend%>