Typo fix.
[www.jankratochvil.net.git] / product / hotelgate / Screenshot.pm
1 # $Id$
2 # Screenshots of 'My::Project::hotelgate'
3 # Copyright (C) 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 product::hotelgate::Screenshot;
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
28
29 sub handler
30 {
31 Wrequire 'product::hotelgate::Lib';
32 my $W=product::hotelgate::Lib->init(
33                 "title"=>"HotelGate: Screenshots",
34                 );
35
36 print <<"HERE";
37 <h1>HotelGate: Administration Screenshots</h1>
38 HERE
39
40
41 my @items=(
42         { "id"=>"Login","title"=>"Login page for the administrative staff", },
43         { "id"=>"Staff-Port","title"=>"Reception targetted ticket control", },
44         { "id"=>"Port","title"=>"Setup of the ports and connected switches", },
45         { "id"=>"TicketNewPrint","title"=>"Single printed ticket", },
46         { "id"=>"Admin-Ticket","title"=>"Existing tickets overview", },
47         { "id"=>"bootstrap","title"=>"Initial network connection local setup", },
48         { "id"=>"Configure","title"=>"Initial system deployment configuration", },
49         );
50
51
52 print <<"HERE";
53 <ul>
54 HERE
55 for (@items) {
56         print <<"HERE";
57         <li>@{[ a_href '#'.$_->{"id"},$_->{"title"} ]}</li>
58 HERE
59         }
60 print <<"HERE";
61 </ul>
62 HERE
63
64 for (@items) {
65         print <<"HERE";
66 <h2 id="@{[ $_->{"id"} ]}">@{[ $_->{"title"} ]}</h2>
67 HERE
68         print centerimg "screenshot/".$_->{"id"}.".png",$_->{"title"};
69         }
70
71
72 exit;
73 }
74 1;