本文整理汇总了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>