47 lines
2.0 KiB
Smarty
47 lines
2.0 KiB
Smarty
<div id="overview">
|
|
<form name="list_domain" method="get">
|
|
<select name=username onChange="this.form.submit()";>
|
|
<?php
|
|
if (count($list_admins) > 0) {
|
|
foreach ($list_admins as $row) {
|
|
echo '<option value="' . $row['username'] . '"';
|
|
if (isset($_GET['username']) && $_GET['username'] == $row['username']) echo ' selected';
|
|
echo ">" . $row['username'] . "</option>\n";
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
<input class="button" type="submit" name="go" value="<?php echo $PALANG['pOverview_button']; ?>" />
|
|
</form>
|
|
<form name="search" method="post" action="search.php">
|
|
<input type="textbox" name="search" size="25">
|
|
</form>
|
|
</div>
|
|
<?php
|
|
if (count($list_domains) > 0) {
|
|
echo "<table id=\"admin_table\">\n";
|
|
echo " <tr class=\"header\">\n";
|
|
echo " <td>" . $PALANG['pAdminList_domain_domain'] . "</td>\n";
|
|
echo " <td>" . $PALANG['pAdminList_domain_description'] . "</td>\n";
|
|
echo " <td>" . $PALANG['pAdminList_domain_aliases'] . "</td>\n";
|
|
echo " <td>" . $PALANG['pAdminList_domain_mailboxes'] . "</td>\n";
|
|
echo " <td>" . $PALANG['pAdminList_domain_modified'] . "</td>\n";
|
|
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>";
|
|
$active = ($row['active'] == 1) ? $PALANG['YES'] : $PALANG['NO'];
|
|
echo "<td><a href=\"domain.php?action=edit&domain=" . $row['domain'] . "\">" . $PALANG['edit'] . "</a></td>";
|
|
echo "<td><a href=\"delete.php?table=domain&domain=" . $row['domain'] . "\" onclick=\"return confirm ('" . $PALANG['confirm_domain'] . $PALANG['pAdminList_admin_domain'] . ": " . $row['domain'] . "')\">" . $PALANG['del'] . "</a></td>";
|
|
echo "</tr>\n";
|
|
}
|
|
|
|
echo "</table>\n";
|
|
}
|
|
?>
|