當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。