/home/bradarant/barant/HTTPServer/__mainmenu.h
#ifndef ____mainmenu_h__
#define ____mainmenu_h__
#include "HTTPPage.h"
namespace http {
class __mainmenu : public HTTPPage {
int processCommand(std::string request,
core::Session *session,
HTTPSession *httpSession,
HTTPRequest &httpRequest,
std::stringstream &data) override {
data << "<div>" << std::endl;
data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
data << " onmousedown=\"getPage('/configure','main');\">" << std::endl;
data << " <span>Setup Server Parameters</span>" << std::endl;
data << " </div>" << std::endl;
data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
data << " onmousedown=\"getPage('/viewlist','main');\">" << std::endl;
data << " <span>View and Layout Designer</span>" << std::endl;
data << " </div>" << std::endl;
data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
data << " onmousedown=\"getPage('/viewlist','main');\">" << std::endl;
data << " <span>Data Entity Editor</span>" << std::endl;
data << " </div>" << std::endl;
data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
data << " onmousedown=\"getPage('/viewlist','main');\">" << std::endl;
data << " <span>Work Flow Process Management</span>" << std::endl;
data << " </div>" << std::endl;
data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
data << " onmousedown=\"getPage('/viewlist','main');\">" << std::endl;
data << " <span>Storyboard</span>" << std::endl;
data << " </div>" << std::endl;
data << "</div>" << std::endl;
httpRequest.response.addHeader("Content-Type", "text/html");
return true;
}
};
}
#endif
http::HTTPSession
Definition: HTTPSession.h:9
http
Definition: __configure.h:4
http::__mainmenu
Definition: __mainmenu.h:8
http::HTTPPage
Definition: HTTPPage.h:11
http::HTTPRequest
Definition: HTTPRequest.h:11