Wrance的图片系统目录直读版1.0(3)


            showContent         
            showpage2 strFileName,totalput,MaxPerPage
            response.write "<br><div align='center'>本页共显示 <b>" & FileCount-1 & "</b> 个文件,占用 <b>" & TotleSize\1024 & "</b> K</div>"
           else
            currentPage=1
            showContent         
            showpage2 strFileName,totalput,MaxPerPage
            response.write "<br><div align='center'>本页共显示 <b>" & FileCount-1 & "</b> 个文件,占用 <b>" & TotleSize\1024 & "</b> K</div>"
        end if
    end if
  else
    response.write "找不到文件夹!可能是配置有误!"
  end if
end if

sub showContent()
       dim c
    FileCount=1
    TotleSize=0
%>
      <table width="100%" border="0" align="center" cellpadding="5" cellspacing="5">
                  <tr class="tdbg"> 
        <% For Each theFile In theFolder.Files
    c=c+1
    if FileCount>MaxPerPage then
        exit for
    elseif c>MaxPerPage*(CurrentPage-1) then %>
          <td><a href="<%=(UploadDir & theFile.Name)%>" target="_blank">
<img src=<%=(UploadDir & theFile.Name)%> border=0 width=120 height=150></a></td>
<% if FileCount mod 5 =0 then%>
              </TR>
              <tr> 
                <%end if%>

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/2977.html