Esempio n. 1
0
             $_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);
         PayitemClass::validPayitemCosts($hdn_total_costs);
         $arrPubInfo['payitem'] = $arrPayitems;
         $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST);
         $objRelease->save_service_obj($_POST, $stdCacheName);
         $intSid = $objRelease->pub_service();
         $objRelease->update_service_info($intSid, $stdCacheName);
         kekezu::show_msg($tips, $strUrl . '&step=step3&serviceId=' . $intSid, NULL, NULL, 'ok');
     } else {
         !$_SESSION[$stdCacheName] and kekezu::show_msg($_lang['friendly_notice'], "index.php?do=pubgoods&id={$id}", 2, "该商品已提交,不可再返回修改!", "warning");
         $objRelease->check_access($step, $id, $arrPubInfo);
         $strTarComment = kekezu::cutstr(htmlspecialchars_decode($arrPubInfo['tar_content']), 1000);
         $strCommentLen = strlen($strTarComment);
         if ($strCommentLen > 500) {
             $strPartComment = kekezu::cutstr($strTarComment, 500);
         }
     }