當前位置: 首頁>>代碼示例>>PHP>>正文


PHP rating::get_work_details方法代碼示例

本文整理匯總了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">
開發者ID:parakh-infobeans,項目名稱:parakh,代碼行數:31,代碼來源:view_review_outbox_detail.php

示例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>
開發者ID:parakh-infobeans,項目名稱:parakh,代碼行數:31,代碼來源:request_list.php

示例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%;
開發者ID:parakh-infobeans,項目名稱:parakh,代碼行數:31,代碼來源:give_rating.php


注:本文中的rating::get_work_details方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。