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

家庭/个人应用

开发平台:

ASP/ASPX

  1. <!--#include file="articleconn.asp"-->
  2. <!--#include file="security.asp"-->
  3. <!--#include file="../checkpost.asp"-->
  4. <!--#include file="inc/function.asp"-->
  5. <%if session("flag")>1 then
  6.     response.write "<script>alert('您的操作权限不够!');history.back();</script>"
  7.     response.end
  8. end if
  9. %>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Language" content="zh-cn">
  13. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  14. <meta name="ProgId" content="FrontPage.Editor.Document">
  15. <link rel="stylesheet" href="inc/Admin_STYLE.CSS" type="text/css">
  16. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
  17. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
  18. <br>
  19. <table class="border" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  20.   <tr class="title"> 
  21.     <td align="center" height="22" valign="middle"><strong><font color="#000000">首页MTV播放器地址修改 
  22.       </font></strong></td>
  23.   </tr>
  24.   <tr class="tdbg"> 
  25.     <td align="center" height="150" valign="middle"><%set rs=server.createobject("adodb.recordset")
  26. if request("do")=1 then
  27. sql="select * from info"
  28. rs.open sql,conn,1,3
  29. rs("music")=request.form("url1")
  30. rs("music2")=request.form("url2")
  31. rs("music3")=request.form("url3")
  32. rs("music4")=request.form("url4")
  33. rs("music5")=request.form("url5")
  34. rs("format")=request.form("format")
  35. rs.update
  36. content=content&""&rs("music")&""&VbCrLf&""
  37. content=content&""&rs("music2")&""&VbCrLf&" "
  38. content=content&""&rs("music3")&""&VbCrLf&" "
  39. content=content&""&rs("music4")&""&VbCrLf&" "
  40. Set fso = Server.CreateObject("Scripting.FileSystemObject")  '创建fso对象
  41. Set fout = fso.CreateTextFile(server.mappath("../zcsky_index_mtv.asx"))
  42. fout.Write content
  43. rs.close
  44. response.write "修改成功!"
  45. response.end
  46. else
  47. sql="select * from info"
  48. rs.open sql,conn,1,1
  49. %>
  50. <table align="center" cellpadding="0" cellspacing="1">
  51.         <%if rs.eof and rs.bof then%>
  52.         <tr> 
  53.           <td width="100%"> 暂时没有MTV地址</td>
  54.         </tr>
  55.         <%else%>
  56.         <tr> 
  57.           <td width="100%">当前地址 1 为:<u><b><%=rs("music")%> 媒体格式为 
  58.             <%if rs("format")="rm" then%>
  59.             <img src="images/real.gif"> 
  60.             <%else%>
  61.             <img src="images/media.gif"> 
  62.             <%end if%>
  63.             </b></u></td>
  64.         </tr>
  65.         <tr> 
  66.           <td width="100%">当前地址 2 为:<u><b><%=rs("music2")%> 媒体格式为 
  67.             <%if rs("format")="rm" then%>
  68.             <img src="images/real.gif"> 
  69.             <%else%>
  70.             <img src="images/media.gif"> 
  71.             <%end if%>
  72.             </b></u></td>
  73.         </tr>
  74.         <tr> 
  75.           <td width="100%">当前地址 3 为:<u><b><%=rs("music3")%> 媒体格式为 
  76.             <%if rs("format")="rm" then%>
  77.             <img src="images/real.gif"> 
  78.             <%else%>
  79.             <img src="images/media.gif"> 
  80.             <%end if%>
  81.             </b></u></td>
  82.         </tr>
  83.         <tr> 
  84.           <td width="100%">当前地址 4 为:<u><b><%=rs("music4")%> 媒体格式为 
  85.             <%if rs("format")="rm" then%>
  86.             <img src="images/real.gif"> 
  87.             <%else%>
  88.             <img src="images/media.gif"> 
  89.             <%end if%>
  90.             </b></u></td>
  91.         </tr>
  92.         <%end if
  93. %>
  94.         <tr> 
  95.           <td width="100%" height="199"> <form Name="FormPst" Method="Post" Action="index_vod.asp?do=1">
  96.               <table width="100%" border="0" cellspacing="0" cellpadding="0">
  97.                 <tr> 
  98.                   <td>&nbsp;</td>
  99.                 </tr>
  100.               </table>
  101.               <table width="100%" border="0" cellspacing="0" cellpadding="0">
  102.                 <tr> 
  103.                   <td>新的地址1: 
  104.                     <input type="text" name="url1" Size="60" value="<%=rs("music")%>"> 
  105.                     <br>
  106.                     新的地址2: 
  107.                     <input type="text" name="url2" Size="60" value="<%=rs("music2")%>"> 
  108.                     <br>
  109.                     新的地址3: 
  110.                     <input type="text" name="url3" Size="60" value="<%=rs("music3")%>"> 
  111.                     <br>
  112.                     新的地址4: 
  113.                     <input type="text" name="url4" Size="60" value="<%=rs("music4")%>"> 
  114.                     <br>
  115.                     说明备注1: 
  116.                     <textarea name="url5" cols="50" rows="4"><%=rs("music5")%></textarea> 
  117.                   </td>
  118.                 </tr>
  119.               </table>
  120.               <p>请选择格式:                 
  121.                 <input name="format" type="radio" value="wm" checked>
  122.               <img src="images/media.gif"><font color="#FF0000">(注意:所有MTV的格式都必须一致)</font></p>
  123.               <p align="center"> 
  124.                 <input type="submit" Value="确定" name="submit4">
  125.                 <input name="reset" type="reset" Value="清除">
  126.                 <br>
  127.               </p>
  128.             </form></td>
  129.         </tr>
  130.       </table>
  131.       <%rs.close
  132. end if
  133. set rs=nothing
  134.    conn.close
  135.    set conn=nothing
  136. %>
  137.     </td>
  138.   </tr>
  139. </table>
  140. </body></html>