using namespace std;

namespace c4html {
	void IndexModule::doGet(Request &request, Response &response) {
	}

	void IndexModule::doPost(Request &request, Response &response) {
	}

	void IndexModule::doPut(Request &request, Response &response) {
	}

	void IndexModule::doDelete(Request &request, Response &response) {
	}

	void IndexModule::printBody(Request &request, Response &response) {
		response << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"" << Response::endl;
		response << "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">" << Response::endl;
		response << "<html xmlns=\"http://www.w3.org/1999/xhtml\">" << Response::endl;
		response << " <head>" << Response::endl;
		response << "  <meta http-equiv=\"content-type\" content=\"";
		response << response.getContentType();
		response << "\"/>" << Response::endl;
		response << "  <meta http-equiv=\"content-script-type\" content=\"text/javascript\"/>" << Response::endl;
		response << "  <meta name=\"robots\" content=\"index, follow\"/>" << Response::endl;
		response << "  <meta http-equiv=\"pragma\" content=\"no-cache\"/>" << Response::endl;
		response << "  <meta http-equiv=\"imagetoolbar\" content=\"no\"/>" << Response::endl;
		response << "  <meta name=\"generator\" content=\"";
		response << PRG_NAME;
		response << "v.";
		response << PRG_VERSION;
		response << "\"/>" << Response::endl;
		response << "  <meta name=\"author\" content=\"";
		response << PRG_AUTHOR;
		response << "\"/>" << Response::endl;
		response << "  <meta name=\"company\" content=\"\"/>" << Response::endl;
		response << "  <meta name=\"description\" content=\"\"/>" << Response::endl;
		response << "  <meta name=\"keywords\" content=\"\"/>" << Response::endl;
		response << "  <link href=\"/style/default.css\" type=\"text/css\" rel=\"stylesheet\"/>" << Response::endl;
		response << "  <script src=\"/script/jquery.js\" type=\"text/javascript\"></script>" << Response::endl;
		response << "  <script src=\"/script/default.js\" type=\"text/javascript\"></script>" << Response::endl;
		response << "  <script type=\"text/javascript\">" << Response::endl;
		response << "   $(document).ready(function() {" << Response::endl;
		response << "    loadContent('navigation', '/?navigation=group');" << Response::endl;
		response << "    loadContent('content', '/?navigation=item');" << Response::endl;
		response << "   });" << Response::endl;
		response << "  </script>" << Response::endl;
		response << "  <link rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\"/>" << Response::endl;
		response << "  <title>";
		response << Config::getTitle();
		response << "</title>" << Response::endl;
		response << " </head>" << Response::endl;
		response << " <body>" << Response::endl;
		response << "  <div class=\"header\">" << Response::endl;
		response << "   <h1>";
		response << Config::getTitle();
		response << "</h1>" << Response::endl;
		response << "  </div>" << Response::endl;
		response << "  <div class=\"main\">" << Response::endl;
		response << "   <table> " << Response::endl;
		response << "    <tr>" << Response::endl;
		response << "     <td>" << Response::endl;
		response << "      <div id=\"navigation\">...loading</div>" << Response::endl;
		response << "     </td>" << Response::endl;
		response << "     <td>" << Response::endl;
		response << "      <div id=\"content\">...loading</div>" << Response::endl;
		response << "     </td>" << Response::endl;
		response << "    </tr>" << Response::endl;
		response << "   </table>" << Response::endl;
		response << "  </div>" << Response::endl;
		response << "  <div class=\"footer\">" << Response::endl;
		response << "   kVASy Client Control &copy; 2012-2104 by <a href=\"mailto:stephan.laukien@siv.de\">Stephan Laukien</a>" << Response::endl;
		response << "  </div>" << Response::endl;
		response << " </body>" << Response::endl;
		response << "</html>" << Response::endl;
	}
}
