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

📄 makeofferlist.asp

📁 网胜B2B电子商务蓝色风格2008SP6.0.1普及版
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<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="../../../inc/classcount.asp"-->
	<!--#include file="../index/temp_inc.asp"-->
   <!--#include file="../makerole.asp"-->
	 

<%
	'获取模板^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	 Set rs=Server.CreateObject("adodb.recordSet")
	rs.Open ("select brand_type2 from [Websen_worldec_Temp] where yx_selected=1"),conn,1,1
	If rs.Eof Then 
	     Response.Write("<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=red>对不起!该模版不存在!</font><a href='#' onclick='javascript:window.close();'>关闭</a>")
	     Response.End()
    End If
   If Not rs.Eof Then
	pencat=rs("brand_type2")
	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("page2")<>"" then
      If Cint(Request("page2"))<1 then
         currentPage2=1
      Else
         currentPage2=Cint(Request("page2"))
      End If
   Else        
      currentPage2=1        
   End If
    
	'逐个生成信息
	  MaxPerPage=1
     If Request("all")="all" then
		 Set rs=Server.CreateObject("adodb.recordSet")
			rs.Open ("select * from Websen_class_3 order by typeid_2 desc"),conn,1,1
	 ElseIf Request("all")="update"  then 
	 		id1=Replace(Request("id1"),"'","")
			id2=Replace(Request("id2"),"'","")
		 Set rs=Server.CreateObject("adodb.recordSet")
        rs.Open ("select * from Websen_class_3 Where  typeid_2  between  "&id1&" and "&id2&" order by typeid_2 desc"),conn,1,1		
     End If
     If not rs.Eof then
     rs.Pagesize=MaxPerPage
     mpage=rs.Pagecount     '得到总页数
     rs.Move  (currentPage-1)*MaxPerPage
       If mpage>=currentPage then
         ttid=rs("typeid_2")
		 tytid=rs("typeID")
		 sttid=rs("sortID")
       End If
     End If
     rs.Close
	 If ttid="" Then 
	 ttid=0 
	 End If 
	 If tytid="" Then
	 tytid=0
	 End If
	 If sttid="" Then
	 sttid=0 
	 End If
     '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	 
     Response.Write "<b>已生成/要生成的三级分类:<font color=#FF0000>"&currentPage-1&"</font>/<font color=#FF0000><b>"&mpage&"</b></font>个"
      If mpage<currentPage then
          Response.Write ",完成时间"&Now()&"</b> "
      Else
 
      msg_per_page=10
     If Request("all")="all"  or  Request("all")="update" then
	 Set rs=Server.CreateObject("adodb.recordSet")
        rs.Open ("select * from Websen_post where type_class2="&ttid&" and flag=1 order by id desc"),conn,1,1
     End If
     If not rs.Eof then
	 totalrec=RS.RecordCount'总记录条数
     rs.pagesize=msg_per_page  '每页数
     mpage2=rs.pagecount     '得到总页数
	 rowcount=msg_per_page
     rs.move  (currentPage2-1)*MaxPerPage
       If mpage2>=currentPage2 then
         tttid=currentPage2
       End If
     End If
%>
	<!--#include file="../../../inc/headpage_html.asp"-->
	<%	 
	Set rssort1=Server.CreateObject("adodb.recordSet")
	rssort1.Open ("select * from Websen_class_1 where sortID="&sttid&""),conn,1,1
	
	Set rssort=Server.CreateObject("adodb.recordSet")
	rssort.Open ("select * from Websen_class_2 where typeID="&tytid&""),conn,1,1
	
	Set rssort2=Server.CreateObject("adodb.recordSet")
	rssort2.Open ("select * from Websen_class_3 where typeID_2="&ttid&""),conn,1,1
	
 	
	If rs.Eof then
	HOPE_body=HOPE_body&"<br><br><div align='center' class='s'>此类暂无求购信息</div><br>"
	Else
	
	    i=1
		HOPE_body=HOPE_body&"<script type='text/javascript' src='"&HOPE_InstallDir&"autokind/showmsgrole.js'></script><script   language='vbscript'>sub   window_onload() AjaxSearchmsg() end  sub </script><input type='text' id='installurlmsg'   style='display:none; width:12;height:1'  value='"&HOPE_InstallDir&"autokind/showmsgrole.asp'/>"
	
	do while not rs.Eof and rowcount > 0
	
		HOPE_body=HOPE_body&"<TABLE width='100%' height=85 border=0 align=center cellPadding=0 cellSpacing=0>"&vbCrlf
		HOPE_body=HOPE_body&"<TBODY>"&vbCrlf
		HOPE_body=HOPE_body&"<TR"
	If icolor=0 then 
		HOPE_body=HOPE_body&" bgColor=#ffffff" 
	Else 
		HOPE_body=HOPE_body&" bgColor=#f6f6f6" 
	End If
		HOPE_body=HOPE_body&">"
		HOPE_body=HOPE_body&"<TD align=middle width='12%' >"&vbCrlf 
		HOPE_body=HOPE_body&"<TABLE class=porductborder height=64 cellSpacing=0 cellPadding=0 width=64 border=0>"&vbCrlf
		HOPE_body=HOPE_body&"<TR>"&vbCrlf 
		HOPE_body=HOPE_body&"<TD align=middle>"&vbCrlf 
	If rs("draw")<>"" then
		HOPE_body=HOPE_body&"<A class=s href="&HOPE_InstallDir&"brand/offerdetail/"&rs("sortid")&"-"&rs("typeid")&"-"&rs("typeid_2")&"-"&rs("info_id")&".html target=_blank>"
		HOPE_body=HOPE_body&"<IMG src="&HOPE_InstallDir&"Vipcom/"&rs("user")&"/"&rs("draw")&" border=0 width=100 height=100> </A>" 
	Else
		HOPE_body=HOPE_body&"<div class='bick_photo'>无图</div>"
	End If
		HOPE_body=HOPE_body&"</TD>"&vbCrlf
		HOPE_body=HOPE_body&"</TR>"&vbCrlf
		HOPE_body=HOPE_body&"</TABLE></TD>"&vbCrlf
		HOPE_body=HOPE_body&"<TD width='3%' class='peyen'></TD>"&vbCrlf
		HOPE_body=HOPE_body&"<TD width='40%' valign='top' style=' line-height:160%; padding-top: 5px'><A class=M href="&HOPE_InstallDir&"brand/offerdetail/"&rs("sortid")&"-"&rs("typeid")&"-"&rs("typeid_2")&"-"&rs("info_id")&".html target=_blank><SPAN style=' font-size: 15px; font-weight: bold; color:#001D4C'>"&rs("showname")&"</SPAN></A><BR>"&vbCrlf
'--是否使用的名片页------------------------------------------------------------
	   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
		HOPE_body=HOPE_body&"<a href='http://"&rs("user")&"."&WebUrl1&"'   target=_blank class=s><font color=#666666>"&rs("qymc")&"</font></A>"
	Else
		HOPE_body=HOPE_body&"<A href='"&HOPE_InstallDir&"vipcom/"&rs("user")&"/'  target=_blank class=s><font color=#666666>"&rs("qymc")&"</font></A>"
	End If
	'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	
	Else
	
		HOPE_body=HOPE_body&"<A href='"&HOPE_InstallDir&"Ptcom/"&rs("user")&".html'   target=_blank class=s><font color=#666666>"&rs("qymc")&"</font></A>"
	End If
	rsmp.close
	end if
	
		HOPE_body=HOPE_body&"<FONT color=#666666> </FONT><FONT color=#666666>"&rs("dateandtime")&"</FONT> <BR>"
'--是否使用的名片页------------------------------------------------------------
	   set rsmp1=server.CreateObject("adodb.recordset")
	   sqlmp1="select * from Websen_vipgrade where roleid="&rs("gradeid")
	   rsmp1.open sqlmp1,conn,1,1
	   FileFlag=rsmp1("FileFlag")
	   if not rsmp1.eof  then
	   if instr(rsmp1("rolelist"),"qw")>0 then	  		
	'用于二级域名处理^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	If is2weburl=1 Then
		HOPE_body=HOPE_body&"<A href='http://"&rs("user")&"."&WebUrl1&"/supply1.htm'  target=_blank class=s><FONT color=#666666>该会员所有供应信息</FONT></A> <a   href='http://"&rs("user")&"."&WebUrl1&"'  target=_blank><font color='#666666'>查看该会员企业网站</font></a>"
	Else
		HOPE_body=HOPE_body&"<A href='"&HOPE_InstallDir&"vipcom/"&rs("user")&"/supply1.htm' target=_blank class=s><FONT color=#666666>该会员所有供应信息</FONT></A> <a target='_blank' href='"&HOPE_InstallDir&"vipcom/"&rs("user")&"/'><font color='#666666'>查看该会员企业网站</font></a>"
	End If
	'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 	End If
	rsmp1.close
	end if


        HOPE_body=HOPE_body&"<a href='#HOPE_InstallDir#member/getprice/message.asp?info_id="&rs("info_id")&"' target='_blank'><img src='#HOPE_InstallDir#images/wansen_xj.gif' width='69' height='21' border='0' /></a>&nbsp;&nbsp;&nbsp; <a href='#HOPE_InstallDir#Vipcom/"&rs("user")&"/Contact.htm' target='_blank'><img src='#HOPE_InstallDir#images/wansen_lx.gif' width='69' height='21' border='0' /></a></TD>"&vbCrlf
       HOPE_body=HOPE_body&"<TD width=""15%"" align=center><img border=""0"" src=""../../UploadFile/vipgrade/"&FileFlag&""" width=20></td>"
 		HOPE_body=HOPE_body&"<TD width=""13%"" class=S align=center style="" padding-left 0px"">"&vbCrlf
		HOPE_body=HOPE_body&"<FONT style="" FONT-SIZE: 12px""><img src=""../../images/trust.gif"" width=22 height=14 border=0><br>"&rs("trust_score")&"</FONT><br> "
		HOPE_body=HOPE_body&"</TD>"&vbCrlf
		HOPE_body=HOPE_body&"<TD class=s align=middle width='15%' valign='top' style=' padding-top: 15px'>"&vbCrlf
		HOPE_body=HOPE_body&"<div align=center style='padding-top: 15px'>"&vbCrlf
	
	If rs("country")="中国" Then 
		HOPE_body=HOPE_body&""&rs("sf")&"-"&rs("city")&"" 
	Else 
		HOPE_body=HOPE_body&""&rs("country")&"" 
	End If
		If rs("tm")<>"" then	

⌨️ 快捷键说明

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