sca_view.asp

来自「购物网站源码有需要的赶快下载机不可失」· ASP 代码 · 共 140 行

ASP
140
字号
<%dbdns="../../"%>
<!--#include file="../../inc/conn.asp"-->
<!--#include file="../cook.asp"-->
<%if fla3<>1 then
response.write "<script>alert('操作权限出错,您没有权限操作些功能');history.go(-1);</Script>"
Response.End 
end if%>
<%id=request("id")

set rs=server.createobject("adodb.recordset")
sql="select * from SMT_sca where SMT_id="&id&""
rs.open sql,conn,1,1
if rs.eof then
response.write "<script>alert('操作出错,下面是产生错误的可能原因:\n\n·此内容不存在或已过期');history.go(-1);</script>"
response.end
else

scatitle=rs("SMT_scatitle")
sca=rs("SMT_sca")
pic1=rs("SMT_pic1")
pic2=rs("SMT_pic2")
pic3=rs("SMT_pic3")
mainpic=pic1
if mainpic="img/null.bmp" then mainpic=pic2
if mainpic="img/null.bmp" then mainpic=pic3
yp_id=rs("SMT_yp_id")
ypxxtwo_id=rs("SMT_ypxxtwo_id")
begindate=rs("SMT_begindate")
lastdate=rs("SMT_lastdate")
end if
rs.close
sql="select * from SMT_ypxxtwo where SMT_ypxxtwo_id="&ypxxtwo_id
rs.open sql,conn,1,1
ypxxtwo=rs("SMT_ypxxtwo")
ypxxone=rs("SMT_ypxxone")
ypxxone_id=rs("SMT_ypxxone_id")
rs.close%>

<%=citycss%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=scatitle%> - <%=citytitle%></title>
<body style="margin:0">


<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td valign="top">
<!--==================-->
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr><td height=40 bgcolor=#efefef style="border:1px #cc3300 solid">&nbsp; <font color=#000000 class=f18><strong><%=scatitle%></strong></font><%if lastdate<now() then%> <font color=red>(此商机已过期)</font><%end if%></td></tr>
<tr><td height=10></td></tr>
<%if yp_id<>0 then
sql="select * from SMT_yp where SMT_id="&yp_id
rs.open sql,conn,1,1
user=rs("SMT_user")
goname=user
goid=rs("SMT_id")
set rs1=server.createobject("adodb.recordset")
sql1="select *  from SMT_ypaddtwo where SMT_addtwo_id="&rs("SMT_addtwo_id")
rs1.open sql1,conn,1,1
coadd=" <font color=0000ff>["&rs1("SMT_addtwo")&"/"&rs1("SMT_addone")&"]</font>"
rs1.close%>
<!--#include file="../../dns/dns.asp"-->
<tr><td>
<!---============-->
<table width="760" 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("SMT_coname")%>&nbsp;<%if rs("SMT_vip")=2 then%><img src="../../img/vip.gif" title="VIP会员"><%end if%><br>
企业法人:<%=rs("SMT_cofr")%><br>
成立时间:<%=rs("SMT_codate")%><br>
企业性质:<%=rs("SMT_coxz")%><br>
经营模式:<%=rs("SMT_cojy")%>
	</td>
    <td width=50%><p style="line-height:150%">
地  址:<%=rs("SMT_coaddress")%><%=coadd%><br>
邮  编:<%=rs("SMT_coyb")%><br>
联系电话:<%=rs("SMT_cotelq")%>-<%=rs("SMT_cotel")%><br>
传  真:<%=rs("SMT_cofaxq")%>-<%=rs("SMT_cofax")%><br>
企业邮箱:<a href="mailto:<%=rs("SMT_mail")%>" target=_blank><%=rs("SMT_mail")%></a><br>
网  址:<a href="<%=usertwourl%>" target=_blank><%=usertwourl%></a><br>
联 系 人:<%=rs("SMT_colxr")%> (<%=rs("SMT_colxrsex")%>)

	</td>
  </tr>
  <tr>
    <td width=50% colspan=2 align=right><a href="<%=usertwourl%>" target=_blank class=red>想更深入的了解该企业请点击进入</a></td>
  </tr>
</table>
<!---============-->
</td></tr>
<%rs.close
end if%>
<tr><td height=30 bgcolor=#efefef style="border-top:2px #cc3300 solid">&nbsp; <font color=#000000 class=f14><strong>详细说明</strong></font></td></tr>
<!---->
<table width="90%" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td height=80><p style="line-height:150%" class=f14><%=code_jk(sca)%><br><br></td>
  </tr>
</table>
<!---->
</td></tr>
<%if pic1<>"img/null.bmp" or pic2<>"img/null.bmp" or pic3<>"img/null.bmp" then%>
<tr><td height=10></td></tr>
<tr><td height=30 bgcolor=#efefef style="border-top:2px #cc3300 solid">&nbsp; <font color=#000000 class=f14><strong>展示图片</strong></font></td></tr>
<tr><td height=10></td></tr>
<tr><td>
<script language="javascript">
function showpic(i)
{
	var obj=document.getElementById("bigpic");
	obj.innerHTML="<img src="+i+" onload='javascript:if(this.width>600){this.width=600}' border=0>"
}
</script>
<table width="760" border="0" cellspacing="0" cellpadding="0" align=center>
  <tr>
    <td width="640" align=center><div id="bigpic"><img src=../../<%=mainpic%> border=0 onload='javascript:if(this.width>600){this.width=600}'></div></td>
    <td width="120" align=center valign=top>
	  <table width="100%" border="0" cellspacing="0" cellpadding="0" align=center>
	    <%if pic1<>"img/null.bmp" then%><tr><td align=center><img src=../../<%=pic1%> border="1" width="100" onclick="showpic(this.src)" style="cursor:hand "></td></tr>
		<tr><td height=5>&nbsp;</td></tr><%end if%>
        <%if pic2<>"img/null.bmp" then%><tr><td align=center><img src=../../<%=pic2%> border="1" width="100" onclick="showpic(this.src)" style="cursor:hand "></td></tr>
		<tr><td height=5>&nbsp;</td></tr><%end if%>
        <%if pic3<>"img/null.bmp" then%><tr><td align=center><img src=../../<%=pic3%> border="1" width="100" onclick="showpic(this.src)" style="cursor:hand "></td></tr><%end if%></table></td></tr></table></td></tr>
<%end if%>
</table>
<!--==================-->
	</td>
  </tr>
</table>
<!--==============-->

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?