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

📄 default.asp

📁 生活者姿态整站程序 生活者姿态整站程序 生活者姿态整站程序
💻 ASP
📖 第 1 页 / 共 2 页
字号:
                      <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="关键字" 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">生活者姿态</a> 
                    &gt;&gt; <a href='Default.asp?classid=<%=request("classid")%>'><%=classname%></a> 
                    &gt;&gt; <%=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="点击按升序排列"><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="点击按升序排列"><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="点击按升序排列"><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="点击按升序排列"><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="点击按降序排列"><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="点击按降序排列"><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="点击按降序排列"><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="点击按降序排列"><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="点击查看详细介绍"> 
                    <%=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>运行平台:</font><%=rs("system")%> 
                    <font class=date>软件性质:</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%>
                     总计:<%=rs("hits")%></td>
                </tr>
                <tr align="center"> 
                  <td height="16" colspan="5">&nbsp;</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&"个&nbsp;首页 上一页&nbsp;"
  	else
    		response.write ""&totalnumber&"个&nbsp;<a href="&filename&"?page=1&classid="&request("classid")&"&Nclassid="&request("Nclassid")&"&order="&request("order")&"&updown="&request("updown")&">首页</a>&nbsp;"
    		response.write "<a href="&filename&"?page="&CurrentPage-1&"&classid="&request("classid")&"&Nclassid="&request("Nclassid")&"&order="&request("order")&"&updown="&request("updown")&">上一页</a>&nbsp;"
  	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 "&nbsp;页次:<strong><font color=red>"&CurrentPage&"</font>/"&n&"</strong>页 "
    	response.write "&nbsp;<b>"&maxperpage&"</b>个软件/页 "
%>
                    转到: 
                    <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" -->

⌨️ 快捷键说明

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