本文整理匯總了PHP中client::getList方法的典型用法代碼示例。如果您正苦於以下問題:PHP client::getList方法的具體用法?PHP client::getList怎麽用?PHP client::getList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類client
的用法示例。
在下文中一共展示了client::getList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: listClients
function listClients()
{
$results = array();
$data = client::getList();
$results['clients'] = $data['results'];
$results['totalRows'] = $data['totalRows'];
$results['pageTitle'] = "Tutti i Clienti";
if (isset($_GET['error'])) {
if ($_GET['error'] == "clientNotFound") {
$results['errorMessage'] = "Errore: cliente non trovato.";
}
}
if (isset($_GET['status'])) {
if ($_GET['status'] == "changesSaved") {
$results['statusMessage'] = "Le tue modifiche sono state salvate.";
}
if ($_GET['status'] == "clientDeleted") {
$results['statusMessage'] = "Cliente eliminato.";
}
}
require TEMPLATE_PATH . "/admin/listClients.php";
}
示例2: array
?>
</b>. <a href="admin.php?action=logout" ? class="btn btn-primary" role="button">Log out</a></p>
</div>
</div>
<h2><?php
echo $results['pageTitle'];
?>
</h2>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="file" />
<select name="owner" id="owner" class="form-control">
<?php
$results = array();
$data = client::getList();
$results['clients'] = $data['results'];
$results['totalRows'] = $data['totalRows'];
foreach ($results['clients'] as $client) {
?>
<option value="<?php
echo $client->username;
?>
">
<?php
echo $client->name;
?>
<?php
echo $client->surname;
?>
</option>