Esempio n. 1
0
<h2 class="heading">Pages</h2>
<?php 
$Table = new ifx_Table($TableData);
$Table->hideColumn('page_id')->hideColumn('published_revision_id')->hideColumn('pagerevision_id')->hideColumn('created')->hideColumn('url')->hideColumn('subtitle')->hideColumn('data')->hideColumn('metadesc')->setColumnTitle('updated', 'Updated', function ($Date) {
    return date('d-m-Y', mysql_to_unix($Date));
})->setColumnTitle('status', 'State', function ($State) {
    return $State ? 'Published' : 'Draft';
})->dynamicColumn('', function ($Row) {
    return '<a href="/site-admin/pages/edit/' . $Row->id() . '" class="fa fa-eye"></a><a confirm-href="/site-admin/pages/delete/' . $Row->id() . '" class="fa fa-remove"></a>';
});
echo $Table->display();
//echo $TableData->db->last_query();
?>
<a href="/site-admin/pages/create/" class="btn btn-primary">Create</a>
Esempio n. 2
0
<h2 class="heading">Page Data</h2>
<?php 
$Table = new ifx_Table($TableData);
$Table->hideColumn('pagedata_id')->setColumnTitle('key', 'Item')->hideColumn('data')->hideColumn('created')->hideColumn('group')->dynamicColumn('Content', function ($Row) {
    return substr(strip_tags($Row->data), 0, 100) . '...';
})->dynamicColumn('View', function ($Row) {
    return '<a href="/site-admin/pagedata/edit/' . $Row->key . '" class="fa fa-eye"></a>';
});
echo $Table->display();
Esempio n. 3
0
<h2 class="heading">Posts</h2>
<?php 
$Table = new ifx_Table($TableData);
$Table->hideColumn('blogpost_id')->hideColumn('published_revision_id')->hideColumn('blogpostrevision_id')->hideColumn('created')->hideColumn('url')->hideColumn('subtitle')->setColumnTitle('mainimage', '', function ($Url) {
    return '<img src="' . $Url . '"/>';
}, null, 'blogpost_id')->hideColumn('data')->hideColumn('metadesc')->setColumnTitle('updated', 'Updated', function ($Date) {
    return date('d-m-Y', $Date);
})->setColumnTitle('status', 'State', function ($State) {
    return $State ? 'Published' : 'Draft';
})->dynamicColumn('', function ($Row) {
    return '<a href="/site-admin/blog/edit/' . $Row->id() . '" class="fa fa-eye"></a><a confirm-href="/site-admin/blog/delete/' . $Row->id() . '" class="fa fa-remove"></a>';
});
echo $Table->display();
?>
<a href="/site-admin/blog/create/" class="btn btn-primary">New</a>