Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {block #content}
- <h2>Manage News</h2>
- <br />
- <div class="table-responsive col-md-9">
- <table class="table table-hover news">
- <thead>
- <tr>
- <th>News Title</th>
- <th>Body</th>
- <th>Creation Time</th>
- <th>Created By</th>
- <th>Action</th>
- </tr>
- </thead>
- <tbody>
- {foreach $allNews as $news}
- <tr>
- <td>{$news->title}</td>
- <td>{$news->body|truncate:30}</td>
- <td>{$news->date|date:'j.n.Y H:i:s'}</td>
- <td>{$news->author}</td>
- <td><a n:href="News:editNews $news->id"><i class="glyphicon glyphicon-pencil"> </i>Edit</a> | <a n:href="deleteNews! $news->id"><i class="glyphicon glyphicon-trash"> </i>Delete</a></td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- <a n:href="News:AddNews" class="btn btn-danger"><i class="glyphicon glyphicon-plus-sign"> </i><b>Add News</b></a>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment