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
fb5112c7
Commit
fb5112c7
authored
May 25, 2006
by
Leigh B. Stoller
Browse files
Show the list of templates on the project and group pages.
parent
5657fa88
Changes
3
Hide whitespace changes
Inline
Side-by-side
www/showgroup.php3
View file @
fb5112c7
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003, 2005 University of Utah and the Flux Group.
# Copyright (c) 2000-2003, 2005
, 2006
University of Utah and the Flux Group.
# All rights reserved.
#
include
(
"defs.php3"
);
...
...
@@ -103,6 +103,11 @@ if (TBProjAccessCheck($uid, $pid, $gid, $TB_PROJECT_EDITGROUP) ||
SUBPAGEEND
();
}
# Project wide Templates.
if
(
$EXPOSETEMPLATES
)
{
SHOWTEMPLATELIST
(
"GROUP"
,
0
,
$uid
,
$pid
,
$gid
);
}
#
# A list of Group experiments.
#
...
...
www/showproject.php3
View file @
fb5112c7
...
...
@@ -6,6 +6,7 @@
#
include
(
"defs.php3"
);
include
(
"showstuff.php3"
);
include_once
(
"template_defs.php"
);
#
# Standard Testbed Header
...
...
@@ -112,6 +113,11 @@ echo "</table>\n";
echo
"</td></table>
\n
"
;
echo
"</center>
\n
"
;
# Project wide Templates.
if
(
$EXPOSETEMPLATES
)
{
SHOWTEMPLATELIST
(
"PROJ"
,
0
,
$uid
,
$pid
);
}
#
# A list of project experiments.
#
...
...
www/template_defs.php
View file @
fb5112c7
...
...
@@ -1434,7 +1434,7 @@ function SHOWTEMPLATELIST($which, $all, $myuid, $id, $gid = "")
if
(
mysql_num_rows
(
$query_result
))
{
echo
"<center>
<h3>
Experiment
Templates</h3>
<h3>
$title
Templates</h3>
</center>
<table align=center border=1 cellpadding=5 cellspacing=2>
\n
"
;
...
...
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