📄 qmadmin_station_list.asp
字号:
<!-- #include file="../inc/config.asp" -->
<!-- #include file="Login_Check.asp" -->
<html>
<LINK href="../css/admin.css" type=text/css rel=stylesheet>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>公交站点列表</title>
</head>
<body>
<p> </p>
<div style="height:26px; padding-left:17px; font-size:14px; color:#314D98;">线路搜索:<input type="text" name="qmroute_name"> <input type="button" value="搜索" class="class6" onClick="javascript:location.href='qmadmin_Search_List.asp?qmroute_name='+qmroute_name.value"></div>
<table cellspacing="0" width="96%" align="center">
<tr>
<td width="15%" id="td2">ID</td>
<td width="25%" id="td1">公交站点</td>
<td width="25%" id="td1">经过的公交车</td>
<td width="20%" id="td1">添加/修改时间</td>
<td width="15%" id="td3">操作</td>
</tr>
<%
sqlstr="select * from [Station] order by qmstation_id desc"
rs.open sqlstr,conn,1,3
if not rs.eof then
rs.pagesize=12
page_num=station_count/12
page_now=1
if trim(request.QueryString("page"))<>"" then
page_now=cint(trim(request.QueryString("page")))
end if
if page_now>rs.pagecount or page_now<0 then
page_now=1
end if
rs.absolutepage=page_now
i=1
while (not rs.eof) and i<13
%>
<tr>
<td id="td5"><%=rs("qmstation_id")%></td>
<td id="td4"><%=rs("qmstation_name")%></td>
<td id="td8">
<div style="width:280px; text-align:left; padding-left:6px; overflow:hidden; text-overflow:ellipsis">
<nobr><%=rs("qmstation_bus")%></nobr></div>
</td>
<td id="td4"><%=rs("qmstation_addupdate")%></td>
<td id="td6"><a href="#" onClick="window.open('qmadmin_Station_info_List.asp?station_id=<%=rs("qmstation_id")%>','','width=450,height=330');">查看详情</a></td>
</tr>
<%
rs.movenext
i=i+1
wend
%>
<form name="form1" action="" method="post">
<tr valign="bottom">
<td colspan="7" id="td7"><br>
当前第<%=page_now%>页
<%if page_now=1 then%>首页
<%else%>
<a href="qmadmin_Station_List.asp?page=1">首页</a>
<%end if%>
<%if page_now>1 and rs.pagecount>1 then%>
<a href="qmadmin_Station_List.asp?page=<%=page_now-1%>">上一页</a>
<%else%>上一页
<%end if%>
<%if page_now<rs.pagecount then%>
<a href="qmadmin_Station_List.asp?page=<%=page_now+1%>">下一页</a>
<%else%>下一页
<%end if%>
<%if page_now<>rs.pagecount then%>
<a href="qmadmin_Station_List.asp?page=<%=rs.pagecount%>">尾页</a>
<%else%>尾页
<%end if%>
共<%=rs.pagecount%>页/<%=station_count%>条
转到:
<input name="Num" type="text" size="2"> 页
<input type="button" class="class6" value="GO" onClick="javascript:location.href='qmadmin_Station_List.asp?page='+Num.value">
<br><br>
</td>
</tr>
</form>
<%else%>
<tr>
<td colspan="9" id="td7">
暂无公交站点信息!
</td>
</tr>
<%
end if
rs.close
%>
</table>
<p></p>
<p></p></body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -