?? bigclass.asp
字號:
<%if rsnosmall("goodnews")="1" then%>
<img src="images/g.gif" >
<%end if%>
</td>
</tr>
</table>
</div></td>
</tr>
<%
rsnosmall.MoveNext
wend
else
Response.Write "<tr><td> <div align='center'><table width='98%' border='0' cellpadding='3' cellspacing='0'><tr><td width='62%'> <img src='IMAGES/006.gif' width='8' height='10'> 無小類文章暫無</td></tr></table></div></td></tr>"
%>
<%end if
rsnosmall.close
set rsnosmall=nothing
%>
</td>
</tr>
</table>
<!--新聞模版-->
<% case 3 %>
<!--網址模版-->
<table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5">
<%set rsnosmall=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
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("key")="" then
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null 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
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=2 then
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=1 then
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
end if
else
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1) order by newsid DESC"
end if
rsnosmall.Open rsnosmall.Source,conn,1,1
%>
<tr>
<td>
<table width="98%" border="1" cellspacing="0" cellpadding="3" bordercolorlight=#cccccc bordercolordark=#ffffff align="center">
<!--網址換行顯示1-->
<%
if not rsnosmall.EOF then
do while not rsnosmall.EOF%>
<tr>
<%
Content=htmlencode4(rsnosmall("Content"))
%>
<td width=25% align=center valign="middle">
<%if not rsnosmall.EOF then%>
<div align="center"> <a class=middle href="<%=rsnosmall("Original")%>" target=_blank title="<%=CutStr(nohtml(rsnosmall("Content")),80)%>"><%=CutStr(rsnosmall("title"),30)%></a>
</div></td>
<%rsnosmall.movenext
end if %>
<!--網址換行顯示2-->
<td width=25% align=center valign="middle">
<%if not rsnosmall.EOF then%>
<div align="center"> <a class=middle href="<%=rsnosmall("Original")%>" target=_blank title="<%=CutStr(nohtml(rsnosmall("Content")),80)%>"><%=CutStr(rsnosmall("title"),30)%></a>
</div>
</td>
<%rsnosmall.movenext
end if %>
</tr>
<!--網址換行結束-->
<%loop%>
<%
else
Response.Write "<tr><td> <div align='center'><table width='98%' border='0' cellpadding='3' cellspacing='0'><tr><td width='62%'> <img src='IMAGES/006.gif' width='8' height='10'> 無小類文章暫無</td></tr></table></div></td></tr>"
end if
rsnosmall.close
set rsnosmall=nothing
%>
</table>
</tr>
<tr>
<td>
</tr>
</table>
<!--網址模版-->
<% case 4 %>
<!--軟件模版-->
<table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5">
<%set rsnosmall=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
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("key")="" then
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null 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
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=2 then
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=1 then
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1 ) order by newsid DESC"
end if
end if
else
rsnosmall.Source="select top " & bigclassshownum & " * from "& db_News_Table &" where (bigClassID=" & bigClassID &" and smallclassid is null and checkked=1) order by newsid DESC"
end if
rsnosmall.Open rsnosmall.Source,conn,1,1
if not rsnosmall.EOF then
while not rsnosmall.EOF
if showyear=1 then
newsurl="ReadNews.asp?NewsID=" & rsnosmall("NewsID")
newswwwurl=rsnosmall("titleface")
datetime="<font class=middle>(" & year(rsnosmall("UpdateTime")) &"年"& Month(rsnosmall("UpdateTime")) &"月"& Day(rsnosmall("UpdateTime")) &"日)</font>"
else
newsurl="ReadNews.asp?NewsID=" & rsnosmall("NewsID")
newswwwurl=rsnosmall("titleface")
datetime="<font class=middle>("& Month(rsnosmall("UpdateTime")) &"月"& Day(rsnosmall("UpdateTime")) &"日)</font>"
end if
if rsnosmall("picnews")=1 then
img="<img src='images/news_img.gif' border='0'>"
else
img=""
end if
title=trim(rsnosmall("title"))
title=replace(title,"<br>","")
%>
<tr>
<%
fileExt=lcase(getFileExtName(rsnosmall("picname")))
Content=htmlencode4(rsnosmall("Content"))
content=replace(content,"[---分頁---]","")%>
<td><div align="center">
<table width="95%" border="0" cellpadding="3" cellspacing="0">
<tr bgcolor="#EFEFEF">
<td colspan="2"> <img src="images/news_img.gif" width="9" height="9">
<a class=middle href="<%if rsnosmall("titleface")="無" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" title="<%=htmlencode4(title)%>" target="_blank">
<font color="<%=rsnosmall("titlecolor")%>"><strong>
<%=CutStr(title,40)%>
</strong></font> </a> </td>
<td width="22%" align="right" bgcolor="#EFEFEF">
<%if showtime="1" then%>
<%=datetime%>
<%end if%>
<%if showclick="1" then%>
<font color=#666666>[<%=rsnosmall("click")%>]</font>
<%end if%>
</td>
<td width="13%" align="center">
<%if year(rsnosmall("updatetime"))=year(date()) and month(rsnosmall("updatetime"))=month(date()) and day(rsnosmall("updatetime"))=day(date()) then%>
<img src="images/new.gif">
<%end if%>
<%if rsnosmall("goodnews")="1" then%>
<img src="images/g.gif" >
<%end if%>
</td>
<td width="13%"colspan="3" valign="top"> <a class=middle href="<%if rsnosmall("titleface")="無" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target="_blank" title="<%=htmlencode4(title)%>"><%=CutStr(nohtml(rsnosmall("Content")),250)%></a>
</td>
</tr>
<tr>
<!--<td width="16%"> <a class=middle href="<%if rsnosmall("titleface")="無" then %><%=newsurl%><% else %> <%=newswwwurl%><%end if%>" target=_blank title="<%=htmlencode4(rsnosmall("title"))%>">
<%if rsnosmall("picname")=("") then%>
<img src="IMAGES/softno.gif" width="65" height="65" border=0 align="left">
<%else%>
<%if fileext="jpg" or fileext="bmp" or fileext="png" or fileext="gif" then%>
<img src="<%=FileUploadPath & rsnosmall("picname")%>" width="65" height="65" border=0 align="left">
<%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 >
<param name=movie value="<%=FileUploadPath & rsnosmall("picname")%>">
<param name=quality value=high>
<param name='Play' value='-1'>
<param name='Loop' value='0'>
<param name='Menu' value='-1'>
<embed src="<%=FileUploadPath & rsnosmall("picname")%>" width="6" 5height="65" border=0 pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'></embed>
</object>
<%end if%>
<%end if%>
</a> </td>-->
</tr>
</table>
</div>
</td>
</tr>
<%
rsnosmall.MoveNext
wend
%>
<%
else
Response.Write "<tr><td> <div align='center'><table width='98%' border='0' cellpadding='3' cellspacing='0'><tr><td width='62%'> <img src='IMAGES/006.gif' width='8' height='10'> 無小類文章暫無</td></tr></table></div></td></tr>"
end if
rsnosmall.close
set rsnosmall=nothing
%>
</table>
<!--軟件模版-->
<%end select%>
<!--無小類文章區結束-->
<TABLE cellSpacing=0 cellPadding=3 width="100%" align=center border=0>
<tr>
<td> </td>
</tr>
<tr>
<td width=100% height="19" align=center><a class=class href='nosmallClass.asp?typeid=<%=typeid%>&BigClassid=<%=BigClassid%>'><img src="images/more.gif" border="0" alt="更多<%=BigClassName%>">更多</a> </td>
</tr>
</table>
<!--模版開始-->
<% select case bigclasszs%>
<% case 1 %>
<!--圖片模版-->
<%
if rseof=1 then
for i=1 to abcount
smallClassID=ArraysmallClassID(i)
smallClassName=ArraysmallClassName(i)
smallClassview=ArraysmallClassview(i)
if ArraysmallClassView(i)=1 then
%>
<table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber5">
<tr>
<td height="25" background="IMAGES/menu-l-zj.gif"> <font class=body><%=smallClassName%></font></td>
</tr>
<%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 "& bigclassshownum &" * from "& db_News_Table &" where (smallClassID="& smallClassID &" and checkked=1) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("key")="" then
rs3.Source="select top "& bigclassshownum &" * from "& db_News_Table &" where (smallClassID="& smallClassID &" 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
rs3.Source="select top "& bigclassshownum &" * from "& db_News_Table &" where (smallClassID="& smallClassID &" and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=2 then
rs3.Source="select top "& bigclassshownum &" * from "& db_News_Table &" where (smallClassID="& smallClassID &" and checkked=1 ) order by newsid DESC"
end if
if Request.cookies(Forcast_SN)("reglevel")=1 then
rs3.Source="select top "& bigclassshownum &" * from "& db_News_Table &" where (smallClassID="& smallClassID &" and checkked=1 ) order by newsid DESC"
end if
end if
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -