* Copyright 1999-2001 (c) VA Linux Systems
* Copyright 2010 - Alain Peyrat
* Copyright 2010 - Franck Villaume - Capgemini
+ * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
* http://fusionforge.org
*
* This file is part of FusionForge.
if (isset($this->js_min[$js])) {
$js = $this->js_min[$js];
}
- if (!isset($this->js[$js])) {
+ if ($js && !isset($this->js[$js])) {
$this->js[$js] = true;
$filename = $GLOBALS['fusionforge_basedir'].'/www'.$js;
if (file_exists($filename)) {
* Forge-Identification Meta Header, Version 1.0
* cf. http://home.gna.org/forgeplucker/forge-identification.html
*/
+ echo "\t\t\t";
$ff = new FusionForge();
- return sprintf('<meta name="Forge-Identification" content="%s:%s" />',
- $ff->software_name,
- $ff->software_version) . "\n";
+ printf('<meta name="Forge-Identification" content="%s:%s" />',
+ $ff->software_name, $ff->software_version);
+ echo "\n";
}
function bodyHeader($params){
$args .= ' id="'.$id.'"';
}
$return = "\n".
- '<table'.$args.'>'.
- '<thead><tr>';
-
- $count=count($titleArray);
- for ($i=0; $i<$count; $i++) {
- $th = '';
- if ($thClassArray && $thClassArray[$i]) {
- $th .= ' class="'.$thClassArray[$i].'"';
- }
- $cell = $titleArray[$i];
- if ($linksArray) {
- $cell = util_make_link($linksArray[$i],$titleArray[$i]);
+ '<table'.$args.'>';
+
+ if (count($titleArray)) {
+ $return .= '<thead><tr>';
+
+ $count=count($titleArray);
+ for ($i=0; $i<$count; $i++) {
+ $th = '';
+ if ($thClassArray && $thClassArray[$i]) {
+ $th .= ' class="'.$thClassArray[$i].'"';
+ }
+ $cell = $titleArray[$i];
+ if ($linksArray) {
+ $cell = util_make_link($linksArray[$i],$titleArray[$i]);
+ }
+ $return .= "\n".' <th'.$th.'>'.$cell.'</th>';
}
- $return .= "\n".' <th'.$th.'>'.$cell.'</th>';
+ $return .= "\n".'</tr></thead>'."\n";
}
- return $return .= "\n".'</tr></thead>'."\n".'<tbody>';
+ $return .= '<tbody>';
+ return $return;
}
function listTableBottom() {
foreach ($groups as $g) {
$group_id = $g->getID();
- $menu =& $this->navigation->getProjectMenu($group_id);
+ $menu = $this->navigation->getProjectMenu($group_id);
echo '
<option value="' . $menu['starturl'] . '">'
*/
function projectTabs($toptab, $group_id) {
// get group info using the common result set
- $menu =& $this->navigation->getProjectMenu($group_id, $toptab);
+ $menu = $this->navigation->getProjectMenu($group_id, $toptab);
echo $this->tabGenerator($menu['urls'], $menu['titles'], true, $menu['selected'], 'white');
}