📄 tvdizhi.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="kz.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>电视台网络地址管理</title>
<LINK href="../style.css" type=text/css rel=stylesheet>
<%
tvname=Request("id")
gs=Trim(Request("gs"))
%></head>
<body>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select * from tvname where id="&tvname,conn,1,1
%>
<div align="center">
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><font color="#FF0000"><%= rs("name") %>网络地址管理</font></div></td>
</tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
</div>
<%
rs.Close
set rs=nothing
%>
<table width="700" border="0" cellspacing="0" cellpadding="0" align=center>
<tr>
<td align=center>
<form name="form1" method="post" action="tvdizhisave.asp?tvname=<%= tvname %>&gs=<%= gs %>&action=add">
<div align="left">地址
<input name="dizhi" type="text" id="dizhi" size="80" maxlength="200">
<input type="submit" name="Submit" value="添加">
</div>
</form>
</td>
</tr>
</table>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
</tr>
</table>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select * from tvdizhi where tvname="&tvname,conn,1,3
%>
<table width=700 border=1 cellpadding=0 cellspacing=0 align=center>
<tr>
<td width="49" height="20">
<div align="center">排序</div></td>
<td height="20" align=center >
<div align="center">地址列表</div></td>
<td width="121" height="20" align=center>
<div align="center">操作</div></td>
</tr>
<%
if rs.recordcount<>0 then
do while not rs.eof %>
<tr>
<td height="25" > </td>
<td height="25" ><%= rs("tvdizhi") %></td>
<td width="121" height="25"><a href=# onClick="show(<%= rs("id") %>)">修改</a><a href="tvdizhisave.asp?action=del&tvname=<%= tvname %>&id=<%= rs("id")%>">|删除</a></td>
</tr>
<tr bgcolor="#00CCFF" id='xg<%=rs("id") %>' style="display:none">
<form action="tvdizhisave.asp?action=edit&id=<%=rs("id") %>&tvname=<% =tvname %>" method="post">
<td height="38" colspan="5" align="center" > 地址:
<input name="tvdizhi" type="text" value=<%= rs("tvdizhi") %> id="tvdiahi" size="70" maxlength="200">
<input type="submit" name="Submit2" value="提交"> </td>
</form>
</tr>
<% rs.movenext
loop
Else
Response.Write("<tr><td colspan=4>没有数据</td></tr>")
end if
rs.Close
set rs=nothing
%>
</table>
<SCRIPT language=javascript1.2>
function show(i){
whichEl = eval("xg" + i);
if (whichEl.style.display == "none")
{
eval("xg" + i + ".style.display=\"\";");
}
else
{
eval("xg" + i + ".style.display=\"none\";");
}
}
</SCRIPT>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -