/wsj/vote_do.asp

https://github.com/hare1987/kaidun180 · ASP · 80 lines · 76 code · 4 blank · 0 comment · 2 complexity · 8b24a4995daed6c14230cc7dbcc334b1 MD5 · raw file

  1. <!-- #include file="Inc/Conn.asp" -->
  2. <%
  3. function getip() '»ñµÃ¿Í»§¶ËIP
  4. getip=Request.ServerVariables("REMOTE_ADDR")
  5. end function
  6. id=Request.QueryString("id")
  7. if id="" or not isnumeric(id) then
  8. Response.Write ("<script>alert('²ÎÊý·Ç·¨£¡');history.back();</script>")
  9. Response.End()
  10. end if
  11. SQL="Select * from Photo where id="&id
  12. Set rs=server.createobject("adodb.recordset")
  13. rs.open SQL,conn,1,3
  14. if rs.eof then
  15. Response.Write ("<script>alert('²ÎÊý·Ç·¨,Äú²»ÊǾ­¹ýͶƱ½øÈëµÄ±¾Ò³£¡');history.back();</script>")
  16. Response.End()
  17. else
  18. name=rs("name")
  19. end if
  20. rs.Close
  21. Set rs=Nothing
  22. %>
  23. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  24. "http://www.w3.org/TR/html4/loose.dtd">
  25. <html>
  26. <head>
  27. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  28. <title>ÆæÃîÍòÊ¥Ò¹</title>
  29. <style type="text/css">
  30. <!--
  31. body {
  32. margin-left: 0px;
  33. margin-top: 0px;
  34. margin-right: 0px;
  35. margin-bottom: 0px;
  36. }
  37. body,td,th {
  38. font-size: 12px;
  39. }
  40. .STYLE40 {color: #FF0000}
  41. .style41 {color: #FFFFFF}
  42. -->
  43. </style></head>
  44. <body>
  45. <div align="center">
  46. <table width="1000" border="0" cellpadding="0" cellspacing="0">
  47. <tr>
  48. <td><img src="images/top1.jpg" width="1000" height="88" border="0" usemap="#Map2"></td>
  49. </tr>
  50. <tr>
  51. <td height="56" bgcolor="7f1084"><div align="center">
  52. <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  53. <tr>
  54. <td width="765" height="200" align="center" valign="middle">
  55. <%
  56. str = "ÄúÒÔip"&getip()&"µÄÃûÒå³É¹¦µØÎª"&name&"ͶÉÏÁËһƱ,¸ÐлÄúµÄ²ÎÓë"
  57. Response.Write ("<script>alert('"&str&"');</script><meta http-equiv=refresh content=0;URL=rqbb.asp>")
  58. %>
  59. </td>
  60. </tr>
  61. </table>
  62. </div></td>
  63. </tr>
  64. <tr>
  65. <td><img src="images/bottom1.jpg" width="1000" height="440"></td>
  66. </tr>
  67. </table>
  68. </div>
  69. <map name="Map">
  70. <area shape="circle" coords="817,98,57" href="rqbb.asp">
  71. </map>
  72. <map name="Map2">
  73. <area shape="rect" coords="797,4,946,86" href="sc.asp">
  74. </map>
  75. </body>
  76. </html>