#! /usr/bin/perl
# 
# $Id$
# Contact page Perl template.
# Copyright (C) 2003 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
# the Free Software Foundation; exactly version 2 of June 1991 is required
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


package Contact;
require 5.6.0;	# at least 'use warnings;' but we need some 5.6.0+ modules anyway
use vars qw($VERSION $CVS_ID);
$VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
$CVS_ID=q$Id$;
use strict;
use warnings;

BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
use My::Web;
require CGI;


my $W=My::Web->init(
		"__PACKAGE__"=>__PACKAGE__,
		"title"=>"Contact",
		"section"=>"Contact",
		"head_css"=>"
table.contact td { vertical-align: top; }
table.contact { border-collapse: collapse; border-style: solid; border-width: 1px; margin: 8px; }
table.contact A[href] { text-decoration: inherit; /* revoke underline */ }
",
		);
My::Web->heading();


my $mailme=(map({ a_href("mailto:$_",$_); } 'web@jankratochvil.net'))[0];

print <<"HERE";
<table width="100%" style="border-style: none;"><tr><td align="center"><table class="contact">
<tr><td class="tab-head">Name    </td><td>Jan Kratochvil</td></tr>
<tr><td class="tab-head">e-mail  </td><td>$mailme</td></tr>
<tr><td class="tab-head">WWW     </td><td>@{[ a_href('http://www.jankratochvil.net/') ]}</td></tr>
<tr><td class="tab-head">OpenPGP </td><td style="font-family: monospace;">@{[ a_href '/pgp-JanKratochvil.txt',''
		.'pub  1024D/44FC7632 2002-10-07 Jan Kratochvil &lt;pgp-44FC7632@jankratochvil.net&gt;<br />'
		.'sub  2048g/D9F5F44B 2002-10-07 [expires 2004-10-06]' ]}</span></td></tr>
</table></td></tr></table>

HERE


My::Web->footer();
