#ifndef ____addview_h__
#define ____addview_h__

#include "HTTPPage.h"

namespace http {

   class __addview : public HTTPPage {

      int page(HTTPParameters &p) override {

         p.data << "<form name=\"addview\" action=\"addview\" method=\"POST\">"
                   " <div class=\"window\"><p>Please enter the name of the new view,"
                   "   then press Add View button below:"
                   "   <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">"
                   "    <div>View Name:</div>"
                   "    <input type=\"text\" name=\"viewname\" size=\"30\">"
                   "   </div>"
                   "   <input type=\"button\" onmousedown=\"process('/editview/testview1','addview', 'app1'); return true;\" name=\"button1\" value=\"Add View\">"
                   " </div></form>";

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

         return true;
      }
   };
}

#endif
