#ifndef ____mainmenu_h__
#define ____mainmenu_h__

#include "HTTPPage.h"
#include "IMFFormData.h"

namespace http {

   class __mainmenu : public HTTPPage {

    public:
      __mainmenu(HTTPParameters &p) { page(p); }
      
      int page(HTTPParameters &p) override {

         p.data << "<div>"
                   " <div style=\"background: #448; color: #fff; width: 400px; cursor: pointer;\""
                   "      onmousedown=\"getPage('/configure','app1');\">"
                   "  <span>Setup Server Parameters</span>"
                   " </div>"
                   " <div style=\"background: #448; color: #fff; width: 400px; cursor: pointer;\""
                   "      onmousedown=\"getPage('/viewlist','app1');\">"
                   "  <span>View and Layout Designer</span>"
                   " </div>"
                   " <div style=\"background: #448; color: #fff; width: 400px; cursor: pointer;\""
                   "      onmousedown=\"getPage('/entrypoints','app1');\">"
                   "  <span>Entry Points</span>"
                   " </div>"
                   " <div style=\"background: #448; color: #fff; width: 400px; cursor: pointer;\""
                   "      onmousedown=\"getPage('/viewlist','app1');\">"
                   "  <span>Data Entity Editor</span>"
                   " </div>"
                   " <div style=\"background: #448; color: #fff; width: 400px; cursor: pointer;\""
                   "      onmousedown=\"getPage('/workflow','app1');\">"
                   "  <span>Work Flow Process Management</span>"
                   " </div>"
                   "</div>";

         p.httpRequest.response.addHeader(coreutils::IMFHeader("Content-Type", "text/html"));

         return true;
      }
   };
}

#endif
