发布时间: 之前添加 录入时间: $addtime = getdatetimemk($arcrow["senddate"]); echo " "; ?> 找到article_add_action.php 把 $senddate = mytime(); 害我的就是这句,自动获取当前服务器的时间的,所以在前面的article_add.php页面里没有任何添加时间的语句 找到 $sortrank = addday($senddate,$sortup); 替换成 $senddate = getmktime($senddate,$sortup); 然后再把插入到数据库的insert into语句改下 这里已经有了$senddate ,所以只要删除$sortrank 就是把 //加入数据库的sql语句 //---------------------------------- $inquery = "insert into dede_archives( typeid,typeid2,sortrank,iscommend,ismake,channel, arcrank,click,money,title,shorttitle,color,writer,source,litpic, pubdate,senddate,arcatt,adminid,memberid,description,keywords,templet,redirecturl) values ('$typeid','$typeid2','$sortrank','$iscommend','$ismake','$channelid', '$arcrank','0','$money','$title','$shorttitle','$color','$writer','$source','$litpic', '$pubdate','$senddate','$arcatt','$adminid','0','$description','$keywords','$templet','$redirecturl');"; 替换成 //加入数据库的sql语句 //---------------------------------- $inquery = "insert into dede_archives( typeid,typeid2,iscommend,ismake,channel, arcrank,click,money,title,shorttitle,color,writer,source,litpic, pubdate,senddate,arcatt,adminid,memberid,description,keywords,templet,redirecturl) values ('$typeid','$typeid2','$iscommend','$ismake','$channelid', '$arcrank','0','$money','$title','$shorttitle','$color','$writer','$source','$litpic', '$pubdate','$senddate','$arcatt','$adminid','0','$description','$keywords','$templet','$redirecturl');"; 好了,添加页面改定 然后修改页面也参照这个方法修改 在article_edit.php 在
发布时间:
转载于:https://blog.51cto.com/2217639/413318
你可能感兴趣的:(dedecms修改录入时间的方法)