<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--#include file="connoklin.asp" -->
<%owen=request("id")%>
<% 
Set rsnews=Server.CreateObject("ADODB.RecordSet") 
sql="update news set point=point+1 where id="&cstr(request("id"))
conn.execute sql
sql="select * from news where id="&owen
rsnews.Open sql,conn,1,1
title=rsnews("title")
bigclassname=rsnews("bigclassname")
if rsnews("smallclassname")<>"" then
ss=rsnews("smallclassname")
else
ss=rsnews("bigclassname")
end if
if rsnews.eof and rsnews.bof then
response.Write("数据库出错")
response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=title%>-<%=bigclassname%>-凯萨洗衣</title>
<link href="pic/css.css" rel="stylesheet" type="text/css" />
<SCRIPT language=Javascript src="pic/bn.js"></SCRIPT>
</head>

<body onmousemove="HideMenu()">
<div id=menuDiv style='Z-INDEX: 2; VISIBILITY: hidden; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px; BACKGROUND-COLOR: #9cc5f8'></div>
<!--#include file="ttop.asp" -->
<table width="993" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="D9F2F3">
  <tr>
  <%if bigclassname="洗涤设备" then%>
<td width="230" bgcolor="B6E6E8" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="pic/sse.gif"></td>
  </tr>
</table>
      <table width="92%" border="0" align="center" cellpadding="3" cellspacing="2">
        <%   sql2="select * from news where bigclassname='洗涤设备'  order by id desc"
   set rs2=server.createobject("adodb.recordset")
   rs2.open sql2,conn,1,1
   do while not rs2.eof %>
        <tr>
    <td><img src="pic/ddi.gif"></td><td><a href=show.asp?id=<%=rs2("id")%> title=<%=rs2("title")%> class="gbhui"><%=left(rs2("title"),15)%>
                              <%if len(rs2("title"))>18 then%>
                              ...
                              <%end if%>
                              </a></td>
  </tr>
  <%rs2.movenext
  loop
  rs2.close
  set rs2=nothing%>
</table>
</td>
  <%elseif bigclassname="洗涤耗材" then%>
<td width="230" bgcolor="B6E6E8" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="pic/hha.gif"></td>
  </tr>
</table>
      <table width="92%" border="0" align="center" cellpadding="2" cellspacing="1">
	  <tr><td height="3"></td></tr>
             <%   sqlb2="select * from smallclass where bigclassname='洗涤耗材' order by smallclassid asc"
   set rsb2=server.createobject("adodb.recordset")
   rsb2.open sqlb2,conn,1,1
   do while not rsb2.eof %>
   <%if rsb2("smallclassname")="干洗房耗材" then
bbid="1"
elseif rsb2("smallclassname")="水洗房耗材" then
bbid="2"
elseif rsb2("smallclassname")="皮革耗材" then
bbid="3"
else 
bbid="4"
end if
%>
   <tr><td colspan="3"><a href=haocai.asp?typeid=<%=bbid%>  class="gblin"><%=rsb2("smallclassname")%></a></td></tr>
	    <%   sql2="select * from news where bigclassname='洗涤耗材' and smallclassname='"&rsb2("smallclassname")&"'   order by id desc"
   set rs2=server.createobject("adodb.recordset")
   rs2.open sql2,conn,1,1
   do while not rs2.eof %>
        <tr><td width="3"></td>
    <td><img src="pic/ddi.gif"></td><td><a href=show.asp?id=<%=rs2("id")%> title=<%=rs2("title")%> class="gbhui"><%=left(rs2("title"),15)%>
                              <%if len(rs2("title"))>15 then%>
                              ...
                              <%end if%>
                              </a></td>
  </tr>
  <%rs2.movenext
  loop
  rs2.close
  set rs2=nothing
  rsb2.movenext
  loop
  rsb2.close
  set rsb2=nothing%>
</table>
</td>
  <%else%>
<!--#include file="lleft1.asp" -->
<%end if%>
    <td width="12"></td>
    <td width="740" valign="top"> 
      <table width="739" border="0" cellspacing="0" cellpadding="0">
        <tr><td height="8"></td></tr>
        <tr>
          <td width="739" height="37" align="left" valign="top"  background="pic/555.gif" class="gblin"> 
            <table width="97%" border="0" align="right" cellpadding="0" cellspacing="0">
			<tr><td height="7"></td></tr>
              <tr>
    <td class="gblin">&nbsp;<%=ss%></td>
  </tr>
</table>
           </td>
        </tr>
        <tr>
          <td width=739 height="850" valign="top" background="pic/1bg.gif"> <table width="662" border="0" cellspacing="0" cellpadding="0" align="center">
              <tr> 
                <td width="662" valign="top" > 
                  <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td height="30" colspan="2" align="center" class="gb105"><font color=red><b><%= rsnews("title") %></b></font></td>
                    </tr>
                    <tr class="lbdw"> 
                      <td width="40%" height="30" class="lbdw">&nbsp;</td>
                      <td width="60%" align="center" class="lbdw">发布者：<%= rsnews("author") %> 
                        发布时间：<%= rsnews("time") %> 阅读：<font color="#FF0000"><%= rsnews("point") %></font>次</td>
                    </tr>
                    <tr> 
                      <Td height="20"></Td>
                    </tr>
                    <tr> 
                      <td colspan="2" class="f105"> <%=rsnews("body") %></td>
                    </tr>
                    <tr align="right"> 
                      <td colspan="2">&nbsp;</td>
                    </tr>
                    <tr align="right"> 
                      <td colspan="2">&nbsp;</td>
                    </tr>
                    <% 
		rsnews.close
		set rsnews=nothing
		 %>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr>
          <td><img src="pic/1end.gif"></td>
        </tr>
      </table>
	  
    </td>
    <td width="11"></td>
  </tr>
</table>
<!--#include file="eend.asp" -->
</body>
</html>
