opensmtpdadmin/templates/list-domains.tpl
2022-09-02 21:08:29 +00:00

29 lines
1.3 KiB
Smarty

<div id="overview">
<form name="search" method="post" action="search.php">
Search: <input type="textbox" name="search" size="25">
</form>
</div>
<?php
echo "<table id=\"overview_table\">\n";
echo " <tr>\n";
echo " <td colspan=\"5\"><h3>".$PALANG['pOverview_title']."</h3></td>";
echo " </tr>";
echo " <tr class=\"header\">\n";
echo " <td>" . $PALANG['pOverview_get_domain'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_get_aliases'] . "</td>\n";
echo " <td>" . $PALANG['pOverview_get_mailboxes'] . "</td>\n";
echo " </tr>\n";
foreach ($list_domains as $row) {
if ($row['aliases'] == 0) $row['aliases'] = $PALANG['pOverview_unlimited'];
if ($row['mailboxes'] == 0) $row['mailboxes'] = $PALANG['pOverview_unlimited'];
if ($row['aliases'] < 0) $row['aliases'] = $PALANG['pOverview_disabled'];
if ($row['mailboxes'] < 0) $row['mailboxes'] = $PALANG['pOverview_disabled'];
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
echo " <td><a href=\"list-virtuals.php?domain=" . $row['domain'] . "\">" . $row['domain'] . "</a></td>\n";
echo " <td>" . $row['alias_count'] . " / " . $row['aliases'] . "</td>\n";
echo " <td>" . $row['mailbox_count'] . " / " . $row['mailboxes'] . "</td>\n";
echo " </tr>\n";
}
echo "</table>\n";
?>