Improve admin style

Improve admin style
This commit is contained in:
Danang Probo Sayekti 2014-02-10 12:27:46 +07:00
commit 5389b38e4d
5 changed files with 41 additions and 19 deletions

View file

@ -1,22 +1,22 @@
<h2 class="post-index"><?php echo $heading?></h2>
<?php if(!empty($posts)) {?>
<table class="post-list">
<tr><th>Title</th><th>Published</th><th>Author</th><th>Tag</th><th>Operations</th></tr>
<tr class="head"><th>Title</th><th>Published</th><th>Author</th><th>Tag</th><th>Operations</th></tr>
<?php $i = 0; $len = count($posts);?>
<?php foreach($posts as $p):?>
<?php
if ($i == 0) {
$class = 'first';
$class = 'item first';
}
elseif ($i == $len - 1) {
$class = 'last';
$class = 'item last';
}
else {
$class = '';
$class = 'item';
}
$i++;
?>
<tr>
<tr class="<?php echo $class ?>">
<td><a target="_blank" href="<?php echo $p->url ?>"><?php echo $p->title ?></a></td>
<td><?php echo date('d F Y', $p->date) ?></td>
<td><a target="_blank" href="<?php echo $p->authorurl ?>"><?php echo $p->author ?></a></td>