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

📄 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="../../../inc/classcount.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 seller_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("seller_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
     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
     '处理生成的内容信息每页显示10条信息
     msg_per_page=10
     If Request("all")="all" or Request("all")="update" 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.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
	
	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/seller_3.asp>"
 	    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&"seller/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> "
	

  '用于显示属于该第三级分类中的信息总量
	   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

 
	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
	'是否为特色商机类型
 '是否为特色商机类型
	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"
	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&"seller/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")&" height=64 width=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&"</TABLE></TD>"&vbCrlf
	    HOPE_body=HOPE_body&"<TD width='35%' class=cate><A class=M  href="&HOPE_InstallDir&"seller/offerdetail/"&rs("sortid")&"-"&rs("typeid")&"-"&rs("typeid_2")&"-"&rs("info_id")&".html target=_blank><SPAN class=lh15>"&rs("showname")&"</SPAN></A>"&tsbz&"<BR>"&vbCrlf
	    HOPE_body=HOPE_body&"<font class=""lh15 s"" color=#666666>"&vbCrlf
	If rs("Specifications")<>"" Then
	    HOPE_body=HOPE_body&"规格要求:"&rs("Specifications")&"<BR>"&vbCrlf
	End If
	If rs("Packaging")<>"" Then
	    HOPE_body=HOPE_body&"包装要求:"&rs("Packaging")&"<BR>"&vbCrlf
	End If
	If rs("PriceTerms")<>"" Then
	    HOPE_body=HOPE_body&"价格要求:"&rs("PriceTerms")&"<BR>"&vbCrlf
	End If
	    HOPE_body=HOPE_body&""&Left(rs("content"),30)&"...<BR>"&vbCrlf
	    HOPE_body=HOPE_body&"</font>"
	    HOPE_body=HOPE_body&"<FONT color=#666666>"&rs("dateandtime")&"发布</FONT> <BR>"&vbCrlf
	    HOPE_body=HOPE_body&"</TD>"&vbCrlf
	    HOPE_body=HOPE_body&"<TD align=middle width='10%' class=s>"&vbCrlf
	If rs("Quantity")<>"" Then
	    HOPE_body=HOPE_body&""&rs("Quantity")&""
	End If
	    HOPE_body=HOPE_body&"</TD>"&vbCrlf
	    HOPE_body=HOPE_body&"<TD class=s align=middle width='10%'>"&vbCrlf
	
 	
 	    HOPE_body=HOPE_body&" <FONT class=c><b>"&rs("trust_score")&"</b></FONT> "
 	  

⌨️ 快捷键说明

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