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

📄 bigclass.asp

📁 一套设计精美的学校网站全站系统
💻 ASP
📖 第 1 页 / 共 3 页
字号:
                    <table width="90%" border="0" cellspacing="0" cellpadding="3" align="center" style="TABLE-LAYOUT: fixed">
                      <tr>
                        <td style="WORD-WRAP: break-word"><a class=middle href="ReadNews.asp?NewsID=<%=rs3("NewsID")%>" target=_blank title="<%=rs3("title")%>">
                          <%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
                          <img  src="uploadfile/<%=rs3("picname")%>" width="65" height="65" border=0 align="left" class="border">
                          <%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="65" height="65" border=0 align="left">
                            <param name=movie value="uploadfile/<%=rs3("picname")%>">
                            <param name=quality value=high>
                            <param name='Play' value='-1'>
                            <param name='Loop' value='0'>
                            <param name='Menu' value='-1'>
                            <embed src="uploadfile/<%=rs3("picname")%>" width="65" height="65" border=0 align="left" pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'></embed>
                          </object>
                          <%end if%>
                          <%=rs3("title")%></a></td>
                      </tr>
                    </table>
                    <%
rs3.MoveNext
wend
else
Response.Write "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0"" align=""center"" style=""TABLE-LAYOUT: fixed""><tr><td width=100% align=center height=18>暂无</td></tr></table>"
end if
rs3.close
set rs3=nothing

%>
                </td>
              </tr>
            </table>
            <p align="center"> </p>
            <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="180" id="AutoNumber1" align=center>
              <tr>
                <!----------------------------------------------------------中栏------------------------------------------------------>
                <td width="180" valign=top>
                  <%if mode=2 then%>
                  <%else%>
                  <%if mode<>1 and mode<>2 then%>
                  <div align="center"><br>
                      <table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="90%" id="AutoNumber5">
                        <tr>
                          <td height="18"> <img src=images/ico.gif>  <font class=m_tittle>本月热门</font></td>
                        </tr>
                        <%  dim iii
	iii = 0
	set rs=server.CreateObject("ADODB.RecordSet")
if uselevel=1 then
if Request.cookies("key")="" then
rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" and newslevel=0 order by click DESC,newsid desc"   '选择本月
end if
if Request.cookies("key")="selfreg" then
	if Request.cookies("reglevel")=3 then
	rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" and newslevel<=3 order by click DESC,newsid desc"   '选择本月
	end if
	if Request.cookies("reglevel")=2 then
	rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" and newslevel<=2 order by click DESC,newsid desc"   '选择本月
	end if
	if Request.cookies("reglevel")=1 then
	rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" and newslevel<=1 order by click DESC,newsid desc"   '选择本月
	end if
end if
if Request.cookies("key")="super" or Request.cookies("key")="typemaster" or Request.cookies("key")="bigmaster" or Request.cookies("key")="smallmaster" or Request.cookies("key")="check" then
rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" order by click DESC,newsid desc"   '选择本月
end if
else
rs.Source="select top " & top_txt & " * from News where year(updatetime)=year(now()) and month(updatetime)=month(now()) and checkked=1 and typeid="&typeid&" order by click DESC,newsid desc"   '选择本月
end if
rs.Open rs.Source,conn,1,1
	if rs.bof and rs.eof then 
		response.write "<td align=center>本月无更新</td>" 
	else 
	
%>
                        <tr>
                          <td>
                            <%do while not rs.eof
title=trim(rs("title"))
title=replace(title,"<br>","")
 %>
                            <li>
                              <%if mode<>4 then%>
                              <a class=middle href="ReadNews.asp?NewsID=<%=rs("NewsID")%>" title="<%=title%>" target="_blank">
                              <%if mode="4" then%>
                              <%if rs("picname")<>"" then%>
                              <img src='IMAGES/IMG.gif' border='0'>
                              <%end if%>
                              <%end if%>
                              <font color="<%=rs("titlecolor")%>"><%=gottopic(title,50)%></font></a><font color="#FF0000"> <%=rs("click")%></font>
                              <%else%>
                              <a class=middle href="ReadNews.asp?NewsID=<%=rs("NewsID")%>" title="<%=title%>" target="_blank">
                              <%if mode="2" then%>
                              <%if rs("picname")<>"" then%>
                              <img src='IMAGES/IMG.gif' border='0'>
                              <%end if%>
                              <%end if%>
                              <font color="<%=rs("titlecolor")%>"><%=gottopic(title,50)%></font></a><font color="#FF0000"> <%=rs("click")%></font>
                              <%end if%>
                              <%  iii = iii + 1
    if iii>50 then exit do
	rs.movenext     
	loop
	end if  
	rs.close   
	set rs=nothing
%>
                          </td>
                        </tr>
                      </table>
                      <br>
                      <%end if%>
                      <%end if%>
                      <%end if%>
                </div></td>
              </tr>
          </table></td>
      </tr>
    </table></td>
    <td bgcolor="#CCCCCC"><img name="" src="" width="1" height="1" alt=""></td>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td bgcolor="#F4F4F4"><img src="IMAGES/kb.gif" width="1" height="8"></td>
      </tr>
      <tr>
        <td height="30" background="img/type_bg.gif" class="6">  <img src="img/type01.gif" width="12" height="12" align="absmiddle">  当前位置: <a href="./">网站首页 - </a><a href=type.asp?typeid=<%=typeid%>><%=typename%></a>
            <% Response.Write "&gt;&gt;" & BigClassName & "" %></td>
      </tr>
      <tr>
        <td><div align="center">
            <script language=javascript src=./admin/banner/ads.asp?place=1></script>
        </div></td>
      </tr>
      <tr>
        <td><table width="100%" height="52" border="0" align="center" cellpadding="0" cellspacing="0" id="AutoNumber3" style="border-collapse: collapse">
            <tr>
              <td height="52" valign=top><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="AutoNumber3" style="border-collapse: collapse">
                  <tr>
                    <td height="1" valign=top>
                      <% if mode<>4 and  mode<>1 then%>
                      <%
set rs3=server.CreateObject("ADODB.RecordSet")
%>
                      <table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber4">
                        <tr>
                          <td height="30" background="img/type_bg.gif"><span class="6"> <img src="img/type02.gif" width="9" height="9" align="absmiddle">  </span><font class=m_tittle><%=BigClassName%></font></td>
                        </tr>
                        <%if uselevel=1 then
if Request.cookies("key")="super" or Request.cookies("key")="typemaster" or Request.cookies("key")="bigmaster" or Request.cookies("key")="smallmaster" or Request.cookies("key")="check" then
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1) order by newsid DESC"
end if
if Request.cookies("key")="" then
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1 and newslevel=0) order by newsid DESC"
end if
if Request.cookies("key")="selfreg" then
	if Request.cookies("reglevel")=3 then
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1 and newslevel<=3) order by newsid DESC"
	end if
	if Request.cookies("reglevel")=2 then
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1 and newslevel<=2) order by newsid DESC"
	end if
	if Request.cookies("reglevel")=1 then
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1 and newslevel<=1) order by newsid DESC"
	end if
end if
else
rs3.Source="select top "&bigclassshownum&" * from News where (BigClassid=" & request_BigClassid & " and checkked=1) order by newsid DESC"
end if
rs3.Open rs3.Source,conn,1,1
if not rs3.EOF then
more=1
else more=0
end if

while not rs3.EOF
if showyear=1 then
newsurl="ReadNews.asp?NewsID=" & rs3("NewsID")
datetime="<font class=middle>(" & year(rs3("UpdateTime"))  &"年"& Month(rs3("UpdateTime"))  &"月"& Day(rs3("UpdateTime")) &"日)</font>"
else
newsurl="ReadNews.asp?NewsID=" & rs3("NewsID")
datetime="<font class=middle>("& Month(rs3("UpdateTime"))  &"月"& Day(rs3("UpdateTime")) &"日)</font>"
end if
if rs3("picname")<>"" then
img="<img src='IMAGES/IMG.gif' border='0'>"
else
img=""
end if
title=trim(rs3("title"))
title=replace(title,"<br>","")
%>
                        <tr>
                          <td height=1><div align="center">
                              <%if mode="2" then%>
                              <table width="98%" border="0" cellpadding="0" cellspacing="0" background="img/line1.gif">
                                <tr>
                                  <td width="65%" height="20">  <img src="img/arrow02.gif" width="8" height="8"><a class=middle href="<%=newsurl%>" title="<%=title%>" target="_blank"></a><a class=middle href="<%=newsurl%>" title="<%=title%>" target="_blank"> </a><a class=middle href="<%=newsurl%>" target="_blank" title="<%=title%>"><%=img%> <<%=rs3("titletype")%>><font color="<%=rs3("titlecolor")%>">
                                    <%if showtime="1" then%>
                                    <%if len(title)>24 then%>
                                    <%=left(title,24)%>
                                    <%else%>
                                    <%=title%>
                                    <%end if%>
                                    <%else%>
                                    <%if len(title)>24 then%>
                                    <%=left(title,24)%>
                                    <%else%>
                                    <%=title%>
                                    <%end if%>
                                    <%end if%>
                                  </font></<%=rs3("titletype")%>></a></td>
                                  <td width="15%" align="right">
                                    <%if showauthor="1" then%>
                                    <%=rs3("author")%>
                                    <%end if%>
                                  </td>
                                  <td width="15%" align="center">
                                    <%if showtime="1" then%>
                                    <%=datetime%>
                                    <%end if%>
                                  </td>
                                  <td width="5%" align="center">
                                    <%if showclick="1" then%>
                                    <font color=#666666><%=rs3("click")%></font>
                                    <%end if%>
                                  </td>
                                </tr>
                              </table>
                              <%else%>
                              <%if mode="3" then%>
                              <table width="95%" border="0" cellpadding="3" cellspacing="0">
                                <tr bgcolor="#EFEFEF">
                                  <td width="55%">  <img src="IMAGES/go.gif" width="9" height="9"><a class=middle href="<%=newsurl%>" title="<%=title%>" target="_blank"></a><a class=middle href="<%=newsurl%>" title="<%=title%>" target="_blank"> <strong><%=img%>
                                          <%end if%>
<<%=rs3("titletype")%>><font color="<%=rs3("titlecolor")%>">
                                <%if showtime="1" then%>
                                <%if len(title)>20 then%>
                                <%=left(title,20)%>
                                <%else%>
                                <%=title%>
                                <%end if%>
                                <%else%>
                                <%if len(title)>24 then%>
                                <%=left(title,24)%>
                                <%else%>
                                <%=title%>
                                <%end if%>
                                <%end if%>
                              </font></strong></<%=rs3("titletype")%>></a> </td>
                                  <td width="29%" align="right">
                                    <%if showtime="1" then%>
                                    <%=datetime%>
                                    <%end if%>
                                  </td>
                                  <td width="16%" align="right">
                                    <%if year(rs3("updatetime"))=year(date()) and month(rs3("updatetime"))=month(date()) and day(rs3("updatetime"))=day(date()) then%>
                                    <img src="images/new.gif">
                                    <%end if%>
                                    <%if rs3("goodnews")="1" then%>
                                    <img src="images/g.gif" >
                                    <%end if%>
                                  </td>
                                </tr>
                                <tr>
                                  <td>   [简介]: <%=left(nohtml(rs3("Content")),80)%>...</td>
                                  <td colspan="2">[网址]
                                      <%
							   strText = (rs3("Content")) 
							   posleft=Instr(strText,"<A")
                               posright=Instr(strText,"/A>")
							   posp=Instr(strText,"<P><A")+3
							   posp2=Instr(strText,"A></P>")
							   %>
                                      <% if posp<>0 and posp2<>0 then %>
                                      <%=mid(rs3("Content"),posp,posp2)%>
                                      <% else %>
                                      <% if posleft=1 then %>
                                      <%=left(rs3("Content"),posright)%>
                                      <% else %>
                                      <%=right(rs3("Content"),(posright+3)-posleft)%>
                                      <% end if %>
                                      <% end if %>
                                  </td>
                                </tr>
                              </table>
                          </div></td>

⌨️ 快捷键说明

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