X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fhttp%2Fipagehandler.cpp;h=6edd8ac38e2a0b92537e30dfb972e271d93dfc78;hb=14fff12d9df0ee30e2df4bf9d22c2e83065816df;hp=f4ac20f0109f73226f72323ebe3654d813fd719d;hpb=f60495a029c54358f82956482fe203fe2b7b5b23;p=fms.git diff --git a/src/http/ipagehandler.cpp b/src/http/ipagehandler.cpp index f4ac20f..6edd8ac 100644 --- a/src/http/ipagehandler.cpp +++ b/src/http/ipagehandler.cpp @@ -2,6 +2,8 @@ #include "../../include/http/httpdefs.h" #include "../../include/stringfunctions.h" +#include + #ifdef XMEM #include #endif @@ -12,7 +14,7 @@ void IPageHandler::CreateArgArray(const std::map &vars, { if((*i).first.find(basename)==0 && (*i).first.find("[")!=std::string::npos && (*i).first.find("]")!=std::string::npos) { - int index; + int index=0; std::string indexstr; std::string::size_type startpos; std::string::size_type endpos; @@ -31,6 +33,28 @@ void IPageHandler::CreateArgArray(const std::map &vars, } } +const std::string IPageHandler::CreateTrueFalseDropDown(const std::string &name, const std::string &selected) +{ + std::string rval=""; + + rval+="