当前位置: 首页>>代码示例>>PHP>>正文


PHP kekezu::show_msg方法代码示例

本文整理汇总了PHP中kekezu::show_msg方法的典型用法代码示例。如果您正苦于以下问题:PHP kekezu::show_msg方法的具体用法?PHP kekezu::show_msg怎么用?PHP kekezu::show_msg使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在kekezu的用法示例。


在下文中一共展示了kekezu::show_msg方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: pub_mode_init

 function pub_mode_init($std_cache_name, $data = array())
 {
     global $kekezu;
     global $_lang;
     $release_info = $this->_std_obj->_release_info;
     switch ($this->_pub_mode) {
         case "professional":
             break;
         case "guide":
             break;
         case "onekey":
             if (!$release_info) {
                 $sql = " select model_id,task_title,task_desc,indus_id,indus_pid,\n\t\t\t\t\t\ttask_cash_coverage,start_time,end_time,contact from %switkey_task where task_id='%d' and model_id='%d'";
                 $task_info = db_factory::get_one(sprintf($sql, TABLEPRE, $data['t_id'], $this->_model_id));
                 $task_info or kekezu::show_msg($_lang['operate_notice'], $_SERVER['HTTP_REFERER'], 3, $_lang['not_exsist_relation_task_and_not_user_onekey'], "warning");
                 $release_info = $this->onekey_mode_format($task_info);
                 $allow_time = $task_info['end_time'] - $task_info['start_time'];
                 $task_day = date('Y-m-d', $allow_time + time());
                 $release_info['txt_task_day'] = $task_day;
                 $release_info['task_cash_cove'] = $task_info['task_cash_coverage'];
                 $this->save_task_obj($release_info, $std_cache_name);
             }
             break;
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:25,代码来源:tender_release_class.php

示例2: pub_mode_init

 function pub_mode_init($std_cache_name, $data = array())
 {
     global $kekezu;
     global $_lang;
     $release_info = $this->_std_obj->_release_info;
     switch ($this->_pub_mode) {
         case "professional":
             break;
         case "guide":
             break;
         case "onekey":
             if (!$release_info) {
                 $sql = " select model_id,task_title,task_desc,indus_id,indus_pid,\n\t\t\t\t\t\ttask_cash,contact from %switkey_task where task_id='%d' and model_id='%d'";
                 $task_info = db_factory::get_one(sprintf($sql, TABLEPRE, $data['t_id'], $this->_model_id));
                 $task_info or kekezu::show_msg($_lang['operate_notice'], $_SERVER['HTTP_REFERER'], 3, $_lang['not_exsist_relation_task_and_not_user_onekey'], "warning");
                 $release_info = $this->onekey_mode_format($task_info);
                 $allow_time = $kekezu->get_show_day($task_info['task_cash'], $this->_model_id);
                 $task_day = date('Y-m-d', $allow_time * 24 * 3600 + time());
                 $release_info['txt_task_day'] = $task_day;
                 $release_info['txt_task_cash'] = intval($task_info['task_cash']);
                 $prize_info = db_factory::query(sprintf("select * from %switkey_task_prize where task_id='%d'", TABLEPRE, $data['t_id']));
                 foreach ($prize_info as $v) {
                     $release_info['txt_prize' . $v['prize'] . '_num'] = $v['prize_count'];
                     $release_info['txt_prize' . $v['prize'] . '_cash'] = intval($v['prize_cash']);
                 }
                 $this->save_task_obj($release_info, $std_cache_name);
             }
             break;
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:30,代码来源:mreward_release_class.php

示例3: add_auth

 public function add_auth($email, $file_name = '')
 {
     global $_K, $user_info, $_lang;
     $data['email'] = $email;
     $data = $this->format_auth_apply($data);
     $data['email'] or kekezu::show_msg($this->auth_lang() . $_lang['apply_submit_fail'], $_SERVER['HTTP_REFERER'], 3, $this->auth_lang() . $_lang['apply_fail_and_info_fail'], 'warning');
     $data['auth_time'] = time();
     $arrAuthInfo = $this->get_user_auth_info($user_info[uid]);
     if ($arrAuthInfo) {
         $success = $this->_tab_obj->save($data, array($this->_primary_key => $arrAuthInfo[$this->_primary_key]));
         $success and $success = $arrAuthInfo[$this->_primary_key];
         $this->set_auth_record_status($user_info['uid'], '0');
     } else {
         $success = $this->_tab_obj->save($data);
     }
     if ($success) {
         if ($this->send_mail($success, $data)) {
             $data['start_time'] == $data['end_time'] and $end_time = $data['end_time'] or $end_time = 0;
             db_factory::execute(" update " . TABLEPRE . "witkey_space set email = '{$data['email']}' where uid = '{$data['uid']}'");
             db_factory::execute(" update " . TABLEPRE . "witkey_member set email = '{$data['email']}' where uid = '{$data['uid']}'");
             return $this->add_auth_record($data['uid'], $data['username'], $this->_auth_code, $end_time);
         }
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:24,代码来源:keke_auth_email_class.php

示例4: intval

<?php

$strUrl = 'index.php?do=user&view=shop&op=caseadd';
$shopInfo = db_factory::get_one(sprintf(" select * from %switkey_shop where uid='%d' ", TABLEPRE, $gUid));
keke_shop_release_class::checkShopStatus($uid, 'index.php?do=user&view=shop&op=setting');
$objCaseT = keke_table_class::get_instance('witkey_shop_case');
if ($objId) {
    $caseInfo = db_factory::get_one(sprintf(" select * from %switkey_shop_case where case_id='%d' ", TABLEPRE, intval($objId)));
}
if (isset($formhash) && kekezu::submitcheck($formhash)) {
    if (strtoupper(CHARSET) == 'GBK') {
        $case_name = kekezu::utftogbk($case_name);
        $case_desc = kekezu::utftogbk($case_desc);
    }
    $arrData = array('shop_id' => $shopInfo['shop_id'], 'case_name' => $case_name, 'case_url' => $case_url, 'case_pic' => $case_pic, 'case_desc' => $case_desc, 'on_time' => time());
    if ($objId) {
        $intRes = $objCaseT->save($arrData, array('case_id' => intval($objId)));
    } else {
        $intRes = $objCaseT->save($arrData);
    }
    unset($objCaseT);
    kekezu::show_msg('已保存', 'index.php?do=user&view=shop&op=caselist', NULL, NULL, 'ok');
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:23,代码来源:shop_caseadd.php

示例5: payitem_cost

 public static function payitem_cost($item_code, $use_num = '1', $obj_type = false, $use_type = 'buy', $obj_id = null, $origin_id = null)
 {
     global $uid, $username;
     global $_lang;
     $payitem_config = self::get_payitem_config(null, null, $item_code, 'item_code');
     $use_cash = $payitem_config['item_cash'] * $use_num;
     if ($use_type == 'buy' && $use_cash) {
         $data = array(':item_name' => $payitem_config['item_name']);
         keke_finance_class::init_mem('payitem', $data);
         $use_cash > 0 and $fid_cash = keke_finance_class::cash_out($uid, $use_cash, 'payitem', $use_cash, '', 'payitem');
         $fid_cash or kekezu::show_msg($_lang['friendly_notice'], 'index.php?do=user&view=finance&op=recharge', 3, $_lang['your_balance_not_enough']);
     }
     $record_obj = new Keke_witkey_payitem_record_class();
     $record_obj->_record_id = null;
     $record_obj->setItem_code($item_code);
     $record_obj->setUid($uid);
     $record_obj->setUsername($username);
     $record_obj->setUse_type($use_type);
     $record_obj->setUse_cash($use_cash);
     $record_obj->setUse_num(intval($use_num));
     $record_obj->setObj_type($obj_type);
     $record_obj->setObj_id($obj_id);
     $record_obj->setOrigin_id($origin_id);
     $record_obj->setOn_time(time());
     $record_id = $record_obj->create_keke_witkey_payitem_record();
     return $record_id;
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:27,代码来源:keke_payitem_class.php

示例6: strval

$step = strval(trim($step));
$strRandKf = kekezu::get_rand_kf();
$is_task_template = db_factory::query("select * from " . TABLEPRE . "witkey_task_template");
$arrPubProcess = array(1 => array('step' => 'step1', 'desc' => '选择交易模式'), 2 => array('step' => 'step2', 'desc' => '描述任务需求'), 3 => array('step' => 'step3', 'desc' => '核对交易清单'), 4 => array('step' => 'step4', 'desc' => '成功发布任务'));
$arrPayitemLists = PayitemClass::getPayitemListForPub();
$arrPayitemPriceLists = PayitemClass::getPayitemPriceList();
$arrDistribution = array(1 => '单人中标', 2 => '多人中标', 3 => '', 4 => '单人中标', 5 => '单人中标', 12 => '单人中标');
$arrTopIndustrys = $kekezu->_indus_task_arr;
$arrModelLists = kekezu::get_table_data('*', 'witkey_model', " model_type = 'task' and model_status='1'", 'listorder asc ', '', '', 'model_id', 3600);
if (0 === $id) {
    $arrModelIds = array_keys($arrModelLists);
    $id = $arrModelIds['0'];
}
$arrModelInfo = $arrModelLists[$id];
if (empty($arrModelInfo)) {
    kekezu::show_msg('不存在该任务模型,请重新选择', 'index.php?do=pubtask', 3, null, 'warning');
}
$arrStep = array('step1', 'step2', 'step3', 'step4');
if (!in_array($step, $arrStep)) {
    $step = 'step1';
}
$strUrl = "index.php?do=pubtask&id=" . $id;
$arrOutFinance = db_factory::query(sprintf("select * from %switkey_finance where fina_type='out' and obj_id='%d' and uid='%d'", TABLEPRE, $taskId, $gUid));
if ($arrOutFinance) {
    $isReturn = 2;
}
if ($arrModelInfo['open_custom'] == '1') {
    $c_open = 1;
    $arrCustoms = CustomClass::getFieldListsByModelId($arrModelInfo['model_id']);
}
$arrProvinces = CommonClass::getDistrictByPid('0', 'id,upid,name');
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:pubtask.php

示例7: check_access

 public function check_access($r_step, $model_id, $release_info, $task_id = null, $output = 'normal')
 {
     global $_lang, $gUid, $uid;
     $model_id = intval($model_id);
     switch ($r_step) {
         case "step1":
             break;
         case "step2":
             $release_info['step1'] or kekezu::keke_show_msg("index.php?do=pubtask&id={$model_id}", $_lang['you_not_choose_task_model'], "error", $output);
             break;
         case "step3":
             if (!$release_info['step2'] && !$release_info['step1']) {
                 kekezu::keke_show_msg("index.php?do=pubtask&id={$model_id}", $_lang['you_not_choose_task_model_and_not_in'], "error", $output);
             } elseif (!$release_info['step2']) {
                 kekezu::keke_show_msg("index.php?do=pubtask&id={$model_id}&step=step2", $_lang['you_not_fill_requirement_and_not_in'], "error", $output);
             }
             break;
         case "step4":
             $sql = sprintf(" select * from %switkey_task where task_id = '%d' and model_id = '%d'", TABLEPRE, $task_id, $model_id);
             $task_info = db_factory::get_one($sql);
             if ($task_info['uid'] != $uid) {
                 kekezu::show_msg('无权访问该页面', "index.php?do=pubtask", '3', '你没有权限访问该页面', 'danger');
             }
             $task_info or kekezu::show_msg('无权访问该页面', "index.php?do=pubtask", '3', '你没有权限访问该页面', 'danger');
             return $task_info;
             break;
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:28,代码来源:keke_task_release_class.php

示例8: array_merge

            PayitemClass::validPayitemCount($arrPayitems, $arrPubInfo['txt_task_day']);
            $_POST['payitem'] = $arrPayitems;
            $arrPubInfo and $_POST = array_merge($arrPubInfo, $_POST);
            $objRelease->save_task_obj($_POST, $stdCacheName);
            $intTaskId = $objRelease->pub_task();
            $objRelease->save_task_match($intTaskId);
            $objRelease->update_task_info($intTaskId, $stdCacheName);
            kekezu::show_msg($tips, $strUrl . '&step=step4&taskId=' . $intTaskId, 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);
            $strTarComment = htmlspecialchars_decode($arrPubInfo['tar_content']);
            $strCommentLen = strlen($strTarComment);
            if ($strCommentLen > 1000) {
                $strPartComment = kekezu::cutstr($strTarComment, 1000);
            }
        }
        break;
    case 'step4':
        $taskId = intval($taskId);
        if (0 === $taskId) {
            kekezu::show_msg('无权访问', $strUrl, 3, NULL, 'warning');
        }
        $arrTaskInfo = $objRelease->check_access($step, $id, $arrPubInfo, $taskId);
        $arrPayInfo = $objRelease->checkWhetherToPay($taskId);
        $boolValue = $arrPayInfo['balance_pay'];
        $floatPayCash = $arrPayInfo['total_cash'];
        break;
}
require keke_tpl_class::template('pubtask');
die;
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:pub.php

示例9: implode

<?php

if (isset($formhash) && kekezu::submitcheck($formhash)) {
    if (strtoupper(CHARSET) == 'GBK') {
        $tar_content = kekezu::utftogbk($tar_content);
    }
    $tar_content = kekezu::escape($tar_content);
    $aid = implode(",", array_keys($star));
    $aid_star = implode(",", array_values($star));
    $res = keke_user_mark_class::exec_mark($markId, $tar_content, $mark_status, $aid, $aid_star);
    if ($markType == 'gz') {
        $strJumpUrl = 'index.php?do=user&view=gz&op=mark';
    } elseif ($markType == 'wk') {
        $strJumpUrl = 'index.php?do=user&view=wk&op=mark';
    }
    if ($res === true) {
        kekezu::show_msg('操作成功', $strJumpUrl, 3, NULL, 'ok');
    } else {
        kekezu::show_msg($res, $strJumpUrl, 3, NULL, 'fail');
    }
} else {
    $arrMark = keke_user_mark_class::get_mark_info(array('model_code' => $code, 'obj_id' => $objId, 'by_uid' => $uid, 'uid' => $to_uid));
    $markInfo = $arrMark['mark_info']['0'];
    $markInfo or kekezu::show_msg($_lang['operate_notice'], "", "", $_lang['mark_sya_busy_try_later'], "error");
    $aidList = keke_user_mark_class::get_mark_aid($roleType);
    $aidInfo = keke_user_mark_class::get_user_aid($markInfo['by_uid'], $markInfo['mark_type'], $markInfo['mark_status'], 2, $markInfo['model_code'], $objId);
}
require keke_tpl_class::template("tpl/default/ajax/mark");
die;
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:29,代码来源:mark.php

示例10: send_notice

 public function send_notice($type, $url = '', $output = 'normal')
 {
     global $_lang, $username;
     $work_info = $this->work_exists();
     $user_type = 1;
     switch ($type) {
         case "host":
             $notice = $_lang['notice_host_reward'];
             $user_type = 2;
             break;
         case "start":
             $notice = $_lang['notice_start_work'];
             $to_uid = $work_info['uid'];
             break;
         case "over":
             $notice = $_lang['notice_confirm_work'];
             $to_uid = $work_info['uid'];
             break;
         case "modify":
             $notice = $_lang['notice_modify_work'];
             $to_uid = $work_info['uid'];
             break;
         case "accept":
             $notice = $_lang['notice_acceptance_work'];
             $user_type = 2;
             break;
     }
     $notify = array($_lang['description'] => "【{$username}】" . $notice, $_lang['task_title'] => $this->_notice_url);
     $this->notify_user('match_task', $_lang['match_task_notice'], $notify, $user_type, $to_uid);
     kekezu::show_msg('发送成功', 'index.php?do=task&id=' . $this->_task_id, 3, NULL, 'ok');
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:match_task_class.php

示例11: show_msg

 function show_msg($content, $status, $url = '', $t = 2)
 {
     global $_lang, $_K;
     $status == 1 and $type = 'ok' or $type = 'error';
     kekezu::show_msg($content, $url, NULL, NULL, $type);
 }
开发者ID:xupnge1314,项目名称:project,代码行数:6,代码来源:keke_register_class.php

示例12: Keke_witkey_msg_class

    $objMsgM = new Keke_witkey_msg_class();
    if (strtoupper(CHARSET) == 'GBK') {
        $to_username = kekezu::utftogbk($to_username);
    }
    $arrSpaceInfo = kekezu::get_user_info($to_username, 1);
    if (!$arrSpaceInfo) {
        $tips['errors']['to_username'] = '用户不存在';
        kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
    }
    if ($arrSpaceInfo['uid'] == $gUid) {
        $tips['errors']['to_username'] = '无法给自己发送';
        kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
    }
    $title = '稿件议价';
    $content = '尊敬的' . $to_username . ':您的稿件被雇主入围,并向你发出了议价请求。订单详情:<a href="' . $url . '">' . $taskInfo['task_title'] . '</a><p>留言:' . $txt_content . '</p>感谢您对客客专业威客系统的信任。如有特殊情况,请致电客服';
    if (strtoupper(CHARSET) == 'GBK') {
        $title = kekezu::utftogbk($title);
        $content = kekezu::utftogbk($content);
    }
    $objMsgM->setUid($gUid);
    $objMsgM->setUsername($username);
    $objMsgM->setTo_uid($arrSpaceInfo['uid']);
    $objMsgM->setTo_username($arrSpaceInfo['username']);
    $objMsgM->setTitle(kekezu::str_filter(kekezu::escape($title)));
    $objMsgM->setContent(kekezu::str_filter(kekezu::escape($content)));
    $objMsgM->setOn_time(time());
    $objMsgM->setType(3);
    $objMsgM->create_keke_witkey_msg();
    unset($objMsgM);
    kekezu::show_msg('议价已发送给威客', $url, NULL, NULL, 'ok');
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:yijia.php

示例13: upload_file

 public static function upload_file($file_name, $ext = '', $isr = 1, $folder = '', $output = 'normal')
 {
     global $_lang, $kekezu;
     if ($_FILES[$file_name]['size']) {
         $ext == '' && ($ext = $kekezu->_sys_config['file_type']);
         if ($folder != '') {
             $absolute_path = S_ROOT . '/data/uploads/sys/' . $folder;
             $filepath = 'data/uploads/sys/' . $folder;
         } else {
             $absolute_path = UPLOAD_ROOT;
             $filepath = 'data/uploads/' . UPLOAD_RULE;
         }
         $upload_obj = new keke_upload_class($absolute_path, explode('|', $ext), UPLOAD_MAXSIZE);
         $files = $upload_obj->run($file_name, $isr);
         if (!empty($files) && is_array($files)) {
             $file = $files[0]['saveName'];
             return $filepath . $file;
         } else {
             $err = $files;
             switch ($output) {
                 case "normal":
                     kekezu::show_msg($_lang['operate_notice'], '', 2, $err, 'warning');
                     break;
                 case "json":
                     echo kekezu::json_encode_k(array('err' => $err));
                     die;
                     break;
             }
         }
     }
 }
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:keke_file_class.php

示例14: unserialize

$arrAuthItems = keke_auth_fac_class::getAuthItemListByUid($id);
$arrSellerLevel = unserialize($arrSellerInfo['seller_level']);
$arrSellerMark = keke_user_mark_class::get_user_aid($arrSellerInfo['uid'], '2', null, '1');
foreach ($arrSellerMark as $k => $v) {
    $arrSellerMark[$k]['star'] = intval($v['avg']);
}
$arrFollow = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and fuid = %d', TABLEPRE . 'witkey_free_follow', intval($gUid), intval($arrSellerInfo['uid'])));
if ($arrFollow) {
    $arrSellerInfo['follow'] = 1;
} else {
    $arrSellerInfo['follow'] = 0;
}
unset($arrFollow);
if ($closeshop) {
    keke_shop_release_class::closeShop($arrSellerInfo['uid'], 3);
    kekezu::show_msg("店铺已关闭", null, null, NULL, 'success');
    die;
}
if ($openshop) {
    keke_shop_release_class::updateShopStatus($arrSellerInfo['uid'], 1);
    kekezu::show_msg("店铺已开张,可以添加商品哦!", null, null, NULL, 'success');
    die;
}
$intGoodsCount = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and service_status = 2 ', TABLEPRE . 'witkey_service ', $arrSellerInfo['uid']));
$intTaskCount = db_factory::get_count(sprintf('select count(*) from %s where uid = %d and task_status >1', TABLEPRE . 'witkey_task', $arrSellerInfo['uid']));
$intCaseCount = db_factory::get_count(sprintf('select count(*) from %s where shop_id = %d ', TABLEPRE . 'witkey_shop_case', $arrSellerInfo['shop_id']));
$intMarkCount = db_factory::get_count(sprintf('select count(*) from %s where mark_status > 0  and uid = %d', TABLEPRE . 'witkey_mark', $arrSellerInfo['uid']));
$_SESSION['spread'] = 'index.php?do=seller&id=' . intval($id);
require $do . '/' . $view . '.php';
require $kekezu->_tpl_obj->template($do . '/' . $view);
die;
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:seller.php

示例15: keke_show_msg

 public static function keke_show_msg($url, $content, $type = 'success', $output = 'normal')
 {
     global $_lang;
     switch ($output) {
         case "normal":
             kekezu::show_msg($_lang['operate_notice'], $url, '3', $content, $type);
             break;
         case "json":
             $type == 'error' or $status = '1';
             $msg = $_lang['operate_notice'];
             ISWAP == 1 and $msg = array('r' => $content);
             kekezu::echojson($msg, intval($status), $content);
             die;
             break;
     }
 }
开发者ID:xupnge1314,项目名称:project,代码行数:16,代码来源:keke_core_class.php


注:本文中的kekezu::show_msg方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。