41 lines
1.7 KiB
PHP
41 lines
1.7 KiB
PHP
<?php
|
|
global $gdb;
|
|
|
|
$grid = new \grid( 'pp_contact_emails' );
|
|
$grid -> gdb_opt = $gdb;
|
|
|
|
$grid -> columns_view = [
|
|
[
|
|
'name' => 'Lp.',
|
|
'th' => [ 'class' => 'g-lp' ],
|
|
'td' => [ 'class' => 'g-center' ],
|
|
'autoincrement' => true
|
|
],
|
|
[
|
|
'name' => 'Data',
|
|
'db' => 'add_date',
|
|
'td' => [ ],
|
|
'th' => ['style' => 'width: 220px;' ],
|
|
'php' => 'echo date( "Y-m-d H:i", strtotime( "[add_date]" ) );',
|
|
'sort' => true
|
|
|
|
],
|
|
[
|
|
'name' => 'Email',
|
|
'db' => 'email',
|
|
'content' => '<a href="/admin/emails/email_details/id=[id]">[email]</a>',
|
|
'sort' => true ,
|
|
],
|
|
[
|
|
'name' => 'Temat',
|
|
'db' => 'title',
|
|
],
|
|
[
|
|
'name' => 'Szczegóły',
|
|
'content' => '<a href="/admin/emails/email_details/id=[id]">Szczegóły</a>',
|
|
'th' => [ 'class' => 'g-center', 'style' => 'width: 70px;' ],
|
|
'td' => [ 'class' => 'g-center' ]
|
|
]
|
|
];
|
|
|
|
echo $grid -> draw(); |