📄 makedetail.asp
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charSet=gb2312">
<title>生成产品所有内容页</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #E4EDF9;
}
body,td,th {
font-size: 12px;
}
-->
</style>
</head>
<body>
<%
data_path="../../../" 'ACC连接数据库路径,对SQL无效
dir="no"
numid="no"
%>
<!--#include file="../../../conn/conn.asp"-->
<!--#include file="../../../inc/filesystem.asp"-->
<!--#include file="../../../inc/safe.asp"-->
<!--#include file="../index/temp_inc.asp"-->
<!--#include file="../makerole.asp"-->
<%
Set rs=Server.createobject("adodb.recordSet")
rs.Open ("select productshow_detail from [Websen_worldec_Temp] where yx_selected=1"),conn,1,1
If rs.Eof Then
Response.Write("<br><br> <font color=red>对不起!该模版不存在!</font><a href='#' onclick='javascript:window.close();'>关闭</a>")
Response.End()
End If
If Not rs.Eof Then
pencat=rs("productshow_detail")
rs.Close
End If
If Request("page")<>"" Then
If Cint(Request("page"))<1 Then
currentPage=1
Else
currentPage=Cint(Request("page"))
End If
Else
currentPage=1
End If
If Request("TopNew")>"" Then
If ChkRequest(Request("TopNew")) Then
TopNew=Request("TopNew")
Else
Response.Redirect (HOPE_InstallDir&"login/chklogin.asp?login=4")
End If
End If
MaxPerPage=1
If Request("all")="all" Then
Set rs=Server.createobject("adodb.recordSet")
rs.Open ("select id,sortid,typeid,typeid_2,gsid,cpmc from Websen_productshow where flag=1 order by idate asc"),conn,1,1
ElseIf Request("all")="update" Then
Set rs=Server.createobject("adodb.recordSet")
If Request("schtml")="开始生成从未生成的" Then
rs.Open ("select id,sortid,typeid,typeid_2,gsid,cpmc from Websen_productshow where html_pass=0 and flag=1 order by idate asc"),conn,1,1
Else
id1=replace(Request("id1"),"'","")
id2=replace(Request("id2"),"'","")
If isnumeric(id2)=false or isnumeric(id2)=false Then Response.Write "ID应用数字" :Response.end
rs.Open ("select id,sortid,typeid,typeid_2,cpmc,gsid from Websen_productshow where id between "&id1&" and "&id2&" and flag=1 order by idate asc"),conn,1,1
End If
End If
If not rs.Eof Then
rs.pagesize=MaxPerPage
mpage=rs.pagecount '得到总条数
If currentPage>mpage Then
Response.Write "生成完成,完成时间"&Now()&"</b> "
Response.end
End If
If TopNew<>"" Then
currentPage=mpage-TopNew
End If
rs.move (currentPage-1)*MaxPerPage
If mpage>=currentPage Then
ttid=rs("id")
sortid=rs("sortid")
typeid=rs("typeid")
typeid_2=rs("typeid_2")
showname=rs("cpmc")
End If
Else
Response.Write "没有要生成的信息"
Response.end
End If
rs.Close
If ttid="" Then
ttid=0
End If
If sortid="" Then
sortid=0
End If
If typeid="" Then
typeid=0
End If
If typeid_2="" Then
typeid_2=0
End If
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If typeid_2=0 Then
sorttype="select Websen_class_2.typeid,Websen_class_2.typename,Websen_class_1.sort,Websen_class_1.sortid from Websen_class_2,Websen_class_1 where Websen_class_2.typeid="&typeid&" and Websen_class_1.sortid=Websen_class_2.sortid"
Set rssorttype=Server.CreateObject("adodb.recordSet")
rssorttype.Open sorttype,conn,1,1
If not rssorttype.Eof Then
HOPE_Sort=HOPE_Sort&"<a href='"&HOPE_InstallDir&"productshow/trade/"&rssorttype("sortid")&".html'>"&rssorttype("sort")&"</a>"
HOPE_Sort=HOPE_Sort&" > "
HOPE_Type=HOPE_Type&"<a href='"&HOPE_InstallDir&"productshow/trade/"&rssorttype("sortid")&"-"&rssorttype("typeid")&".html'>"&rssorttype("typename")&"</a>"
rssorttype.Close
End If
Else
sorttype="select Websen_class_3.typeid_2,Websen_class_3.typename_2,Websen_class_2.typeid,Websen_class_2.typename,Websen_class_1.sort,Websen_class_1.sortid from Websen_class_3,Websen_class_2,Websen_class_1 where Websen_class_3.typeid_2="&typeid_2&" and Websen_class_2.typeid=Websen_class_3.typeid and Websen_class_1.sortid=Websen_class_2.sortid"
Set rssorttype=Server.CreateObject("adodb.recordset")
rssorttype.Open sorttype,conn,1,1
If not rssorttype.Eof Then
HOPE_Sort=HOPE_Sort&"<a href='"&HOPE_InstallDir&"productshow/trade/"&rssorttype("sortid")&".html'>"&rssorttype("sort")&"</a>"
HOPE_Sort=HOPE_Sort&" > "
HOPE_Type=HOPE_Type&"<a href='"&HOPE_InstallDir&"productshow/trade/"&rssorttype("sortid")&"-"&rssorttype("typeid")&".html'>"&rssorttype("typename")&"</a>"
HOPE_Type=HOPE_Type&" > "
HOPE_Type=HOPE_Type&"<a href='"&HOPE_InstallDir&"productshow/offerlist/"&rssorttype("sortid")&"-"&rssorttype("typeid")&"-"&rssorttype("typeid_2")&".html'>"&rssorttype("typename_2")&"</a>"
rssorttype.Close
End If
End If
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Set rs=Server.createobject("adodb.recordSet")
rs.Open ("select Websen_productshow.id as proid,Websen_productshow.flag as proflag,Websen_productshow.gsid,Websen_productshow.sortid as prosortid,Websen_productshow.typeid as protypeid,Websen_productshow.cpmc,Websen_productshow.cpgg,Websen_productshow.cpcd,Websen_productshow.xxsm,Websen_productshow.cpsb,Websen_productshow.Quantity,Websen_productshow.Packaging,Websen_productshow.Cpjg,Websen_productshow.idate as proidate,Websen_productshow.picture,Websen_productshow.picture_summ,Websen_productshow.picture,Websen_corporation.* from Websen_productshow,Websen_corporation where Websen_productshow.id="&ttid&" and Websen_corporation.id=Websen_productshow.gsid and Websen_productshow.flag=1"),conn,1,1
If not rs.Eof Then
gsid=rs("gsid")
Else
Response.Write "暂无相关信息"
Response.end
End If
'标志此条信息为已经生存HTML
conn.execute("update Websen_productshow Set html_pass=1 where id="&ttid&"")
xunjiaid=rs("proid")
If rs("picture")<>"../../UploadFile/nopicture.gif" Then
HOPE_Pic=HOPE_Pic&"<div class='pic_bg'><a href='"&HOPE_InstallDir&"Vipcom/"&rs("user")&"/"&rs("picture")&"' target='_blank'><IMG src="&HOPE_InstallDir&"Vipcom/"&rs("user")&"/"&rs("picture")&" border=0 width=250 height=250></div>"
Else
HOPE_Pic=HOPE_Pic&"<div class='pic_bg'><img src='"&HOPE_InstallDir&"images/nopic_250x200.gif' width='250' height='250' border='0'></div>"
End If
HOPE_AddTime=HOPE_AddTime&""&FormatDate(rs("proidate"),1)&""
HOPE_EndTime=HOPE_EndTime&""&FormatDate(rs("proidate"),1)&""
HOPE_CorName=HOPE_CorName&"<script type='text/javascript' src='"&HOPE_InstallDir&"showrolemsg.js'></script><script language='vbscript'>sub AjaxSearchmsg() end sub </script><input type='text' id='installurlmsg' style='display:none; width:12;height:1' value='"&HOPE_InstallDir&"'/>"
''--是否使用的名片页------------------------------------------------------------
set rsmp1=server.CreateObject("adodb.recordset")
sqlmp1="select * from Websen_vipgrade where roleid="&rs("gradeid")
rsmp1.open sqlmp1,conn,1,1
if not rsmp1.eof then
if instr(rsmp1("rolelist"),"qw")>0 then
If is2weburl=1 Then
HOPE_CorName=HOPE_CorName&"<A href='http://"&rs("user")&"."&weburl1&"' target=_blank>"&rs("qymc")&" </A> "
Else
HOPE_CorName=HOPE_CORNAME&"<A href='"&HOPE_InstallDir&"vipcom/"&rs("user")&"/' target=_blank>"&rs("qymc")&"</A> "
End If
Else
HOPE_CorName=HOPE_CorName&"<A href='"&HOPE_InstallDir&"Ptcom/"&rs("user")&".html' target=_blank>"&rs("qymc")&" </A>"
end if
rsmp1.close
end if
HOPE_LianXi=HOPE_LianXi&"<div id='search_resultmsg1' style=""display:none""><A href=""mailto:"&rs("email")&""">"&rs("name")&"</A> "&rs("ch")&" <br><img src="&HOPE_InstallDir&"images/icon_tianjiasy.gif width=13 height=12 align=absmiddle border=0> <a href="&HOPE_InstallDir&"member/myfriend/addfriend.asp?user="&rs("user")&" target=_blank >添加为商业伙伴</a></div><br>"
HOPE_AskId=rs("proid")
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'msn交谈
IF rs("msn")<>"" Then
HOPE_online=HOPE_online&"MSN:<a href='msnim:chat?contact="&rs("msn")&"'><img alt='点击这里发MSN消息' align='absMiddle' border='0' onerror=""this.onerror=null;this.src='http://osi.hshh.org/msnunknown.gif';"" src='http://osi.hshh.org:8888/msn/"&rs("msn")&"' /> <br><hr size='1' noshade> "
End If
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'msn交谈
IF rs("msn")<>"" Then
HOPE_online=HOPE_online&"MSN:<a href='msnim:chat?contact="&rs("msn")&"'><img alt='点击这里发MSN消息' align='absMiddle' border='0' onerror=""this.onerror=null;this.src='http://osi.hshh.org/msnunknown.gif';"" src='http://osi.hshh.org:8888/msn/"&rs("msn")&"' /> <br><hr size='1' noshade> "
End If
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'^交流方式^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If rs("tm")="" Then
HOPE_online=HOPE_online&"未使用TM通讯"&vbCrlf
Else
HOPE_online=HOPE_online&"<a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin="&rs("tm")&"Site=www.websen.net&Menu=yes><img border='0' SRC='#HOPE_InstallDir#images/onlineqt.gif' alt='点击这里给我发消息'></a>"&vbCrlf
End If
' 所在地'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Websen_Address=Websen_Address&"所 在 地:"&rs("Country")&" "&rs("Sf")&"省 "&rs("City")&"市"
HOPE_ZiShu=HOPE_ZiShu&"<strong><font color=red style=""font-size:14px"">"&rs("trust_score")&"</font></strong>"
HOPE_GsRint=HOPE_GsRint&"已通过认证"
HOPE_CorCount=HOPE_CorCount&"<style type='text/css'>.cardSelected{background-color: #DB121F;} .cardNormal{background-color: #EFD9C0;}.cardSpace{background-color: #ffffff;}</style><table border=0 cellspacing=0 cellpadding=0 width='100%' id=secTable class=cardFont>"
HOPE_CorCount=HOPE_CorCount&"<tr align=center><td width=40% height=27 class=cardSelected onclick='secCard(1);secBoard(0);'>指数"
HOPE_CorCount=HOPE_CorCount&"<strong>"&rs("trust_score")&"</strong>"
HOPE_CorCount=HOPE_CorCount&"</td><td class=cardSpace width=6> </td>"
HOPE_CorCount=HOPE_CorCount&"<td width=30% height=27 class=cardNormal onclick='secCard(2);secBoard(1);'>公司信息</td>"
HOPE_CorCount=HOPE_CorCount&"<td class=cardSpace width=6> </td>"
HOPE_CorCount=HOPE_CorCount&"<td width=30% height=27 class=cardNormal onclick='secCard(3);secBoard(2);' nowrap><img src="&HOPE_InstallDir&"images/icon_contact.gif width=23 height=15 align=absmiddle border=0 hspace=3>联系信息</td>"
HOPE_CorCount=HOPE_CorCount&"</tr>"
HOPE_CorCount=HOPE_CorCount&"</table>"
HOPE_CorCount=HOPE_CorCount&"<table border=0 cellspacing=0 cellpadding=0 width='100%' height=38 id=mainTable class=boardMain>"
HOPE_CorCount=HOPE_CorCount&"<tbody style='display:blank;'>"
HOPE_CorCount=HOPE_CorCount&"<tr>"
HOPE_CorCount=HOPE_CorCount&"<td width=100 align=center> "
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -