当前位置: 首页>>代码示例>>PHP>>正文


PHP rating::get_profile方法代码示例

本文整理汇总了PHP中rating::get_profile方法的典型用法代码示例。如果您正苦于以下问题:PHP rating::get_profile方法的具体用法?PHP rating::get_profile怎么用?PHP rating::get_profile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在rating的用法示例。


在下文中一共展示了rating::get_profile方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: rating

<?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++;
        }
    }
开发者ID:parakh-infobeans,项目名称:parakh,代码行数:31,代码来源:ranking.php

示例2: foreach

            <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']);
        }
开发者ID:parakh-infobeans,项目名称:parakh,代码行数:31,代码来源:view_request_work.php

示例3: foreach

      <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 
开发者ID:parakh-infobeans,项目名称:parakh,代码行数:31,代码来源:request_list.php

示例4: rating

<?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;
?>
开发者ID:parakh-infobeans,项目名称:parakh,代码行数:31,代码来源:assigned_role.php


注:本文中的rating::get_profile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。