00001 #ifndef _BASEFORM_H 00002 #define _BASEFORM_H 00003 00004 #include <libcgi++.h> 00005 #include <libsimple.h> 00006 00007 class SimpleWeb; 00008 00009 class BaseForm : public WebForm 00010 { 00011 public: 00012 BaseForm(SimpleWeb& ,const std::string&); 00013 ~BaseForm(); 00014 00015 SimpleWeb& GetWeb() const { return m_web; } 00016 const std::string& GetName() { return m_name; } 00017 00018 void Select(const std::string &) {} 00019 void List() {} 00020 00021 protected: 00022 void Header(Database& db,Query& q,db::Account& acct,db::Player& pl,db::Location& loc,char *sql); 00023 00024 private: 00025 SimpleWeb& m_web; 00026 std::string m_name; 00027 }; 00028 00029 00030 00031 00032 #endif // _BASEFORM_H