#!/bin/sh
year=`echo $QUERY_STRING | sed -e 's/year=//g' -e 's/+/ /g'`
if [ -z $year ]; then year=`date +%Y`; fi
echo "Content-type: text/html"; echo
echo "
cal" "$year" " - Poor man's web cal page"
echo 'back
'
echo "Poor man's cal page - by Victor Zhang"
echo ''
echo "Please enter a 4-digit year."
echo "Last Year | "
echo "This Year | "
echo "Next Year"
echo "
"
cal $year
echo '
back'