当前位置: 首页>>代码示例>>PHP>>正文


PHP Clients::getUsersList方法代码示例

本文整理汇总了PHP中Clients::getUsersList方法的典型用法代码示例。如果您正苦于以下问题:PHP Clients::getUsersList方法的具体用法?PHP Clients::getUsersList怎么用?PHP Clients::getUsersList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Clients的用法示例。


在下文中一共展示了Clients::getUsersList方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: AdminLogin

require_once SOURCE_ROOT . '/classes/class.adminlogin.php';
require_once SOURCE_ROOT . '/classes/excelwriter.php';
$objAdminLogin = new AdminLogin();
$objAdminLogin->isValidAdmin();
$objSessionRedirectUrl = new SessionRedirectUrl();
$objClients = new Clients();
$objPaging = new Paging();
//$varPageStart = $objPaging->getPageStartLimit($_GET['page'], $_SESSION['sessAdminPagingLimit']);
//$varLimit = $varPageStart.','.$_SESSION['sessAdminPagingLimit'];
$arrUsersFlds = array('pkClientID', 'ClientLoginID', 'ClientFirstName', 'ClientLastName', 'ClientPassword', 'ClientOrganizationName', 'ClientStreetAddress', 'ClientCity', 'ClientState', 'ClientZipCode', 'ClientPhoneNumber', 'ClientOrganizationType', 'ClientAddedDate', 'ClientModifiedDate', 'ClientApprovalStatus');
//$varPageStart = $objPaging->getPageStartLimit($_GET['page'], $_SESSION['sessAdminPagingLimit']);
//$varLimit = $varPageStart.','.$_SESSION['sessAdminPagingLimit'];
//$arrUsersRecord = $objGeneral->getRecord(TABLE_CLIENTS, $arrUsersFlds, '');
//$NumberofRows = count($arrUsersRecord);
//$varNumberPages = $objPaging->calculateNumberofPages($NumberofRows, $_SESSION['sessAdminPagingLimit']);
$arrUsersList = $objClients->getUsersList(TABLE_CLIENTS, $arrUsersFlds, $varLimit, '');
//print_r($arrproperty_surveyList);die;
$excel = new ExcelWriter("client_list.xls");
if ($excel == false) {
    echo $excel->error;
}
$main_array = array("<b>Client ID</b>", "<b>E-mail ID</b>", "<b>First Name</b>", "<b>Last Name</b>", "<b>Password</b>", "<b>Organization Name</b>", "<b>Street Address</b>", "<b>City</b>", "<b>State</b>", "<b>Zip</b>", "<b>Phone</b>", "<b>Organization Type</b>", "<b>Date Added</b>", "<b>Date Modified</b>", "<b>Status</b>");
$columnTitles = array_values($main_array);
$numColumns = count($columnTitles);
// $row += 2;
// $excel->writeCol('<b>Total Products<b>');
// $excel->writeCol(count($arrproperty_surveyList));
$row++;
$arrSeparator = array_fill(0, 24, '  ');
$excel->writeLine($arrSeparator);
$row++;
开发者ID:saurabhs4,项目名称:niches,代码行数:31,代码来源:client_export.php

示例2: Clients

$objClients = new Clients();
$objPaging = new Paging();
$varPageStart = $objPaging->getPageStartLimit($_GET['page'], $_SESSION['sessAdminPagingLimit']);
$varLimit = $varPageStart . ',' . $_SESSION['sessAdminPagingLimit'];
$arrUsersFlds = array('pkClientID', 'ClientLoginID', 'ClientPassword', 'ClientOrganizationName', 'ClientStreetAddress', 'ClientCity', 'ClientState', 'ClientZipCode', 'ClientPhoneNumber', 'ClientEmailAddress', 'ClientOrganizationType', 'ClientAddedDate', 'ClientModifiedDate', 'ClientApprovalStatus');
$varPageStart = $objPaging->getPageStartLimit($_GET['page'], $_SESSION['sessAdminPagingLimit']);
$varLimit = $varPageStart . ',' . $_SESSION['sessAdminPagingLimit'];
if ($_GET['status']) {
    $varWhere = 'ClientApprovalStatus = \'' . $_GET['status'] . '\'';
} else {
    $varWhere = '';
}
$arrUsersRecord = $objGeneral->getRecord(TABLE_CLIENTS, $arrUsersFlds, $varWhere);
$NumberofRows = count($arrUsersRecord);
$varNumberPages = $objPaging->calculateNumberofPages($NumberofRows, $_SESSION['sessAdminPagingLimit']);
$arrUsersList = $objClients->getUsersList(TABLE_CLIENTS, $arrUsersFlds, '', $varWhere);
$varStrContent = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>Client Listing</title>
	<link href="css/menu.css" rel="stylesheet" type="text/css" />
	<link href="css/common.css" rel="stylesheet" type="text/css" />
	<link href="css/form.css" rel="stylesheet" type="text/css" />
	<link href="css/tables.css" rel="stylesheet" type="text/css" />
	</head>
	
	<body>
	<form>
	<fieldset style="border:2px solid #ccc;">
<legend>Client list</legend>
开发者ID:saurabhs4,项目名称:niches,代码行数:31,代码来源:client_list_print.php


注:本文中的Clients::getUsersList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。