📄 index.asp
字号:
while not rs2.EOF
TrString=" · <a class=class href='Special_News.asp?SpecialID=" & rs2("SpecialID") &"'>" & trim(CutStr(htmlencode4(rs2("SpecialName")),14)) & "</a><br>"
Response.Write TrString
rs2.MoveNext
wend
%>
<a class=class href=Special.asp>更多专题...</a>
<%
else
Response.Write "<tr><td width=100% align=center height=40>暂无专题</td></tr>"
end if
rs2.Close
set rs2=nothing
%>
</td>
</tr><%end if%><%end if%>
<tr ><% if showdata=1 then%>
<td height="34" align="center" background="images/left1-m5.gif"> </td>
</tr>
<tr >
<td > <br>
<%
function gettipnum()
dim tmprs
tmprs=conn.execute("Select Count(NewsID) from "& db_News_Table &" where checkked=1")
gettipnum=tmprs(0)
set tmprs=nothing
if isnull(gettipnum) then gettipnum=0
end function
function todays()
dim tmprs
tmprs=conn.execute("Select count(NewsID) from "& db_News_Table &" Where checkked=1 and year(updatetime)="& year(date()) &" and month(updatetime)="& month(date()) &" and day(updatetime)="& day(date()) &"")
todays=tmprs(0)
set tmprs=nothing
if isnull(todays) then todays=0
end function
function getusernum()
dim rs
rs=ConnUser.execute("Select Count("& db_User_ID &") from "& db_User_Table &"")
getusernum=rs(0)
set rs=nothing
if isnull(getusernum) then getusernum=0
end function
function getgg()
dim rs
if db_Sex_Select = "FeiTium" then
rs=ConnUser.execute("Select Count("& db_User_Id &") from "& db_User_Table &" where "& db_User_Sex &"='男' ")
getgg=rs(0)
set rs=nothing
else
if db_Sex_Select = "Number" then
rs=ConnUser.execute("Select Count("& db_User_Id &") from "& db_User_Table &" where "& db_User_Sex &"=1")
getgg=rs(0)
set rs=nothing
end if
end if
if isnull(getgg) then getgg=0
end function
function getmm()
dim rs
if db_Sex_Select = "FeiTium" then
rs=ConnUser.execute("Select Count("& db_User_Id &") from "& db_User_Table &" where "& db_User_Sex &"='女' ")
getmm=rs(0)
set rs=nothing
else
if db_Sex_Select = "Number" then
rs=ConnUser.execute("Select Count("& db_User_Id &") from "& db_User_Table &" where "& db_User_Sex &"=0")
getmm=rs(0)
set rs=nothing
end if
end if
if isnull(getmm) then getmm=0
end function
function getother()
dim rs
if db_Sex_Select = "FeiTium" then
rs=ConnUser.execute("Select Count("& db_User_ID &") from "& db_User_Table &" where "& db_User_Sex &" = '保密' ")
getother=rs(0)
set rs=nothing
else
if db_Sex_Select = "Number" then
rs=ConnUser.execute("Select Count("& db_User_ID &") from "& db_User_Table &" where "& db_User_Sex &" <>1 and "& db_User_Sex &"<>0 ")
getother=rs(0)
set rs=nothing
end if
end if
if isnull(getother) then getother=0
end function
%>
○- 今日文章:<font color=red><%=todays()%></font><br>
○- 文章总数:<font color=red><%=gettipnum()%></font><br>
○- 会员总数:<font color=red><%=getusernum()%></font><br>
<!--#include file=LastMember.asp --><br><br>
<%if showcount=1 then%>
<script src=Cnt.asp></script>
<!--#include file=zx.asp -->
<br> ○- 当前在线:<font color=red><%=i%></font><br><br>
<%end if%>
</td>
</tr>
<%end if%>
<tr>
<td valign="top"> </td>
</tr>
<%if showuser=1 then%>
<tr >
<td height="34" valign="middle" background="images/left1-m6.gif"> <p align="center"></td>
</tr>
<tr >
<td valign="middle" background="images/left.gif" > <p align="center"><br>
<!--#include file=TopUser.asp -->
</td>
</tr>
<tr>
<td valign="middle" background="images/left.gif" > <p align="center"><br>
<!--include file=Topdep.asp -->
</td>
</tr>
<%end if%>
<tr> <%if showvote="1" then%>
<td height="34" background="images/left1-m7.gif"> <div align="center" class="style1"></div></td>
<%
set rs=conn.execute("SELECT * FROM " & db_Vote_Table & " where IsChecked=1")
if rs.eof then
%></tr>
<tr align="center">
<TD height="30" valign="bottom">尚无任何投票</TD>
</tr>
<%else%>
<TR>
<TD width=100% align="center"><b><br>
</b><%=rs("Title")%></TD>
</TR>
<FORM action="Vote.asp" target="newwindow" method=post name=research>
<TR>
<TD vAlign=top width="100%">
<%
for i=1 to 8
if rs("Select"&i)<>"" then
%>
<INPUT style="border: 0" <%if i=1 then%>checked<%end if%> name=Options type=radio value=<%=i%>>
<%=i%>.<%=rs("Select"&i)%><BR>
<% end if
next
%>
</TD>
</TR>
<TR>
<TD width="100%" height=30 align=center> <INPUT style="cursor:hand" type=submit value="投它一票" id=submit1 name=submit1>
<INPUT onclick="javascript:vote()" type="button" value="查看结果" id=button1 name=button1 style="cursor:hand">
</TD>
</TR>
</FORM>
<%end if%>
<%end if%>
<tr>
<td valign="middle"> <p align="center"><br>
<br>
</td>
</tr>
<tr>
<td valign="middle"> <p align="center"><br>
<img align="center" src="images/maoming.gif" width="110" height="66"></img>
</td>
</tr>
</table>
</td>
<td width="10" rowspan="2" background="images/left-s.gif"></td>
<td width="590" align="center" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="450" valign="top" bgcolor="#FFFFFF">
<!--#include file=DaoDu.asp -->
</td>
<td width="140" align="right" valign="top" background="images/right.gif" bgcolor="#ECECEC">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="20" valign="middle" background="images/fast-2.gif">
<p align="center"></td>
</tr>
<%
set rsb=server.CreateObject("ADODB.RecordSet")
rsb.Source="select * from "& db_Board_Table &" where inuse=1"
rsb.Open rsb.Source,conn,1,1
if not rsb.EOF then
%>
<tr>
<td height="118" align=center> <br>
<table width="90%" height="60" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=CutStr(htmlencode4(rsb("title")),20)%>
<script language=JavaScript>marquee1();</script> <%=CheckStr(rsb("content"))%>
<script language=JavaScript>marquee2();</script> <%=rsb("dateandtime")%><br>
<a href="Board.asp" target="_blank" class=class>以前公告</a></td>
</tr>
</table>
</td>
</tr>
<%else Response.Write "<tr><td align=center><br>暂 无</td></tr>"
end if
rsb.close
set rsb=nothing%>
</table>
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="31" background="images/ly.gif"> </td>
</tr>
<tr>
<td align="center">
<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><!--#include file="ReviewIndex.asp"--></td>
</tr>
</table>
<br></td>
</tr>
</table></td>
</tr>
<tr>
<td height="32" colspan="2" background="images/photonews.gif"> </td>
</tr>
<tr>
<td height="100" colspan="2" align="center" bgcolor="#FFFFFF">
<!--#include file="NewsTopPhoto.asp"-->
</td>
</tr>
<tr valign="top">
<td background="images/t1.gif" height="8" colspan="2"> </td>
</tr>
<tr valign="top" bgcolor="#FFFFFF">
<td colspan="2">
<%
for i=1 to RecordCount
typeID=Arraytyid(i)
typeName=ArraytyName(i)
%>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber6">
<tbody>
<tr>
<td width="49%" valign="top" bgcolor="#FFFFFF">
<table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber12">
<tbody>
<tr valign="middle">
<td background="images/lmtop.gif" height="30" colspan="2"><font color="#F53925"> <%=typeName%></font></td>
</tr>
<tr>
<td width="10%" align="left" valign="top" bgcolor="#CCCCCC">
<%
set rs=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies(Forcast_SN)("key")="super" or Request.cookies(Forcast_SN)("key")="typemaster" or Request.cookies(Forcast_SN)("key")="bigmaster" or Request.cookies(Forcast_SN)("key")="smallmaster" or Request.cookies(Forcast_SN)("key")="check" then
rs.Source="select top 1 * from "& db_News_Table &" where typeid=" & typeid &" and checkked=1 and picnews=1 and picname is not null order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("key")="" then
rs.Source="select top 1 * from "& db_News_Table &" where (typeid=" & typeid &" and checkked=1 and newslevel=0 and picnews=1 and picname is not null) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("key")="selfreg" then
if Request.cookies(Forcast_SN)("reglevel")=3 then
rs.Source="select top 1 * from "& db_News_Table &" where (typeid=" & typeid &" and checkked=1 and picnews=1 and picname is not null) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=2 then
rs.Source="select top 1 * from "& db_News_Table &" where (typeid=" & typeid &" and checkked=1 and picnews=1 and picname is not null) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=1 then
rs.Source="select top 1 * from "& db_News_Table &" where (typeid=" & typeid &" and checkked=1 and picnews=1 and picname is not null) order by newsid DESC"
end if
end if
else
rs.Source="select top 1 * from "& db_News_Table &" where typeid=" & typeid &" and checkked=1 and picnews=1 and picname is not null order by newsid DESC"
end if
rs.Open rs.Source,conn,1,1
if rs.EOF then
Response.Write "<img src='images/notopic.gif' width=56 border=0 height=56>"
else
title=rs("title")
fileExt=lcase(getFileExtName(rs("picname")))
%>
<a class="class" target="_blank" href="ReadNews.asp?newsid=<%=rs("newsid")%>" title="<%=htmlencode4(title)%>">
<%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
<img src="<%=FileUploadPath & rs("picname")%>" width="56" border=1 style=border-color:#ffffff height="56">
</a>
<%end if%>
<%if fileext="swf" then%>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="56" height="56">
<param name="movie" value="<%=FileUploadPath & rs("picname")%>">
<param name="quality" value="high">
<param name="Play" value="-1">
<param name="Loop" value="0">
<param name="Menu" value="-1">
<embed src="<%=FileUploadPath & rs("picname")%>" width="56" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed></object>
<%end if%>
<br>
<%
end if
rs.close
set rs=nothing
%>
</td>
<td width="90%" valign="top" bgcolor="#ECECEC">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber11">
<% dim rs3
set rs3=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies(Forcast_SN)("key")="super" or Request.cookies(Forcast_SN)("key")="typemaster" or Request.cookies(Forcast_SN)("key")="bigmaster" or Request.cookies(Forcast_SN)("key")="smallmaster" or Request.cookies(Forcast_SN)("key")="check" then
rs3.Source="select top " & top_news & " * from "& db_News_Table &" where (typeid=" & typeid &" and checkked=1) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("key")="" then
rs3.Source="select top " & top_news & " * from "& db_News_Table &" where (typeid=" & typeid &" and checkked=1) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("key")="selfreg" then
if Request.cookies(Forcast_SN)("reglevel")=3 then
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -