GetOne("SELECT * FROM #@__story_catalog WHERE id='$catid' "); $bcatid = $nrow['pid']; $booktype = $nrow['booktype']; $pubdate = GetMkTime($pubdate); $lastpost=time(); $bookname = cn_substr($bookname,50); if($keywords!="") $keywords = trim(cn_substr($keywords, 60)); //处理上传的缩略图 if($litpic !="") $litpic = GetDDImage('litpic', $litpic, 0); if($litpicname !="" && $litpic == "") $litpic = GetDDImage('litpic', $litpicname, 0); $adminID = $cuserLogin->getUserID(); //自动摘要 if($description=="" && $cfg_auot_description>0) { $description = stripslashes(cn_substr(html2text($body), $cfg_auot_description)); $description = addslashes($description); } $upQuery = " Update `#@__story_books` set catid='$catid', bcatid='$bcatid', iscommend='$iscommend', click='$click', freenum='$freenum', arcrank='$arcrank', bookname='$bookname', author='$author', litpic='$litpic', pubdate='$pubdate', lastpost='$lastpost', description='$description', body='$body', keywords='$keywords', status='$status', ischeck='$ischeck' where bid='$bookid' "; if(!$dsql->ExecuteNoneQuery($upQuery)) { ShowMsg("更新数据库时出错,请检查!".$dsql->GetError(),"-1"); $dsql->Close(); exit(); } //生成HTML require_once(DEDEROOT. '/book/include/story.view.class.php'); $bv = new BookView($bookid, 'book'); $artUrl = $bv->MakeHtml(); $bv->Close(); //返回成功信息 $msg = "   请选择你的后续操作: 继续修改    发布新图书    预览图书    增加图书内容    管理图书 "; $wintitle = "成功修改图书!"; $wecome_info = "连载管理::修改图书"; $win = new OxWindow(); $win->AddTitle("成功修改一本图书:"); $win->AddMsgItem($msg); $winform = $win->GetWindow("hand", " ", false); $win->Display();