CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch13/src/DQM/TrackerCommon/src/ConfigBox.cc

Go to the documentation of this file.
00001 #include "DQM/TrackerCommon/interface/ConfigBox.h"
00002 
00003 void ConfigBox::printHTML(xgi::Output * out)
00004 {
00005   std::string position = "position:absolute; left:" + get_pix_left() + "; top:" + get_pix_top();
00006   *out << cgicc::div().set("style", position.c_str()) << std::endl;
00007   *out << cgicc::form().set("name", "ConfigurationForm") << std::endl;
00008   *out << cgicc::table().set("border", "0") << std::endl;
00009   *out << cgicc::tr() 
00010        << cgicc::td() << "Hostname:" << cgicc::td() 
00011        << cgicc::td() << cgicc::input().set("type", "text").set("name", "Hostname") << cgicc::td()
00012        << cgicc::tr() << std::endl;
00013   *out << cgicc::tr() 
00014        << cgicc::td() << "Port:" << cgicc::td()
00015        << cgicc::td() << cgicc::input().set("type", "text").set("name", "Port") << cgicc::td()
00016        << cgicc::tr() << std::endl;
00017   *out << cgicc::tr()
00018        << cgicc::td() << "Client Name:" << cgicc::td()
00019        << cgicc::td() << cgicc::input().set("type", "text").set("name", "Name") << cgicc::td()
00020        << cgicc::tr() << std::endl;
00021 
00022   std::string js_command = "submitConfigure('" + get_url() + "', form)";
00023   *out << cgicc::tr() 
00024        << cgicc::td() << cgicc::input().set("type", "button").set("value", "(Re)configure!").set("onClick", js_command) << cgicc::td()
00025        << cgicc::tr() << std::endl;
00026   *out << cgicc::table() << std::endl;
00027   *out << cgicc::form()  << std::endl;
00028   *out << cgicc::div()   << std::endl;
00029 }
00030