<?php require_once "../../config.inc.php"; $auth = new auth("CALENDAR_CREATE"); $page = new Page("Edit Calendars"); $selcal = new SelectMenu($lang->get("calendar_select", "Select Calendar"), "calsel", "pgn_cal_calendars", "NAME", "CALID", "1"); $filter = new Filter("pgn_cal_calendars", "CALID"); $filter->addRule($lang->get("cal_name", "Calendar Name"), "NAME", "NAME"); $filter->type_name = $lang->get("calendars", "Calendars"); $filtermenu = new Filtermenu("", $filter); $filtermenu->addMenuEntry($lang->get("calendars_edit", "Edit Calendar"), "edit.php", "", "CALENDAR_EDIT"); $filtermenu->addMenuEntry($lang->get("calendars_define", "Define Calendars"), "calendars.php", "", "CALENDAR_CREATE"); $filtermenu->addMenuEntry($lang->get("calendars_cat_define", "Define Categories"), "categories.php", "", "CALENDAR_CREATE"); $filtermenu->tipp = $lang->get("calendars_tipp", "You can create several calendars here. Each calendar will have its own events and dates."); $deleteHandler = new ActionHandler("DELETE"); $deleteHandler->addDbAction("DELETE FROM pgn_cal_calendars WHERE CALID = {$oid}"); $deleteHandler->addDbAction("DELETE FROM pgn_cal_appointment WHERE CALID = {$oid}"); $deleteHandler->addDbAction("DELETE FROM pgn_cal_categories WHERE CALID = {$oid}"); if ($oid == 0) { $addtext = ""; } else { $addtext = ": " . getDBCell("pgn_cal_calendars", "NAME", "CALID = " . $oid); } $form = new stdEDForm($lang->get("calendar", "Calendar") . $addtext); $cond = $form->setExPK("pgn_cal_calendars", "CALID"); $form->add(new TextInput($lang->get("name"), "pgn_cal_calendars", "NAME", $cond, "type:text,width:200,size:64", "MANDATORY&UNIQUE")); $form->registerActionHandler($deleteHandler); $page->addMenu($filtermenu); $page->add($form); $page->draw();
$auth= new auth("CUSTOMERCARE"); $page= new page ("Tickets Category Administration"); $filter = new Filter("pgn_tickets", "ID"); $filter->addRule("Name", "name", "name"); $menu = new Filtermenu("Edit Contact", $filter); include "menudef.inc.php"; if ($auth->checkPermission("ADMINISTRATOR")) $menu->addMenuEntry("Edit Categories", "category.php"); $form = new stdEDForm("Browse Contacts", ""); $cond = $form->setPK("pgn_tickets_categories", "id"); $form->add(new TextInput("Name", "pgn_tickets", "name", $cond, "type:text,width:300,size:64", "MANDATORY")); $form->add(new TextInput("E-Mail", "pgn_tickets", "email", $cond, "type:text,width:300,size:64", "")); $form->add(new TextInput("Phone", "pgn_tickets", "phone", $cond, "type:text,width:200,size:32", "")); $form->forbidDelete(true);
* @module Application **********************************************************************/ require_once "../../config.inc.php"; $auth = new auth("USER_MANAGEMENT"); $page = new page("User Administration"); $page->setJS("md5"); $filter = new Filter("auth_user", "user_id"); $filter->addRule($lang->get("email"), "email", "email"); $filter->icon = "li_user.gif"; $filter->type_name = "Users"; $filtermenu = new Filtermenu($lang->get("user_filtermenu"), $filter); $filtermenu->addMenuEntry($lang->get("user_link"), "user_general.php", "user_premissions.php"); $deleteHandler = new ActionHandler("DELETE"); $deleteHandler->addDbAction("DELETE FROM auth_user where user_id=$oid and user_id > 999"); $form = new stdEDForm($lang->get("user_head"), "i_myprofile.gif"); $form->submitButtonAction = "if (document.form1.auth_user_password_1.value != '') document.form1.auth_user_password_1.value = document.form1.auth_user_password_2.value = hex_md5(document.form1.auth_user_password_1.value);"; $cond = $form->setPK("auth_user", "user_id"); $form->add(new TextInput($lang->get("email"), "auth_user", "email", $cond, "type:text,width:300,size:64", "MANDATORY&UNIQUE")); $form->add(new TextInput($lang->get("password"), "auth_user", "password", $cond, "type:text,width:200,size:40", "MANDATORY")); $form->add(new CheckboxInput($lang->get("user_active"), "auth_user", "active", $cond, "1", "0")); $form->add(new TextInput($lang->get("confirmcode", "Confirm-Code"), "auth_user", "confirm", $cond, "type:text,width:300,size:40", "MANDATORY&UNIQUE")); // Control Information
require_once "../../config.inc.php"; require_once "configurator.php"; $auth = new auth("USER_MANAGEMENT"); $page = new page("Role Administration"); $filter = new Filter("roles", "ROLE_ID"); $filter->addRule($lang->get("role_name"), "ROLE_NAME", "ROLE_NAME"); $filter->setAdditionalCondition("UPPER(ROLE_NAME) <> 'ADMINISTRATOR'"); $filter->prevent_sysvar_disp = false; $filter->icon = "li_role.gif"; $filter->type_name = "Roles"; $filtermenu = new Filtermenu($lang->get("role_filtermenu"), $filter); $filtermenu->addMenuEntry($lang->get("user_link"), "user_general.php"); $filtermenu->addMenuEntry($lang->get("group_link"), "group_general.php"); $filtermenu->addMenuEntry($lang->get("role_link"), "role_general.php"); $filtermenu->tipp = ""; //$filtermenu->addLink("test", "test.php"); $deleteHandler = new ActionHandler("DELETE"); $deleteHandler->addDbAction("DELETE FROM roles where role_id=$oid AND role_id>999"); $deleteHandler->addDbAction("DELETE FROM user_permissions where role_id=$oid AND role_id > 999"); $deleteHandler->addDbAction("DELETE FROM role_sys_functions where role_id=$oid AND role_id > 999"); if ($oid == 0) { $addtext = ""; } else { $addtext = ": " . getDBCell("roles", "ROLE_NAME", "ROLE_ID = " . $oid); }
require_once "../../config.inc.php"; // Check Authorization $auth = new auth("ADMINISTRATOR"); // Initialize Page-Container $page = new page("Tags"); // Create Menu-Filter $filter = new Filter("pgn_recipes_tags", "TAG_ID"); $filter->addRule($lang->get("name"), "TAG", "TAG"); $filter->type_name = "Tags"; // Create Menu $filtermenu = new Filtermenu("Recipe Editor", $filter); $filtermenu->addMenuEntry("Recipes", "overview.php"); $filtermenu->addMenuEntry("Tags", "tags.php"); // ActionHandler for deleting groups $deleteHandler = new ActionHandler("DELETE"); $deleteHandler->addDbAction("DELETE FROM pgn_recipes_tags Where TAG_ID=$oid"); $deleteHandler->addDbAction("DELETE FROM pgn_recipes_tag_relation Where TAG_ID=$oid"); // Create Form Container and add widgets $form = new stdEDForm("Edit Tags"); $cond = $form->setPK("pgn_recipes_tags", "TAG_ID"); $form->add(new TextInput("Tag", "pgn_recipes_tags", "TAG", $cond, "type:text,width:300,size:64", "MANDATORY&UNIQUE")); $values = array(); $values[] = array("Category 1",1); $values[] = array("Category 2",2);
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with N/X; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA **********************************************************************/ require_once "../../config.inc.php"; $auth = new auth("ADMINISTRATOR|DEVELOPER"); $page = new page("Global Values"); $filter = new Filter("global", "G_ID"); $filter->addRule("Key", "NAME", "NAME"); $filtermenu = new Filtermenu("Global Values", $filter); $filtermenu->addMenuEntry("Edit Values", "global.php"); $deleteHandler = new ActionHandler("DELETE"); $deleteHandler->addDbAction("DELETE FROM global where g_id=$oid and g_id > 999"); $form = new stdEDForm("Edit Values", "i_user.gif"); $cond = $form->setPK("global", "G_ID"); $form->add(new TextInput("Key", "global", "NAME", $cond, "type:text,width:200,size:32", "MANDATORY&UNIQUE")); $form->add(new TextInput("Value", "global", "VALUE", $cond, "type:textarea,width:300,size:4", "")); $form->registerActionHandler($deleteHandler); $page->addMenu($filtermenu); $page->add($form); $page->draw(); ?>