进入编辑文章时候,对于未审核的文章,自动把发布时间框里显示当前系统时间,如果文章已经审核过,则发布时间是不变。 打开/dede/templets/article_edit.htm文件 找到: ?php $nowtime = GetDat
进入编辑文章时候,对于未审核的文章,自动把发布时间框里显示当前系统时间,如果文章已经审核过,则发布时间是不变。
打开/dede/templets/article_edit.htm文件
找到:
<?php
$nowtime = GetDateTimeMk($arcRow["pubdate"]);
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200px\">";
?>
改成:
<?php
if($arcRow["arcrank"]!=-1){
$nowtime = GetDateTimeMk($arcRow["pubdate"]);
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200px\">";
}else{
$nowtime =date('Y-m-d H:i:s');
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200px\">";
};
?>
版权声明:本站部分内容来源互联网,如果文章中所涉及的图片或者文字内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!
织梦狗模板
织梦把未审核文章的时间自动设定为当前时间
最新VIP资源
猜你喜欢
- dedecms模板中将面包屑导航中的"首页"换成小图标的方法 2021-04-08
- dedecms织梦有简标题显示简标题,无则显示标题的办法 2021-03-27
- 织梦搜索页调用arclist和channelartlist标签 2023-09-14
- 织梦dedecms三级栏目channelartlist支持currentsty 2021-08-09
- 织梦dedecms调用热门搜索关键词的方法 2023-08-23
- 织梦dedecms怎么开启memcache缓存 2021-04-03
- 织梦tags标签怎么显示标签的文档数 2023-09-01
- 织梦dedecms怎么添加调用自定义字段 2021-03-29
- 织梦dedecms怎么传pdf的文档到网站中 2023-09-04
- dedecms后台管理文档列表显示自定义字段方法 2023-09-17