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