opensmtpdadmin/templates/list-admin.tpl

24 lines
1.2 KiB
Smarty
Raw Normal View History

<?php
if (count($list_admins) > 0) {
2022-09-05 22:34:10 +02:00
echo "<table id=\"admin_table\">\n";
2022-09-06 09:40:45 +02:00
echo "<tr class=\"header\">\n";
echo "<td>" . $LANG['AdminList_admin_username'] . "</td>\n";
echo "<td>" . $LANG['AdminList_admin_count'] . "</td>\n";
echo "<td>" . $LANG['List_created'] . "</td>\n";
echo "<td>" . $LANG['List_modified'] . "</td>\n";
echo "<td colspan=\"2\">&nbsp;</td>\n";
echo "</tr>\n";
foreach ($list_admins as $row) {
2022-09-06 09:40:45 +02:00
echo "<tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
echo "<td><a href=\"list-domain.php?username=" . $row['username'] . "\">" . $row['username'] . "</a></td>";
echo "<td>" . $row['domain_count'] . "</td>";
echo "<td>" . $row['created'] . "</td>";
echo "<td>" . $row['modified'] . "</td>";
echo "<td><a href=\"admin.php?action=edit&username=" . $row['username'] . "\">" . $LANG['edit'] . "</a></td>";
echo "<td><a href=\"delete.php?table=admin&where=username&delete=" . $row['username'] . "\" onclick=\"return confirm ('" . $LANG['confirm'] . $LANG['AdminList_admin_username'] . ": " . $row['username'] . "')\">" . $LANG['del'] . "</a></td>";
echo "</tr>\n";
}
2022-09-05 22:34:10 +02:00
echo "</table>\n";
}
?>