<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/config.asp"-->
<!--#include file="../../inc/safe.asp"-->
<%
if Chkrequest(request("id")) then
id=request("id")
else
Response.Redirect ("../../login/chklogin.asp?login=4")
end if

sql1="select qymc,click,email,phone,web,cimg from corporation where id="&id&" and flag=1" 
set rs1=conn.execute(sql1)
if rs1.eof or rs1.bof then
response.write"<SCRIPT language=JavaScript>alert('对不起，该用户不存在或非商贸通会员！');"
response.write"javascript:window.close();</SCRIPT>" 
else

conn.execute("update corporation set click=click+1 where id="&id&"") 

sql="select * from corporation where id="&session("id")&"" 
Set rs= Server.CreateObject("ADODB.Recordset") 
rs.open sql,conn,1,1

%>
<HTML><HEAD><TITLE><%=rs1("qymc")%></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="images/style.css" type=text/css rel=stylesheet>
<script LANGUAGE="JavaScript">
//-->
function trim(inputString) {
	   
              if (typeof inputString != "string") { return inputString; }
              var retValue = inputString;
              var ch = retValue.substring(0, 1);
              while (ch == " ") { 
	          //检查字符串开始部分的空格
                  retValue = retValue.substring(1, retValue.length);
                  ch = retValue.substring(0, 1);
              }
              ch = retValue.substring(retValue.length-1, retValue.length);
              while (ch == " ") {
                 //检查字符串结束部分的空格
                 retValue = retValue.substring(0, retValue.length-1);
                 ch = retValue.substring(retValue.length-1, retValue.length);
              }
              while (retValue.indexOf("  ") != -1) { 
	         //将文字中间多个相连的空格变为一个空格
                 retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); 
              }
              return retValue;
           } 

//--> 
function check()
{
if (trim(document.Form1.linkman.value)=="")
{
alert("请填写联系人")
document.Form1.linkman.focus()
document.Form1.linkman.select()
return
}
if (trim(document.Form1.company.value)=="")
{
alert("请填写公司名称")
document.Form1.company.focus()
document.Form1.company.select()
return
}
if (trim(document.Form1.address.value)=="")
{
alert("请填写联系地址")
document.Form1.address.focus()
document.Form1.address.select()
return
}
if (trim(document.Form1.phone.value)=="")
{
alert("请填写联系电话")
document.Form1.phone.focus()
document.Form1.phone.select()
return
} 
if (trim(document.Form1.email.value)=="")
{
alert("请填写电子邮件")
document.Form1.email.focus()
document.Form1.email.select()
return
} 
var str1 = document.Form1.email.value
if(str1.indexOf("@") == -1 || str1.indexOf(".") == -1){ 
alert("E-mail格式不正确,请重新填写"); 
document.Form1.email.focus();
document.Form1.email.select();
return false; 
} 
if (trim(document.Form1.content.value)=="")
{
alert("反馈信息不能为空")
document.Form1.content.focus()
document.Form1.content.select() 
return
}
document.Form1.submit()
}
</SCRIPT>
</HEAD>
<BODY leftMargin=0 topMargin=0>
<TABLE width="750" border=0 align="center" cellPadding=0 cellSpacing=0>
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" background="images/headbg.gif" border=0>
          <TBODY>
            <TR> 
              <TD width=250 vAlign=middle align=center>
<%
if rs1("cimg")>"" then 
response.write"<img src='../../member/corporation/"&rs1("cimg")&"' border=0>"  
else
response.write"<img src='images/logo.gif' border=0>"
end if
%>	  
			  </TD>
              <TD vAlign=middle align=center style="FONT-WEIGHT: bold; FILTER: dropshadow(color=#C2C2C2,offx=1,offy=1,positive=-1); font-size:16pt; LINE-HEIGHT: 20px; COLOR: #333333; TEXT-DECORATION: none"><%=rs1("qymc")%></TD>
            </TR>
          </TBODY>
        </TABLE></TD></TR>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#252525 
      background="images/under.gif" 
        border=0><TBODY>
        <TR>
          <TD vAlign=top width=170 height=30>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD height=2><IMG height=1 
                  src="images/1pix.gif" 
                  width=1></TD></TR>
              <TR>
                      <TD class=jiange align=middle height=23><A onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('<%=rs1("web")%>');" 
      href="<%=rs1("web")%>"><font color=#f0ffff>·设为首页</font></A> &nbsp;
	                    <A href="javascript:window.external.AddFavorite('<%=rs1("web")%>','<%=rs1("qymc")%>')" 
            target=_self><font color=#f0ffff>·加入收藏</font></A></TD>
                    </TR></TBODY></TABLE></TD>
          <TD vAlign=top>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" align=center 
            border=0>
              <TBODY>
              <TR>
                <TD height=2><IMG height=1 
                  src="images/1pix.gif" 
                  width=1></TD></TR>
              <TR>
                      <TD class=jiange align=right height=23>
					  ||　<a href="index.asp?id=<%=id%>"><font color=#f0ffff>公司简介</font></a>
					  ||　<a href="product.asp?id=<%=id%>"><font color=#f0ffff>产品展示</font></a>
					  ||　<a href="tradeinfo.asp?id=<%=id%>"><font color=#f0ffff>供求信息</font></a>
					  ||　<a href="work.asp?id=<%=id%>"><font color=#f0ffff>人才招聘</font></a>
					  ||　<a href="contact.asp?id=<%=id%>"><font color=#f0ffff>客户反馈</font></a>
					  ||　<a href="link.asp?id=<%=id%>"><font color=#f0ffff>联系我们</font></a>&nbsp;					  					  					  					 
                      </TD>
                    </TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD background="images/line2.gif" 
      height=5><IMG height=1 
      src="images/1pix.gif" width=1></TD></TR>
  <TR>
    <TD height=20>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD>&nbsp; </TD>
          <TD vAlign=top width=750>
            <TABLE cellSpacing=0 cellPadding=0 width=750 border=0>
              <TBODY>
              <TR>
                <TD vAlign=top>
                  <TABLE cellSpacing=0 cellPadding=0 width=750 border=0>
                    <TBODY>
                    <TR>
                      <TD bgColor=#ffffff>
                        <TABLE cellSpacing=0 cellPadding=0 width=750 border=0>
                          <TBODY>
                          <TR>
                            <TD width=319></TD>
                            <TD vAlign=top width=431>
                              <TABLE cellSpacing=0 cellPadding=0 width=431 
                              border=0>
                                <TBODY>
                                <TR>
								<FORM name=form action="search.asp?id=<%=id%>" method=post>
                                <TD vAlign=middle align=right height=38><IMG 
                                height=20 
                                src="images/icon-search.gif" 
                                width=30 align=absMiddle><select align=absMiddle class=button2 name="start">
                                      <option selected value=0> 
                                      ------------
                                      </option>
									  <option value=1> 
                                      产品名称
                                      </option>
									  <option value=2> 
                                      产品型号
                                      </option>
									  <option value=3> 
                                      产品产地
                                      </option>
									  <option value=4> 
                                      产品说明
                                      </option>
                                    </select> <INPUT class=input2 name="search"> 
									<input type="image" border="0" name="imageField2" src="images/searchbtn.jpg" width="36" height="18" align="absMiddle">
									&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                                </TD></form></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
                    <TR>
                      <TD bgColor=#dedddd height=1><IMG height=1 
                        src="images/1pix.gif" 
                        width=1></TD></TR>
                    <TR>
                      <TD class=bbsindex-kuang1 align=middle bgColor=#ffffff>
                        <TABLE cellSpacing=0 cellPadding=0 width=748 border=0>
                          <TBODY>
                          <TR>
                            <TD>
                              <TABLE cellSpacing=0 cellPadding=0 width=749 
                              border=0>
                                <TBODY>

                                
                                
                                <TR>
								
								
								<TD vAlign=top align=middle>
                                <TABLE cellSpacing=0 cellPadding=0 width=220 
                                border=0>
                                <TBODY>
                                <TR>
                                <TD>
                                <TABLE cellSpacing=1 cellPadding=0 width=220 
                                bgColor=#ebebeb border=0>
                                <TBODY>
                                <TR>
                                <TD vAlign=top bgColor=#f7f7f7 height=180>
                                <TABLE cellSpacing=0 cellPadding=0 width=220 
                                align=center border=0>
                                <TBODY>
                                <TR>
                                <TD bgColor=#f7f7f7><IMG height=30 
                                src="images/myfav.gif" 
                                width=119></TD></TR>
                                <TR>
                                <TD 
                                background="images/ogd-tbbg.jpg" 
                                height=6><IMG height=1 
                                src="images/1pix.gif" 
                                width=1></TD></TR>
                                <TR>
                                <TD vAlign=top height=170>
<!--产品分类开始-->                                
								<table>
<%
set bigrs=conn.execute("select * from productclass where gsid="&id&"")
if bigrs.eof or bigrs.bof then
response.write"<div align=center>暂无产品</div>"
else
do while not bigrs.eof
mybigclassid=bigrs("bigclassid")
%>									  
                                <TR> 
                                 <TD width="2%"><IMG height=12 src="images/dot.gif" width=12 align=absMiddle border=0></TD>
                                     <TD width="98%"><A 
                              href="product.asp?id=<%=id%>&bigclassid=<%=mybigclassid%>"><B><%=bigrs("bigclassName")%></B></A></TD>
                                        </TR>										
                                        <TR> 
                                          <TD width="2%">&nbsp;</TD>
                                          <TD width="98%">
<%
set smallrs=conn.execute("select * from productclass_1 where gsid="&id&" and bigclassid="&mybigclassid&"")
if smallrs.eof then
response.write""
else
do while not smallrs.eof
%>								  
								  <A href="product.asp?id=<%=id%>&smallclassid=<%=smallrs("smallclassid")%>"><%=smallrs("smallclassName")%></A>　
<%
smallrs.movenext
loop
end if
smallrs.close
set smallrs=nothing
%>										  
										  </TD>
                                        </TR>
<%
bigrs.movenext
loop
end if
bigrs.close
set bigrs=nothing
%>								
								</table>
<!--产品分类结束--> 								
                                </TD></TR>
								<TR>
                                <TD>&nbsp; </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
                               </TBODY></TABLE></TD>
								
								
                                <TD vAlign=top 
                                align=middle height=80>
                                <TABLE cellSpacing=0 cellPadding=0 width=470 
                                border=0>
                                <TBODY>
                                <TR>
                                <TD>
                                <TABLE cellSpacing=1 cellPadding=4 width=468 
                                align=center bgColor=#ebebeb border=0>
                                                          <TBODY>
                                                            <TR vAlign=bottom bgColor=#c6ed8f> 
                                                              <TD vAlign=center width="28%" bgColor=#ffcc00 
                                height=25> <DIV class=st10 align=center><font color="#333333">客户反馈</font></DIV></TD>
                                                              <TD vAlign=center width="72%" bgColor=#ffff99 
                                height=18>&nbsp;</TD>
                                                            </TR>
                                                            <TR bgColor=#ffffff> 
                                                              <TD height=25 colspan="2">
															  
<table width="90%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#f7f7f7" id="AutoNumber10" style="border-collapse: collapse">
              <form method="POST" action="booksave_info.asp" name="Form1">
<tr>
                  <td> 
                    <TABLE border=0 cellPadding=3 cellSpacing=4>
                      <TBODY>
<TR>
                          <TD><FONT color=#CC3300>*</FONT> 联&nbsp;系&nbsp;人:</TD>
                          <TD> 
                            <input name="linkman" type="text" value="<%=rs("name")%>" size="40" maxlength="50"></TD></TR>
<TR>
                          <TD><FONT color=#CC3300>*</FONT> 公司名称:</TD>
                          <TD> 
                            <input name="company" type="text" value="<%=rs("qymc")%>" size="40" maxlength="50"></TD></TR>
<TR>
                          <TD><FONT color=#CC3300>*</FONT> 联系地址:</TD>
                          <TD> 
                            <input name="address" type="text" value="<%=rs("address")%>" size="40" maxlength="50"></TD></TR>
<TR>
<TD width="80">&nbsp; 邮&nbsp;&nbsp;&nbsp;&nbsp;编:</TD>
<TD width="227">
<input name="postcode" type="text" value="<%=rs("post")%>" size="40" maxlength="10"></TD></TR>
<TR>
                          <TD><FONT color=#CC3300>*</FONT> 电&nbsp;&nbsp;&nbsp;&nbsp;话:</TD>
                          <TD> 
                            <input name="phone" type="text" value="<%=rs("phone")%>" size="40" maxlength="20"></TD></TR>
<TR>
                          <TD>&nbsp; 传&nbsp;&nbsp;&nbsp;&nbsp;真:</TD>
                          <TD> 
                            <input name="fax" type="text" value="<%=rs("fax")%>" size="40" maxlength="20"></TD></TR>
<TR>
                          <TD><FONT color=#CC3300>*</FONT> 电子邮件:</TD>
                          <TD> 
                            <input name="email" type="text" value="<%=rs("email")%>" size="40" maxlength="50"></TD></TR>
							<tr>
                  <td colspan="2" valign="top"><FONT color=#CC3300>*</FONT> 
                    意见建议:&nbsp;&nbsp;<br> 
                    <TEXTAREA cols=66 name=content rows=6 style="border-style: solid; border-width: 1"></TEXTAREA></td>
</tr>
</TBODY>
</TABLE></td> 
 
</tr>

<input type="hidden" name="bookid" value="<%=id%>">
<tr>
                  <td height="30" colspan="2" align="center"> 
                    <input type="button" value="确 定" onclick="check()">&nbsp;&nbsp;&nbsp;&nbsp;
<INPUT name=reset class="smallinput" type="reset" value="重 填">
</td> 
</tr>
</form>
</table>					  
															  
															  </TD>
                                                            </TR>
                                                          </TBODY>
                                                        </TABLE></TD></TR>

                                <TR>
                                <TD align=middle>
                                <TABLE cellSpacing=0 cellPadding=0 width="100%" 
                                border=0>
                                <TBODY></TBODY></TABLE></TD></TR>
                                </TBODY></TABLE></TD>
                                </TR></TBODY></TABLE></TD></TR>
                          <TR>
                            <TD align=middle height=20>
                              <TABLE cellSpacing=0 cellPadding=0 width=730 
                              border=0>
                                <TBODY>
                                <TR>
                                <TD bgColor=#dedddd height=1><IMG height=1 
                                src="images/1pix.gif" 
                                width=1></TD></TR></TBODY></TABLE></TD></TR>


                          <TR bgColor=#f7f7f7>
                            <TD height=30>&nbsp;您是第 
<%
countlen=len(rs1("click"))
for i=1 to 6-countlen
counter=counter&"<img src='../number/0.gif'>" 
next 
for i=1 to countlen
counter=counter&"<img src='../number/"&mid(rs1("click"),i,1)&".gif'>" 
next 
response.write counter			
%> 
							位访客 欢迎您的光临! 最佳显示分辨率 800*600.　
							联系电话:<%=rs1("phone")%> 　Email:<a href="mailto:<%=rs1("email")%>"><%=rs1("email")%></a><br>
                                        &nbsp;技术支持：<a href=<%=weburl%> target=_blank><%=webname%></a>　热线电话:<%=hottel%>　传真:<%=hotfax%>
                                      </TD>
                                    </TR>
                          <TR>
                            <TD bgColor=#ebebeb height=1><IMG height=1 
                              src="images/1pix.gif" 
                              width=1></TD></TR>
                          </TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
                </TR></TBODY></TABLE></TD>
          <TD>&nbsp; </TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>

        <TR>
          <TD>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" bgColor=#252525 
            background="images/under2.gif" 
            border=0>
              <TBODY>
              <TR>
                <TD class=en2 align=middle height=30><SPAN class=en2><FONT 
                  color=#cccccc>&copy; <%=rs1("qymc")%> 版权所有</FONT></SPAN></TD>
                <TD align=middle width=80><A 
                  href="#top"><IMG height=11 
                  src="images/gotop.gif" 
                  width=67 border=0></A></TD>
                <TD align=middle width=80><A 
                  href="javascript:location.reload()"><IMG height=11 
                  src="images/ref.gif" 
                  width=67 
    border=0></A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</BODY></HTML>
<%
end if
rs1.close
set rs1=nothing
rs.close
set rs=nothing
conn.close
set conn=nothing
%>