Initial mod_perl-2.0 port.
[www.jankratochvil.net.git] / project / Nokia61 / Index.pm
1 # $Id$
2 # Main page of 'My::Project::Nokia61'
3 # Copyright (C) 2003-2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 package project::Nokia61::Index;
20 require 5.6.0;  # at least 'use warnings;' but we need some 5.6.0+ modules anyway
21 our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
22 our $CVS_ID=q$Id$;
23 use strict;
24 use warnings;
25
26 use My::Web;
27 Wuse 'project::Lib';
28
29
30 our @ListItem=(
31                 "name"=>"Rotation",
32                 "platform"=>"web",
33                 "priority"=>480,
34                 "icon"=>"Nokia61-icon.jpeg",
35                 "download"=>"Nokia61.c",
36                 "summary"=>"Nokia logical game &quot;Rotation&quot; solver",
37                 "license"=>"PD",
38                 "maintenance"=>"ready",
39                 "language"=>"C, PHP",
40                 "description"=><<"HERE",
41 <p>At least Nokia 3210 offers game <b>Rotation</b>, this little software will
42 tell you the optimal solution steps for the given game board situation.
43 The goal is to get board with
44 <b>1&nbsp;2&nbsp;3</b>, <b>4&nbsp;5&nbsp;6</b>, <b>7&nbsp;8&nbsp;9</b>,
45 in rows.</p>
46 HERE
47                 );
48
49 sub handler
50 {
51 project::Lib->init();
52
53
54 My::Web->make_file(path_abs_disk("Nokia61"));
55 print <<"HERE";
56 <table border="0" width="100%">
57         <col width="0*" />
58         <col width="1*" />
59         <tr>
60                 <td align="left">
61 <!--iframe src="Nokia61.php?base=.%2F" width="500" height="600"-->
62 <p>@{[ a_href 'Nokia61.php?base=.%2F','Program on-line.' ]}</p>
63 <!--/iframe-->
64                 </td>
65                 <td align="center">@{[ img 'Nokia61.jpeg','Illustration' ]}</td>
66         </tr>
67 </table>
68 HERE
69
70
71 My::Web->footer();
72 }
73 1;