本文整理汇总了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");*/
}
}