本文整理汇总了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);
}
示例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
}
示例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;
}
示例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
示例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>
示例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>";