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

📄 index.asp

📁 一套设计精美的学校网站全站系统
💻 ASP
📖 第 1 页 / 共 3 页
字号:
          <tr>
            <td><table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="100"><div align="center"><img src="img/m_5.gif" width="80" height="80"></div></td>
                  <td background="img/line1.gif"><script src=news.asp?typeid=11&shu=8></script></td>
                </tr>
            </table></td>
          </tr>
        </table>
          <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
            <tr>
              <td height="8"><img name="" src="" width="1" height="1" alt=""></td>
            </tr>
            <tr>
              <td><table width="96%" style="border: 1px solid #cccccc" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
                <tr>
                  <td><img src="img/m_site.gif" width="360" height="30" border="0"></td>
                </tr>
                <tr>
                  <td><table width="98%" border="0" align="center" cellpadding="3" cellspacing="0" id="AutoNumber10" style="border-collapse: collapse">
                      <tr>
                        <td height="46" valign=top>
                          <%
dim menuid1
dim menuname1
dim menucontent1
dim menuview1
set rs22=server.CreateObject("ADODB.RecordSet")
rs22.Source="select * from type where typeview=1 order by typeorder"
rs22.Open rs22.Source,conn,1,1
i=1

while not rs22.EOF
RecordCount=rs22.RecordCount
menuid1=rs22("typeid")
menuname1=rs22("typename")
menucontent1=rs22("typecontent")
menuview1=rs22("typeview")

%>
            〖<b><a class=4 target="_top" href='type.asp?typeID=<%=menuid1%> ' title=<%=menucontent1%> ><%=menuName1 %></a></b>〗
            <%  
typeid=rs22("typeid")
	set rs21=conn.execute("SELECT * FROM bigclass where typeid="&typeid&" order by bigclassorder") 
	do while not rs21.eof
%>
            <%if not Rs21.eof then%>
            <a target="_top" class=4 href="bigclass.asp?typeid=<%=typeid%>&bigclassid=<%=Rs21("bigclassid")%>"><%=Rs21("bigclassname")%></a>
            <%set nrs=conn.execute("SELECT * FROM smallclass where bigclassid="&cstr(rs21("bigclassid"))&" order by smallclassorder")%>
            <%do while not nrs.eof%>
            <%if not nRs.eof then%>
            |<a target="_top" class=4 href="SmallClass.asp?typeid=<%=typeid%>&BigClassID=<%=nrs("bigclassid")%>&smallclassid=<%=nrs("smallclassid")%>"><%=nRs("smallclassname")%></a>
            <%nrs.movenext   
		     end if %>
            <%if not nRs.eof then%>
            |<a target="_top" class=4 href="SmallClass.asp?typeid=<%=typeid%>&BigClassID=<%=nrs("bigclassid")%>&smallclassid=<%=nrs("smallclassid")%>"><%=nRs("smallclassname")%></a>
            <%nRs.movenext
             end if%>
            <%loop
            nRs.Close
           set nRs=nothing
            %>
            <%rs21.movenext   
	end if
	loop  
	rs21.close
%>
            <br>
            <%
i=i+1

rs22.MoveNext
wend
rs22.close
set rs22=nothing
%></td>
                      </tr>
                  </table></td>
                </tr>
              </table></td>
            </tr>
          </table></td>
      </tr>
    </table></td>
    <td width="220" valign="top"><table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><img name="" src="" width="1" height="8" alt=""></td>
      </tr>
      <tr>
        <td class="4"><table width="95%" align="center" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF" style="border: 1px solid #cccccc">
          <tr>
            <td><img src="img/right_zt.gif" width="188" height="30"></td>
          </tr>
          <tr>
            <td><%if showspecial=1 then%>
              <%set rs2=server.CreateObject("ADODB.RecordSet")  '专题
rs2.Source="select Top " & top_sp & " * from Special  order by SpecialID DESC "
rs2.Open rs2.Source,conn,1,1
if not rs2.EOF then
while not rs2.EOF

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

rs2.MoveNext
wend
%></td>
          </tr>
          <tr>
            <td><div align="right"><a href=special.asp>更多专题...</a>
                  <%
else
Response.Write "<tr><td width=100% align=center height=18 >暂无专题</td></tr>"
end if
rs2.Close
set rs2=nothing

  
%>
                  <%end if%>
            </div></td>
          </tr>
        </table>
          <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><img name="" src="" width="1" height="8" alt=""></td>
            </tr>
          </table>
          <table width="95%" height="64"  align="center" cellpadding="0" cellspacing="2" bgcolor="#FFFFFF" style="border: 1px solid #cccccc">
            <tr>
              <td width="64"><a href="ReadNews.asp?NewsID=283" target="_blank"><img src="img/boss01.jpg" alt="董事长熊岭先生简介" width="56" height="56" border="0"></a></td>
              <td><a href="ReadNews.asp?NewsID=283" target="_blank">熊岭,董事长,江苏省滨海县人,1928年出生。1947年为求职...</a></td>
            </tr>
          </table>
          <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><img name="" src="" width="1" height="8" alt=""></td>
            </tr>
          </table>
          <table width="95%" height="64"  align="center" cellpadding="0" cellspacing="2" bgcolor="#FFFFFF" style="border: 1px solid #cccccc">
            <tr>
              <td width="64"><a href="ReadNews.asp?NewsID=301" target="_blank"><img src="img/boss02.jpg" alt="校长樊家林简介" width="56" height="56" border="0"></a></td>
              <td><a href="ReadNews.asp?NewsID=301" target="_blank">樊家林,校长,1942年出生,中共党员,大专毕业。曾任嘉善县...</a></td>
            </tr>
          </table>
          <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><img name="" src="" width="1" height="8" alt=""></td>
            </tr>
          </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td width="220" valign="top"><table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="95%" align="center" cellpadding="0" cellspacing="5" bgcolor="#FFFFFF" style="border: 1px solid #cccccc">
          <tr>
            <td><img src="img/right_tw.gif" width="188" height="30"></td>
          </tr>
          <tr>
            <td><%
set rs3=server.CreateObject("ADODB.RecordSet")
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 " & top_img & " * from News where picnews=1 and checkked=1 and picname<>null order by NewsID DESC"
end if
if Request.cookies("key")="" then
rs3.Source ="select top " & top_img & " * from News where picnews=1 and checkked=1 and newslevel=0  and picname<>null order by NewsID DESC"
end if
if Request.cookies("key")="selfreg" then
	if Request.cookies("reglevel")=3 then
rs3.Source ="select top " & top_img & " * from News where picnews=1 and checkked=1 and newslevel<=3 and picname<>null order by NewsID DESC"
	end if
	if Request.cookies("reglevel")=2 then
rs3.Source ="select top " & top_img & " * from News where picnews=1 and checkked=1 and newslevel<=2 and picname<>null order by NewsID DESC"
	end if
	if Request.cookies("reglevel")=1 then
rs3.Source ="select top " & top_img & " * from News where picnews=1 and checkked=1 and newslevel<=1 and picname<>null order by NewsID DESC"
	end if
end if
else
rs3.Source ="select top " & top_img & " * from News where picnews=1 and checkked=1 and picname<>null order by NewsID DESC"
end if
rs3.Open rs3.Source,conn,1,1
if not rs3.EOF then
while not rs3.EOF
fileExt=lcase(getFileExtName(rs3("picname")))
Content=rs3("Content")
content=replace(content,"[[","<")
content=replace(content,"]]",">")
%>
              <table width="95%" border="0" align="center" cellpadding="0" cellspacing="6" bgcolor="#FFFFFF">
              <tr>
                <td align="center" 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="133" height="100" 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="160" height="100">
                    <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'>
                    <param name="wmode" value="transparent">
                    <embed src="uploadfile/<%=rs3("picname")%>" width="160" pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'></embed>
                  </object>
                  <%end if%>
                  <br>
				  <script>
//测字符串实际长度
String.prototype.Tlength = function(){var arr=this.match(/[^\x00-\xff]/ig);return this.length+(arr==null?0:arr.length);}

//字符串左取
String.prototype.left = function(num,mode){if(!/\d+/.test(num))return(this);var str = this.substr(0,num);if(!mode) return str;var n = str.Tlength() - str.length;num = num - parseInt(n/2);return this.substr(0,num);}
            
//开始左取			  
document.write("<%=rs3("title")%>".left(20,true));
//结束左取
</script></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 bgcolor="& r_main &">暂无</td></tr></table>"
end if
rs3.close
set rs3=nothing

%></td>
          </tr>
        </table></td>
      </tr>
    </table>
      <table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr><%if showvote="1" then%>
          <td><img name="" src="" width="1" height="8" alt=""></td>
        </tr>
        <tr>
          <td class="4"><table width="100%" border="0" cellpadding="0" cellspacing="0" >
            <tr>
              <%
		set rs=conn.execute("SELECT * FROM vote where IsChecked=1") 
		if rs.eof then
		%>
              <%else%>
              <td width="100%" align="center">
                <table width="95%" border="0" cellpadding="2" cellspacing="2" bgcolor="#FFFFFF" style="border: 1px solid #cccccc">
                  <TR>
                    <TD width=100% align="center"><img src="img/right_dc.gif" width="188" height="30"></TD>
                  </TR>
                  <TR>
                    <TD align="center"><b> </b><%=rs("Title")%></TD>
                  </TR>
                  <FORM action="admin/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%>
              </table>
                <%end if%></td>
            </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<%else
Response.Write "<table width=700 border=0 height=25><tr><td align=center>暂无文章类别,请<a href=admin/login.asp>登陆</a>后添加!</td></tr></table>"
end if%>
<!--#include file=include/bottom.asp -->
<map name="Map">
  <area shape="rect" coords="300,11,341,26" href="type.asp?typeID=10" alt="更多...">
</map>
<map name="Map2">
  <area shape="rect" coords="301,10,342,26" href="type.asp?typeID=7" alt="更多...">
</map>
<map name="Map3">
  <area shape="rect" coords="300,10,341,25" href="type.asp?typeID=4" alt="更多...">
</map>
<map name="Map4">
  <area shape="rect" coords="303,11,344,25" href="type.asp?typeID=5" alt="更多...">
</map>
<map name="Map5">
  <area shape="rect" coords="302,11,344,26" href="type.asp?typeID=11" alt="更多...">
</map>
</body>
</html>

⌨️ 快捷键说明

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