本文整理汇总了PHP中rating::get_rating_detail方法的典型用法代码示例。如果您正苦于以下问题:PHP rating::get_rating_detail方法的具体用法?PHP rating::get_rating_detail怎么用?PHP rating::get_rating_detail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rating
的用法示例。
在下文中一共展示了rating::get_rating_detail方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rating
<?php
require_once 'config.php';
require_once 'class/rating.php';
//$user_id = ($_SESSION['userinfo']->id != '' ? $_SESSION['userinfo']->id: 0);
//echo "<pre>";print_r($_SESSION);exit;
$renderObj = new rating();
$all_member = $renderObj->get_request($_GET["id"]);
$renderObj->unread_request($_GET["id"]);
$get_comment = $renderObj->get_comment_detail($_GET["id"]);
$get_rating = $renderObj->get_rating_detail($_GET["id"]);
if (!empty($get_comment)) {
$comment_text = $get_comment['comment_text'];
} else {
$comment_text = '';
}
if (!empty($get_rating)) {
$rating_chk = $get_rating['rating'];
} else {
$default_rate = $renderObj->get_work_details($all_member[0]['work_id']);
if (isset($default_rate['request_for'])) {
$rating_chk = $default_rate['request_for'];
} else {
$rating_chk = 'no';
}
}
//echo $rating_chk;
//echo "<pre>";print_r($all_member);exit;
require_once 'header.php';
?>
<style>
示例2: foreach
<div class="col-lg-9">
<label class="col-lg-8 control-label" style="text-align: left; font-weight: normal;"> <?php
echo $record['description'];
?>
</label>
</div>
</div>
<div class="form-group">
<label class="col-lg-3 control-label">Requested To : </label>
<div class="col-lg-9">
<?php
foreach ($request as $val) {
$request_to = $renderObj->get_profile($val['to_id']);
$get_rating = $renderObj->get_rating_detail($val['id']);
//print_r($request_to);exit;
?>
<label class="col-lg-8 control-label" style="text-align: left; font-weight: normal;">
<?php
if (array_key_exists($val['status'], $status_flag)) {
$status = $status_flag[$val['status']];
$action_stat = $status_flag[$val['status']];
}
/*else {
$status = "Request Not Send";
}*/
if ($action_stat == "Accepted") {
$get_rating = $renderObj->get_rating_detail($val['id']);
}
if (!empty($get_rating)) {