|
|
@@ -69,6 +69,7 @@ if ($dopost != 'save') { |
|
|
|
} |
|
|
|
//对保存的文档进行处理 |
|
|
|
$pubdate = GetMkTime($pubdate); |
|
|
|
$senddate = GetMkTime($senddate); |
|
|
|
$sortrank = AddDay($pubdate, $sortup); |
|
|
|
$ismake = $ishtml == 0 ? -1 : 0; |
|
|
|
$title = cn_substrR($title, $cfg_title_maxlen); |
|
|
@@ -122,7 +123,7 @@ if ($dopost != 'save') { |
|
|
|
//跳转网址的文档强制为动态 |
|
|
|
if (preg_match("#j#", $flag)) $ismake = -1; |
|
|
|
//更新数据库的SQL语句 |
|
|
|
$inQuery = "UPDATE `#@__archives` SET typeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',notpost='$notpost',click='$click',ismake='$ismake',arcrank='$arcrank',money='$money',title='$title',color='$color',writer='$writer',source='$source',litpic='$litpic',pubdate='$pubdate',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid',weight='$weight' WHERE id='$id'; "; |
|
|
|
$inQuery = "UPDATE `#@__archives` SET typeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',notpost='$notpost',click='$click',ismake='$ismake',arcrank='$arcrank',money='$money',title='$title',color='$color',writer='$writer',source='$source',litpic='$litpic',pubdate='$pubdate',senddate='$senddate',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid',weight='$weight' WHERE id='$id'; "; |
|
|
|
if (!$dsql->ExecuteNoneQuery($inQuery)) { |
|
|
|
ShowMsg("数据保存到数据库文档主表出错,请检查数据库字段", "-1"); |
|
|
|
exit(); |
|
|
|