Typo.
[www.jankratochvil.net.git] / Contact.html.pl
1 #! /usr/bin/perl
2
3 # $Id$
4 # Contact page Perl template.
5 # Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; exactly version 2 of June 1991 is required
10
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
20
21 package Contact;
22 require 5.6.0;  # at least 'use warnings;' but we need some 5.6.0+ modules anyway
23 use vars qw($VERSION $CVS_ID);
24 $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
25 $CVS_ID=q$Id$;
26 use strict;
27 use warnings;
28
29 BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
30 use My::Web;
31 require CGI;
32
33
34 my $W=My::Web->init(
35                 "__PACKAGE__"=>__PACKAGE__,
36                 "title"=>"Contact",
37                 "section"=>"Contact",
38                 "head_css"=>"
39 table.contact td { vertical-align: top; }
40 table.contact { border-collapse: collapse; border-style: solid; border-width: 1px; margin: 8px; }
41 table.contact A[href] { text-decoration: inherit; /* revoke underline */ }
42 ",
43                 );
44 My::Web->heading();
45
46
47 my $mailme=(map({ a_href("mailto:$_",$_); } 'web@jankratochvil.net'))[0];
48
49 print <<"HERE";
50 <table width="100%" style="border-style: none;"><tr><td align="center"><table class="contact">
51 <tr><td class="tab-head">Name    </td><td>Jan Kratochvil</td></tr>
52 <tr><td class="tab-head">e-mail  </td><td>$mailme</td></tr>
53 <tr><td class="tab-head">WWW     </td><td>@{[ a_href('http://www.jankratochvil.net/') ]}</td></tr>
54 <tr><td class="tab-head">OpenPGP </td><td style="font-family: monospace;">@{[ a_href '/pgp-JanKratochvil.txt',''
55                 .'pub  1024D/44FC7632 2002-10-07 Jan Kratochvil &lt;pgp-44FC7632@jankratochvil.net&gt;<br />'
56                 .'sub  2048g/D9F5F44B 2002-10-07 [expires 2004-10-06]' ]}</span></td></tr>
57 </table></td></tr></table>
58
59 HERE
60
61
62 My::Web->footer();