⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add.asp

📁 SEO过的带数据库的NBA直播程序!解压到根目录更换banner即可!后台admin 密码zidane
💻 ASP
字号:
<!--#include file="conn.asp"-->
<%

showname=request.form("showname")
showlistname=request.form("showlistname")
showaddress1=request.form("showaddress1")
showaddress2=request.form("showaddress2")
showaddress3=request.form("showaddress3")
showaddress4=request.form("showaddress4")
showaddress5=request.form("showaddress5")
markk=request.form("markk")
showtype=request.form("showtype")
showitem=request.form("showitem")

if showname<>"" then
sql="select * from data"
set rs=server.createobject("adodb.recordset")
rs.open sql,connstr,3,2
rs.addnew

rs("yesno")=1
rs("mark")=markk
rs("name")=showname
rs("listname")=showlistname
rs("address1")=showaddress1
rs("address2")=showaddress2
rs("address3")=showaddress3
rs("address4")=showaddress4
rs("address5")=showaddress5
rs("type")=showtype
rs("item")=showitem

rs.update
response.redirect "ok.asp"
end if
%>
<%
if session("admin")="" then
response.redirect "../"
else%>
<html>
<head>
<style type="text/css">
<!-- 
td           { font-size: 12px; line-height: 17px }
body         { font-size: 12px; line-height: 17px }
p            { margin-top: 1; margin-bottom: 1 }
a:link       { text-decoration: none; color: black }
a:visited    { text-decoration: none; color: black }
a:active     { text-decoration: none }
a:hover      { text-decoration: underline; color: red }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>增加视频</title>
<SCRIPT LANGUAGE="JavaScript">
<!--//
function checkadd()
{   
    if (document.search.keyword.value.length<1)
	{
        alert("请输入查询关键字!");
        document.search.keyword.focus();
        return false;
    }
    if (document.search.keyword.value=="输入关键字")
	{
        alert("请输入查询关键字!");
        document.search.keyword.focus();
        return false;
    }
}
//-->
</SCRIPT>
</head>

<body leftmargin="0" topmargin="0">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="98%" height="30">
    <tr>
      <td background="../images/bak.gif" height="30" width="758" colspan="2"><a href="admin.asp">全部视频</a> <a href="admin01.asp">视频审核</a>&nbsp; <a href="adminerr.asp">网友报错</a>&nbsp; <a href="add.asp">添加电影</a>&nbsp; <a href="additem.asp">添加栏目</a>&nbsp; <a href="adminitem.asp">管理栏目</a>&nbsp; <a href="pass.asp">修改管理密码</a>&nbsp;<font color="#FF0000">&nbsp; </font><a href="quit.asp"><font color="#FF0000">退出管理</font></a> </td>
    </tr>
  </table>
  <TABLE align=center bgColor=#cccccc border=0 borderColorDark=#ffffff  
cellPadding=4 cellSpacing=0 width=760 height="271"> 
  <FORM action="" method=post> 
  <TBODY>  
  <TR align=middle> 
    <TD align=middle bgColor=#ffffff width="100%" height="252"> 
      <TABLE bgColor=#eeeeee border=0 cellPadding=3 cellSpacing=1  
        width="750"><TBODY> 
        <TR bgColor=#ffffff> 
          <TD align=right height=30 width="104"><B>显示名称:</B></TD> 
          <TD height=30 width="628">
		  
		   <INPUT class=smallinput maxLength=50  
            name=showname size=20></TD>
        </TR> 
        <TR bgColor=#ffffff>
          <TD align=right height=30><B>显示关键字:</B></TD>
          <TD height=30><INPUT class=smallinput maxLength=50  
            name=showlistname size=20></TD>
        </TR>
        <TR bgColor=#ffffff> 
          <TD align=right height=16 width="104"><B>第一集:</B></TD> 
          <TD height=16 width="628"><INPUT class=smallinput maxLength=100  
            name=showaddress1 size=40> 一般为:http:// rstp:// mms:// </TD></TR>                     
        <tr>    
          <TD align=right height=6 width="104" bgcolor="#FFFFFF"><B>第二集:</B></TD>    
          <TD height=6 width="628" bgcolor="#FFFFFF"><INPUT class=smallinput maxLength=100     
            name=showaddress2 size=40>  一般为:http:// rstp:// mms:// </TD>    
        </tr>    
        <tr>    
          <TD align=right height=4 width="104" bgcolor="#FFFFFF"><B>第三集:</B></TD>    
          <TD height=4 width="628" bgcolor="#FFFFFF"><INPUT class=smallinput maxLength=100     
            name=showaddress3 size=40>  一般为:http:// rstp:// mms:// </TD>    
        </tr>    
        <tr>    
          <TD align=right height=9 width="104" bgcolor="#FFFFFF"><B>第四集:</B></TD>    
          <TD height=9 width="628" bgcolor="#FFFFFF"><INPUT class=smallinput maxLength=100     
            name=showaddress4 size=40>  一般为:http:// rstp:// mms:// </TD>    
        </tr>    
        <tr>    
          <TD align=right height=2 width="104" bgcolor="#FFFFFF"><B>第五集:</B></TD>    
          <TD height=2 width="628" bgcolor="#FFFFFF"><INPUT class=smallinput maxLength=100     
            name=showaddress5 size=40>  一般为:http:// rstp:// mms:// </TD>    
        </tr>    
        <TR bgColor=#ffffff>                     
          <TD align=right height=30 width="104"><B>影片格式:</B></TD>                     
          <TD height=30 width="628"><INPUT CHECKED name=showtype type=radio                      
            value=realplay> Realplay <INPUT name=showtype type=radio value=mediaplay>            
           Mediaplay 
			 <INPUT name=showtype type=radio value=web> 
			网页</TD>
        </TR>                     
        <TR bgColor=#ffffff>
          <TD align=right height=20 vAlign=top><strong>推荐度:</strong></TD>
          <TD><select size="1" name="markk">
                      
            <option value="★">★</option>
            <option value="★★">★★</option>
            <option value="★★★"selected>★★★</option>
            <option value="★★★★">★★★★</option>
            <option value="★★★★★">★★★★★</option>
          </select></TD>
        </TR>
        <TR bgColor=#ffffff>                     
          <TD align=right height=20 vAlign=top width="104"><B>视频类型:</B></TD>                   
          <TD width="628"><select size="1" name="showitem">      
              <%                                                
			set rs_class = server.createobject("adodb.recordset")                                                
			sql = "select * from item"                                                
			rs_class.open sql,conn,1,1                                                
			do while not rs_class.eof                                                
			%>                                                
          <option value="<%=rs_class("name")%>"><%=rs_class("name")%></option>                                                
		  <%        
		  rs_class.movenext                                                
		  loop         
		  rs_class.close                                                                                       
		  %>          
            </select></TD></TR>                  
        <TR align=middle bgColor=#ffffff>                  
          <TD height=20 vAlign=top width="104"> </TD>                  
  <TD height=20 vAlign=top width="628">               
            <p align="left"></TD></TR>                 
  <center>              
        <TR bgColor=#ffffff>                 
          <TD align=right height=20 vAlign=top width="104"> </TD>                 
        <TD width="628"><INPUT name=submit type=submit value=" 添 加 "> <INPUT name=again type=reset value=" 重 填 ">      </TD></TR></TABLE></TD></TR></FORM></TBODY></TABLE>             
</body>                                                 
  <%end if%>                                               
</html>                                                 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -