partia duużych zmian
[watermeloncms.git] / wtrmln / modules / views / news / table.php
blobf39d6f2d4c3700bded211afcc6f961d8a3176564
1 <?php if(!defined('WTRMLN_IS')) exit;
2 /********************************************************************
4 Watermelon CMS
6 Copyright 2009 Radosław Pietruszewski
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 version 2 as published by the Free Software Foundation.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 ********************************************************************/
24 <a href="$/">Panel Admina</a> &gt; Newsy
26 <div class="tr">
27 <big>
28 <a href="$/news/new/">Nowy news</a>
29 </big>
30 </div>
32 <table>
33 <tr>
34 <th>
35 Tytuł
36 </th>
37 <th>
38 Napisany
39 </th>
40 <th>
41 Autor
42 </th>
43 <th width="50">
44 Opcje
45 </th>
46 </tr>
47 <list object $newsList>
48 <tr>
49 <td>
50 <h3><a href="<?=WTRMLN_MAINURL?>news#news_<$id>"><$title></a></h3>
51 <br>
53 $text = strip_tags($text);
54 if(strlen($text) > 100)
56 echo nl2br(substr($text, 0, 100)) . '...';
58 else
60 echo nl2br($text);
63 </td>
64 <td class="tc">
65 <date $date>
66 </td>
67 <td class="tc">
68 <nick $author>
69 </td>
70 <td class="tc">
71 <a href="$/news/edit/<$id>">[edytuj]</a>
72 <a href="$/news/delete/<$id>">[usuń]</a>
73 </td>
74 </tr>
75 </list>
76 <tr>
77 <th>
78 Tytuł
79 </th>
80 <th>
81 Napisany
82 </th>
83 <th>
84 Autor
85 </th>
86 <th>
87 Opcje
88 </th>
89 </tr>
90 </table>
92 <div class="tr">
93 <big>
94 <a href="$/news/new/">Nowy news</a>
95 </big>
96 </div>