CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConfigBox.cc
Go to the documentation of this file.
2 
4 {
5  std::string position = "position:absolute; left:" + get_pix_left() + "; top:" + get_pix_top();
6  *out << cgicc::div().set("style", position.c_str()) << std::endl;
7  *out << cgicc::form().set("name", "ConfigurationForm") << std::endl;
8  *out << cgicc::table().set("border", "0") << std::endl;
9  *out << cgicc::tr()
10  << cgicc::td() << "Hostname:" << cgicc::td()
11  << cgicc::td() << cgicc::input().set("type", "text").set("name", "Hostname") << cgicc::td()
12  << cgicc::tr() << std::endl;
13  *out << cgicc::tr()
14  << cgicc::td() << "Port:" << cgicc::td()
15  << cgicc::td() << cgicc::input().set("type", "text").set("name", "Port") << cgicc::td()
16  << cgicc::tr() << std::endl;
17  *out << cgicc::tr()
18  << cgicc::td() << "Client Name:" << cgicc::td()
19  << cgicc::td() << cgicc::input().set("type", "text").set("name", "Name") << cgicc::td()
20  << cgicc::tr() << std::endl;
21 
22  std::string js_command = "submitConfigure('" + get_url() + "', form)";
23  *out << cgicc::tr()
24  << cgicc::td() << cgicc::input().set("type", "button").set("value", "(Re)configure!").set("onClick", js_command) << cgicc::td()
25  << cgicc::tr() << std::endl;
26  *out << cgicc::table() << std::endl;
27  *out << cgicc::form() << std::endl;
28  *out << cgicc::div() << std::endl;
29 }
30 
std::string get_pix_left()
Definition: WebElement.h:38
list table
Definition: asciidump.py:386
std::string get_url()
Definition: WebElement.h:32
static int position[TOTALCHAMBERS][3]
Definition: ReadPGInfo.cc:509
void printHTML(xgi::Output *out)
Definition: ConfigBox.cc:3
tuple out
Definition: dbtoconf.py:99
std::string get_pix_top()
Definition: WebElement.h:37
#define Output(cl)
Definition: vmac.h:193