當前位置: 首頁>>代碼示例>>PHP>>正文


PHP COMMONFUNC::getAverageRating方法代碼示例

本文整理匯總了PHP中COMMONFUNC::getAverageRating方法的典型用法代碼示例。如果您正苦於以下問題:PHP COMMONFUNC::getAverageRating方法的具體用法?PHP COMMONFUNC::getAverageRating怎麽用?PHP COMMONFUNC::getAverageRating使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在COMMONFUNC的用法示例。


在下文中一共展示了COMMONFUNC::getAverageRating方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

if ($_POST['save'] == 'save') {
    if ($IsHSCoach == 1) {
        $starr = array('fldAthlete_id' => $_REQUEST['fldAthleteID'], 'fldCoach_id' => $coach_id, 'fldLeaderShip' => $_POST['fldLeaderShip'], 'fldWork_Ethic' => $_POST['fldWork_Ethic'], 'fldPrimacy_Go_To_Guy' => $_POST['fldPrimacy_Go_To_Guy'], 'fldMental_Toughness' => $_POST['fldMental_Toughness'], 'fldComposure' => $_POST['fldComposure'], 'fldAwareness' => $_POST['fldAwareness'], 'fldInstincts' => $_POST['fldInstincts'], 'fldVision' => $_POST['fldVision'], 'fldConditioning' => $_POST['fldConditioning'], 'fldPhysical_Toughness' => $_POST['fldPhysical_Toughness'], 'fldTenacity' => $_POST['fldTenacity'], 'fldHustle' => $_POST['fldHustle'], 'fldStrength' => $_POST['fldStrength'], 'fldAddDate' => date("y-m-d"));
        //print_r($starr);
        $db->insertRec(TBL_RATING, $starr);
        //$msg = 'Rating successfully added.  <a href="javascript:refreshParent();">Close Window</a>';
        /*if ($_REQUEST["mode"] == "active") {
        			$Id = $_REQUEST['Id'];
        			$active_query_details = "update " . TBL_NETWORK . " set fldStatus = 'Active' where fldId='" . $Id . "'";
        			$activemsg = $db -> query($active_query_details);
        			if (isset($activemsg)) {
        				//$_REQUEST['msg'] = "Network Request Aapproved. User has been sent a nofication.";
        			}
        			//Send Email
        		}*/
        $func->getAverageRating($_REQUEST['fldAthleteID']);
        $msg = 'Rating Successfully!';
        ?>
			<script type="text/javascript">
			alert("<?php 
        echo $msg;
        ?>
");
			window.opener.location.reload(true);self.close();
			/*window.parent.location.href=window.parent.location.href;*/
			</script>
			<?php 
        exit;
        /*header("Location:RatingAthleteApprove.php?fldAthleteID=".$_REQUEST['fldAthleteID']."&mode=view&msg=$msg");*/
    }
}
開發者ID:trungjc,項目名稱:collegeprospectnetwork,代碼行數:31,代碼來源:RatingAthleteApprove.php


注:本文中的COMMONFUNC::getAverageRating方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。