本文整理汇总了PHP中calculateRating函数的典型用法代码示例。如果您正苦于以下问题:PHP calculateRating函数的具体用法?PHP calculateRating怎么用?PHP calculateRating使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了calculateRating函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: calculateRating
}
?>
<div class="project-bottom-details">
<a href="home.php?iid=<?php
echo $idea['ideathread_id'];
?>
" class="recent-project-title" title="<?php
echo $title;
?>
"><?php
echo $short_title;
?>
</a>
<span class="project-rating"><?php
echo calculateRating($idea['ideathread_id']);
?>
</span>
</div> <!-- project-bottom-details -->
<div class="project-author"><?php
echo TimeAgo(date('Y-m-d', strtotime($idea['created_on'])));
?>
by <a href="user.php?uid=<?php
echo $idea['created_by'];
?>
"><?php
echo $user['display_name'];
?>
</a></div>
示例2: calculateRating
}
?>
<div class="project-bottom-details">
<a href="home.php?pid=<?php
echo $project['project_id'];
?>
" class="recent-project-title" title="<?php
echo $title;
?>
"><?php
echo $short_title;
?>
</a>
<span class="project-rating"><?php
echo calculateRating($project['project_id']);
?>
</span>
</div> <!-- project-bottom-details -->
<div class="project-author"><?php
echo TimeAgo(date('Y-m-d', strtotime($project['created_on'])));
?>
by <a href="user.php?uid=<?php
echo $project['created_by'];
?>
"><?php
echo $user['display_name'];
?>
</a></div>
<?php
示例3: calculateRating
echo $description;
?>
</p>
</div>
<div class="thirty right" style="">
<div style="width: 50%; float: left">
<div class="idea-stats"><a
href="<?php
echo SITE_URL . '/home.php?iid=' . $ideathread_id;
?>
"><img
src="./images/icons/star.jpg"/></a>
<div class="stat-no"><?php
if ($project_exists) {
echo calculateRating($project_id);
}
?>
</div>
</div>
<div class="idea-stats"><a
href="<?php
echo SITE_URL . '/home.php?iid=' . $ideathread_id;
?>
"><img
src="./images/icons/ranking.png"/></a>
<div class="stat-no"><?php
if ($project_exists) {
echo getRankForProject($project_id);
}