#include "handleHeader.h" #include #include #include #include #include void handleHtmlHeader(const std::string& page_title /*= "Shanghai Huijue EMS device"*/) { using namespace cgicc; // Output the HTTP headers for an HTML document, and the HTML 4.0 DTD info std::cout << HTTPHTMLHeader() << HTMLDoctype(HTMLDoctype::eStrict) << std::endl; //cout << html().set("lang", "en").set("dir", "ltr") << endl; std::cout << "" << std::endl; // Set up the page's header and title. std::cout << head() << std::endl; std::cout << title() << page_title.c_str() << title() << std::endl; std::cout << head() << std::endl << std::endl; }