Line | |
---|
1 | {literal} |
---|
2 | <style type="text/css"> |
---|
3 | #AM_table { |
---|
4 | width:100%; |
---|
5 | } |
---|
6 | #AM_table td { |
---|
7 | padding:5px; |
---|
8 | } |
---|
9 | #AM_table td:first-child { |
---|
10 | font-size:0.8em; |
---|
11 | width:200px; |
---|
12 | } |
---|
13 | .categoryActions { |
---|
14 | float:right; |
---|
15 | } |
---|
16 | </style> |
---|
17 | {/literal} |
---|
18 | |
---|
19 | |
---|
20 | <a name="messages"></a> |
---|
21 | |
---|
22 | <div class="content"> |
---|
23 | <dl style="margin-top:0;"> |
---|
24 | <dt>{'Messages'|@translate}</dt> |
---|
25 | <dd> |
---|
26 | <ul> |
---|
27 | <form method="post" action="{$AM_ADMIN}-new&redirect=home"> |
---|
28 | <fieldset> |
---|
29 | |
---|
30 | {if isset($messages)} |
---|
31 | <table class="table2" id="AM_table"> |
---|
32 | |
---|
33 | {foreach from=$messages item=message name=loop} |
---|
34 | <tr class="{if $smarty.foreach.loop.index is odd}row2{else}row1{/if}"> |
---|
35 | <td> |
---|
36 | <b>{$message.AUTHOR}</b> <br> <i>{$message.DATE}</i> |
---|
37 | </td> |
---|
38 | <td> |
---|
39 | <ul class="categoryActions"> |
---|
40 | {if isset($message.U_DELETE)} |
---|
41 | <li> |
---|
42 | <a href="{$message.U_DELETE}" title="{'delete'|@translate}"> |
---|
43 | <img src="{$themeconf.admin_icon_dir}/delete.png" class="button" alt="{'delete'|@translate}" /> |
---|
44 | </a> |
---|
45 | </li> |
---|
46 | {/if} |
---|
47 | {if isset($message.U_EDIT)} |
---|
48 | <li> |
---|
49 | <a href="{$message.U_EDIT}" title="{'edit'|@translate}"> |
---|
50 | <img src="{$themeconf.admin_icon_dir}/edit_s.png" width="16px" class="button" alt="{'edit'|@translate}" /> |
---|
51 | </a> |
---|
52 | </li> |
---|
53 | {/if} |
---|
54 | </ul> |
---|
55 | {$message.CONTENT} |
---|
56 | |
---|
57 | </td> |
---|
58 | </tr> |
---|
59 | {/foreach} |
---|
60 | |
---|
61 | </table> |
---|
62 | {/if} |
---|
63 | |
---|
64 | <div id="AM_link" align="center"> |
---|
65 | {if !isset($messages)} |
---|
66 | {'No message'|@translate}<br> |
---|
67 | {/if} |
---|
68 | |
---|
69 | <a href="{$AM_ADMIN}-new" onclick="jQuery('#AM_form').toggle();jQuery('#AM_link').toggle();return false;">{'Add a message'|@translate}</a> |
---|
70 | </div> |
---|
71 | |
---|
72 | <div style="display:none;width:50%;margin:10px 25%;text-align:center;" id="AM_form"> |
---|
73 | <textarea name="content" rows="4" style="width:100%;"></textarea> |
---|
74 | <input type="hidden" name="username" value="{$USERNAME}"/> |
---|
75 | <input class="submit" type="submit" value="{'Submit'|@translate}" name="new_submit"/> |
---|
76 | </div> |
---|
77 | |
---|
78 | </fieldset> |
---|
79 | </form> |
---|
80 | </ul> |
---|
81 | </dd> |
---|
82 | </dl> |
---|
83 | </div> |
---|
Note: See
TracBrowser
for help on using the repository browser.