opensmtpdadmin/templates/search.tpl

61 lines
2.8 KiB
Smarty
Raw Normal View History

2022-08-18 14:01:52 +02:00
<div id="overview">
2022-09-04 11:38:47 +02:00
<h4><?php echo $LANG['Search_welcome'] . $fSearch; ?></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
if (count($tAlias) > 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\">&nbsp;</td>\n";
echo " </tr>\n";
2022-08-18 14:01:52 +02:00
for ($i = 0; $i < count($tAlias); $i++) {
if ((is_array($tAlias) and count($tAlias) > 0)) {
2022-09-04 11:38:47 +02:00
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";
2022-09-04 16:04:56 +02:00
echo " <td><a href=\"delete.php?table=alias&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";
2022-09-04 11:38:47 +02:00
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
}
if (count($tMailbox) > 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>" . $LANG['Overview_mailbox_active'] . "</td>\n";
echo " <td colspan=\"2\">&nbsp;</td>\n";
echo " </tr>\n";
2022-08-18 14:01:52 +02:00
for ($i = 0; $i < count($tMailbox); $i++) {
if ((is_array($tMailbox) and count($tMailbox) > 0)) {
2022-09-04 11:38:47 +02:00
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";
2022-09-04 16:04:56 +02:00
echo " <td><a href=\"delete.php?table=mailbox&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";
2022-09-04 11:38:47 +02:00
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
}
?>