<?php $mypage = "simple_user"; //------------------------------> User Anlegen|Editieren if ($func == "add" || $func == "edit") { $mita = new rexform(); $mita->setWidth(770); $mita->setLabelWidth(160); $mita->setTablename("rex_2_user"); if ($func == "add") { $mita->setFormtype("add"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=func value=" . $func . " />"); $mita->setShowFormAlways(false); } else { $mita->setFormtype("edit", "id='" . $oid . "'", "User wurde nicht gefunden"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=func value=" . $func . " /><input type=hidden name=oid value=" . $oid . ">"); $mita->setShowFormAlways(true); } $mita->setValue("subline", $I18N_SIMPLE_USER->msg("uw_info_headline"), "left", 0); $mita->setValue("text", $I18N_SIMPLE_USER->msg("uw_login"), "user_login", 1); $mita->setCols(2); $mita->setValue("text", $I18N_SIMPLE_USER->msg("uw_passwort"), "user_password", 1); $mita->setValue("singleselect", $I18N_SIMPLE_USER->msg("uw_user_status"), "user_status", 0, "1|" . $I18N_SIMPLE_USER->msg("uw_user_status_on") . "|0|" . $I18N_SIMPLE_USER->msg("uw_user_status_off") . ""); $mita->setValue("text", $I18N_SIMPLE_USER->msg("uw_usre_typ"), "user_typ", 0); $mita->setValue("checkbox", $I18N_SIMPLE_USER->msg("uw_info_newsletter"), "info_newsletter", 0); $mita->setValue("checkbox", $I18N_SIMPLE_USER->msg("uw_info_mail"), "info_mail", 0); $mita->setValue("text", $I18N_SIMPLE_USER->msg("uw_file1"), "user_file1", 0); $mita->setValue("text", $I18N_SIMPLE_USER->msg("uw_file2"), "user_file2", 0); $mita->setValue("singleselect", $I18N_SIMPLE_USER->msg("uw_login_activation"), "login_activation", 0, "0|" . $I18N_SIMPLE_USER->msg("uw_nein") . "|1|" . $I18N_SIMPLE_USER->msg("uw_ja") . ""); $mita->setValue("text", $I18N_SIMPLE_USER->msg("uw_activation_key"), "activation_key", 0); if ($func == "edit") {
<?php $SF = true; $table = $REX['TABLE_PREFIX'] . 'com_user'; $table_field = $REX['TABLE_PREFIX'] . 'com_user_field'; $bezeichner = "User"; $func = rex_request("func", "string", ""); $FORM = rex_request("FORM", "array", ""); //------------------------------ if ($func == "add" || $func == "edit") { echo $back_to_overview; $mita = new rexform(); // $mita->debug = 1; $mita->setWidth(770); $mita->setLabelWidth(160); $mita->setTablename($table); $oid = (int) @$_REQUEST["oid"]; if ($func == "add") { $mita->setFormtype("add"); $mita->setFormheader("\n\t\t\t<input type=hidden name=page value=" . $page . " />\n\t\t\t<input type=hidden name=subpage value=" . $subpage . " />\n\t\t\t<input type=hidden name=func value=" . $func . " />"); $mita->setShowFormAlways(false); $mita->setValue("subline", "{$bezeichner} erstellen", "left", 0); } else { $mita->setFormtype("edit", "id='" . $oid . "'", "{$bezeichner} wurde nicht gefunden"); $mita->setFormheader("\n\t\t\t<input type=hidden name=page value=" . $page . ">\n\t\t\t<input type=hidden name=subpage value=" . $subpage . ">\n\t\t\t<input type=hidden name=func value=" . $func . " />\n\t\t\t<input type=hidden name=oid value=" . $oid . ">"); $mita->setShowFormAlways(false); $mita->setValue("subline", "{$bezeichner} edieren", "left", 0); } $mita->setCols(2); $mita->setValue("empty", "", "", 0); $guf = new rex_sql();
<?php //------------------------------> Shortcutformular if ($func == 'add' || $func == 'edit') { $form = new rexform(); $form->setWidth(770); $form->setLabelWidth(160); $form->setTablename(TBL_EXCEL_EXPORT_TBL); $form->setSubmitValue("Übernehmen"); if ($func == "add") { $form->setFormtype("add", 'lang_id = language'); $form->setFormheader("<input type=hidden name=page value=" . $page . "><input type=hidden name=func value=" . $func . " />"); $form->setShowFormAlways(false); } else { $form->setFormtype("edit", 'lang_id = language and short_id = ' . $sid, $I18N_GLOSSAR->msg('invalid_shortcut')); $form->setFormheader("<input type=hidden name=page value=" . $page . "><input type=hidden name=func value=" . $func . " /><input type=hidden name=sid value=" . $sid . ">"); $form->setShowFormAlways(true); } $form->setValue("subline", "Tabelleninformationen", "left", 0); $form->setValue("singleselect", "Name", "", 1, "SHOW TABLES", "Tables_in_redaxo2_7", "Tables_in_redaxo2_7"); $form->setValue("text", "Bezeichnung", "tbl_label", 1); $form->setValue("text", "Primärschlüssel", "tbl_pk", 1); echo $form->showForm(); echo "<br><br><a href=index.php?page=" . $page . "&subpage=" . $subpage . "><b>« Zurück zur Übersicht</b></a><br>"; } //------------------------------> Shortcut löschen if ($func == 'delete') { $query = 'DELETE FROM ' . TBL_GLOSSAR . ' WHERE short_id=' . $sid; $delsql = new sql(); // $delsql->debugsql=1; $delsql->setQuery($query);
$userReplaceValue = ""; $fromsql = new sql(); $fromsql->setQuery("SELECT id,user_login FROM rex_5_user"); if ($fromsql->getRows() > 0) { for ($i = 0; $i < $fromsql->getRows(); $i++) { $userReplaceValue .= $fromsql->getValue("id") . "|" . $fromsql->getValue("user_login") . "|"; if (trim(strtoupper($FORM['csuchtxt'])) == trim(strtoupper($fromsql->getValue("user_login")))) { $FORM['csuchid'][] = $fromsql->getValue("id"); } $fromsql->next(); } $userReplaceValue = substr($userReplaceValue, 0, strlen($userReplaceValue) - 1); } //------------------------------> Poll Anlegen|Editieren if ($func == "edit") { $mita = new rexform(); $mita->setWidth(770); $mita->setLabelWidth(160); $mita->setTablename($table); $mita->setFormtype("edit", "id='" . $oid . "'", "Nachricht wurde nicht gefunden"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=subpage value=" . $subpage . "><input type=hidden name=func value=" . $func . " /><input type=hidden name=oid value=" . $oid . ">"); $mita->setShowFormAlways(false); $mita->setValue("subline", "{$bezeichner} edieren", "left", 0); $mita->setValue("showtext", "An", "user_id", 0, "width:100%;'"); $mita->setValue("showtext", "Von", "from_user_id", 0, "width:100%;'"); $mita->setValue("showtext", "Datum", "stamp", 0, "width:100%;'"); $mita->setValue("textarea", "Nachricht", "message", 1); $mita->setValue("singleselect", "Status", "status", 0, "0|inaktiv|1|aktiv"); echo $mita->showForm(); if (!$mita->form_show) { $func = "";
$mita->setShowFormAlways(false); $mita->setValue("subline", "{$bezeichner} erstellen", "left", 0); $mita->setValue("text", "user_id", "user_id", 0); $mita->setValue("text", "article_id", "article_id", 0); $mita->setValue("textarea", "comment", "comment", 0); $mita->setValue("text", "create_datetime", "create_datetime", 0); $mita->setValue("text", "status", "status", 0); echo $mita->showForm(); if (!$mita->form_show) { $func = ""; } } //------------------------------> Editieren if ($func == "edit") { echo $back_to_overview; $mita = new rexform(); $mita->setWidth(770); $mita->setLabelWidth(160); $mita->setTablename($table); $mita->setFormtype("edit", "id='" . $oid . "'", "Nachricht wurde nicht gefunden"); $mita->setFormheader(' <input type="hidden" name="page" value="' . $page . '" /> <input type="hidden" name="subpage" value="' . $subpage . '" /> <input type="hidden" name="func" value="' . $func . '" /> <input type="hidden" name="oid" value="' . $oid . '" /> '); $mita->setShowFormAlways(false); $mita->setValue("subline", "{$bezeichner} edieren", "left", 0); $mita->setValue("text", "user_id", "user_id", 0); $mita->setValue("text", "article_id", "article_id", 0); $mita->setValue("textarea", "comment", "comment", 0);
<?php $mypage = "simple_user"; //------------------------------> Gruppe Anlegen|Editieren if ($func == "add" || $func == "edit") { $mita = new rexform(); $mita->setWidth(770); $mita->setLabelWidth(160); $mita->setTablename("rex_2_group"); if ($func == "add") { $mita->setFormtype("add"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=subpage value=" . $subpage . "><input type=hidden name=func value=" . $func . " />"); $mita->setShowFormAlways(false); } else { $mita->setFormtype("edit", "id='" . $oid . "'", "Gruppe wurde nicht gefunden"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=subpage value=" . $subpage . "><input type=hidden name=func value=" . $func . " /><input type=hidden name=oid value=" . $oid . ">"); $mita->setShowFormAlways(true); } $mita->setValue("subline", $I18N_SIMPLE_USER->msg("uw_hl_group"), "left", 0); $mita->setValue("text", $I18N_SIMPLE_USER->msg("uw_name"), "name", 1); $mita->setValue("text", $I18N_SIMPLE_USER->msg("uw_extras"), "extras"); echo $mita->showForm(); echo "<br><br><a href=index.php?page=" . $mypage . "&subpage=" . $subpage . "><b>« Zurück zur Übersicht</b></a><br>"; } //------------------------------> User löschen if ($func == "delete") { $query = "delete from rex_2_group where id='" . $oid . "' "; $delsql = new rex_sql(); $delsql->debugsql = 0; $delsql->setQuery($query); $func = "";
<?php $mypage = "bug_report"; $status0 = $I18N_BUG_REPORT->msg("status0"); $status1 = $I18N_BUG_REPORT->msg("status1"); $status2 = $I18N_BUG_REPORT->msg("status2"); //------------------------------> Projekt Anlegen|Editieren if ($func == "add" || $func == "edit") { $mita = new rexform(); $mita->setWidth(770); $mita->setLabelWidth(160); $mita->setTablename("rex_21_bug_report"); if ($func == "add") { $mita->setFormtype("add"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=subpage value=" . $subpage . "><input type=hidden name=func value=" . $func . " />"); $mita->setShowFormAlways(false); } else { $mita->setFormtype("edit", "id='" . $oid . "'", "Projekt wurde nicht gefunden"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=subpage value=" . $subpage . "><input type=hidden name=func value=" . $func . " /><input type=hidden name=oid value=" . $oid . ">"); $mita->setShowFormAlways(true); } $mita->setValue("subline", $I18N_BUG_REPORT->msg("hdl_bugs"), "left", 0); $mita->setValue("text", $I18N_BUG_REPORT->msg("title"), "title", 1); $mita->setValue("textarea", $I18N_BUG_REPORT->msg("description"), "description", 0); $mita->setValue("singleselect", $I18N_BUG_REPORT->msg("status"), "status", 0, "0|" . $I18N_BUG_REPORT->msg("status0") . "|1|" . $I18N_BUG_REPORT->msg("status1") . "|2|" . $I18N_BUG_REPORT->msg("status2") . ""); echo $mita->showForm(); echo "<br /><br /><a href=index.php?page=" . $mypage . "&subpage=" . $subpage . "><b>« " . $I18N_BUG_REPORT->msg("back_to_list") . "</b></a><br>"; } //------------------------------> löschen if ($func == "delete") { $query = "delete from rex_21_bug_report where id='" . $oid . "' ";
$table = 'rex_com_user_field'; $table_user = '******'; $bezeichner = "Userfeld"; $func = rex_request("func", "string", ""); $FORM = rex_request("FORM", "array"); $rep = ""; $UT = $REX["ADDON"]["community"]["ut"]; foreach ($UT as $key => $value) { if ($rep != "") { $rep .= "|"; } $rep .= "{$key}|[{$key}] {$value}"; } //------------------------------> Poll Anlegen|Editieren if ($func == "add" || $func == "edit") { $mita = new rexform(); $mita->setWidth(770); $mita->setLabelWidth(160); $mita->setTablename($table); if ($func == "add") { $mita->setFormtype("add"); $mita->setFormheader("\n\t\t\t<input type=hidden name=page value=" . $page . " />\n\t\t\t<input type=hidden name=subpage value=" . $subpage . " />\n\t\t\t<input type=hidden name=func value=" . $func . " />"); $mita->setShowFormAlways(false); $mita->setValue("subline", "{$bezeichner} erstellen", "left", 0); $mita->setValue("text", "prior", "prior", 1); $mita->setValue("text", "name", "name", 1); $mita->setValue("text", "userfield", "userfield", 1); $mita->setValue("singleselect", "type", "type", 1, $rep); $mita->setValue("text", "extra1", "extra1", 0); // $mita->setValue("text","extra2","extra2",0); // $mita->setValue("text","extra3","extra3",0);
<?php $SF = true; $mypage = "community"; $subpage = "group"; $table = "rex_5_group"; $bezeichner = "Gruppe"; //------------------------------> Gruppe Anlegen|Editieren if ($func == "add" || $func == "edit") { $mita = new rexform(); $mita->setWidth(770); $mita->setLabelWidth(160); $mita->setTablename("rex_5_group"); if ($func == "add") { $mita->setFormtype("add"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=subpage value=" . $subpage . "><input type=hidden name=func value=" . $func . " />"); $mita->setShowFormAlways(false); $mita->setValue("subline", "{$bezeichner} erstellen", "left", 0); } else { $mita->setFormtype("edit", "id='" . $oid . "'", "Gruppe wurde nicht gefunden"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=subpage value=" . $subpage . "><input type=hidden name=func value=" . $func . " /><input type=hidden name=oid value=" . $oid . ">"); $mita->setShowFormAlways(true); $mita->setValue("subline", "{$bezeichner} bearbeiten", "left", 0); } $mita->setValue("text", "Name", "name", 1); $mita->setValue("text", "Extras", "extras"); echo $mita->showForm(); if (!$mita->form_show) { $func = ""; echo "<br>"; } else {
<?php $mypage = "newsletter"; $sliste = true; //------------------------------> User Anlegen|Editieren if ($func == "add" || $func == "edit") { $mita = new rexform(); $mita->setWidth(770); $mita->setLabelWidth(160); $mita->setTablename("rex_8_newsletter"); if ($func == "add") { $mita->setFormtype("add"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=func value=" . $func . " />"); $mita->setShowFormAlways(false); } else { $mita->setFormtype("edit", "id='" . $oid . "'", "User wurde nicht gefunden"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=func value=" . $func . " /><input type=hidden name=oid value=" . $oid . ">"); $mita->setShowFormAlways(false); } $mita->setValue("subline", "User edieren", "left", 0); $mita->setValue("text", "E-Mail", "email", 1); $mita->setValue("text", "Vorname", "firstname", 0); $mita->setValue("text", "Name", "name", 0); $mita->setValue("text", "ID der letzten Aktion", "last_nlid", 0); $mita->setValue("singleselect", "Status", "status", 0, "0|offline|1|online"); echo $mita->showForm(); if (!$mita->form_show) { $func = ""; echo "<br>"; } else { echo "<br><br><a href=index.php?page=" . $mypage . "><b>« Zurück zur Übersicht</b></a><br>";
<?php $SF = true; $mypage = "community"; $subpage = "user"; $table = "rex_5_user"; $bezeichner = "User"; if ($_REQUEST["func"] == "sendmail") { // dem user eine mail schicken include $REX["INCLUDE_PATH"] . "/addons/community/pages/user_email.inc.php"; } //------------------------------> Poll Anlegen|Editieren if ($func == "add" || $func == "edit") { $mita = new rexform(); $mita->setWidth(770); $mita->setLabelWidth(160); $mita->setTablename($table); if ($func == "add") { $mita->setFormtype("add"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=subpage value=" . $subpage . "><input type=hidden name=func value=" . $func . " />"); $mita->setShowFormAlways(false); $mita->setValue("subline", "{$bezeichner} erstellen", "left", 0); } else { $mita->setFormtype("edit", "id='" . $oid . "'", "{$bezeichner} wurde nicht gefunden"); $mita->setFormheader("<input type=hidden name=page value=" . $mypage . "><input type=hidden name=subpage value=" . $subpage . "><input type=hidden name=func value=" . $func . " /><input type=hidden name=oid value=" . $oid . ">"); $mita->setShowFormAlways(false); $mita->setValue("subline", "{$bezeichner} edieren", "left", 0); } $mita->setValue("subline", "Stammdaten", "left", 0); $mita->setCols(1); $mita->setValue("text", "user_login", "user_login", 1);