当前位置: 首页>>代码示例>>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;未经允许,请勿转载。