本文整理匯總了PHP中CRatings::GetWeightList方法的典型用法代碼示例。如果您正苦於以下問題:PHP CRatings::GetWeightList方法的具體用法?PHP CRatings::GetWeightList怎麽用?PHP CRatings::GetWeightList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CRatings
的用法示例。
在下文中一共展示了CRatings::GetWeightList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GetMessage
echo GetMessage('RATING_SETTINGS_FRM_RATING_INFO_AVG');
?>
:</td>
<td><?php
echo round($arValueInfo['AVG'], 2);
?>
</td>
</tr>
<tr class="heading">
<td colspan="2"><?php
echo GetMessage('RATING_SETTINGS_CAT_CONFIG');
?>
</td>
</tr>
<?
$db_res = CRatings::GetWeightList(array("RATING_TO" => "ASC"), array());
$conditionCount = 0;
$conditionMaxCount = 0;
?>
<tr>
<td colspan="2" align="left" class="rating_settings" id="rating_settings_weight">
<?
$arCondition = array();
while ($res = $db_res->Fetch())
{
$arCondition[] = $res;
$conditionMaxCount++;
}
foreach($arCondition as $key => $res)
{
$conditionCount++;