Changeset 12356 for extensions/Admin_Messages/template/admin_messages.tpl
- Timestamp:
- Oct 6, 2011, 10:03:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Admin_Messages/template/admin_messages.tpl
r9786 r12356 1 1 {literal} 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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 17 {/literal} 18 18 … … 21 21 22 22 <div class="content"> 23 24 <dt>{'AM_messages'|@translate}</dt>25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 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}/plug_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.icon_dir}/edit.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 63 64 65 66 {'AM_no_messages'|@translate}<br>67 64 <div id="AM_link" align="center"> 65 {if !isset($messages)} 66 {'No message'|@translate}<br> 67 {/if} 68 68 69 <a href="{$AM_ADMIN}-new" onclick="jQuery('#AM_form').toggle();jQuery('#AM_link').toggle();return false;">{'AM_new_tab'|@translate}</a>70 71 72 73 74 75 76 77 78 79 80 81 82 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 83 </div>
Note: See TracChangeset
for help on using the changeset viewer.