#!/usr/local/bin/perl

open(LISTE, "filer.txt");
foreach $_ (<LISTE>)
{
    $tmp_file = $_; chop($tmp_file);
    /(\w+).gif/;
    $file = $1;   
    $new_file = "$file".".html";
    $bilde = "$file".".gif";

    open(HTML, ">"."$new_file");

    print HTML "<html>\n<head>\n<title>Al Mashriq</title>\n</head>";
    print HTML "<body bgcolor=\"\#ffffff\" text=\"\#5C4033\" vlink=\"\#855E42\" link=\"\#000000\">\n";
    print HTML "<center>\n";
    print HTML "<table width=528 cols=1 border=0 cellpadding=5>\n";
    print HTML "<tr valign = top><td>\n";
    print HTML "<a href=\"\/\"><img src =\"/sys/almashriq-levant-small.gif\" border=0></a>\n";
    print HTML "</td></tr>\n<tr valign=top><td>\n";
    print HTML "<img src=\"$bilde\" border=0>\n";
    print HTML "</td></tr>\n</table>\n";
    print HTML "<a href=\".\/\"><img src=\"/sys/almashriq-bottom-line.gif\" alt=\"----------------\" border=0></a><p>\n";
    print HTML "<a href=\"/base/mailpage.html\">al\@mashriq</a><p>\n";
    print HTML "<font size=-1>970428</font>\n";
    print HTML "</center>\n</body>\n</html>";


    close(HTML);
}
close(LISTE);



