$modcfg->setkey("DEST_CGI", $env["disp"]["destcgi"]); break; } switch ($env["disp"]["act"]) { case "def": $table[0][0] = new htmltext($adloc->GetStr("hostdesc")); $table[1][0] = new htmlformtext("", "desthost", $modcfg->getkey("DEST_HOST"), "", 20); $table[0][1] = new htmltext($adloc->GetStr("hostnote")); $table[0][1]->colspan = 2; $table[0][2] = new htmltext($adloc->GetStr("portdesc")); $table[1][2] = new htmlformtext("", "destport", $modcfg->getkey("DEST_PORT"), "", 20); $table[0][3] = new htmltext($adloc->GetStr("portnote")); $table[0][3]->colspan = 2; $table[0][4] = new htmltext($adloc->GetStr("cgidesc")); $table[1][4] = new htmlformtext("", "destcgi", $modcfg->getkey("DEST_CGI"), "", 20); $table[0][5] = new htmltext($adloc->GetStr("cginote")); $table[0][5]->colspan = 2; $table[0][6] = new htmlslist(array(new htmlraw("<center>"), new htmlformsubmit("submit", $adloc->GetStr("submit")), new htmlformreset("reset", $adloc->GetStr("reset")), new htmlraw("</center>"))); $table[0][6]->setcolspan(2); $table[0][6]->align = "center"; $form[0] = new htmlraw("<center>"); $form[1] = new htmltable($table, 5, 2); $form[1]->setwidth(""); $form[2] = new htmlraw("</center>"); $form[3] = new htmlformhidden("act", "def"); $form[4] = new htmlformhidden("pass", "setcfg"); $page->add(new htmlform($PHP_SELF, $form, true, false)); break; } echo $page->draw(1);