0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
postfixadmin/templates/fetchmail.tpl
Christian Boltz 2991a1334f fetchmail.tpl:
- change <h3> to <th>
- style "new fetchmail entry" link as button
- changes compared to Dale's patch:
  - do not change colspan +2 to +4 in <th>
  - use colspan=2 instead of 4 in empty cell of <th>
  (both changes were wrong and don't match the table body)

This commit is part of the huge cleanup patch by Dale Blount (lnxus@SF),
https://sourceforge.net/tracker/?func=detail&atid=937966&aid=3370510&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1111 a1433add-5e2c-0410-b055-b7f2511e0802
2011-07-22 21:19:49 +00:00

44 lines
1.6 KiB
Smarty

{if $edit || $new}
<div id="edit_form">
<form name="fetchmail" method="post" action="">
{$fetchmail_edit_row}
{else}
{assign var="colspan" value=$headers|@count}
<div id="overview">
<form name="frmOverview" method="post" action="">
<table id="log_table" border="0">
<tr>
<th colspan="{$colspan+2}">{$PALANG.pFetchmail_welcome}{$user_domains}</th>
</tr>
{#tr_header#}
{foreach from=$headers item=header}
<td>{$header}</td>
{/foreach}
<td colspan="2">&nbsp;</td>
</tr>
{if $tFmail}
{foreach from=$tFmail item=row}
{#tr_hilightoff#}
<td nowrap="nowrap">{$row.mailbox}&nbsp;</td>
<td nowrap="nowrap">{$row.src_server}&nbsp;</td>
<td nowrap="nowrap">{$row.src_auth}&nbsp;</td>
<td nowrap="nowrap">{$row.src_user}&nbsp;</td>
<td nowrap="nowrap">{$row.src_folder}&nbsp;</td>
<td nowrap="nowrap">{$row.poll_time}&nbsp;</td>
<td nowrap="nowrap">{$row.fetchall}&nbsp;</td>
<td nowrap="nowrap">{$row.keep}&nbsp;</td>
<td nowrap="nowrap">{$row.protocol}&nbsp;</td>
<td nowrap="nowrap">{$row.usessl}&nbsp;</td>
<td nowrap="nowrap">{$row.date}&nbsp;</td>
<td nowrap="nowrap">{$row.returned_text}--x--&nbsp;</td> <!-- Inhalt mit if auswerten! -->
<td><a href="fetchmail.php?edit={$row.id|escape:"url"}">{$PALANG.edit}</a></td>
<td><a href="fetchmail.php?delete={$row.id|escape:"url"}" onclick="return confirm('{$PALANG.confirm}{$PALANG.pMenu_fetchmail}:{$row.src_user}@{$row.src_server}')">{$PALANG.del}</a></td>
</tr>
{/foreach}
{/if}
</table>
</form>
</div>
<br /><a href='?new=1' class="button">{$PALANG.pFetchmail_new_entry}</a><br />
{/if}