Example #1
0
             kekezu::show_msg($tips, null, null, null, 'error');
         }
         $_POST['tar_content'] = kekezu::escape($_POST['tar_content']);
         if (!$_POST['tar_content']) {
             $tips['errors']['tar_content'] = '请输入需求描述';
             kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
         }
         $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST);
         $objRelease->save_task_obj($_POST, $stdCacheName);
         kekezu::show_msg($tips, $strUrl . '&step=step3', NULL, NULL, 'ok');
     } else {
         !$_SESSION[$stdCacheName] and kekezu::show_msg($_lang['friendly_notice'], "index.php?do=pubtask&id={$id}", 2, "任务已提交,不可再返回修改!", "warning");
         $objRelease->check_access($step, $id, $arrPubInfo);
         $strExtTypes = kekezu::get_ext_type();
     }
     $arrFileLists = CommonClass::getFileArray('|', $arrPubInfo['file_ids']);
     break;
 case 'step3':
     $intFileCount = 0;
     if ($arrPubInfo['file_ids']) {
         $intFileCount = count(explode('|', $arrPubInfo['file_ids']));
     }
     if (isset($formhash) && kekezu::submitcheck($formhash)) {
         $arrPayitems = array('urgent' => intval($txt_urgent), 'tasktop' => intval($txt_tasktop) && intval($text_tasktop) ? intval($text_tasktop) : 0, 'workhide' => intval($txt_workhide), 'seohide' => intval($txt_seohide));
         $arrPayitems = array_filter($arrPayitems);
         PayitemClass::validPayitemCount($arrPayitems, $arrPubInfo['txt_task_day']);
         $_POST['payitem'] = $arrPayitems;
         $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST);
         $objRelease->save_task_obj($_POST, $stdCacheName);
         $intTaskId = $objRelease->pub_task();
         $objRelease->save_task_match($intTaskId);
<?php

$intWorkId = intval($workId);
$intTaskId = intval($taskId);
$strUrl = "index.php?do=user&view=transaction&op=downworkfile";
if ($intTaskId && $intWorkId) {
    $strWorkSql = 'select * from ' . TABLEPRE . 'witkey_task_work where task_id = ' . $intTaskId . ' and work_id=' . $intWorkId;
    $arrWorkInfo = db_factory::get_one($strWorkSql);
    if ($arrWorkInfo['uid'] != $gUid) {
        exit('禁止未授权访问');
    }
}
$arrFileLists = CommonClass::getFileArray(',', $arrWorkInfo['work_file']);
if (is_array($arrFileLists)) {
    foreach ($arrFileLists as $k => $v) {
        $path = S_ROOT . $v['save_name'];
        $path_parts = pathinfo($path);
        $arrFileLists[$k]['type'] = $path_parts['extension'];
    }
}
require $kekezu->_tpl_obj->template($do . '/' . $view . '_' . $op);
die;
Example #3
0
$intGuid = $arrTaskInfo['uid'];
$arrGinfo = $objTask->_g_userinfo;
$arrBidInfo = $objTask->work_exists();
$intWuid = intval($arrBidInfo['uid']);
$intWuid and $arrWinfo = kekezu::get_user_info($intWuid);
$arrCoverCash = kekezu::get_cash_cove('', true);
$objMatchTime = new match_time_class();
$objMatchTime->validtaskstatus();
if ($arrTaskInfo['task_status'] == 11 || $arrTaskInfo['task_status'] == 7) {
    $frontStatus = keke_report_class::getFrontStatus($arrTaskInfo['task_id']);
    if ($arrTaskInfo['task_status'] == 7) {
        $frontStatus = 6;
    }
}
if ($arrBidInfo['work_file']) {
    $arrFileLists = CommonClass::getFileArray('|', $arrBidInfo['work_file']);
}
switch ($view) {
    case "work":
        $s === null and $s = 1 or $s = intval($s);
        $arrSearchStatus = array();
        $arrSearchStatus['1'] = '所有的';
        $arrSearchStatus['4'] = '中标的';
        $arrSearchStatus['7'] = '淘汰的';
        $arrSearchStatus['9'] = '放弃的';
        $arrUid = db_factory::get_one("select uid from " . TABLEPRE . "witkey_task where task_id = '{$id}'");
        if ($gUid != $arrUid['uid']) {
            $arrSearchStatus['11'] = '我的';
        }
        $page and $page = intval($page);
        intval($page) and $p['page'] = intval($page) or $p['page'] = '1';
Example #4
0
         $_POST['tar_content'] = kekezu::escape($tar_content);
         if (!$_POST['tar_content']) {
             $tips['errors']['tar_content'] = '内容不能为空!';
             kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
         }
         if (strtoupper(CHARSET) == 'GBK') {
             $_POST = kekezu::utftogbk($_POST);
         }
         $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST);
         $_POST['txt_price'] = keke_curren_class::convert($_POST['txt_price'], 0, true);
         $objRelease->save_service_obj($_POST, $stdCacheName);
         kekezu::show_msg($tips, $strUrl . '&step=step2', NULL, NULL, 'ok');
     }
     $arrImageLists = CommonClass::getFileArrayByPath(',', $arrPubInfo['pic_patch']);
     $arrFileLists = CommonClass::getFileArrayByPath(',', $arrPubInfo['file_path_2']);
     $arrFileIds = CommonClass::getFileArray('|', $arrPubInfo['fileid1']);
     if (!empty($arrFileIds)) {
         $data = array();
         foreach ($arrFileIds as $k => $v) {
             $data[$k] = $v['file_id'];
         }
         $arrPubInfo['fileids'] = implode("|", $data);
     }
     break;
 case 'step2':
     if (isset($formhash) && kekezu::submitcheck($formhash)) {
         $arrPayitems = array('goodstop' => intval($txt_goodstop) && intval($text_goodstop) ? intval($text_goodstop) : 0);
         $arrPayitems = array_filter($arrPayitems);
         PayitemClass::validPayitemCosts($hdn_total_costs);
         $arrPubInfo['payitem'] = $arrPayitems;
         $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST);