コード例 #1
0
ファイル: v_view.php プロジェクト: eok8177/shopCMS
	</div>
	<div class="span8">

		<h3>Заказы клиента</h3>
		<?php 
// Create table body
$table_body = [];
foreach ($orders as $o) {
    $table_body[] = [$o->id, HTML::anchor(Route::url('b_shop', ['controller' => 'orders', 'action' => 'edit', 'id' => $o->id]), '№' . $o->number, ['data-toggle' => 'tooltip', 'data-original-title' => 'Редактировать заказ']), Format::price($o->total), Date::format($o->created, Date::FULL), $o->status->get_title(), TB::act($request->routename, ['controller' => $request->controller, 'action' => 'edit', 'id' => $o->id]) . TB::act($request->routename, ['controller' => $request->controller, 'action' => 'delete', 'id' => $o->id])];
}
// Create table
echo TB_Table::open();
echo TB_Table::colgroup([50, 100, 0, 0, 0]);
echo TB_Table::headers_sorter(['id' => ['string', __('#ID')], 'number' => ['string', __('Номер')], 'total' => ['string', __('Сумма')], 'created' => ['string', __('Дата заказа')], '_status' => ['none', __('Статус')], '_action' => ['none', __('settings.actions')]]);
echo TB_Table::body($table_body);
echo TB_Table::close();
?>

		<span class="badge badge-info">
			Заказов: <?php 
echo $total_items;
?>
		</span>
		<br>
		<span class="badge badge-info">
			Cумма заказов: <?php 
echo Format::price($total_sum);
?>
		</span>

	</div>
コード例 #2
0
ファイル: v_deleted.php プロジェクト: eok8177/shopCMS
 * @var $pag          object  object Pagination
 * @var $module       string  current module name
 */
?>

<?php 
echo TB::btns_top([Route::url($request->routename, ['controller' => $request->controller, 'action' => 'add']) => __('shop.product_add'), Route::url($request->routename, ['controller' => $request->controller, 'action' => 'list']) => __('shop.product_manager')]);
?>

<?php 
if ($total_items > 0) {
    ?>

	<table class="table table-striped table-hover">
		<?php 
    echo TB_Table::head(['title' => __('settings.title'), 'price' => __('shop.product_price'), 'status' => __('shop.product_status'), 'enabled' => __('shop.product_enabled'), '_actions' => __('settings.actions')], true);
    ?>
		<?php 
    foreach ($obj as $o) {
        ?>
			<tr>
				<td>
					<?php 
        echo TB::act($request->routename, ['controller' => $request->controller, 'action' => 'edit', 'id' => $o->id], $o->title);
        ?>
					<br>
					<?php 
        if ($request->action != 'filter') {
            ?>
						<small>
							<span class="text-muted">
コード例 #3
0
ファイル: v_list.php プロジェクト: eok8177/shopCMS
 * @var $pag          object  object Pagination
 * @var $module       string  current module name
 */
?>

<?php 
echo TB::btns_top([Route::url($request->routename, ['controller' => $request->controller, 'action' => 'add']) => __('shop.category_add'), Route::url($request->routename, ['controller' => $request->controller, 'action' => 'order']) => $total_items > 1 ? __('settings.change_order') : '', Route::url($request->routename, ['controller' => $request->controller, 'action' => 'list']) => __('settings.sort_reset')]);
?>

<?php 
if ($total_items > 0) {
    ?>

	<table class="table table-striped table-hover">
		<?php 
    echo TB_Table::head(['title' => __('settings.title'), '_actions' => __('settings.actions')], true);
    ?>
		<?php 
    foreach ($obj as $o) {
        ?>
			<tr>
				<td>
					<?php 
        echo TB::act($request->routename, ['controller' => $request->controller, 'action' => 'edit', 'id' => $o->id], $o->title);
        ?>
				</td>
				<td class="icon_actions">
					<?php 
        if ($settings_mod['max_nested'] > 1 and $o->level < $settings_mod['max_nested'] - 1) {
            ?>
						<?php 
コード例 #4
0
ファイル: v_list.php プロジェクト: eok8177/shopCMS
?>
:</label>
			<?php 
echo $sel_category;
?>
		</div>
	</form>
</div>

<?php 
if ($total_items > 0) {
    ?>

	<table class="table table-striped table-hover">
		<?php 
    echo TB_Table::head(['title' => __('settings.title'), 'date' => __('publications.page_date'), 'enabled' => __('settings.status'), '_actions' => __('settings.actions')], $settings_mod['max_nested']);
    ?>
		<?php 
    foreach ($obj as $o) {
        ?>
			<tr>
				<td>
					<?php 
        echo TB::act($request->routename, ['controller' => $request->controller, 'action' => 'edit', 'id' => $o->id], $o->title);
        ?>
					<?php 
        if ($request->action != 'filter') {
            ?>
						<br>
						<small>
							<span class="text-muted">