<?php defined('IN_KEKE') or exit('Access Denied'); $objMsgT = keke_table_class::get_instance('witkey_msg'); $strUrl = 'index.php?do=user&view=message&op=trends'; $intPage and $strUrl .= '&intPage=' . $intPage; $intPagesize and $strUrl .= '&intPagesize=' . $intPagesize; $s and $strUrl .= '&s=' . intval($s); $arrStatus = MsgClass::getMsgReadStatus(); $searchStatus = MsgClass::getMsgSearchStatus(); if (isset($action)) { switch ($action) { case 'mulitDel': if ($ckb) { $objMsgT->del('msg_id', $ckb); kekezu::show_msg('删除成功', $strUrl, NULL, NULL, 'ok'); } else { kekezu::show_msg('删除失败', NULL, NULL, NULL, 'error'); } break; case 'delSingle': if ($objId) { $objMsgT->del('msg_id', $objId); kekezu::show_msg('删除成功', $strUrl, NULL, NULL, 'ok'); } else { kekezu::show_msg('删除失败', NULL, NULL, NULL, 'error'); } break; case 'mulitView': if ($ckb) { if (is_array($ckb)) {
kekezu::show_msg('推荐操作成功', 'index.php?do=task&id=' . $taskId, NULL, NULL, 'ok'); } kekezu::show_msg('推荐操作失败,请勿重复操作', NULL, NULL, NULL, 'fail'); break; case "workComment": if ($strTarComment) { $strTarComment = kekezu::str_filter(kekezu::escape($strTarComment)); if (strtoupper(CHARSET) == 'GBK') { $strTarComment = kekezu::utftogbk($strTarComment); } if ($kekezu->_sys_config['ban_content'] && kekezu::k_match(array($kekezu->_sys_config['ban_content']), $strTarComment)) { $tips['errors']['strTarComment'] = $_lang['sensitive_word']; kekezu::show_msg($tips, NULL, NULL, NULL, 'error'); } $strContent = $arrTaskInfo['username'] . '点评了您在<a href=index.php?do=task&id=' . $taskId . '>' . $arrTaskInfo[task_title] . '</a>中投递的报价,<a href=index.php?do=task&id=' . $taskId . '>快去看看吧</a>'; MsgClass::SendFeedMsg($wkuid, "您有新的报价点评", $strContent); if ($objTask->set_work_comment('work', $intWorkId, $strTarComment)) { $date = date('Y-m-d', time()); $time = date('H:i:s', time()); kekezu::show_msg(array('d' => $date, 't' => $time), NULL, NULL, NULL, 'ok'); } kekezu::show_msg('提交失败', NULL, NULL, NULL, 'fail'); } break; //205-07-25 添加 /*case "taskBidFile": if (strtoupper ( CHARSET ) == 'GBK') { $_POST = kekezu::utftogbk($_POST ); } $arrBidInfo = $objTask->get_bid_info (); $resText = $objTask->set_task_bid_file ( $_POST, $arrBidInfo['bid_id'] );