2004-10-16 00:28:17 +00:00
|
|
|
<? /*
|
|
|
|
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.
|
|
|
|
*/ ?>
|
|
|
|
<?
|
2007-03-26 19:49:01 +00:00
|
|
|
$query = "select * from `orginfo` where `id`='".$_REQUEST['orgid']."'";
|
2004-10-16 00:28:17 +00:00
|
|
|
$row = mysql_fetch_assoc(mysql_query($query));
|
|
|
|
?>
|
|
|
|
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper" width="500">
|
|
|
|
<tr>
|
2007-03-26 19:49:01 +00:00
|
|
|
<td colspan="5" class="title"><? printf(_("%s's Administrators"), $row['O']); ?> (<a href="account.php?id=33&orgid=<?=$row['id']?>"><?=_("Add")?></a>)</td>
|
2004-10-16 00:28:17 +00:00
|
|
|
</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>
|
|
|
|
<?
|
2007-03-26 19:49:01 +00:00
|
|
|
$query = "select * from `org` where `orgid`='".intval($_REQUEST['orgid'])."'";
|
2004-10-16 00:28:17 +00:00
|
|
|
$res = mysql_query($query);
|
|
|
|
while($row = mysql_fetch_assoc($res))
|
|
|
|
{
|
2006-08-16 06:47:31 +00:00
|
|
|
$user = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='${row['memid']}'"));
|
2004-10-16 00:28:17 +00:00
|
|
|
?>
|
|
|
|
<tr>
|
2006-08-16 06:47:31 +00:00
|
|
|
<td class="DataTD"><a href='mailto:<?=$user['email']?>'><?=$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>
|
2007-02-23 21:19:50 +00:00
|
|
|
<? if($row[masteracc] == 0 || $_SESSION['profile']['orgadmin'] == 1) { ?>
|
2007-03-26 19:49:01 +00:00
|
|
|
<td class="DataTD"><a href="account.php?id=34&orgid=<?=$row['orgid']?>&memid=<?=$row['memid']?>"><?=_("Delete")?></a></td>
|
2004-10-16 00:28:17 +00:00
|
|
|
<? } else { ?>
|
|
|
|
<td class="DataTD">N/A</td>
|
|
|
|
<? } ?>
|
|
|
|
</tr>
|
|
|
|
<? } ?>
|
|
|
|
</table>
|