示例#1
0
    die;
}
if ($ac == 'del') {
    $res = $table_obj->del('art_id', $art_id, $url);
    $res and kekezu::admin_show_msg($_lang['operate_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['operate_fail'], $url, 3, '', 'warning');
} elseif (isset($sbt_action)) {
    sizeof($ckb) or kekezu::admin_show_msg($_lang['choose_operate_item'], $url, 3, '', 'warning');
    is_array($ckb) and $ids = implode(',', array_filter($ckb));
    $art_obj->setWhere("art_id in ({$ids})");
    if ($sbt_action) {
        $res = $art_obj->del_keke_witkey_article();
        kekezu::admin_system_log($_lang['mulit_recovery_articles']);
    }
    $res and kekezu::admin_show_msg($_lang['mulit_operate_success'], $url, 3, '', 'success') or kekezu::admin_show_msg($_lang['mulit_operate_fail'], $url, 3, '', 'warning');
} elseif ($op == 'listorder') {
    $art_obj = new Keke_witkey_article_class();
    $art_obj->setWhere("art_id='{$art_id}'");
    $art_obj->setListorder(intval($value));
    $art_obj->edit_keke_witkey_article();
    kekezu::admin_system_log($_lang['edit_art_order'] . $art_id);
    die;
} else {
    $where = ' 1 = 1 ';
    switch ($type) {
        case 'art':
            kekezu::admin_check_role(16);
            $art_cat_arr = kekezu::get_table_data('*', "witkey_article_category", "cat_type = 'article'", " art_cat_id desc", '', '', 'art_cat_id', null);
            $where .= " and cat_type = 'article' ";
            break;
        case 'help':
            kekezu::admin_check_role(42);
        $a['title'] = $v['task_title'];
        $a['pic'] = $v['task_pic'];
        $a['catid'] = $v['indus_id'];
        $a['uid'] = $v['uid'];
        $a['username'] = $v['username'];
        $a['starttime'] = $v['start_time'];
        $a['endtime'] = $v['start_time'];
        $a['cash'] = $v['task_cash'];
        $a['views'] = $v['view_num'];
        $a['prom'] = $v['prom_cash'];
        $a['top'] = $v['istop'];
        $a['time'] = $v['pub_time'];
        $temp_arr[] = $a;
    }
} elseif ($tag_info['tag_type'] == 2) {
    $art_obj = new Keke_witkey_article_class();
    $where = "1=1 ";
    if ($tag_info['art_ids']) {
        $where .= "and art_id in ({$tag_info['art_ids']}) ";
    } else {
        if ($tag_info['art_cat_ids']) {
            $where .= "and art_cat_id in ({$tag_info['art_cat_ids']}) ";
        } else {
            if ($tag_info['art_cat_id']) {
                $where .= "and art_cat_id = '{$tag_info['art_cat_id']}' ";
            }
        }
        if ($tag_info['art_time1']) {
            $where .= "and pub_time <{$tag_info['art_time1']} ";
        }
        if ($tag_info['art_time2']) {