<!--#include file="../Include/Char.jsp" -->
<!--#include file="../Include/Conn.jsp" -->
<!--#include file="../Include/const.jsp" -->
<%
   if Request.Cookies("UserID") = ""  THEN
     Response.Redirect("Login.jsp")
	 Response.End()
   end if

      ID = Request.Cookies("UserID")
      SET rs=server.createobject("adodb.recordset")
      SQL="SELECT * FROM  CityCard_League WHERE CompanyID ="&ID
      rs.Open SQL,conn,1,1 
       Response.Cookies("LoginCount") = rs("LoginCount")

%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=site_info(0)%> - 商家管理系统</title>
<link href="../Include/Style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body onLoad="MM_preloadImages('images/xf_link1b.gif','images/xf_link2b.gif','images/xf_link3b.gif','images/xf_link4b.gif','images/xf_link5b.gif','images/ly_b_2b.gif','images/ly_b_4b.gif','images/ly_b_1b.gif','images/ly_b_3b.gif','images/ly_b_5b.gif')">

<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="170" height="500" valign="top" bgcolor="f5f5f5">
      <!--#include file="Left.jsp" -->
    </td>
    <td width="10" valign="top"></td>
    <td width="600" valign="top"><table width="600" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="50" class="p1"> 　<font color="#FF0000"><strong>运城生活网 - 运城人的网上生活！</strong></font></td>
        </tr>
      </table>
      <table width="600" border="1" cellpadding="0" cellspacing="5" bordercolor="e2e2e2" bgcolor="f5f5f5">
        <tr> 
          <td height="25" background="images/about_bj.gif" class="p4">&nbsp;<b>·用户信息</b></td>
        </tr>
      </table>
      <table width="600" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="5"></td>
        </tr>
        <tr> 
          <td height="1" background="images/line.gif" ></td>
        </tr>
      </table>
      <br>
      <TABLE width="96%" 
      border=0 align="center" cellPadding=0 cellSpacing=0 
      borderColor=#111111 bgcolor="#FFFFFF" id=AutoNumber7 style="BORDER-COLLAPSE: collapse">
        <TBODY>
          <TR valign="top"> 
            <TD colSpan=2> <TABLE  
                              borderColor=#111111 cellSpacing=1 cellPadding=3 
                              width="100%" border=0>
                <TBODY>
                  <TR> 
                    <TD height="20" colspan="4"><font color="#FF6600">·商家活动信息： 
                      <font color="#FF0000">[<a href="update.jsp"><font color="#FF0000">申请升级更高级会员类型与级别</font></a>] 
                      </font></font></TD>
                  </TR>
                  <TR> 
                    <TD width="14%" align="right" bgcolor="f2f2f2">公司名称：</TD>
                    <TD width="36%" bgcolor="f2f2f2"> 
					<%Response.write rs("Name")
					'Response.Cookies("UserName") = rs("username")
					%> </TD>
                    <TD width="18%" align="right" bgcolor="f2f2f2">上次登陆时间：</TD>
                    <TD width="32%" bgcolor="f2f2f2"> <%
					Response.write Request.Cookies("LastLoginTime")
					  'Response.Cookies("LoginTime") = now
					 
					  
					%></TD>
                  </TR>
                  <TR> 
                    <TD align="right" bgcolor="f2f2f2">用户类型：</TD>
                    <TD bgcolor="f2f2f2"> <%
					if rs("iscard")=1 then
					 response.write "聚宝卡打折加盟商"
					 else
					 response.write "非聚宝卡打折加盟商"
					 end if
					%></TD>
                    <TD align="right" bgcolor="f2f2f2">用户注册时间：</TD>
                    <TD bgcolor="f2f2f2"><%=rs("Adddate")%></TD>
                  </TR>
                  <TR> 
                    <TD align="right" bgcolor="f2f2f2"><div align="left"> 　折扣信息： 
                      </div></TD>
                    <TD colspan="3" bgcolor="f2f2f2">
                      <font color="#FF0000"><%Response.write rs("agio")%></font>
                      <%Response.write rs("agiocontent")%>
                    </TD>
                  </TR>
                </TBODY>
              </TABLE>
              <br> 
              <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=1 
                        cellPadding=0 width="100%" border=0>
                <TBODY>
                  <TR> 
                    <TD 
                              height=20 colspan="4"><font color="#FF6600">·商家基本信息</font></TD>
                  </TR>
                  <TR> 
                    <TD width=70 height="22" align=right bgColor=f2f2f2>用 户 名：</TD>
                    <TD width="205" bgColor=f2f2f2>　<%=rs("UserName")%></TD>
                    <TD width="206" bgColor=f2f2f2>&nbsp;联 系 人： <%=rs("Linkman")%></TD>
                    <TD width=129 rowspan="5" align="center"><table width="80%" height="88" border="0" cellpadding="0" cellspacing="1" bgcolor="#333333">
                        <tr> 
                          <td align="center" bgcolor="#FFFFFF"> <%
						  if rs("logo")<> "" then
						     Response.Write "<a href='UploadLogoImages/"&rs("logo")&"' target='_blank'><img  src='UploadLogoImages/"&rs("logo")&"' width='95' height='88' border='0' ></a>"
						  else
						     Response.Write "暂无图像"
						  end if
						  %> </td>
                        </tr>
                      </table></TD>
                  </TR>
                  <TR> 
                    <TD width=70 
                              height=22 align=right>商家地区：</TD>
                    <TD>　 <%
  id1 = rs("hangyeid")
 'response.Write id1
  SET rs1=server.createobject("adodb.recordset")
  SQL="SELECT * FROM  T_TradeType WHERE F_ID ="&id1
  rs1.Open SQL,conn,1,1 
  response.Write rs1("F_Value")
  rs1.close
  SET  rs1=nothing
%></TD>
                    <TD>&nbsp;用户等级： <%=rs("grade")%></TD>
                  </TR>
                  <TR> 
                    <TD width=70 
                              height=22 align=right bgColor=f2f2f2>商家地址：</TD>
                    <TD colspan="2" bgColor=f2f2f2>　<%=rs("Address")%></TD>
                  </TR>
                  <TR> 
                    <TD width=70 height=22 align=right>电　　话：</TD>
                    <TD>　<%=rs("Tel")%></TD>
                    <TD>&nbsp;邮　　编：<%=rs("Post")%></TD>
                  </TR>
                  <TR> 
                    <TD width=70 
                              height=22 align=right bgcolor="f2f2f2">付款方式：</TD>
                    <TD bgcolor="f2f2f2">　<%=rs("PayClass")%></TD>
                    <TD bgcolor="f2f2f2">最低消费：<%=rs("Consume")%></TD>
                  </TR>
                  <TR> 
                    <TD align=right height=22>停 车 位：</TD>
                    <TD colspan="2">　<%=rs("car")%></TD>
                    <TD align="center">&nbsp;</TD>
                  </TR>
                  <TR bgcolor="f2f2f2"> 
                    <TD height=22 align=right>特别推荐：</TD>
                    <TD colspan="2">　<%=rs("tbtj")%></TD>
                    <TD align="center">&nbsp;</TD>
                  </TR>
                  <TR> 
                    <TD align=right height=22>营业时间：</TD>
                    <TD colspan="2">　自 <%=rs("startbusinesstime")%>至 <%=rs("endbusinesstime")%> 时</TD>
                    <TD align="center">&nbsp;</TD>
                  </TR>
                  <TR bgcolor="f2f2f2"> 
                    <TD height=22 align=right>优惠期限：</TD>
                    <TD colspan="2">　<%=rs("starttime")%> 至 <%=rs("endtime")%> </TD>
                    <TD align="center">&nbsp;</TD>
                  </TR>
                  <TR> 
                    <TD align=right height=22>单位名称：</TD>
                    <TD>　<%=rs("Name")%></TD>
                    <TD colspan="2">电子邮件：<%=rs("email")%></TD>
                  </TR>
                  <TR bgcolor="f2f2f2"> 
                    <TD width=70 height=22 align=right>单位网址：</TD>
                    <TD colspan="2">　<%=rs("website")%></TD>
                    <TD align="center">&nbsp;</TD>
                  </TR>
                  <TR bgcolor="#FFFFFF"> 
                    <TD width=70 height=22 align=right> 交　　通：</TD>
                    <TD colspan="3">　<%=rs("traffic")%></TD>
                  </TR>
                  <TR bgcolor="f2f2f2"> 
                    <TD width=70 
                            height=93 align=right vAlign=top> 
                      <P style="MARGIN-TOP: 5px">公司简介：</P></TD>
                    <TD colSpan=3 vAlign=top> 
                      <table width="99%" border="0" align="center" cellpadding="0" cellspacing="6">
                        <tr> 
                          <td><%=rs("content")%></td>
                        </tr>
                      </table></TD>
                  </TR>
              </TABLE></TD>
          </TR>
      </TABLE>
	  <%
	    rs.Close
		SET rs = Nothing
	  
	  %>
	   </td>
  </tr>
</table>

</body>
</html>
