public function display() { $form = new Form(2); $form->submit(); $GLOBALS['editinglanguage'] = new Language($_GET['language']); $table = new Table(); $token = new TableColumn("token", "Token"); $translation = new TableFunctionColumn("token", Language::DirectTranslate("TRANSLATION")); $translation->functionName = "TranslationEditor_GetString"; $translation->autoWidth = true; $languagetoken = new TableColumn("'" . DataBase::Current()->EscapeString($_GET['language']) . "' as language", "Language"); $languagetoken->value = $_GET['language']; $languagetoken->visible = false; $table->columns->add($token); $table->columns->add($translation); $table->columns->add($languagetoken); $table->name = "{'dbprefix'}language_tokens"; $table->actions = "translation_tokens"; $table->orderBy = "token"; $table->size = -1; $table->display(); $newModule = Language::DirectTranslateHtml("NEW_MODULE"); echo "<h2>" . $newModule . "</h2>"; $form->display(); }
private function displayEvents() { echo "<h2>" . Language::DirectTranslateHtml("EVENTS") . "</h2>"; $table = new Table(); $name = new TableColumn("UPPER(name)", "Name"); $table->columns->add($name); $description = new TableColumn("CONCAT('{LANG:',UPPER(name),'_EVENTDESCRIPTION}')", Language::GetGlobal()->getString("WILL_BE_RAISED")); $description->autoWidth = true; $table->columns->add($description); $table->condition = "dataType = '" . DataBase::Current()->EscapeString($_GET['show']) . "'"; $table->name = "{'dbprefix'}datatype_events"; $table->orderBy = "name"; $table->display(); }
public function display() { $form = new Form(1); $form->submit(); $table = new Table(); $token = new TableColumn("token", "Token"); $token->autoWidth = true; $name = new TableColumn("name", Language::DirectTranslate("NAME")); $table->columns->add($token); $table->columns->add($name); $table->name = "{'dbprefix'}languages"; $table->actions = "translations"; $table->orderBy = "name"; $table->display(); $newTranslation = Language::DirectTranslateHtml("NEW_TRANSLATION"); echo "<h2>" . $newTranslation . "</h2>"; $form->display(); }
require_once CORE_DIR . "/admin/delete.php"; $remove = new Delete(); $remove->targeted($resno, $pwd, $imgonly = 0, $automatic = 0, $children = 1, $die = 1); } function error($mes) { //until error class is sorted out, this is in-house admin error echo "<br><br><hr><br><br><div style='text-align:center;font-size:24px;font-color:blue;'>{$mes}<br><br><a href='" . PHP_ASELF_ABS . "'>" . S_RELOAD . "</a></div><br><br><hr>"; die("</body></html>"); } /* Main switch */ switch ($_GET['mode']) { case 'res': head(0); aform($post = '', 0, 1); $table->display($type = 'res', $_GET['no']); break; case 'all': head(0); aform($post = '', 0, 1); $table->display($type = 'all', 0); break; case 'ip': head(0); aform($post = '', 0, 1); $table->display($type = 'ip', $_GET['no']); break; case 'ops': head(0); aform($post = '', 0, 1); $table->display($type = 'ops', 0);
if ($_GET["action"] == "add") { $input = new InputTpl("shareName"); } else { $input = new HiddenTpl("shareName"); } $t->add(new TrFormElement(_T("Name"), $input), array("value" => $share)); $t->add(new TrFormElement(_T("Comment"), new InputTpl("shareDesc")), array("value" => $shareDesc)); if (hasAv()) { $checked = ""; if ($av) { $checked = "checked"; } $param = array("value" => $checked); $t->add(new TrFormElement(_T("AntiVirus on this share"), new CheckboxTpl("hasAv")), $param); } $t->display(); $d = new DivExpertMode(); $d->push(new Table()); /* As long as we have no own modShare() (Ticket #96), the sharePath is readonly in edit mode */ if ($_GET["action"] == "add") { $sharePath = ""; $sharePathText = sprintf(_T("Share path (leave empty for a default path in %s)"), default_shares_path()); $input = new IA5InputTpl("sharePath"); } else { $sharePath = $shareInfos["sharePath"]; $sharePathText = "Path"; $input = new IA5InputTpl("sharePath"); } $d->add(new TrFormElement(_T($sharePathText), $input), array("value" => $sharePath)); if ($browseable) { $param = array("value" => "CHECKED");
$page->display(); ?> <form id="Form" method="post" action="" onSubmit="autogroupObj.selectAll(); autouserObj.selectAll(); autoadminObj.selectAll(); return validateForm();"> <?php $table = new Table(); if ($_GET["action"] == "add") { $input = new InputTpl("shareName"); } else { $input = new HiddenTpl("shareName"); } $table->add(new TrFormElement(_T("Name"), $input), array("value" => $shareName)); // $table->add(new TrFormElement(_T("Path"), new InputTpl("sharePath")),array("value" => $sharePath)); $table->add(new TrFormElement(_T("Description"), new InputTpl("shareDescription")), array("value" => $shareDescription)); $table->display(); ?> <table cellspacing="0"> <?php $param = array("value" => $shareGuest, "extraArg" => 'onclick="toggleVisibility(\'grouptable\');"'); $test = new TrFormElement(_T("Guest access"), new CheckboxTpl("shareGuest")); $test->setCssError("shareGuest"); $test->display($param); $param = array("value" => $shareEnabled); $test = new TrFormElement(_T("Share enabled"), new CheckboxTpl("shareEnabled")); $test->display($param); ?> </table> <?php