type.inc.php

来自「Phpcms2008 是一款基于 PHP+Mysql 架构的网站内容管理系统」· PHP 代码 · 共 22 行

PHP
22
字号
<?php
defined('IN_PHPCMS') or exit('Access Denied');

require_once 'admin/type.class.php';
$type = new type($mod);
require_once MOD_ROOT.'include/url.class.php';
$typeurl = new url();

if(!$action) $action = 'manage';

switch($action)
{
    case 'add':
		if($dosubmit)
		{
            $forward = $forward ? $forward:'?mod=special&file=type&action=manage';
			$result = $type->add($info);
			if($result)
			{
				$info['url'] = $typeurl->type($result);
				$type->edit($result, $info);
				showmessage('鎿嶄綔鎴愬姛锛

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?