defined('IN_DESTOON') or exit('Access Denied'); require MD_ROOT . '/webpage.class.php'; isset($item) or $item = 1; $do = new webpage(); $do->item = $item; $menus = array(array('添加单页', '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item . '&action=add'), array('单页列表', '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item), array('全部单页', '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item . '&itemid=1'), array('创建新组', '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item . '&action=group'), array('生成网页', '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item . '&action=html')); if ($_catids || $_areaids) { require DT_ROOT . '/admin/admin_check.inc.php'; } $this_forward = '?moduleid=' . $moduleid . '&file=' . $file . '&item=' . $item; switch ($action) { case 'add': if ($submit) { if ($do->pass($post)) { $do->add($post); dmsg('添加成功', $forward); } else { msg($do->errmsg); } } else { foreach ($do->fields as $v) { isset(${$v}) or ${$v} = ''; } $filepath = 'about/'; $filename = ''; $menuid = 0; include tpl('webpage_edit', $module); } break; case 'edit':