发布时间: |
之前添加
录入时间: |
$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
在