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


PHP keke_tpl_class::template方法代码示例

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


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

示例1: show_msg

 static function show_msg($title = "", $url = "", $time = 3, $content = "", $type = 'info')
 {
     global $_K, $basic_config, $username, $uid, $nav_list, $_lang, $strWebLogo, $task_open, $shop_open, $indus_arr, $arrTopIndus, $indus_goods_arr, $indus_task_arr;
     $type == 'ok' and $type = 'success';
     if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
         !in_array($type, array('success', 'error', 'fail')) and $type = 'error';
         $json = array('status' => $type, 'data' => $title, 'url' => $url);
         strtoupper(CHARSET) == 'GBK' and $json = kekezu::gbktoutf($json);
         echo json_encode($json);
     } else {
         !in_array($type, array('success', 'warning', 'danger', 'info')) and $type = 'info';
         intval($time) or $time = 3;
         $url or $url = 'index.php';
         $strPageTitle = '页面跳转提示';
         require keke_tpl_class::template('msg');
     }
     unset($json, $_K, $basic_config, $username, $uid, $nav_list, $_lang, $strWebLogo, $task_open, $shop_open, $indus_arr, $arrTopIndus, $indus_goods_arr, $indus_task_arr);
     die;
 }
开发者ID:xupnge1314,项目名称:project,代码行数:19,代码来源:keke_core_class.php

示例2: header

     $arrMarkInfo = $arrMark['mark_info'];
     require keke_tpl_class::template('task/' . $arrModelInfo['model_code'] . '/tpl/default/gz_step6');
     die;
     break;
 case "wk":
     //$arrBidInfo = $objTask->get_task_info ();
     $arrMarkCount = keke_shop_class::get_mark_count($model_code, $sid);
     $p['url'] = $strUrl . "&view=mark&intPagesize=" . $p['page_size'] . "&intPage=" . $p['page'];
     $p['anchor'] = '#pageT';
     $w['model_code'] = $arrModelInfo['model_code'];
     $w['origin_id'] = $intId;
     $w['mark_status'] = $st;
     $w['mark_type'] = $ut;
     $arrMark = keke_user_mark_class::get_mark_info($w, $p, ' mark_id desc ', 'mark_status>0');
     $arrMarkInfo = $arrMark['mark_info'];
     require keke_tpl_class::template('task/' . $arrModelInfo['model_code'] . '/tpl/default/wk_step6');
     die;
     break;
     //2015-08-02   添加
 //2015-08-02   添加
 case 'gz_step6':
     $objId = $taskId;
     $toUid = $taskId;
     $arrMark = keke_user_mark_class::get_mark_info(array('model_code' => 'service', 'obj_id' => $objId, 'by_uid' => $gUid, 'uid' => $toUid));
     $markInfo = $arrMark['mark_info']['0'];
     $aidList = keke_user_mark_class::get_mark_aid(2);
     $aidInfo = keke_user_mark_class::get_user_aid($markInfo['by_uid'], $markInfo['mark_type'], $markInfo['mark_status'], 2, $markInfo['model_code'], $objId);
     $strJumpUrl = "index.php?do=task&id={$taskId}";
     if ($markInfo['mark_status'] == '1') {
         header('location:' . $strJumpUrl);
     }
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:index.php

示例3: foreach

    $total = $bid_ins = $service_ins = $item_ins = $auth_ins = 0;
    foreach ($year_arr as $key => $value) {
        $bid_in = db_factory::get_count(sprintf(" select sum(site_profit) as cash from %switkey_finance where (fina_action='task_bid' or fina_action='pub_task') and site_profit>0   and (fina_type='in' or fina_type='out') and YEAR(FROM_UNIXTIME(fina_time))=%d", TABLEPRE, $value['year']));
        $bid_ins += $bid_in;
        $service_in = db_factory::get_count(sprintf(" select sum(site_profit) as cash from %switkey_finance where fina_action='sale_service' and fina_type='in' and YEAR(FROM_UNIXTIME(fina_time))=%d", TABLEPRE, $value['year']));
        $service_ins += $service_in;
        $item_in = db_factory::get_count(sprintf(" select sum(site_profit) as cash from %switkey_finance where fina_action='payitem' and fina_type='out' and YEAR(FROM_UNIXTIME(fina_time))=%d", TABLEPRE, $value['year']));
        $item_ins += $item_in;
        $auth_in = db_factory::get_count(sprintf(" select sum(site_profit) as cash from %switkey_finance where INSTR(fina_action,'_auth') and fina_type='out' and YEAR(FROM_UNIXTIME(fina_time))=%d", TABLEPRE, $value['year']));
        $auth_ins += $auth_in;
        $point = '';
        $point .= '<point name="' . $detail_arr['1'] . '" y="' . $bid_in . '"/>';
        $point .= '<point name="' . $detail_arr['2'] . '" y="' . $service_in . '"/>';
        $point .= '<point name="' . $detail_arr['3'] . '" y="' . $item_in . '"/>';
        $point .= '<point name="' . $detail_arr['4'] . '" y="' . $auth_in . '"/>';
        if ($every_year == true) {
            $year_path = sprintf($path, $value['year']);
            update_xml($year_path, '<data><series name="Series 1">' . $point . '</series></data>', 'analysis');
        }
    }
    $str = '';
    $str .= '<series name="Series 1">';
    $str .= '<point name="' . $detail_arr['1'] . '" y="' . $bid_ins . '"/>';
    $str .= '<point name="' . $detail_arr['2'] . '" y="' . $service_ins . '"/>';
    $str .= '<point name="' . $detail_arr['3'] . '" y="' . $item_ins . '"/>';
    $str .= '<point name="' . $detail_arr['4'] . '" y="' . $auth_ins . '"/>';
    $str .= '</series>';
    return update_xml(sprintf($path, 'total'), '<data>' . $str . '</data>', 'analysis');
}
require_once keke_tpl_class::template('admin/tpl/admin_finance_report');
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:30,代码来源:admin_finance_report.php

示例4: service_shop_class

    $service_obj = new service_shop_class();
    $service_info = db_factory::get_one(sprintf("select * from %switkey_service where service_id='%d'", TABLEPRE, $service_id));
    if ($service_info['pic']) {
        $servicePics = explode(',', $service_info['pic']);
    }
    if ($service_info['file_path']) {
        $serviceFiles = explode(',', $service_info['file_path']);
    }
    $ac_url = "index.php?do=model&model_id=7&view=edit&service_id=" . $service_id;
    $status_arr = $service_obj->get_service_status();
    unset($status_arr[1]);
    $service_info['ext_fields'] = CustomClass::getExtDataList($service_info['service_id'], $service_info['model_id']);
    if ($sbt_edit) {
        if ($ext_fds) {
            CustomClass::editExtData($service_id, $model_id, $ext_fds);
        }
        kekezu::admin_system_log($_lang['to_witkey_service_name_is'] . $service_info[title] . $_lang['in_edit_operate']);
        service_shop_class::set_on_sale_num($pk['service_id'], $fds['service_status']);
        $service_obj = keke_table_class::get_instance('witkey_service');
        $c = $service['content'];
        $fds = kekezu::escape($service);
        $service['content'] = $c;
        isset($service['is_top']) or $service['is_top'] = 0;
        $service_obj->save($service, array("service_id" => $service_id));
        kekezu::admin_show_msg($_lang['service_edit_success'], 'index.php?do=model&model_id=7&view=list', 2, $_lang['service_edit_success'], 'success');
    }
} else {
    require S_ROOT . '/shop/' . $model_info['model_dir'] . '/admin/shop_misc.php';
}
require keke_tpl_class::template('shop/' . $model_info['model_dir'] . '/admin/tpl/service_edit_' . $op);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:30,代码来源:service_edit.php

示例5: 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

示例6: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
kekezu::admin_check_role(140);
if (isset($submit)) {
    $basic_obj = new Keke_witkey_basic_config_class();
    foreach ($conf as $k => $v) {
        $basic_obj->setWhere("k = '{$k}'");
        $basic_obj->setV($v);
        $res .= $basic_obj->edit_keke_witkey_basic_config();
    }
    !empty($api) and $attent_api = $api or $attent_api = array();
    $basic_obj->setWhere("k = 'attent_api_open'");
    $basic_obj->setV(serialize($attent_api));
    $basic_obj->edit_keke_witkey_basic_config();
    kekezu::admin_system_log($_lang['weibo_config_view']);
    kekezu::admin_show_msg($_lang['weibo_view_config_success'], "index.php?do=msg&view=attention", 3, '', 'success');
} else {
    $attent_api = db_factory::get_count(sprintf(" select v from %switkey_basic_config where type='attent_api'", TABLEPRE));
    $attent_api = unserialize($attent_api);
    $attent_list = kekezu::get_table_data("k,v,desc", "witkey_basic_config", "type='attention'", 'listorder asc ', "", "", "k");
}
require keke_tpl_class::template(ADMIN_DIRECTORY . '/tpl/admin_' . $do . '_' . $view);
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:23,代码来源:admin_msg_attention.php

示例7: strlen

            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);
            }
        }
        break;
    case 'step3':
        $serviceId = intval($serviceId);
        if (0 === $serviceId) {
            kekezu::show_msg('无权访问', $strUrl, 3, NULL, 'warning');
        }
        $objRelease->del_service_obj($stdCacheName);
        $objRelease->check_access($step, $id, $arrPubInfo, $serviceId);
        break;
    case 'step4':
        $serviceId = intval($serviceId);
        if (0 === $serviceId) {
            kekezu::show_msg('无权访问', $strUrl, 3, NULL, 'warning');
        }
        $arrPayInfo = $objRelease->checkWhetherToPay($serviceId, 'goods');
        $boolValue = $arrPayInfo['balance_pay'];
        $floatPayCash = $arrPayInfo['total_cash'];
        break;
}
require keke_tpl_class::template('pubgoods');
die;
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:pub.php

示例8: exit

        } else {
            $objType = 'task';
        }
        $report_reason = keke_report_class::getRightsType($objType);
    } else {
        $report_reason = keke_report_class::getReportType($objType);
    }
    if (isset($formhash) && kekezu::submitcheck($formhash)) {
        $resText = keke_order_class::set_report($objId, $toUid, $type, $filepath, $tarContent, $sltReason);
        if ($resText === true) {
            kekezu::show_msg('感谢您的' . $transname . ',管理员会尽快受理,请耐心等待处理结果。', $strUrl . "&orderId=" . $orderId, 3, NULL, 'ok');
        } else {
            kekezu::show_msg($resText, null, null, NULL, 'fail');
        }
    } else {
        $strUrl = $reportUrl;
        require keke_tpl_class::template("tpl/default/ajax/report");
    }
    exit(0);
}
if ($action === 'showKf') {
    $kf_info = kekezu::get_rand_kf();
    require keke_tpl_class::template('shop/goods/tpl/default/order/kf_info');
    die;
    exit(0);
}
$serviceSql = 'select service_id,model_id,title,price from ' . TABLEPRE . 'witkey_service where uid = ' . $id . ' and service_status = 2 and model_id = 7 order by service_id desc limit 0,5';
$arrServiceLists = db_factory::query($serviceSql);
require $do . "/" . $reqPage . "_order.php";
require $kekezu->_tpl_obj->template($do . '/' . $reqPage . "_index");
die;
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:gy.php

示例9:

      	</div>

      </div>
      
      <div class="release-help-ctrl">
      	<a href="javascript:void(0);" id="toggleTaskDesc">说明 <i class="fa fa-caret-down"></i></a>
      </div>

      <?php 
}
?>
      <!-- release-help end  -->

      <!-- 加载各任务对应步骤  -->
      		<?php 
require keke_tpl_class::template("task/{$arrModelInfo['model_dir']}/tpl/{$_K['template']}/{$step}");
?>
      <!-- 加载各任务对应步骤  -->

    </div>
    <!-- release-body end -->
  </div>
  <!-- release end-->
</div>
</div>


<!-- 每个任务模型对应的JS -->
<script type="text/javascript" src="task/<?php 
echo $arrModelInfo['model_dir'];
?>
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:tpl_default_pubtask.php

示例10: strip_tags

                $tar_content = kekezu::utftogbk($tar_content);
            }
            $tar_content = strip_tags(htmlspecialchars_decode($tar_content));
            if ($kekezu->_sys_config['ban_content'] && kekezu::k_match(array($kekezu->_sys_config['ban_content']), $tar_content)) {
                $tips['errors']['tar_content'] = $_lang['sensitive_word'];
                kekezu::show_msg($tips, NULL, NULL, NULL, 'error');
            }
            $resText = $objTask->set_task_reqedit(kekezu::escape($tar_content));
            if ($resText === true) {
                kekezu::show_msg('操作成功', 'index.php?do=task&id=' . $taskId, 3, NULL, 'ok');
            } else {
                kekezu::show_msg($resText, 'index.php?do=task&id=' . $taskId, 3, NULL, 'fail');
            }
        } else {
            $strExtDesc = $arrTaskInfo['ext_desc'];
            require keke_tpl_class::template('task/reqedit');
            die;
        }
        die;
        break;
    case 'mark':
        $strModelCode = $objTask->_model_code;
        $strJumpUrl = 'index.php?do=task&id=' . $taskId;
        require S_ROOT . 'control/mark.php';
        die;
        break;
    default:
        jumpUrl($taskId);
        break;
}
function jumpUrl($taskId = 0)
开发者ID:xupnge1314,项目名称:project,代码行数:31,代码来源:taskhandle.php

示例11: intval

if (isset($formhash) && kekezu::submitcheck($formhash)) {
    $sec_code = kekezu::escape(trim($zfpwd));
    $strMd5Pwd = keke_user_class::get_password($sec_code, $gUserInfo['rand_code']);
    $arrUserInfo = db_factory::get_one(sprintf("select * from %switkey_space where uid=%d and sec_code='%s'", TABLEPRE, intval($gUid), $strMd5Pwd));
    if (!$arrUserInfo) {
        $tip['errors']['zfpwd'] = '密码不正确!';
        kekezu::show_msg($tip, NULL, NULL, NULL, 'error');
    }
    $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));
    if ($arrPayitems['tasktop']) {
        $arrTaskInfo = db_factory::get_one("select * from " . TABLEPRE . "witkey_task where task_id=" . intval($objId));
        $task_day = date('Y-m-d', $arrTaskInfo['sub_time']);
        $intTopInfo = PayitemClass::getPayitemRecord($type, $objId, 'tasktop');
        PayitemClass::validPayitemCount($arrPayitems, $task_day, $intTopInfo['end_time']);
    }
    $arrPayitems['goodstop'] = intval($text_goodstop);
    $arrPayitemBuy = array_filter($arrPayitems);
    if (is_array($arrPayitemBuy)) {
        $intOrderId = PayitemClass::creatPayitemOrder($arrPayitemBuy, $type, $objId);
        if ($intOrderId) {
            $res = PayitemClass::payPayitemOrder($intOrderId);
            if ($res === true) {
                kekezu::show_msg('购买成功', 'index.php?do=' . $type . '&id=' . intval($objId), NULL, NULL, 'ok');
            } else {
                kekezu::show_msg($res, 'index.php?do=pay&type=payitem&id=' . $intOrderId, NULL, NULL, 'fail');
            }
        }
    }
}
require keke_tpl_class::template("tpl/default/ajax/payitem");
die;
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:payitem.php

示例12: defined

<?php

defined('ADMIN_KEKE') or exit('Access Denied');
$report_info = keke_report_class::get_report_info($report_id);
$report_info or kekezu::admin_show_msg($_lang['parameters_error_not_exist'] . $action_arr[$type][1] . $_lang['record'], "index.php?do=trans&view={$type}", 3, '', 'warning');
$user_info = kekezu::get_user_info($report_info['uid']);
$to_userinfo = kekezu::get_user_info($report_info['to_uid']);
$obj_info = keke_report_class::obj_info_init($report_info, $user_info);
$ac == 'download' and keke_file_class::file_down($filename, $filepath);
$url = "index.php?do={$do}&view={$type}";
if ($type == 'complaint') {
    if ($sbt_op) {
        $op_result[action] == 'pass' and $report_status = 4 or $report_status = 3;
        $url .= "&report_status={$report_status}";
        $res = keke_report_class::sub_process_ts($report_info, $user_info, $to_userinfo, $op_result);
        $res and kekezu::admin_show_msg($_lang['operate_notice'], $url, "2", $_lang['process_success'], 'success') or kekezu::admin_show_msg($_lang['operate_notice'], $url, "2", $_lang['operate_over'], 'warning');
    } else {
        $report_info = keke_report_class::get_report_info($report_id);
    }
    require keke_tpl_class::template(ADMIN_DIRECTORY . '/tpl/admin_trans_process');
} else {
    if (empty($obj_info) || empty($obj_info['model_id'])) {
        kekezu::admin_show_msg($_lang['friendly_notice'], $url, 3, $_lang['deal_object_del'], 'warning');
    }
    $report_info = keke_report_class::get_report_info($report_id);
    $model_info = $kekezu->_model_list[$obj_info['model_id']];
    $path = S_ROOT . $model_info['model_type'] . "/" . $model_info['model_dir'] . "/admin/admin_route.php";
    require $path;
}
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:29,代码来源:admin_trans_process.php

示例13: exit

            $objType = 'work';
        } else {
            $objType = 'task';
        }
        $report_reason = keke_report_class::getRightsType($objType);
    } else {
        $report_reason = keke_report_class::getReportType($objType);
    }
    if (isset($formhash) && kekezu::submitcheck($formhash)) {
        $resText = keke_order_class::set_report($objId, $toUid, $type, $filepath, $tarContent, $sltReason);
        if ($resText === true) {
            kekezu::show_msg('感谢您的' . $transname . ',管理员会尽快受理,请耐心等待处理结果。', $strUrl . "&orderId=" . $orderId, 3, NULL, 'ok');
        } else {
            kekezu::show_msg($resText, null, null, NULL, 'fail');
        }
    } else {
        $strUrl = $reportUrl;
        require keke_tpl_class::template("tpl/default/ajax/report");
    }
    exit(0);
}
if ($action === 'showKf') {
    $kf_info = kekezu::get_rand_kf();
    require keke_tpl_class::template('shop/goods/tpl/default/order/kf_info');
    die;
    exit(0);
}
require S_ROOT . "/shop/" . $arrModelInfo['model_dir'] . "/control/" . $reqPage . "_order.php";
require keke_tpl_class::template("shop/" . $arrModelInfo['model_code'] . "/tpl/" . $_K['template'] . "/order/" . $reqPage . "_index");
die;
die;
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:order.php

示例14: array

 case "pass":
     $res = keke_task_config::task_audit_pass($task_id);
     $v_arr = array($_lang['username'] => "{$task_audit_arr['username']}", $_lang['task_link'] => $url, $_lang['start_time'] => $start_time, $_lang['end_time'] => $end_time, $_lang['task_id'] => "#" . $task_id);
     keke_shop_class::notify_user($task_audit_arr['uid'], $task_audit_arr['username'], 'task_auth_success', $_lang['task_auth_success'], $v_arr);
     kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['audit_success'], 'success');
     break;
 case "nopass":
     if ($is_submit == "1") {
         $res = keke_task_config::task_audit_nopass($task_id);
         $v_arr = array($_lang['username'] => "{$task_audit_arr['username']}", $_lang['task_title'] => $url, $_lang['web_name'] => "{$kekezu->_sys_config}['website_name']", "审核原因" => $reason);
         keke_shop_class::notify_user($task_audit_arr['uid'], $task_audit_arr['username'], 'task_auth_fail', $_lang['task_auth_fail'], $v_arr);
         kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['operate_success'], 'success');
     } else {
         $strUsername = sreward_task_class::getUsername($_GET['uid']);
         $strTittle = sreward_task_class::getTitle($task_id);
         require keke_tpl_class::template('task/sreward/admin/tpl/admin_user_check');
         die;
     }
     break;
 case "freeze":
     $res = keke_task_config::task_freeze($task_id);
     kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['freeze_task_success'], 'success');
     break;
 case "unfreeze":
     $res = keke_task_config::task_unfreeze($task_id);
     kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['unfreeze_task_success'], 'success');
     break;
 case "recommend":
     $res = keke_task_config::task_recommend($task_id);
     kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['task_recommend_success'], 'success');
     break;
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:task_list.php

示例15: array

 case "pass":
     $res = keke_task_config::task_audit_pass($task_id);
     $v_arr = array($_lang['username'] => "{$task_audit_arr['username']}", $_lang['task_link'] => $url, $_lang['start_time'] => $start_time, $_lang['end_time'] => $end_time, $_lang['task_id'] => "#" . $task_id);
     keke_shop_class::notify_user($task_audit_arr['uid'], $task_audit_arr['username'], 'task_auth_success', $_lang['task_auth_success'], $v_arr);
     kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['examine_successfully'], 'success');
     break;
 case "nopass":
     if ($is_submit == "1") {
         $res = keke_task_config::task_audit_nopass($task_id);
         $v_arr = array($_lang['username'] => "{$task_audit_arr['username']}", $_lang['task_title'] => $url, $_lang['web_name'] => "{$kekezu->_sys_config}['website_name']", "审核原因" => $reason);
         keke_shop_class::notify_user($task_audit_arr['uid'], $task_audit_arr['username'], 'task_auth_fail', $_lang['task_auth_fail'], $v_arr);
         kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['operate_success'], 'success');
     } else {
         $strUsername = sreward_task_class::getUsername($_GET['uid']);
         $strTittle = sreward_task_class::getTitle($task_id);
         require keke_tpl_class::template('task/' . $model_info['model_dir'] . '/admin/tpl/admin_user_check');
         die;
     }
     break;
 case "freeze":
     $res = keke_task_config::task_freeze($task_id);
     kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['task_frooze_successfully'], 'success');
     break;
 case "unfreeze":
     $res = keke_task_config::task_unfreeze($task_id);
     kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['task_unfrooze_successfully'], 'success');
     break;
 case "recommend":
     $res = keke_task_config::task_recommend($task_id);
     kekezu::admin_show_msg($_lang['operate_notice'], $url_str, 2, $_lang['task_recommend_successfully'], 'success');
     break;
开发者ID:huangbinzd,项目名称:kppwGit,代码行数:31,代码来源:task_list.php


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