You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.8 KiB
Smarty
33 lines
1.8 KiB
Smarty
18 years ago
|
<?php
|
||
|
if (sizeof ($list_admins) > 0)
|
||
|
{
|
||
|
print "<table id=\"admin_table\">\n";
|
||
|
print " <tr class=\"header\">\n";
|
||
|
print " <td>" . $PALANG['pAdminList_admin_username'] . "</td>\n";
|
||
|
print " <td>" . $PALANG['pAdminList_admin_count'] . "</td>\n";
|
||
|
print " <td>" . $PALANG['pAdminList_admin_modified'] . "</td>\n";
|
||
|
print " <td>" . $PALANG['pAdminList_admin_active'] . "</td>\n";
|
||
|
print " <td colspan=\"2\"> </td>\n";
|
||
|
print " </tr>\n";
|
||
|
|
||
|
for ($i = 0; $i < sizeof ($list_admins); $i++)
|
||
|
{
|
||
|
if ((is_array ($list_admins) and sizeof ($list_admins) > 0))
|
||
|
{
|
||
|
print " <tr class=\"hilightoff\" onMouseOver=\"className='hilighton';\" onMouseOut=\"className='hilightoff';\">\n";
|
||
|
print " <td><a href=\"list-domain.php?username=" . $list_admins[$i] . "\">" . $list_admins[$i] . "</a></td>";
|
||
|
if ($admin_properties[$i]['domain_count'] == 'ALL') $admin_properties[$i]['domain_count'] = $PALANG['pAdminEdit_admin_super_admin'];
|
||
|
print " <td>" . $admin_properties[$i]['domain_count'] . "</td>";
|
||
|
print " <td>" . $admin_properties[$i]['modified'] . "</td>";
|
||
|
$active = ($admin_properties[$i]['active'] == 1) ? $PALANG['YES'] : $PALANG['NO'];
|
||
|
print " <td><a href=\"edit-active-admin.php?username=" . $list_admins[$i] . "\">" . $active . "</a></td>";
|
||
|
print " <td><a href=\"edit-admin.php?username=" . $list_admins[$i] . "\">" . $PALANG['edit'] . "</a></td>";
|
||
|
print " <td><a href=\"delete.php?table=admin&where=username&delete=" . $list_admins[$i] . "\" onclick=\"return confirm ('" . $PALANG['confirm'] . $PALANG['pAdminList_admin_username'] . ": " . $list_admins[$i] . "')\">" . $PALANG['del'] . "</a></td>";
|
||
|
print " </tr>\n";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
print "</table>\n";
|
||
|
}
|
||
|
?>
|