



免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
修改文件dede/templets/content_batch_up.htm修改头部脚本函数ShowHideMove() function ShowHideMove() var selBox = document.getElementById(moveradio); var selBox2 = document.getElementById(copyradio);/edited by adan;090508 var obj = document.getElementById(moveField); if(selBox.checked|selBox2.checked) obj.style.display = block;/edited by adan;090508 else obj.style.display = none; 添加复制栏目按钮查找 移动文档 后面添加 复制栏目文档 修改文件dede/content_batchup_action.php首先删除文件最后的两段代码/删除空标题内容else if($action=delnulltitle) $dsql-SetQuery(Select id From dede_archives where trim(title)= ); $dsql-Execute(x); $tdd = 0; while($row = $dsql-GetObject(x) if(DelArc($row-id) $tdd+; ShowMsg(成功删除 $tdd 条记录!,javascript:;); exit();/修正缩略图错误else if($action=modddpic) $dsql-ExecuteNoneQuery(Update dede_archives set litpic= where trim(litpic)=litpic ); ShowMsg(成功修正缩略图错误!,javascript:;); exit(); 上面2段代码,官方人员竟然把上面2段代码搞重复了,先汗一个!然后在最后添加下面代码/start 添加复制栏目文章功能 added by adan;090508else if($action=copy) if(empty($typeid) ShowMsg(该操作必须指定栏目!,javascript:;); exit(); $typeold = $dsql-GetOne(Select * From dede_arctype where id=$typeid; ); $typenew = $dsql-GetOne(Select * From dede_arctype where id=$newtypeid; ); if(!is_array($typenew) $dsql-Close(); ShowMsg(无法检测复制到的新栏目的信息,不能完成操作!,javascript:;); exit(); if($typenewispart!=0) $dsql-Close(); ShowMsg(你不能把数据复制到非最终列表的栏目!,javascript:;); exit(); if($typenewchanneltype!=$typeoldchanneltype) $dsql-Close(); ShowMsg(不能把数据复制到内容类型不同的栏目!,javascript:;); exit(); $gwhere .= And channel=.$typenewchanneltype. And title like %$keyword%; $ch = $dsql-GetOne(Select addtable From dede_channeltype where id=$typenewchanneltype ); $addtable = $chaddtable; $dsql-SetQuery(Select * From dede_archives where typeid=$typeid); $dsql-Execute(c); $tdd = 0; while($row = $dsql-GetObject(c) $senddate = time(); $sortrank = AddDay($senddate,0);/第二个参数是排序值,参考article_add.php $ID = $row-id; $typeid = $newtypeid;/$newtypeid $sortrank = $row-sortrank; $flag = $row-flag; $ismake = $row-ismake; $channelid = $row-channel; $arcrank = $row-arcrank; $click = $row-click; $money = $row-money; $title = addslashes($row-title);/需要添加addslashes()转换; adan;090508 $shorttitle = $row-shorttitle; $color = $row-color; $writer = $row-writer; $source = $row-source; $litpic = $row-litpic; $pubdate = $row-pubdate; $adminid = $cuserLogin-getUserID(); $notpost = $row-notpost; $description = addslashes($row-description);/需要添加addslashes()转换; adan;090508 $keywords = $row-keywords; require_once(DEDEADMIN./inc/inc_archives_functions.php); /生成文档ID $arcID = GetIndexKey($arcrank,$typeid,$sortrank,$channelid,$senddate,$adminid); if(empty($arcID) ShowMsg(无法获得主键,因此无法进行后续操作!,-1); exit(); /加入数据表dede_archives的SQL语句 /- $inQuery = INSERT INTO dede_archives(id,typeid,typeid2,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle, color,writer,source,litpic,pubdate,senddate,mid,lastpost,scores,goodpost,badpost,notpost,description,keywords,filename) VALUES ($arcID,$typeid,$sortrank,$flag,$ismake,$channelid,$arcrank,0,$money, $title,$shorttitle,$color,$writer,$source,$litpic,$pubdate,$senddate, $adminid,0,0,0,0,0,$description,$keywords,); if(!$dsql-ExecuteNoneQuery($inQuery) $gerr = $dsql-GetError(); $dsql-ExecuteNoneQuery(Delete From dede_arctiny where id=$arcID); ShowMsg(把数据保存到数据库主表 dede_archives 时出错,请把相关信息提交给DedeCms官方。.str_replace(,$gerr),javascript:;); exit(); /保存到附加表 $cts = $dsql-GetOne(Select addtable From dede_channeltype where id=$channelid ); $addtable = trim($ctsaddtable); if(empty($addtable) $dsql-ExecuteNoneQuery(Delete From dede_archives where id=$arcID); $dsql-ExecuteNoneQuery(Delete From dede_arctiny where id=$arcID); ShowMsg(没找到当前模型$channelid的主表信息,无法完成操作!。,javascript:;); exit(); $useip = GetIP(); $redirecturl = $addRowredirecturl; $templet = $addRowtemplet; $addRow = $dsql-GetOne(Select * from $addtable where aid=$ID); $body = addslashes($addRowbody); $query = INSERT INTO $addtable(aid,typeid,redirecturl,templet,userip,body) Values($arcID,$typeid,$redirecturl,$templet,$useip,$body); if(!$dsql-ExecuteNoneQuery($query) $gerr = $dsql-GetError(); $dsql-ExecuteNoneQuery(Delete From dede_archives where id=$arcID); $dsql-ExecuteNoneQuery(Delete From dede_arctiny where id=$arcID); ShowMsg(把数据保存到数据库附加表 $addtable 时出错,请把相关信息提交给DedeCms官方。.str_replace(,$gerr),javascript:;); exit(); else $tdd+; if($tdd0) $jumpurl = makehtml_archives_action.php?endid=$endid&startid=$startid; $jumpurl .= &typeid=$newtypeid&pagesize=
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 公司环保活动方案
- 公司节能推广活动方案
- 2025年行业伦理道德与法律法规考核试题及答案
- 2025年文化产业管理考试试卷及答案
- 2025年文艺策划师职业发展评估考试试题及答案
- 2025年网络营销与电子商务考试试题及答案
- 2025年设施管理工程师职业资格考试试题及答案
- 2025年农业经济与发展考试试卷及答案
- 2025年历史文化遗产保护与传承考试卷及答案
- 2025年计算机网络基本知识考试试题及答案
- 《食品经营许可证》申请书(范本)
- 2024至2030年中国博物馆行业现状调研及未来发展规划分析报告
- 广东省揭阳市2024年小升初语文真题试卷及答案
- 化工过程安全管理导则培训
- 2024年西藏事业单位真题
- 兽医传染病学考试题(含答案)
- 医学微生物学(北华大学)智慧树知到期末考试答案2024年
- MOOC 人工智能导论-西安电子科技大学 中国大学慕课答案
- (正式版)HGT 3217-2024 搪玻璃上展式放料阀
- 人工智能导论单元练习题1及答案
- 金融数据分析智慧树知到期末考试答案2024年
评论
0/150
提交评论