Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
b5ba4d46
Commit
b5ba4d46
authored
Feb 09, 2015
by
Leigh B Stoller
Browse files
Add slice name to admin output.
parent
14d7da56
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/myexperiments.php
View file @
b5ba4d46
...
...
@@ -62,7 +62,7 @@ echo "<link rel='stylesheet'
href='css/tablesorter.css'>
\n
"
;
$query_result
=
DBQueryFatal
(
"select a.*,s.expires from apt_instances as a "
.
DBQueryFatal
(
"select a.*,s.expires
,s.hrn
from apt_instances as a "
.
"left join geni.geni_slices as s on "
.
" s.uuid=a.slice_uuid "
.
(
isset
(
$all
)
&&
ISADMIN
()
?
...
...
@@ -81,9 +81,9 @@ if (mysql_num_rows($query_result) == 0) {
exit
();
}
echo
"<div class='row'>
<div class='col-lg-
8
col-lg-offset-
2
col-md-
8
col-md-offset-
2
col-sm-1
0
col-sm-offset-
1
<div class='col-lg-
10
col-lg-offset-
1
col-md-
10
col-md-offset-
1
col-sm-1
2
col-sm-offset-
0
col-xs-12 col-xs-offset-0'>
\n
"
;
echo
"<input class='form-control search' type='search'
...
...
@@ -94,6 +94,7 @@ echo " <table class='tablesorter'>
<tr>
<th>Profile</th>
\n
"
;
if
(
isset
(
$all
)
&&
ISADMIN
())
{
echo
" <th>Slice</th>"
;
echo
" <th>Creator</th>"
;
echo
" <th>Project</th>"
;
}
...
...
@@ -115,6 +116,7 @@ while ($row = mysql_fetch_array($query_result)) {
$profile_name
=
$profile_id
;
$creator_uid
=
$row
[
"creator"
];
$pid
=
$row
[
"pid"
];
list
(
$foo
,
$hrn
)
=
preg_split
(
"/\./"
,
$row
[
"hrn"
]);
$profile
=
Profile
::
Lookup
(
$profile_id
,
$version
);
if
(
$profile
)
{
...
...
@@ -126,6 +128,7 @@ while ($row = mysql_fetch_array($query_result)) {
<a href='status.php?uuid=
$uuid
'>
$profile_name
</a>
</td>"
;
if
(
isset
(
$all
)
&&
ISADMIN
())
{
echo
"<td>
$hrn
</td>"
;
echo
"<td>
$creator_uid
</td>"
;
echo
"<td>
$pid
</td>"
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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