HOW TO auto read files and regenarate table?

B

Bruno

I there.
I'm trying to buid a page that once selected an item from a list, auto-reads
files in a folder and and sort them in a table, with a calendar look.
The files are being feed to the folder with the name "ZON YY-MM-DD.gif"
"PSI20 YY-MM-DD.gif" "JMAR YY-MM-DD.gif"
i.e.

"MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" |
--------------------------------------------------------------------
YY-MM-DD | YY-MM-DD | YY-MM-DD | YY-MM-DD | YY-MM-DD |
.....
.....
.....
--------------------------------------------------------------------
08-10-20 | 08-10-21 | 08-10-22 | 08-10-23 | 08-10-24 |
--------------------------------------------------------------------
08-10-13 | 08-10-14 | 08-10-15 | 08-10-15 | 08-10-16 |
--------------------------------------------------------------------

Until now for each week I was coding in manually the new row for each item,
but it's a pain changing the date and item.

<tr>
<td><div align="center">07-07-2008</div></td>
<td><div align="center">08-07-2008</div></td>
<td><div align="center">09-07-2008</div></td>
<td><div align="center">10-07-2008</div></td>
<td><div align="center">11-07-2008</div></td>
</tr>
<tr>
<td><div align="center">
<p><img src="ZON 08-07-08.gif" width="220" height="129" /></p>
</div></td>
<td><div align="center">
<p><img src="ZON 08-07-08.gif" width="220" height="129" /></p>
</div></td>
<td><div align="center">
<p><img src="ZON 09-07-08.gif" width="220" height="129" /></p>
</div></td>
<td><div align="center">
<p><img src="ZON 10-07-08.gif" width="220" height="129" /></p>
</div></td>
<td><div align="center">
<p><img src="ZON 11-07-08.gif" width="220" height="129" /></p>
</div></td>
</tr>

How can I do this automatically?
Doing it with FOR's WHILE's and IF's seems very troublesome.

Any code or pointers are welcome.
 
B

Bruno

What if I chose to order it my creation date or modification date?
How can i do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top