本文整理汇总了PHP中rating::get_all_lead方法的典型用法代码示例。如果您正苦于以下问题:PHP rating::get_all_lead方法的具体用法?PHP rating::get_all_lead怎么用?PHP rating::get_all_lead使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rating
的用法示例。
在下文中一共展示了rating::get_all_lead方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rating
<?php
require_once 'config.php';
require_once 'class/rating.php';
require_once 'functions/functions.php';
$user_id = $_SESSION['userinfo']->id != '' ? $_SESSION['userinfo']->id : 0;
$renderObj = new rating();
$lead_list = $renderObj->get_all_lead($user_id);
if ($lead_list == 0) {
header('Location: profile.php?chk=1');
}
$request_list = $renderObj->get_user_request_details($user_id, '0');
require_once 'header.php';
?>
<div id="error_container"><div class="error-red"><div class="close_alert_rateme"></div></div></div>
<div class="overlay" id="overlay_rateme"></div>
<div class="mid-col-12">
<div class="mid-col-4">
<div class="mid-col-top relative">
<div class="gallery-wrap">
<div class="gallery clearfix">
<?php
$i = 0;
foreach ($lead_list as $user) {
$profile_pic = $user['google_picture_link'] != '' ? $user['google_picture_link'] . "?sz=100" : "images/user.png";
$i++;
?>
<div class="gallery__item" id="manager_<?php
echo $user['manager_id'];
?>
">
示例2: rating
<?php
require_once 'config.php';
require_once 'class/rating.php';
$flag = 1;
$update_profile_info = new rating();
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
//echo "<pre>";print_r($_POST);die;
if (isset($_POST['current_user']['update'])) {
$get_lead = $update_profile_info->get_all_lead($_POST["current_user"]['user_id'], $flag);
}
//echo "<pre>====";print_r($get_lead);die;
$record = $update_profile_info->assigned_role($_POST, $get_lead);
if ($record == true) {
header('Location: user_list_page.php?chk=7');
}
}
示例3: rating
<?php
require_once 'config.php';
require_once 'class/rating.php';
//echo "<pre>";print_r($_SESSION);exit;
$renderObj = new rating();
//$renderObj->sample_get_book_details_id(1);
$session_val = $renderObj->check_session();
if ($session_val == 1) {
$record = $renderObj->edit_work($_GET["id"]);
$record1 = $renderObj->get_all_lead($_SESSION['userinfo']->id);
if ($record != 0) {
$title = $record['title'] != '' ? $record['title'] : '';
$description = $record['description'] != '' ? $record['description'] : '';
//$mobile_number = ($record['mobile_number'] != '' ? $record['mobile_number'] : '');
}
require_once 'header.php';
?>
<!-- Page Content -->
<div class="container">
<div class="container">
<div class="row">
<!-- <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6 col-xs-offset-0 col-sm-offset-0 col-md-offset-3 col-lg-offset-3 toppad" > -->
<div class="col-xs-12 toppad" >
<div class="panel panel-info">
<div class="panel-heading">
示例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;
?>