62 lines
2.9 KiB
Smarty
62 lines
2.9 KiB
Smarty
<div id="overview">
|
|
<h4><?php echo $LANG['Search_welcome'] . $fSearch; ?></h4>
|
|
<form name="search" method="post" action="search.php">
|
|
<input type="textbox" name="search">
|
|
</form>
|
|
</div>
|
|
<?php
|
|
if (count($tAlias) > 0) {
|
|
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";
|
|
|
|
for ($i = 0; $i < count($tAlias); $i++) {
|
|
if ((is_array($tAlias) and count($tAlias) > 0)) {
|
|
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
|
|
echo " <td>" . $tAlias[$i]['address'] . "</td>\n";
|
|
echo " <td>" . preg_replace("/,/", "<br>", $tAlias[$i]['goto']) . "</td>\n";
|
|
echo " <td>" . $tAlias[$i]['modified'] . "</td>\n";
|
|
echo " <td><a href=\"edit-alias.php?address=" . $tAlias[$i]['address'] . "&domain=" . $tAlias[$i]['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
|
|
echo " <td><a href=\"delete.php?delete=" . $tAlias[$i]['address'] . "&domain=" . $tAlias[$i]['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_aliases'] . ": ". $tAlias[$i]['address'] . "')\">" . $LANG['del'] . "</a></td>\n";
|
|
echo " </tr>\n";
|
|
}
|
|
}
|
|
|
|
echo "</table>\n";
|
|
}
|
|
|
|
if (count($tMailbox) > 0) {
|
|
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";
|
|
if ($CONF['quota'] == 'YES') echo " <td>" . $LANG['Overview_mailbox_quota'] . "</td>\n";
|
|
echo " <td>" . $LANG['Overview_mailbox_modified'] . "</td>\n";
|
|
echo " <td>" . $LANG['Overview_mailbox_active'] . "</td>\n";
|
|
echo " <td colspan=\"2\"> </td>\n";
|
|
echo " </tr>\n";
|
|
|
|
for ($i = 0; $i < count($tMailbox); $i++) {
|
|
if ((is_array($tMailbox) and count($tMailbox) > 0)) {
|
|
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
|
|
echo " <td>" . $tMailbox[$i]['username'] . "</td>\n";
|
|
echo " <td>" . $tMailbox[$i]['name'] . "</td>\n";
|
|
echo " <td><a href=\"edit-mailbox.php?username=" . $tMailbox[$i]['username'] . "&domain=" . $tMailbox[$i]['domain'] . "\">" . $LANG['edit'] . "</a></td>\n";
|
|
echo " <td><a href=\"delete.php?delete=" . $tMailbox[$i]['username'] . "&domain=" . $tMailbox[$i]['domain'] . "\"onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['Overview_get_mailboxes'] . ": ". $tMailbox[$i]['username'] . "')\">" . $LANG['del'] . "</a></td>\n";
|
|
echo " </tr>\n";
|
|
}
|
|
}
|
|
echo "</table>\n";
|
|
}
|
|
?>
|