<!-- #include file="../inc/conn.asp" -->
<% 
set rs=server.createobject("adodb.recordset")
sql="select web_name,web_url from Web_Setting"
rs.open(sql),conn,1,1
web_name=rs("web_name")
web_url=rs("web_url")
rs.close
set rs=nothing
%>
<!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>网站地图 -<%=web_name%></title>
<style type="text/css">
body {
	font-family: Verdana;
	FONT-SIZE: 12px;
	MARGIN: 0;
	color: #000000;
	background: #ffffff;
	background-image: url(../img/page-bg-1.jpg);
	background-attachment:fixed;
	background-position:5% 0%;
}
img {border:0;}
li {margin-top: 8px;}
.page {padding: 4px; border-top: 1px #EEEEEE solid}
.author {background-color:#EEEEFF; padding: 6px; border-top: 1px #ddddee solid}
#nav, #content, #footer {
	padding: 8px;
	border: 1px solid #EEEEEE;
	clear: both;
	width: 80%;
	margin-top: 10px;
	background-color: #FFF;
	margin-right: auto;
	margin-bottom: auto;
	margin-left: auto;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
</style>
</head>
<body vlink="#333333" link="#333333">
<h2 style="text-align: center; margin-top: 20px"> <%=web_name%> 网站地图</h2>
<center></center>
<div id="nav"><a href="<%=web_url%>"><strong><%=web_name%></strong></a>  &raquo; 网站地图</div>
<div id="content">
<h3>最新文章</h3>
<ul>
<%
set rs=server.createobject("adodb.recordset")
sql="select top 500 w_id,w_title from web_Article where view_yes=1 order by w_id desc"
rs.open(sql),conn,1,1
do while not rs.eof
w_id=rs("w_id")
w_title=rs("w_title")
%>
<li><a href="<%=web_url%>/Article/?<%=w_id%>.html" target="_blank"><%=w_title%></a></li>
<%
rs.MoveNext
loop
%>
</ul>
</div>

<div id="content">
<h3>最新相片</h3>
<ul>
<%
set rs=server.createobject("adodb.recordset")
sql="select top 100 im_id,im_name from web_images where view_yes=1 order by im_id desc"
rs.open(sql),conn,1,1
do while not rs.eof
im_id=rs("im_id")
im_name=rs("im_name")
%>
<li><a href="<%=web_url%>/Picture/?<%=im_id%>.html"  target="_blank"><%=im_name%></a></li>
<%
rs.MoveNext
loop
%>
</ul>
</div>

<div id="content">
<li class="categories">文章分类<ul>
<% 
set rs=server.createobject("adodb.recordset")
sql="select n_id,n_name,n_pattern,n_open from Web_2Navigation where n_Display=1 order by n_Sequence asc"
rs.open(sql),conn,1,1
do while not rs.eof
l_id=rs("n_id")
l_name=rs("n_name")
l_pattern=rs("n_pattern")
l_open=rs("n_open")

if rs("n_pattern")=1 then
n_pattern=""&web_url&"/Alone/"&l_id&".html"
elseif rs("n_pattern")=2 then
n_pattern=""&web_url&"/Lists/"&l_id&"-1.html"
elseif rs("n_pattern")=3 then
n_pattern=""&web_url&"/Album/?"&l_id&"+.html"
elseif rs("n_pattern")=4 then
n_pattern=""&web_url&"/FeedBack/"&l_id&"+.html"
end if
%> 
  <li class="cat-item cat-item-328"><a href="<%=n_pattern%>" target="_blank"><%=l_name%></a></li>
                    
<%
rs.movenext
loop
rs.close
set rs=nothing
%>	            
</ul></li>

<li class="categories">相册分类<ul>
<% 
set rs=server.createobject("adodb.recordset")
sql="select al_id,al_name from web_Album where view_yes=1 order by al_id asc"
rs.open(sql),conn,1,1
do while not rs.eof
al_id=rs("al_id")
al_name=rs("al_name")
%> 
  <li class="cat-item cat-item-328"><a href="<%=web_url%>/Album/?<%=al_id%>-1.html" target="_blank"><%=al_name%></a></li>
                    
<%
rs.movenext
loop
rs.close
set rs=nothing
%>	            
</ul></li>

<li class="pagenav">导航<ul>
<li class="page_item page-item-503"><a href="<%=web_url%>" target="_blank">首页</a></li>    
<% 
set rs=server.createobject("adodb.recordset")
sql="select n_id,n_name,n_pattern,n_Sequence from Web_Navigation order by n_Sequence"
rs.open(sql),conn,1,1
do while not rs.eof
n_id=rs("n_id")
n_name=rs("n_name")

if rs("n_pattern")=1 then
n_pattern=""&web_url&"/Single/"&n_id&".html"
elseif rs("n_pattern")=2 then
n_pattern=""&web_url&"/List/?"
elseif rs("n_pattern")=3 then
n_pattern=""&web_url&"/Album/?"
elseif rs("n_pattern")=4 then
n_pattern=""&web_url&"/FeedBack/"
elseif rs("n_pattern")=5 then
n_pattern=""&web_url&"/About/"
elseif rs("n_pattern")=6 then
n_pattern=""&web_url&"/Links/"
elseif rs("n_pattern")=7 then
n_pattern=""&web_url&"/Shuo/"

end if
%>
            <li class="page_item page-item-503"><a href="<%=n_pattern%>" target="_blank" ><%=n_name%></a></li>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>	


</ul>
</li>
</div>
<div id="footer">查看博客首页: <strong><a href="<%=web_url%>" target="_blank"><%=web_name%></a></strong></div><br />
<center>
<div style="text-algin: center; font-size: 11px"><strong><a href="<%=web_url%>/Map/Sitemap.html" target="_blank">Baidu-SiteMap</a></strong> &nbsp;更新 &nbsp;
<SCRIPT language=javascript>
<!--hide script from old browsers
document.write("最后更新时间: " + document.lastModified + "")
// end hiding -->
</SCRIPT><br /><br /></div>
</center>
<center>
<div style="text-algin: center; font-size: 11px">Powered by <strong><a href="<%=web_url%>" target="_blank">Baidu SiteMap <%=web_name%></a></strong> &nbsp;
&copy; 2011-2013 <a href="<%=web_url%>" target="_blank" title="<%=web_name%>"><%=web_name%></a><br /><br /></div>
</center>
</body>
</html>
<!-- #include file="../inc/close.asp" -->