本文整理汇总了PHP中rating::get_work_details方法的典型用法代码示例。如果您正苦于以下问题:PHP rating::get_work_details方法的具体用法?PHP rating::get_work_details怎么用?PHP rating::get_work_details使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rating
的用法示例。
在下文中一共展示了rating::get_work_details方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rating
<?php
require_once 'config.php';
require_once 'class/rating.php';
//echo "<pre>";print_r($_SESSION);exit;
$renderObj = new rating();
//$renderObj->sample_get_book_details_id(1);
$session_val = $renderObj->check_session();
if ($session_val == 1) {
$view_all_sendrequest = $renderObj->view_all_send_request($_GET["id"]);
$get_work_detail = $renderObj->get_work_details($_GET["id"]);
//echo "<pre>";print_r($view_all_sendrequest);exit;
require_once 'header.php';
?>
<!-- Page Content -->
<div class="container">
<div class="container">
<div class="row">
<div class="col-xs-12 toppad" >
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title"><?php
echo $set_page_title;
?>
</h3>
</div>
<div class="panel-body">
示例2: foreach
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th>Sr No.</th>
<th>Title</th>
<th>Request From</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
foreach ($record as $key => $val) {
$work_title = $renderObj->get_work_details($val['work_id']);
$emp_name = $renderObj->get_profile($val['from_id']);
$title = $work_title['title'] != '' ? $work_title['title'] : 'N/A';
$name = $emp_name['google_name'] != '' ? $emp_name['google_name'] : 'N/A';
$id = $val['id'];
?>
<tr>
<th scope="row"><?php
echo $key + 1;
?>
</th>
<td><?php
echo $title;
?>
</td>
示例3: rating
//$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>
.button {
display: inline-block;
position: relative;
width: 45%;