<!--#include file=top.asp-->

<head>
</head>

<body topmargin="0">
<table border="0" width="1024" cellspacing="0" cellpadding="0" height="986">
  <tr>
    <td width="100" height="503"></td>
    <td width="168" height="503" valign="top">
    <table border="0" width="100%" cellspacing="0" cellpadding="0" height="169">
      <tr>
        <td width="100%" height="115" valign="top">
          <table border="0" width="100%" cellspacing="0" cellpadding="0">
            <tr>
              <td width="100%"><img border="0" src="moban/2/images/class.gif"></td>
            </tr>
            <tr>
              <td width="170" valign="top" align="center">
                <div align="center">
                  <center>
                  <table border="0" width="167" cellspacing="0" cellpadding="0" >
                    <tr>
                      <td width="167" height="6" background="moban/2/images/class_top.gif"></td>
                    </tr>
                    <tr>
                      <td width="167" height="285" background="moban/2/images/class_mid.gif" valign="top" align="center">
                      <table width="100%" cellpadding="0" cellspacing="0">
  <%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 10 * from shop_shjclass where shjname='"&shjianame&"' order by shjclassidorder",conn,1,1
if rs.bof and rs.eof then
response.write"&nbsp;&nbsp;<font color=red>!</font>该商家暂时没有分类！"
else
do while not rs.eof
%>
<tr>
<td width="100%" valgin="top" height=20>
&nbsp;&nbsp;<img src=moban/2/images/class_c.gif width=5 height=5>&nbsp;<a href=guidelist.asp?shjclassid=<%=rs("shjclassid")%>&id=<%=id%>><%=left(rs("shjclass"),10)%></a></td>
</tr>
<tr>
<td align="center" valgin="top" height=1><img border="0" src="moban/2/images/class_line.gif" width="148" height="1">
</td>
</tr>
<%rs.movenext
loop	
rs.close
set rs=nothing
end if
%>
</table>

                      </td>
                    </tr>
                    <tr>
                      <td width="167" height="8" background="moban/2/images/class_d.gif"></td>
                    </tr>
                  </table>
                  </center>
                </div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td width="100%" height="18">
          <table border="0" width="100%" cellspacing="0" cellpadding="0" height="114">
            <tr>
              <td width="100%" height="53"><img border="0" src="moban/2/images/youhui.gif"></td>
            </tr>
            <tr>
              <td width="100%" height="61" valign="top" align="center">
                <div align="center">
                  <center>
                  <table border="0" width="167" cellspacing="0" cellpadding="0" >
                    <tr>
                      <td width="167" background="moban/2/images/youhui_T.gif" height="8"></td>
                    </tr>
                    <tr>
                      <td width="167" background="moban/2/images/youhui_m.gif"  align="center" height="200" valign="top">
                      <table width="100%" cellpadding="0" cellspacing="0">
<%
shjiaid=rs_shjia("shjiaid")
set rsy=server.CreateObject("adodb.recordset")
rsy.open "select top 5 * from youhui where shjiaid="&shjiaid,conn,1,1
if rsy.bof and rsy.eof then
response.write"&nbsp;&nbsp;<font color=red>!</font>该商家暂时没有发布优惠信息！"
else
do while not rsy.eof
%>
<tr>
<td  valign="top"> 
&nbsp;&nbsp;<a href=youhuishow.asp?youhuiid=<%=rsy("id")%>&id=<%=id%>><%=rsy("yhname")%></a>
</td>
</tr>
<tr>
<td align="center">
<img border="0" src="moban/2/images/youhui_line.gif" >
</td>
</tr>
<%rsy.movenext
loop	
rsy.close
set rsy=nothing
end if
%>
</table>
                      </td>
                    </tr>
                    <tr>
                      <td width="167" background="moban/2/images/youhui_D.gif" height="10"></td>
                    </tr>
                  </table>
                  </center>
                </div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td width="100%" height="18" valign="top" align="center">
          <table border="0" width="100%">
            <tr>
              <td width="100%"><img border="0" src="moban/2/images/lianxi.gif"></td>
            </tr>
            <tr>
              <td width="100%" align="center">&nbsp;&nbsp;<img border="0" src="moban/2/images/lc.gif">&nbsp;<%=rs_shjia("tel")%><br>
              &nbsp;&nbsp;<img border="0" src="moban/2/images/lc.gif">&nbsp;<%=rs_shjia("dz")%>
              </td>
            </tr>
            <tr>
              <td width="100%"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td width="100%" height="18" valign="top" align="center">
          <div align="center">
            <center>
            <table border="0" width="167" background="moban/2/images/renzheng.gif" height="140">
              <tr>
                <td width="100%" valign="top" align="center">
                  <table border="0" width="100%" height="127">
                    <tr>
                      <td width="100%" height="123" valign="top">                <table border="0" width="100%">
                  <tr>
                    <td width="100%"><img src="../images/ring01.gif" broder="0">   
                      认证状态</td>                                                              
                  </tr>
                  <tr>
                    <td width="100%">商家认证：                                                                      
<%if rs_shjia("tj")=5 then
response.write "<img src=../images/icon1.gif alt=超级商家>"
end if%>&nbsp;                                                                      
<%if rs_shjia("renzheng")=1 then
response.write "<img src=../images/yingyezhizhao.gif alt=营业执照认证商家>"
end if%>
<%if rs_shjia("renzheng2")=1 then                                                                      
response.write "&nbsp;<img src=../images/mobile.gif alt=电话认证商家>"
end if%>
<%if rs_shjia("renzheng3")=1 then                                                                      
response.write "&nbsp;<img src=../images/estrella_6.gif alt=钻石认证商家>"
end if%>
<%if rs_shjia("renzheng4")=1 then                                                                      
response.write "&nbsp;<img src=../images/vip_renzheng.gif alt=ＶＩＰ认证商家>"
end if%>
<br>
商家星级：&nbsp;<img src=../images/estrella_<%=rs_shjia("tj")%>.gif alt=<%=rs_shjia("tj")%>星级商家 ></td>
                  </tr>
                </table></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            </center>
          </div>
        </td>
      </tr>
    </table>
    </td>
    <td width="642" height="503" valign="top">
    <table border="0" width="640" cellspacing="0" cellpadding="0" height="986">
      <tr>
        <td width="640" colspan="3" height="9" background="moban/2/images/body_top.gif"></td>
      </tr>
      <tr>
        <td width="2" height="986" background="moban/2/images/body_left.gif"><img src=moban/2/images/body_left.gif border=0></td>
        <td width="636" height="986" background="moban/2/images/body_mid.gif" valign="top">
          <table border="0" width="577" cellspacing="0" cellpadding="0" height="92">
            <tr><form name="userlogin" method="post" action="../checkuserlogin.asp"></form>
            </tr>
            <tr>
              <td width="634" height="1">
                <table border="0" width="633" cellspacing="1" cellpadding="2">
                  <tr>
                    <td width="382" height="32">
                      <table border="0" width="92%">
                        <tr>
                          <td width="100%"><marquee direction="left" width="376" height="20" scrollamount="1" id=info onMouseOver=info.stop() onMouseOut=info.start()><font color="red"><%=rs_shjia("content")%></font></marquee></td>
                        </tr>
                      </table>
                    </td>
                    <td width="235" height="32" background="moban/2/images/sobg.gif">
                     <form method="post" action="search.asp?id=<%=rs_shjia("shjiaid")%>">      
                      <table border="0" width="231" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="72">&nbsp;<img border="0" src="moban/2/images/so.gif">   
                            搜索</td>                                                                                     
                          <td width="105"><input type="text"  class=wenbenkuang  name="searchkey" size="15" value="请输入搜索关键字！"></td>  
                          <td width="48"><INPUT  name="submit" border="0" src="moban/2/images/search.gif" type="image" align="absmiddle" ></td>
                        </tr></form>
                      </table>
                      
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr>
              <td width="634" height="2" valign="top" align="center">
                                          <div align="center">
                              <center>
                              <table border="0" width="634" height="138" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="634" background="moban/2/images/adbg.gif" height="138" valign="top">
                                    <table border="0" width="100%" height="100%">
                                      <tr>
                                        <td width="28%"></td>
                                        <td width="72%" valign="middle" align="center">
                                        <%if rs_shjia("textbanner")<>"" then%>
                                        <a href="<%=rs_shjia("texturl")%>" targrt=_top><strong><font size="6" color="#ffffff" face="华文行楷"><%=left(rs_shjia("textbanner"),16)%></font></strong></a>
                                        <%else%>
                                        <strong><font size="6" color="#ffffff" face="华文行楷"><%=rs_shjia("name")%>欢迎您！</font></strong>
                                        <%end if%>
                                        </td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                              </center>
                            </div>
              </td>
            </tr>
            <tr>
              <td width="634" height="1" valign="top" align="center">
                                          <div align="center">
                              <center>
                              <table border="0" width="625" height="34" cellspacing="1" cellpadding="2">
                                <tr>
                                  <td width="100%" background="moban/2/images/center.gif"  width="625" height="34">
                                    <table border="0" width="100%">
                                      <tr>
                                        <td width="4%"></td>
                                        <td width="96%"><a href="index.asp?id=<%=rs_shjia("shjiaid")%>"><font color="#106DA0"><b>首页</b></font></a>&nbsp;&gt;&nbsp;<font color="#CC6600"><b>商家动态</b></font></td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                              </center>
                            </div>
              </td>
            </tr>
            <tr>
              <td width="634" height="1" valign="top" align="center">
              
              
                      <table border="0" width="98%">
                        <tr>
                          <td width="100%"><%
If Len(Trim(Request("page")))=0 Then  '返回目标页码的判断
page=1 
Else 
page=CInt(Trim(Request("page"))) 
End If
set rs1s=server.CreateObject("adodb.recordset")
strnews="select  * from news where shjiaid="&id
rs1s.open strnews,conn,1,1
rs1s.PageSize=30
if not rs1s.eof then
rs1s.AbsolutePage=page
for i=1 to rs1s.PageSize 
%>
                                                                   <div align="center">
                                                                    <center>
                                  <table border="0" width="100%">
                                    <tr>
                                      <td width="100%">&nbsp;<img src=moban/2/images/cccc.gif broder=0>&nbsp;<a href=newsshow.asp?id=<%=rs_shjia("shjiaid")%>&newsid=<%=rs1s("newsid")%>><%=trim(rs1s("title"))%></a>&nbsp;&nbsp;[<%=trim(rs1s("addtime"))%>]</td>
            </tr>	
<% 
 rs1s.movenext
    if rs1s.EOF Then Exit For
    next
  end if
%>
                                  </table>
                          </td>
                        </tr>
                        <tr>
                          <td width="100%">
                          <table width="520" border="0" align="center" cellpadding="5" >  
  <tr>
    <td align="right"><%
  if page <>1 then
     Response.Write "<a href=news.asp?id="&shjiaid&"&page=1>首页</a> "
  end if
  tmppage = page - 1 
  if tmppage <= 0 then 
     tmppage = 1 
  else
     Response.Write"<a href=news.asp?id="&shjiaid&"&page="&tmppage&">上一页</a>"
  end if
  tmppage = page + 1 
  if tmppage >rs1s.PageCount then 
     tmppage = page
  else
     Response.Write " <a href=news.asp?id="&shjiaid&"&page="&tmppage&">下一页</a> "
  end if 
  if Cstr(page) <> Cstr(rs1s.PageCount) and Cstr(rs1s.PageCount) <> 0 then
    Response.Write "<a href=news.asp?id="&shjiaid&"&page="&rs1s.PageCount&">尾页</a>"
  end if
  if Cstr(rs1s.PageCount) <> 0 then
  Response.Write "每页显示<font color=red>30</font>条新闻  第<font color='blue'>" & page & "/"&rs1s.PageCount&"</font>页"
  end if
  Response.Write "  共有<font color='blue'>"&rs1s.RecordCount&"</font>条新闻"
 rs1s.close
%>  
</td></tr></table>
                          </td>
                        </tr>
                      </table>
                     
              </td>
            </tr>
          </table>
        </td>
        <td width="2" height="986" valign="top" align="center"><img src=moban/2/images/body_right.gif border=0></td>
      </tr>
      <tr>
        <td width="640" colspan="3" height="15" background="moban/2/images/body_down.gif"></td>
      </tr>
    </table>
    </td>
    <td width="100" height="503"></td>
  </tr>
</table>
<!--#include file="copyright.asp"-->

















