<!--#include file=CONN.ASP-->
<!--#include file="config.asp"-->
<script language="JavaScript">
function closewindow()
{ 
  window.close();
}
</script>
<link rel="stylesheet" type="text/css" href="fox.CSS">
    <% 
    dim id,rs,sql
    id=trim(request("id"))
    if id="" then
    call list()
	response.end
	end if
    set rs=server.createobject("adodb.recordset")
    sql="select * from [FOX_usergonggao] where id="&cstr(id)
    rs.open sql,conn,1,1
    if rs.eof and rs.bof then
	response.write "没有新闻"
	response.end
   	end if
   	function HTMLEncode(fString)
    fString = replace(fString, ">", "&gt;")
    fString = replace(fString, "<", "&lt;")
    fString = Replace(fString, CHR(13), "")
    fString = Replace(fString, CHR(10) & CHR(10), "</P><P>")
    fString = Replace(fString, CHR(10), "<BR>")
    HTMLEncode = fString
    end function
   	%>
   	<title><%=rs("biaoti")%></title>
    <style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
    </style>
<body topmargin="3">

<div align="center">
  <center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#CCCCCC" width="400" height="162">
  <tr>
    <td width="519" height="162">
    <div align="center">
      <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
      <tr>
        <td height="20" background="images/url/greenback.gif" bgcolor="#F7D8AE"> <p align="left" class="style1">
		<font color="#A15300"><span style="font-size: 9pt; font-weight: 700">&nbsp;<%=rs("biaoti")%></span></font></td>
      </tr>
      <tr>
        <td height="25"><div align="center"><font color="#FF0000"><%=rs("data")%></font></div></td>
        </tr>
      <tr>
        <td><table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><%=HTMLEncode(rs("neirong"))%></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td>　</td>
      </tr>
      <tr>
        <td height="30"><div align="right"><%=title%>→<br>
          我的店铺公告
        </div></td>
      </tr>
      <tr>
        <td height="1" bgcolor="#E3E3E3"></td>
      </tr>
      <tr>
        <td height="30">
        <p align="right">
        <b>
        <font style="FONT-SIZE: 12px; COLOR: #000066; FONT-FAMILY: 宋体">
        <span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体">
        <a class="yellow" href="javascript:closewindow();" target="_self" style="text-decoration: none">
        关闭窗口</a></span></font></b></td>
      </tr>
    </table>
      </center>
    </div>
    </td>
  </tr>
</table>
  </center>
</div>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
<%sub list()
dim k
set rs=server.createobject("adodb.recordset")
sql="select * from [FOX_usergonggao] order by id desc"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "没有新闻"
response.end
end if
k=0
%>
<div align="center">
  <center>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#CCCCCC" width="400" height="13">
  <tr>
    <td width="521" height="13">
    <div align="center">
      <center>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="99%">
      <tr>
        <td width="8%" colspan="2">　</td>
        <td width="64%">　</td>
        <td width="28%">　</td>
      </tr>
      <tr>
        <td width="2%">　</td>
        <td width="6%" height="20">
        <p align="center">编号</td>
        <td width="64%" height="20">标题</td>
        <td width="28%" height="20">发布时间</td>
      </tr>
      <%do while not rs.eof%><span style="font-size: 9pt">
      <tr>
        <td width="2%">　</td>
        <td width="6%" height="20"> </span>
        <p align="center">
        <font size="2"><%=k+1%></font></td>
        <td width="64%" height="20"><a href="javascript:win=open('GONGGAO.ASP?id=<%=rs("id")%>','offer','width=560,height=450,status=no,menubar=yes,scrollbars=yes,top=0,left=0'); win.focus()">
        <font size="2"><%=rs("biaoti")%></font></a></td>
        <td width="28%" height="20"><font size="2" color="#C0C0C0"><%=rs("data")%></font></td>
      </tr>
      <%
      rs.movenext
      k=k+1
      loop
      %>
      <tr>
        <td width="100%" colspan="4">
        <p align="right">
        <b>
        <a class="yellow" href="javascript:closewindow();" target="_self" style="text-decoration: none">
        <font color="#808080">关闭窗口</font></a></span></font></b></td>
      </tr>
      <tr>
        <td width="100%" colspan="4">　</td>
      </tr>
    </table>
      </center>
    </div>
    </td>
  </tr>
</table>
  </center>
</div>

<%end sub%></body></html>