home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / remind-03.00.19.tgz / remind-03.00.19.tar / remind-03.00.19 / www / hebhtml < prev    next >
Text File  |  1997-07-30  |  1KB  |  44 lines

  1. #!/bin/sh
  2. # HTML calendar shell script
  3. #
  4. # This file is part of REMIND.
  5. # Copyright (C) 1992-1997 by David F. Skoll
  6.  
  7. # $Id: hebhtml,v 1.2 1997/07/31 03:10:18 dfs Exp $
  8.  
  9. echo "Content-Type: text/html"
  10. echo ""
  11.  
  12. if [ "$1 $2" = " " ] ; then
  13. $REMIND - <<'EOR'
  14. set thismon monnum(today())
  15. set thisyear year(today())
  16. set nextmon iif(thismon+1 > 12, 1, thismon+1)
  17. set nextyear iif(nextmon==1, thisyear+1, thisyear)
  18. set lastmon iif(thismon-1 < 1, 12, thismon-1)
  19. set lastyear iif(lastmon==12, thisyear-1, thisyear)
  20. set nextmon mon(nextmon)
  21. set lastmon mon(lastmon)
  22. BANNER %
  23. REM RUN $REMIND -iHTML=1 -p $DIR/hebdate.rem %m %y | $DIR/rem2html --forwurl "cal_dispatch?hebhtml+[nextmon]+[nextyear]" --backurl "cal_dispatch?hebhtml+[lastmon]+[lastyear]"
  24. EOR
  25.  
  26. else
  27.  
  28. $REMIND - "$1" "$2" <<'EOR'
  29. set thismon monnum(today())
  30. set thisyear year(today())
  31. set nextmon iif(thismon+1 > 12, 1, thismon+1)
  32. set nextyear iif(nextmon==1, thisyear+1, thisyear)
  33. set lastmon iif(thismon-1 < 1, 12, thismon-1)
  34. set lastyear iif(lastmon==12, thisyear-1, thisyear)
  35. set nextmon mon(nextmon)
  36. set lastmon mon(lastmon)
  37. BANNER %
  38. REM RUN $REMIND -iHTML=1 -p $DIR/hebdate.rem %m %y | $DIR/rem2html --forwurl "cal_dispatch?hebhtml+[nextmon]+[nextyear]" --backurl "cal_dispatch?hebhtml+[lastmon]+[lastyear]"
  39. EOR
  40.  
  41. fi
  42.  
  43. exit 0
  44.