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


PHP users::getUsers方法代碼示例

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


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

示例1: pay_place_top

function pay_place_top($catalog = 0, $caruselTop)
{
    global $DB, $session;
    if ($catalog == 0) {
        $yaM = "yaCounter6051055.reachGoal('main_carousel_ref');";
    } else {
        $yaM = "yaCounter6051055.reachGoal('cat_carousel_ref');";
    }
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/pay_place.php';
    $payPlace = new pay_place($catalog);
    $ppAds = $payPlace->getUserPlaceNew();
    if (is_array($ppAds)) {
        foreach ($ppAds as $ppAd) {
            $pp_uids[] = $ppAd['uid'];
        }
        $pp_uids = array_unique($pp_uids);
        require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/users.php';
        $usrs = new users();
        $pp_result = $usrs->getUsers('uid IN (' . implode(',', array_values($pp_uids)) . ')');
        foreach ($pp_result as $k => $v) {
            $toppay_usr[$v['uid']] = $v;
        }
        $pp_h = $payPlace->getAllInfo($pp_uids);
    }
    $not_load_info = true;
    ob_start();
    include $_SERVER['DOCUMENT_ROOT'] . '/templates/pay_place.php';
    $html = antispam(str_replace(array("\r", "\n"), '', ob_get_clean()));
    $aRes['success'] = true;
    $aRes['html'] = iconv('windows-1251', 'UTF-8', $html);
    echo json_encode($aRes);
}
開發者ID:kapai69,項目名稱:fl-ru-damp,代碼行數:32,代碼來源:blocks.server.php

示例2: users

<?php

if (!$not_load_info) {
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/pay_place.php';
    $payPlace = new pay_place($catalog);
    $pp_uids = $payPlace->getUserPlace();
    if (is_array($pp_uids)) {
        require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/users.php';
        $usrs = new users();
        $pp_result = $usrs->getUsers('uid IN (' . implode(',', array_values($pp_uids)) . ')');
        foreach ($pp_result as $k => $v) {
            $toppay_usr[$v['uid']] = $v;
        }
        $pp_h = $payPlace->getAllInfo($pp_uids);
    }
}
$uid = get_uid(false);
$is_show_tizer = false;
//$uid && !is_emp();
?>
<div id="pay_place_carusel" class="b-carusel b-carusel_width_full" style="top:<?php 
echo $caruselTop;
?>
px">
    <div class="b-carusel__body">
        <div class="b-carusel__inner">
            <ul id="top-payed" class="b-carusel__list <?php 
if ($is_show_tizer) {
    ?>
b-carusel__list_width_3196<?php 
}
開發者ID:kapai69,項目名稱:fl-ru-damp,代碼行數:31,代碼來源:pay_place.php

示例3: users

$action = $_REQUEST['action'];
include_once MODELS_ADMIN . "/" . $model . "_model.php";
switch (strtoupper($action)) {
    case 'ADD':
        if (isset($_REQUEST['btn_submit']) && $_REQUEST['btn_submit'] == 'save') {
            $objUsr = new users();
            $objUsr->setUsers($_REQUEST);
            $objComm->redirect('index.php?model=' . $model);
        }
        break;
    case 'VIEW':
    case 'EDIT':
        if (isset($_REQUEST['btn_submit']) && $_REQUEST['btn_submit'] == 'update') {
            $objUsr = new users();
            $objUsr->setUsers($_REQUEST);
            $objComm->redirect('index.php?model=' . $model . '&action=edit&id=' . $_REQUEST['pk_id']);
        } else {
            $objUsr = new users();
            $row = $objUsr->getUsers($_REQUEST['id']);
        }
        break;
    case 'DELETE':
        $objUsr = new users();
        $objUsr->delUsers($_REQUEST['id']);
        $objComm->redirect('index.php?model=' . $model);
        break;
    default:
        $objUsr = new users();
        $Records = $objUsr->getAllUsers();
        break;
}
開發者ID:business-expert,項目名稱:custompm,代碼行數:31,代碼來源:users.php

示例4: Exception

		<script type="text/javascript">
			$(function() {
				$("#formTypeSelector").modal("show");
			});
		</script>');
}
if (is_empty(localVars::get("submitButton"))) {
    localVars::add("submitButton", "Submit");
}
if (is_empty(localVars::get("updateButton"))) {
    localVars::add("updateButton", "Update");
}
if (!isnull($formID)) {
    try {
        // Setup permissions stuff.
        if (($users = users::getUsers()) === FALSE) {
            throw new Exception("Error getting users");
        }
        if (($availableUsersList = listGenerator::availableUsersList($users)) === FALSE) {
            throw new Exception("Error getting users list.");
        }
        localvars::add("availableUsersList", $availableUsersList);
        // Setup Navigation stuff.
        $metadataForms = array();
        $metadataFormsEven = NULL;
        $metadataFormsOdd = NULL;
        $selectedMetadataForms = "";
        if (($metadataForms = forms::getObjectFormMetaForms($formID)) === FALSE) {
            throw new Exception("Error getting linked metadata forms.");
        }
        // Now loop through all the metadata forms building their HTML and putting it in the right place
開發者ID:PseudoAj,項目名稱:mfcs,代碼行數:31,代碼來源:index.php

示例5: users

<?php 
require_once 'shab.php';
require_once 'class_users.php';
?>
 <div class="container">  
 <?php 
if (isset($_SESSION['valid_user'])) {
    $user_email = $_SESSION['valid_user'];
    echo '<h1>Люди</h1>';
    $my = new users();
    $my->getUsers() . '<br/>';
} else {
    echo '<p>Вы не вошли в систему.</p>';
}
echo '<a href="index.php">На главную страницу</a>';
?>
 </div>
開發者ID:eka13,項目名稱:git-s,代碼行數:17,代碼來源:users.php

示例6: users

				
						<span class="clickspot" onclick="search()">Search</span>
						
						
						 		
					</div>
					<div id="divStatus" class="status">
						status message
					</div>
					<div id="divContent">
						Content space
						<span class="clickspot">click here </span>
						<?php 
include_once "users.php";
$obj = new users();
$obj->getUsers();
echo "<table border='1' id='userTable'>";
echo "<tr style='background-color:olive; color:white; text-align:center'><td></td><td>User Name</td><td>User Type</td><td>User Id</td><td></td></tr>";
$row = $obj->fetch();
$style = "";
$i = 0;
while ($row) {
    if ($i % 2 == 0) {
        $style = "style='background-color:Khaki'";
    } else {
        $style = "";
    }
    echo "<tr {$style} >";
    echo "<td><input type='checkbox' id=''users[]' name='users[]' value='{$row['user_id']}'></td>";
    echo "<td><span class='clickspot'>{$row['user_name']}</span></td>";
    echo "<td>{$row['user_type']}</td> <td>{$row['user_id']}</td>";
開發者ID:Wainaina3,項目名稱:pos,代碼行數:30,代碼來源:viewUsers.php


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