Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Displaying File Info

    Hey,

    I was wondering if someone could, please, show me how to make the code for listing the contents of a directory with the size and extension of each file in just one directory?

    Below is what I have as a basic layout but I lack the knowhow, thus far, to complete it.

    Code:
    <html><head><title>Downloads Page</title>
      <LINK href="../style.css" rel="stylesheet" type="text/css"> 
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    </head>
    <body>
    <center><em><h1><b>Documentation and Downloads</b></h1></em></center>
    <p>
    <center>
    <table cellspacing="1" cellpading="1" bgcolor="#ffffff" border="2" width="98%">
         <tbody>
      <tr>
        <td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>FILE DESCRIPTION AND/OR CONTENTS</font></td>
        <td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>VIEW</font></td>
        <td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>SIZE</font></td>
        <td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>SAVE</font></td>
        <td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>SIZE</font></td></tr>
    
    <% CODE TO START LISTING FILES %>
      <tr>
        <td><font face="ARIAL" size="1" color="#000000"><% =filename %></font></td>
        <td align="middle"><a class="clr2" href="<% =filepath %>"><% =fileext %></a></td>
        <td align="middle"><font color="#000000" size="2"><% =filesize %></font></td>
        <td align="middle"><a class="clr2" href="<% =zippath %>">ZIP</a></td>
        <td align="middle"><font color="#000000" size="2"><% =zipsize %></font>
      </tr>
    <%
     CODE FOR LOOPING THROUGH EACH FILE
     CODE AT END
    %>
    
    </table>
    <!--#include file="../Footer.asp" -->
    	</td>
       </tr>
    </table>
    </center>
    </body></html>
    I apprieciate any help that I can get on this.
    Cheers,
    Larry

  • #2
    New Coder
    Join Date
    Jun 2002
    Location
    Pilipinas
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think I have something similar, though is done in ASP.NET. This page provides quick links to the demos available in the workshop.

    Show me

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is a really nice code for that...

    Here is an example of what it looks like:
    http://www.through-the-eyes.com/examples


    All you have to do is move all of the images into a folder called icons.

    If you have trouble with it let me know....
    -WebMark Art
    Programming is 80% thinking and 20% spelling

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The attatchment didn't work... lets try it again
    Attached Files Attached Files
    -WebMark Art
    Programming is 80% thinking and 20% spelling

  • #5
    New Coder
    Join Date
    Jun 2002
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts
    SWEET!

    That was exactly what I need to get me onto the right path.
    Thank You Very Much.
    Cheers,
    Larry


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •