当前位置: 首页>>代码示例>>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;未经允许,请勿转载。