<!--#include file="main1.asp"-->
<%id=request("id")
if id="" or IsNumeric(id)<>true then
response.write"请输入正确的ID号！"
response.end
end if

set rs=server.createobject("adodb.recordset")
sql="select * from dlxf_sca where dlxf_id="&id&" and dlxf_key=1 and dlxf_key1=1 and dlxf_key2=1"
rs.open sql,conn,1,1
if rs.eof then
response.write "<script>alert('操作出错，下面是产生错误的可能原因：\n\n·此内容不存在或已过期');history.go(-1);</script>"
response.end
else
conn.execute("update dlxf_sca set dlxf_htc=dlxf_htc+1 where dlxf_id="&id)
scatitle=rs("dlxf_scatitle")
sca=rs("dlxf_sca")
yp_id=rs("dlxf_yp_id")
ypxxtwo_id=rs("dlxf_ypxxtwo_id")
begindate=rs("dlxf_begindate")
lastdate=rs("dlxf_lastdate")
end if
rs.close
sql="select * from dlxf_ypxxtwo where dlxf_ypxxtwo_id="&ypxxtwo_id
rs.open sql,conn,1,1
ypxxtwo=rs("dlxf_ypxxtwo")
ypxxone=rs("dlxf_ypxxone")
ypxxone_id=rs("dlxf_ypxxone_id")
rs.close%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<link href="css/Untitled-1.css" rel="stylesheet" type="text/css">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=scatitle%> - <%=citytitle%></title>
<body topmargin="0">
<%dlxf_TOP%>

<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td valign="top">
<!--==================-->
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr><td height=25>当前位置：<a href=index.asp>首页</a> >> <a href=sca.asp>商贸机会</a> >> <a href=sca_list.asp?id=<%=ypxxone_id%>&scasort=999><%=ypxxone%></a> >> <a href=sca_vlist.asp?id=<%=ypxxtwo_id%>><%=ypxxtwo%></a> >> 正文</td></tr>
<tr><td height=40 class="redbar">&nbsp; <font color=#000000 class=f18><strong><%=scatitle%></strong></font><%if lastdate<now() then%> <font color=red>(此商机已过期)</font><%end if%></td></tr>

<tr><td align="right">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr><td align="right"><img src="img/item.gif" border=0 align=absmiddle> <a onClick="window.print()" style="cursor:hand">我要打印</a>
&nbsp;<img src="img/collection.gif" border=0 align=absmiddle> <a href=# onClick="javascript:window.external.AddFavorite('<%=application("cityurl")%>sca_view.asp?id=<%=id%>','<%=scatitle%>');return false">IE收藏</a>
&nbsp;<img src="img/gwb.gif" border=0 align=absmiddle> <a href=# onClick="javascript:window.open('collection.asp?tit=<%=scatitle%>&page=sca_view.asp?id=<%=id%>','_n','width=300,height=150');return false">放入公文包</a>
&nbsp;<%if int(goid)=int(user_id) or userflag18=1 then
response.write"<img src='img/icon_info_01.gif' border=0 align=absmiddle> <a href=#book>我要留言</a>　"
end if
if int(goid)=int(user_id) or userflag19=1 then
response.write"<img src='img/icon_info_02.gif' border=0 align=absmiddle> <a href=#view>查看留言</a>&nbsp;"
end if%>
</td></tr></table>
</td></tr>

<%if yp_id<>0 then
sql="select *  from dlxf_yp where dlxf_id="&yp_id
rs.open sql,conn,1,1
if not rs.eof then
goname=rs("dlxf_user")
goid=rs("dlxf_id")
govip=rs("dlxf_vip")
set rs1=server.createobject("adodb.recordset")
sql1="select *  from dlxf_ypaddtwo where dlxf_addtwo_id="&rs("dlxf_addtwo_id")
rs1.open sql1,conn,1,1
coadd=" <font color=1587DE>["&rs1("dlxf_addtwo")&"/"&rs1("dlxf_addone")&"]</font>"
rs1.close%>
<tr><td>
<!--#include file="dns/dns.asp"-->
<!---============-->
<table width="100%" border="0" cellspacing="10" cellpadding="0" style="border:1px #cccccc solid" bgcolor=#fafafa>
  <tr>
    <td width=50% style="border-bottom:3px #efefef solid"><strong>基本信息</strong></td>
    <td width=50% style="border-bottom:3px #efefef solid"><strong>联系方式</strong></td>
  </tr>
  <tr>
    <td width=50%><p style="line-height:150%">
发布时间：<%=year(begindate)&"年"&month(begindate)&"月"&day(begindate)&"日"%><br>
有效期至：<%=year(lastdate)&"年"&month(lastdate)&"月"&day(lastdate)&"日"%><br>
公　　司：<%=rs("dlxf_coname")%>&nbsp;<%if rs("dlxf_vip")=2 then%><img src="img/vip.gif" title="VIP会员"><%end if%><br>
企业法人：<%=rs("dlxf_cofr")%><br>
成立时间：<%=rs("dlxf_codate")%><br>
企业性质：<%=rs("dlxf_coxz")%><br>
经营模式：<%=rs("dlxf_cojy")%>
	</td>
    <td width=50%><p style="line-height:150%">
<%userlx="地　　址："&rs("dlxf_coaddress")&coadd&"<br>"&_
"邮　　编："&rs("dlxf_coyb")&"<br>"&_
"联系电话："&rs("dlxf_cotelq")&"-"&rs("dlxf_cotel")&"<br>"&_
"传　　真："&rs("dlxf_cofaxq")&"-"&rs("dlxf_cofax")&"<br>"&_
"企业邮箱：<a href='mailto:"&rs("dlxf_mail")&"' target=_blank>"&rs("dlxf_mail")&"</a><br>"&_
"网　　址：<a href="&usertwourl&" target=_blank>"&usertwourl&"</a><br>"&_
"联 系 人："&rs("dlxf_colxr")&" ("&rs("dlxf_colxrsex")&")"%>
<%dlxf_user_lxfsview=userlx
dlxf_web_lxview%>
	</td>
  </tr>
  <tr>
    <td width=50% colspan=2 align=right><a href="<%=usertwourl%>" target=_blank class=red>想更深入的了解该企业请点击进入</a></td>
  </tr>
</table>
<!---============-->
</td></tr>
<%end if
rs.close
end if%>
<tr><td height=30 bgcolor=#efefef style="border-top:2px #999999 solid">&nbsp; <font color=#000000 class=f14><strong>详细说明</strong></font></td></tr>
<tr><td>
<!---->
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td height=300>
<%if int(goid)=int(user_id) or userflag17=1 then
response.write"<p style='line-height:150%' class=f14>"&sca&"<br><br>"
else
response.write dlxf_user_seeerr
end if%>
	</td>
  </tr>
</table>
<!---->
</td></tr>
<%if yp_id<>0 then%>
<tr><td height=10></td></tr>
<tr><td height=30 bgcolor=#efefef style="border-top:2px #999999 solid">&nbsp; <font color=#000000 class=f14><strong>该公司其他信息</strong></font></td></tr>
<tr><td height=10></td></tr>
<tr><td>
<!--=====-->
<table width="100%" border="0" cellspacing="10" cellpadding="0" style="border:1px #cccccc solid" bgcolor=#fafafa>
  <tr>
    <td width=50% style="border-bottom:3px #efefef solid"><strong><a href="<%=usertwourl%>" target=_blank class=black>最新供求信息</a></strong></td>
    <td width=50% style="border-bottom:3px #efefef solid"><strong><a href="<%=usertwourl%>" target=_blank class=black>企业产品推荐</a></strong></td>
  </tr>
  <tr>
    <td width=50%><p style="line-height:180%">
<%set rs=server.createobject("adodb.recordset")
sql="select top 5 * from dlxf_sca where dlxf_yp_id="&yp_id&" and dlxf_key=1 and dlxf_key1=1 and dlxf_key2=1 order by dlxf_id desc"
rs.open sql,conn,1,1
do while not rs.eof%>
·<a href=sca_view.asp?id=<%=rs("dlxf_id")%>><strong><%=rs("dlxf_scatitle")%></strong></a> <%=year(rs("dlxf_begindate"))&"-"&month(rs("dlxf_begindate"))&"-"&day(rs("dlxf_begindate"))%><br>
<%rs.movenext
loop
rs.close%>
	</td>
    <td width=50%>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr bgcolor=#ffffff>
<%set rs=server.createobject("adodb.recordset")
sql="select top 3 * from dlxf_cp where dlxf_yp_id="&yp_id&" and dlxf_key=1 and dlxf_key1=1 and dlxf_key2=1 order by dlxf_id desc"
rs.open sql,conn,1,1
if rs.eof then
response.write"<td align=center>暂无产品</td>"
else
do while not rs.eof
cpname=rs("dlxf_cpname")
if len(cpname)>7 then cpname=left(cpname,6)&"..."%>
<td valign=top>
<table width="95%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr><td align="center" height=90><a href=cp_view.asp?id=<%=rs("dlxf_id")%> target="_blank"><img src="<%=rs("dlxf_pic")%>" height=80 width=80 style="border:1px #000000 solid"></a></td></tr>
  <tr>
    <td align="center" height=25><strong><a href=cp_view.asp?id=<%=rs("dlxf_id")%> target="_blank" class=black><%=cpname%></a></strong></td>
  </tr>
</table>
</td>
<%rs.movenext
loop
end if
rs.close%>
  </tr>
</table>
	</td>
  </tr>
</table>
<!--=====-->
</td></tr>
<%end if%>
</table>
<!--==================-->
	</td>
  </tr>
</table>
<!--==============-->
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<%if int(goid)=int(user_id) or userflag19=1 then%>
<a name=view></a>
<tr><td height=5></td></tr>
<tr><td align="center" valign="top"><table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor=#6C94D1>
  <tr>
    <td height=25 bgcolor=#6C94D1><font color=white><strong> &nbsp;&nbsp;&nbsp;给该企业留言
      <%if session("useradmin")<>"" then
  response.Write("您好"&session("useradmin"))
  end if%>
    </strong></font></td>
  </tr>
  <tr>
    <td bgcolor=#ffffff height=25><!--======-->
        <%if session("useradmin")="" then
  response.Write("您还没有登陆，请先<a href=../user_login.asp target=_blank>登陆</a>！")
  else%>
        <table width="90%" border="0" cellspacing="0" cellpadding="5" align=center>
          <form name="addform" method="post" action="user/my_message.asp?action=sendsave" onSubmit="return checkdata()">
            <tr>
              <td width="19%" align=right><font color=red>*</font> 收件人：</td>
              <td width="81%"><input name="dlxf_yp_id" type="text" size="30" ID="magicfacepic(1)" onClick="lookmagic(1)" style="cursor:hand"></td>
            </tr>
            <tr>
              <td width="19%" align=right><font color=red>*</font> 标 题：</td>
              <td width="81%"><input name="dlxf_title" type="text" size="42" maxlength="30"></td>
            </tr>
            <tr>
              <td width="19%" align=right><font color=red>*</font> 内 容：</td>
              <td width="81%"><p style="line-height:180%">
                  <textarea name="dlxf_message" cols=40 rows=5 onkeyUp="textLimitCheck(this, 150);"></textarea>
                  <br>
                限 150 个字符  已输入 <font color="#CC0000"><span id="messageCount">0</span></font> 个字</td>
            </tr>
            <tr>
              <td></td>
              <td><input type="submit" name="Submit" value="发 送" class="input1">
                发送同时抄送到对方邮箱
                <input name="sendto" type="checkbox" value="y"></td>
            </tr>
          </form>
        </table><%end if%></td>
  </tr>
</table></td></tr>
<%end if
if int(goid)=int(user_id) or userflag18=1 then%>
<a name=book></a>
<tr><td height=5></td></tr>
<%end if%>
</table>
<!--====== bottom ========-->
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor=#ffffff>
<tr><td height=3 bgcolor=#FF7300></td>
</tr>
  <tr>
    <td align="center" height=80><%=citybottom%></td>
  </tr>
</table>
</body>
</html>