本文整理汇总了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++;