本文整理汇总了PHP中Order::getOrdersList方法的典型用法代码示例。如果您正苦于以下问题:PHP Order::getOrdersList方法的具体用法?PHP Order::getOrdersList怎么用?PHP Order::getOrdersList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Order
的用法示例。
在下文中一共展示了Order::getOrdersList方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionIndex
/**
* Order manage
* @return [type] [description]
*/
public function actionIndex()
{
// check access
self::checkAdmin();
$ordersList = Order::getOrdersList();
require_once ROOT . '/views/admin_order/index.php';
return true;
}
示例2: actionIndex
/**
* Action для страницы "Управление заказами"
*/
public function actionIndex()
{
// Проверка доступа
self::checkAdmin();
// Получаем список заказов
$ordersList = Order::getOrdersList();
// Подключаем вид
require_once ROOT . '/views/admin_order/index.php';
return true;
}
示例3: foreach
<div class="col-md-12">
<h1>Liste des commandes</h1>
<table class="table table-striped">
<thead>
<th>Membre</th>
<th>Date</th>
<th>Prix HT</th>
<th>Prix TTC</th>
<th>Méthode d'envoi</th>
<th>Téléphone</th>
<th></th>
</thead>
<?php
foreach (Order::getOrdersList() as $order) {
echo '<tr data-id="' . $order->id . '">';
echo '<td>' . Member::getMemberById($order->member)->first_name . ' ' . Member::getMemberById($order->member)->last_name . '</td>';
echo '<td>' . $order->date . '</td>';
echo '<td>' . $order->paid_price . ' €</td>';
echo '<td>' . $order->paid_price_vat . ' €</td>';
echo '<td>' . $order->sent_method . '</td>';
echo '<td>' . $order->phones . '</td>';
echo '<td><a href="#" title="Supprimer" data-toggle="tooltip" data-action="delete" title="Supprimer"><i class="fa fa-trash"></i></a></td>';
echo '</tr>';
}
?>
</table>
</div>
<script>
$('[data-action="delete"]').click(function(e) {
e.preventDefault();
示例4:
}
?>
<div class="alert alert-danger" role="alert">
Sono stati riscontrati dei problemi nel salvataggio dell' ordine <a href="register.php" class="alert-link">Riprova qui</a>
</div>
<?php
}
} else {
?>
<?php
}
?>
<h1 class="well">Ordini inoltrati</h1>
<?php
Order::getOrdersList();
?>
</div> <!-- /container -->
<?php
include_once 'assets/tmpl/footer.inc.php';
?>
</body></html>
示例5:
<?php
} else {
?>
<div class="alert alert-danger" role="alert">
Sono stati riscontrati dei problemi nella cancellazione</a>
</div>
<?php
}
?>
<a class="btn btn-lg btn-primary" href="ordini.php" role="button">Fai un nuovo ordine »</a>
<h1 class="well">Ordini inoltrati</h1>
<?php
Order::getOrdersList(User::loggedId());
?>
</div> <!-- /container -->
<?php
include_once 'assets/tmpl/footer.inc.php';
?>
</body></html>
示例6: actionIndex
/**
* Action для страницы "Управление заказами"
*/
public function actionIndex()
{
$ordersList = Order::getOrdersList();
require_once ROOT . '/views/admin_order/index.php';
return true;
}