maketrade.asp
来自「实现一个用JSP、Servlet技术实现的小型物流网站系统。实现功能如下:管理员」· ASP 代码 · 共 438 行 · 第 1/2 页
ASP
438 行
<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 productshow_sort 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("productshow_sort")
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_1 order by sortID 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> <b>生成完毕完成时间:"&now()&"</b>"
Response.End
End If
rs.move (currentPage-1)*MaxPerPage
If mpage>=currentPage Then
sortid=rs("sortid")
sortname=rs("sort")
End If
End If
rs.Close
If sortid="" Then
sortid=0
End If
Response.Write "<b>已生成/要生成的1级分类:<font color=#FF0000>"¤tPage-1&"</font>/<font color=#FF0000><b>"&mpage&"</b></font>个"
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
If mpage<currentPage Then
Response.Write ",完成时间"&Now()&"</b> "
Else
'商品比较标签#HOPE_BJ(typeid)#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'参数:typeid----1 为横向分单元格显示;0--为纵向分行显示
Function HOPE_BJ(typeid)
If typeid<=0 Then
typeid=0
Else
typeid=1
End If
strs=""
strs=" <script type='text/javascript' src='"&HOPE_InstallDir&"compare.js'></script><script language='javascript' >function zhu(str){ if(str.checked){ document.getElementById('searchwordb').value= document.getElementById('searchwordb').value+str.value; }else{ document.getElementById('searchwordb').value=document.getElementById('searchwordb').value.replace(str.value,''); } } </script> <div> <input type='text' id='searchwordb' style='display:none' value=''/><input type='text' id='installurlb' style='display:none; width:12;height:1' value="&HOPE_InstallDir&" /> <input type='text' id='typeid' style='display:none; width:12;height:1' value="&typeid&" /> </div> <div id='search_resultb'></div>"
HOPE_BJ=strs
End Function
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
'^^查处属于第一类的所有二级分类^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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/pro_2.asp>"
HOPE_Type=HOPE_Type&"<table width=""100%"" border=""1"" bordercolor=#EAEAEA cellspacing=""0"" cellpadding=""0""><tr><td>"
HOPE_Type=HOPE_Type&"<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"">"
HOPE_Type=HOPE_Type&"<TR><td>〖<b><font color=#3287BA>"&sortname&"</font></b>〗</td></tr>"
sqltype="select * from Yixiang_class_2 where sortid="&sortid&""
Set rstype=Server.CreateObject("adodb.recordSet")
rstype.Open sqltype,conn,1,1
If rstype.Eof Then
HOPE_Type=HOPE_Type&"<br>暂无行业二级分类<br><br>"
Else
j=1
do while not rstype.Eof
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
secCount=0
Set sesers=Server.CreateObject("adodb.recordSet")
sesesql="select count(*) as totalse from yixiang_Class_3 where typeid="&rstype("typeid")
sesers.Open sesesql,conn,1,1
If not sesers.Eof Then
If sesers("totalse")>0 Then
secCount="<font color=red>"&sesers("totalse")&"</font>"
Else
secCount=0
End If
End If
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
HOPE_Type=HOPE_Type&"<TD valign=top align=left>"
HOPE_Type=HOPE_Type&"<table border=0 cellspacing=""0"" cellpadding=""1"" width='95%'>"
HOPE_Type=HOPE_Type&"<tr><td align=""left"" height=25 valign=top width='2%'><img src="""&HOPE_InstallDir&"images/icon_4x7_arrow2.gif"" width=""4"" height=""12""></td>"
HOPE_Type=HOPE_Type&"<td width=""98%"" valign=top class=""s"" align=left> <span class=lh15><A href='"&HOPE_InstallDir&"productshow/trade/"&sortid&"-"&rstype("typeid")&".html' class=M onclick='AjaxSearchtr("&rstype("typeid")&")'><b>"&rstype("typename")&"</b></A> <span class=""S"">("&secCount&")</span> <br>"
HOPE_Type=HOPE_Type&"</span></td></tr></table></TD>"
If j mod 2 = 0 Then
HOPE_Type=HOPE_Type&"</TR><tr>"
End If
rstype.movenext
j=j+1
loop
End If
HOPE_Type=HOPE_Type&"</TABLE></td><tr></table>"
'^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
msg_per_page=15
If Request("all")="all" Then
sql="select wygkcn_productshow.id,wygkcn_productshow.sortid,wygkcn_productshow.Cpmc,wygkcn_productshow.typeid,wygkcn_productshow.xxsm,wygkcn_productshow.Cpcd,wygkcn_productshow.typeid_2,wygkcn_productshow.idate,wygkcn_productshow.picture,wygkcn_corporation.qymc,wygkcn_corporation.[user],wygkcn_corporation.flag as cflag,wygkcn_corporation.Address,wygkcn_corporation.msn,wygkcn_corporation.gradeid,wygkcn_corporation.tm,wygkcn_corporation.Phone,wygkcn_corporation.mobile from wygkcn_productshow,wygkcn_corporation where wygkcn_productshow.sortid="&sortid&" and wygkcn_productshow.flag=1 and wygkcn_corporation.id=wygkcn_productshow.gsid and wygkcn_productshow.typeid=0 and wygkcn_productshow.typeid_2=0 order by wygkcn_corporation.trust_score desc"
Set rs= Server.CreateObject("ADODB.RecordSet")
rs.Open sql,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"-->
<%
If rs.Eof Then
HOPE_body=HOPE_body&"<table border=0 cellpadding=0 cellspacing=0 width='100%' align=center><tr><td height='23' class=""s"" align=""center"">暂无直属于该类的产品信息<input name=""postOffer"" type=""button"" value=""立即枪占此推荐位!"" onclick=location.href="""&HOPE_InstallDir&"member/tradeinfo/add_info.asp""></td></tr></table>"
Else
jjcom=1
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 jjcom mod 2 =0 Then
colors="#F6F6F6"
Else
color="#FFFFFF"
End If
HOPE_body=HOPE_body&"<table border=1 bordercolor=#EEEEEE width='100%' cellpadding=0 cellspacing=0 ><tr><td><table width=""100%"" border=""0"" cellpadding=""0"" cellspacing=0>"
HOPE_body=HOPE_body&"<tr bgcolor="&colors&"><TD align=center width='15%'><font color=#cccccc>比较</font><input type='checkbox' name='id' value='"&rs("id")&",' onclick='zhu(this);' />"
If rs("picture")<>"../../UploadFile/nopicture.gif" or rs("picture")<>"" Then
HOPE_body=HOPE_body&" <A class=s href='"&HOPE_InstallDir&"productshow/offerdetail/"&rs("sortid")&"-"&rs("typeid")&"-"&rs("typeid_2")&"-"&rs("id")&".html' target=_blank><IMG src='"&HOPE_InstallDir&"vipcom/"&rs("user")&"/"&rs("picture")&"' border=0 width=64 height=64> </A>"&VbCrLf
Else
HOPE_body=HOPE_body&" <FONT class=C color=#cecfce>无图</FONT>"
End If
HOPE_body=HOPE_body&"</TD>"&VbCrLf
HOPE_body=HOPE_body&" <td width='40%' style='word-break:break-all'> "&VbCrLf
HOPE_body=HOPE_body&"<a href='"&HOPE_InstallDir&"productshow/offerdetail/"&rs("sortid")&"-"&rs("typeid")&"-"&rs("typeid_2")&"-"&rs("id")&".html' target=_blank><b>"&rs("Cpmc")&"</b></a><br> <font color=#C5C8C9>["&year(rs("idate"))&"-"&month(rs("idate"))&"-"&day(rs("idate"))&"]</font><br>"&Left(rs("xxsm"),30)&"......<br>"
'--是否使用的名片页------------------------------------------------------------
set rsmp=server.CreateObject("adodb.recordset")
sqlmp="select * from yixiang_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>"&rs("qymc")&"</a> "&VbCrLf
Else
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?