예제 #1
0
 *    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();
        $form->add(new TextInput($lang->get("title", "Title"), "shop_configurator_item", "TITLE", $cond, "type:text,size:255,width:300", "MANDATORY", "TEXT"));
        $form->add(new TextInput($lang->get("position", "Position"), "shop_configurator_item", "POSITION", $cond, "type:text,size:2,width:40", "MANDATORY&NUMBER", "NUMBER"));
        $form->add(new SelectOneInputFixed($lang->get("conf_type", "Configurator Type"), "shop_configurator_item", "TYPE", $ar, $cond, "type:dropdown,width:150", "MANDATORY", "NUMBER"));
        $form->add(new TextInput($lang->get("configuration", "Configuration"), "shop_configurator_item", "VALUE", $cond, "type:text,size:1024,width:300", "", "TEXT"));
        $form->add(new Hidden("go", $action));
        $form->check();
        $form->process();
        echo $form->draw();
    } else {
        if (sameText($action, "update")) {
            echo $action;
        } else {
            // draw list with all items.
            $page = new page("foo");
            // dummy page with no use.
            $form = new MenuForm($lang->get("configurator_settings", "Configurator Settings"), array($lang->get("position0", 'Position'), $lang->get("name", "Name"), $lang->get("value", "Value")), "shop_configurator_item", "GUID", array("POSITION", "TITLE", "VALUE"), "1", 10);
            $form->addFilterRule($lang->get("name"), "TITLE");
            $form->width = 700;
            $form->newAction = "api/userinterface/spinput/" . doc() . '?go=create&sid=' . $sid;
            $form->editAction = doc();
            echo $form->draw();
        }
    }
}
/**
td($style);
echo $lang->get("sel_clt");
tde();
tr();
$clts=array();
createCLTTree($clts);
예제 #3
0
 *    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();
예제 #4
0
 *    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();
예제 #5
0
 *    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("ADDRESS");
$page = new Page("Edit Contacts");
$form = new MenuForm($lang->get("contacts_overview", "Contacts Overview"), array($lang->get("no", "NO"), $lang->get("name", "Name"), $lang->get("FIRSTNAME", "Firstname"), $lang->get("email", "E-Mail-Address"), $lang->get("city", "City"), $lang->get("last_mod", "Last Modified")), "address", "GGUID", array("GGUID", "NAME", "FIRSTNAME", "MAILADDRESS", "CITY", "LAST_MODIFIED"), "1", $rows = 40);
$form->addFilterRule($lang->get("no"), "GGUID");
$form->addFilterRule($lang->get("name"), "NAME");
$form->addFilterRule($lang->get("firstname"), "Firstname");
$form->addFilterRule($lang->get("email"), "MailAddress");
$form->addFilterRule($lang->get("city"), "City");
$form->width = "900";
$form->newAction = "modules/address/edit.php?go=create&sid=" . $sid;
$form->editAction = "edit.php";
$page->add($form);
$page->draw();
예제 #6
0
 */
require_once __DIR__ . '/lib/Application.php';
$shout = Horde_Registry::appInit('shout');
require_once SHOUT_BASE . '/lib/Forms/MenuForm.php';
$action = Horde_Util::getFormData('action');
$menu = Horde_Util::getFormData('menu');
$curaccount = $GLOBALS['session']->get('shout', 'curaccount_code');
$menus = $shout->storage->getMenus($curaccount);
if (empty($menus)) {
    Horde::url('wizard.php', true)->redirect();
}
switch ($action) {
    case 'add':
        $vars = Horde_Variables::getDefaultVariables();
        $vars->set('account', $curaccount);
        $Form = new MenuForm($vars);
        if ($Form->isSubmitted() && $Form->validate($vars, true)) {
            // Form is Valid and Submitted
            try {
                $Form->execute();
                $notification->push(_("Menu added."), 'horde.success');
                $menus = $shout->storage->getMenus($curaccount);
                $action = 'edit';
            } catch (Exception $e) {
                $notification->push($e);
            }
            break;
        } elseif ($Form->isSubmitted()) {
            $notification->push(_("Problem processing the form.  Please check below and try again."), 'horde.warning');
        }
        // Create a new add form