I. 154. Make a program that generates a picture gallery: it takes images of a folder and produces a web page with the gallery in the same folder.
First your program reads the full path of the folder from the command line (for example, i154 c:\mypictures\web\today\), then makes a list of its files (subfolders should be ignored). The folder contains only .gif, .png and .jpg extensions, but every file has two copies: a larger and a smaller one. The smaller copy is a thumbnail image, its name begins with a letter ``k'' but the name and extension are otherwise identical to the original file.
Then, in the same folder, your program generates one index.html file and several .html files, each corresponding to a picture having the same name. The page index.html has the thumbnail images in four columns: they are in fact all links to the corresponding .html pages containing the original pictures. The pages with the original images should also contain a left and a right arrow (both being links to the previous and next original images in the list), further, a small icon referring back to the thumbnail images.
The source code of the program (i154.pas, i154.cpp, ...) generating the HTML pages should be submitted. We also take into account the design of the web pages generated.
Deadline expired on 16 April 2007.