冠富商务通中文社区

 找回密码
 立即注册
查看: 71|回复: 0
打印 上一主题 下一主题
收起左侧

[建站经验] 【dede批量删除文章】-dede增加批量删除采集内容的方法

[复制链接]
跳转到指定楼层
楼主
发表于 2018-1-7 10:51:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
关键字描述:内容 方法 采集 删除 增加 批量 clearall)
  {
    $dsql = new DedeSql(false);
    $dsql-ExecuteNoneQuery(Delete From xkzzz_courl);
    $dsql-Close();
    ShowMsg(成功清空所有采集内容!,co_main.php);
    exit();
  }else if($dopost==clearundown)
  {
    $dsql = new DedeSql(false);
    $dsql-ExecuteNoneQuery(Delete From xkzzz_courl where isdown=0);
    $dsql-Close();
    ShowMsg(成功删除所有未下载内容!,co_main.php);
    exit();
  }else if($dopost==clearisex)
  {
    $dsql = new DedeSql(false);
    $dsql-ExecuteNoneQuery(Delete From xkzzz_courl where isex=1);
    $dsql-Close();
    ShowMsg(成功删除所有已经导出内容!,co_main.php);
    exit();
  }
//复制节点[/quote]

2,dede/templets/co_url.htm
找到
Quote:
/script
style type=text/css

改成
Quote:
function DelAll()
{
location.href = co_do.php?dopost=clearall;
}
function DelunDown()
{
location.href = co_do.php?dopost=clearundown;
}

function Delisex()
{
location.href = co_do.php?dopost=clearisex;
}

/script
style type=text/css

找到
Quote:
input type=button name=b5 value=删除所选网址 class=inputbut onClick=DelSel();
在下面加入

Quote:[quote]input type=button name=b5 value=清空所有采集内容 class=inputbut onClick=DelAll();
input type=button name=b5 value=清空未下载内容 class=inputbut onClick=DelunDown();
            上一页12 下一页 阅读全文
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|关于我们|申请友链|Archiver|手机版|拘留所|冠富商务通

GMT+8, 2026-6-21 04:40 , Processed in 0.066004 second(s), 11 queries , Wincache On.

Powered by HCMS Version 2.0

© 2008-05-14 guanfu.net.cn

快速回复 返回顶部 返回列表