Exemplo n.º 1
0
         if ($_POST['province'] == 'p') {
             $tips['errors']['province'] = '请选择省份';
             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);