コード例 #1
0
ファイル: goods_list.php プロジェクト: pengfeiaaa/web
             }
             $arrLogInfo['log_content'] = $arrLogDatas;
             CommonClass::applyEdit($arrLogInfo, $service_id);
             CommonClass::cancleEdit($service_id, 6);
             $arrServiceInfo = db_factory::get_one('select * from ' . TABLEPRE . 'witkey_service where service_id = ' . intval($service_id));
             if ($arrServiceInfo['service_status'] == '1') {
                 $time = time() - $service_arr['on_time'];
                 keke_payitem_class::update_service_payitem_time($service_arr['payitem_time'], $time, $service_id);
                 goods_shop_class::set_service_status($service_id, 2);
             }
             keke_msg_class::send_private_message('服务审核通知', '您编辑的商品信息<a href="index.php?do=goods&id=' . $service_id . '">' . $arrServiceInfo['title'] . '</a>已通过管理员审核,目前已生效!', $arrServiceInfo['uid'], $arrServiceInfo['username']);
         }
         if ($acc == 'snopass') {
             CommonClass::cancleEdit($service_id, 6);
             keke_shop_release_class::updateEditStatusBySid($service_id, 4);
             keke_msg_class::send_private_message('服务审核通知', '您编辑的商品信息<a href="index.php?do=goods&id=' . $service_id . '">' . $arrServiceInfo['title'] . '</a>未通过管理员的审核,如有疑问请联系网站管理员!', $arrServiceInfo['uid'], $arrServiceInfo['username']);
         }
         kekezu::echojson('操作成功', 1);
     } else {
         $editInfo = CommonClass::getEditLogInfoByLogTypeAndObjId($service_id, 6);
         $arrTopIndustrys = $kekezu->_indus_goods_arr;
         $arrIndustrys = CommonClass::getIndustryByPid($editInfo['log_content_data']['indus_pid']);
         $arrOldImageLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['old_pic']);
         $arrImageLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['pic']);
         $arrOldFileLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['old_file_path']);
         $arrFileLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['file_path']);
         require keke_tpl_class::template('shop/goods/admin/tpl/goods_updateinfo');
         die;
     }
     break;
 case 'off_shelf':
コード例 #2
0
ファイル: task_list.php プロジェクト: huangbinzd/kppwGit
    case "del":
        $res = keke_task_config::task_del($task_id);
        kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['delete_success'], 'success');
        break;
    case "pass":
        $res = keke_task_config::task_audit_pass($task_id);
        $arr = array();
        $arr['用户名'] = $task_audit_arr['username'];
        $arr['网站名称'] = $kekezu->_sys_config['website_name'];
        $arr['任务编号'] = "#" . $task_id;
        keke_msg_class::notify_user($task_audit_arr['uid'], $task_audit_arr['username'], 'task_auth_success', '审核通过', $arr);
        kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['audit_success'], 'success');
        break;
    case "nopass":
        $res = keke_task_config::task_audit_nopass($task_id);
        keke_msg_class::send_private_message('审核不通过', '你发布的任务审核未通过', $task_audit_arr['uid'], $task_audit_arr['username']);
        kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['operate_success'], 'success');
        break;
    case "freeze":
        $res = keke_task_config::task_freeze($task_id);
        kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['freeze_task_success'], 'success');
        break;
    case "unfreeze":
        $res = keke_task_config::task_unfreeze($task_id);
        kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['unfreeze_task_success'], 'success');
        break;
}
if ($sbt_action == $_lang['mulit_delete'] && !empty($ckb)) {
    keke_task_config::task_del($ckb);
    kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['mulit_delete_success'], 'success');
}
コード例 #3
0
ファイル: service_list.php プロジェクト: huangbinzd/kppwGit
            } else {
                $editInfo = CommonClass::getEditLogInfoByLogTypeAndObjId($service_id, 7);
                $arrTopIndustrys = $kekezu->_indus_goods_arr;
                $arrIndustrys = CommonClass::getIndustryByPid($editInfo['log_content_data']['indus_pid']);
                $arrOldImageLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['old_pic']);
                $arrImageLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['pic']);
                $arrOldFileLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['old_file_path']);
                $arrFileLists = CommonClass::getFileArrayByPath(',', $editInfo['log_content_data']['file_path']);
                require keke_tpl_class::template('shop/service/admin/tpl/service_updateinfo');
                die;
            }
            break;
        case 'off_shelf':
            if ($is_submit == "1") {
                $serviceInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_service where service_id=" . intval($service_id));
                keke_msg_class::send_private_message('商品下架', '您的商品<a href="index.php?do=goods&id=' . $service_id . '">' . $arrServiceInfo['title'] . '</a>被管理员下架,下架原因:' . $reason, $serviceInfo['uid'], $serviceInfo['username']);
                goods_shop_class::set_service_status($service_id, 3);
                kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['goods_disable_success'], 'success');
            } else {
                require keke_tpl_class::template('shop/' . $model_info['model_dir'] . '/admin/tpl/service_reason');
                die;
            }
            break;
    }
}
if ($sbt_action) {
    $keyids = $ckb;
    if (is_array($keyids)) {
        $log_mac_arr = array("more_del" => $_lang['mulit_delete'], "more_use" => $_lang['mulit_use'], "more_pass" => $_lang['mulit_pass'], "disable" => $_lang['mulit_disable']);
        $log_msg = $_lang['to_witkey_service_has_in'] . $log_mac_arr[$sbt_action] . $_lang['operate'];
        kekezu::admin_system_log($log_msg);
コード例 #4
0
ファイル: task_list.php プロジェクト: huangbinzd/kppwGit
 case "settask":
     require $kekezu->_tpl_obj->template('task/' . $model_info['model_dir'] . '/admin/tpl/task_reason');
     die;
     break;
 case "stoptask":
     $model_info = db_factory::get_one("select * from " . TABLEPRE . "witkey_model where model_id=5");
     $config = unserialize($model_info[config]);
     $task_info = get_task_info($task_id);
     if ($task_info[task_status] == 2 || $task_info[task_status] == 3 || $task_info[task_status == 4]) {
         keke_finance_class::cash_in($task_info['uid'], $task_info['real_cash'] * (100 - $config[task_fail_rate]) / 100, 'task_fail', '', 'task_fail');
         db_factory::execute("update " . TABLEPRE . "witkey_task set task_status=9 where task_id=" . intval($task_id));
     }
     $work_info = db_factory::get_one("select * from  " . TABLEPRE . "witkey_task_bid  where task_id='" . intval($task_id) . "' and bid_status=4");
     $sumcash = db_factory::query("select sum(plan_amount) as cash from " . TABLEPRE . "witkey_task_plan where bid_id='" . intval($work_info[bid_id]) . "' and task_id='" . intval($task_info[task_id]) . "' and plan_status!=2");
     if ($work_info) {
         keke_msg_class::send_private_message("任务结束", kekezu::str_filter(kekezu::escape($content)), $work_info['uid'], $work_info['username']);
         keke_finance_class::cash_in($task_info['uid'], $sumcash[0]['cash'] * (100 - $config[task_fail_rate]) / 100, 'task_fail', '', 'task_fail');
         db_factory::execute("update " . TABLEPRE . "witkey_task_bid set bid_status=0 where task_id='" . intval($task_id) . "' and bid_status=4");
     }
     $v_arr = array("模型名称" => $model_info['model_name'], "任务标题" => '<a href="' . $kekezu->_sys_config['website_url'] . '/index.php?do=task&id=' . $task_info['task_id'] . '">' . $task_info['task_title'] . '</a>', "理由" => kekezu::str_filter(kekezu::escape($content)));
     keke_msg_class::notify_user($task_info['uid'], $task_info['username'], 'task_end_manually', '任务结束通知', $v_arr);
     kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['operate_success'], 'success');
     break;
 case "pass":
     $res = keke_task_config::task_audit_pass($task_id);
     $v_arr = array($_lang['username'] => "{$task_audit_arr['username']}", $_lang['task_link'] => $url, $_lang['start_time'] => $start_time, $_lang['end_time'] => $end_time, $_lang['task_id'] => "#" . $task_id);
     keke_shop_class::notify_user($task_audit_arr['uid'], $task_audit_arr['username'], 'task_auth_success', $_lang['task_auth_success'], $v_arr, 1);
     kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['audit_success'], 'success');
     break;
 case "nopass":
     if ($is_submit == "1") {