From: short <> Date: Sun, 12 Oct 2003 06:25:55 +0000 (+0000) Subject: +Contact X-Git-Url: http://git.jankratochvil.net/?p=www.jankratochvil.net.git;a=commitdiff_plain;h=d35f2b03b08d6a0465840d6820a7fd82ecf69eac;ds=sidebyside +Contact --- diff --git a/Contact.html.pl b/Contact.html.pl new file mode 100755 index 0000000..a6d6a22 --- /dev/null +++ b/Contact.html.pl @@ -0,0 +1,62 @@ +#! /usr/bin/perl +# +# $Id$ +# Contact page Perl template. +# Copyright (C) 2003 Jan Kratochvil +# +# 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/,)[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"; +
+ + + + +
Name Jan Kratochvil
e-mail $mailme
WWW @{[ a_href('http://www.jankratochvil.net/') ]}
OpenPGP @{[ a_href '/pgp-JanKratochvil.txt','' + .'pub 1024D/44FC7632 2002-10-07 Jan Kratochvil <pgp-44FC7632@jankratochvil.net>
' + .'sub 2048g/D9F5F44B 2002-10-07 [expires 2004-10-06]' ]}
+ +HERE + + +My::Web->footer(); diff --git a/Makefile.am b/Makefile.am index 4596640..583333d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,4 +60,5 @@ EXTRA_DIST+= \ have_js.js.pl \ robots.txt \ CV.html.pl \ - SendMsg.pl + SendMsg.pl \ + Contact.html.pl