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

📄 makelist.asp

📁 实现一个用JSP、Servlet技术实现的小型物流网站系统。实现功能如下:管理员通过登录该系统
💻 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无效 %>
	<!--#include file="../../../conn/conn.asp"-->
    <!--#include file="../../../inc/filesystem.asp"-->
	<!--#include file="../../../inc/safe.asp"-->
	<!--#include file="../index/temp_inc.asp"-->
 <%
		If Session("globalecmaster")="" OR  Session("adminid")="" Then
              Response.write "<script language='javascript'>"
              Response.write"alert('对不起!请重新登陆!');parent.location.href='"&HOPE_InstallDir&"';</SCRIPT>" 
              Response.End

		End If
 %>

 <%
		'读取模板^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	 Set rs=Server.CreateObject("adodb.recordset")
	 rs.Open ("select tradeinfo_type from Yixiang_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("tradeinfo_type")
		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 Yixiang_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 Yixiang_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     '得到总页数
		 rs.Move  (currentPage-1)*MaxPerPage
		   If mpage>=currentPage Then
			 ttid=rs("typeID")
			 sttid=rs("sortID")
		   End If
		 End If
		 rs.Close
     '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  
      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" Then
	 
	 
	 '查出详细信息只属于该二级分类的产品 ^^^^^^^^^^^^^^^^^^^^^
	 Set rs=Server.CreateObject("adodb.recordset")
     
	  rs.Open ("select Yixiang_info.*,wygkcn_corporation.id,wygkcn_corporation.msn,wygkcn_corporation.flag as corflag,wygkcn_corporation.qymc,wygkcn_corporation.tm,wygkcn_corporation.[user],wygkcn_corporation.country,wygkcn_corporation.sf,wygkcn_corporation.city,wygkcn_corporation.web,wygkcn_corporation.url,wygkcn_corporation.gradeid,wygkcn_corporation.trust_score from Yixiang_Info,wygkcn_corporation where Yixiang_info.typeID="&ttid&" and Yixiang_info.typeid_2=0  and Yixiang_info.type='卖' and wygkcn_corporation.id=Yixiang_info.gsid and Yixiang_info.flag=1 order by wygkcn_corporation.trust_score desc"),conn,1,1
	  
	 '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	 Else  '处理按需生成
	  
	 '查出详细信息只属于该二级分类的产品 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	 Set rs=Server.CreateObject("adodb.recordset")
     
	  rs.Open ("select Yixiang_info.*,wygkcn_corporation.id,wygkcn_corporation.flag as corflag,wygkcn_corporation.qymc,wygkcn_corporation.tm,wygkcn_corporation.[user],wygkcn_corporation.gradeid,wygkcn_corporation.country,wygkcn_corporation.sf,wygkcn_corporation.city,wygkcn_corporation.web,wygkcn_corporation.url,wygkcn_corporation.trust_score from Yixiang_Info,wygkcn_corporation where Yixiang_info.typeID="&ttid&" and Yixiang_info.typeid_2=0  and Yixiang_info.type='卖' and wygkcn_corporation.id=Yixiang_info.gsid and Yixiang_info.flag=1 order by wygkcn_corporation.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 Yixiang_class_1 where sortID="&sttid&""),conn,1,1
	
	Set rssort=Server.CreateObject("adodb.recordset")
	rssort.Open ("select * from Yixiang_class_2 where typeID="&ttid&""),conn,1,1


    '处理显示属于该二级分类的产品和属于该二级分类的所有第三级类别^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    'HOPE_Type属于该二级分类的所有第三级类别
    
 		Set rstype=Server.CreateObject("adodb.recordset")
		rstype.Open ("select * from Yixiang_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/trade_3.asp>"
 		  HOPE_Type=HOPE_Type&" 〖<font color='#3287BA'><b>"&rssort("Typename")&"</b></font>〗相关下级类别:<br>"
		  HOPE_Type=HOPE_Type&"<TABLE width=""98%"" border=""0"" align=""center"" cellpadding=""10"" cellspacing=""0"" class=""blackborder"">"
		  HOPE_Type=HOPE_Type&"<TR><TD align=middle>"
		  HOPE_Type=HOPE_Type&"<TABLE cellSpacing=5 cellPadding=0 width=""95%"" border=0>"
		  HOPE_Type=HOPE_Type&"<TR vAlign=top>"
		Do while not rstype.Eof
		  HOPE_Type=HOPE_Type&"<TD vAlign=top width='25%'><a class=c href='"&HOPE_InstallDir&"tradeinfo/offerlist/"&rstype("sortid")&"-"&rstype("typeid")&"-"&rstype("typeid_2")&".html' onclick='AjaxSearchtr("&rstype("typeid_2")&")'>"&rstype("typename_2")&"</a>"
		  HOPE_Type=HOPE_Type&"<font>"


  '用于显示属于该第三级分类中的信息总量
	   Set prors=Server.CreateObject("adodb.recordset")
	    prosql="select count(Yixiang_info.Info_ID)as CountPro  from Yixiang_Info,wygkcn_corporation where  Yixiang_info.typeid_2="&rstype("typeid_2")&" and Yixiang_info.type='卖' and wygkcn_corporation.id=Yixiang_info.gsid and Yixiang_info.flag=1"
	   prors.Open prosql,conn,1,1
	   If prors.Eof Then
	     HOPE_Type=HOPE_Type&""
	   End If
	   If not prors.Eof Then
	   If prors("CountPro")<=0 Then
	     HOPE_Type=HOPE_Type&"" 
	   Else
	     HOPE_Type=HOPE_Type&"<font style='font-size:12px'>(<font color=red>"&prors("CountPro")&"</font>)</font>"
	   prors.Close
	   End If
	   End If

 	     HOPE_Type=HOPE_Type&"</font></td>"
	     a=a+1
	  If a=4 Then
		 HOPE_Type=HOPE_Type&"</tr>"
	     a=0
	  End If
	  rstype.Movenext
	  loop
	  rstype.Close
		HOPE_Type=HOPE_Type&"</TABLE></TD></TR></TABLE>"
	  End If

      '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 

	  
	'HOPE_body用于显示页面的主题分类信息^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	
	If rs.Eof Then
	   HOPE_body=HOPE_body&"<br><br><div align='center' class='s'>此类暂无具体供应信息</div><br>"
	Else
	Dim i,t,tmon
	   i=1
	   t=1
	   tmon=0
	   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'/>〖<font color='#3287BA'><b>"&rssort("Typename")&"</b></font>〗<font color=red>相关产品:</font>"
	do while not rs.Eof and rowcount > 0
	 '是否为特色商机类型
	if rs("tsbz")=0 then
		tsbz=""
	elseif rs("tsbz")=1 then 
		tsbz="<img src='"&HOPE_InstallDir&"images/xinpin.gif'>"
	elseif rs("tsbz")=2 then 
		tsbz="<img src='"&HOPE_InstallDir&"images/youhui.gif'>"
	elseif rs("tsbz")=3 then 
		tsbz="<img src='"&HOPE_InstallDir&"images/jiangjia.gif'>"
	end if 
	   HOPE_body=HOPE_body&"<TABLE width='100%' height=85 border=0 align=center cellPadding=0 cellSpacing=1>"&vbCrlf
	   HOPE_body=HOPE_body&"<TBODY>"&vbCrlf
	   HOPE_body=HOPE_body&"<TR ID=compareColor"&i&""
	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='5%'> </TD>"&vbCrlf
	    HOPE_body=HOPE_body&"<TD align=middle width='15%' >"&vbCrlf 
	    HOPE_body=HOPE_body&"<TABLE class=porductborder height=64 cellSpacing=0 cellPadding=0 width=64 border=0>"&vbCrlf
	    HOPE_body=HOPE_body&"<TBODY>"&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&"tradeinfo/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")&"'  width='64' height='64'  border=0> </A>" 
		Else
		  HOPE_body=HOPE_body&"<FONT class=C color=#cecfce>无图</FONT>"
		End If
	'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	
		HOPE_body=HOPE_body&"</TD>"&vbCrlf
		HOPE_body=HOPE_body&"</TR>"&vbCrlf
		HOPE_body=HOPE_body&"</TBODY>"&vbCrlf
		HOPE_body=HOPE_body&"</TABLE></TD>"&vbCrlf
		HOPE_body=HOPE_body&"<TD width='40%' class=cate><A class=M href="&HOPE_InstallDir&"tradeinfo/offerdetail/"&rs("sortid")&"-"&rs("typeid")&"-"&rs("typeid_2")&"-"&rs("info_id")&".html target=_blank><SPAN class=lh15>"&rs("showname")&"</SPAN></A>"&tsbz&"<BR>"&vbCrlf
'--是否使用的名片页------------------------------------------------------------
	   set rsmp1=server.CreateObject("adodb.recordset")
	   sqlmp1="select * from yixiang_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_body=HOPE_body&"<a href='http://"&rs("user")&"."&WebUrl1&"'   target=_blank class=s><font color=#666666>"&rs("qymc")&"</font></A>"
	Else

⌨️ 快捷键说明

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