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

📄 show.asp

📁 OA企业智能办公自动化系统边缘特别版 功能非常强大的OA系统 1.仿WINDOWS操作界面
💻 ASP
📖 第 1 页 / 共 4 页
字号:
<%Sub MonthCount
Call MainTitle(Lang.item("m_14"))
%>
<table width="500"  align="center" cellpadding="3" cellspacing="1" class="tableBorder2">
  <tr bgcolor="#CCCCFF"> 
    <th width="60" align="center"><%=Lang.item("g_042")%></th>
    <th width="220" align="center"><%=Lang.item("g_038")%></th>
    <th width="220" align="center"><%=Lang.item("g_039")%></th>
  </tr>
  <%
				dim maxnum1,maxnum2,i,barwidth1,barwidth2
				dim rs,rs2,sql
				set rs=server.createobject("adodb.recordset")
				sql="select top "&MaxRecord&" CMonth,Visitor,PageView from CC_M order by CMonth desc"
				rs.open sql,conn,1,1
				if rs.eof then
					response.write "<tr class=tablebody1><td colspan=3>"&Lang.item("g_045")&"</td></tr>"
				else
					rs.PageSize = MaxPageSize
					rs.absolutepage=PageNo
					i=0
					maxnum1=hx.execute("select max(Visitor) from CC_M")(0)
					maxnum2=hx.execute("select max(PageView) from CC_M")(0)
					do while not rs.eof and i<MaxPageSize
					response.write "<tr class=tablebody1><td align=center>"
					response.write rs(0)
					barwidth1=FormatNum(rs(1)/maxnum1*150,2)
					barwidth2=FormatNum(rs(2)/maxnum2*150,2)
					response.write "</td><td>"
 					response.write "<img height=12 align=absmiddle class=PicBar width="&barwidth1&"> "   
  					response.write rs(1)					
					response.write "</td><td>"
 					response.write "<img height=12 align=absmiddle class=PicBar width="&barwidth2&"> "   
  					response.write rs(2)										
					response.write "</td></tr>"
					i=i+1
					rs.movenext
					loop
					set rs=nothing
				end if
					%>
</table>
<%	hxshow.showPageInfo "CC_M","CMonth","",PageNo,MaxPageSize,"action=M"	%>
<%End Sub%>
<%Sub YearCount
Call MainTitle(Lang.item("m_15"))
%>
<table width="500"  align="center" cellpadding="3" cellspacing="1" class="tableBorder2">
  <tr bgcolor="#CCCCFF"> 
    <th width="60" align="center"><%=Lang.item("g_043")%></th>
    <th width="220" align="center"><%=Lang.item("g_038")%></th>
    <th width="220" align="center"><%=Lang.item("g_039")%></th>
  </tr>
  <%
				dim maxnum1,maxnum2,i,barwidth1,barwidth2
				dim rs,rs2,sql
				set rs=server.createobject("adodb.recordset")
				sql="select top "&MaxRecord&" CYear,Visitor,PageView from CC_Y order by CYear desc"
				rs.open sql,conn,1,1
				if rs.eof then
					response.write "<tr class=tablebody1><td colspan=3>"&Lang.item("g_045")&"</td></tr>"
				else
					rs.PageSize = MaxPageSize
					rs.absolutepage=PageNo
					i=0
					maxnum1=hx.execute("select max(Visitor) from CC_Y")(0)
					maxnum2=hx.execute("select max(PageView) from CC_Y")(0)
					do while not rs.eof and i<MaxPageSize
					response.write "<tr class=tablebody1><td align=center>"
					response.write rs(0)
					barwidth1=FormatNum(rs(1)/maxnum1*150,2)
					barwidth2=FormatNum(rs(2)/maxnum2*150,2)
					response.write "</td><td>"
 					response.write "<img height=12 align=absmiddle class=PicBar width="&barwidth1&"> "   
  					response.write rs(1)					
					response.write "</td><td>"
 					response.write "<img height=12 align=absmiddle class=PicBar width="&barwidth2&"> "   
  					response.write rs(2)										
					response.write "</td></tr>"
					i=i+1
					rs.movenext
					loop
					set rs=nothing
				end if
					%>
</table>
<%	hxshow.showPageInfo "CC_Y","CYear","",PageNo,MaxPageSize,"action=Y"	%>
<%End Sub%>
<%Sub WhereCount
Call MainTitle(Lang.item("m_33"))
Call ShowQuery%> 
<table width="500"  align="center" cellpadding="3" cellspacing="1" class="tableBorder2">
  <tr bgcolor="#CCCCFF"> 
    <th width="280" align="center"><%=Lang.item("g_068")%></th>
    <th width="220" align="center"><%=Lang.item("g_038")%></th>
  </tr>
  <%
	dim maxnum,i,barwidth 
	dim rs,sql
	dim condition
	dim linkstr
	if query="" then
		condition=""
		linkstr="action=Where"
	else
		condition="where [Where] like '%"&query&"%'"
		linkstr="query="&query&"&action=Where"
	end if
	set rs=server.createobject("adodb.recordset")
	sql="select top "&MaxRecord&" [Where],CW from CC_W "&condition&" order by CW desc"
	rs.open sql,conn,1,1
				if rs.eof then
					response.write "<tr class=tablebody1><td colspan=2>"&Lang.item("g_045")&"</td></tr>"
				else
					rs.PageSize = MaxPageSize
					rs.absolutepage=PageNo
					i=0
					if i=0 then maxnum=rs(1)
					do while not rs.eof and i<MaxPageSize
					response.write "<tr class=tablebody1><td>"
					response.write rs(0)
					barwidth=FormatNum(rs(1)/maxnum*150,2)
					response.write "</td><td>"					
 					response.write "<img height=12 align=absmiddle class=PicBar width="&barwidth&"> "   
  					response.write rs(1)
					response.write "</td></tr>"
					i=i+1
					rs.movenext
					loop
					set rs=nothing
				end if
					%>
</table>
<%	hxshow.showPageInfo "CC_W","id",condition,PageNo,MaxPageSize,linkstr%>
<%End Sub%>
<%Sub IpCount
Call MainTitle(Lang.item("m_61"))
Call ShowQuery%> 
<table width="500"  align="center" cellpadding="3" cellspacing="1" class="tableBorder2">
  <tr bgcolor="#CCCCFF"> 
    <th width="140" align="center"><%=Lang.item("g_030")%></th>
    <th width="140" align="center"><%=Lang.item("g_066")%></th>
    <th width="220" align="center"><%=Lang.item("g_038")%></th>
  </tr>
  <%
	dim maxnum,i,barwidth 
	dim rs,sql
	dim condition
	dim linkstr
	if query="" then
		condition=""
		linkstr="action=I"
	else
		query=hx.checkstr(query,20)	
		condition="where Ip like '%"&query&"%'"
		linkstr="query="&query&"&action=I"
	end if
	set rs=server.createobject("adodb.recordset")
	sql="select top "&MaxRecord&" Ip,CIP,vtime from CC_I "&condition&" order by CIP desc"
	rs.open sql,conn,1,1
				if rs.eof then
					response.write "<tr class=tablebody1><td colspan=3>"&Lang.item("g_045")&"</td></tr>"
				else
					rs.PageSize = MaxPageSize
					rs.absolutepage=PageNo
					i=0
					if i=0 then maxnum=rs(1)
					do while not rs.eof and i<MaxPageSize
					response.write "<tr class=tablebody1><td>"
					response.write "&nbsp;<a href=http://union.itlearner.com/ip/ipinfo.asp?ip="&rs(0)&" target=_blank>"
					response.write rs(0)
					response.write "</a>"
					barwidth=FormatNum(rs(1)/maxnum*150,2)
					response.write "</td><td>"
					response.write "&nbsp;"&FormatTime(rs(2))
					response.write "</td><td>"					
 					response.write "<img height=12 align=absmiddle class=PicBar width="&barwidth&"> "   
  					response.write rs(1)
					response.write "</td></tr>"
					i=i+1
					rs.movenext
					loop
					set rs=nothing
				end if
					%>
</table>
<%	hxshow.showPageInfo "CC_I","id",condition,PageNo,MaxPageSize,linkstr%>
<%End Sub%>
<%Sub SIpCount(num)
Select Case num
case 1
	Call MainTitle(Lang.item("m_64"))
case 2
	Call MainTitle(Lang.item("m_63"))
case 3
	Call MainTitle(Lang.item("m_62"))	
End Select
Call ShowQuery%> 
<table width="500"  align="center" cellpadding="3" cellspacing="1" class="tableBorder2">
  <tr bgcolor="#CCCCFF"> 
    <th width="280" align="center"><%=Lang.item("g_030")%></th>
    <th width="220" align="center"><%=Lang.item("g_038")%></th>
  </tr>
  <%
	dim maxnum,i,barwidth 
	dim rs,sql
	dim condition
	dim linkstr
	dim datatable '视图名称
	dim outstr
	datatable="v_SI"&num
	if query="" then
		condition=""
		linkstr="action="&action
	else
		condition="where Ip like '%"&query&"%'"
		linkstr="query="&query&"&action="&action
	end if
	set rs=server.createobject("adodb.recordset")
	sql="select top "&MaxRecord&" Ip,SCIP from "&datatable&" "&condition&" order by SCIP desc"
	rs.open sql,conn,1,1
				if rs.eof then
					outstr = outstr & "<tr class=tablebody1><td colspan=2>"&Lang.item("g_045")&"</td></tr>"
				else
					rs.PageSize = MaxPageSize
					rs.absolutepage=PageNo
					i=0
					if i=0 then maxnum=rs(1)
					do while not rs.eof and i<MaxPageSize
					outstr = outstr & "<tr class=tablebody1><td>&nbsp;"
					select case num
					case 1
						outstr = outstr & rs(0)&".*.*.*"
					case 2
						outstr = outstr & rs(0)&".*.*"
					case 3												
						outstr = outstr & rs(0)&".*"
					end select					
					barwidth=FormatNum(rs(1)/maxnum*150,2)
					outstr = outstr & "</td><td>"					
 					outstr = outstr & "<img height=12 align=absmiddle class=PicBar width="&barwidth&"> "   
  					outstr = outstr & rs(1)
					outstr = outstr & "</td></tr>"
					i=i+1
					rs.movenext
					loop
					set rs=nothing
				end if
				response.write outstr
					%>
</table>
<%	hxshow.showPageInfo datatable,"0",condition,PageNo,MaxPageSize,linkstr%>
<%End Sub%>
<%Sub Page_PV()
dim orderby,ordernum
ordernum=request("ordernum")
if ordernum=1 then
    Call MainTitle(Lang.item("m_03"))
    Call ShowQuery
    orderby="vtime"
else
    ordernum=0
    Call MainTitle(Lang.item("m_22"))
    Call ShowQuery
    Call Showinfo(Lang.item("g_065"))
    orderby="Visitor+PageView"    
end if
%> 
<table width="768"  align="center" cellpadding="3" cellspacing="1" class="tableBorder2">
  <tr bgcolor="#CCCCFF"> 
    <th width="420" align="center"><%=Lang.item("g_031")%></th>
    <th width="128" align="center"><a href=?action=PV&ordernum=1&query=<%=query%>><%=Lang.item("g_066")%></a></th>
    <th width="220" align="center"><a href=?action=PV&query=<%=query%>><%=Lang.item("g_039")%></a></th>
  <%
				dim maxnum,i,barwidth
				dim rs,sql
				dim condition
				dim linkstr
				if query="" then
					condition=""
					linkstr="action=PV&ordernum="&ordernum
				else
					condition="where [Page] like '%"&query&"%'"
					linkstr="query="&query&"&action=PV&ordernum="&ordernum
				end if
				set rs=server.createobject("adodb.recordset")
				sql="select top "&MaxRecord&" Page,Visitor+PageView,vtime from CC_P "&condition&" order by "&orderby&" desc"
				'response.write sql
				rs.open sql,conn,1,1
				if rs.eof then
					response.write "<tr class=tablebody1><td colspan=3>"&Lang.item("g_045")&"</td></tr>"
				else
					rs.PageSize = MaxPageSize
					rs.absolutepage=PageNo
					i=0
					do while not rs.eof and i<MaxPageSize
					if i=0 then maxnum=rs(1)
					response.write "<tr class=tablebody1><td>"
					if rs(0)="0" then
						response.write Lang.item("g_053")
					else
						response.write "<a href='"&rs(0)&"' title='"&rs(0)&"' target=_blank>"&hx.OutStr(rs(0),65)&"</a>"
					end if
						
					response.write "</td><td>"
					response.write "&nbsp;"&FormatTime(rs(2))					
					response.write "</td><td>"
				if ordernum=0 then
					barwidth=FormatNum(rs(1)/maxnum*150,2)
 					response.write "<img height=12 align=absmiddle class=PicBar width="&barwidth&"> "   
				end if
  					response.write rs(1)
					response.write "</td></tr>"
					i=i+1
					rs.movenext
					loop
				end if
				set rs=nothing
					%>
</table>
<%	hxshow.showPageInfo "CC_P","id",condition,PageNo,MaxPageSize,linkstr%>
              
<%End Sub%>
<%Sub Page_VT
Call MainTitle(Lang.item("m_21"))
Call ShowQuery
Call Showinfo(Lang.item("g_065")) 
dim orderby,ordernum
ordernum=request("ordernum")
if ordernum=1 then
    orderby="vtime"
else
    ordernum=0
    orderby="Visitor"
end if
				dim maxnum,i,barwidth
				dim rs,sql
				dim condition
				dim linkstr
				if query="" then
					condition="where Visitor>0"
					linkstr="action=VT&ordernum="&ordernum
				else
					condition="where Visitor>0 and Page like '%"&query&"%'"
					linkstr="query="&query&"&action=VT&ordernum="&ordernum
				end if
%> 
<table width="768"  align="center" cellpadding="3" cellspacing="1" class="tableBorder2">
  <tr bgcolor="#CCCCFF"> 
    <th width="420" align="center"><%=Lang.item("g_031")%></th>
    <th width="128" align="center"><a href=?action=VT&ordernum=1&query=<%=query%>><%=Lang.item("g_066")%></a></th>
    <th width="220" align="center"><a href=?action=VT&query=<%=query%>><%=Lang.item("g_038")%></a></th>
  <%

				set rs=server.createobject("adodb.recordset")
				sql="select top "&MaxRecord&" Page,Visitor,vtime from CC_P "&condition&" order by "&orderby&" desc"
				rs.open sql,conn,1,1
				if rs.eof then
					response.write "<tr class=tablebody1><td colspan=3>"&Lang.item("g_045")&"</td></tr>"
				else
					rs.PageSize = MaxPageSize
					rs.absolutepage=PageNo
					i=0
					if i=0 then maxnum=rs(1)
					do while not rs.eof and i<MaxPageSize
					response.write "<tr class=tablebody1><td>"
					if rs(0)="0" then
						response.write Lang.item("g_053")
					else
						response.write "<a href='"&rs(0)&"' title='"&rs(0)&"' target=_blank>"&hx.OutStr(rs(0),65)&"</a>"
					end if						
					response.write "</td><td>"
					response.write "&nbsp;"&FormatTime(rs(2))					
					response.write "</td><td>"
					if ordernum=0 then
					barwidth=FormatNum(rs(1)/maxnum*150,2)
 					response.write "<img height=12 align=absmiddle class=PicBar width="&barwidth&"> "   
 					end if
  					response.write rs(1)
					response.write "</td></tr>"
					i=i+1
					rs.movenext
					loop
				end if
				set rs=nothing
					%>
</table>
<%	hxshow.showPageInfo "CC_P","id",condition,PageNo,MaxPageSize,linkstr%>
              
<%End Sub%>

<%Sub Keyword()
Call MainTitle(Lang.item("m_500"))
Call ShowQuery
Call Showinfo(Lang.item("m_511"))
dim orderby,ordernum
ordernum=request("ordernum")
if ordernum=1 then
    orderby="vtime"
else
    ordernum=0
    orderby="CR"
end if
%>
<table width="768"  align="center" cellpadding="3" cellspacing="1" class="tableBorder2">
  <tr bgcolor="#CCCCFF"> 
    <th width="210" align="center"><%=Lang.item("g_070")%></th>
    <th width="210" align="center"><%=Lang.item("g_073")%></th> 
    <th width="128" align="center"><a href=?action=Q&ordernum=1&query=<%=query%>><%=Lang.item("g_066")%></a></th>
	<th width="220" align="center"><a href=?action=Q&query=<%=query%>><%=Lang.item("g_038")%></a></th> </tr>
  <%
	dim q
	dim maxnum,i,barwidth 
	dim rs,sql
	dim condition,linkstr
	if query="" then
		condition="where Q is not null"
		linkstr="action=Q&ordernum="&ordernum
	else
		condition="where (Q like '%"&encodeURIComponent(query)&"%' or Q like '%"&AnsiCode(query)&"%' or RefSite like '%"&query&"%') and Q is not null"
		linkstr="query="&query&"&action=Q&ordernum="&ordernum
	end if
	sql="select top "&MaxRecord&" Q,CR,RefSite,Referer,vtime from CC_R "&condition&" order by "&orderby&" desc"
	set rs=server.createobject("adodb.recordset")
	rs.open sql,conn,1,1
	if rs.eof then
		response.write "<tr class=tablebody1><td colspan=4>"&Lang.item("g_045")&"</td></tr>"	
	else
		rs.PageSize = MaxPageSize
		rs.absolutepage=PageNo
			i=0
			if i=0 then maxnum=rs(1)
				do while not rs.eof and i<MaxPageSize
					response.write "<tr class=tablebody1><td>"
					q=ReadText(rs(0))
					response.write "<a href='"&rs(3)&"' target='_blank'>"
					response.write q					
					response.write "</a>"					
					response.write "</td><td>"
					response.write "<a href="&rs(2)&">"&rs(2)&"</a>"					
					response.write "</td><td>"
					response.write "&nbsp;"&FormatTime(rs(4))					
					response.write "</td><td>"	
					if ordernum=0 then	
					barwidth=FormatNum(rs(1)/maxnum*150,2)							
					response.write "<img height=12 align=absmiddle class=PicBar width="&barwidth&"> "   
					end if
					response.write rs(1)
					response.write "</td></tr>"
					i=i+1

⌨️ 快捷键说明

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