?? default.asp
字號:
<BR>
分類:
<SELECT name="Nclassid" style="color:#008080;font-size: 9pt">
<OPTION selected value="">未指定條件</OPTION>
</SELECT>
<br>
<input type="text" name="keyword" class=smallinput size=14 value="關(guān)鍵字" maxlength="50" style="color:#008080;font-size: 9pt">
<input type="submit" name="Submit2" value="搜索" class="buttonface">
</form></TD>
</TR>
</TABLE> </td>
</tr>
</table>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD height="3"></TD>
</TR>
</TABLE>
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD height="3"></TD>
</TR>
</TABLE>
</td>
<td width=78% align=middle valign=top bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align=left width="100%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="22">
<tr bgcolor="#FFFFFF">
<td width="3%" bgcolor="#FFFFFF" height="22"><img src="../images/arrow.gif" width="20" height="9"></td>
<td colspan="4" bgcolor="#FFFFFF" background="../images/news_bg.gif" height="22"><a href="../default.asp">生活者姿態(tài)</a>
>> <a href='Default.asp?classid=<%=request("classid")%>'><%=classname%></a>
>> <%=Nclassname%></td>
</tr>
</table>
<%
if request("Nclassid")="" then
sql="select id,showname,note,dayhits,weekhits,lasthits,hits,dateandtime,hot,system,size,orders from download where "&classid&" stop=0 "
sql=sql&" order by "&order_name&" "&updown
else
sql="select id,showname,note,dayhits,weekhits,lasthits,hits,dateandtime,hot,system,size,orders from download where "&classid&" "&Nclassid&" stop=0 "
sql=sql&" order by "&order_name&" "&updown
end if
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<table><tr><td border='0' width='100%' height='100%' cellspacing='1' cellpadding='0' bgcolor='#FFFFFF'><p align='center'>沒有或沒有找到任何程序</p></td></tr></table>"
else
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showContent
showpage totalput,MaxPerPage,"default.asp"
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showContent
showpage totalput,MaxPerPage,"default.asp"
else
currentPage=1
showContent
showpage totalput,MaxPerPage,"default.asp"
end if
end if
rs.close
end if
sub showContent
dim i
i=0
%>
<table border="0" width="96%" cellspacing="0" cellpadding="0" align="center">
<%if request("updown")="" then%>
<tr>
<td height=22 width="49%" align="right"><b>排列方式:</b></td>
<td width="11%" align=center><a href="default.asp?classid=<%=request("classid")%>&Nclassid=<%=request("Nclassid")%>&order=dateandtime&updown=desc" title="點(diǎn)擊按升序排列"><img src="images/geng-1.gif" border="0"></a></td>
<td width="11%" align=center><a href="Default.asp?classid=<%=request("classid")%>&Nclassid=<%=request("Nclassid")%>&order=hits&updown=desc" title="點(diǎn)擊按升序排列"><img src="images/zhai-1.gif" border="0"></a></td>
<td width="11%" align=center><a href="Default.asp?classid=<%=request("classid")%>&Nclassid=<%=request("Nclassid")%>&order=size&updown=desc" title="點(diǎn)擊按升序排列"><img src="images/wen-1.gif" border="0"></a></td>
<td width="18%" align=center><a href="Default.asp?classid=<%=request("classid")%>&Nclassid=<%=request("Nclassid")%>&order=hot&updown=desc" title="點(diǎn)擊按升序排列"><img src="images/fen-1.gif" border="0"></a></td>
</tr>
<%else%>
<tr>
<td height=22 width="49%" align="right"><b>排列方式:</b></td>
<td width="11%" align=center><a href="Default.asp?classid=<%=request("classid")%>&Nclassid=<%=request("Nclassid")%>(%22der=dateandtime" title="點(diǎn)擊按降序排列"><img src="images/geng-1.gif" border="0"></a></td>
<td width="11%" align=center><a href="Default.asp?classid=<%=request("classid")%>&Nclassid=<%=request("Nclassid")%>&order=hits" title="點(diǎn)擊按降序排列"><img src="images/zhai-1.gif" border="0"></a></td>
<td width="11%" align=center><a href="Default.asp?classid=<%=request("classid")%>&Nclassid=<%=request("Nclassid")%>&order=size" title="點(diǎn)擊按降序排列"><img src="images/wen-1.gif" border="0"></a></td>
<td width="18%" align=center><a href="Default.asp?classid=<%=request("classid")%>&Nclassid=<%=request("Nclassid")%>&order=hot" title="點(diǎn)擊按降序排列"><img src="images/fen-1.gif" border="0"></a></td>
</tr>
<%end if%>
<%do while not rs.eof%>
<tr>
<td height=22 width="49%"> <font color="#FF6600">★</font> <a class="date" href="list.asp?id=<%=rs("id")%>" title="點(diǎn)擊查看詳細(xì)介紹">
<%=rs("showname")%></a></td>
<td width="11%" align=center><%=rs("dateandtime")%></td>
<td width="11%" align=center><%=rs("hits")%></td>
<td width="11%" align=center><%=rs("size")%></td>
<td width="18%" align=center>
<%for imghot=1 to rs("hot")%>
<img src="images/grade1.gif" width="14" height="15">
<%next%>
</td>
</tr>
<tr>
<td height=22 colspan="5">
<%if len(rs("note"))>148 then%>
· <%=left(rs("note"),148)%>......
<%else%>
· <%=rs("note")%>
<%end if%>
</td>
</tr>
<tr>
<td height=22 colspan="2"><font class=date>運(yùn)行平臺:</font><%=rs("system")%>
<font class=date>軟件性質(zhì):</font><%=rs("orders")%></td>
<td colspan="3" height=22>本日下載:
<%if day(rs("lasthits"))=day(now()) and month(rs("lasthits"))=month(now()) and year(rs("lasthits"))=year(now()) then%>
<font color=red><%=rs("dayhits")%></font>
<%else%>
<font color=red>0</font>
<%end if%>
本周:
<%
p_year=CInt(year(Now()))-CInt(year(rs("lasthits")))
p_month=CInt(month(Now()))-CInt(month(rs("lasthits")))
p_day=CInt(day(Now()))-CInt(day(rs("lasthits")))
period_time=((p_year*12+p_month)*30+p_day)
if cint(period_time)>=cint(7) then
%>
0
<%else%>
<%=rs("weekhits")%>
<%end if%>
總計(jì):<%=rs("hits")%></td>
</tr>
<tr align="center">
<td height="16" colspan="5"> </td>
</tr>
<tr>
<td background=../images/bg02.gif height=1 colspan="5"> </td>
</tr>
<%
i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop
%>
<tr>
<td colspan="5" height="20" align="center">
<%
end sub
function showpage(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
response.write "<form method=Post action="&filename&"?classid="&request("classid")&"&Nclassid="&request("Nclassid")&"&order="&request("order")&"&updown="&request("updown")&">"
response.write "<p align='right'><font color='red'>"&Nclassname&"</font>"
if CurrentPage<2 then
response.write ""&totalnumber&"個 首頁 上一頁 "
else
response.write ""&totalnumber&"個 <a href="&filename&"?page=1&classid="&request("classid")&"&Nclassid="&request("Nclassid")&"&order="&request("order")&"&updown="&request("updown")&">首頁</a> "
response.write "<a href="&filename&"?page="&CurrentPage-1&"&classid="&request("classid")&"&Nclassid="&request("Nclassid")&"&order="&request("order")&"&updown="&request("updown")&">上一頁</a> "
end if
if n-currentpage<1 then
response.write "下一頁 尾頁"
else
response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&classid="&request("classid")&"&Nclassid="&request("Nclassid")&"&order="&request("order")&"&updown="&request("updown")&">"
response.write "下一頁</a> <a href="&filename&"?page="&n&"&classid="&request("classid")&"&Nclassid="&request("Nclassid")&"&order="&request("order")&"&updown="&request("updown")&">尾頁</a>"
end if
response.write " 頁次:<strong><font color=red>"&CurrentPage&"</font>/"&n&"</strong>頁 "
response.write " <b>"&maxperpage&"</b>個軟件/頁 "
%>
轉(zhuǎn)到:
<select name='page' size='1' style="color:#008080;font-size: 9pt" onChange='javascript:submit()'>
<%for i = 1 to n%>
<option value='<%=i%>' <%if cint(Page)=cint(i) then%> selected <%end if%>>第<%=i%>頁</option>
<%next%>
</select></FORM>
<%
end function
%>
</td>
</tr>
<tr>
<%
set rs=nothing
conn.close
set conn=nothing
%>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
<!--#include virtual="../end.asp" -->
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -