<?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) {
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";