home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 May / PCO_5_97.ISO / FilesBBS / OS2 / HYPEMAIL.ARJ / HYPEMAIL.ZIP / libcgi / html.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-28  |  798 b   |  31 lines

  1. /*
  2.  * This file is part of the LIBCGI library
  3.  *
  4.  * Copyright 1994 by Enterprise Integration Technologies Corporation
  5.  *
  6.  * This is freeware with commercialization rights reserved; see the
  7.  * LICENSE included in the distribution for specifics.
  8.  */
  9.  
  10. void print_doc_begin(title)
  11.      char *title;
  12.  {
  13.   printf("<head><title>%s</title></head>\n", title);
  14.   printf("<h1>%s</h1>\n<img src=http://www.eit.com/graphics/stripe.bottom.gif alt=\"\"><br>", title);
  15. }
  16.  
  17. void print_doc_end(text)
  18.      char *text;
  19.  {
  20.   char *w, *getenv();
  21.  
  22.   puts("<p><hr>");
  23.   if (text && *text) puts(text);
  24.   else if (w = getenv("WEBMASTER")) printf("<address>%s</address>\n", w);
  25. }
  26.  
  27. void print_logo()
  28.  {
  29.   printf("<a href=http://www.eit.com/><img src=http://www.eit.com/graphics/eit.small.gif alt=\"EIT\" align=bottom></a>");
  30. }
  31.