⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makedetail.asp

📁 网胜B2B电子商务蓝色风格2008SP6.0.1普及版
💻 ASP
📖 第 1 页 / 共 3 页
字号:
<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无效 %>
	<!--#include file="../../../conn/conn.asp"-->
	<!--#include file="../../../inc/safe.asp"-->
	<!--#include file="../index/temp_inc.asp"-->
	<!--#include file="../../../inc/filesystem.asp"--> 
<%
	    if issession=0 then
		   gsid=Replace_Text(request.Cookies("Yxmemberid"))
		   else
		   gsid=session("id")
		 end if
 	if  gsid=""   then 
		Response.Redirect(HOPE_InStallDir&"login/login1.asp")
	End If
%>
<%
	 Set rs=Server.createobject("adodb.recordSet")
	rs.Open ("select productshow_detail from [Websen_worldec_Temp] where yx_selected=1"),conn,1,1
	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")="update" Then
  	if Trim(Request("M_other"))<>"Product" then Response.end
	 Set rs=Server.createobject("adodb.recordSet")
			id1=replace(Request("id1"),"'","")
			id2=replace(Request("id2"),"'","")
			If isnumeric(id2)=false or isnumeric(id2)=false Then Response.Write "参数传递错误" :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
     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&" <small>></small> "
	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&" <small>></small> "
	HOPE_Type=HOPE_Type&"<a href='"&HOPE_InstallDir&"productshow/trade/"&rssorttype("sortid")&"-"&rssorttype("typeid")&".html'>"&rssorttype("typename")&"</a>"
	HOPE_Type=HOPE_Type&" <small>></small> "
	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.idate as proidate,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,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")&" &nbsp; <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
	'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		
		'^交流方式^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		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
		
					 '--是否使用的名片页------------------------------------------------------------
	   set rsmp=server.CreateObject("adodb.recordset")
	   sqlmp="select * from Websen_vipgrade where roleid="&rs("gradeid")
	   rsmp.open sqlmp,conn,1,1
	   if not rsmp.eof  then
	   if instr(rsmp("rolelist"),"qw")>0 then		
		'公司信息'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
			If is2weburl=1 Then
			Websen_Related=Websen_Related&"<table width='98%' border='0' cellspacing='0' cellpadding='0' align='center'><tr><td width='52%' height='26'><A href='http://"&rs("user")&"."&weburl1&"' target=_blank><img src='#HOPE_InstallDir#Blue/fl_bg.gif' width='121' height='25' border='0' /></a>"
			Else
			Websen_Related=Websen_Related&"<table width='98%' border='0' cellspacing='0' cellpadding='0' align='center'><tr><td width='52%' height='26'><A href='"&HOPE_InstallDir&"vipcom/"&rs("user")&"/' target=_blank><img src='#HOPE_InstallDir#Blue/fl_bg.gif' width='121' height='25' border='0' /></a>"
			End If
			Else 
		    Websen_Related=Websen_Related&"<table width='98%' border='0' cellspacing='0' cellpadding='0' align='center'><tr><td width='52%' height='26'><A href='"&HOPE_InstallDir&"Ptcom/"&rs("user")&".html' target=_blank><img src='#HOPE_InstallDir#Blue/fl_bg.gif' width='121' height='25' border='0' /></A>" 
		End If 
			Websen_Related=Websen_Related&"</td><td width='48%'></td>"
			if instr(rsmp("rolelist"),"qw")>0 then
			Websen_Related=Websen_Related&"</tr><td height='25' colspan='2'><A href='"&HOPE_InstallDir&"vipcom/"&rs("user")&"/supply1.htm' target=_blank>最新供应</a> | <A href='"&HOPE_InstallDir&"vipcom/"&rs("user")&"/About.htm' target=_blank>公司介绍</a></td>"
			else
			Websen_Related=Websen_Related&""
			end if
			Websen_Related=Websen_Related&"</tr><tr><td height='25' colspan='2'>经营模式: &nbsp;"&rs("Qylb")&"</td></tr>"
			Websen_Related=Websen_Related&"<tr><td height='25' colspan='2'>会员评价总数:" 

⌨️ 快捷键说明

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