name . ' ' . $this->surname; ?>
Łączne zakupy w wysokości: total_spent; ?> zł
global $gdb;
$grid = new \grid( 'pp_shop_orders' );
$grid -> gdb_opt = $gdb;
$grid->src = $this->orders_info;
$grid -> debug = true;
$grid -> order = [ 'column' => 'date_order', 'type' => 'DESC' ];
$grid -> search = [];
$grid -> columns_view = [
[
'name' => 'Lp.',
'th' => [ 'class' => 'g-lp' ],
'td' => [ 'class' => 'g-center' ],
'autoincrement' => true
], [
'name' => 'Data zamówienia',
'db' => 'date_order',
'td' => [ 'class' => 'g-center' ],
'th' => [ 'class' => 'g-center', 'style' => 'width: 175px;' ],
], [
'name' => 'Wartość',
'db' => 'summary',
'td' => [ 'class' => 'g-right' ],
'th' => [ 'class' => 'g-right', 'style' => 'width: 150px;' ],
'php' => 'echo number_format( "[summary]", 2, ".", " " ) . " zł";',
], [
'name' => 'Typ płatności',
'db' => 'payment_method',
'th' => [ 'style' => 'width: 350px;' ],
], [
'name' => 'Rodzaj transportu',
'db' => 'transport',
'th' => [ 'style' => 'width: 350px;' ],
], [
'name' => 'Wiadomość',
'db' => 'message',
],
];
echo $grid -> draw();
?>