<?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>
<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)) {