public static function getPayitemShow($arrServiceInfo) { if ($arrServiceInfo['service_status'] != 2 || TOOL == FALSE) { return false; } $arrPayitemListAlls = PayitemClass::getPayitemListForPub('goods'); if (is_array($arrPayitemListAlls)) { $newArray = array(); foreach ($arrPayitemListAlls as $k => $v) { if ($arrServiceInfo[$k] == 1) { $newArray[$k] = $v; } } return $newArray; } return false; }
$arrBreadcrumbs = array(1 => array('url' => 'index.php?do=tasklist', 'name' => '任务大厅'), 2 => array('url' => 'index.php?do=tasklist&pd=' . $arrTaskInfo['indus_pid'], 'name' => $indus_p_arr[$arrTaskInfo['indus_pid']]['indus_name']), 3 => array('url' => 'index.php?do=tasklist&pd=' . $arrTaskInfo['indus_pid'] . '&i=' . $arrTaskInfo['indus_id'], 'name' => $indus_arr[$arrTaskInfo['indus_id']]['indus_name'])); $arrWorkFlag = array(1 => array('id' => 2, 'style' => 'fa-trophy', 'name' => '一等奖'), 2 => array('id' => 2, 'style' => 'fa-trophy', 'name' => '二等奖'), 3 => array('id' => 2, 'style' => 'fa-trophy', 'name' => '三等奖'), 4 => array('id' => 4, 'style' => 'fa-check-circle', 'name' => '中标'), 5 => array('id' => 5, 'style' => 'fa-dot-circle-o', 'name' => '入围'), 6 => array('id' => 6, 'style' => 'fa-check-circle', 'name' => '合格'), 7 => array('id' => 7, 'style' => 'fa-times-circle', 'name' => '淘汰'), 8 => array('id' => 8, 'style' => 'fa-times-circle', 'name' => '不可选标'), 9 => array('id' => 9, 'style' => 'fa-times-circle', 'name' => '放弃')); $strUrl = "index.php?do=task&id=" . $intId; $arrView = array('work', 'comment', 'mark'); if (!in_array($view, $arrView)) { $view = 'work'; } $intDeals = TaskClass::getWikiDealbyUid($arrTaskInfo['uid']); $arrWorkService = TaskClass::getWorkServers($intId, $arrTaskInfo['model_id']); $arrUserInfo = keke_user_class::get_user_info($arrTaskInfo['uid']); $strMarkQuerySQl = " SELECT COUNT(mark_id) FROM `" . TABLEPRE . "witkey_mark` "; $strMarkQuerySQl .= " WHERE origin_id = '" . $arrTaskInfo['task_id'] . "' "; $strMarkQuerySQl .= " AND mark_status > 0 AND model_code = '" . $arrModelInfo['model_dir'] . "'"; $arrTaskInfo['mark_num'] = db_factory::get_count($strMarkQuerySQl); $arrPayitemLists = PayitemClass::getPayitemListDetail('task', $arrTaskInfo['task_id']); $arrPayitemListAlls = PayitemClass::getPayitemListForPub('task'); $arrOrderInfo = array(); $sql = "SELECT a.*,b.order_status FROM `" . TABLEPRE . "witkey_order_detail` a LEFT JOIN `" . TABLEPRE . "witkey_order` b ON a.order_id= b.order_id WHERE a.obj_type = 'task' and a.obj_id = " . $arrTaskInfo['task_id']; $arrOrderInfo = db_factory::get_one($sql); if ($arrOrderInfo['order_status'] == 'ok') { $boolIsHosting = true; } else { $boolIsHosting = false; } $arrSimpleTasks = db_factory::query("select * from " . TABLEPRE . "witkey_task where indus_pid=" . $arrTaskInfo['indus_pid'] . " and task_id!=" . $arrTaskInfo['task_id'] . " and task_status not in(0,1,10) order by start_time desc limit 10"); $arrRecommShops = db_factory::query(sprintf("select a.username,a.uid,b.indus_id,b.indus_pid,a.shop_name,if(b.seller_total_num>0,b.seller_good_num/b.seller_total_num,0) as good_rate from %switkey_shop a " . " left join %switkey_space b on a.uid=b.uid where b.recommend=1 and b.status=1 and IFNULL(a.is_close,0)=0 and shop_status=1 order by if(b.indus_pid=%d ,1,0) desc, good_rate desc limit 0,5", TABLEPRE, TABLEPRE, $arrTaskInfo['indus_pid']), 1, $intIndexCacheTime); if ($view == 'mark') { $s === null and $s = 100 or $s = intval($s); $arrSearchStatus = array(); $arrSearchStatus['100'] = '所有的'; $arrSearchStatus['1'] = '好评';
if ($gUserInfo['autoshop'] != 1) { kekezu::show_msg('店铺已关闭,不能发布!', 'index.php', 3, null, 'warning'); } $strRandKf = kekezu::get_rand_kf(); $arrModelLists = kekezu::get_table_data('*', 'witkey_model', " model_type = 'shop' and model_status='1'", 'listorder', '', '', 'model_id', 3600); if (0 === $id) { $arrIds = array_keys($arrModelLists); $id = $arrIds['0']; } $arrModelInfo = $arrModelLists[$id]; if (empty($arrModelInfo)) { kekezu::show_msg('不存在该任务模型,请重新选择', 'index.php?do=pubtask', 3, null, 'warning'); } $arrTopIndustrys = $kekezu->_indus_goods_arr; $arrPubProcess = array(1 => array('step' => 'step1', 'desc' => '填写服务描述'), 2 => array('step' => 'step2', 'desc' => '核对服务清单'), 3 => array('step' => 'step3', 'desc' => '成功发布服务')); $arrPayitemLists = PayitemClass::getPayitemListForPub('goods'); $arrPayitemPriceLists = PayitemClass::getPayitemPriceList('goods'); $arrStep = array('step1', 'step2', 'step3', 'step4'); if (!in_array($step, $arrStep)) { $step = 'step1'; } $strUrl = "index.php?do=pubgoods&id=" . $id; if ($arrModelInfo['open_custom'] == '1') { $c_open = 1; $arrCustoms = CustomClass::getFieldListsByModelId($arrModelInfo['model_id']); } $arrProvinces = CommonClass::getDistrictByPid('0', 'id,upid,name'); $gUserInfo['province'] and $arrCities = CommonClass::getDistrictByPid($gUserInfo['province'], 'id,upid,name'); $gUserInfo['city'] and $arrAreas = CommonClass::getDistrictByPid($gUserInfo['city'], 'id,upid,name'); $_SESSION['spread'] = 'index.php?do=pubgoods'; require S_ROOT . "/shop/" . $arrModelInfo['model_dir'] . "/control/pub.php";
<?php kekezu::check_login(); $strPageTitle = '发布任务-' . $_K['html_title']; $strPageKeyword = '发布任务,' . $_K['html_title']; $strPageDescription = $kekezu->_sys_config['index_seo_desc']; $id = intval($id); $step = strval(trim($step)); $strRandKf = kekezu::get_rand_kf(); $is_task_template = db_factory::query("select * from " . TABLEPRE . "witkey_task_template"); $arrPubProcess = array(1 => array('step' => 'step1', 'desc' => '选择交易模式'), 2 => array('step' => 'step2', 'desc' => '描述任务需求'), 3 => array('step' => 'step3', 'desc' => '核对交易清单'), 4 => array('step' => 'step4', 'desc' => '成功发布任务')); $arrPayitemLists = PayitemClass::getPayitemListForPub(); $arrPayitemPriceLists = PayitemClass::getPayitemPriceList(); $arrDistribution = array(1 => '单人中标', 2 => '多人中标', 3 => '', 4 => '单人中标', 5 => '单人中标', 12 => '单人中标'); $arrTopIndustrys = $kekezu->_indus_task_arr; $arrModelLists = kekezu::get_table_data('*', 'witkey_model', " model_type = 'task' and model_status='1'", 'listorder asc ', '', '', 'model_id', 3600); if (0 === $id) { $arrModelIds = array_keys($arrModelLists); $id = $arrModelIds['0']; } $arrModelInfo = $arrModelLists[$id]; if (empty($arrModelInfo)) { kekezu::show_msg('不存在该任务模型,请重新选择', 'index.php?do=pubtask', 3, null, 'warning'); } $arrStep = array('step1', 'step2', 'step3', 'step4'); if (!in_array($step, $arrStep)) { $step = 'step1'; } $strUrl = "index.php?do=pubtask&id=" . $id; $arrOutFinance = db_factory::query(sprintf("select * from %switkey_finance where fina_type='out' and obj_id='%d' and uid='%d'", TABLEPRE, $taskId, $gUid)); if ($arrOutFinance) {
public function getPayitemShow() { if ($this->_task_info['task_status'] == 0 || $this->_task_info['task_status'] == 1 || TOOL == FALSE) { return false; } $arrPayitemListAlls = PayitemClass::getPayitemListForPub('task'); if (is_array($arrPayitemListAlls)) { $newArray = array(); foreach ($arrPayitemListAlls as $k => $v) { if ($this->_task_info[$k] == 1) { $newArray[$k] = $v; } } return $newArray; } return false; }