<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="inc/function.asp"-->
<!--#include file="Inc/conn.asp"-->
<!--#include file="inc/Conn_User.asp"-->
<!--#include file="inc/ubbcode.asp"-->
<html>
<head>
<title>网站公告</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
BODY {
	scrollbar-face-color:#DDDDDD;
	scrollbar-highlight-color: #cccccc;
	scrollbar-shadow-color: #CCCCCC;
	scrollbar-3dlight-color: #F5F5F5;
	scrollbar-darkshadow-color: #F5F5F5;
	scrollbar-track-color: #F0F0F0;
	scrollbar-arrow-color: #FFFFFF;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
</style>
<link href="img0415/css.CSS" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.STYLE1 {	color: #FF6600;
	font-weight: bold;
}
.STYLE2 {	color: #993300;
	font-weight: bold;
}
-->
</style>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="5" bgcolor="f2f2f2"></td>
    <td width="1" bgcolor="cccccc"></td>
    <td width="888" align="center" bgcolor="#FFFFFF"><table width="870" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="4" rowspan="2" valign="top"><img src="img0415/top1.gif" width="4" height="6"></td>
        <td height="6" background="img0415/topbg.gif"><img src="img0415/topbg2.gif" width="8" height="6"></td>
        <td width="223" rowspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="23"><img src="img0415/top2.gif" width="23" height="25"></td>
            <td background="img0415/topbbg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr align="center"> 
                      <td><a href=# onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('<%=SiteUrl%>');">设为首页</a></td>
                      <td width="1"><img src="img0415/hline.gif" width="1" height="24"></td>
                      <td><a target=_top href=javascript:window.external.AddFavorite('<%=SiteUrl%>','<%=SiteName%>')>
加入收藏</a></td>
                      <td width="1"><img src="img0415/hline.gif" width="1" height="24"></td>
                      <td><a href=mailto:<%=WebmasterEmail%>>联系我们</a></td>
                    </tr>
                  </table></td>
            <td width="11"><img src="img0415/top3.gif" width="11" height="25"></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" height="60" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="130"><img src="img0415/logo.gif" width="115" height="31"></td>
            <td width="60"><strong><font color="#FF6600">注册~</font></strong><br>
              Register</td>
            <td valign="bottom"><table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="img0415/home1.gif" width="67" height="43" border="0"></td>
                <td><a href="zone.asp"><img src="img0415/zone.gif" width="80" height="43" border="0"></a></td>
                <td><a href="photo_index.asp"><img src="img0415/photo.gif" width="80" height="43" border="0"></a></td>
                <td><a href="blog.asp"><img src="img0415/blog.gif" width="80" height="43" border="0"></a></td>
                <td><a href="shop.asp"><img src="img0415/shop.gif" width="83" height="43" border="0"></a></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"><img src="img0415/space.gif"></td>
    <td width="5" bgcolor="f2f2f2"></td>
  </tr>
</table>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="5" bgcolor="f2f2f2"></td>
    <td width="1" bgcolor="cccccc"></td>
    <td width="888" align="center" bgcolor="#FFFFFF"><table width="870" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="7"><img src="img0415/menu1.gif" width="7" height="31"></td>
        <td align="left" background="img0415/menubg.gif"><strong><font color="#FFFFFF">
          <% call ShowUserLogin2() %>
        </font></strong></td>
        <td width="50" background="img0415/menubg.gif"><img src="img0415/faq.gif" width="42" height="15"></td>
        <td width="7"><img src="img0415/menu2.gif" width="7" height="31"></td>
      </tr>
    </table>
        <table width="870" height="28" border="0" cellpadding="7" cellspacing="0" class="line3">
          <tr>
            <td bgcolor="fafafa">&nbsp;用手机打电话``便宜到底``!!&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="img0415/fda.gif" width="17" height="9"> <font color="#FF6600">我爱人民币```我要节约人民币!!!</font></td>
          </tr>
      </table></td>
    <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"><img src="img0415/space.gif"></td>
    <td width="5" bgcolor="f2f2f2"></td>
  </tr>
</table>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="5" bgcolor="f2f2f2"></td>
    <td width="1" bgcolor="cccccc"></td>
    <td width="888" align="center" bgcolor="#FFFFFF"><table width="870" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="9"><img src="img0415/space.gif"></td>
          </tr>
        </table>
          <table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="1" height="1"><img src="img0415/space.gif" width="1" height="1"></td>
                    <td colspan="2" bgcolor="#CCCCCC"></td>
                    <td width="1"></td>
                  </tr>
                  <tr>
                    <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"></td>
                    <td width="330" height="26" bgcolor="f2f2f2">&nbsp;&nbsp;<span class="STYLE2"><font style='FONT-SIZE: 14px'>网站公告</font></span>&nbsp;<font color="#999999" style='FONT-SIZE: 10px'>Announce</font> </td>
                    <td align="right" bgcolor="f2f2f2">&nbsp;</td>
                    <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"></td>
                  </tr>
                </table>
                  <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
                    <tr>
                      <td bgcolor="#FFFFFF" ><%
		  id=request("id")
set rs=server.createobject("adodb.recordset")
rs.open "select * from [Announce] where id="&id&" order by id desc",conn,1,3 
rs("hits")=rs("hits")+1
rs.update
%>
                          <table width="96%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr>
                              <td height="35" align="center" valign="middle"><% if rs("TitleColor")<>"" then%>
                                  <font color=<%=rs("TitleColor")%> style='FONT-SIZE: 14px'><strong><%=rs("title")%></strong> </font>
                                  <%else%>
                                  <font style='FONT-SIZE: 14px'><strong><%=rs("title")%></strong></font>
                                  <%end if%>
                                  <%if FormatDateTime(rs("DateAndTime"),1)=FormatDateTime(now,1) then%>
                                &nbsp;<img src=user/ico_new.gif border="0">
                                <%else%>
                                <% end if%>
                              </td>
                            </tr>
                            <tr>
                              <td height="1" background="user/li_x_02.gif"></td>
                            </tr>
                            <tr>
                              <td align="center" valign="bottom"><table width="100%" height="25" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="f2f2f2">
                                  <tr>
                                    <td width="33%">&nbsp;&nbsp; <font color="#333333">作者:<%=rs("Author")%></font></td>
                                    <td width="33%" align="center"><font style='FONT-SIZE: 11px' color='#333333'>点击:<%=rs("hits")%></font> </td>
                                    <td width="33%" align="right"><font color='#333333' style='FONT-SIZE: 11px'><%=year(rs("DateAndTime"))%>.<%=month(rs("DateAndTime"))%>.<%=day(rs("DateAndTime"))%>&nbsp;&nbsp;</font></td>
                                  </tr>
                              </table></td>
                            </tr>
                          </table>
                        <table width="98%" align="center" cellpadding="10" cellspacing="0">
                            <tr>
                              <Td><br>
                                  <p><%=ubbcode(dvHTMLEncode(rs("Content")))%></p></td>
                            </tr>
                            <tr>
                              <Td align="right"><%=rs("Author")%><br>
                                  <font style='FONT-SIZE: 11px'><%=year(rs("DateAndTime"))%>.<%=month(rs("DateAndTime"))%>.<%=day(rs("DateAndTime"))%></font> </td>
                            </tr>
                        </table></td>
                    </tr>
                </table></td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"></td>
              <td height="26" align="center" bgcolor="f2f2f2"><table width="97%" height="20" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td height="16">&nbsp;</td>
                    <td align="right" valign="bottom"><%

       id=request("id")
	  sql="Select Top 1 * From [Announce] Where ID<" & ID & " order by ID desc"
	
	  Set rsPrev= Server.CreateObject("ADODB.Recordset")
	  rsPrev.open sql,conn,1,1
	  if rsPrev.Eof then
	  	response.write "<img src=user/press.gif border=0>"
	  else
	  	response.write "<a href='Announce.asp?ID="&rsPrev("ID")& "'><img src=user/pres.gif border=0></a>"
	  end if
	  rsPrev.close
	  set rsPrev=nothing
	  %>
                      &nbsp;
                      <%
	   id=request("id")
	  sql="Select Top 1 * From [Announce] Where ID>" & ID & " order by ID asc"
	  Set rsNext= Server.CreateObject("ADODB.Recordset")
	  rsNext.open sql,conn,1,1
	  if rsNext.Eof then
	  	response.write "<img src=user/nextss.gif border=0>"
	  else
	  	response.write "<a href='Announce.asp?ID="&rsNext("ID")& "'><img src=user/nexts.gif border=0></a>"
	  end if
	  rsNext.close
	  set rsNext=nothing
	  %>
                    </td>
                  </tr>
              </table></td>
              <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"></td>
            </tr>
            <tr>
              <td width="1" height="1"><img src="img0415/space.gif" width="1" height="1"></td>
              <td bgcolor="#CCCCCC"></td>
              <td width="1"></td>
            </tr>
          </table>
          <table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="9"><img src="img0415/space.gif"></td>
            </tr>
          </table>
          </td>
        <td width="9"></td>
        <td width="220" valign="top" bgcolor="fafafa" class="line1"><table width="100%" height="8" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="9"><img src="img0415/space.gif"></td>
          </tr>
        </table>
              <table border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td><img src="img0415/logintop.gif" width="200" height="7" /></td>
                </tr>
                <tr>
                  <td background="img0415/loginbg.gif" bgcolor="#FFFFFF"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td height="25"><img src="img0415/Announce.gif" width="131" height="15" /></td>
                      </tr>
                      <tr>
                        <td height="1" background="img0415/linef.gif"></td>
                      </tr>
                      <tr>
                        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <%
set rs=server.createobject("adodb.recordset")
rs.open "select top 10 * from Announce order by ID desc",conn,1,1 
%>
                            <Tr >
                              <td height="9" colspan="3"></td>
                            </tr>
                            <%if rs.recordcount=0 then %>
                            <Tr align="center" >
                              <td height="25" colspan="3">暂时没有公告!!!</td>
                            </tr>
                            <%else%>
                            <%
do while not rs.eof
%>
                            <tr>
                              <td height="24"><img src="img0415/yuan.gif"><a href="announce.asp?id=<%=rs("id")%>" ><font color="<%=rs("titlecolor")%>"><%=left(rs("title"),10)%></font></a> </td>
                              <td width="35" align="right"><font color='#999999' style='FONT-SIZE: 10px'><%=month(rs("DateAndTime"))%>.<%=day(rs("DateAndTime"))%></font></td>
                            </tr>
                            <%rs.movenext
loop
%>
                            <%end if%>
                            <%rs.close
set rs=nothing%>
                        </table></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td><img src="img0415/loginend.gif" width="200" height="8" /></td>
                </tr>
            </table></td>
      </tr>
    </table></td>
    <td width="1" bgcolor="#CCCCCC"><img src="img0415/space.gif" width="1" height="1"><img src="img0415/space.gif"></td>
    <td width="5" bgcolor="f2f2f2"></td>
  </tr>
</table>
<!--#include file="end.asp"-->
</body>
</html>
<%
rs.close
set rs=nothing
call CloseConn()
%>