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