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

📄 index3.asp

📁 纪念伟大领袖的专题网站
💻 ASP
📖 第 1 页 / 共 3 页
字号:
					<br><br><a href="<%=BbsPath%>" target="_blank">进入论坛</a>
 				<%end if%>    
			<%end if%>    
		<%end if%>    
	<%end if%>    
                  </td>
                </tr>
              </table>
            </form></td>
        </tr>
		<tr > 
          <td height="34" align="center" valign="middle" background="images/left1-m2.gif">&nbsp;</td>
        </tr>
        <tr > 
          <td align="left"  > <div align="center"><br>
              <table width="98%" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td>
		<script src=<%=BbsPath%>newtopic.asp?boardid=all&lock=0&bname=0&tlen=8&n=10&sdate=&orders=4&info=0&action=1&reply=0&showpic=0></script> 
                  </td>
                </tr>
              </table>
              <br>
            </div></td>
        </tr>
		<%end if%>
        <tr >
          <%if showspecial="1" then%>
		  <td height="34" background="images/left1-m4.gif" ></td>
        </tr>
          <tr>
            
          <td height="50" > 
            <%if showspecial=1 then%>
            <%set rs2=server.CreateObject("ADODB.RecordSet")  '专题
rs2.Source="select Top " & top_sp & " * from "& db_Special_Table &"  order by SpecialID DESC "
rs2.Open rs2.Source,conn,1,1
if not rs2.EOF then
while not rs2.EOF

TrString="&nbsp;·&nbsp;<a class=class href='Special_News.asp?SpecialID=" & rs2("SpecialID") &"'>" & trim(CutStr(htmlencode4(rs2("SpecialName")),14)) & "</a><br>"
Response.Write TrString

rs2.MoveNext
wend
%>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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">&nbsp;</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
		%>
		&nbsp;&nbsp;○- 今日文章:<font color=red><%=todays()%></font><br>     
		&nbsp;&nbsp;○- 文章总数:<font color=red><%=gettipnum()%></font><br>    
		&nbsp;&nbsp;○- 会员总数:<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> &nbsp;&nbsp;○- 当前在线:<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 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%>
      </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>
          </td>
        </tr>
        <tr> 
          <td height="32" colspan="2" background="images/photonews.gif">&nbsp;</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">&nbsp;</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"><font class="m_tittle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=typeName%></font></td>
							</tr>
							<tr> 
	<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

⌨️ 快捷键说明

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