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-04 11:38:47 +02:00
|
|
|
echo "<table id=\"alias_table\">\n";
|
|
|
|
echo " <tr>\n";
|
|
|
|
echo " <td colspan=\"5\"><h3>".$LANG['Overview_alias_title']."</h3></td>";
|
|
|
|
echo " </tr>";
|
|
|
|
echo " <tr class=\"header\">\n";
|
|
|
|
echo " <td>" . $LANG['Overview_alias_address'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['Overview_alias_goto'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['Overview_alias_modified'] . "</td>\n";
|
|
|
|
echo " <td colspan=\"2\"> </td>\n";
|
|
|
|
echo " </tr>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
|
2022-09-04 20:44:32 +02:00
|
|
|
foreach ($list_alias as $row) {
|
|
|
|
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
|
|
|
|
echo " <td>" . $row['address'] . "</td>\n";
|
|
|
|
echo " <td>" . preg_replace("/,/", "<br>", $row['goto']) . "</td>\n";
|
|
|
|
echo " <td>" . $row['modified'] . "</td>\n";
|
|
|
|
echo " <td><a href=\"edit-alias.php?action=edit&address=" . $row['address'] . "&domain=" . $row['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
|
|
|
|
echo " <td><a href=\"delete.php?table=alias&delete=" . $row['address'] . "&domain=" . $row['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_aliases'] . ": ". $row['address'] . "')\">" . $LANG['del'] . "</a></td>\n";
|
|
|
|
echo " </tr>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
}
|
2022-09-04 11:38:47 +02:00
|
|
|
echo "</table>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
}
|
|
|
|
|
2022-09-04 20:44:32 +02:00
|
|
|
if (count($list_mailbox) > 0) {
|
2022-09-04 11:38:47 +02:00
|
|
|
echo "<table id=\"mailbox_table\">\n";
|
|
|
|
echo " <tr>\n";
|
|
|
|
echo " <td colspan=\"7\"><h3>".$LANG['Overview_mailbox_title']."</h3></td>";
|
|
|
|
echo " </tr>";
|
|
|
|
echo " <tr class=\"header\">\n";
|
|
|
|
echo " <td>" . $LANG['Overview_mailbox_username'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['Overview_mailbox_name'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['Overview_mailbox_modified'] . "</td>\n";
|
|
|
|
echo " <td colspan=\"2\"> </td>\n";
|
|
|
|
echo " </tr>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
|
2022-09-04 20:44:32 +02:00
|
|
|
foreach ($list_mailbox as $row) {
|
|
|
|
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
|
|
|
|
echo " <td>" . $row['username'] . "</td>\n";
|
|
|
|
echo " <td>" . $row['name'] . "</td>\n";
|
2022-09-04 20:50:21 +02:00
|
|
|
echo " <td>" . $row['modified'] . "</td>\n";
|
2022-09-04 20:44:32 +02:00
|
|
|
echo " <td><a href=\"edit-mailbox.php?action=edit&username=" . $row['username'] . "&domain=" . $row['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
|
|
|
|
echo " <td><a href=\"delete.php?table=mailbox&delete=" . $row['username'] . "&domain=" . $row['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_mailboxes'] . ": ". $row['username'] . "')\">" . $LANG['del'] . "</a></td>\n";
|
|
|
|
echo " </tr>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
}
|
2022-09-04 11:38:47 +02:00
|
|
|
echo "</table>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
}
|
|
|
|
?>
|