2022-08-18 14:01:52 +02:00
|
|
|
<div id="overview">
|
2022-09-02 23:06:08 +02:00
|
|
|
<form name="list_domain" method="get">
|
|
|
|
<select name=username onChange="this.form.submit()";>
|
2022-08-18 14:01:52 +02:00
|
|
|
<?php
|
2022-09-02 23:06:08 +02:00
|
|
|
if (count($list_admins) > 0) {
|
|
|
|
foreach ($list_admins as $row) {
|
|
|
|
echo '<option value="' . $row['username'] . '"';
|
2022-09-04 13:10:23 +02:00
|
|
|
if (isset($username) && $username == $row['username']) echo ' selected';
|
2022-09-02 23:06:08 +02:00
|
|
|
echo ">" . $row['username'] . "</option>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
2022-09-03 11:30:40 +02:00
|
|
|
<input class="button" type="submit" name="go" value="<?php echo $LANG['Overview_button']; ?>" />
|
2022-08-18 14:01:52 +02:00
|
|
|
</form>
|
|
|
|
<form name="search" method="post" action="search.php">
|
2022-09-02 23:06:08 +02:00
|
|
|
<input type="textbox" name="search" size="25">
|
2022-08-18 14:01:52 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
if (count($list_domains) > 0) {
|
2022-09-02 23:06:08 +02:00
|
|
|
echo "<table id=\"admin_table\">\n";
|
|
|
|
echo " <tr class=\"header\">\n";
|
2022-09-03 11:30:40 +02:00
|
|
|
echo " <td>" . $LANG['AdminList_domain_domain'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['AdminList_domain_description'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['AdminList_domain_aliases'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['AdminList_domain_mailboxes'] . "</td>\n";
|
|
|
|
echo " <td>" . $LANG['AdminList_domain_modified'] . "</td>\n";
|
2022-09-02 23:06:08 +02:00
|
|
|
echo " <td colspan=\"2\"> </td>\n";
|
|
|
|
echo " </tr>\n";
|
|
|
|
foreach ($list_domains as $row) {
|
|
|
|
echo " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
|
|
|
|
echo "<td><a href=\"list-virtual.php?domain=" . $row['domain'] . "\">" . $row['domain'] . "</a></td>";
|
|
|
|
echo "<td>" . $row['description'] . "</td>";
|
|
|
|
echo "<td>" . $row['alias_count'] . " / " . $row['aliases'] . "</td>";
|
|
|
|
echo "<td>" . $row['mailbox_count'] . " / " . $row['mailboxes'] . "</td>";
|
|
|
|
echo "<td>" . $row['modified'] . "</td>";
|
2022-09-03 11:30:40 +02:00
|
|
|
echo "<td><a href=\"domain.php?action=edit&domain=" . $row['domain'] . "\">" . $LANG['edit'] . "</a></td>";
|
|
|
|
echo "<td><a href=\"delete.php?table=domain&domain=" . $row['domain'] . "\" onclick=\"return confirm ('" . $LANG['confirm_domain'] . $LANG['AdminList_admin_domain'] . ": " . $row['domain'] . "')\">" . $LANG['del'] . "</a></td>";
|
2022-09-02 23:06:08 +02:00
|
|
|
echo "</tr>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
}
|
|
|
|
|
2022-09-02 23:06:08 +02:00
|
|
|
echo "</table>\n";
|
2022-08-18 14:01:52 +02:00
|
|
|
}
|
|
|
|
?>
|