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

📄 makelist.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/safe.asp"-->
	<!--#include file="../../../inc/filesystem.asp"--> 
 	<!--#include file="../../../inc/classcount.asp"-->
	<!--#include file="../index/temp_inc.asp"-->
   <!--#include file="../makerole.asp"-->

<%


'过滤内容中出现的html代码,引用时用 “RemoveHTML(调用内容)”

Function RemoveHTML(strHTML) 
Dim objRegExp, Match, Matches 
Set objRegExp = New Regexp 
objRegExp.IgnoreCase = True 
objRegExp.Global = True 
'取闭合的<> 
objRegExp.Pattern = "<.+?>" 
'进行匹配 
Set Matches = objRegExp.Execute(strHTML) 
' 遍历匹配集合,并替换掉匹配的项目 
For Each Match in Matches 
strHtml=Replace(strHTML,Match.Value,"") 
Next 
RemoveHTML=strHTML 
Set objRegExp = Nothing 
End Function

'定义结束。

   '读取模板^^^^^^^^^^^start^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	Set rs=Server.createobject("adodb.recordset")
	rs.Open ("select corporation_type 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("corporation_type")
	rs.Close
	End If
   '^^^^^^^^^^^^^^^^^^end ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

 '获取要生成的条数…………………………………………………………
   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_2 order by typeID 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_2 Where  typeID  between "&id1&" and  "&id2&" order by typeID desc"),conn,1,1
	 End If
	 
     If not rs.Eof Then
     rs.pagesize=MaxPerPage
     mpage=rs.pagecount     '得到总页数
	 If currentPage>mpage Then 
			 Response.Write "<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;<b>生成完毕  &nbsp;完成时间:"&now()&"</b>"
			 Response.end
	End If
     rs.move  (currentPage-1)*MaxPerPage
       If mpage>=currentPage Then
         ttid=rs("typeID")
		 sttid=rs("sortID")
       End If
     End If
     rs.Close
     If ttid="" Then 
	 ttid=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=15
     If Request("all")="all" or Request("all")="update" Then
	 Set rs=Server.createobject("adodb.recordset")
     rs.Open ("select * from Websen_corporation where typeID="&ttid&" and  flag=1 order by trust_score 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="&ttid&""),conn,1,1
		
		
		
		'该二级类别的下级类别的显示处理^^^^^^^^^^^^^^^^^^^^^^^^^
     Set rstype=Server.createobject("adodb.recordset")
		rstype.Open ("select * from Websen_class_3 where typeid="&ttid&""),conn,1,1
     If rstype.Eof Then
		HOPE_Type=HOPE_Type&""
     Else
	    HOPE_type=HOPE_type&"<script src='"&HOPE_InstallDir&"autokind/autokind.js'></script><input type='text' id='installurltr'  style='display:none; width:12;height:1'  value="&HOPE_InstallDir&"autokind/com_3.asp>"
		HOPE_Type=HOPE_Type&"<div class='yoleft'>按<strong>分类</strong>筛选:</div><div class='yorift'><table width='600' border='0' cellspacing='0' cellpadding='0'><tr>"
		
     do while not rstype.Eof
		
		'获取属于该类别公司总量^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		Com_Count=""
     Set comrsc=Server.CreateObject("adodb.recordset")
		 comcsql="select  count(*) as totalcom from Websen_corporation  where   typeid_2="&rstype("typeid_2")
		 comrsc.Open comcsql,conn,1,1
     If not comrsc.Eof Then
     If comrsc("totalcom")>0 Then
		Com_Count="("&comrsc("totalcom")&")"
     Else
		Com_Count=""
     End If
		comrsc.Close
     End If
		
		 '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		
		
		HOPE_Type=HOPE_Type&"<td height=10 valign=top><a class=M href='"&HOPE_InstallDir&"corporation/offerlist/"&rstype("sortid")&"-"&rstype("typeid")&"-"&rstype("typeid_2")&".html'  onclick='AjaxSearchtr("&rstype("typeid_2")&")'>"&rstype("typename_2")&"</a>"
		HOPE_Type=HOPE_Type&"<font class=s> "&Com_Count&"</font></td>"
     a=a+1
     If a=4 Then
		HOPE_Type=HOPE_Type&"</tr><tr>"
		a=0
     End If
		rstype.movenext
      loop
		rstype.Close
		  HOPE_Type=HOPE_Type&"</tr></table></div>"
     End If
		'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		
		
		
		
		'************** 开始读取内容开始 ***************
		 
     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 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=105 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&">"&vbCrlf		
		HOPE_body=HOPE_body&"<td width='1%' class='peyen'>&nbsp;</td>"&VbCrLf
		HOPE_body=HOPE_body&"<TD width=""60%"" valign='top' class='peyen'>"&vbCrlf
'--是否使用的名片页------------------------------------------------------------

⌨️ 快捷键说明

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