Finally merged the branch 'apache20'(+'apache2') back to the main trunk.
[www.jankratochvil.net.git] / project / Nokia61 / Index.pm
old mode 100755 (executable)
new mode 100644 (file)
similarity index 64%
rename from project/Nokia61/ListItem.pm
rename to project/Nokia61/Index.pm
index d5b717a..026163a
@@ -1,8 +1,6 @@
-#! /usr/bin/perl
-# 
 # $Id$
-# Definition of 'My::Project::Nokia61' for list.cgi.pl
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# Main page of 'My::Project::Nokia61'
+# Copyright (C) 2003-2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
 # 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +16,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 
-package project::Nokia61::ListItem;
+package project::Nokia61::Index;
 require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway
 our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
 our $CVS_ID=q$Id$;
@@ -26,6 +24,7 @@ use strict;
 use warnings;
 
 use My::Web;
+Wuse 'project::Lib';
 
 
 our @ListItem=(
@@ -47,4 +46,30 @@ in rows.</p>
 HERE
                );
 
+sub handler
+{
+project::Lib->init();
+
+
+My::Web->make_file(path_abs_disk("Nokia61"));
+# FIXME: <col width="0*" />
+#        <col width="1*" />
+# What was the reason? Currently it hides the whole <table/> in:
+#      Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050719 Galeon/1.3.21
+print <<"HERE";
+<table border="0" width="100%">
+       <tr>
+               <td align="center">
+<!--iframe src="Nokia61.php?base=.%2F" width="500" height="600"-->
+<p>@{[ a_href 'Nokia61.php?base=.%2F','Program on-line.' ]}</p>
+<!--/iframe-->
+               </td>
+               <td align="center">@{[ img 'Nokia61.jpeg','Illustration' ]}</td>
+       </tr>
+</table>
+HERE
+
+
+exit;
+}
 1;