} } $arrServiceInfo['indus_pid'] and $arrAllIndustrys = CommonClass::getIndustryByPid($arrServiceInfo['indus_pid'], 'indus_id,indus_pid,indus_name'); $intModelId = 6; if ($arrServiceInfo['model_id']) { $intModelId = $arrServiceInfo['model_id']; } $strServiceName = '作品'; if ($intModelId == '7') { $strServiceName = '服务'; } $objRelease = goods_release_class::get_instance($intModelId); $arrPriceUnit = $objRelease->get_price_unit(); $arrServiceUnit = $objRelease->get_service_unit(); $arrImageLists = CommonClass::getFileArrayByPath(',', $arrServiceInfo['pic']); $arrFileLists = CommonClass::getFileArrayByPath(',', $arrServiceInfo['file_path']); if ($action == 'delete_image') { $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(',', $arrServiceInfo['pic']); $newArr = CommonClass::returnNewArr($arrFileInfo['save_name'], $array); $_POST['file_ids'] = implode(",", $newArr); updateFilepath($arrServiceInfo['service_id'], $_POST['file_ids'], 'pic'); kekezu::echojson('删除成功', 1, array('fileid' => $fileid, 'save_name' => $arrFileInfo['save_name'])); die; } } if ($action == 'delete_goodsfile') {
} $content = kekezu::escape($tar_content); if (empty($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['fileid1']); $arrFileLists = CommonClass::getFileArrayByPath(',', $arrPubInfo['file_path_2']); if ($action == 'delete_image') { $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_ids']); $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; } }
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();
$tips['errors']['tar_content'] = '内容不能为空!'; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } if (!htmlspecialchars($_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['fileid1']); if ($action == 'delete_image') { $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_ids']); $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; } }
} } $_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']); $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;