📄 add.asp
字号:
<!--#include file="../Session.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/site.css" rel="stylesheet" type="text/css">
</head>
<body>
<%
if request("Act")="Add" then
if request("IfFlash")="" then:IfFlash=0:else:IfFlash=request("IfFlash")
set rs=server.createobject("adodb.recordset")
sql = "select * from FirstPic"
rs.Open sql,conn,1,3
rs.addnew
rs("Flash")=request("Flash")
rs("IfFlash")=IfFlash
rs("Pic1")=request("Pic1")
rs("Pic2")=request("Pic2")
rs("Pic3")=request("Pic3")
rs("Pic4")=request("Pic4")
rs("Link1")=request("Link1")
rs("Link2")=request("Link2")
rs("Link3")=request("Link3")
rs("Link4")=request("Link4")
rs("IfBr1")=request("IfBr1")
rs("IfBr2")=request("IfBr2")
rs("IfBr3")=request("IfBr3")
rs("BigId")=request("BigId")
rs("Piccount")=request("Piccount")
rs("Textcount")=request("Textcount")
rs("Text1")=request("Text1")
rs("TLink1")=request("TLink1")
rs("Text2")=request("Text2")
rs("TLink2")=request("TLink2")
rs("Text3")=request("Text3")
rs("TLink3")=request("TLink3")
rs.update
rs.close
Response.redirect"Default.asp?page="&request("page")
end if
%>
<form action="?Act=Add" method="POST" name="form" id="form">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td height="50" colspan="2" align="center" valign="middle" class="tdstyle"><strong><font color="#000000" size="3">添加组图</font></strong></td>
</tr>
<tr valign="middle">
<td colspan="2" class="tdstyle">位置:
<select name="BigId" class="input1" id="BigId">
<option value="0">首页</option>
<%Set rs = Server.CreateObject("ADODB.Recordset")
sql = "select * from BigClass order by BigId"
rs.open sql,conn,0,1
do while not rs.eof%>
<option value="<%=rs("BigId")%>"><%=rs("BCName")%></option>
<%rs.movenext
loop
rs.close%>
</select>
| 启用FSASH: <input type="radio" name="IfFlash" value="1">
是
<input type="radio" name="IfFlash" value="0">
否(启用时图片及文字无效) | 图片的数量
<select name="Piccount" class="input1">
<option value="0">零个图片</option>
<option value="1">一个图片</option>
<option value="2">两个图片</option>
<option value="3">三个图片</option>
<option value="4">四个图片</option>
</select>
| 文字数量:
<select name="textcount" class="input1">
<option value="0">零个链接</option>
<option value="1">一个链接</option>
<option value="2">两个链接</option>
<option value="3">三个链接</option>
</select> </td>
</tr>
<tr valign="middle">
<td height="25" class="text">Flash:
<input name="Flash" type="Text" class="input1">
</td>
<td height="25" class="text"><iframe name="ad1" frameborder=0 width=100% height=25 scrolling=no src=Up0.asp></iframe></td>
</tr>
<tr valign="middle">
<td width="40%" class="tdstyle"> 图片1:
<input name="Pic1" type="text" class="input1"> <input type="checkbox" name="ifbr1" value="<br>">
换行 </td>
<td width="60%" class="tdstyle"> <iframe name="ad1" frameborder=0 width=100% height=25 scrolling=no src=Up1.asp></iframe>
</td>
</tr>
<tr valign="middle">
<td colspan="2" class="tdstyle">链接1:
<input name="link1" type="text" class="input1" size="65"> </td>
</tr>
<tr valign="middle">
<td class="tdstyle">图片2:
<input name="Pic2" type="text" class="input1"> <input type="checkbox" name="ifbr2" value="<br>">
换行</td>
<td class="tdstyle"><iframe name="ad2" frameborder=0 width=100% height=25 scrolling=no src=Up2.asp></iframe></td>
</tr>
<tr valign="middle">
<td colspan="2" class="tdstyle">链接2:
<input name="link2" type="text" class="input1" size="65"> </td>
</tr>
<tr valign="middle">
<td class="tdstyle">图片3:
<input name="Pic3" type="text" class="input1"> <input type="checkbox" name="ifbr3" value="<br>">
换行</td>
<td class="tdstyle"><iframe name="ad3" frameborder=0 width=100% height=25 scrolling=no src=Up3.asp></iframe>
</td>
</tr>
<tr valign="middle">
<td colspan="2" class="tdstyle">链接3:
<input name="link3" type="text" class="input1" size="65"> </td>
</tr>
<tr valign="middle">
<td class="tdstyle">图片4:
<input name="Pic4" type="text" class="input1"> </td>
<td class="tdstyle"><iframe name="ad4" frameborder=0 width=100% height=25 scrolling=no src=Up4.asp></iframe></td>
</tr>
<tr valign="middle">
<td colspan="2" class="tdstyle">链接4:
<input name="link4" type="text" class="input1" size="65"> </td>
</tr>
<tr valign="middle">
<td colspan="2" class="tdstyle">文字1:
<input name="text1" type="text" class="input1">
文字连接1:
<input name="tlink1" type="text" class="input1" size="50"> </td>
</tr>
<tr valign="middle">
<td colspan="2" class="tdstyle">文字2:
<input name="text2" type="text" class="input1">
文字连接2:
<input name="tlink2" type="text" class="input1" size="50"> </td>
</tr>
<tr valign="middle">
<td colspan="2" class="tdstyle">文字3:
<input name="text3" type="text" class="input1">
文字连接3:
<input name="tlink3" type="text" class="input1" size="50"> </td>
</tr>
<tr align="center" valign="middle">
<td height="40" colspan="2" class="tdstyle"> <input name="Submit" type="submit" class="button" value="添加">
<input name="Submit2" type="reset" class="button" value="重写"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -