📄 tag.inc.php
字号:
<?php
defined('IN_PHPCMS') or exit('Access Denied');
require 'admin/tag.class.php';
if(!isset($module)) $module = $mod;
$t = new tag($module);
switch($action)
{
case 'add':
if(isset($tag_config)) extract($tag_config);
include admin_tpl('tag_add');
break;
case 'edit':
$tag_config = $t->get_tag_config($tagname);
if($tag_config) extract($tag_config);
$tpl = '';
if($ajax) $tpl = '_ajax';
include admin_tpl('tag_edit'.$tpl);
break;
case 'copy':
$tag_config = $t->get_tag_config($tagname);
if($tag_config) extract($tag_config);
include admin_tpl('tag_copy');
break;
case 'manage':
$page = max(intval($page), 1);
$tags = $t->listinfo('', $page, 20);
include admin_tpl('tag_manage','phpcms');
break;
case 'update':
extract($tag_config);
$where = '';
if($typeid) $where .= "AND `typeid`='$typeid' ";
if($elite) $where .= "AND `elite`='$elite' ";
if($where) $where = 'WHERE '.substr($where, 3);
$tag_config['sql'] = "SELECT * FROM `".DB_PRE."special` $where ORDER BY $orderby";
$t->update($tagname, $tag_config);
showmessage('鎿嶄綔鎴愬姛锛
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -