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


PHP COMMONFUNC::setAtheleteRating方法代码示例

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


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

示例1:

 $fldWeight = $rating_func->output_fun($rating_db->f('fldWeight'));
 $fldSport = $rating_func->output_fun($rating_db->f('fldSport'));
 //$fldJerseyNumber = $rating_func -> output_fun($rating_db -> f('fldJerseyNumber'));
 $fldPrimaryPosition = $rating_func->output_fun($rating_db->f('fldPrimaryPosition'));
 $fldSecondaryPosition = $rating_func->output_fun($rating_db->f('fldSecondaryPosition'));
 $fldVertical = $rating_func->output_fun($rating_db->f('fldVertical'));
 $fld40_yardDash = $rating_func->output_fun($rating_db->f('fld40_yardDash'));
 $fldShuttleRun = $rating_func->output_fun($rating_db->f('fldShuttleRun'));
 $fldBenchPressMax = $rating_func->output_fun($rating_db->f('fldBenchPressMax'));
 $fldSquatMax = $rating_func->output_fun($rating_db->f('fldSquatMax'));
 ##############################################
 ######### PROFILE COMLITION RATING START #####
 ##############################################
 ####### APPROVED_BY_COACH ################
 if ($coachApprove > 0 || $coachApprove != "") {
     $rating_func->setAtheleteRating("PROFILE", $UserID, "APPROVED_BY_COACH", true);
 } else {
     $rating_func->setAtheleteRating("PROFILE", $UserID, "APPROVED_BY_COACH", false);
 }
 ##########################################
 ####### UPLOADING_GAME_TAPE ##############
 if ($uploadVideo > 0 || $uploadVideo != "") {
     $rating_func->setAtheleteRating("PROFILE", $UserID, "UPLOADING_GAME_TAPE", true);
 } else {
     $rating_func->setAtheleteRating("PROFILE", $UserID, "UPLOADING_GAME_TAPE", false);
 }
 #########################################
 ####### ADDING_PROFILE_PICTURE ##########
 if ($uploadImage != "default.jpg" || $uploadImage != "") {
     $rating_func->setAtheleteRating("PROFILE", $UserID, "ADDING_PROFILE_PICTURE", true);
 } else {
开发者ID:trungjc,项目名称:collegeprospectnetwork,代码行数:31,代码来源:athlete_rating.php

示例2: where

##############################################
########### ADDING_GAME_STATE ################
$query_1 = "select * from tbl_event where ((date(fldEventStartDate) < (now()) AND date(fldEventStartDate) >= (DATE_SUB(now(), INTERVAL 8 day))) OR date(fldEventEndDate) >= (DATE_SUB(now(), INTERVAL 8 day))) and fld_UserType='athlete'";
$rating_db_1->query($query_1);
$rating_db_1->next_record();
$arr_info = array();
$totalPages = $rating_db_1->num_rows();
if ($totalPages > 0) {
    for ($k = 0; $k < $totalPages; $k++) {
        $arr_info[$k]['fldUserName'] = $rating_db_1->f('fldUserName');
        //	$arr_info[$k]['fldEventStartDate'] = $rating_db_1 -> f('fldEventStartDate');
        $rating_db_1->next_record();
    }
    for ($kj = 0; $kj < count($arr_info); $kj++) {
        $fldAthleteId = $rating_func->GetValue("tbl_athelete_register", "fldId", "fldUserName", $arr_info[$kj]['fldUserName']);
        $rating_func->setAtheleteRating("WEEKLY", $fldAthleteId, "ADDING_GAME_STATE", true);
    }
}
##############################################
########### RESPONDING_TO_EMAILS #############
$query_2 = "select * from tbl_mail where (date(SentDate) >= (DATE_SUB(now(), INTERVAL 8 day)) AND date(SentDate)< (now())) AND Usertypeto='athlete'";
$rating_db_2->query($query_2);
$totalPages = $rating_db_2->num_rows();
$arr_info = array();
if ($totalPages > 0) {
    $rating_db_2->next_record();
    for ($k = 0; $k < $totalPages; $k++) {
        $checkUnread = $rating_func->GetValue("tbl_mail", "mail_id", "status='unread' AND UserTo", $rating_db_2->f('UserTo'));
        if (trim($checkUnread) == "") {
            $arr_info[$k] = trim($rating_db_2->f('UserTo'));
        }
开发者ID:trungjc,项目名称:collegeprospectnetwork,代码行数:31,代码来源:cron_athlete_rating_weekly.php


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