$strNavActive = 'goodslist'; $i = intval($i); $pd = intval($pd); $strUrl = "index.php?do=goodslist"; $m and $strUrl .= "&m=" . intval($m); $intPage and $strUrl .= "&intPage=" . intval($intPage); $i and $strUrl .= "&i=" . intval($i); $pd and $strUrl .= "&pd=" . intval($pd); $o and $strUrl .= "&o=" . strval($o); $p and $strUrl .= "&p=" . intval($p); $ky and $strUrl .= "&ky=" . $ky; $arrCashCoves = TaskClass::getTaskCashCove(); $pd and $arrIndusPInfo = kekezu::get_indus_info($pd); $i and $arrIndusInfo = kekezu::get_indus_info($i); $arrCityInfo = CommonClass::getDistrictById($p); $arrDisplaypro = CommonClass::getDistrictByPid('0', 'id,upid,name'); $arrItemConfig = PayitemClass::getPayitemConfig(null, null, null, 'item_id'); $arrIndusP = $kekezu->_indus_goods_arr; $arrIndusC = $kekezu->get_classify_indus('shop', 'child'); if (is_array($arrIndusC)) { $arrNewIndusC = array(); foreach ($arrIndusC as $k => $v) { $arrNewIndusC[$v['indus_pid']][] = $v; } } if (isset($ky)) { $ky = htmlspecialchars($ky); $ky = kekezu::escape($ky); $arrHwStatus = db_factory::query("select v from " . TABLEPRE . "witkey_basic_config where k='hot_words_status'"); $arrUpdateStatus = db_factory::query("select v from " . TABLEPRE . "witkey_basic_config where k='update_status'"); $arrSearch = db_factory::query("select * from " . TABLEPRE . "witkey_hotwords where words = '{$ky}'");
<?php $stdCacheName = 'task_cache_' . $id . '_' . substr(md5($gUid), 0, 6); $objRelease = match_release_class::get_instance($id, $pub_mode); $arrConfig = $objRelease->_task_config; $objRelease->get_task_obj($stdCacheName); $regionCfg = keke_glob_class::getRegionConfig(); $objRelease->pub_mode_init($stdCacheName, $init_info); $arrPubInfo = $objRelease->_std_obj->_release_info; $arrPubInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrPubInfo['indus_pid'], 'indus_id,indus_pid,indus_name'); $userInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_space where uid=" . intval($gUid)); $arrCashCove = $objRelease->_cash_cove; $arrPubInfo['province'] and $arrCities = CommonClass::getDistrictByPid($arrPubInfo['province'], 'id,upid,name'); $arrPubInfo['city'] and $arrAreas = CommonClass::getDistrictByPid($arrPubInfo['city'], 'id,upid,name'); switch ($step) { case 'step1': $intTaskCove = intval($task_cash_cove); $intMinDay = time() + $arrConfig['min_day'] * 3600 * 24; $strMinDate = date('Y-m-d', $intMinDay); $intMaxDay = time() + 24 * 3600 * $arrConfig['max_day']; $strMaxDay = date('Y-m-d', $intMaxDay); $strDate = $arrPubInfo['txt_task_day'] ? $arrPubInfo['txt_task_day'] : $strMaxDay; $intCover = $arrPubInfo['task_cash_cove'] ? $arrPubInfo['task_cash_cove'] : 0; if (isset($formhash) && kekezu::submitcheck($formhash)) { $strEndDate = strval(trim($txt_task_day)); $intTime = date('H', time()) * 3600 + date('i', time()) * 60 + date('s', time()); $intEndDate = strtotime($strEndDate) + $intTime; $strText = $objRelease->check_pub_priv('', 'json'); if ($strText !== true) { kekezu::show_msg($strText, NULL, NULL, NULL, 'fail'); }
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; }
<?php defined('IN_KEKE') or exit('Access Denied'); $intUserRole = intval($gUserInfo['user_type']); if ($intUserRole === 2) { $strAccountName = '企业机构名称'; $strInputName = 'company'; } else { $strAccountName = '真实姓名'; $strInputName = 'real_name'; } $strUrl = 'index.php?do=user&view=account&op=addbankinfo'; $objMemBankT = keke_table_class::get_instance("witkey_member_bank"); $arrBankList = keke_glob_class::get_bank(); $arrProvinces = CommonClass::getDistrictByPid('0', 'id,upid,name'); $strBankZone = $_SESSION['bank_zone']; $strBankDetail = $_SESSION['bank_zone_detail']; switch ($step) { case "step1": if (isset($formhash) && kekezu::submitcheck($formhash)) { $strTxtName = strval(trim($txt_name)); $strBankName = strval(trim($bank_name)); $strBankFullName = strval(trim($bank_full_name)); $strCardNum = strval(trim($card_num)); if (!$strTxtName) { $tips['errors']['txt_name'] = '请输入' . $strAccountName; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } if ($province === '选择省份' || !$province) { $tips['errors']['province'] = '请选择省份'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
defined('IN_KEKE') or exit('Access Denied'); $strUrl = 'index.php?do=user&view=account&op=basic'; $arrTopIndustrys = $indus_p_arr; $arrAllIndustrys = $indus_arr; $objSpaceT = keke_table_class::get_instance('witkey_space'); $intUserRole = intval($gUserInfo['user_type']); $arrMemberExts = kekezu::get_table_data("*", "witkey_member_ext", " type='sect' and uid= " . $gUid, "", "", "", "k"); $boolEmailAuth = keke_auth_fac_class::auth_check('email', $gUid); $boolMobileAuth = keke_auth_fac_class::auth_check('mobile', $gUid); $arrProvinces = CommonClass::getDistrictByPid('0', 'id,upid,name'); if ($gUserInfo['province']) { $arrCity = CommonClass::getDistrictByPid($gUserInfo['province'], 'id,upid,name'); } if ($gUserInfo['city']) { $arrArea = CommonClass::getDistrictByPid($gUserInfo['city'], 'id,upid,name'); } if ($intUserRole === 2) { $intAuthStatus = keke_auth_fac_class::auth_check('enterprise', $gUid); $arrEnterPriseInfo = db_factory::get_one(sprintf("select * from %switkey_auth_enterprise where uid='%d'", TABLEPRE, $gUid)); if (isset($formhash) && kekezu::submitcheck($formhash)) { if ($gUserInfo['uid'] != $pk['uid']) { kekezu::show_msg('无权操作', NULL, NULL, NULL, 'error'); return false; } if (strtoupper(CHARSET) == 'GBK') { $company = kekezu::utftogbk($company); $legal = kekezu::utftogbk($legal); $address = kekezu::utftogbk($address); $summary = kekezu::utftogbk($summary); }
<?php if (intval($id)) { $arrZones = CommonClass::getDistrictByPid($id, 'id,upid,name'); if ($arrZones) { foreach ($arrZones as $k => $v) { $html .= '<option value=' . $v['id'] . '>' . $v['name'] . '</option>'; } } else { $html .= '<option value="">没有了</option>'; } } else { $id = strval($id); if ($id == 'p') { $html .= '<option value="c">选择城市</option>'; } elseif ($id == 'c') { $html .= '<option value="a">选择区域</option>'; } } echo $html; die;