\n"; # tab container
}
////////////////////////////////////////////////////////////////////////////////
///
/// \fn deployHTML()
///
/// \return an array with one element with a key of 'html' whose value is the
/// html content for the deploy tab
///
/// \brief builds the html for the deploy tab
///
////////////////////////////////////////////////////////////////////////////////
function deployHTML() {
global $user, $skin;
$profiles = getUserResources(array("serverCheckOut"), array("available"));
$h = '';
$h .= "
\n";
$h .= "\n";
return array('html' => $h);
}
////////////////////////////////////////////////////////////////////////////////
///
/// \fn manageProfilesHTML()
///
/// \return an array with one element with a key of 'html' whose value is the
/// html content for the manage tab
///
/// \brief builds the html for the manage tab
///
////////////////////////////////////////////////////////////////////////////////
function manageProfilesHTML() {
global $user;
$profiles = getUserResources(array("serverProfileAdmin"), array("administer"));
$h = '';
$h .= "
\n";
$h .= "Are you sure you want to delete this Server Profile?
\n";
$h .= "
\n";
$h .= "\n";
$h .= "\n";
$h .= "
\n"; # center aligned div
$h .= "\n";
$h .= "
\n"; # confirmDeleteProfile
return array('html' => $h);
}
////////////////////////////////////////////////////////////////////////////////
///
/// \fn manageGroupingHTML()
///
/// \return an array with one element with a key of 'html' whose value is the
/// html content for the grouping tab
///
/// \brief builds the html for the grouping tab
///
////////////////////////////////////////////////////////////////////////////////
function manageGroupingHTML() {
global $mode;
$resources = getUserResources(array("serverProfileAdmin"),
array("manageGroup"));
$resourcegroups = getUserResources(array("serverProfileAdmin"),
array("manageGroup"), 1);
$h = '';
if($mode == 'submitServerProfileGroups')
$gridSelected = "selected=\"true\"";
else
$gridSelected = "";
$h .= "
Server Profile Grouping
\n";
$h .= "\n";
# by profile tab
$h .= "
\n";
$h .= "Select a server profile and click \"Get Groups\" to see all of the groups ";
$h .= "it is in. Then, select a group it is in and click the Remove ";
$h .= "button to remove it from that group, or select a group it is not ";
$h .= "in and click the Add button to add it to that group.
\n";
# select for groups profile is not in
$h .= "
\n";
$h .= "Groups is not in: \n";
$h .= "\n";
$h .= "\n";
$h .= "
\n";
$h .= "
\n";
$h .= "
\n"; # groupsdiv
$h .= "
\n"; # resource
# by group tab
$h .= "
\n";
$h .= "Select a group and click \"Get Server Profiles\" to see all of the server profiles ";
$h .= "in it. Then, select a server profile in it and click the Remove ";
$h .= "button to remove it from the group, or select a server profile that is not ";
$h .= "in it and click the Add button to add it to the group.
\n";
$h .= "Group:\n";
# build list of groups
$tmp = getUserResources(array('serverProfileAdmin'), array('manageGroup'), 1);
$groups = $tmp['serverprofile'];
uasort($groups, 'sortKeepIndex');
foreach($groups as $id => $group) {
$h .= "\n";
}
$h .= "\n";
$h .= "\n";
$h .= "