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


PHP rating::rating_dashboard方法代碼示例

本文整理匯總了PHP中rating::rating_dashboard方法的典型用法代碼示例。如果您正苦於以下問題:PHP rating::rating_dashboard方法的具體用法?PHP rating::rating_dashboard怎麽用?PHP rating::rating_dashboard使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在rating的用法示例。


在下文中一共展示了rating::rating_dashboard方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: rating

    <?php 
require_once 'config.php';
require_once 'class/rating.php';
require_once 'functions/functions.php';
$renderObj = new rating();
if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest') {
    $record = $renderObj->saveWorkManager($_POST);
}
$user_id = $_SESSION['userinfo']->id != '' ? $_SESSION['userinfo']->id : 0;
$alphaValue = $_POST['alphaValue'] != '' ? $_POST['alphaValue'] : 0;
if ($alphaValue == 'All') {
    $alphaValue = '';
}
$team_member = $renderObj->get_all_sub_employee_list($user_id);
$rating_dashboard = $renderObj->rating_dashboard($employeeList, $alphaValue);
$rating_dashboard = sortByRating($rating_dashboard);
if (!empty($rating_dashboard)) {
    $i = 0;
    foreach ($rating_dashboard as $key => $val) {
        $i++;
        $user_id = $val['id'];
        $profile_pic = $val['google_picture_link'] ? $val['google_picture_link'] . "?sz=100" : 'images/user.png';
        ?>
            <div class="mid-col-4">
                <div class="mid-col-top">
                    <div class="mid-col-img"><a href="./profile.php?id=<?php 
        echo $val['id'];
        ?>
&edit_comment=true"><img src="<?php 
        echo $profile_pic;
        ?>
開發者ID:parakh-infobeans,項目名稱:parakh,代碼行數:31,代碼來源:user_rating_dashboard.php

示例2: rating

<?php

require_once 'config.php';
require_once 'class/rating.php';
require_once 'functions/functions.php';
$renderObj = new rating();
if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest') {
    $record = $renderObj->saveWorkManager($_POST);
}
$alphaValue = strip_tags($_POST['alphaValue']);
$alphaValue = $alphaValue != '' ? $alphaValue : 0;
$alphaValue = $alphaValue == 'All' ? '' : $alphaValue;
$team_member = $renderObj->get_all_member_custom();
$rating_dashboard = $renderObj->rating_dashboard($team_member, $alphaValue);
$rating_dashboard = sortByRating($rating_dashboard);
//pr($rating_dashboard);
if (!empty($rating_dashboard)) {
    $i = 0;
    foreach ($rating_dashboard as $key => $val) {
        $i++;
        $user_id = $val['id'];
        $profile_pic = $val['google_picture_link'] ? $val['google_picture_link'] . "?sz=100" : 'images/user.png';
        ?>
        <div class="mid-col-4">
            <div class="mid-col-top">
                <div class="mid-col-img"><a href="./profile.php?id=<?php 
        echo $val['id'];
        ?>
&edit_comment=true"><img src="<?php 
        echo $profile_pic;
        ?>
開發者ID:parakh-infobeans,項目名稱:parakh,代碼行數:31,代碼來源:user_rating_dashboard_custom.php


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