Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {snippet articles}
- <br /> <br />
- <table class="table-article-create">
- <thead>
- <tr>
- <th>ID</th>
- <th><input type="checkbox" id="select_all"></th>
- <th>Title</th>
- <th>Content</th>
- <th>Author</th>
- <th>Date</th>
- <th>Category</th>
- </tr>
- </thead>
- <tbody>
- <tr n:foreach = "$articles as $article">
- <td>{$article->id}</td>
- <td><input class="checkbox" id="artCheckbox" type="checkbox" name="selectCheckbox" data-id="{$article->id}"></td>
- <td>{$article->title|striptags}</td>
- <td class="content">
- {!$article->content|substr:0,35|striptags}
- </td>
- <td>{$article->author ? $article->author:('Neznámý')}</td>
- <td>{$article->datetime}</td>
- <td>{($category = $article->ref('categories','categories_id')) ? $category->name:('Nezařazeno')}</td>
- </tr>
- </tbody>
- </table>
- {/snippet}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement