⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admnew.asp

📁 本系统是基于ASP的动态旅游网站开发
💻 ASP
字号:
<% Response.Buffer=True %>
<!--#include file="mdb.asp"-->
<%
'##检查cookies中的密码,错误侧自动返回
set rsadm=server.createobject("adodb.recordset")
sqladm="select * from admin"
rsadm.open sqladm,conn,1,1
if request.cookies("adminok")<>rsadm("pwd") or request.cookies("adminok")="" or request.cookies("user")<>rsadm("user") or request.cookies("user")="" then
  response.redirect "glydl.asp"
end if
'###检查结束
exec="select * from new order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open exec,conn,1,1 
%>

<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>旅游新闻</title>
<style fprolloverstyle>A:hover {color: #000000; font-weight: bold}</style>
</head>

<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" background="pic/line.gif" link="#000000" vlink="#000000" alink="#000000">

<table border="0" width="100%" id="table1" bordercolor="#6595D6" style="border-collapse: collapse" height="567">
	<tr>
		<td width="2%" background="newpic/a9.gif"> </td>
		<td colspan="2" background="newpic/a3.gif" height="24"> </td>
	</tr>
	<tr>
		<td width="2%" rowspan="5" background="newpic/a21.gif"> </td>
		<td width="180" height="68" bgcolor="#000000">
		<p align="center">
		<img border="0" src="newpic/9988.gif" width="100%" height="100%"></td>
		<td width="802" height="68" bgcolor="#000000" align="center">
		<img border="0" src="pic/no1.gif" width="100%" height="100%"></td>
	</tr>
	<tr>
		<td width="980" height="17" colspan="2" align="center">
		<table border="0" width="95%" id="table4" style="border-collapse: collapse">
			<tr>
				<td>
				<p align="center"><font color="#008000">
				<a style="text-decoration: none" href="index.asp">
				<img border="0" src="newpic/BD21299_.gif" width="15" height="11"></a></font><a style="text-decoration: none" href="index.asp">首页</a></a><a style="text-decoration: none" href="index.asp">
				</a></td>
				<td>
				<p align="center">&nbsp;<a style="text-decoration: none" href="new.asp"><img border="0" src="newpic/BD21299_.gif" width="15" height="11">旅游新闻</a>
				</td>
				<td>
				<p align="center">
				<a style="text-decoration: none" href="binguan.htm">
				<img border="0" src="newpic/BD21299_.gif" width="15" height="11">宾馆饭店</a>
				</td>
				<td>
				<p align="center">
				<a style="text-decoration: none" href="luyoujingdian.htm">
				<img border="0" src="newpic/BD21299_.gif" width="15" height="11">旅游景区</a></td>
				<td>
				<p align="center">
				<a style="text-decoration: none" href="teseluxian.htm">
				<img border="0" src="newpic/BD21299_.gif" width="15" height="11">特色路线</a></td>
				<td>
				<p align="center">
				<a style="text-decoration: none" href="lyzs.asp">
				<img border="0" src="newpic/BD21299_.gif" width="15" height="11">旅游常识</a></td>
				<td>
				<p align="center">
				<a style="text-decoration: none" href="liuyan.asp">
				<img border="0" src="newpic/BD21299_.gif" width="15" height="11">在线留言</a></td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td width="980" height="18" colspan="2">
		<p align="center">
		<marquee scrollamount="5" style="color: #008000" height="100%" width="100%">欢迎您光临河源旅游网</marquee></td>
	</tr>
	<tr>
		<td width="980" height="390" colspan="2" valign="top">
		<div align="center">
		<table border="0" width="100%" id="table2" height="212">
			<tr>
				<td valign="top" width="21">
				<img border="0" src="newpic/news.gif" width="52" height="217"></td>
				<td valign="top" width="95%" align="center">
				
				<table border="0" width="100%" id="table3" bordercolor="#FF9900" bgcolor="#E3EAF8" style="border-style: solid; border-width: 1px">
					<tr><%do while not rs.eof%>
						<td width="518">
						<img border="0" src="newpic/new.GIF" width="15" height="15"><a href="admnews.asp?ID=<%=rs("ID")%>"><%=rs("biaoti")%></a><font size="1" color =#33CCCC><%="("%><%=rs("time")%><%=")"%></font></td>
						<td width="38">
						<a target="_blank" href="admnews.asp?ID=<%=rs("ID")%>">查看</a></td>
						<td width="48">
						<p align="center">
						<a href="xiugainews.asp?ID=<%=rs("ID")%>">修改</a></td>
						<td width="47" align="center">
						<a href="delnews.asp?ID=<%=rs("ID")%>">删除</a></td>
    				</tr>
                  <% c=c+1
                    rs.movenext
                    if c>=10 then exit do
                    loop
                    conn.close
                    set cnn=nothing
                   %>

				</table>
				</td>
			</tr>
		</table>
		</div>
		</td>
	</tr>
	<tr>
		<td width="980" height="17" colspan="2" background="newpic/a2.gif">
		<p align="center"><font size="2">欢迎您的光临!</font></td>
	</tr>
	<tr>
		<td width="100%" background="newpic/a5.gif" colspan="3">
		<p align="center"><font size="2">曾庆添版权所有<br>
		建议使用IE4.0以上版本进行浏览,最佳显示模式为800×600</font></td>
	</tr>
</table>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -