Guest User

Untitled

a guest
Nov 14th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. {block #content}
  2.  
  3. <h2>Manage News</h2>
  4. <br />
  5. <div class="table-responsive col-md-9">
  6. <table class="table table-hover news">
  7. <thead>
  8. <tr>
  9. <th>News Title</th>
  10. <th>Body</th>
  11. <th>Creation Time</th>
  12. <th>Created By</th>
  13. <th>Action</th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. {foreach $allNews as $news}
  18. <tr>
  19. <td>{$news->title}</td>
  20. <td>{$news->body|truncate:30}</td>
  21. <td>{$news->date|date:'j.n.Y H:i:s'}</td>
  22. <td>{$news->author}</td>
  23. <td><a n:href="News:editNews $news->id"><i class="glyphicon glyphicon-pencil">&nbsp;</i>Edit</a> | <a n:href="deleteNews! $news->id"><i class="glyphicon glyphicon-trash">&nbsp;</i>Delete</a></td>
  24. </tr>
  25. {/foreach}
  26. </tbody>
  27. </table>
  28. <a n:href="News:AddNews" class="btn btn-danger"><i class="glyphicon glyphicon-plus-sign">&nbsp;</i><b>Add News</b></a>
  29. </div>
Advertisement
Add Comment
Please, Sign In to add comment