23 lines
752 B
C++
23 lines
752 B
C++
#include "handleHeader.h"
|
|
#include <iostream>
|
|
|
|
#include <cgicc/Cgicc.h>
|
|
#include <cgicc/CgiDefs.h>
|
|
#include <cgicc/HTTPHTMLHeader.h>
|
|
#include <cgicc/HTMLClasses.h>
|
|
|
|
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 << "<meta charset=\"UTF-8\">" << 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;
|
|
} |