savemovie.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:3k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <!--#include file="inc/articlechar.inc"-->
  2. <!--#include file="articleconn.asp"-->
  3. <!--#include file="security.asp"-->
  4. <html><!--#include file="../checkpost.asp"-->
  5. <%
  6. if request.form("title3")="" then 
  7. response.write "错误提示:请输入电影名称!"
  8. response.end
  9. end if
  10. if request.form("typeid")="影片类型" then 
  11. response.write "错误提示:请输入电影类型!"
  12. response.end
  13. end if
  14. if request.form("where")="出产地区" then 
  15. response.write "错误提示:请输入电影出产地区!"
  16. response.end
  17. end if
  18. if request.form("count")="需花点数" then 
  19. response.write "错误提示:请输入电影需花点数!"
  20. response.end
  21. end if
  22. if request.form("movietype")="" then 
  23. response.write "错误提示:请输入电影类型!"
  24. response.end
  25. end if
  26. if request.form("softlevel")="选择推荐度" then 
  27. response.write "错误提示:请输入电影推荐度!"
  28. response.end
  29. end if
  30. if request.form("name")="" then 
  31. response.write "错误提示:请输入电影领衔主演!"
  32. response.end
  33. end if
  34. if request.form("content3")="" then 
  35. response.write "错误提示:请输入电影简介!"
  36. response.end
  37. end if
  38. %>
  39. <%
  40. title=request.form("title3")
  41. no=request.form("no")
  42. set rs=server.createobject("adodb.recordset")
  43. sql="select * from learning where (articleid is null)" 
  44. rs.open sql,conn,1,3
  45. rs.addnew
  46. rs("serverip")=request.form("serverip")
  47. rs("typeid")=Request.Form("typeid")
  48. rs("softlevel")=Request.Form("softlevel")
  49. rs("where")=Request.Form("where")
  50. rs("title")=title
  51. rs("content")=replace(request.form("content3"),vbcrlf,"<br>")
  52. rs("onlinelook")=request.form("onlinelookb")
  53. rs("down")=request.form("downv")
  54. rs("canlook")=request.form("canlook")
  55. rs("howlong")=request.form("howlong4")
  56. rs("url")=request.form("url")
  57. rs("best")=request.form("best")
  58. rs("firstbest")=request.form("firstbest")
  59. rs("domurl")=request.form("domurl3")
  60. rs("name")=request.form("name")
  61. rs("count")=request.form("count")
  62. rs("movietype")=request.form("movietype")
  63. rs.update
  64. articleid=rs("articleid")
  65. rs.close
  66. set rs=server.createobject("adodb.recordset")
  67. sql1="select * from movieurl where (id is null)"
  68. rs.open sql1,conn,1,3
  69. for i=1 to no
  70. rs.addnew
  71. url=trim(request.form("urla"&i&""))
  72. rs("nameid")=articleid
  73. rs("url")=url
  74. rs.update
  75. next
  76. rs.close
  77. set rs=nothing
  78. conn.close
  79. set conn=nothing
  80. %>
  81. <head>
  82. <meta http-equiv="Content-Language" content="zh-cn">
  83. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  84. <link rel="stylesheet" href="inc/Admin_STYLE.CSS" type="text/css">
  85. <title></title>
  86. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
  87. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
  88. <div align="center">
  89.   <!--#include file="top1.asp"-->
  90.   <table width="100%" border="0" cellspacing="0" cellpadding="2">
  91.     <tr>
  92.       <td>&nbsp;</td>
  93.     </tr>
  94.   </table>
  95.   <table border="0" cellspacing="0" width="57%" class="border" bordercolorlight="#006CD9" bgcolor="#53A9FF">
  96.     <tr class=title>
  97.       <td width="100%" height="24"> 
  98.         <p align="center"><b><font color="#FF0000">添加影片成功</font></b></td>
  99.     </tr>
  100.     <tr>
  101.       <td width="100%" class="tdbg"">
  102.       <p align="center"><font size="2"><br>
  103.           </font>影片标题为: 
  104.           <%response.write title%>
  105.         </p>
  106.         <p align="center">是否继续添加?<br>
  107.           <br>
  108.           <a href="wantsever.asp">是</a>&nbsp;&nbsp; <a href="zcmain.asp">否</a><br>
  109.           <font size="2"><br>
  110.           </font></td>
  111.     </tr>
  112.   </table>
  113. </div>
  114. </body>
  115. </html>