58 lines
2.5 KiB
Smarty
58 lines
2.5 KiB
Smarty
<?php if (count($list_domains) > 0) { ?>
|
|
<div id="overview">
|
|
<h4><?php echo $LANG['Search_welcome'] . $search; ?></h4>
|
|
<form name="search" method="post" action="search.php">
|
|
<input type="textbox" name="search">
|
|
</form>
|
|
</div>
|
|
<?php
|
|
if (count($list_alias) > 0) {
|
|
echo "<table id=\"alias_table\">";
|
|
echo "<tr>";
|
|
echo "<td colspan=\"5\"><h3>" . $LANG['List_virtual_alias_title'] . "</h3></td>";
|
|
echo "</tr>";
|
|
echo "<tr class=\"header\">";
|
|
echo "<td>" . $LANG['List_virtual_alias_address'] . "</td>";
|
|
echo "<td>" . $LANG['List_virtual_alias_goto'] . "</td>";
|
|
echo "<td>" . $LANG['List_modified'] . "</td>";
|
|
echo "<td colspan=\"2\"> </td>";
|
|
echo "</tr>";
|
|
|
|
foreach ($list_alias as $row) {
|
|
echo "<tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">";
|
|
echo "<td>" . $row['address'] . "</td>";
|
|
echo "<td>" . preg_replace("/,/", "<br>", $row['goto']) . "</td>";
|
|
echo "<td>" . $row['modified'] . "</td>";
|
|
echo "<td><a href=\"edit-alias.php?action=edit&address=" . $row['address'] . "&domain=" . $row['domain'] . "\">" . $LANG['edit'] . "</a></td>";
|
|
echo "<td><a href=\"delete.php?table=alias&delete=" . $row['address'] . "&domain=" . $row['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['List_domain_aliases'] . ": ". $row['address'] . "')\">" . $LANG['del'] . "</a></td>";
|
|
echo "</tr>";
|
|
}
|
|
echo "</table>";
|
|
}
|
|
|
|
if (count($list_mailbox) > 0) {
|
|
echo "<table id=\"mailbox_table\">";
|
|
echo "<tr>";
|
|
echo "<td colspan=\"7\"><h3>" . $LANG['List_virtual_mailbox_title'] . "</h3></td>";
|
|
echo "</tr>";
|
|
echo "<tr class=\"header\">";
|
|
echo "<td>" . $LANG['List_virtual_mailbox_username'] . "</td>";
|
|
echo "<td>" . $LANG['List_virtual_mailbox_name'] . "</td>";
|
|
echo "<td>" . $LANG['List_modified'] . "</td>";
|
|
echo "<td colspan=\"2\"> </td>";
|
|
echo "</tr>";
|
|
|
|
foreach ($list_mailbox as $row) {
|
|
echo "<tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">";
|
|
echo "<td>" . $row['username'] . "</td>";
|
|
echo "<td>" . $row['name'] . "</td>";
|
|
echo "<td>" . $row['modified'] . "</td>";
|
|
echo "<td><a href=\"edit-mailbox.php?action=edit&username=" . $row['username'] . "&domain=" . $row['domain'] . "\">" . $LANG['edit'] . "</a></td>";
|
|
echo "<td><a href=\"delete.php?table=mailbox&delete=" . $row['username'] . "&domain=" . $row['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['List_domain_mailboxes'] . ": ". $row['username'] . "')\">" . $LANG['del'] . "</a></td>";
|
|
echo "</tr>";
|
|
}
|
|
echo "</table>";
|
|
}
|
|
?>
|
|
<?php } ?>
|