📄 add.asp
字号:
<!--#include file="conn.asp"-->
<%
showname=request.form("showname")
showaddress1=request.form("showaddress1")
showaddress2=request.form("showaddress2")
showaddress3=request.form("showaddress3")
showaddress4=request.form("showaddress4")
showaddress5=request.form("showaddress5")
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("name")=showname
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
%>
<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 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="102"><B>显示名称:</B></TD>
<TD height=30 width="626"><INPUT class=smallinput maxLength=50
name=showname size=20> </TD></TR>
<TR bgColor=#ffffff>
<TD align=right height=16 width="102"><B>第一集:</B></TD>
<TD height=16 width="626"><INPUT class=smallinput maxLength=100
name=showaddress1 size=40> 一般为:http:// rstp:// mms:// </TD></TR>
<tr>
<TD align=right height=6 width="102" bgcolor="#FFFFFF"><B>第二集:</B></TD>
<TD height=6 width="626" bgcolor="#FFFFFF"><INPUT class=smallinput maxLength=100
name=showaddress2 size=40> 一般为:http:// rstp:// mms:// </TD>
</tr>
<tr>
<TD align=right height=4 width="102" bgcolor="#FFFFFF"><B>第三集:</B></TD>
<TD height=4 width="626" bgcolor="#FFFFFF"><INPUT class=smallinput maxLength=100
name=showaddress3 size=40> 一般为:http:// rstp:// mms:// </TD>
</tr>
<tr>
<TD align=right height=9 width="102" bgcolor="#FFFFFF"><B>第四集:</B></TD>
<TD height=9 width="626" bgcolor="#FFFFFF"><INPUT class=smallinput maxLength=100
name=showaddress4 size=40> 一般为:http:// rstp:// mms:// </TD>
</tr>
<tr>
<TD align=right height=2 width="102" bgcolor="#FFFFFF"><B>第五集:</B></TD>
<TD height=2 width="626" 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="102"><B>影片格式:</B></TD>
<TD height=30 width="626"><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 width="102"><B>视频类型:</B></TD>
<TD width="626"><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="102"> </TD>
<TD width="626"><INPUT name=submit type=submit value=" 添 加 "> <INPUT name=again type=reset value=" 重 填 ">
</TD></TR></TBODY></TABLE></TD></TR></FORM></TBODY></TABLE>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -