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