administracja menu górnym w panelu admina
[watermeloncms.git] / wtrmln / modules / views / menuedit / table.php
blob9115bace979384363d73f5a4179bbc312351f6e8
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; Menu
26 <div class="tr">
27 <big>
28 <a href="$/menuedit/new/">Nowe menu</a>
29 </big>
30 </div>
32 Edycja menu:
33 Głównego |
34 <a href="$/menuedit/top">Górnego</a> |
35 <a href="$/menuedit/pa">Panelu Admina</a>
37 <table>
38 <tr>
39 <th>Pozycja</th> <th>Nazwa</th> <th>Treść</th> <th>Warunek</th> <th>Opcje</th>
40 </tr>
41 <list object $menus>
42 <tr>
43 <td class="tc">
44 <a href="$/menuedit/setpos/<$id>/<? echo $position + 1 ?>" title="w dół">&darr;</a>
45 <$position>
46 <? if($position > 0){ ?><a href="$/menuedit/setpos/<$id>/<? echo $position - 1 ?>" title="w górę">&uarr;</a><? }else{ ?>&nbsp;<? } ?>
47 </td>
48 <td class="tc">
49 <$capt>
50 </td>
51 <td>
53 $text = htmlspecialchars($content);
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 <? echo htmlspecialchars($condition) ?>
66 </td>
67 <td class="tc">
68 <a href="$/menuedit/edit/<$id>">[edytuj]</a>
69 <a href="$/menuedit/delete/<$id>">[usuń]</a>
70 </td>
71 </tr>
72 </list>
73 <tr>
74 <th>Pozycja</th> <th>Nazwa</th> <th>Treść</th> <th>Warunek</th> <th>Opcje</th>
75 </tr>
76 </table>
78 <div class="tr">
79 <big>
80 <a href="$/menuedit/new/">Nowe menu</a>
81 </big>
82 </div>
84 pozycja ostatniego menu: <?php echo Config::getConf('max_menu'); ?>