#ifndef ____setupadmin_h__
#define ____setupadmin_h__

namespace http {

   class __setupadmin : public HTTPPage {
   
      int processCommand(std::string request, core::TCPSession *session, HTTPSession *httpSession, HTTPRequest *httpRequest, std::stringstream &data) override {
         
         data << "<form name=\"setupadmin\" action=\"setupadmin\" method=\"POST\">" << std::endl;
         data << " <div class=\"window\"><p>Please enter credential information" << std::endl;
         data << "   for the security officer, then press Set Admin Profile button below:" << std::endl;
         data << "   <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
         data << "    <div>User Name:</div>" << std::endl;
         data << "    <input type=\"text\" name=\"username\" size=\"30\">" << std::endl;
         data << "   </div>" << std::endl;
         data << "   <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
         data << "    <div>Password:</div>" << std::endl;
         data << "    <input type=\"password\" name=\"password\" size=\"30\">" << std::endl;
         data << "   </div>" << std::endl;
         data << "   <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
         data << "    <div>Verify Password:</div>" << std::endl;
         data << "    <input type=\"password\" name=\"verify\" size=\"30\">" << std::endl;
         data << "   </div>" << std::endl;
         data << "   <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
         data << "   <br>The configuration has not yet been established for this web site.</p>" << std::endl;
         data << "   <input type=\"button\" onmousedown=\"process('/mainmenu','setupadmin', 'main'); return true;\" name=\"button1\" value=\"Set Admin Profile\">" << std::endl;
         data << " </div></form>" << std::endl;
         
         httpRequest->response.addHeader("Content-Type", "text/html");   
         
         return true;
      }
   };
}

#endif
