static function getIndusSEO($indus1, $indus2) { $seoTitle = ''; $seoKeyword = ''; $seoDesc = ''; $indus1 = (int) $indus1; $indus2 = (int) $indus2; if ($indus1) { $pInfo1 = CommonClass::getIndustryById($indus1, 'seo_title,seo_keyword,seo_desc'); $pInfo1['seo_title'] and $seoTitle = $pInfo1['seo_title']; $pInfo1['seo_keyword'] and $seoKeyword = $pInfo1['seo_keyword']; $pInfo1['seo_desc'] and $seoDesc = $pInfo1['seo_desc']; } unset($pInfo1); if ($indus2) { $pInfo2 = CommonClass::getIndustryById($indus2, 'seo_title,seo_keyword,seo_desc'); $pInfo2['seo_title'] and $seoTitle .= ($seoTitle ? '-' : '') . $pInfo2['seo_title']; $pInfo2['seo_keyword'] and $seoKeyword .= ($seoKeyword ? '-' : '') . $pInfo2['seo_keyword']; $pInfo2['seo_desc'] and $seoDesc .= ($seoDesc ? '-' : '') . $pInfo2['seo_desc']; } unset($pInfo2); $result = array(); $result['seo_title'] = $seoTitle; $result['seo_keyword'] = $seoKeyword; $result['seo_desc'] = $seoDesc; return $result; }
function MemberProfile($requestArr) { parent::CommonClass(); $this->CheckGetMagicQuotes($requestArr); $g_criteria1 = $requestArr['tab']; if (array_key_exists('uid', $requestArr)) { $this->userId = base64_decode($requestArr['uid']); } switch ($g_criteria1) { case "dashboard": $this->wpmlm_member_dashboard(); break; case "my-direct": $this->wpmlm_member_mydirect_group(); break; case "my-left": $this->wpmlm_member_myleft_group(); break; case "my-right": $this->wpmlm_member_myright_group(); break; case "my-consultant": $this->wpmlm_member_myconsultant(); break; case "unpaid-members": $this->wpmlm_member_unpaid_member(); break; case "my-payout": $this->wpmlm_member_payout(); break; default: $this->wpmlm_member_dashboard(); break; } }
function display_wpmlm_member_profile_details_page($reqArr) { $memberId = $reqArr['uid']; global $pagenow; if ($pagenow == 'admin.php' && $_GET['page'] == 'wpmlm-member-profile' && $_GET['tab'] == 'dashboard') { $current = 'dashboard'; } else { if ($pagenow == 'admin.php' && $_GET['page'] == 'wpmlm-member-profile' && $_GET['tab'] == 'my-direct') { $current = 'my-direct'; } else { if ($pagenow == 'admin.php' && $_GET['page'] == 'wpmlm-member-profile' && $_GET['tab'] == 'my-left') { $current = 'my-left'; } else { if ($pagenow == 'admin.php' && $_GET['page'] == 'wpmlm-member-profile' && $_GET['tab'] == 'my-right') { $current = 'my-right'; } else { if ($pagenow == 'admin.php' && $_GET['page'] == 'wpmlm-member-profile' && $_GET['tab'] == 'my-consultant') { $current = 'my-consultant'; } else { if ($pagenow == 'admin.php' && $_GET['page'] == 'wpmlm-member-profile' && $_GET['tab'] == 'unpaid-members') { $current = 'unpaid-members'; } else { if ($pagenow == 'admin.php' && $_GET['page'] == 'wpmlm-member-profile' && $_GET['tab'] == 'my-payout') { $current = 'my-payout'; } else { $current = 'dashboard'; } } } } } } } $tabs = array('dashboard' => 'Dashboard', 'my-direct' => 'Direct Group', 'my-left' => 'Left Group', 'my-right' => 'Right Group', 'my-consultant' => 'Consultants', 'unpaid-members' => 'Unpaid Members', 'my-payout' => 'Payout'); $links = array(); $comClassObj = new CommonClass(); echo '<div id="icon-options-general" class="icon32"><br></div>'; echo '<h1>Member Details : ' . $comClassObj->getUserNameById(base64_decode($memberId)) . '</h1>'; echo '<h3 class="nav-tab-wrapper">'; foreach ($tabs as $tab => $name) { $class = $tab == $current ? ' nav-tab-active' : ''; echo "<a class='nav-tab{$class}' href='?page=wpmlm-member-profile&tab={$tab}&uid={$memberId}'>{$name}</a>"; } echo '</h3>'; require 'classes/member-profile.class.php'; $objMemberProfile = new MemberProfile($_REQUEST); }
} $arrTaskInfo['uid'] != $uid && $gUid != ADMIN_UID && $arrTaskInfo['task_status'] == 1 and kekezu::show_msg($_lang['friendly_notice'], 'index.php?do=tasklist', 1, $_lang['task_auditing'], 'warning'); $arrTaskInfo['uid'] != $uid && $gUid != ADMIN_UID && $arrTaskInfo['task_status'] == 0 and kekezu::show_msg($_lang['friendly_notice'], 'index.php?do=tasklist', 1, $_lang['task_not_pay'], 'warning'); $arrConfig = unserialize($model_list[$arrTaskInfo['model_id']]['config']); if (!$arrModelInfo) { kekezu::show_msg('页面不存在', 'index.php?do=tasklist', 3, null, 'warning'); } if ($arrTaskInfo['seohide'] == 1) { if (!$gUid) { kekezu::show_msg('页面不存在', 'index.php?do=tasklist', 3, null, 'warning'); } } else { if ($arrTaskInfo['indus_id']) { $indusInfo = CommonClass::getIndustryById($arrTaskInfo['indus_id']); } elseif ($arrTaskInfo['indus_pid']) { $indusInfo = CommonClass::getIndustryById($arrTaskInfo['indus_pid']); } if ($arrTaskInfo['seo_title']) { $strPageTitle = $arrTaskInfo['seo_title']; } else { if ($indusInfo['seo_title']) { $strPageTitle = $indusInfo['seo_title']; } else { $strPageTitle = $arrTaskInfo['task_title'] . '-' . $indus_arr[$arrTaskInfo['indus_id']]['indus_name'] . ',' . $indus_p_arr[$arrTaskInfo['indus_pid']]['indus_name'] . '-' . $_K['html_title']; } } if ($arrTaskInfo['seo_keyword']) { $strPageKeyword = $arrTaskInfo['seo_keyword']; } else { if ($indusInfo['seo_keyword']) { $strPageKeyword = $indusInfo['seo_keyword'];
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']); if ($action == 'delete_file') { $resText = CommonClass::delFileByFileId($fileid); if ($resText) { $array = explode('|', $arrPubInfo['file_ids']); $newArr = CommonClass::returnNewArr($fileid, $array); $_POST['file_ids'] = implode("|", $newArr); $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST); $objRelease->save_task_obj($_POST, $stdCacheName); kekezu::echojson('删除成功', 1, array('fileid' => $fileid, 'a' => $arrPubInfo)); die; } } 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));
if (intval($m)) { $strWhere .= " and a.model_id = " . intval($m); } if (intval($p)) { $arrCityone = CommonClass::getDistrictById($p); $strWhere .= " and a.province = " . intval($p); $two = db_factory::get_table_data("*", "witkey_district", "upid=" . intval($p)); } if (intval($twoid)) { $arrCitytwo = CommonClass::getDistrictById($twoid); $strWhere .= " and a.city = " . intval($twoid); $three = db_factory::get_table_data("*", "witkey_district", "upid=" . intval($twoid)); $twoid and $strUrl .= "&twoid=" . intval($twoid); } if (intval($threeid)) { $arrCitythree = CommonClass::getDistrictById($threeid); $strWhere .= " and a.area = " . intval($threeid); } $ky and $strWhere .= " and a.title like '%{$ky}%' "; $intCount = db_factory::execute($strSql . $strWhere); if (isset($o)) { switch (intval($o)) { case '1': $strWhere .= " order by a.sale_num desc "; break; case '2': $strWhere .= " order by a.sale_num asc "; break; case '3': $strWhere .= " order by a.price desc "; break;
$objFollowT = keke_table_class::get_instance('witkey_free_follow'); $strWhere = " 1 = 1 "; $strWhere .= " and a.fuid = b.uid and a.uid =" . $uid; if (isset($action) && $action === 'cancelFocus') { if ($intFollowUid) { $objFollowT->del('follow_id', intval($intFollowUid)); kekezu::show_msg('删除成功', $strUrl, NULL, NULL, 'ok'); } else { kekezu::show_msg('删除失败', NULL, NULL, NULL, 'error'); } } else { $page and $intPage = intval($page); $intPage = intval($intPage) ? $intPage : 1; $intPagesize = intval($intPagesize) ? $intPagesize : 10; $strSql = 'select a.*,b.*,s.uid focus_uid,s.username focus_username,s.seller_level ,s.skill_ids from ' . TABLEPRE . 'witkey_free_follow as a'; $strSql .= ' left join ' . TABLEPRE . 'witkey_free_follow as b on a.uid = b.fuid'; $strSql .= ' left join ' . TABLEPRE . 'witkey_space as s on a.fuid = s.uid where ' . $strWhere; $strSql .= ' order by a.on_time desc '; $arrDatas = db_factory::query($strSql); $arrPageArr = $kekezu->_page_obj->page_by_arr($arrDatas, $intPagesize, $intPage, $strUrl); $arrEachLists = $arrPageArr['data']; if (is_array($arrEachLists)) { foreach ($arrEachLists as $k => $v) { $arrFocusData = CommonClass::getMemberFocus($v['focus_uid']); $arrEachLists[$k]['data'] = $arrFocusData; $arrShopInfo = CommonClass::getShopInfo($v['focus_uid']); $arrEachLists[$k]['shop_slogans'] = $arrShopInfo['shop_slogans']; } } $strPages = $arrPageArr['page']; }
$strWhere .= " order by a.tasktop desc,a.task_id desc "; break; } $strTaskSql = "select a.*,d.* from " . TABLEPRE . "witkey_task as a left join " . TABLEPRE . "witkey_task_cash_cove d on a.task_cash_coverage=d.cash_rule_id\n\t\twhere "; $intCount = db_factory::execute($strTaskSql . $strWhere); $arrDatas = $page_obj->getPages($intCount, $intPagesize, $intPage, $strUrl); $arrTaskLists = db_factory::query($strTaskSql . $strWhere . $arrDatas['where']); if (is_array($arrTaskLists)) { foreach ($arrTaskLists as $k => $v) { $arrFavorite = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and obj_id = %d and keep_type = "task"', TABLEPRE . 'witkey_favorite', intval($gUid), intval($v['task_id']))); if ($arrFavorite) { $arrTaskLists[$k]['favorite'] = true; } $province = CommonClass::getDistrictById($v['province']); $city = CommonClass::getDistrictById($v['city']); $area = CommonClass::getDistrictById($v['area']); $arrTaskLists[$k]['province_name'] = $province['name']; $arrTaskLists[$k]['city_name'] = $city['name']; $arrTaskLists[$k]['area_name'] = $area['name']; unset($arrFollow); } } $strPages = $arrDatas['page']; $arrSJ = array('1' => '未托管', '2' => '已托管'); $arrTaskS = array('1' => '工作中', '2' => '选稿中', '3' => '交付中', '4' => '已结束'); $data = array('地区' => $arrCityone['name'] . $arrCitytwo['name'] . $arrCitythree['name'], '任务模式' => $arrTaskNavs[$m]['model_name'], '赏金状态' => $arrSJ[$r], '任务状态' => $arrTaskS[$s], '行业' => $arrIndusPInfo['indus_name'], '子行业' => $arrIndusInfo['indus_name']); list($strPageTitle, $strPageKeyword, $strPageDescription) = keke_seo_class::getListSEO($pd, $i, $data, 'task', true); unset($objTaskT); $arrFeedPubs = kekezu::get_feed("(feedtype='pub_task' or feedtype='pub_service')", "feed_time desc", 8); $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 good_rate desc limit 0,5", TABLEPRE, TABLEPRE), 1, $intIndexCacheTime); $_SESSION['spread'] = 'index.php?do=tasklist';
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);
$reqPage = 'seller'; $arrBuyerInfo = kekezu::get_user_info($arrOrderInfo['order_uid']); $arrOrderInfo['seller_uid'] != $id and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning'); $arrBuyerInfo['comefrom'] = keke_shop_class::getUserAddress($arrOrderInfo['order_uid'], 2, 1, 1, 0); $arrBuyerInfo['userlevel'] = unserialize($arrBuyerInfo['buyer_level']); $arrAid = keke_user_mark_class::get_user_aid($arrBuyerInfo['uid'], 1, null, '1'); $arrServiceOrderInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrServiceOrderInfo['indus_pid'], 'indus_id,indus_pid,indus_name'); $reportUrl .= $arrBuyerInfo['uid']; } else { $reqPage = 'buyer'; $arrSellerInfo = kekezu::get_user_info($id); !$arrSellerInfo and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning'); $arrOrderInfo['order_uid'] && $arrOrderInfo['order_uid'] != $uid and kekezu::show_msg('用户订单不存在', 'index.php?do=seller&id=' . $id, 3, '订单已关闭', 'warning'); $arrSellerInfo['comefrom'] = keke_shop_class::getUserAddress($id, 2, 1, 1, 0); $arrSellerInfo['userlevel'] = unserialize($arrSellerInfo['seller_level']); $arrSellerInfo['nearlyIncome'] = CommonClass::getNearlyIncomeForDays($arrSellerInfo['uid']); $arrAid = keke_user_mark_class::get_user_aid($arrSellerInfo['uid'], 2, null, '1'); $reportUrl .= $arrSellerInfo['uid']; } switch ($arrOrderInfo['order_status']) { case 'seller_confirm': $step = 'step2'; break; case 'wait': $step = 'step3'; break; case 'ok': $step = 'step4'; break; case 'working': if ($gUid == $id) {
public static function getUserAddress($uid, $type = '1', $province = '1', $city = '1', $area = '1') { $data = array(); if (!$uid) { return $data; } if ($type == '1') { $addressInfo = db_factory::get_one("select province,city,area from " . TABLEPRE . "witkey_space where uid='{$uid}'"); } else { $addressInfo = db_factory::get_one("select province,city,area from " . TABLEPRE . "witkey_shop where uid='{$uid}'"); } $arrProvinces = CommonClass::getDistrictByPid('0', 'id,upid,name'); if ($addressInfo['province']) { $arrCity = CommonClass::getDistrictByPid($addressInfo['province'], 'id,upid,name'); $data['province'] = $arrProvinces[$addressInfo['province']]['name']; } if ($addressInfo['city']) { $arrArea = CommonClass::getDistrictByPid($addressInfo['city'], 'id,upid,name'); $data['city'] = $arrCity[$addressInfo['city']]['name']; } if ($addressInfo['area']) { $data['area'] = $arrArea[$addressInfo['area']]['name']; } if ($data) { if ($province != '1') { unset($data['province']); } if ($city != '1') { unset($data['city']); } if ($area != '1') { unset($data['area']); } } if ($data) { $address = implode('-', $data); } else { $address = ''; } return $address; }
if ($indusInfo['seo_keyword']) { $strPageTitle = $indusInfo['seo_keyword']; } else { $strPageKeyword = $indus_arr[$arrServiceInfo['indus_id']]['indus_name'] . ',' . $indus_p_arr[$arrServiceInfo['indus_pid']]['indus_name']; } } if ($arrServiceInfo['seo_desc']) { $strPageDescription = $arrServiceInfo['seo_desc']; } else { if ($indusInfo['seo_desc']) { $strPageTitle = $indusInfo['seo_desc']; } else { $strPageDescription = kekezu::cutstr($arrServiceInfo['content'], 100); } } $floatGoodMark = CommonClass::getGoodsMark(intval($intId)); if ($uid != $arrServiceInfo['uid'] && $arrServiceInfo['service_status'] != 2 && $arrServiceInfo['service_status'] != 5) { $gUid == ADMIN_UID or kekezu::show_msg('操作提示', "index.php?do=goodslist", '1', '商品不存在', 'warning'); } if (isset($op)) { switch ($op) { case "report": $transname = keke_report_class::get_transrights_name($type); $report_reason = keke_report_class::get_report_product_reason(); if (isset($formhash) && kekezu::submitcheck($formhash)) { $resCheck = keke_report_class::check_if_report($type, $objType, $objId, $uid, $toUid); if ($resCheck === true) { $tarContent = kekezu::escape($tarContent); $toUserInfo = keke_user_class::get_user_info($toUid); $resText = keke_shop_class::set_report($objId, $toUid, $type, $filepath, $tarContent, $sltReason); if ($resText === true) {
$_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);
if ($ajaxop == 'setstatus') { $status = 3; if ($setstatus == 'open') { $status = '1'; keke_shop_release_class::updateShopStatus($uid, $status); } else { keke_shop_release_class::closeShop($uid, $status); } die; } $arrProvinces = CommonClass::getDistrictByPid('0', 'id,upid,name'); if ($shopInfo['city']) { $arrCity = CommonClass::getDistrictById($shopInfo['city'], 'id,upid,name'); } if ($shopInfo['area']) { $arrArea = CommonClass::getDistrictById($shopInfo['area'], 'id,upid,name'); } $arrBackgroudStyle = unserialize($shopInfo['shop_backstyle']); $objShopT = keke_table_class::get_instance('witkey_shop'); if (isset($formhash) && kekezu::submitcheck($formhash)) { if (strtoupper(CHARSET) == 'GBK') { $shop_name = kekezu::utftogbk($shop_name); $shop_slogans = kekezu::utftogbk($shop_slogans); $seo_title = kekezu::utftogbk($seo_title); $seo_keyword = kekezu::utftogbk($seo_keyword); $seo_desc = kekezu::utftogbk($seo_desc); $address = kekezu::utftogbk($address); } $arrData = array('shop_name' => $shop_name, 'shop_slogans' => $shop_slogans, 'province' => $province, 'city' => $city, 'area' => $area, 'address' => $address, 'coordinate' => $coordinate); $banner and $arrData['banner'] = $banner; $background and $arrData['shop_background'] = $background;
foreach ($arrSelectPeople as $key => $val) { $arrSelectPeople[$key] = $val['uid']; } $cha = array_diff($arrSelectPeople, $cbk); foreach ($cha as $k => $v) { db_factory::query('update ' . TABLEPRE . 'witkey_task_work set work_status=7 where uid="' . $v . '" and task_id=' . $task_id); } $count = count($cbk); foreach ($cbk as $key => $val) { do { $lcg = lcg_value(); } while ($lcg < 0.1); if ($key + 1 == $count) { $selefHongBao[$val] = $hongbaoSum; } else { $selefHongBao[$val] = number_format($lcg * $hongbaoSum, 2); } $hongbaoSum -= $selefHongBao[$val]; $a += $selefHongBao[$val]; } foreach ($selefHongBao as $k => $v) { CommonClass::changehongbao($task_id, $task_info[0]['task_cash'], $k, $v, $task_info[0]['task_title']); } CommonClass::changehongbao('', $task_info[0]['task_cash'], $gUid, $a, $task_info[0]['task_title'], 1); db_factory::execute('update ' . TABLEPRE . 'witkey_task set task_status=8 where task_id=' . $task_id); kekezu::show_msg('福袋已发送成功', 'index.php?do=task&id=' . $task_id . '&view=work', NULL, NULL, 'ok'); } else { $arrSelectPeople = db_factory::query('select uid,username,work_status from ' . TABLEPRE . 'witkey_task_work where 1=1 and task_id=' . intval($id) . ' order by work_status desc'); $objRelease = hongbao_release_class::get_instance(15, $pub_mode); $arrConfig = $objRelease->_task_config; }
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': if ($is_submit == "1") { $serviceInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_service where service_id=" . intval($service_id)); $objMsgM = new Keke_witkey_msg_class(); $objMsgM->setTo_uid($serviceInfo['uid']); $objMsgM->setTo_username($serviceInfo['username']); $objMsgM->setTitle("商品下架"); $objMsgM->setContent(kekezu::str_filter(kekezu::escape("您的商品 " . $serviceInfo[title] . " 被管理员下架,下架原因:{$reason}"))); $objMsgM->setOn_time(time()); $objMsgM->setType(2); $objMsgM->create_keke_witkey_msg();
$arrBuyerInfo['comefrom'] = keke_shop_class::getUserAddress($arrOrderInfo['order_uid'], 2, 1, 1, 0); $arrBuyerInfo['userlevel'] = unserialize($arrBuyerInfo['buyer_level']); $arrAid = keke_user_mark_class::get_user_aid($arrBuyerInfo['uid'], 1, null, '1'); $arrServiceOrderInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrServiceOrderInfo['indus_pid'], 'indus_id,indus_pid,indus_name'); $reportUrl .= $arrBuyerInfo['uid']; if (!$orderId) { kekezu::show_msg('无法购买自己的商品', 'index.php?do=goodslist', 3, '操作提示', 'warning'); } } else { $reqPage = 'buyer'; $arrSellerInfo = kekezu::get_user_info($arrServiceInfo['uid']); $arrSellerInfo['comefrom'] = keke_shop_class::getUserAddress($arrServiceInfo['uid'], 2, 1, 1, 0); $arrSellerInfo['userlevel'] = unserialize($arrSellerInfo['seller_level']); $arrSellerInfo['nearlyIncome'] = CommonClass::getNearlyIncomeForDays($arrSellerInfo['uid']); $arrAid = keke_user_mark_class::get_user_aid($arrSellerInfo['uid'], 2, null, '1'); $arrServiceInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrServiceInfo['indus_pid'], 'indus_id,indus_pid,indus_name'); $reportUrl .= $arrSellerInfo['uid']; } if ($arrServiceInfo['model_id'] === '7') { switch ($arrOrderInfo['order_status']) { case 'seller_confirm': $step = 'step2'; break; case 'wait': $step = 'step3'; break; case 'ok': $step = 'step4'; break; case 'working': if ($gUid == $arrServiceInfo['uid']) {
<?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;
kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } if (!$strBankFullName) { $tips['errors']['bank_full_name'] = '请输入开户行名称'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } if (!$strCardNum) { $tips['errors']['card_num'] = '请输入银行卡号'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } $strSql = sprintf(" select card_num from %switkey_member_bank where bind_status=1 and card_num='%s'", TABLEPRE, $strCardNum); if (db_factory::get_count($strSql)) { $tips['errors']['card_num'] = '此账号已被他人绑定'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } $arrDistrictData = CommonClass::getAllDistrict('id,upid,name'); $province = $arrDistrictData[$province]['name']; $city = $arrDistrictData[$city]['name']; $strBankAddress = $province . "," . $city; if (strtoupper(CHARSET) == 'GBK') { $strTxtName = kekezu::utftogbk($strTxtName); $strBankName = kekezu::utftogbk($strBankName); $strBankAddress = kekezu::utftogbk($strBankAddress); $strBankFullName = kekezu::utftogbk($strBankFullName); } $arrData = array($strInputName => $strTxtName, 'bank_name' => $strBankName, 'bank_address' => $strBankAddress, 'bank_full_name' => $strBankFullName, 'bank_type' => $intUserRole, 'card_num' => $strCardNum, 'uid' => $gUid, 'on_time' => time(), 'bind_status' => 1); $intBankId = $objMemBankT->save($arrData); if ($intBankId) { unset($_SESSION['bank_zone']); unset($_SESSION['bank_zone_detail']); $strJumpUrl = $strUrl . '&step=step2&intBankType=' . $intUserRole . '&intBankId=' . $intBankId;
<?php if (intval($id)) { $arrIndustrys = CommonClass::getIndustryByPid($id, 'indus_id,indus_pid,indus_name'); foreach ($arrIndustrys as $k => $v) { $html .= '<option value=' . $v['indus_id'] . '>' . $v['indus_name'] . '</option>'; } echo $html; } die;
$newArr = CommonClass::returnNewArr($arrFileInfo['save_name'], $array); $_POST['file_ids'] = implode(",", $newArr); $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST); $objRelease->save_service_obj($_POST, $stdCacheName); kekezu::echojson('删除成功', 1, array('fileid' => $fileid, 'save_name' => $arrFileInfo['save_name'])); die; } } if ($action == 'delete_goodsfile') { $fileid = intval($fileid); $strSql = sprintf("select file_id,file_name,save_name from %switkey_file where file_id in(%s)", TABLEPRE, $fileid); $arrFileInfo = db_factory::get_one($strSql); $resText = CommonClass::delFileByFileId($fileid); if ($resText) { $array = explode(',', $arrPubInfo['file_path_2']); $newArr = CommonClass::returnNewArr($arrFileInfo['save_name'], $array); $_POST['file_path_2'] = implode(",", $newArr); $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST); $_POST['province'] = $_POST['onecity']; $_POST['city'] = $_POST['twocity']; $_POST['area'] = $_POST['threecity']; $objRelease->save_service_obj($_POST, $stdCacheName); kekezu::echojson('删除成功', 1, array('fileid' => $fileid, 'save_name' => $arrFileInfo['save_name'])); die; } } 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);
$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';
} } if ($arrNerLists) { foreach ($arrNerLists as $k => $v) { $arrNerLists[$k]['pro_city'] = keke_shop_class::getUserAddress($v['uid'], 2, 1, 1, 0); } } $arrShopIndusC = $kekezu->_indus_c_arr; $arrShopIndusP = $kekezu->_indus_p_arr; if (is_array($arrShopIndusC)) { $arrNewShopIndusC = array(); foreach ($arrShopIndusC as $k => $v) { $arrNewShopIndusC[$v['indus_pid']][] = $v; } } $arrDisplaypro = CommonClass::getDistrictByPid('0', 'id,upid,name'); $arrSellerType = array('1' => '个人用户', '2' => '企业用户'); $data = array('地区' => $arrCityone['name'] . $arrCitytwo['name'] . $arrCitythree['name'], '店铺类型' => $arrSellerType[$t], '行业' => $arrIndusPInfo['indus_name'], '子行业' => $arrIndusInfo['indus_name']); list($strPageTitle, $strPageKeyword, $strPageDescription) = keke_seo_class::getListSEO($pd, $i, $data, 'seller', true); $floatCashLists = kekezu::get_table_data(' uid,sum(fina_cash) as threeCash', 'witkey_finance', "(fina_action='sale_service' or fina_action='task_bid') and DATE_SUB(CURDATE(),INTERVAL 90 day) <= date(from_unixtime(fina_time))", '', 'uid', '', 'uid'); function thisurl($keys = '') { $pars = parse_url($_SERVER["QUERY_STRING"]); $pars = explode("&", $pars['path']); foreach ($pars as $ps) { $uri = explode("=", $ps); $url .= !strstr($keys, $uri[0]) ? "&" . $ps : ''; } return $_SERVER['PHP_SELF'] . '?' . trim($url, "&"); } $arrFeedPubs = kekezu::get_feed("(feedtype='pub_task' or feedtype='pub_service')", "feed_time desc", 8);
<div class="user-type"> <div class="type-heading"> <h3 class="type-title">最近动态</h3> </div> <div class="type-body1"> <ul class="count"> <?php if (is_array($arr)) { foreach ($arr as $key => $val) { ?> <li class="item1"><span class="desc"><?php echo $val['dongtai']; ?> </span><div class="time"><?php echo CommonClass::getStatus($val['time']); ?> </div></li> <?php } } ?> </ul> </div> </div> <!-- user-type end --> </div> <!-- row end --> <div class="horizontal-row">
$arrUpdateParts['old_unite_price'] = $arrServiceInfo['unite_price']; } if (!intval($pk['service_id'])) { $arrData['profit_rate'] = $arrGoodsConfig['service_profit']; $arrData['on_time'] = time(); $arrData['service_status'] = 2; $objServiceT = new keke_table_class('witkey_service'); $objServiceT->save($arrData); unset($objServiceT); } else { if ($arrServiceInfo['service_status'] == '1') { $objServiceT = new keke_table_class('witkey_service'); $objServiceT->save($arrData, $pk); } else { if (!empty($arrUpdateParts)) { CommonClass::createEditLog($pk['service_id'], $arrServiceInfo['model_id'], serialize($arrUpdateParts)); keke_shop_release_class::updateEditStatusBySid($pk['service_id'], 1); } else { kekezu::show_msg($strServiceName . '信息没有更改', $strJumpUrl, NULL, NULL, 'ok'); } } } if ($objId && $intTaskId) { $strBidSql = ' UPDATE `' . TABLEPRE . 'witkey_task_bid` SET `hasdel`=1 WHERE (`bid_id` =' . $objId . ') and task_id = ' . $intTaskId; $strWorkSql = ' UPDATE `' . TABLEPRE . 'witkey_task_work` SET `hasdel`=1 WHERE (`work_id`=' . $objId . ') and task_id = ' . $intTaskId; db_factory::execute($strBidSql); db_factory::execute($strWorkSql); } kekezu::show_msg('操作成功', $strJumpUrl, NULL, NULL, 'ok'); } function updateFilepath($serviceId, $filepath, $type)
<?php defined('ADMIN_KEKE') or exit('Access Denied'); kekezu::admin_check_role(34); $config_basic_obj = new Keke_witkey_basic_config_class(); $config_basic_arr = $config_basic_obj->query_keke_witkey_basic_config(); $lang_arr = keke_lang_class::lang_type(); foreach ($config_basic_arr as $k => $v) { $config_arr[$v['k']] = $v['v']; } $picLists = CommonClass::getFileListsBySavename($config_arr['web_logo']); $web_logo_info = $picLists[0]; isset($op) and $url = "index.php?do=config&view=basic&op={$op}" or $url = "index.php?do=config&view=basic&op=info"; $log_nav_arr = array("info" => $_lang['global_config'], "conf" => $_lang['basic_config'], "seo" => $_lang['seo_config']); $smsInterface = db_factory::get_one('select v from ' . TABLEPRE . 'witkey_basic_config where k="sms_interface"'); $basic_config = $kekezu->_sys_config; if (DBTYPE == 'mysql') { $mysql_ver = mysql_get_server_info(); } else { $db = db_factory::init(); $mysql_ver = mysqli_get_server_info($db->_mydb->_link); } $pars = array('ac' => 'run', 'sitename' => urlencode($basic_config['website_name']), 'siteurl' => htmlentities($basic_config['website_url']), 'charset' => $_K['charset'], 'version' => KEKE_VERSION, 'release' => KEKE_RELEASE, 'os' => PHP_OS, 'php' => $_SERVER['SERVER_SOFTWARE'], 'mysql' => $mysql_ver, 'browser' => urlencode($_SERVER['HTTP_USER_AGENT']), 'username' => urlencode($_SESSION['username']), 'email' => $basic_config['email'] ? $basic_config['email'] : 'noemail', 'p_name' => P_NAME); $data = http_build_query($pars); $lic = $_K['ci']; $str_lic = kekezu::set_star($lic, 5, 5, '3', '*'); $verify = md5($data . $lic); $notice = "http://www.kekezu.com/update.php?" . $data . "&lic=" . urlencode($lic) . "&verify=" . $verify; $sys = array("ac" => "sysinfo", 'charset' => $_K['charset'], 'p_name' => P_NAME); $sysinfo = "http://www.kekezu.com/news.php?" . http_build_query($sys); if ($op == 'smsinterface') {
<?php $regionCfg = keke_glob_class::getRegionConfig(); $arrDistrictInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_task where task_id=" . intval($id)); $province = CommonClass::getDistrictById($arrDistrictInfo['province']); $city = CommonClass::getDistrictById($arrDistrictInfo['city']); $area = CommonClass::getDistrictById($arrDistrictInfo['area']); $page and $page = intval($page); $page = intval($page) ? $page : 1; $pagesize = intval($pagesize) ? $pagesize : 10; $objTask = preward_task_class::get_instance($arrTaskInfo); $arrTaskInfo = $objTask->_task_info; $objTask->plus_view_num(); $intFollow = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and fuid = %d', TABLEPRE . 'witkey_free_follow', intval($gUid), intval($arrTaskInfo['uid']))); $intFavorite = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and obj_id = %d and keep_type = "task"', TABLEPRE . 'witkey_favorite', intval($gUid), intval($arrTaskInfo['task_id']))); if ($arrTaskInfo['task_pic']) { $arrTaskPics = explode(',', $arrTaskInfo['task_pic']); } $arrProcess_can = $objTask->process_can(); $arrTaskFiles = $objTask->get_task_file(); $arrPayitemShow = $objTask->getPayitemShow(); $arrWorkStatus = $objTask->get_work_status(); if (strtoupper(CHARSET) == 'GBK') { $arrWorkStatus = kekezu::gbktoutf($arrWorkStatus); } $jsonWorkStatus = json_encode($arrWorkStatus); $Exitworker = db_factory::get_one("select * from " . TABLEPRE . "witkey_task_work where task_id = " . $arrTaskInfo['task_id'] . " and uid=" . $gUid); $arrProjectProgress = $objTask->getProjectProgressDesc(); $objTime = new preward_time_class(); $objTime->validtaskstatus(); $intBidCount = $objTask->get_work_count("work_status=6");
$arrAgreeInfo = $objAgreement->_agree_info; $arrProcessCan = $objAgreement->process_can(); $intUserType = $objAgreement->_user_role; $step = $objAgreement->stage_access_check($intUserType); $stage_nav = $objAgreement->agreement_stage_nav(); $strUrl = 'index.php?do=' . $do . '&agreeId=' . $agreeId . '&step=' . $step; $reportUrl = 'index.php?do=taskhandle&op=report&taskId=' . $arrAgreeInfo['task_id']; if ($gUid == $arrAgreeInfo['buyer_uid']) { $reportUrl .= '&objId=' . $arrAgreeInfo['work_id'] . '&objType=work&type=1&toUid=' . $arrAgreeInfo['seller_uid'] . '&toUsername='******'&objId=' . $arrAgreeInfo['task_id'] . '&objType=task&type=1&toUid=' . $arrAgreeInfo['buyer_uid'] . '&toUsername='******'seller_uid']); $arrWitkeyInfo['comefrom'] = keke_shop_class::getUserAddress($arrAgreeInfo['seller_uid'], 1, 1, 1, 0); $arrWitkeyLevel = unserialize($arrWitkeyInfo['seller_level']); $nearlyIncome = CommonClass::getNearlyIncomeForDays($arrWitkeyInfo['uid']); $arrEmploymerInfo = kekezu::get_user_info($arrAgreeInfo['buyer_uid']); $arrEmploymerInfo['comefrom'] = keke_shop_class::getUserAddress($arrAgreeInfo['buyer_uid'], 1, 1, 1, 0); $arrEmploymerLevel = unserialize($arrEmploymerInfo['buyer_level']); $arrTaskInfo = db_factory::get_one(sprintf("select * from %switkey_task where task_id = '%d'", TABLEPRE, $arrAgreeInfo['task_id'])); $taskStatus = $arrTaskInfo['task_status']; $config = unserialize($model_list[1]['config']); $jf_end_time = date('Y-m-d', $config['agree_complete_time'] * 24 * 3600 + $arrAgreeInfo['on_time']); $check_right_arr = db_factory::get_one(sprintf("select report_id,username,report_type from %switkey_report where report_status in(1,2) and origin_id ='%d'", TABLEPRE, $arrAgreeInfo['task_id'])); if ($taskStatus == 11 || $taskStatus == 13 || $taskStatus == 9) { header("location:index.php?do=task&id=" . $arrAgreeInfo['task_id']); die; } $arrAgreementProgress = array(1 => array('num' => 1, 'step' => 'step1', 'state' => '同意协议'), 2 => array('num' => 2, 'step' => 'step2', 'state' => '上传源文件'), 3 => array('num' => 3, 'step' => 'step3', 'state' => '确认源文件'), 4 => array('num' => 4, 'step' => 'step4', 'state' => '双方互评')); switch ($step) { case "step1":
function display_wpmlm_member_profile_search_page() { /*List of members*/ $objCommonClass = new CommonClass(); $sql = "SELECT \n\t\t\tid, user_id, user_key, parent_key, sponsor_key, leg, \n\t\t\tpayment_status, create_date, paid_date \n\t\tFROM \n\t\t\t" . WPMLM_TABLE_USER . " \n\t\tORDER BY id ASC"; $rs = mysql_query($sql); $listArr = array(); if ($rs && mysql_num_rows($rs) > 0) { $i = 0; while ($row = mysql_fetch_array($rs)) { $userInfoArr = $objCommonClass->GetUserInfoById($row['user_id']); $sponsorArr = $objCommonClass->getSponsorName($row['sponsor_key']); $listArr[$i]['username'] = $userInfoArr['userlogin']; $listArr[$i]['userid'] = $row['user_id']; $listArr[$i]['userid_base64'] = base64_encode($row['user_id']); $listArr[$i]['userKey'] = $userInfoArr['userKey']; $listArr[$i]['name'] = $userInfoArr['name']; $listArr[$i]['referrer'] = $userInfoArr['referrer']; $listArr[$i]['sponsorname'] = $sponsorArr; $listArr[$i]['creationDate'] = $userInfoArr['creationDate']; $listArr[$i]['payment_status'] = $userInfoArr['payment_status']; $i++; } } ?> <div class='wrap'> <div id="icon-options-general" class="icon32"></div><h2>Search the Member </h2> <br /> <div class="notibar msginfo"> <a class="close"></a> <p>Use this screen to search the member in the network.</p> </div> <table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="dyntable2"> <colgroup> <col class="con0" style="width: 10%" /> <col class="con1" style="width: 20%" /> <col class="con0" /> <col class="con1" /> <col class="con0" /> <col class="con1" /> </colgroup> <thead> <tr> <th class="head0">User Name</th> <th class="head0">Name </th> <th class="head1">Member Key</th> <th class="head0">Sponsor Name</th> <th class="head1">Sponsor</th> <th class="head1">Status</th> <th class="head0 nosort">View</th> </tr> </thead> <tfoot> <tr> <th class="head0">User Name</th> <th class="head0">Name </th> <th class="head1">Member Key</th> <th class="head0">Sponsor Name</th> <th class="head1">Sponsor</th> <th class="head1">Status</th> <th class="head0 nosort">View</th> </tr> </tfoot> <tbody> <?php foreach ($listArr as $element) { ?> <tr class="gradeX"> <td><?php echo $element['username']; ?> </td> <td><?php echo $element['name']; ?> </td> <td><?php echo $element['userKey']; ?> </td> <td><?php echo $element['sponsorname']; ?> </td> <td><?php echo $element['referrer']; ?> </td> <td class="center"><?php echo $element['payment_status']; ?> </td> <td class="center"><a href="?page=wpmlm-member-profile&tab=dashboard&uid=<?php echo $element['userid_base64']; ?> "><img src="<?php echo WPMLM_ADMIN_IMG_URL; ?> /view.png" alt="View Details" title="View Details" /> </a></td> </tr> <?php } ?> </tbody> </table> </div> <?php }
$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) { $isReturn = 2; } 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=pubtask'; require S_ROOT . "/task/" . $arrModelInfo['model_dir'] . "/control/pub.php";