opensmtpdadmin/templates/search.tpl

56 lines
2.5 KiB
Smarty
Raw Normal View History

2022-08-18 14:01:52 +02:00
<div id="overview">
2022-09-04 20:44:32 +02:00
<h4><?php echo $LANG['Search_welcome'] . $search; ?></h4>
2022-08-18 14:01:52 +02:00
<form name="search" method="post" action="search.php">
<input type="textbox" name="search">
</form>
</div>
<?php
2022-09-04 20:44:32 +02:00
if (count($list_alias) > 0) {
2022-09-05 20:29:41 +02:00
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\">&nbsp;</td>";
2022-09-04 11:38:47 +02:00
echo " </tr>";
2022-08-18 14:01:52 +02:00
2022-09-04 20:44:32 +02:00
foreach ($list_alias as $row) {
2022-09-05 20:29:41 +02:00
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>";
2022-08-18 14:01:52 +02:00
}
2022-09-05 20:29:41 +02:00
echo "</table>";
2022-08-18 14:01:52 +02:00
}
2022-09-04 20:44:32 +02:00
if (count($list_mailbox) > 0) {
2022-09-05 20:29:41 +02:00
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\">&nbsp;</td>";
2022-09-04 11:38:47 +02:00
echo " </tr>";
2022-08-18 14:01:52 +02:00
2022-09-04 20:44:32 +02:00
foreach ($list_mailbox as $row) {
2022-09-05 20:29:41 +02:00
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>";
2022-08-18 14:01:52 +02:00
}
2022-09-05 20:29:41 +02:00
echo "</table>";
2022-08-18 14:01:52 +02:00
}
?>