Ignore:
Timestamp:
Sep 9, 2006, 12:42:09 PM (15 years ago)
Author:
Peter Johansson
Message:

refs #87 moved print_header function to html_utility

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/html_utility.cc

    r190 r199  
    177177
    178178
     179  void print_header(std::ostream& os, const std::string& title, u_int level)
     180  {
     181    os << "<!DOCTYPE html\n"
     182       << "PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n"
     183       << "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"
     184       << "<html xmlns=\"http://www.w3.org/1999/xhtml\""
     185       << " xml:lang=\"en\" lang=\"en\"><head>\n"
     186       << "<head>\n"
     187       << "<title> svndigest " << title << "</title>\n"
     188       << "</head>\n"
     189       << "<link rel=\"stylesheet\" "
     190       << "href=\"";
     191    for (u_int i=0; i<level; ++i)
     192      os << "../";
     193    os << "svndigest.css\" type=\"text/css\" />\n"
     194       << "<body>\n"
     195       << "<div id=\"menu\">"
     196       << "<ul><li></li>"
     197       << "<li>";
     198    anchor(os, "index.html", "Home", level, "Main page");
     199    os << "</li>"
     200       << "</ul></div>"
     201       << "<div id=\"main\">\n";
     202  }
     203
     204
    179205}} // end of namespace svndigest and namespace theplu
Note: See TracChangeset for help on using the changeset viewer.