📄 makedetail_info.asp
字号:
<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="../index/temp_inc.asp"-->
<!--#include file="../makerole.asp"-->
<%
Set rs=Server.CreateObject("adodb.recordSet")
rs.Open ("select expoinfo_detail from [Websen_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("expoinfo_detail")
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("TopNew")>"" then
If ChkRequest(Request("TopNew")) then
TopNew=Request("TopNew")
Else
Response.Redirect (HOPE_InstallDir&"login/chklogin.asp?login=4")
End If
End If
MaxPerPage=1
Set rs=Server.CreateObject("adodb.recordSet")
If Request("all")="all" then
rs.Open ("select * from Websen_expoinfo order by dateandtime asc"),conn,1,1
ElseIf Request("all")="update" then
If Request("schtml")="开始生成从未生成的" Then
rs.Open ("select * from Websen_expoinfo where html_pass=0 order by dateandtime asc"),conn,1,1
Else
id1=Replace(Request("id1"),"'","")
id2=Replace(Request("id2"),"'","")
If Isnumeric(id2)=false or Isnumeric(id2)=false Then Response.Write "ID应用数字" :Response.End
rs.Open ("select * from Websen_expoinfo where id between "&id1&" and "&id2&" order by dateandtime asc"),conn,1,1
End If
End If
If Not rs.Eof then
rs.Pagesize=MaxPerPage
mpage=rs.Pagecount '得到总条数
If TopNew>"" then
currentPage=mpage-TopNew
End If
If currentPage>mpage then
Response.Write "<b>生成完毕</b> 完成时间:"&now()
Response.End
End If
rs.move (currentPage-1)*MaxPerPage
If mpage>=currentPage then
ttid=rs("id")
typeid=rs("typeid")
End If
Else
Response.Write "没有需要生成的数据"
Response.End
End If
HOPE_body=HOPE_body&"<table width=""100%"" border=""0"" cellspacing=""0"">"&VbCrLf
HOPE_body=HOPE_body&" <tr>"&VbCrLf
HOPE_body=HOPE_body&" <td colspan=""2"" align=""left"" class=""lh15"">"&VbCrLf
HOPE_body=HOPE_body&""&rs("content")&""&VbCrLf
HOPE_body=HOPE_body&" </td>"&VbCrLf
HOPE_body=HOPE_body&" </tr>"&VbCrLf
HOPE_body=HOPE_body&" </table>"&VbCrLf
Websen_Todayadd=Websen_Todayadd&""&rs("dateandtime")&""
HOPE_Nform=HOPE_Nform&""&rs("nfrom")&""
'标志此条信息为已经生存HTML
conn.execute("update Websen_expoinfo Set html_pass=1 where id="&ttid&"")
Response.Write "<br><b>已生成/要生成的页面条数:<font color=#FF0000>"¤tPage-1&"</font>/<font color=#FF0000><b>"&mpage&"</b></font>个"
If mpage<currentPage then
Response.Write ",完成时间"&Now()&"</b> "
Else
HOPE_Title=rs("title")
pencat=Hope_HtmlResult(pencat)
Set fso = YXFSO
Set sort_save = fso.CreateTextFile(Server.Mappath(HOPE_InstallDir&"service/expo/info/"&typeid&"-"&ttid&".html"))
sort_save.Write pencat
sort_save.Close
Response.Write "<meta http-equiv=Refresh content='0; URL=makedetail_info.asp?all="&Request("all")&"&id1="&id1&"&id2="&id2&"&page="¤tPage+1&"&schtml="&Request("schtml")&"'>"
End If
Set rs=Nothing
conn.Close
Set conn=Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -