X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=WebConfig.pm;h=fe5cd041321410b37c0437df776eaedd0d73041b;hb=6359eb5b088aeb9a7fc83f9677f1198f527d6b0b;hp=e13794c0e6921c709f18ce5510fd4fa81ba96084;hpb=1a388de21de28bbf64a07977ce653bfe30e542ba;p=www.jankratochvil.net.git diff --git a/WebConfig.pm b/WebConfig.pm index e13794c..fe5cd04 100644 --- a/WebConfig.pm +++ b/WebConfig.pm @@ -31,6 +31,7 @@ use vars qw(@ISA @EXPORT); @ISA=qw(Exporter); @EXPORT=qw(%WebConfig); +use My::Web; require CGI; @@ -49,6 +50,51 @@ our %WebConfig=( "project_viewcvs"=>"http://cvs.jankratochvil.net/viewcvs/", "pserver"=>':pserver:pserver:@cvs.jankratochvil.net', "pserver_path"=>"/cvs", + "heading"=>sub () { + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print '
'."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print '
'."\n"; + print My::Web::a_href('http://www.jankratochvil.net/','Jan Kratochvil'); + print '
'; + print '
'."\n"; + print ''."\n"; + print ''."\n"; + my @sections=( + My::Web::top_dir()."/project/"=>"Projects", + "http://cvs.jankratochvil.net/"=>"CVS", +# My::Web::top_dir()."/News.html.pl"=>"News", + My::Web::top_dir()."/resume/"=>"Resume", + My::Web::top_dir()."/Contact.html.pl"=>"Contact", + ); + while (@sections) { + my $section_path=shift @sections; + my $section_name=shift @sections; + print '\n"; + } + print ''."\n"; + print '
'; + print(($My::Web::W->{"section"} || "") eq $section_name ? "$section_name" + : My::Web::a_href($section_path,$section_name)); + print "
'."\n"; + print '
'."\n"; + print My::Web::vskip("1ex"); + }, + "footing"=>sub () { +# print "

footing

\n"; + }, ); 1;