$page = $page_handler->create(); } else { if (!($page = $page_handler->get($_POST['pageid']))) { $page = $page_handler->create(); } } $page->setVar('pagetitle', $_POST['pagetitle']); if ($page_handler->insert($page)) { redirect_header('index.php?pageid=' . $page->getVar('pageid'), 1, _AM_MYTABS_SUCCESS); exit; } break; case "new": case "edit": xoops_cp_header(); mytabs_adminmenu(0); if ($op == "new") { $page = $page_handler->create(); $page->setVar('pagetitle', $_REQUEST['pagetitle']); } else { $page = $page_handler->get($_REQUEST['pageid']); } $pageid = $page->getVar('pageid'); echo "<a href=\"index.php\">" . _AM_MYTABS_HOME . "</a> "; $form = $page->getForm(); echo $form->render(); xoops_cp_footer(); break; case "delete": $obj = $page_handler->get($_REQUEST['pageid']); if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1) {
<?php /* You may not change or alter any portion of this comment or credits of supporting developers from this source code or any supporting source code which is considered copyrighted (c) material of the original comment or credit authors. This program 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. */ /** * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ * @license http://www.fsf.org/copyleft/gpl.html GNU public license * @package Mytabs * @since 1.0 * @author trabis <*****@*****.**> * @version $Id: about.php 0 2009-11-14 18:47:04Z trabis $ */ require dirname(__FILE__) . '/header.php'; include_once dirname(dirname(__FILE__)) . '/class/about.php'; xoops_cp_header(); mytabs_adminmenu(2); $aboutObj = new MytabsAbout(); $aboutObj->render(); xoops_cp_footer();