<meta http-equiv="Content-Type" content="text/html; charset=utf-8"  />
<%
username 	= session("username")
reglx		=	cint(session("reglx"))
'--- djj_jg_name1 djj_jg_name 2 djj_jg_vlaue1 djj_jg_vlaue2 djj_jg_vlaue3 djj_jg_vlaue3
'-----------------价格模块
		   djj_jg_name1 	=  "【"&jiagename2&"】" 
		   djj_jg_vlaue1 	=	"no permission to check"
		   djj_jg_name2 	=  "【"&jiagename3&"】" 
		   djj_jg_vlaue2 	=	djj_jg_vlaue1

 if username	= "" Then
 '---------- not login
	 if djj_jggz = 0 then
		   djj_jg_name1 	=  "【"&jiagename2&"】" 
		   djj_jg_vlaue1 	=	formatnumber(rs("huiyuanjia"),2) & ""
		   djj_jg_name2 	=  "【"&jiagename3&"】" 
		   djj_jg_vlaue2 	=	formatnumber(rs("vipjia"),2) & ""
		   else
		   djj_jg_vlaue1 	=	"<a href= ""/login.asp"" >Login to check</a>"
		   djj_jg_vlaue2 	=	djj_jg_vlaue1
		   djj_jg_vlaue3 	=	djj_jg_vlaue3
	end if
 else 
 '-----------  login 
	if djj_jggz = 0 then 
		   djj_jg_name1 	=  "【"&jiagename2&"】" 
		   djj_jg_vlaue1 	=	formatnumber(rs("huiyuanjia"),2) & ""
			   if reglx = 2 then
		   djj_jg_name2 	=  "【"&jiagename3&"】" 
		   djj_jg_vlaue2 	=	formatnumber(rs("vipjia"),2) & ""
		   else 
		   if reglx = 3 then
		   djj_jg_name2 	=  "【"&jiagename4&"】" 
		   djj_jg_vlaue2 	=	formatnumber(rs("pifajia"),2) & ""
		   end if
		   end if
	else
			if djj_jggz = 1  then
					   djj_jg_name2 	=  "【其他价】" 
					   djj_jg_vlaue2 	=	"no permission to check"
					if reglx = 2 then 'vip
					   djj_jg_name1 	=  "【"&jiagename3&"】" 
					   djj_jg_vlaue1 	=	formatnumber(rs("vipjia"),2) & ""
					else
							if reglx = 3 then 'pifajia
							   djj_jg_name1 	=  "【"&jiagename4&"】" 
							   djj_jg_vlaue1	=	formatnumber(rs("pifajia"),2) & ""
							else
							'hui
							   djj_jg_name1 	=  "【"&jiagename2&"】" 
							   djj_jg_vlaue1 	=	formatnumber(rs("huiyuanjia"),2) & ""
							end if
					end if
									 
			else
					if djj_jggz = 2 then
					   djj_jg_name1 	=  "【"&jiagename2&"】" 
					   djj_jg_vlaue1 	=	formatnumber(rs("huiyuanjia"),2) & ""
					   if reglx = 3 then
							   djj_jg_name2 	=  "【"&jiagename4&"】" 
							   djj_jg_vlaue2 	=	formatnumber(rs("pifajia"),2) & ""
						else
						if reglx = 2 then
							   djj_jg_name2 	=  "【"&jiagename3&"】" 
							   djj_jg_vlaue2 	=	formatnumber(rs("vipjia"),2) & ""
						end if
					   end if
					end if
			end if
	end if
end if
'--------------------------
 if text=1 then%>

<table border="0" align="center" cellpadding="2" cellspacing="0" onMouseOver='JavaScript:this.style.backgroundColor="#f1f1f1"' onMouseOut='JavaScript:this.style.backgroundColor=""'>
  <tr>
    <td width="260"><img src="img/top5.gif" width="12" height="13"> <a href=list.asp?id=<%=rs("shopid")%>>
      <%if len(trim(rs("shopname")))>18 then
	response.write left(trim(rs("shopname")),18)&".."
	else
	response.write trim(rs("shopname"))
	end if%></a> </td>
    <td width="120"><%=jiagename1%>：<s><%=formatnumber(rs("shichangjia"),2)%></s> </td>
    <td width="120"><font color="#ff6600"><%=djj_jg_name1%>：<%=djj_jg_vlaue1%> </font></td>
    <td width="120"><font color="#ff6600"><%=djj_jg_name2%>：<%=djj_jg_vlaue2%></font> </td>
    <td width="90"><div align="center"><a href="gouwu.asp?id=<%=rs("shopid")%>&action=add"><img src="img/gm.gif" width="32" height="17" border="0"></a> &nbsp;<a href="shoucang.asp?id=<%=rs("shopid")%>&action=add"><img src="img/sc.gif" width="32" height="17" border="0"></a></div></td>
  </tr>
    <tr>
    <td height="1" background="<%=weburl%>images/skin<%=cssid%>/x.gif"></td>
    <td height="1" background="<%=weburl%>images/skin<%=cssid%>/x.gif"></td>
    <td height="1" background="<%=weburl%>images/skin<%=cssid%>/x.gif"></td>
	    <td height="1" background="<%=weburl%>images/skin<%=cssid%>/x.gif"></td>
    <td height="1" background="<%=weburl%>images/skin<%=cssid%>/x.gif"></td>
  </tr>
</table>
<%else
if fll=1 then%>
<table border="0" cellspacing="0" cellpadding="2" align="left" onMouseOver='JavaScript:this.style.backgroundColor="#f1f1f1"' onMouseOut='JavaScript:this.style.backgroundColor=""'>
  <tr> 
    <td width="120" rowspan="4" valign="middle" class="table-xia"> 
      <%if rs("shoppic")="" then %>      <table width="98" height="98" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td colspan="3"><img src="img/img_01.gif" width="98" height="4" alt=""></td>
        </tr>
        <tr>
          <td rowspan="2"><img src="img/img_02.gif" width="4" height="94" alt=""></td>
          <td width="85" height="85" background="img/img_03.gif"><a href=list.asp?id=<%=rs("shopid")%> <%if rs("sftc")="" then%><%else%> target=<%=rs("sftc")%><%end if%>><img src=img/emptyshop.gif alt=<%=trim(rs("shopname"))%> width=85 height="85" border=0></a></td>
          <td rowspan="2"><img src="img/img_04.gif" width="8" height="94" alt=""></td>
        </tr>
        <tr>
          <td height="9"><img src="img/img_05.gif" alt="" width="86" height="9"></td>
        </tr>
      </table>
	  <%else%>
      <div align="center">
        <a href=list.asp?id=<%=rs("shopid")%> <%if rs("sftc")="" then%><%else%> target=<%=rs("sftc")%><%end if%>><img src="<%=weburl%><%=trim(rs("shoppic"))%>" alt=<%=trim(rs("shopname"))%>   width=<%=upload13%> height=<%=upload14%> border=0></a>
        <%end if%>
      </div>
    </td>
    <td height="23" colspan="2"><strong><a href=list.asp?id=<%=rs("shopid")%>><%=trim(rs("shopname"))%></a></strong></td>
  </tr>
  <tr> 
    <td height="23">
	<%=jiagename1%>：<%=hb%> <%=formatnumber(rs("shichangjia"),2)%></td>
    <td width="100" height="23"><div align="center"><a href="gouwu.asp?id=<%=rs("shopid")%>&action=add"><img src="img/gm.gif" width="100" height="26" border="0"></a></div></td>
  </tr>
  <tr> 
    <td colspan="2" class="table-xia"> <font color="<%=flzhzt%>"> 
      <%if len(trim(htmltotext(rs("shopcontent"))))>100 then
	response.write left(trim(htmltotext(rs("shopcontent"))),100)&"...."
	else
	response.write trim(htmltotext(rs("shopcontent")))
	end if%>
    </font></td>
  </tr>
</table>
<%end if%>
<% if fll=2 then%>
<table border="0" cellspacing="0" cellpadding="0" align="left" onMouseOver='JavaScript:this.style.backgroundColor="#f1f1f1"' onMouseOut='JavaScript:this.style.backgroundColor=""'>
  <tr> 
    <td width="100" class="table-xia"> <%if rs("shoppic")="" then %> <table width="98" height="98" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="3"><img src="img/img_01.gif" width="98" height="4" alt=""></td>
      </tr>
      <tr>
        <td rowspan="2"><img src="img/img_02.gif" width="4" height="94" alt=""></td>
        <td width="85" height="85" background="img/img_03.gif"><a href=list.asp?id=<%=rs("shopid")%> <%if rs("sftc")="" then%><%else%> target=<%=rs("sftc")%><%end if%>><img src=img/emptyshop.gif alt=<%=trim(rs("shopname"))%> width=85 height="85" border=0></a></td>
        <td rowspan="2"><img src="img/img_04.gif" width="8" height="94" alt=""></td>
      </tr>
      <tr>
        <td height="9"><img src="img/img_05.gif" alt="" width="86" height="9"></td>
      </tr>
    </table>
      <%else%> <div align="center"> 
        <a href=list.asp?id=<%=rs("shopid")%> <%if rs("sftc")="" then%><%else%> target=<%=rs("sftc")%><%end if%>><img src="<%=weburl%><%=trim(rs("shoppic"))%>" alt=<%=trim(rs("shopname"))%> width=<%=upload13%> height=<%=upload14%> border=0></a>
        <%end if%>
    </div></td>
    <td rowspan="2" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="22"><strong><a href=list.asp?id=<%=rs("shopid")%>><font color="#3366CC">
            <%if len(trim(rs("shopname")))>18 then
	response.write left(trim(rs("shopname")),18)&".."
	else
	response.write trim(rs("shopname"))
	end if%></font></a><span class="table-xia"><font color="<%=flzhzt%>">
            
          </font></span></strong></td>
        </tr>
        
        <tr> 
          <td height="22"><%=jiagename1%>：<%=hb%> <%=formatnumber(rs("shichangjia"),2)%></td>
        </tr>
        <tr> 
          <td><a href="gouwu.asp?id=<%=rs("shopid")%>&action=add"><img src="img/gm.gif" width="100" height="26" border="0"></a></td>
        </tr>
        <tr>
          <td><span class="table-xia"><font color="<%=flzhzt%>">
            <%if len(trim(htmltotext(rs("shopcontent"))))>60 then
	response.write left(trim(htmltotext(rs("shopcontent"))),60)&"...."
	else
	response.write trim(htmltotext(rs("shopcontent")))
	end if%>
          </font></span></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<%end if%>
<% if fll=3 then%>
<table width="240" border="0" cellspacing="0" cellpadding="2" align="left" onMouseOver='JavaScript:this.style.backgroundColor="#f1f1f1"' onMouseOut='JavaScript:this.style.backgroundColor=""'>
  <tr> 
    <td width="100" class="table-xia"> 
      <%if rs("shoppic")="" then %>
      <table width="98" height="98" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td colspan="3"><img src="img/img_01.gif" width="98" height="4" alt=""></td>
        </tr>
        <tr>
          <td rowspan="2"><img src="img/img_02.gif" width="4" height="94" alt=""></td>
          <td width="85" height="85" background="img/img_03.gif"><a href=list.asp?id=<%=rs("shopid")%> <%if rs("sftc")="" then%><%else%> target=<%=rs("sftc")%><%end if%>><img src=img/emptyshop.gif alt=<%=trim(rs("shopname"))%> width=85 height="85" border=0></a></td>
          <td rowspan="2"><img src="img/img_04.gif" width="8" height="94" alt=""></td>
        </tr>
        <tr>
          <td height="9"><img src="img/img_05.gif" alt="" width="86" height="9"></td>
        </tr>
      </table>
      <%else%>      <div align="center"> 
        <a href=list.asp?id=<%=rs("shopid")%> <%if rs("sftc")="" then%><%else%> target=<%=rs("sftc")%><%end if%>><img src="<%=weburl%><%=trim(rs("shoppic"))%>" alt=<%=trim(rs("shopname"))%> width=<%=upload13%> height=<%=upload14%> border=0></a>
        <%end if%>
    </div></td>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><strong><a href=list.asp?id=<%=rs("shopid")%>><font color="#3366CC">
          <%if len(trim(rs("shopname")))>8 then
	response.write left(trim(rs("shopname")),8)&".."
	else
	response.write trim(rs("shopname"))
	end if%>
        </font></a></strong></td>
      </tr>
      <tr>
        <td><%=jiagename1%>：<%=hb%> <%=formatnumber(rs("shichangjia"),2)%> </td>
      </tr>
      <tr>
        <td><a href="gouwu.asp?id=<%=rs("shopid")%>&action=add"><img src="img/gm.gif" width="100" height="26" border="0"></a></td>
      </tr>
    </table></td>
  </tr>
</table>
<%end if%>
<% if fll>3 then%>
<table border="0" align="left" cellpadding="2" cellspacing="0" onMouseOver='JavaScript:this.style.backgroundColor="#f1f1f1"' onMouseOut='JavaScript:this.style.backgroundColor=""'>
  <tr>
    <td align="center" class="table-xia">
      <%if rs("shoppic")="" then %>
      <table width="99" height="98" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td colspan="3"><img src="img/img_01.gif" width="98" height="4" alt=""></td>
        </tr>
        <tr>
          <td rowspan="2"><img src="img/img_02.gif" width="4" height="94" alt=""></td>
          <td width="85" height="85" background="img/img_03.gif"><a href=list.asp?id=<%=rs("shopid")%> <%if rs("sftc")="" then%><%else%> target=<%=rs("sftc")%><%end if%>><img src=img/emptyshop.gif alt=<%=trim(rs("shopname"))%> width=85 height="85" border=0></a></td>
          <td rowspan="2"><img src="img/img_04.gif" width="8" height="94" alt=""></td>
        </tr>
        <tr>
          <td height="9"><img src="img/img_05.gif" alt="" width="86" height="9"></td>
        </tr>
      </table>
      <div align="center">
        <%else%> 
        <a href=list.asp?id=<%=rs("shopid")%> <%if rs("sftc")="" then%><%else%> target=<%=rs("sftc")%><%end if%>><img src="<%=weburl%><%=trim(rs("shoppic"))%>" alt=<%=trim(rs("shopname"))%> width=<%=upload13%> height=<%=upload14%> border=0></a></div>      
      <div align="center"><%end if%>
        <table border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><strong><a href=list.asp?id=<%=rs("shopid")%>><font color="#3366CC"> <%if len(trim(rs("shopname")))>8 then
	response.write left(trim(rs("shopname")),8)&""
	else
	response.write trim(rs("shopname"))
	end if%>
            </font></a></strong></td>
          </tr>
          <tr>
            <td><%=jiagename1%>：<%=hb%> <%=formatnumber(rs("shichangjia"),2)%> </td>
          </tr>
          <tr>
            <td><div align="center"><a href="gouwu.asp?id=<%=rs("shopid")%>&action=add"><img src="img/gm.gif" width="100" height="26" border="0"></a></div></td>
          </tr>
        </table>
</div></td>
  </tr>
</table>
<%end if
end if%>
