50 lines
1.9 KiB
PHP
50 lines
1.9 KiB
PHP
|
<? /*
|
||
|
Copyright (C) 2004 by Duane Groth <duane_at_CAcert_dot_org>
|
||
|
|
||
|
This file is part of CAcert.
|
||
|
|
||
|
CAcert has been released under the CAcert Source License
|
||
|
which can be found included with these source files or can
|
||
|
be downloaded from the internet from the following address:
|
||
|
http://www.cacert.org/src-lic.php
|
||
|
|
||
|
CAcert is distributed WITHOUT ANY WARRANTY; without even
|
||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||
|
PARTICULAR PURPOSE. See the License for more details.
|
||
|
*/ ?>
|
||
|
<?
|
||
|
$query = "select * from `orginfo` where `id`='".$_SESSION[_config][orgid]."'";
|
||
|
$row = mysql_fetch_assoc(mysql_query($query));
|
||
|
?>
|
||
|
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper" width="500">
|
||
|
<tr>
|
||
|
<td colspan="5" class="title"><? printf(_("%s's Administrators"), $row[O]); ?> (<a href="account.php?id=33"><?=_("Add")?></a>)</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="DataTD"><?=_("Administrator")?></td>
|
||
|
<td class="DataTD"><?=_("Master Account")?></td>
|
||
|
<td class="DataTD"><?=_("Department")?></td>
|
||
|
<td class="DataTD"><?=_("Comments")?></td>
|
||
|
<td class="DataTD"><?=_("Delete")?></td>
|
||
|
</tr>
|
||
|
<?
|
||
|
$query = "select * from `org` where `orgid`='".$_SESSION[_config][orgid]."'";
|
||
|
$res = mysql_query($query);
|
||
|
while($row = mysql_fetch_assoc($res))
|
||
|
{
|
||
|
$user = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='$row[memid]'"));
|
||
|
?>
|
||
|
<tr>
|
||
|
<td class="DataTD"><?=$user[fname]?> <?=$user[lname]?></a></td>
|
||
|
<td class="DataTD"><?=$row[masteracc]?></a></td>
|
||
|
<td class="DataTD"><?=$row[OU]?></a></td>
|
||
|
<td class="DataTD"><?=$row[comments]?></a></td>
|
||
|
<? if($row[masteracc] == 0 || $_SESSION['profile']['admin'] == 1) { ?>
|
||
|
<td class="DataTD"><a href="account.php?id=34&orgid=<?=$_SESSION[_config][orgid]?>&memid=<?=$row[memid]?>"><?=_("Delete")?></a></td>
|
||
|
<? } else { ?>
|
||
|
<td class="DataTD">N/A</td>
|
||
|
<? } ?>
|
||
|
</tr>
|
||
|
<? } ?>
|
||
|
</table>
|