first commit
This commit is contained in:
42
admin/templates/pages/page-articles-list.php
Normal file
42
admin/templates/pages/page-articles-list.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<div class="browse">
|
||||
<?
|
||||
if ( is_array( $this -> _articles ) )
|
||||
{
|
||||
?>
|
||||
<table class='table_browse'>
|
||||
<thead>
|
||||
<tr>
|
||||
<td class='title' style='width: 15px; text-align:center;'>Lp.</td>
|
||||
<td class='title'>Tytuł</td>
|
||||
<td class='title' style="text-align: center; width: 150px;">Data modyfikacji</td>
|
||||
<td class='title' style='width: 15px;'></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
foreach ( $this -> _articles as $article )
|
||||
{
|
||||
?>
|
||||
<tr>
|
||||
<td class='cell' style='text-align:center;'><?= ++$i;?>.</td>
|
||||
<td class='cell'><?= $article -> _values['title'];?></td>
|
||||
<td class="cell" style="text-align: center;">
|
||||
<?= date( 'Y-m-d H:i', strtotime( $article -> _values['date_modify'] ) );?>
|
||||
</td>
|
||||
<td class='cell'>
|
||||
<a href="./?page_type=page_articles&rw=edit&id=<?= $article -> _values['id'];?>">
|
||||
<span class='icon edit'></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?
|
||||
}
|
||||
else
|
||||
echo '<div id="alert" class="alert" style="margin: 0px; width: 100%; border: 0px; text-align: center;">Brak przypisanych artykułów.</div>';
|
||||
?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user