<?php $strUrl = 'index.php?do=user&view=shop&op=caseadd'; $shopInfo = db_factory::get_one(sprintf(" select * from %switkey_shop where uid='%d' ", TABLEPRE, $gUid)); keke_shop_release_class::checkShopStatus($uid, 'index.php?do=user&view=shop&op=setting'); $objCaseT = keke_table_class::get_instance('witkey_shop_case'); if ($objId) { $caseInfo = db_factory::get_one(sprintf(" select * from %switkey_shop_case where case_id='%d' ", TABLEPRE, intval($objId))); } if (isset($formhash) && kekezu::submitcheck($formhash)) { if (strtoupper(CHARSET) == 'GBK') { $case_name = kekezu::utftogbk($case_name); $case_desc = kekezu::utftogbk($case_desc); } $arrData = array('shop_id' => $shopInfo['shop_id'], 'case_name' => $case_name, 'case_url' => $case_url, 'case_pic' => $case_pic, 'case_desc' => $case_desc, 'on_time' => time()); if ($objId) { $intRes = $objCaseT->save($arrData, array('case_id' => intval($objId))); } else { $intRes = $objCaseT->save($arrData); } unset($objCaseT); kekezu::show_msg('已保存', 'index.php?do=user&view=shop&op=caselist', NULL, NULL, 'ok'); }
<?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)); keke_shop_release_class::checkShopStatus($uid); 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;