<?php

$nm = new StdMenu($lang->get("newsletter", "Newsletter"));
$nm->addMenuEntry($lang->get("newsletters", "Newsletters"), "overview.php", "NEWSLETTERADM");
$nm->addMenuEntry($lang->get("subscriptions", "Subscriptions"), "subscriptions.php", "SUBSCRIPTIONS");
$page->addMenu($nm);
 *    It was be coached by Prof. Werner Zorn and Dipl.-Inform Thomas Gauweiler.
 *
 *    N/X is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    N/X is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    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");
$page = new Page("Edit Recipes");
$filtermenu = new StdMenu("Recipe Editor");
$filtermenu->addMenuEntry("Recipes", "overview.php");
$filtermenu->addMenuEntry("Tags", "tags.php");
$form = new MenuForm($lang->get("recipes_overview", "Recipes Overview"), array($lang->get("name", "Name"), "ID"), "pgn_recipes", "ID", array("NAME", "ID"), "1", $rows = 40);
$form->addFilterRule($lang->get("name"), "NAME");
$form->addFilterRule("ID", "ID");
$form->width = "700";
$form->newAction = "plugin/recipe/edit.php?go=create&sid=" . $sid;
$form->editAction = "edit.php";
$page->add($form);
$page->addMenu($filtermenu);
$page->draw();
	/**********************************************************************
	 *	N/X - Web Content Management System
	 *	Copyright 2002 Fabian Koenig
	 *
	 *	This file is part of N/X.
	 *
	 *	N/X is free software; you can redistribute it and/or modify
	 *	it under the terms of the GNU General Public License as published by
	 *	the Free Software Foundation; either version 2 of the License, or
	 *	(at your option) any later version.
	 *
	 *	N/X is distributed in the hope that it will be useful,
	 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
	 *	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
	 **********************************************************************/
	$menu = new StdMenu($lang->get("mt_title", "Maintenance"));
	
	$menu->addMenuEntry($lang->get("mt_generate_dta", "Generate DataTypes"), "datatypes.php");
	$menu->addMenuEntry($lang->get("mt_sync_cl", "Synchronize Clusters"), "sync_clusters.php");
	
	if ($c["renderstatichtml"])
		$menu->addMenuEntry($lang->get("rb_cache", "Rebuild Cache"), "rebuild_cache.php");
		
	if ($JPCACHE_ON)
		$menu->addMenuEntry($lang->get("clear_jpcache", "Clear Cache"), "clear_jpcache.php");		
?>
 *    The initial has been setup as a small diploma thesis (Studienarbeit) at the FZI.
 *    It was be coached by Prof. Werner Zorn and Dipl.-Inform Thomas Gauweiler.
 *
 *    N/X is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    N/X is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    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("LINK_EXCHANGE");
$page = new Page("Edit Links");
$filtermenu = new StdMenu("Link Directory Editor");
$filtermenu->addMenuEntry("Links", "overview.php");
$form = new MenuForm($lang->get("links_overview", "Links Overview"), array($lang->get("TITLE", "title"), 'URL', $lang->get('crdate', 'Creation Date')), "pgn_linkexchange", "ID", array("TITLE", "URL", "INSERTTIMESTAMP"), "1", $rows = 40);
$form->addFilterRule($lang->get("title"), "TITLE");
$form->addFilterRule($lang->get("url", "URL"), "URL");
$form->width = "700";
$form->newAction = "plugin/linkexchange/edit.php?go=create&sid=" . $sid;
$form->editAction = "edit.php";
$page->add($form);
$page->addMenu($filtermenu);
$page->draw();
Exemple #5
0
<?php

require_once "../../config.inc.php";
$auth = new auth("CALENDAR_EDIT");
$page = new Page("Edit Calendars");
$selcal = new SelectMenu($lang->get("calendar_select", "Select Calendar"), "calsel", "pgn_cal_calendars", "NAME", "CALID", "1");
$filtermenu = new StdMenu("");
$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");
$deleteHandler = new ActionHandler("DELETE");
$deleteHandler->addDbAction("DELETE FROM pgn_cal_calendars WHERE CALID = {$oid}");
$deleteHandler->addDbAction("DELETE FROM pgn_cal_appointments WHERE CALID = {$oid}");
$deleteHandler->addDbAction("DELETE FROM pgn_cal_categories WHERE CALID = {$oid}");
$oid = value("oid", "NUMERIC");
if ($selcal->selected != "0" && $selcal->selected != "-1") {
    if ($oid == "0" && $page_action != "INSERT") {
        $form = new MenuForm($lang->get("sel_event", "Select Event or Appointment"), array($lang->get("startdate", "Startdate"), $lang->get("starttime", "Starttime"), $lang->get("title", "Title")), "pgn_cal_appointment", "APID", array("STARTDATE", "STARTTIME", "TITLE"), "CALID=" . $selcal->selected);
        $form->newAction = "plugin/calendar/edit.php?sid={$sid}&go=create";
    } else {
        $deleteHandler = new ActionHandler("DELETE");
        $deleteHandler->addDbAction("DELETE FROM pgn_cal_appointment WHERE APID = {$oid}");
        $addtext = ": " . getDBCell("pgn_cal_appointment", "TITLE", "APID = " . $oid);
        $form = new stdEDForm($lang->get("cal_edit", "Edit Appointment") . $addtext);
        $form->addHeaderLink(crHeaderLink('Back', "plugin/calendar/edit.php?sid={$sid}"));
        $cond = $form->setExPK("pgn_cal_appointment", "APID");
        $form->add(new TextInput($lang->get("title"), "pgn_cal_appointment", "TITLE", $cond, "type:text,width:300,size:64", "MANDATORY"));
        $form->add(new RichEditInput($lang->get("description"), "pgn_cal_appointment", "DESCRIPTION", $cond, "type:rich,width:350,size:6", ""));
        $form->add(new DateInput($lang->get("startdate"), "pgn_cal_appointment", "STARTDATE", $cond, "param:form1", "MANDATORY"));
        $form->add(new TimeInput($lang->get("starttime"), "pgn_cal_appointment", "STARTTIME", $cond));
        $form->add(new DateInput($lang->get("endate"), "pgn_cal_appointment", "ENDDATE", $cond, "param:form1", "MANDATORY"));
 *    It was be coached by Prof. Werner Zorn and Dipl.-Inform Thomas Gauweiler.
 *
 *    N/X is free software; you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *
 *    N/X is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    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");
$page = new Page("Edit Knowledgebase");
$filtermenu = new StdMenu("Knowledgebase Editor");
$filtermenu->addMenuEntry("Knowledgebase", "overview.php");
$filtermenu->addMenuEntry("Tags", "tags.php");
$form = new MenuForm($lang->get("knowledge_ov", "Knowledgebase Overview"), array($lang->get("name", "Name"), $lang->get("updated", "Updated")), "pgn_knowledgebase", "ID", array("TITLE", "UPDATETIMESTAMP"), "1", $rows = 40);
$form->addFilterRule($lang->get("name"), "NAME");
$form->addFilterRule($lang->get("descr", "Description"), "DESCRIPTION");
$form->width = "700";
$form->newAction = "plugin/knowledgebase/edit.php?go=create&sid=" . $sid;
$form->editAction = "edit.php";
$page->add($form);
$page->addMenu($filtermenu);
$page->draw();
<?php

$menu = new StdMenu($lang->get("designs"));
$menu->addMenuEntry($lang->get("website_designs", "Website Designs"), $c["docroot"] . 'modules/designs/overview.php');
$page->addMenu($menu);