Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-stable
Commits
4f61c01a
Commit
4f61c01a
authored
Oct 17, 2001
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement a couple of Mac's suggestions.
parent
11950a44
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
1 deletion
+77
-1
www/editgroup.php3
www/editgroup.php3
+8
-0
www/showuser.php3
www/showuser.php3
+67
-0
www/showuser_list.php3
www/showuser_list.php3
+2
-1
No files found.
www/editgroup.php3
View file @
4f61c01a
...
...
@@ -127,6 +127,14 @@ echo "<p><center>
SHOWGROUPMEMBERS
(
$pid
,
$gid
);
#
# A delete option
#
echo
"<p><center>
Do you want to delete this Group?
<A href='deletegroup.php3?pid=
$pid
&gid=
$gid
'>Yes</a>
</center>
\n
"
;
#
# Standard Testbed Footer
#
...
...
www/showuser.php3
View file @
4f61c01a
...
...
@@ -52,8 +52,75 @@ if (!$isadmin &&
}
}
#
# Show user info.
#
SHOWUSER
(
$target_uid
);
#
# Lets show projects.
#
$query_result
=
DBQueryFatal
(
"select distinct g.pid,p.name from group_membership as g "
.
"left join projects as p on p.pid=g.pid "
.
"where uid='
$target_uid
' order by pid"
);
if
(
mysql_num_rows
(
$query_result
))
{
echo
"<center>
<h3>Project Membership</h3>
</center>
<table align=center border=1 cellpadding=1 cellspacing=2>
\n
"
;
echo
"<tr>
<td align=center>PID</td>
<td align=center>Name</td>
</tr>
\n
"
;
while
(
$projrow
=
mysql_fetch_array
(
$query_result
))
{
$pid
=
$projrow
[
pid
];
$name
=
$projrow
[
name
];
echo
"<tr>
<td><A href='showproject.php3?pid=
$pid
'>
$pid
</A></td>
<td>
$name
</td>
</tr>
\n
"
;
}
echo
"</table>
\n
"
;
}
#
# And Experiments.
#
$query_result
=
DBQueryFatal
(
"select * from experiments "
.
"where expt_head_uid='
$target_uid
' order by pid,eid"
);
if
(
mysql_num_rows
(
$query_result
))
{
echo
"<center>
<h3>Current Experiments</h3>
</center>
<table align=center border=1 cellpadding=1 cellspacing=2>
\n
"
;
echo
"<tr>
<td align=center>PID</td>
<td align=center>EID</td>
<td align=center>Name</td>
</tr>
\n
"
;
while
(
$projrow
=
mysql_fetch_array
(
$query_result
))
{
$pid
=
$projrow
[
pid
];
$eid
=
$projrow
[
eid
];
$name
=
$projrow
[
expt_name
];
echo
"<tr>
<td><A href='showproject.php3?pid=
$pid
'>
$pid
</A></td>
<td><A href='showexp.php3?pid=
$pid
&eid=
$eid
'>
$eid
</A></td>
<td>
$name
</td>
</tr>
\n
"
;
}
echo
"</table>
\n
"
;
}
echo
"</center>
\n
"
;
#
...
...
www/showuser_list.php3
View file @
4f61c01a
...
...
@@ -70,7 +70,8 @@ while ($row = mysql_fetch_array($query_result)) {
# Suck out a list of projects too.
#
$projmemb_result
=
mysql_db_query
(
$TBDBNAME
,
"SELECT pid FROM group_membership where uid='
$thisuid
' order by pid"
);
"SELECT distinct pid FROM group_membership "
.
"where uid='
$thisuid
' order by pid"
);
echo
"<tr>
\n
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment