本文整理汇总了PHP中kekezu::notify_user方法的典型用法代码示例。如果您正苦于以下问题:PHP kekezu::notify_user方法的具体用法?PHP kekezu::notify_user怎么用?PHP kekezu::notify_user使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类kekezu
的用法示例。
在下文中一共展示了kekezu::notify_user方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: cancel_work
public function cancel_work($work_id, $type)
{
keke_lang_class::load_lang_class('preward_report_class');
global $_K, $kekezu;
global $_lang;
global $admin_info;
$this->_task_info['task_status'] == 8 and kekezu::admin_show_msg('操作提示', "index.php?do=trans&view=report&type={$type}", "3", "当前任务不能取消中标", "warning");
$work_info = $this->_task_obj->get_task_work($work_id);
$work_info['work_status'] != 6 and kekezu::admin_show_msg('操作提示', "index.php?do=trans&view=report&type={$type}", "3", "当前稿件未中标,不能取消中标状态", "warning");
if ($this->_task_obj->set_work_status($work_id, 8)) {
$cash = floatval($this->_task_info['single_cash']) * (1 - floatval($this->_task_info['profit_rate'] / 100));
$data = array(':model_name' => $this->_task_obj->_model_name, ':task_id' => $this->_task_obj->_task_id, ':task_title' => $this->_task_obj->_task_title);
keke_finance_class::init_mem('cancel_bid', $data);
$cash > 0 and keke_finance_class::cash_out($work_info['uid'], $cash, 'cancel_bid');
$task_id = $this->_task_obj->_task_id;
$task_title = $this->_task_obj->_task_title;
$task_url = "<a href=\"{$_K[siteurl]}/index.php?do=task&id={$task_id}\">{$task_title}</a>";
kekezu::notify_user($_lang['cancel_bid_notice'], $_lang['you_in_task'] . $task_url . $_lang['de_hand_work_jh'] . $work_id . $_lang['by_site_kf_cancel_bid'], $work_info['uid']);
}
db_factory::execute(sprintf(" update %switkey_space set accepted_num = accepted_num-1 where uid = '%d'", TABLEPRE, $this->_obj_info['obj_uid']));
}
示例2: intval
$ord['0'] and $wh .= " order by {$ord['0']} {$ord['1']}" or $wh .= " order by comment_id desc";
$url_str = "index.php?do=task&view=custom&w[comment_id]={$w['comment_id']}&w[username]={$w['username']}&ord[0]={$ord['0']}&ord[1]={$ord['1']}";
$page = $page ? intval($page) : 1;
$page_size = $slt_page_size ? intval($slt_page_size) : 10;
$table_info = $table_obj->get_grid($wh, $url_str, $page, $page_size, null, 1, 'ajax_dom');
$comment_arr = $table_info['data'];
$pages = $table_info['pages'];
if ($ac == 'del') {
$res = $table_obj->del('comment_id', $comment_id, $url_str);
$res and kekezu::admin_show_msg($_lang['delete_success'], "index.php?do={$do}&view={$view}", 3, '', 'success') or kekezu::admin_show_msg($_lang['delete_faile'], "index.php?do={$do}&view={$view}", 3, '', 'warning');
}
if ($sbt_action) {
$res = $table_obj->del('comment_id', $ckb, $url_str);
$res and kekezu::admin_show_msg($_lang['mulit_operate_success'], "index.php?do={$do}&view={$view}", 3, '', 'success') or kekezu::admin_show_msg($_lang['mulit_operate_fail'], "index.php?do={$do}&view={$view}", 3, '', 'warning');
}
if ($by) {
$t_userinfo = kekezu::get_user_info($to_uid);
$to_username = $t_userinfo['username'];
if (CHARSET == 'gbk') {
$fds = kekezu::utftogbk($fds);
}
if ($ac) {
kekezu::notify_user($fds['msg_title'], $fds['msg_content'], $to_uid, $to_username);
$str = $_lang['reply_success'];
echo $str;
die;
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_task_' . $view . '_reply');
exit;
}
require $template_obj->template(ADMIN_DIRECTORY . '/tpl/admin_task_' . $view);