📄 auto_bar.asp
字号:
<!--#include file="../function/tablefunction.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>自由栏目</title>
<style type="text/css">
fieldset{
background-color:#fffbef;
}
legend{color:#105096;}
.input{border: 1px solid #82CCE8;}
.inputhover{border: 1px solid #0033CC;}
.inputdown{ background-color: #EEF8F9; border: 1px solid #0033CC;}
</style>
<script>
function butt(obj,state)
{
if(state==1){
obj.className="inputhover";}
if(state==2){
obj.className="input";}
if(state==3){
obj.className="inputdown";}
}
</script>
</head>
<body>
<!--#include file="../session.asp" -->
<fieldset>
<legend><strong>自由栏目</strong></legend>
<div align="left" style="width:auto;">
<table width="814" border="0" cellpadding="4" cellspacing="2" bordercolor="#9FDDEC" class="input">
<tr>
<td width="201" valign="middle"><div align="center"><strong>栏目名称</strong></div></td>
<td width="51"><div align="center"><strong>排序</strong></div></td>
<td width="254" align="left"><div align="center"><strong>显示状态</strong></div></td>
<td width="199" align="left"><div align="center"><strong>外部链接</strong></div></td>
</tr>
<form method="post" name="form1" action="action.asp"> <%
'----------显示记录模块
dim msmax,j
j=0
set msmax=new myclass
set rs=msmax.viewrecord("select * from nav order by index desc")
do while not rs.eof and not rs.bof
j=j+1
%>
<tr>
<td width="201" valign="middle"><div align="center">
<input type="hidden" value="<%=rs("autoid")%>" name="autoid<%=j%>" />
<input name="title<%=j%>" type="text" class="input" size="28" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)" value="<%=rs("title")%>"/>
</div></td>
<td>
<div align="center" class="input">
<select name="index<%=j%>">
<%
for i=1 to 10
%>
<option <%if i=rs("index") then response.write "selected" end if%>><%=i%></option>
<%
next%>
</select>
</div></td>
<td align="left"><div align="center" class="input">
<%if rs("view")="1" then%>
<input name="view<%=j%>" type="radio" value="1" checked="checked" />
显示
<input type="radio" name="view<%=j%>" value="0" />
不显示
<%end if
if rs("view")="0" then%>
<input name="view<%=j%>" type="radio" value="1" />
显示
<input type="radio" name="view<%=j%>" value="0" checked="checked" />
不显示
<%end if%>
</div></td>
<td width="199" align="left"><div align="center">
<input name="link<%=j%>" type="text" size="26" class="input" onmousedown="butt(this,3)" onmouseover="butt(this,1)" onmouseout="butt(this,2)" value="<%=rs("link")%>"/>
</div></td>
</tr>
<%
rs.movenext
loop%>
<input type="hidden" name="total" value="<%=j%>" />
<tr>
<td colspan="6"> <input name="Submit" type="submit" class="input" value="保存更改" /></td>
</tr>
</form>
</table>
</div>
</fieldset>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -