00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _CGI_ROOMFORM_H
00020 #define _CGI_ROOMFORM_H
00021
00022 #include <map>
00023
00024
00025 namespace cgi
00026 {
00027 typedef std::map<long,db::Zone *> zones_t;
00028 typedef std::map<long,db::Room_type *> types_t;
00029 typedef std::map<long,db::Room_size *> sizes_t;
00030
00031
00032 class RoomForm : public BaseForm
00033 {
00034 public:
00035 RoomForm(Web *);
00036 ~RoomForm();
00037
00038 void Process();
00039 void Select(const string &);
00040 void List();
00041 void Display(long = 0);
00042
00043 private:
00044 long m_edit;
00045 bool m_error;
00046 zones_t m_zone;
00047 types_t m_type;
00048 sizes_t m_size;
00049 };
00050
00051
00052 }
00053
00054
00055 #endif // _CGI_ROOMFORM_H
00056