<?php require_once 'config.php'; require_once 'class/rating.php'; require_once 'functions/functions.php'; $renderObj = new rating(); $user_id = $_SESSION['userinfo']->id != '' ? $_SESSION['userinfo']->id : 0; require_once 'header.php'; $record = $renderObj->get_profile($user_id); if ($record != 0) { $name = $record['google_name'] != '' ? $record['google_name'] : 'NA'; $email = $record['google_email'] != '' ? $record['google_email'] : 'NA'; $designation = $record['designation'] != '' ? $record['designation'] : 'NA'; $profile_pic = $record['google_picture_link'] != '' ? $record['google_picture_link'] . "?sz=100" : 'https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=100'; } $ranking_user_list = $renderObj->get_ranking_list($user_id); $cnt = $renderObj->get_all_members_cnt(); $rank = $renderObj->get_my_rank_position(); $login_user_rank_position = array_search($user_id, array_column($rank, 'user_id')); $most_recent_ratings = $renderObj->get_recent_ratings(); $get_work_rating = $renderObj->get_work_rating($user_id); $plus_rating = 0; $minus_rating = 0; foreach (@$get_work_rating as $key => $val) { if ($val['rating'] == 1) { $plus_rating++; } else { if ($val['rating'] == 0) { $minus_rating++; } }
<label class="col-lg-3 control-label">Reason :</label> <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']); }
<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> <td><?php
<?php require_once 'config.php'; require_once 'class/rating.php'; $flag = 1; $role_flag = 2; $renderObj = new rating(); $record = $renderObj->get_profile($_GET["id"]); $all_user_list = $renderObj->get_user_list($_GET["id"]); $all_roles = $renderObj->get_all_role_for_admin(); $get_lead = $renderObj->get_all_lead($_GET["id"], $flag, ''); if ($record != 0) { $name = $record['google_name'] != '' ? $record['google_name'] : 'NA'; $current_user_id = $record['id'] != '' ? $record['id'] : 'NA'; $email = $record['google_email'] != '' ? $record['google_email'] : 'NA'; $mobile_number = $record['mobile_number'] != '' ? $record['mobile_number'] : 'NA'; } //echo "<pre>";print_r($get_lead);print_r($all_roles);die; require_once 'header.php'; ?> <!-- Page Content --> <section> <div class="wrapper"> <div class="mid-col-12"> <div class="profile-wrapper"> <h2 class="edit-h2"><?php echo $set_page_title; //$name; ?>