# 帝国CMS后台优化管理信息子栏目功能并添加增加信息按钮

*Published:* 2023-12-22
*Author:* 客服001

#### 温馨提醒

如果文章内容或图片资源失效，请留言反馈，我们会及时处理，谢谢

本文最后更新于2023年12月22日，已超过 180天没有更新



[![](https://www.xarjtc.com/wp-content/uploads/2023/12/1703205720547042.png)](https://www.xarjtc.com/wp-content/uploads/2023/12/1703205720547042.png)

修改方法：

1、打开文件：\\e\\admin\\ListEnews.php，添加一个js函数：

```
function faxinxi(bclassid,classid){
parent.main.location="AddNews.php?<?=$ecms_hashur['ehref']?>&enews=AddNews&bclassid="+bclassid+"&classid="+classid;
}
```

2、打开文件：\\e\\admin\\CreateCache.php，这个文件中第一个$infoclassname（只在终极[栏目](https://www.xarjtc.com/tag/%e6%a0%8f%e7%9b%ae "查看栏目此标签更多文章")后面加）中加了这个：

```
<a style=color:blue onclick=faxinxi($r[bclassid],$r[classid])>发布</a>
```

改完需要在数据更新中删除栏目缓存文件，刷新去点击就可以了。