[Evolvis-commits] r143: remove broken templates that must be re-done↵

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Jun 15 16:12:24 CEST 2009


Author: mirabilos
Date: 2009-06-15 14:12:24 +0000 (Mon, 15 Jun 2009)
New Revision: 143

Added:
   trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis/Theme.class.php.old
   trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis_old/Theme.class.php.old
Removed:
   trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis/Theme.class.php
   trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis_old/Theme.class.php
Modified:
   trunk/gforge_base/gforge-4.8~rc2/debian/changelog
Log:
remove broken templates that must be re-done


Modified: trunk/gforge_base/gforge-4.8~rc2/debian/changelog
===================================================================
--- trunk/gforge_base/gforge-4.8~rc2/debian/changelog	2009-06-15 14:10:22 UTC (rev 142)
+++ trunk/gforge_base/gforge-4.8~rc2/debian/changelog	2009-06-15 14:12:24 UTC (rev 143)
@@ -2,8 +2,10 @@
 
   * Upstream sync
   * Clean up for Lenny
+  * Disable evolvis and evolvis_old theme; these have to be completely
+    reworked to not use the $Language global and template engine any more
 
- -- Thorsten Glaser <t.glaser at tarent.de>  Mon, 15 Jun 2009 15:47:13 +0200
+ -- Thorsten Glaser <t.glaser at tarent.de>  Mon, 15 Jun 2009 16:11:47 +0200
 
 gforge (4.8~rc2-1) experimental; urgency=low
 

Deleted: trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis/Theme.class.php
===================================================================
--- trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis/Theme.class.php	2009-06-15 14:10:22 UTC (rev 142)
+++ trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis/Theme.class.php	2009-06-15 14:12:24 UTC (rev 143)
@@ -1,1006 +0,0 @@
-<?php
-/* Evolvis theme for tarent GmbH
- * heavily modified version of the Mac OS X like theme.
- * Copyright (c) 2009 Thorsten Glaser <t.glaser at tarent.de>
- * Copyright (c) 2007 Thorsten Glaser <t.glaser at aurisp.de>
- *	on behalf of tarent GmbH
- * Copyright (c) 2007 Waldemar Brodkorb <w.brodkorb at tarent.de>
- *
- * Copyright (c) 2002-2003 Richard Offer. All rights reserved.
- *
- * Permission to use, copy, modify, distribute, and sell this software and its
- * documentation for any purpose is hereby granted without fee, provided that
- * the above copyright notice appear in all copies and that both that
- * copyright notice and this permission notice appear in supporting
- * documentation.
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
- * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * Except as contained in this notice, the name of the author shall not be
- * used in advertising or otherwise to promote the sale, use or other dealings
- * in this Software without prior written authorization from the author.
-
- *
- * Based on the "debian" theme, which is apparantly :-
- * 		Copyright 1999-2001 (c) VA Linux Systems
- *
- * @version   $Id$
- */
-//for all subpages available:
-//array for directories that need right navi:
-$right_navarr[]='/forum';
-$right_navarr[]='/tracker';
-$right_navarr[]='/mail';
-$right_navarr[]='/pm';
-$right_navarr[]='/docman';
-$right_navarr[]='/news';
-$right_navarr[]='/scm';
-$right_navarr[]='/frs';
-$right_navarr[]='/project/admin';
-$right_navarr[]='/projects';
-class Theme extends Layout {
-
-	/**
-	 * Theme() - Constructor
-	 */
-	function Theme() {
-		// Parent constructor
-		$this->Layout();
-
-		// The root location for images
-		$this->imgroot = '/themes/evolvis/images/';
-		$this->imgproj = '/themes/evolvis/images/proj/';
-
-		// The primary light background color
-		// Alternate list
-		$this->COLOR_LTBACK1= '#FFFFFF';
-
-		// The secondary light background color
-		$this->COLOR_LTBACK2= '#FFFFFF';
-
-		// The HTML box background color
-		$this->COLOR_HTMLBOX_BACK = '#FFFFFF';
-
-		// The color to separate HTML boxes
-		$this->COLOR_HTMLBOX_SEP = '#000000';
-
-		// Font Face Constants
-		// The content font
-		$this->FONT_CONTENT = 'sans-serif';
-		// The HTML box title font
-		$this->FONT_HTMLBOX_TITLE = 'sans-serif';
-		// The HTML box title font color
-		$this->FONTCOLOR_HTMLBOX_TITLE = '#72A5D8';
-		// The content font color
-		$this->FONTCOLOR_CONTENT = '#202020';
-		//The smaller font size
-		$this->FONTSIZE_SMALLER='small';
-		//The smallest font size
-		$this->FONTSIZE_SMALLEST='x-small';
-		//The HTML box title font size
-		$this->FONTSIZE_HTMLBOX_TITLE = 'x-small';
-
-// new variables introduced by this theme...
-		// background image
-		//$this->BACKGROUND= 'background.png';
-
-		// height of a tab (ie the size of the background image), 23 is specified in the
-		// style guide and so the background images were drawn for that size, changing
-		// this will lead to the images being cropped or tiled, either will look bad.
-		$this->TAB_HEIGHT=23;
-
-
-		// the following are not used in this theme, but have been set to obnoxious
-		// colors to help debug any new pages that make assumptions about a theme...
-		// The content background color
-		$this->COLOR_CONTENT_BACK= '#0000FF';
-		// The background color
-		$this->COLOR_BACK= '#00FF00';
-		// The HTML box title color
-		$this->COLOR_HTMLBOX_TITLE = '#FF0000';
-
-		//by cepe
-		//standard evolvis color
-		$this->EVOLVIS_COLOR='#CC0E08';
-		$this->EVOLVIS_BG_COLOR='#bebebe';
-		$this->allvar=array( 	'imgroot' => '/themes/evolvis/images/',
-					'imgproj' => '/themes/evolvis/images/proj/',
-					'COLOR_LTBACK1' => '#FFFFFF',
-					'COLOR_LTBACK2' => '#FFFFFF',
-					'COLOR_HTMLBOX_BACK' => '#FFFFFF',
-					'COLOR_HTMLBOX_SEP' => '#000000',
-					'FONT_CONTENT' => 'sans-serif',
-					'FONT_HTMLBOX_TITLE' => 'sans-serif',
-					'FONTCOLOR_HTMLBOX_TITLE' => '#72A5D8',
-					'FONTCOLOR_CONTENT' => '#202020',
-					'FONTSIZE_SMALLER' => 'small',
-					'FONTSIZE_SMALLEST' => 'x-small',
-					'FONTSIZE_HTMLBOX_TITLE' => 'x-small',
-					'TAB_HEIGHT' => 23,
-					'COLOR_CONTENT_BACK' => '#0000FF',
-					'COLOR_BACK' => '#00FF00',
-					'COLOR_HTMLBOX_TITLE' => '#FF0000'
-				);
-		require_once('template.class');
-		$this->template = new template('/usr/share/gforge/www/themes/evolvis/templates/');
-		//rklein for right nav
-		$this->project = false;
-		$this->rightnav = false;
-		$this->wiki_root= 'http://wiki.evolvis.org/'; //if not set you wont see the wiki-link
-	}
-
-	/**
-	 *	header() - "steel theme" top of page
-	 *
-	 * @param	array	Header parameters array
-	 */
-
-	function header($params) {
-		//rightnavar for right navigation by rklein
-		global $Language, $sys_name,$tabcount,$right_navarr,$group_id;
-		$site_fonts=' sans-serif';
-		$this->SITE_FONTS=$site_fonts;
-		$params['title']=(!$params['title'])?$sys_name:$sys_name.': '.$params['title'];
-
-		$tpl_input['param_title']	= $params['title'];
-		$tpl_input['lang_encoding']	= $Language->getEncoding();
-		$tpl_input['lang_languagecode']	= $Language->getLanguageCode();
-		$tpl_input['issecure']		= session_issecure()?'s':'';
-		$tpl_input['default_domain']	= $GLOBALS['sys_default_domain'];
-		$tpl_input['SESSION_LOGGEDIN']	= session_loggedin();
-		$tpl_input['lang_getText_common_login'] = $Language->getText('common','login');
-		$tpl_input['lang_getText_common_logout'] = $Language->getText('common','logout');
-		$tpl_input['lang_getText_common_newaccount'] = $Language->getText('common','newaccount');
-		$tpl_input['lang_getText_common_myaccount'] = $Language->getText('common','myaccount');
-		$tpl_input['lang_getText_menu_mypage'] = $Language->getText('menu','mypage');
-
-		####Head-Variablen####
-		$tpl_input['outerTabs']=$this->outerTabs($params,0);
-		if (isset($params['group'])) {
-			$tpl_input['projectTabs'] = $this->projectTabs($params['toptab'],$params['group']);
-		}
-		$count = $GLOBALS['tabcount']-1;
-
-		$tpl_input['publicName'] = '';
-		if (array_key_exists ('group', $params)){
-				$this->project = group_get_object($params['group']);
-				if (isset($this->project) && is_object($this->project) && !$this->project->isError() && $this->project->isProject()){
-					$tpl_input['publicName'] = "<div id=\"project_name\">Project: ".$this->project->getPublicName()."<hr /></div>";
-				}
-		}
-		if( eregi("(msie) ([0-9]{1,2}.[0-9]{1,3})",$_SERVER['HTTP_USER_AGENT'],$regs) )  {
-			$tpl_input['ie']='_ie';
-		}
-		$this->template->assign_vars($tpl_input);
-		$this->template->assign_vars($this->allvar);
-		$this->template->set_filenames(array('header'=>'overall_header.tpl'));
-		$this->template->pparse('header');
-/* rightnav start by rklein */
-		if (isset($this->project) && is_object($this->project) && !$this->project->isError() && $this->project->isProject())
-		{
-			foreach($right_navarr AS $dir)
-			{
-				if(strpos($_SERVER['REQUEST_URI'], $dir)===0)
-				{
-					$this->rightnav=true;
-					echo '<table class="project_papa"><tr><td class="project_content">';
-				}
-			}
-		}
-/* rightnav end */
-		
-	}
-
-	function footer($params) {
-		global $sys_show_source,$group_id;
-/* rightnav start */
-		if($this->rightnav==true)
-		{
-			echo '</td><td class="project_info">';
-			$this->write_rightnav($group_id);
-			echo '</td></tr></table>';
-		}
-/* rightnav end */
-		$tpl_input['SCRIPT_NAME']='';
-		if ($sys_show_source) {
-			global $SCRIPT_NAME;
-			$tpl_input['SCRIPT_NAME']='<a class="showsource" href="/source.php?file=' . $SCRIPT_NAME . '">Show Source</a>';
-		}
-		$this->template->assign_vars($tpl_input);
-		$this->template->set_filenames(array('footer'=>'overall_footer.tpl'));
-		$this->template->pparse('footer');
-	}
-//function write_rightnav by rklein
-	function write_rightnav($group_id)
-	{
-	global $Language,$sys_dbpasswd,$sys_dbuser,$sys_dbhost;
-require_once('www/news/news_utils.php');
-require_once('www/include/trove.php');
-require_once('www/include/project_summary.php');
-$project =$this->project;
-echo $this->searchBox(0);
-echo '<br />';
-
-// ############################## PUBLIC AREAS
-echo $this->boxTop($Language->getText('group','public_area'));
-
-// ################# Homepage Link
-
-print "<a href=\"http://" . $project->getHomePage() . "\">";
-print html_image('ic/home16b.png','20','20',array('alt'=>$Language->getText('group','short_homepage')));
-print '&nbsp;'.$Language->getText('group','long_homepage').'</a>';
-// ############################## WIKI
-if(!empty($this->wiki_root) )
-{
-	$dbconn = pg_connect("host=localhost user=$sys_dbuser password=$sys_dbpasswd port=5432 dbname=mw_evolvis");
-	$sql="SELECT * FROM pg_catalog.pg_namespace WHERE nspname='".$project->getUnixName()."'";
-	$res=pg_query($dbconn, $sql);
-	if(db_numrows($res)==1)
-	{
-		echo '<br /><a href="'.$this->wiki_root.$project->getUnixName().'">'.html_image('ic/wiki.png','20','20',array('alt'=>'wiki')).' Wiki</a>';
-	}
-}
-
-// ################## ArtifactTypes
-
-// CB hide tracker if desired
-if ($project->usesTracker()) {
-	print '<hr size="1" /><a href="/tracker/?group_id='.$group_id.'">';
-	print html_image('ic/tracker20g.png','20','20',array('alt'=>$Language->getText('group','short_tracker')));
-	print $Language->getText('group', 'long_tracker').'</a>';
-
-	$result=db_query("SELECT agl.*,aca.count,aca.open_count
-	FROM artifact_group_list agl
-	LEFT JOIN artifact_counts_agg aca USING (group_artifact_id)
-	WHERE agl.group_id='$group_id'
-	AND agl.is_public=1
-	ORDER BY group_artifact_id ASC");
-
-	$rows = db_numrows($result);
-
-	if (!$result || $rows < 1) {
-		echo '<br /><em>'.$Language->getText('project_home','no_trackers').'</em>';
-	} else {
-		for ($j = 0; $j < $rows; $j++) {
-			echo '<p />
-		&nbsp;-&nbsp;<a href="/tracker/?atid='. db_result($result, $j, 'group_artifact_id') .
-		'&amp;group_id='.$group_id.'&amp;func=browse">'. db_result($result, $j, 'name') .'</a>
-		( '.$Language->getText('project_home','tracker_open',array((int) db_result($result, $j, 'open_count'), (int) db_result($result, $j, 'count'))) .' )<br />'.
-		db_result($result, $j, 'description');
-		}
-	}
-}
-
-// ################## forums
-
-if ($project->usesForum()) {
-	print '<hr size="1" /><a href="/forum/?group_id='.$group_id.'">';
-	print html_image('ic/forum20g.png','20','20',array('alt'=>$Language->getText('group','short_forum')));
-	print '&nbsp;'.$Language->getText('group','long_forum').'</a>';
-	$forums_count = project_get_public_forum_count($group_id);
-	if ($forums_count > 1) {
-		$label = 'forum_messages';
-	} else {
-		$label = 'forum_messages_only_one_forum';
-	}
-	print " ( ".$Language->getText('project_home',$label,array(project_get_public_forum_message_count($group_id), $forums_count))." ";
-	print ")\n";
-}
-
-// ##################### Doc Manager
-
-if ($project->usesDocman()) {
-	print '
-	<hr size="1" />
-	<a href="/docman/?group_id='.$group_id.'">';
-	print html_image('ic/docman16b.png','20','20',array('alt'=>$Language->getText('group','short_docman')));
-	print '&nbsp;'.$Language->getText('group','long_docman').'</a>';
-}
-
-// ##################### Mailing lists
-
-if ($project->usesMail()) {
-	print '<hr size="1" /><a href="/mail/?group_id='.$group_id.'">';
-	print html_image('ic/mail16b.png','20','20',array('alt'=>$Language->getText('group','short_mail')));
-	print '&nbsp;'.$Language->getText('group','long_mail').'</a>';
-	print " ( <strong>". project_get_mail_list_count($group_id) ."</strong> ".$Language->getText('project_home','public_mailing_lists').")";
-}
-
-// ##################### Task Manager
-
-if ($project->usesPm()) {
-	print '<hr size="1" /><a href="/pm/?group_id='.$group_id.'">';
-	print html_image('ic/taskman20g.png','20','20',array('alt'=>$Language->getText('group','short_pm')));
-	print '&nbsp;'.$Language->getText('group','long_pm').'</a>';
-	$sql="SELECT * FROM project_group_list WHERE group_id='$group_id' AND is_public=1";
-	$result = db_query ($sql);
-	$rows = db_numrows($result);
-	if (!$result || $rows < 1) {
-		echo '<br /><em>'.$Language->getText('project_home','no_subprojects').'</em>';
-	} else {
-		for ($j = 0; $j < $rows; $j++) {
-			echo '
-			<br /> &nbsp; - <a href="/pm/task.php?group_project_id='.db_result($result, $j, 'group_project_id').
-			'&amp;group_id='.$group_id.'&amp;func=browse">'.db_result($result, $j, 'project_name').'</a>';
-		}
-
-	}
-}
-
-// ######################### SCM
-
-if ($project->usesSCM()) {
-	print '<hr size="1" /><a href="/scm/?group_id='.$group_id.'">';
-	print html_image('ic/cvs16b.png','20','20',array('alt'=>$Language->getText('group','short_scm')));
-	print " ".$Language->getText('group','long_scm')."</a>";
-
-	/*
-	$result = db_query("
-		SELECT sum(commits) AS commits,sum(adds) AS adds
-		FROM stats_cvs_group
-		WHERE group_id='$group_id'
-	", -1, 0, SYS_DB_STATS);
-	$cvs_commit_num = db_result($result,0,0);
-	$cvs_add_num	= db_result($result,0,1);
-	if (!$cvs_commit_num) {
-		$cvs_commit_num=0;
-	}
-	if (!$cvs_add_num) {
-		$cvs_add_num=0;
-	}
-	*/
-	$hook_params = array () ;
-	$hook_params['group_id'] = $group_id ;
-	plugin_hook ("scm_stats", $hook_params) ;
-	
-}
-
-// ######################## AnonFTP
-
-// CB hide FTP if desired
-if ($project->usesFTP()) {
-	if ($project->isActive()) {
-		print '<hr size="1" />';
-		print "<a href=\"ftp://" . $project->getUnixName() . "." . $GLOBALS['sys_default_domain'] . "/pub/". $project->getUnixName() ."/\">";
-		print html_image('ic/ftp16b.png','20','20',array('alt'=>$Language->getText('group','long_ftp')));
-		print $Language->getText('group','long_ftp')."</a>";
-	}
-}
-
-echo $this->boxBottom();
-	}
-	/**
-	 * boxTop() - Top HTML box
-	 *
-	 * @param   string  Box title
-	 * @param   bool	Whether to echo or return the results
-	 * @param   string  The box background color
-	 */
-	function boxTop($title) {
-		return '
-		<!-- boxTop -->
-		<table cellspacing="2" cellpadding="0" width="100%" border="0">
-		<tr>
-		<td>
-
-			<table cellspacing="2" cellpadding="0" width="100%" border="0" >
-				<tr class="titlebar">
-					<td colspan="2">'.$title.'</td>
-				</tr>
-				<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
-					<td colspan="2" height="1"></td></tr><tr align="left"><td colspan="2">';
-	}
-
-	/**
-	 * boxMiddle() - Middle HTML box
-	 *
-	 * @param   string  Box title
-	 * @param   string  The box background color
-	 */
-	function boxMiddle($title) {
-		return '
-				<!-- boxMiddle -->
-				</td>
-				</tr>
-				<tr class="titlebar">
-					<td colspan="2"><span>'.$title.'</span></td>
-				</tr>
-				<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
-					<td colspan="2" height="1"></td></tr><tr><td colspan="2">';
-	}
-
-	/**
-	 * boxGetAltRowStyle() - Get an alternating row style for tables
-	 *
-	 * @param			   int			 Row number
-	 */
-	function boxGetAltRowStyle($i) {
-		switch ($i % 3 ) {
-			case 0:
-				return 'bgcolor="#FFFFFF"';
-			case 1:
-				return 'bgcolor="' . $this->COLOR_LTBACK1 . '"';
-			case 2:
-				return 'bgcolor="' . $this->COLOR_LTBACK2 . '"';
-		}
-	}
-
-	/**
-	 * boxBottom() - Bottom HTML box
-	 *
-	 * @param   bool	Whether to echo or return the results
-	 */
-	function boxBottom() {
-		return '<!-- boxBottom -->
-					</td>
-				</tr>
-			</table>
-		</td>
-		</tr>
-		</table>';
-	}
-
-	/**
-	 * listTableTop() - Takes an array of titles and builds the first row of a new table.
-	 *
-	 * @param	   array   The array of titles
-	 * @param	   array   The array of title links
-	 */
-	function listTableTop ($title_arr,$links_arr=false) {
-		$return = '
-		<!-- listTableTop -->
-		<table cellspacing="0" cellpadding="1" width="100%" border="0">
-		<tr><td>
-		<table width="100%" border="0" cellspacing="2" cellpadding="0">
-			<tr>';
-
-		$count=count($title_arr);
-		if ($links_arr) {
-			for ($i=0; $i<$count; $i++) {
-				$return .= '
-				<td align="left"><a class="titlebar" href="'.$links_arr[$i].'">'.$title_arr[$i].'</a></td>';
-			}
-		} else {
-			for ($i=0; $i<$count; $i++) {
-				$return .= '
-				<td align="left" class="list_table_top">'.$title_arr[$i].'</td>';
-			}
-		}
-		$return .= '
-		</tr>
-		<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
-			<td colspan="'.$count.'" height="1"><img src="'.$this->imgroot.'clear.png" height="1" width="1" alt="" /></td>
-		</tr>';
-		return $return;
-	}
-
-	function tabGenerator($TABS_DIRS,$TABS_TITLES,$nested=false,$selected=false,$sel_tab_bgcolor='BLACK',$total_width='100%',$TAB_TYPE) {
-
-		$count=count($TABS_DIRS);
-/*		//$width=intval((100/($count)))-0.5;
-		$width=floor ((100/($count))*0.9);
-		$space=intval($width/2);
-		if ($nested) {		
-			$inner='-inner';
-		} else {
-			$inner='';
-		}*/
-		//$return = '<ul class="tab_bar">';
-		$return='';
-		for ($i=0; $i<$count; $i++) {
-			$TABS_TITLES[$i] = preg_replace("/ +/", "&nbsp;", $TABS_TITLES[$i]);
-			//by cepe+rklein
-			$return .='<font class="headlink'.(($TAB_TYPE=='outerTab' || $selected==$i)?'s':'').'">//</font><a class="headlink" href="'. $TABS_DIRS[$i] .'"><font class="headlink'.(($selected==$i)?'s':'').'">'. $TABS_TITLES[$i].'</font></a>&nbsp;&nbsp;'."\n";
-		}
-		//$return = $return.'</ul>';
-		return $return;
-	}
-
-	function outerTabs($params,$write=1) {
-		global $Language,$sys_use_trove,$sys_use_snippet,$sys_use_people;
-
-		$TABS_DIRS[]='/';
-//		$TABS_DIRS[]='/my/';
-		if ($sys_use_trove) {
-			$TABS_DIRS[]='/softwaremap/';
-		}
-//		if ($sys_use_snippet) {
-//			$TABS_DIRS[]='/snippet/';
-//		}
-//		if ($sys_use_people) {
-//			$TABS_DIRS[]='/people/';
-//		}
-		$TABS_TITLES[]=$Language->getText('menu','home');
-//		$TABS_TITLES[]=$Language->getText('menu','mypage');
-		if ($sys_use_trove) {
-			$TABS_TITLES[]=$Language->getText('menu','projectree');
-		}
-//		if ($sys_use_snippet) {
-//			$TABS_TITLES[]=$Language->getText('menu','code_snippet');
-//		}
-//		if ($sys_use_people) {
-//			$TABS_TITLES[]=$Language->getText('menu','project_help_wanted');
-//		}
-		if (user_ismember(1,'A')) {
-			$TABS_DIRS[]='/admin/';
-			//$TABS_TITLES[]=$Language->getText('menu','admin');
-			$TABS_TITLES[]='Site-Admin';
-		}
-		if (user_ismember($GLOBALS['sys_stats_group'])) {
-			$TABS_DIRS[]='/reporting/';
-			$TABS_TITLES[]=$Language->getText('menu','reporting');
-		}
-/*		if(isset($params['group']) && $params['group']) {
-			// get group info using the common result set
-			$project =& group_get_object($params['group']);
-			if ($project && is_object($project)) {
-				if ($project->isError()) {
-
-				} elseif (!$project->isProject()) {
-
-				} else {
-					$TABS_DIRS[]='/projects/'.$project->getUnixName().'/';
-					$TABS_TITLES[]=$project->getPublicName();
-					$selected=count($TABS_DIRS)-1;
-				}
-			}
-		}
-		*/
-		if (strstr($GLOBALS['REQUEST_URI'],'/my/') || strstr($GLOBALS['REQUEST_URI'],'/account/') || 
-				strstr($GLOBALS['REQUEST_URI'],'/themes/') ) {
-			$selected=array_search("/my/", $TABS_DIRS);
-		} elseif (strstr($GLOBALS['REQUEST_URI'],'softwaremap')) {
-			$selected=array_search("/softwaremap/", $TABS_DIRS);
-		} elseif (strstr($GLOBALS['REQUEST_URI'],'/snippet/')) {
-			$selected=array_search("/snippet/", $TABS_DIRS);
-		} elseif (strstr($GLOBALS['REQUEST_URI'],'/people/')) {
-			$selected=array_search("/people/", $TABS_DIRS);
-		} elseif (strstr($GLOBALS['REQUEST_URI'],'/reporting/')) {
-			$selected=array_search('/reporting/',$TABS_DIRS);
-		} elseif (strstr($GLOBALS['REQUEST_URI'],'/admin/') && user_ismember(1,'A')) {
-			$selected=array_search('/admin/',$TABS_DIRS);;
-		} else {
-			$selected=0;
-		}
-
-		if (!$this->COLOR_SELECTED_TAB) {
-			$this->COLOR_SELECTED_TAB= '#e0e0e0';
-		}
-		$GLOBALS['tabcount'] = count($TABS_DIRS);
-		if(!$write)
-		{
-			return $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%',"outerTab");
-		} else
-		{
-			echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%',"outerTab");
-		}
-	}
-
-	/**
-	 *	projectTabs() - Prints out the project tabs, contained here in case
-	 *		we want to allow it to be overriden
-	 *
-	 *	@param	string	Is the tab currently selected
-	 *	@param	string	Is the group we should look up get title info
-	 */
-	function projectTabs($toptab,$group) {
-
-		global $Language;
-
-		// get group info using the common result set
-		$project =& group_get_object($group);
-		if (!$project || !is_object($project)) {
-			return;
-		}
-		if ($project->isError()) {
-			//wasn't found or some other problem
-			return;
-		}
-		if (!$project->isProject()) {
-			return;
-		}
-
-		// Summary
-		$TABS_DIRS[]='/projects/'. $project->getUnixName() .'/';
-		$TABS_TITLES[]=$Language->getText('group','short_summary');
-		(($toptab == 'home') ? $selected=(count($TABS_TITLES)-1) : '' );
-
-		if (user_ismember($group,'A')) {
-			// Project Admin
-			$TABS_DIRS[]='/project/admin/?group_id='. $group;
-			$TABS_TITLES[]=$Language->getText('group','short_admin');
-			(($toptab == 'admin') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-		/* Homepage
-		$TABS_DIRS[]='http://'. $project->getHomePage();
-		$TABS_TITLES[]=$Language->getText('group','short_homepage');
-		*/
-
-		// Forums
-		if ($project->usesForum()) {
-			$TABS_DIRS[]='/forum/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_forum');
-			(($toptab == 'forums') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// Artifact Tracking
-		if ($project->usesTracker()) {
-			$TABS_DIRS[]='/tracker/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_tracker');
-			(($toptab == 'tracker' || $toptab == 'bugs' || $toptab == 'support' || $toptab == 'patch')
-				? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// Mailing Lists
-		if ($project->usesMail()) {
-			$TABS_DIRS[]='/mail/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_mail');
-			(($toptab == 'mail') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// Project Manager
-		if ($project->usesPm()) {
-			$TABS_DIRS[]='/pm/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_pm');
-			(($toptab == 'pm') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// Doc Manager
-		if ($project->usesDocman()) {
-			$TABS_DIRS[]='/docman/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_docman');
-			(($toptab == 'docman') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		//newsbytes
-		if ($project->usesNews()) {
-			$TABS_DIRS[]='/news/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_news');
-			(($toptab == 'news') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// SCM systems
-		if ($project->usesSCM()) {
-			$TABS_DIRS[]='/scm/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_scm');
-			(($toptab == 'scm') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// groupmenu_after_scm hook
-		$hookParams['DIRS'] = &$TABS_DIRS;
-		$hookParams['TITLES'] = &$TABS_TITLES;
-		$hookParams['toptab'] = &$toptab;
-		$hookParams['selected'] = &$selected;
-		$hookParams['group_id'] = $group ;
-				
-		plugin_hook ("groupmenu_scm", $hookParams) ; 
-
-		// Downloads
-		if ($project->usesFRS()) {
-			$TABS_DIRS[]='/frs/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_files');
-			(($toptab == 'frs') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// groupmenu hook
-		$hookParams['DIRS'] = &$TABS_DIRS;
-		$hookParams['TITLES'] = &$TABS_TITLES;
-		$hookParams['toptab'] = &$toptab;
-		$hookParams['selected'] = &$selected;
-		$hookParams['group'] = $group;
-				
-		plugin_hook ("groupmenu", $hookParams) ; 
-
-		$GLOBALS['tabcount'] = count($TABS_DIRS);
-		
-		//reverse array to show tabs in right order if tabs are floated to the right
-		//$TABS_DIRS = array_reverse($TABS_DIRS);
-		//$TABS_TITLES = array_reverse($TABS_TITLES);
-		//echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,true,$selected,'white','100%','projectTab');
-		return $this->tabGenerator($TABS_DIRS,$TABS_TITLES,true,$selected,'white','100%','projectTab');
-
-	}
-
-/*	function generalTabs($params) {
-			global $Language,$sys_use_trove,$sys_use_snippet,$sys_use_people;
-
-			//$TABS_DIRS[]='/';
-			//$TABS_TITLES[]=$Language->getText('menu','home');
-
-			//$TABS_DIRS[]='/my/';
-			//$TABS_TITLES[]=$Language->getText('menu','mypage');
-
-			if (user_ismember(1,'A')) {
-				$TABS_DIRS[]='/admin/';
-				$TABS_TITLES[]=$Language->getText('menu','admin');
-			}
-
-			if ($sys_use_trove) {
-				$TABS_DIRS[]='/softwaremap/';
-				$TABS_TITLES[]=$Language->getText('menu','projectree');
-			}
-
-			if (user_ismember($GLOBALS['sys_stats_group'])) {
-				$TABS_DIRS[]='/reporting/';
-				$TABS_TITLES[]=$Language->getText('menu','reporting');
-			}
-
-			// $selected=count($TABS_DIRS)-1; <- Fehlt bei den obrigen Tabs!
-
-			if ($params['group']) {
-
-			$group = $params['group'];
-			$toptab = $params['toptab'];
-
-			$project =& group_get_object($group);
-			if (!$project || !is_object($project)) {
-				return;
-			}
-			if ($project->isError()) {
-				//wasn't found or some other problem
-				return;
-			}
-			if (!$project->isProject()) {
-				return;
-			}	
-
-
-				// Summary
-				$TABS_DIRS[]='/projects/'. $project->getUnixName() .'/';
-				$TABS_TITLES[]=$Language->getText('group','short_summary');
-
-				(($toptab == 'home') ? $selected=(count($TABS_TITLES)-1) : '' );
-
-				if (user_ismember($group,'A')) {
-					// Project Admin
-					$TABS_DIRS[]='/project/admin/?group_id='. $group;
-					$TABS_TITLES[]=$Language->getText('group','short_admin');
-					(($toptab == 'admin') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// Forums
-				if ($project->usesForum()) {
-					$TABS_DIRS[]='/forum/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_forum');
-					(($toptab == 'forums') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// Artifact Tracking
-				if ($project->usesTracker()) {
-					$TABS_DIRS[]='/tracker/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_tracker');
-					(($toptab == 'tracker' || $toptab == 'bugs' || $toptab == 'support' || $toptab == 'patch')
-						? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// Mailing Lists
-				if ($project->usesMail()) {
-					$TABS_DIRS[]='/mail/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_mail');
-					(($toptab == 'mail') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// Project Manager
-				if ($project->usesPm()) {
-					$TABS_DIRS[]='/pm/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_pm');
-					(($toptab == 'pm') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// Doc Manager
-				if ($project->usesDocman()) {
-					$TABS_DIRS[]='/docman/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_docman');
-					(($toptab == 'docman') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				//newsbytes
-				if ($project->usesNews()) {
-					$TABS_DIRS[]='/news/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_news');
-					(($toptab == 'news') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// SCM systems
-				if ($project->usesSCM()) {
-					$TABS_DIRS[]='/scm/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_scm');
-					(($toptab == 'scm') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// groupmenu_after_scm hook
-				$hookParams['DIRS'] = &$TABS_DIRS;
-				$hookParams['TITLES'] = &$TABS_TITLES;
-				$hookParams['toptab'] = &$toptab;
-				$hookParams['selected'] = &$selected;
-				$hookParams['group_id'] = $group ;
-
-				plugin_hook ("groupmenu_scm", $hookParams) ; 
-
-				// Downloads
-				if ($project->usesFRS()) {
-					$TABS_DIRS[]='/frs/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_files');
-					(($toptab == 'frs') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// groupmenu_after_scm hook
-				$hookParams['DIRS'] = &$TABS_DIRS;
-				$hookParams['TITLES'] = &$TABS_TITLES;
-				$hookParams['toptab'] = &$toptab;
-				$hookParams['selected'] = &$selected;
-				$hookParams['group_id'] = $group;
-
-				plugin_hook ("groupmenu_scm", $hookParams);
-
-
-			}
-				
-			if (!$this->COLOR_SELECTED_TAB) {
-				$this->COLOR_SELECTED_TAB= '#e0e0e0';
-			}
-
-			$GLOBALS['tabcount'] = count($TABS_DIRS);
-			echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%','generalTab');
-		//	echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%');
-	
-	}
-
-*/
-	/**
-	 * multiTableRow() - create a mutlilevel row in a table
-	 *
-	 * @param	string	the row attributes
-	 * @param	array	the array of cell data, each element is an array,
-	 *				  	the first item being the text,
-	 *					  the subsequent items are attributes
-	 * @param	boolean is this row part of the title ?
-	 *
-	 */
-
-
-	 function multiTableRow($row_attr, $cell_data, $istitle) {
-		$return= '
-		<!-- multiTableRow -->
-		<tr class="multi_table_row" '.$row_attr;
-		if ( $istitle ) {
-			$return .=' align="center" ';
-		}
-		$return .= '>';
-		for ( $c = 0; $c < count($cell_data); $c++ ) {
-			$return .='<td ';
-			for ( $a=1; $a < count($cell_data[$c]); $a++) {
-				$return .= $cell_data[$c][$a].' ';
-			}
-			$return .= '>';
-			if ( $istitle ) {
-				$return .='<span class="titlebar">';
-			}
-			$return .= $cell_data[$c][0];
-			if ( $istitle ) {
-				$return .='</span>';
-			}
-			$return .= '</td>';
-
-		}
-		$return .= '</tr>
-		<!-- end multiTableRow -->
-		';
-
-		return $return;
-	 }
-
-        function searchBox($print=1) {
-                global $Language,$words,$forum_id,$group_id,$group_project_id,$atid,$exact,$type_of_search;
-
-                if(get_magic_quotes_gpc()) {
-                        $defaultWords = stripslashes($words);
-                } else {
-                        $defaultWords = $words;
-                }
-
-                // if there is no search currently, set the default
-                if ( ! isset($type_of_search) ) {
-                        $exact = 1;
-                }
-	if($print)
-{
-                print '
-                <form action="/search/" method="get">';
-                $parameters = array(
-                        SEARCH__PARAMETER_GROUP_ID => $group_id,
-                        SEARCH__PARAMETER_ARTIFACT_ID => $atid,
-                        SEARCH__PARAMETER_FORUM_ID => $forum_id,
-                        SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id
-                );
-
-                $searchManager =& getSearchManager();
-                $searchManager->setParametersValues($parameters);
-                $searchEngines =& $searchManager->getAvailableSearchEngines();
-
-                echo '<select name="type_of_search">';
-                for($i = 0, $max = count($searchEngines); $i < $max; $i++) {
-                        $searchEngine =& $searchEngines[$i];
-                        echo '<option value="'.$searchEngine->getType().'"'.( $type_of_search == $searchEngine->getType() ? ' selected="selected"' : '' ).'>'.$searchEngine->getLabel($parameters).'</option>'."\n";
-                }
-                echo '</select>';
-
-//              print '<br />';
-//              print '
-//              <input type="CHECKBOX" name="exact" value="1"'.( $exact ? ' CHECKED' : ' UNCHECKED' ).'> Require All Words';
-
-                $parameters = $searchManager->getParameters();
-                foreach($parameters AS $name => $value) {
-                        print '<input type="hidden" value="'.$value.'" name="'.$name.'" />';
-                }
-                print '<input type="text" size="12" name="words" value="'.$defaultWords.'" />';
-
-                print '<input type="submit" name="Search" value="'.$Language->getText('searchbox','search').'" />';
-
-                if (isset($group_id)) {
-                        print '
-				<br/>
-				<span id="advanced_search">
-                                &rsaquo; <a href="/search/advanced_search.php?group_id='.$group_id.'">'
-					.$Language->getText('searchbox', 'advanced_search').'</a>
-				</span>';
-                }
-                print '</form>';
-} else
-{
-	 $re= '
-                <form action="/search/" method="get">';
-                $parameters = array(
-                        SEARCH__PARAMETER_GROUP_ID => $group_id,
-                        SEARCH__PARAMETER_ARTIFACT_ID => $atid,
-                        SEARCH__PARAMETER_FORUM_ID => $forum_id,
-                        SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id
-                );
-
-                $searchManager =& getSearchManager();
-                $searchManager->setParametersValues($parameters);
-                $searchEngines =& $searchManager->getAvailableSearchEngines();
-
-               $re.= '<select name="type_of_search">';
-                for($i = 0, $max = count($searchEngines); $i < $max; $i++) {
-                        $searchEngine =& $searchEngines[$i];
-                        $re.= '<option value="'.$searchEngine->getType().'"'.( $type_of_search == $searchEngine->getType() ? ' selected="selected"' : '' ).'>'.$searchEngine->getLabel($parameters).'</option>'."\n";
-                }
-                $re.= '</select>';
-
-//              print '<br />';
-//              print '
-//              <input type="CHECKBOX" name="exact" value="1"'.( $exact ? ' CHECKED' : ' UNCHECKED' ).'> Require All Words';
-
-                $parameters = $searchManager->getParameters();
-                foreach($parameters AS $name => $value) {
-                       $re.= '<input type="hidden" value="'.$value.'" name="'.$name.'" />';
-                }
-                $re.= '<input type="text" size="12" name="words" value="'.$defaultWords.'" />';
-
-                $re.='<input type="submit" name="Search" value="'.$Language->getText('searchbox','search').'" />';
-
-                if (isset($group_id)) {
-                        $re.= '
-				<br/>
-				<span id="advanced_search">
-                                &rsaquo; <a href="/search/advanced_search.php?group_id='.$group_id.'">'
-					.$Language->getText('searchbox', 'advanced_search').'</a>
-				</span>';
-                }
-                $re.='</form>';
-		return $re;
-}
-}
-
-}
-
-?>

Copied: trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis/Theme.class.php.old (from rev 137, trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis/Theme.class.php)
===================================================================
--- trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis/Theme.class.php.old	                        (rev 0)
+++ trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis/Theme.class.php.old	2009-06-15 14:12:24 UTC (rev 143)
@@ -0,0 +1,1006 @@
+<?php
+/* Evolvis theme for tarent GmbH
+ * heavily modified version of the Mac OS X like theme.
+ * Copyright (c) 2009 Thorsten Glaser <t.glaser at tarent.de>
+ * Copyright (c) 2007 Thorsten Glaser <t.glaser at aurisp.de>
+ *	on behalf of tarent GmbH
+ * Copyright (c) 2007 Waldemar Brodkorb <w.brodkorb at tarent.de>
+ *
+ * Copyright (c) 2002-2003 Richard Offer. All rights reserved.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation.
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+ * AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Except as contained in this notice, the name of the author shall not be
+ * used in advertising or otherwise to promote the sale, use or other dealings
+ * in this Software without prior written authorization from the author.
+
+ *
+ * Based on the "debian" theme, which is apparantly :-
+ * 		Copyright 1999-2001 (c) VA Linux Systems
+ *
+ * @version   $Id$
+ */
+//for all subpages available:
+//array for directories that need right navi:
+$right_navarr[]='/forum';
+$right_navarr[]='/tracker';
+$right_navarr[]='/mail';
+$right_navarr[]='/pm';
+$right_navarr[]='/docman';
+$right_navarr[]='/news';
+$right_navarr[]='/scm';
+$right_navarr[]='/frs';
+$right_navarr[]='/project/admin';
+$right_navarr[]='/projects';
+class Theme extends Layout {
+
+	/**
+	 * Theme() - Constructor
+	 */
+	function Theme() {
+		// Parent constructor
+		$this->Layout();
+
+		// The root location for images
+		$this->imgroot = '/themes/evolvis/images/';
+		$this->imgproj = '/themes/evolvis/images/proj/';
+
+		// The primary light background color
+		// Alternate list
+		$this->COLOR_LTBACK1= '#FFFFFF';
+
+		// The secondary light background color
+		$this->COLOR_LTBACK2= '#FFFFFF';
+
+		// The HTML box background color
+		$this->COLOR_HTMLBOX_BACK = '#FFFFFF';
+
+		// The color to separate HTML boxes
+		$this->COLOR_HTMLBOX_SEP = '#000000';
+
+		// Font Face Constants
+		// The content font
+		$this->FONT_CONTENT = 'sans-serif';
+		// The HTML box title font
+		$this->FONT_HTMLBOX_TITLE = 'sans-serif';
+		// The HTML box title font color
+		$this->FONTCOLOR_HTMLBOX_TITLE = '#72A5D8';
+		// The content font color
+		$this->FONTCOLOR_CONTENT = '#202020';
+		//The smaller font size
+		$this->FONTSIZE_SMALLER='small';
+		//The smallest font size
+		$this->FONTSIZE_SMALLEST='x-small';
+		//The HTML box title font size
+		$this->FONTSIZE_HTMLBOX_TITLE = 'x-small';
+
+// new variables introduced by this theme...
+		// background image
+		//$this->BACKGROUND= 'background.png';
+
+		// height of a tab (ie the size of the background image), 23 is specified in the
+		// style guide and so the background images were drawn for that size, changing
+		// this will lead to the images being cropped or tiled, either will look bad.
+		$this->TAB_HEIGHT=23;
+
+
+		// the following are not used in this theme, but have been set to obnoxious
+		// colors to help debug any new pages that make assumptions about a theme...
+		// The content background color
+		$this->COLOR_CONTENT_BACK= '#0000FF';
+		// The background color
+		$this->COLOR_BACK= '#00FF00';
+		// The HTML box title color
+		$this->COLOR_HTMLBOX_TITLE = '#FF0000';
+
+		//by cepe
+		//standard evolvis color
+		$this->EVOLVIS_COLOR='#CC0E08';
+		$this->EVOLVIS_BG_COLOR='#bebebe';
+		$this->allvar=array( 	'imgroot' => '/themes/evolvis/images/',
+					'imgproj' => '/themes/evolvis/images/proj/',
+					'COLOR_LTBACK1' => '#FFFFFF',
+					'COLOR_LTBACK2' => '#FFFFFF',
+					'COLOR_HTMLBOX_BACK' => '#FFFFFF',
+					'COLOR_HTMLBOX_SEP' => '#000000',
+					'FONT_CONTENT' => 'sans-serif',
+					'FONT_HTMLBOX_TITLE' => 'sans-serif',
+					'FONTCOLOR_HTMLBOX_TITLE' => '#72A5D8',
+					'FONTCOLOR_CONTENT' => '#202020',
+					'FONTSIZE_SMALLER' => 'small',
+					'FONTSIZE_SMALLEST' => 'x-small',
+					'FONTSIZE_HTMLBOX_TITLE' => 'x-small',
+					'TAB_HEIGHT' => 23,
+					'COLOR_CONTENT_BACK' => '#0000FF',
+					'COLOR_BACK' => '#00FF00',
+					'COLOR_HTMLBOX_TITLE' => '#FF0000'
+				);
+		require_once('template.class');
+		$this->template = new template('/usr/share/gforge/www/themes/evolvis/templates/');
+		//rklein for right nav
+		$this->project = false;
+		$this->rightnav = false;
+		$this->wiki_root= 'http://wiki.evolvis.org/'; //if not set you wont see the wiki-link
+	}
+
+	/**
+	 *	header() - "steel theme" top of page
+	 *
+	 * @param	array	Header parameters array
+	 */
+
+	function header($params) {
+		//rightnavar for right navigation by rklein
+		global $Language, $sys_name,$tabcount,$right_navarr,$group_id;
+		$site_fonts=' sans-serif';
+		$this->SITE_FONTS=$site_fonts;
+		$params['title']=(!$params['title'])?$sys_name:$sys_name.': '.$params['title'];
+
+		$tpl_input['param_title']	= $params['title'];
+		$tpl_input['lang_encoding']	= $Language->getEncoding();
+		$tpl_input['lang_languagecode']	= $Language->getLanguageCode();
+		$tpl_input['issecure']		= session_issecure()?'s':'';
+		$tpl_input['default_domain']	= $GLOBALS['sys_default_domain'];
+		$tpl_input['SESSION_LOGGEDIN']	= session_loggedin();
+		$tpl_input['lang_getText_common_login'] = $Language->getText('common','login');
+		$tpl_input['lang_getText_common_logout'] = $Language->getText('common','logout');
+		$tpl_input['lang_getText_common_newaccount'] = $Language->getText('common','newaccount');
+		$tpl_input['lang_getText_common_myaccount'] = $Language->getText('common','myaccount');
+		$tpl_input['lang_getText_menu_mypage'] = $Language->getText('menu','mypage');
+
+		####Head-Variablen####
+		$tpl_input['outerTabs']=$this->outerTabs($params,0);
+		if (isset($params['group'])) {
+			$tpl_input['projectTabs'] = $this->projectTabs($params['toptab'],$params['group']);
+		}
+		$count = $GLOBALS['tabcount']-1;
+
+		$tpl_input['publicName'] = '';
+		if (array_key_exists ('group', $params)){
+				$this->project = group_get_object($params['group']);
+				if (isset($this->project) && is_object($this->project) && !$this->project->isError() && $this->project->isProject()){
+					$tpl_input['publicName'] = "<div id=\"project_name\">Project: ".$this->project->getPublicName()."<hr /></div>";
+				}
+		}
+		if( eregi("(msie) ([0-9]{1,2}.[0-9]{1,3})",$_SERVER['HTTP_USER_AGENT'],$regs) )  {
+			$tpl_input['ie']='_ie';
+		}
+		$this->template->assign_vars($tpl_input);
+		$this->template->assign_vars($this->allvar);
+		$this->template->set_filenames(array('header'=>'overall_header.tpl'));
+		$this->template->pparse('header');
+/* rightnav start by rklein */
+		if (isset($this->project) && is_object($this->project) && !$this->project->isError() && $this->project->isProject())
+		{
+			foreach($right_navarr AS $dir)
+			{
+				if(strpos($_SERVER['REQUEST_URI'], $dir)===0)
+				{
+					$this->rightnav=true;
+					echo '<table class="project_papa"><tr><td class="project_content">';
+				}
+			}
+		}
+/* rightnav end */
+		
+	}
+
+	function footer($params) {
+		global $sys_show_source,$group_id;
+/* rightnav start */
+		if($this->rightnav==true)
+		{
+			echo '</td><td class="project_info">';
+			$this->write_rightnav($group_id);
+			echo '</td></tr></table>';
+		}
+/* rightnav end */
+		$tpl_input['SCRIPT_NAME']='';
+		if ($sys_show_source) {
+			global $SCRIPT_NAME;
+			$tpl_input['SCRIPT_NAME']='<a class="showsource" href="/source.php?file=' . $SCRIPT_NAME . '">Show Source</a>';
+		}
+		$this->template->assign_vars($tpl_input);
+		$this->template->set_filenames(array('footer'=>'overall_footer.tpl'));
+		$this->template->pparse('footer');
+	}
+//function write_rightnav by rklein
+	function write_rightnav($group_id)
+	{
+	global $Language,$sys_dbpasswd,$sys_dbuser,$sys_dbhost;
+require_once('www/news/news_utils.php');
+require_once('www/include/trove.php');
+require_once('www/include/project_summary.php');
+$project =$this->project;
+echo $this->searchBox(0);
+echo '<br />';
+
+// ############################## PUBLIC AREAS
+echo $this->boxTop($Language->getText('group','public_area'));
+
+// ################# Homepage Link
+
+print "<a href=\"http://" . $project->getHomePage() . "\">";
+print html_image('ic/home16b.png','20','20',array('alt'=>$Language->getText('group','short_homepage')));
+print '&nbsp;'.$Language->getText('group','long_homepage').'</a>';
+// ############################## WIKI
+if(!empty($this->wiki_root) )
+{
+	$dbconn = pg_connect("host=localhost user=$sys_dbuser password=$sys_dbpasswd port=5432 dbname=mw_evolvis");
+	$sql="SELECT * FROM pg_catalog.pg_namespace WHERE nspname='".$project->getUnixName()."'";
+	$res=pg_query($dbconn, $sql);
+	if(db_numrows($res)==1)
+	{
+		echo '<br /><a href="'.$this->wiki_root.$project->getUnixName().'">'.html_image('ic/wiki.png','20','20',array('alt'=>'wiki')).' Wiki</a>';
+	}
+}
+
+// ################## ArtifactTypes
+
+// CB hide tracker if desired
+if ($project->usesTracker()) {
+	print '<hr size="1" /><a href="/tracker/?group_id='.$group_id.'">';
+	print html_image('ic/tracker20g.png','20','20',array('alt'=>$Language->getText('group','short_tracker')));
+	print $Language->getText('group', 'long_tracker').'</a>';
+
+	$result=db_query("SELECT agl.*,aca.count,aca.open_count
+	FROM artifact_group_list agl
+	LEFT JOIN artifact_counts_agg aca USING (group_artifact_id)
+	WHERE agl.group_id='$group_id'
+	AND agl.is_public=1
+	ORDER BY group_artifact_id ASC");
+
+	$rows = db_numrows($result);
+
+	if (!$result || $rows < 1) {
+		echo '<br /><em>'.$Language->getText('project_home','no_trackers').'</em>';
+	} else {
+		for ($j = 0; $j < $rows; $j++) {
+			echo '<p />
+		&nbsp;-&nbsp;<a href="/tracker/?atid='. db_result($result, $j, 'group_artifact_id') .
+		'&amp;group_id='.$group_id.'&amp;func=browse">'. db_result($result, $j, 'name') .'</a>
+		( '.$Language->getText('project_home','tracker_open',array((int) db_result($result, $j, 'open_count'), (int) db_result($result, $j, 'count'))) .' )<br />'.
+		db_result($result, $j, 'description');
+		}
+	}
+}
+
+// ################## forums
+
+if ($project->usesForum()) {
+	print '<hr size="1" /><a href="/forum/?group_id='.$group_id.'">';
+	print html_image('ic/forum20g.png','20','20',array('alt'=>$Language->getText('group','short_forum')));
+	print '&nbsp;'.$Language->getText('group','long_forum').'</a>';
+	$forums_count = project_get_public_forum_count($group_id);
+	if ($forums_count > 1) {
+		$label = 'forum_messages';
+	} else {
+		$label = 'forum_messages_only_one_forum';
+	}
+	print " ( ".$Language->getText('project_home',$label,array(project_get_public_forum_message_count($group_id), $forums_count))." ";
+	print ")\n";
+}
+
+// ##################### Doc Manager
+
+if ($project->usesDocman()) {
+	print '
+	<hr size="1" />
+	<a href="/docman/?group_id='.$group_id.'">';
+	print html_image('ic/docman16b.png','20','20',array('alt'=>$Language->getText('group','short_docman')));
+	print '&nbsp;'.$Language->getText('group','long_docman').'</a>';
+}
+
+// ##################### Mailing lists
+
+if ($project->usesMail()) {
+	print '<hr size="1" /><a href="/mail/?group_id='.$group_id.'">';
+	print html_image('ic/mail16b.png','20','20',array('alt'=>$Language->getText('group','short_mail')));
+	print '&nbsp;'.$Language->getText('group','long_mail').'</a>';
+	print " ( <strong>". project_get_mail_list_count($group_id) ."</strong> ".$Language->getText('project_home','public_mailing_lists').")";
+}
+
+// ##################### Task Manager
+
+if ($project->usesPm()) {
+	print '<hr size="1" /><a href="/pm/?group_id='.$group_id.'">';
+	print html_image('ic/taskman20g.png','20','20',array('alt'=>$Language->getText('group','short_pm')));
+	print '&nbsp;'.$Language->getText('group','long_pm').'</a>';
+	$sql="SELECT * FROM project_group_list WHERE group_id='$group_id' AND is_public=1";
+	$result = db_query ($sql);
+	$rows = db_numrows($result);
+	if (!$result || $rows < 1) {
+		echo '<br /><em>'.$Language->getText('project_home','no_subprojects').'</em>';
+	} else {
+		for ($j = 0; $j < $rows; $j++) {
+			echo '
+			<br /> &nbsp; - <a href="/pm/task.php?group_project_id='.db_result($result, $j, 'group_project_id').
+			'&amp;group_id='.$group_id.'&amp;func=browse">'.db_result($result, $j, 'project_name').'</a>';
+		}
+
+	}
+}
+
+// ######################### SCM
+
+if ($project->usesSCM()) {
+	print '<hr size="1" /><a href="/scm/?group_id='.$group_id.'">';
+	print html_image('ic/cvs16b.png','20','20',array('alt'=>$Language->getText('group','short_scm')));
+	print " ".$Language->getText('group','long_scm')."</a>";
+
+	/*
+	$result = db_query("
+		SELECT sum(commits) AS commits,sum(adds) AS adds
+		FROM stats_cvs_group
+		WHERE group_id='$group_id'
+	", -1, 0, SYS_DB_STATS);
+	$cvs_commit_num = db_result($result,0,0);
+	$cvs_add_num	= db_result($result,0,1);
+	if (!$cvs_commit_num) {
+		$cvs_commit_num=0;
+	}
+	if (!$cvs_add_num) {
+		$cvs_add_num=0;
+	}
+	*/
+	$hook_params = array () ;
+	$hook_params['group_id'] = $group_id ;
+	plugin_hook ("scm_stats", $hook_params) ;
+	
+}
+
+// ######################## AnonFTP
+
+// CB hide FTP if desired
+if ($project->usesFTP()) {
+	if ($project->isActive()) {
+		print '<hr size="1" />';
+		print "<a href=\"ftp://" . $project->getUnixName() . "." . $GLOBALS['sys_default_domain'] . "/pub/". $project->getUnixName() ."/\">";
+		print html_image('ic/ftp16b.png','20','20',array('alt'=>$Language->getText('group','long_ftp')));
+		print $Language->getText('group','long_ftp')."</a>";
+	}
+}
+
+echo $this->boxBottom();
+	}
+	/**
+	 * boxTop() - Top HTML box
+	 *
+	 * @param   string  Box title
+	 * @param   bool	Whether to echo or return the results
+	 * @param   string  The box background color
+	 */
+	function boxTop($title) {
+		return '
+		<!-- boxTop -->
+		<table cellspacing="2" cellpadding="0" width="100%" border="0">
+		<tr>
+		<td>
+
+			<table cellspacing="2" cellpadding="0" width="100%" border="0" >
+				<tr class="titlebar">
+					<td colspan="2">'.$title.'</td>
+				</tr>
+				<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
+					<td colspan="2" height="1"></td></tr><tr align="left"><td colspan="2">';
+	}
+
+	/**
+	 * boxMiddle() - Middle HTML box
+	 *
+	 * @param   string  Box title
+	 * @param   string  The box background color
+	 */
+	function boxMiddle($title) {
+		return '
+				<!-- boxMiddle -->
+				</td>
+				</tr>
+				<tr class="titlebar">
+					<td colspan="2"><span>'.$title.'</span></td>
+				</tr>
+				<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
+					<td colspan="2" height="1"></td></tr><tr><td colspan="2">';
+	}
+
+	/**
+	 * boxGetAltRowStyle() - Get an alternating row style for tables
+	 *
+	 * @param			   int			 Row number
+	 */
+	function boxGetAltRowStyle($i) {
+		switch ($i % 3 ) {
+			case 0:
+				return 'bgcolor="#FFFFFF"';
+			case 1:
+				return 'bgcolor="' . $this->COLOR_LTBACK1 . '"';
+			case 2:
+				return 'bgcolor="' . $this->COLOR_LTBACK2 . '"';
+		}
+	}
+
+	/**
+	 * boxBottom() - Bottom HTML box
+	 *
+	 * @param   bool	Whether to echo or return the results
+	 */
+	function boxBottom() {
+		return '<!-- boxBottom -->
+					</td>
+				</tr>
+			</table>
+		</td>
+		</tr>
+		</table>';
+	}
+
+	/**
+	 * listTableTop() - Takes an array of titles and builds the first row of a new table.
+	 *
+	 * @param	   array   The array of titles
+	 * @param	   array   The array of title links
+	 */
+	function listTableTop ($title_arr,$links_arr=false) {
+		$return = '
+		<!-- listTableTop -->
+		<table cellspacing="0" cellpadding="1" width="100%" border="0">
+		<tr><td>
+		<table width="100%" border="0" cellspacing="2" cellpadding="0">
+			<tr>';
+
+		$count=count($title_arr);
+		if ($links_arr) {
+			for ($i=0; $i<$count; $i++) {
+				$return .= '
+				<td align="left"><a class="titlebar" href="'.$links_arr[$i].'">'.$title_arr[$i].'</a></td>';
+			}
+		} else {
+			for ($i=0; $i<$count; $i++) {
+				$return .= '
+				<td align="left" class="list_table_top">'.$title_arr[$i].'</td>';
+			}
+		}
+		$return .= '
+		</tr>
+		<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
+			<td colspan="'.$count.'" height="1"><img src="'.$this->imgroot.'clear.png" height="1" width="1" alt="" /></td>
+		</tr>';
+		return $return;
+	}
+
+	function tabGenerator($TABS_DIRS,$TABS_TITLES,$nested=false,$selected=false,$sel_tab_bgcolor='BLACK',$total_width='100%',$TAB_TYPE) {
+
+		$count=count($TABS_DIRS);
+/*		//$width=intval((100/($count)))-0.5;
+		$width=floor ((100/($count))*0.9);
+		$space=intval($width/2);
+		if ($nested) {		
+			$inner='-inner';
+		} else {
+			$inner='';
+		}*/
+		//$return = '<ul class="tab_bar">';
+		$return='';
+		for ($i=0; $i<$count; $i++) {
+			$TABS_TITLES[$i] = preg_replace("/ +/", "&nbsp;", $TABS_TITLES[$i]);
+			//by cepe+rklein
+			$return .='<font class="headlink'.(($TAB_TYPE=='outerTab' || $selected==$i)?'s':'').'">//</font><a class="headlink" href="'. $TABS_DIRS[$i] .'"><font class="headlink'.(($selected==$i)?'s':'').'">'. $TABS_TITLES[$i].'</font></a>&nbsp;&nbsp;'."\n";
+		}
+		//$return = $return.'</ul>';
+		return $return;
+	}
+
+	function outerTabs($params,$write=1) {
+		global $Language,$sys_use_trove,$sys_use_snippet,$sys_use_people;
+
+		$TABS_DIRS[]='/';
+//		$TABS_DIRS[]='/my/';
+		if ($sys_use_trove) {
+			$TABS_DIRS[]='/softwaremap/';
+		}
+//		if ($sys_use_snippet) {
+//			$TABS_DIRS[]='/snippet/';
+//		}
+//		if ($sys_use_people) {
+//			$TABS_DIRS[]='/people/';
+//		}
+		$TABS_TITLES[]=$Language->getText('menu','home');
+//		$TABS_TITLES[]=$Language->getText('menu','mypage');
+		if ($sys_use_trove) {
+			$TABS_TITLES[]=$Language->getText('menu','projectree');
+		}
+//		if ($sys_use_snippet) {
+//			$TABS_TITLES[]=$Language->getText('menu','code_snippet');
+//		}
+//		if ($sys_use_people) {
+//			$TABS_TITLES[]=$Language->getText('menu','project_help_wanted');
+//		}
+		if (user_ismember(1,'A')) {
+			$TABS_DIRS[]='/admin/';
+			//$TABS_TITLES[]=$Language->getText('menu','admin');
+			$TABS_TITLES[]='Site-Admin';
+		}
+		if (user_ismember($GLOBALS['sys_stats_group'])) {
+			$TABS_DIRS[]='/reporting/';
+			$TABS_TITLES[]=$Language->getText('menu','reporting');
+		}
+/*		if(isset($params['group']) && $params['group']) {
+			// get group info using the common result set
+			$project =& group_get_object($params['group']);
+			if ($project && is_object($project)) {
+				if ($project->isError()) {
+
+				} elseif (!$project->isProject()) {
+
+				} else {
+					$TABS_DIRS[]='/projects/'.$project->getUnixName().'/';
+					$TABS_TITLES[]=$project->getPublicName();
+					$selected=count($TABS_DIRS)-1;
+				}
+			}
+		}
+		*/
+		if (strstr($GLOBALS['REQUEST_URI'],'/my/') || strstr($GLOBALS['REQUEST_URI'],'/account/') || 
+				strstr($GLOBALS['REQUEST_URI'],'/themes/') ) {
+			$selected=array_search("/my/", $TABS_DIRS);
+		} elseif (strstr($GLOBALS['REQUEST_URI'],'softwaremap')) {
+			$selected=array_search("/softwaremap/", $TABS_DIRS);
+		} elseif (strstr($GLOBALS['REQUEST_URI'],'/snippet/')) {
+			$selected=array_search("/snippet/", $TABS_DIRS);
+		} elseif (strstr($GLOBALS['REQUEST_URI'],'/people/')) {
+			$selected=array_search("/people/", $TABS_DIRS);
+		} elseif (strstr($GLOBALS['REQUEST_URI'],'/reporting/')) {
+			$selected=array_search('/reporting/',$TABS_DIRS);
+		} elseif (strstr($GLOBALS['REQUEST_URI'],'/admin/') && user_ismember(1,'A')) {
+			$selected=array_search('/admin/',$TABS_DIRS);;
+		} else {
+			$selected=0;
+		}
+
+		if (!$this->COLOR_SELECTED_TAB) {
+			$this->COLOR_SELECTED_TAB= '#e0e0e0';
+		}
+		$GLOBALS['tabcount'] = count($TABS_DIRS);
+		if(!$write)
+		{
+			return $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%',"outerTab");
+		} else
+		{
+			echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%',"outerTab");
+		}
+	}
+
+	/**
+	 *	projectTabs() - Prints out the project tabs, contained here in case
+	 *		we want to allow it to be overriden
+	 *
+	 *	@param	string	Is the tab currently selected
+	 *	@param	string	Is the group we should look up get title info
+	 */
+	function projectTabs($toptab,$group) {
+
+		global $Language;
+
+		// get group info using the common result set
+		$project =& group_get_object($group);
+		if (!$project || !is_object($project)) {
+			return;
+		}
+		if ($project->isError()) {
+			//wasn't found or some other problem
+			return;
+		}
+		if (!$project->isProject()) {
+			return;
+		}
+
+		// Summary
+		$TABS_DIRS[]='/projects/'. $project->getUnixName() .'/';
+		$TABS_TITLES[]=$Language->getText('group','short_summary');
+		(($toptab == 'home') ? $selected=(count($TABS_TITLES)-1) : '' );
+
+		if (user_ismember($group,'A')) {
+			// Project Admin
+			$TABS_DIRS[]='/project/admin/?group_id='. $group;
+			$TABS_TITLES[]=$Language->getText('group','short_admin');
+			(($toptab == 'admin') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+		/* Homepage
+		$TABS_DIRS[]='http://'. $project->getHomePage();
+		$TABS_TITLES[]=$Language->getText('group','short_homepage');
+		*/
+
+		// Forums
+		if ($project->usesForum()) {
+			$TABS_DIRS[]='/forum/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_forum');
+			(($toptab == 'forums') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// Artifact Tracking
+		if ($project->usesTracker()) {
+			$TABS_DIRS[]='/tracker/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_tracker');
+			(($toptab == 'tracker' || $toptab == 'bugs' || $toptab == 'support' || $toptab == 'patch')
+				? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// Mailing Lists
+		if ($project->usesMail()) {
+			$TABS_DIRS[]='/mail/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_mail');
+			(($toptab == 'mail') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// Project Manager
+		if ($project->usesPm()) {
+			$TABS_DIRS[]='/pm/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_pm');
+			(($toptab == 'pm') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// Doc Manager
+		if ($project->usesDocman()) {
+			$TABS_DIRS[]='/docman/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_docman');
+			(($toptab == 'docman') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		//newsbytes
+		if ($project->usesNews()) {
+			$TABS_DIRS[]='/news/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_news');
+			(($toptab == 'news') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// SCM systems
+		if ($project->usesSCM()) {
+			$TABS_DIRS[]='/scm/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_scm');
+			(($toptab == 'scm') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// groupmenu_after_scm hook
+		$hookParams['DIRS'] = &$TABS_DIRS;
+		$hookParams['TITLES'] = &$TABS_TITLES;
+		$hookParams['toptab'] = &$toptab;
+		$hookParams['selected'] = &$selected;
+		$hookParams['group_id'] = $group ;
+				
+		plugin_hook ("groupmenu_scm", $hookParams) ; 
+
+		// Downloads
+		if ($project->usesFRS()) {
+			$TABS_DIRS[]='/frs/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_files');
+			(($toptab == 'frs') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// groupmenu hook
+		$hookParams['DIRS'] = &$TABS_DIRS;
+		$hookParams['TITLES'] = &$TABS_TITLES;
+		$hookParams['toptab'] = &$toptab;
+		$hookParams['selected'] = &$selected;
+		$hookParams['group'] = $group;
+				
+		plugin_hook ("groupmenu", $hookParams) ; 
+
+		$GLOBALS['tabcount'] = count($TABS_DIRS);
+		
+		//reverse array to show tabs in right order if tabs are floated to the right
+		//$TABS_DIRS = array_reverse($TABS_DIRS);
+		//$TABS_TITLES = array_reverse($TABS_TITLES);
+		//echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,true,$selected,'white','100%','projectTab');
+		return $this->tabGenerator($TABS_DIRS,$TABS_TITLES,true,$selected,'white','100%','projectTab');
+
+	}
+
+/*	function generalTabs($params) {
+			global $Language,$sys_use_trove,$sys_use_snippet,$sys_use_people;
+
+			//$TABS_DIRS[]='/';
+			//$TABS_TITLES[]=$Language->getText('menu','home');
+
+			//$TABS_DIRS[]='/my/';
+			//$TABS_TITLES[]=$Language->getText('menu','mypage');
+
+			if (user_ismember(1,'A')) {
+				$TABS_DIRS[]='/admin/';
+				$TABS_TITLES[]=$Language->getText('menu','admin');
+			}
+
+			if ($sys_use_trove) {
+				$TABS_DIRS[]='/softwaremap/';
+				$TABS_TITLES[]=$Language->getText('menu','projectree');
+			}
+
+			if (user_ismember($GLOBALS['sys_stats_group'])) {
+				$TABS_DIRS[]='/reporting/';
+				$TABS_TITLES[]=$Language->getText('menu','reporting');
+			}
+
+			// $selected=count($TABS_DIRS)-1; <- Fehlt bei den obrigen Tabs!
+
+			if ($params['group']) {
+
+			$group = $params['group'];
+			$toptab = $params['toptab'];
+
+			$project =& group_get_object($group);
+			if (!$project || !is_object($project)) {
+				return;
+			}
+			if ($project->isError()) {
+				//wasn't found or some other problem
+				return;
+			}
+			if (!$project->isProject()) {
+				return;
+			}	
+
+
+				// Summary
+				$TABS_DIRS[]='/projects/'. $project->getUnixName() .'/';
+				$TABS_TITLES[]=$Language->getText('group','short_summary');
+
+				(($toptab == 'home') ? $selected=(count($TABS_TITLES)-1) : '' );
+
+				if (user_ismember($group,'A')) {
+					// Project Admin
+					$TABS_DIRS[]='/project/admin/?group_id='. $group;
+					$TABS_TITLES[]=$Language->getText('group','short_admin');
+					(($toptab == 'admin') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// Forums
+				if ($project->usesForum()) {
+					$TABS_DIRS[]='/forum/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_forum');
+					(($toptab == 'forums') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// Artifact Tracking
+				if ($project->usesTracker()) {
+					$TABS_DIRS[]='/tracker/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_tracker');
+					(($toptab == 'tracker' || $toptab == 'bugs' || $toptab == 'support' || $toptab == 'patch')
+						? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// Mailing Lists
+				if ($project->usesMail()) {
+					$TABS_DIRS[]='/mail/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_mail');
+					(($toptab == 'mail') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// Project Manager
+				if ($project->usesPm()) {
+					$TABS_DIRS[]='/pm/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_pm');
+					(($toptab == 'pm') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// Doc Manager
+				if ($project->usesDocman()) {
+					$TABS_DIRS[]='/docman/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_docman');
+					(($toptab == 'docman') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				//newsbytes
+				if ($project->usesNews()) {
+					$TABS_DIRS[]='/news/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_news');
+					(($toptab == 'news') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// SCM systems
+				if ($project->usesSCM()) {
+					$TABS_DIRS[]='/scm/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_scm');
+					(($toptab == 'scm') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// groupmenu_after_scm hook
+				$hookParams['DIRS'] = &$TABS_DIRS;
+				$hookParams['TITLES'] = &$TABS_TITLES;
+				$hookParams['toptab'] = &$toptab;
+				$hookParams['selected'] = &$selected;
+				$hookParams['group_id'] = $group ;
+
+				plugin_hook ("groupmenu_scm", $hookParams) ; 
+
+				// Downloads
+				if ($project->usesFRS()) {
+					$TABS_DIRS[]='/frs/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_files');
+					(($toptab == 'frs') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// groupmenu_after_scm hook
+				$hookParams['DIRS'] = &$TABS_DIRS;
+				$hookParams['TITLES'] = &$TABS_TITLES;
+				$hookParams['toptab'] = &$toptab;
+				$hookParams['selected'] = &$selected;
+				$hookParams['group_id'] = $group;
+
+				plugin_hook ("groupmenu_scm", $hookParams);
+
+
+			}
+				
+			if (!$this->COLOR_SELECTED_TAB) {
+				$this->COLOR_SELECTED_TAB= '#e0e0e0';
+			}
+
+			$GLOBALS['tabcount'] = count($TABS_DIRS);
+			echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%','generalTab');
+		//	echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%');
+	
+	}
+
+*/
+	/**
+	 * multiTableRow() - create a mutlilevel row in a table
+	 *
+	 * @param	string	the row attributes
+	 * @param	array	the array of cell data, each element is an array,
+	 *				  	the first item being the text,
+	 *					  the subsequent items are attributes
+	 * @param	boolean is this row part of the title ?
+	 *
+	 */
+
+
+	 function multiTableRow($row_attr, $cell_data, $istitle) {
+		$return= '
+		<!-- multiTableRow -->
+		<tr class="multi_table_row" '.$row_attr;
+		if ( $istitle ) {
+			$return .=' align="center" ';
+		}
+		$return .= '>';
+		for ( $c = 0; $c < count($cell_data); $c++ ) {
+			$return .='<td ';
+			for ( $a=1; $a < count($cell_data[$c]); $a++) {
+				$return .= $cell_data[$c][$a].' ';
+			}
+			$return .= '>';
+			if ( $istitle ) {
+				$return .='<span class="titlebar">';
+			}
+			$return .= $cell_data[$c][0];
+			if ( $istitle ) {
+				$return .='</span>';
+			}
+			$return .= '</td>';
+
+		}
+		$return .= '</tr>
+		<!-- end multiTableRow -->
+		';
+
+		return $return;
+	 }
+
+        function searchBox($print=1) {
+                global $Language,$words,$forum_id,$group_id,$group_project_id,$atid,$exact,$type_of_search;
+
+                if(get_magic_quotes_gpc()) {
+                        $defaultWords = stripslashes($words);
+                } else {
+                        $defaultWords = $words;
+                }
+
+                // if there is no search currently, set the default
+                if ( ! isset($type_of_search) ) {
+                        $exact = 1;
+                }
+	if($print)
+{
+                print '
+                <form action="/search/" method="get">';
+                $parameters = array(
+                        SEARCH__PARAMETER_GROUP_ID => $group_id,
+                        SEARCH__PARAMETER_ARTIFACT_ID => $atid,
+                        SEARCH__PARAMETER_FORUM_ID => $forum_id,
+                        SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id
+                );
+
+                $searchManager =& getSearchManager();
+                $searchManager->setParametersValues($parameters);
+                $searchEngines =& $searchManager->getAvailableSearchEngines();
+
+                echo '<select name="type_of_search">';
+                for($i = 0, $max = count($searchEngines); $i < $max; $i++) {
+                        $searchEngine =& $searchEngines[$i];
+                        echo '<option value="'.$searchEngine->getType().'"'.( $type_of_search == $searchEngine->getType() ? ' selected="selected"' : '' ).'>'.$searchEngine->getLabel($parameters).'</option>'."\n";
+                }
+                echo '</select>';
+
+//              print '<br />';
+//              print '
+//              <input type="CHECKBOX" name="exact" value="1"'.( $exact ? ' CHECKED' : ' UNCHECKED' ).'> Require All Words';
+
+                $parameters = $searchManager->getParameters();
+                foreach($parameters AS $name => $value) {
+                        print '<input type="hidden" value="'.$value.'" name="'.$name.'" />';
+                }
+                print '<input type="text" size="12" name="words" value="'.$defaultWords.'" />';
+
+                print '<input type="submit" name="Search" value="'.$Language->getText('searchbox','search').'" />';
+
+                if (isset($group_id)) {
+                        print '
+				<br/>
+				<span id="advanced_search">
+                                &rsaquo; <a href="/search/advanced_search.php?group_id='.$group_id.'">'
+					.$Language->getText('searchbox', 'advanced_search').'</a>
+				</span>';
+                }
+                print '</form>';
+} else
+{
+	 $re= '
+                <form action="/search/" method="get">';
+                $parameters = array(
+                        SEARCH__PARAMETER_GROUP_ID => $group_id,
+                        SEARCH__PARAMETER_ARTIFACT_ID => $atid,
+                        SEARCH__PARAMETER_FORUM_ID => $forum_id,
+                        SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id
+                );
+
+                $searchManager =& getSearchManager();
+                $searchManager->setParametersValues($parameters);
+                $searchEngines =& $searchManager->getAvailableSearchEngines();
+
+               $re.= '<select name="type_of_search">';
+                for($i = 0, $max = count($searchEngines); $i < $max; $i++) {
+                        $searchEngine =& $searchEngines[$i];
+                        $re.= '<option value="'.$searchEngine->getType().'"'.( $type_of_search == $searchEngine->getType() ? ' selected="selected"' : '' ).'>'.$searchEngine->getLabel($parameters).'</option>'."\n";
+                }
+                $re.= '</select>';
+
+//              print '<br />';
+//              print '
+//              <input type="CHECKBOX" name="exact" value="1"'.( $exact ? ' CHECKED' : ' UNCHECKED' ).'> Require All Words';
+
+                $parameters = $searchManager->getParameters();
+                foreach($parameters AS $name => $value) {
+                       $re.= '<input type="hidden" value="'.$value.'" name="'.$name.'" />';
+                }
+                $re.= '<input type="text" size="12" name="words" value="'.$defaultWords.'" />';
+
+                $re.='<input type="submit" name="Search" value="'.$Language->getText('searchbox','search').'" />';
+
+                if (isset($group_id)) {
+                        $re.= '
+				<br/>
+				<span id="advanced_search">
+                                &rsaquo; <a href="/search/advanced_search.php?group_id='.$group_id.'">'
+					.$Language->getText('searchbox', 'advanced_search').'</a>
+				</span>';
+                }
+                $re.='</form>';
+		return $re;
+}
+}
+
+}
+
+?>


Property changes on: trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis/Theme.class.php.old
___________________________________________________________________
Name: svn:keywords
   + Author CVSHeader Date HeadURL Id LastChangedBy LastChangedDate LastChangedRevision Log Revision Source State
Name: svn:mergeinfo
   + 

Deleted: trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis_old/Theme.class.php
===================================================================
--- trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis_old/Theme.class.php	2009-06-15 14:10:22 UTC (rev 142)
+++ trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis_old/Theme.class.php	2009-06-15 14:12:24 UTC (rev 143)
@@ -1,811 +0,0 @@
-<?php
-/* Evolvis theme for tarent GmbH
- * heavily modified version of the Mac OS X like theme.
- * Copyright (c) 2009 Thorsten Glaser <t.glaser at tarent.de>
- * Copyright (c) 2007 Thorsten Glaser <t.glaser at aurisp.de>
- *	on behalf of tarent GmbH
- * Copyright (c) 2007 Waldemar Brodkorb <w.brodkorb at tarent.de>
- *
- * Copyright (c) 2002-2003 Richard Offer. All rights reserved.
- *
- * Permission to use, copy, modify, distribute, and sell this software and its
- * documentation for any purpose is hereby granted without fee, provided that
- * the above copyright notice appear in all copies and that both that
- * copyright notice and this permission notice appear in supporting
- * documentation.
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
- * AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
- * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * Except as contained in this notice, the name of the author shall not be
- * used in advertising or otherwise to promote the sale, use or other dealings
- * in this Software without prior written authorization from the author.
-
- *
- * Based on the "debian" theme, which is apparantly :-
- * 		Copyright 1999-2001 (c) VA Linux Systems
- *
- * @version   $Id$
- */
-class Theme extends Layout {
-
-	/**
-	 * Theme() - Constructor
-	 */
-	function Theme() {
-		// Parent constructor
-		$this->Layout();
-
-		// The root location for images
-		$this->imgroot = '/themes/evolvis_old/images/';
-		$this->imgproj = '/themes/evolvis_old/images/proj/';
-
-		// The primary light background color
-		// Alternate list
-		$this->COLOR_LTBACK1= '#FFFFFF';
-
-		// The secondary light background color
-		$this->COLOR_LTBACK2= '#FFFFFF';
-
-		// The HTML box background color
-		$this->COLOR_HTMLBOX_BACK = '#FFFFFF';
-
-		// The color to separate HTML boxes
-		$this->COLOR_HTMLBOX_SEP = '#000000';
-
-		// Font Face Constants
-		// The content font
-		$this->FONT_CONTENT = 'sans-serif';
-		// The HTML box title font
-		$this->FONT_HTMLBOX_TITLE = 'sans-serif';
-		// The HTML box title font color
-		$this->FONTCOLOR_HTMLBOX_TITLE = '#72A5D8';
-		// The content font color
-		$this->FONTCOLOR_CONTENT = '#202020';
-		//The smaller font size
-		$this->FONTSIZE_SMALLER='small';
-		//The smallest font size
-		$this->FONTSIZE_SMALLEST='x-small';
-		//The HTML box title font size
-		$this->FONTSIZE_HTMLBOX_TITLE = 'x-small';
-
-// new variables introduced by this theme...
-		// background image
-		//$this->BACKGROUND= 'background.png';
-
-		// height of a tab (ie the size of the background image), 23 is specified in the
-		// style guide and so the background images were drawn for that size, changing
-		// this will lead to the images being cropped or tiled, either will look bad.
-		$this->TAB_HEIGHT=23;
-
-
-		// the following are not used in this theme, but have been set to obnoxious
-		// colors to help debug any new pages that make assumptions about a theme...
-		// The content background color
-		$this->COLOR_CONTENT_BACK= '#0000FF';
-		// The background color
-		$this->COLOR_BACK= '#00FF00';
-		// The HTML box title color
-		$this->COLOR_HTMLBOX_TITLE = '#FF0000';
-
-		//by cepe
-		//standard evolvis color
-		$this->EVOLVIS_COLOR='#CC0E08';
-		$this->EVOLVIS_BG_COLOR='#bebebe';
-		$this->allvar=array( 	'imgroot' => '/themes/evolvis_old/images/',
-					'imgproj' => '/themes/evolvis_old/images/proj/',
-					'COLOR_LTBACK1' => '#FFFFFF',
-					'COLOR_LTBACK2' => '#FFFFFF',
-					'COLOR_HTMLBOX_BACK' => '#FFFFFF',
-					'COLOR_HTMLBOX_SEP' => '#000000',
-					'FONT_CONTENT' => 'sans-serif',
-					'FONT_HTMLBOX_TITLE' => 'sans-serif',
-					'FONTCOLOR_HTMLBOX_TITLE' => '#72A5D8',
-					'FONTCOLOR_CONTENT' => '#202020',
-					'FONTSIZE_SMALLER' => 'small',
-					'FONTSIZE_SMALLEST' => 'x-small',
-					'FONTSIZE_HTMLBOX_TITLE' => 'x-small',
-					'TAB_HEIGHT' => 23,
-					'COLOR_CONTENT_BACK' => '#0000FF',
-					'COLOR_BACK' => '#00FF00',
-					'COLOR_HTMLBOX_TITLE' => '#FF0000'
-				);
-		require_once('template.class');
-		$this->template = new template('/usr/share/gforge/www/themes/evolvis_old/templates/');
-	}
-
-	/**
-	 *	header() - "steel theme" top of page
-	 *
-	 * @param	array	Header parameters array
-	 */
-	function header($params) {
-		global $Language, $sys_name,$tabcount;
-		$site_fonts=' sans-serif';
-		$this->SITE_FONTS=$site_fonts;
-		$params['title']=(!$params['title'])?$sys_name:$sys_name.': '.$params['title'];
-
-		$tpl_input['param_title']	= $params['title'];
-		$tpl_input['lang_encoding']	= $Language->getEncoding();
-		$tpl_input['lang_languagecode']	= $Language->getLanguageCode();
-		$tpl_input['issecure']		= session_issecure()?'s':'';
-		$tpl_input['default_domain']	= $GLOBALS['sys_default_domain'];
-		$tpl_input['SESSION_LOGGEDIN']	= session_loggedin();
-		$tpl_input['lang_getText_common_login'] = $Language->getText('common','login');
-		$tpl_input['lang_getText_common_logout'] = $Language->getText('common','logout');
-		$tpl_input['lang_getText_common_newaccount'] = $Language->getText('common','newaccount');
-		$tpl_input['lang_getText_common_myaccount'] = $Language->getText('common','myaccount');
-		$tpl_input['lang_getText_menu_mypage'] = $Language->getText('menu','mypage');
-
-		####Head-Variablen####
-		$tpl_input['searchBox']=$this->searchBox(0);
-		$tpl_input['outerTabs']=$this->outerTabs($params,0);
-		if (isset($params['group'])) {
-			$tpl_input['projectTabs'] = $this->projectTabs($params['toptab'],$params['group']);
-		}
-		$count = $GLOBALS['tabcount']-1;
-
-		$tpl_input['publicName'] = '';
-		if (array_key_exists ('group', $params)){
-				$project = group_get_object($params['group']);
-				if ($project && is_object($project) && !$project->isError() && $project->isProject()){
-					$tpl_input['publicName'] = "<div id=\"project_name\">Project: <u>".$project->getPublicName()."</u></div>";
-				}
-		}
-		if( eregi("(msie) ([0-9]{1,2}.[0-9]{1,3})",$_SERVER['HTTP_USER_AGENT'],$regs) )  {
-			$tpl_input['ie']='_ie';
-		}
-		$this->template->assign_vars($tpl_input);
-		$this->template->assign_vars($this->allvar);
-		$this->template->set_filenames(array('header'=>'overall_header.tpl'));
-		$this->template->pparse('header');
-	}
-
-	function footer($params) {
-		$tpl_input['SCRIPT_NAME']='';
-		global $sys_show_source;
-		if ($sys_show_source) {
-			global $SCRIPT_NAME;
-			$tpl_input['SCRIPT_NAME']='<a class="showsource" href="/source.php?file=' . $SCRIPT_NAME . '">Show Source</a>';
-		}
-		$this->template->assign_vars($tpl_input);
-		$this->template->set_filenames(array('footer'=>'overall_footer.tpl'));
-		$this->template->pparse('footer');
-	}
-
-
-	/**
-	 * boxTop() - Top HTML box
-	 *
-	 * @param   string  Box title
-	 * @param   bool	Whether to echo or return the results
-	 * @param   string  The box background color
-	 */
-	function boxTop($title) {
-		return '
-		<!-- boxTop -->
-		<table cellspacing="2" cellpadding="0" width="100%" border="0">
-		<tr>
-		<td>
-
-			<table cellspacing="2" cellpadding="0" width="100%" border="0" >
-				<tr class="titlebar">
-					<td colspan="2">'.$title.'</td>
-				</tr>
-				<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
-					<td colspan="2" height="1"></td></tr><tr align="left"><td colspan="2">';
-	}
-
-	/**
-	 * boxMiddle() - Middle HTML box
-	 *
-	 * @param   string  Box title
-	 * @param   string  The box background color
-	 */
-	function boxMiddle($title) {
-		return '
-				<!-- boxMiddle -->
-				</td>
-				</tr>
-				<tr class="titlebar">
-					<td colspan="2"><span>'.$title.'</span></td>
-				</tr>
-				<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
-					<td colspan="2" height="1"></td></tr><tr><td colspan="2">';
-	}
-
-	/**
-	 * boxGetAltRowStyle() - Get an alternating row style for tables
-	 *
-	 * @param			   int			 Row number
-	 */
-	function boxGetAltRowStyle($i) {
-		switch ($i % 3 ) {
-			case 0:
-				return 'bgcolor="#FFFFFF"';
-			case 1:
-				return 'bgcolor="' . $this->COLOR_LTBACK1 . '"';
-			case 2:
-				return 'bgcolor="' . $this->COLOR_LTBACK2 . '"';
-		}
-	}
-
-	/**
-	 * boxBottom() - Bottom HTML box
-	 *
-	 * @param   bool	Whether to echo or return the results
-	 */
-	function boxBottom() {
-		return '<!-- boxBottom -->
-					</td>
-				</tr>
-			</table>
-		</td>
-		</tr>
-		</table>';
-	}
-
-	/**
-	 * listTableTop() - Takes an array of titles and builds the first row of a new table.
-	 *
-	 * @param	   array   The array of titles
-	 * @param	   array   The array of title links
-	 */
-	function listTableTop ($title_arr,$links_arr=false) {
-		$return = '
-		<!-- listTableTop -->
-		<table cellspacing="0" cellpadding="1" width="100%" border="0">
-		<tr><td>
-		<table width="100%" border="0" cellspacing="2" cellpadding="0">
-			<tr>';
-
-		$count=count($title_arr);
-		if ($links_arr) {
-			for ($i=0; $i<$count; $i++) {
-				$return .= '
-				<td align="left"><a class="titlebar" href="'.$links_arr[$i].'">'.$title_arr[$i].'</a></td>';
-			}
-		} else {
-			for ($i=0; $i<$count; $i++) {
-				$return .= '
-				<td align="left" class="list_table_top">'.$title_arr[$i].'</td>';
-			}
-		}
-		$return .= '
-		</tr>
-		<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
-			<td colspan="'.$count.'" height="1"><img src="'.$this->imgroot.'clear.png" height="1" width="1" alt="" /></td>
-		</tr>';
-		return $return;
-	}
-
-	function tabGenerator($TABS_DIRS,$TABS_TITLES,$nested=false,$selected=false,$sel_tab_bgcolor='WHITE',$total_width='100%',$TAB_TYPE) {
-
-		$count=count($TABS_DIRS);
-/*		//$width=intval((100/($count)))-0.5;
-		$width=floor ((100/($count))*0.9);
-		$space=intval($width/2);
-		if ($nested) {		
-			$inner='-inner';
-		} else {
-			$inner='';
-		}*/
-		//$return = '<ul class="tab_bar">';
-		$return='';
-		for ($i=0; $i<$count; $i++) {
-			$TABS_TITLES[$i] = preg_replace("/ +/", "&nbsp;", $TABS_TITLES[$i]);
-			//by cepe
-			$return .= '<li class="tab '.$TAB_TYPE.' '. (($selected==$i)?' active_tab':'').'">'.
-                                '<a href="'. $TABS_DIRS[$i] .'">'. $TABS_TITLES[$i] .'</a></li>'."\n";
-		}
-		//$return = $return.'</ul>';
-		return $return;
-	}
-
-	function outerTabs($params,$write=1) {
-		global $Language,$sys_use_trove,$sys_use_snippet,$sys_use_people;
-
-		$TABS_DIRS[]='/';
-//		$TABS_DIRS[]='/my/';
-		if ($sys_use_trove) {
-			$TABS_DIRS[]='/softwaremap/';
-		}
-//		if ($sys_use_snippet) {
-//			$TABS_DIRS[]='/snippet/';
-//		}
-//		if ($sys_use_people) {
-//			$TABS_DIRS[]='/people/';
-//		}
-		$TABS_TITLES[]=$Language->getText('menu','home');
-//		$TABS_TITLES[]=$Language->getText('menu','mypage');
-		if ($sys_use_trove) {
-			$TABS_TITLES[]=$Language->getText('menu','projectree');
-		}
-//		if ($sys_use_snippet) {
-//			$TABS_TITLES[]=$Language->getText('menu','code_snippet');
-//		}
-//		if ($sys_use_people) {
-//			$TABS_TITLES[]=$Language->getText('menu','project_help_wanted');
-//		}
-		if (user_ismember(1,'A')) {
-			$TABS_DIRS[]='/admin/';
-			//$TABS_TITLES[]=$Language->getText('menu','admin');
-			$TABS_TITLES[]='Site-Admin';
-		}
-		if (user_ismember($GLOBALS['sys_stats_group'])) {
-			$TABS_DIRS[]='/reporting/';
-			$TABS_TITLES[]=$Language->getText('menu','reporting');
-		}
-/*		if(isset($params['group']) && $params['group']) {
-			// get group info using the common result set
-			$project =& group_get_object($params['group']);
-			if ($project && is_object($project)) {
-				if ($project->isError()) {
-
-				} elseif (!$project->isProject()) {
-
-				} else {
-					$TABS_DIRS[]='/projects/'.$project->getUnixName().'/';
-					$TABS_TITLES[]=$project->getPublicName();
-					$selected=count($TABS_DIRS)-1;
-				}
-			}
-		}
-		*/
-		if (strstr($GLOBALS['REQUEST_URI'],'/my/') || strstr($GLOBALS['REQUEST_URI'],'/account/') || 
-				strstr($GLOBALS['REQUEST_URI'],'/themes/') ) {
-			$selected=array_search("/my/", $TABS_DIRS);
-		} elseif (strstr($GLOBALS['REQUEST_URI'],'softwaremap')) {
-			$selected=array_search("/softwaremap/", $TABS_DIRS);
-		} elseif (strstr($GLOBALS['REQUEST_URI'],'/snippet/')) {
-			$selected=array_search("/snippet/", $TABS_DIRS);
-		} elseif (strstr($GLOBALS['REQUEST_URI'],'/people/')) {
-			$selected=array_search("/people/", $TABS_DIRS);
-		} elseif (strstr($GLOBALS['REQUEST_URI'],'/reporting/')) {
-			$selected=array_search('/reporting/',$TABS_DIRS);
-		} elseif (strstr($GLOBALS['REQUEST_URI'],'/admin/') && user_ismember(1,'A')) {
-			$selected=array_search('/admin/',$TABS_DIRS);;
-		} else {
-			$selected=0;
-		}
-
-		if (!$this->COLOR_SELECTED_TAB) {
-			$this->COLOR_SELECTED_TAB= '#e0e0e0';
-		}
-		$GLOBALS['tabcount'] = count($TABS_DIRS);
-		if(!$write)
-		{
-			return $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%',"outerTab");
-		} else
-		{
-			echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%',"outerTab");
-		}
-	}
-
-	/**
-	 *	projectTabs() - Prints out the project tabs, contained here in case
-	 *		we want to allow it to be overriden
-	 *
-	 *	@param	string	Is the tab currently selected
-	 *	@param	string	Is the group we should look up get title info
-	 */
-	function projectTabs($toptab,$group) {
-
-		global $Language;
-
-		// get group info using the common result set
-		$project =& group_get_object($group);
-		if (!$project || !is_object($project)) {
-			return;
-		}
-		if ($project->isError()) {
-			//wasn't found or some other problem
-			return;
-		}
-		if (!$project->isProject()) {
-			return;
-		}
-
-		// Summary
-		$TABS_DIRS[]='/projects/'. $project->getUnixName() .'/';
-		$TABS_TITLES[]=$Language->getText('group','short_summary');
-		(($toptab == 'home') ? $selected=(count($TABS_TITLES)-1) : '' );
-
-		if (user_ismember($group,'A')) {
-			// Project Admin
-			$TABS_DIRS[]='/project/admin/?group_id='. $group;
-			$TABS_TITLES[]=$Language->getText('group','short_admin');
-			(($toptab == 'admin') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-		/* Homepage
-		$TABS_DIRS[]='http://'. $project->getHomePage();
-		$TABS_TITLES[]=$Language->getText('group','short_homepage');
-		*/
-
-		// Forums
-		if ($project->usesForum()) {
-			$TABS_DIRS[]='/forum/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_forum');
-			(($toptab == 'forums') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// Artifact Tracking
-		if ($project->usesTracker()) {
-			$TABS_DIRS[]='/tracker/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_tracker');
-			(($toptab == 'tracker' || $toptab == 'bugs' || $toptab == 'support' || $toptab == 'patch')
-				? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// Mailing Lists
-		if ($project->usesMail()) {
-			$TABS_DIRS[]='/mail/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_mail');
-			(($toptab == 'mail') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// Project Manager
-		if ($project->usesPm()) {
-			$TABS_DIRS[]='/pm/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_pm');
-			(($toptab == 'pm') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// Doc Manager
-		if ($project->usesDocman()) {
-			$TABS_DIRS[]='/docman/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_docman');
-			(($toptab == 'docman') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		//newsbytes
-		if ($project->usesNews()) {
-			$TABS_DIRS[]='/news/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_news');
-			(($toptab == 'news') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// SCM systems
-		if ($project->usesSCM()) {
-			$TABS_DIRS[]='/scm/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_scm');
-			(($toptab == 'scm') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// groupmenu_after_scm hook
-		$hookParams['DIRS'] = &$TABS_DIRS;
-		$hookParams['TITLES'] = &$TABS_TITLES;
-		$hookParams['toptab'] = &$toptab;
-		$hookParams['selected'] = &$selected;
-		$hookParams['group_id'] = $group ;
-				
-		plugin_hook ("groupmenu_scm", $hookParams) ; 
-
-		// Downloads
-		if ($project->usesFRS()) {
-			$TABS_DIRS[]='/frs/?group_id='.$group;
-			$TABS_TITLES[]=$Language->getText('group','short_files');
-			(($toptab == 'frs') ? $selected=(count($TABS_TITLES)-1) : '' );
-		}
-
-		// groupmenu hook
-		$hookParams['DIRS'] = &$TABS_DIRS;
-		$hookParams['TITLES'] = &$TABS_TITLES;
-		$hookParams['toptab'] = &$toptab;
-		$hookParams['selected'] = &$selected;
-		$hookParams['group'] = $group;
-				
-		plugin_hook ("groupmenu", $hookParams) ; 
-
-		$GLOBALS['tabcount'] = count($TABS_DIRS);
-		
-		//reverse array to show tabs in right order if tabs are floated to the right
-		//$TABS_DIRS = array_reverse($TABS_DIRS);
-		//$TABS_TITLES = array_reverse($TABS_TITLES);
-		//echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,true,$selected,'white','100%','projectTab');
-		return $this->tabGenerator($TABS_DIRS,$TABS_TITLES,true,$selected,'white','100%','projectTab');
-
-	}
-
-/*	function generalTabs($params) {
-			global $Language,$sys_use_trove,$sys_use_snippet,$sys_use_people;
-
-			//$TABS_DIRS[]='/';
-			//$TABS_TITLES[]=$Language->getText('menu','home');
-
-			//$TABS_DIRS[]='/my/';
-			//$TABS_TITLES[]=$Language->getText('menu','mypage');
-
-			if (user_ismember(1,'A')) {
-				$TABS_DIRS[]='/admin/';
-				$TABS_TITLES[]=$Language->getText('menu','admin');
-			}
-
-			if ($sys_use_trove) {
-				$TABS_DIRS[]='/softwaremap/';
-				$TABS_TITLES[]=$Language->getText('menu','projectree');
-			}
-
-			if (user_ismember($GLOBALS['sys_stats_group'])) {
-				$TABS_DIRS[]='/reporting/';
-				$TABS_TITLES[]=$Language->getText('menu','reporting');
-			}
-
-			// $selected=count($TABS_DIRS)-1; <- Fehlt bei den obrigen Tabs!
-
-			if ($params['group']) {
-
-			$group = $params['group'];
-			$toptab = $params['toptab'];
-
-			$project =& group_get_object($group);
-			if (!$project || !is_object($project)) {
-				return;
-			}
-			if ($project->isError()) {
-				//wasn't found or some other problem
-				return;
-			}
-			if (!$project->isProject()) {
-				return;
-			}	
-
-
-				// Summary
-				$TABS_DIRS[]='/projects/'. $project->getUnixName() .'/';
-				$TABS_TITLES[]=$Language->getText('group','short_summary');
-
-				(($toptab == 'home') ? $selected=(count($TABS_TITLES)-1) : '' );
-
-				if (user_ismember($group,'A')) {
-					// Project Admin
-					$TABS_DIRS[]='/project/admin/?group_id='. $group;
-					$TABS_TITLES[]=$Language->getText('group','short_admin');
-					(($toptab == 'admin') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// Forums
-				if ($project->usesForum()) {
-					$TABS_DIRS[]='/forum/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_forum');
-					(($toptab == 'forums') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// Artifact Tracking
-				if ($project->usesTracker()) {
-					$TABS_DIRS[]='/tracker/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_tracker');
-					(($toptab == 'tracker' || $toptab == 'bugs' || $toptab == 'support' || $toptab == 'patch')
-						? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// Mailing Lists
-				if ($project->usesMail()) {
-					$TABS_DIRS[]='/mail/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_mail');
-					(($toptab == 'mail') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// Project Manager
-				if ($project->usesPm()) {
-					$TABS_DIRS[]='/pm/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_pm');
-					(($toptab == 'pm') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// Doc Manager
-				if ($project->usesDocman()) {
-					$TABS_DIRS[]='/docman/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_docman');
-					(($toptab == 'docman') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				//newsbytes
-				if ($project->usesNews()) {
-					$TABS_DIRS[]='/news/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_news');
-					(($toptab == 'news') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// SCM systems
-				if ($project->usesSCM()) {
-					$TABS_DIRS[]='/scm/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_scm');
-					(($toptab == 'scm') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// groupmenu_after_scm hook
-				$hookParams['DIRS'] = &$TABS_DIRS;
-				$hookParams['TITLES'] = &$TABS_TITLES;
-				$hookParams['toptab'] = &$toptab;
-				$hookParams['selected'] = &$selected;
-				$hookParams['group_id'] = $group ;
-
-				plugin_hook ("groupmenu_scm", $hookParams) ; 
-
-				// Downloads
-				if ($project->usesFRS()) {
-					$TABS_DIRS[]='/frs/?group_id='.$group;
-					$TABS_TITLES[]=$Language->getText('group','short_files');
-					(($toptab == 'frs') ? $selected=(count($TABS_TITLES)-1) : '' );
-				}
-
-				// groupmenu_after_scm hook
-				$hookParams['DIRS'] = &$TABS_DIRS;
-				$hookParams['TITLES'] = &$TABS_TITLES;
-				$hookParams['toptab'] = &$toptab;
-				$hookParams['selected'] = &$selected;
-				$hookParams['group_id'] = $group;
-
-				plugin_hook ("groupmenu_scm", $hookParams);
-
-
-			}
-				
-			if (!$this->COLOR_SELECTED_TAB) {
-				$this->COLOR_SELECTED_TAB= '#e0e0e0';
-			}
-
-			$GLOBALS['tabcount'] = count($TABS_DIRS);
-			echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%','generalTab');
-		//	echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%');
-	
-	}
-
-*/
-	/**
-	 * multiTableRow() - create a mutlilevel row in a table
-	 *
-	 * @param	string	the row attributes
-	 * @param	array	the array of cell data, each element is an array,
-	 *				  	the first item being the text,
-	 *					  the subsequent items are attributes
-	 * @param	boolean is this row part of the title ?
-	 *
-	 */
-
-
-	 function multiTableRow($row_attr, $cell_data, $istitle) {
-		$return= '
-		<!-- multiTableRow -->
-		<tr class="multi_table_row" '.$row_attr;
-		if ( $istitle ) {
-			$return .=' align="center" ';
-		}
-		$return .= '>';
-		for ( $c = 0; $c < count($cell_data); $c++ ) {
-			$return .='<td ';
-			for ( $a=1; $a < count($cell_data[$c]); $a++) {
-				$return .= $cell_data[$c][$a].' ';
-			}
-			$return .= '>';
-			if ( $istitle ) {
-				$return .='<span class="titlebar">';
-			}
-			$return .= $cell_data[$c][0];
-			if ( $istitle ) {
-				$return .='</span>';
-			}
-			$return .= '</td>';
-
-		}
-		$return .= '</tr>
-		<!-- end multiTableRow -->
-		';
-
-		return $return;
-	 }
-
-        function searchBox($print=1) {
-                global $Language,$words,$forum_id,$group_id,$group_project_id,$atid,$exact,$type_of_search;
-
-                if(get_magic_quotes_gpc()) {
-                        $defaultWords = stripslashes($words);
-                } else {
-                        $defaultWords = $words;
-                }
-
-                // if there is no search currently, set the default
-                if ( ! isset($type_of_search) ) {
-                        $exact = 1;
-                }
-	if($print)
-{
-                print '
-                <form action="/search/" method="get">';
-                $parameters = array(
-                        SEARCH__PARAMETER_GROUP_ID => $group_id,
-                        SEARCH__PARAMETER_ARTIFACT_ID => $atid,
-                        SEARCH__PARAMETER_FORUM_ID => $forum_id,
-                        SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id
-                );
-
-                $searchManager =& getSearchManager();
-                $searchManager->setParametersValues($parameters);
-                $searchEngines =& $searchManager->getAvailableSearchEngines();
-
-                echo '<select name="type_of_search">';
-                for($i = 0, $max = count($searchEngines); $i < $max; $i++) {
-                        $searchEngine =& $searchEngines[$i];
-                        echo '<option value="'.$searchEngine->getType().'"'.( $type_of_search == $searchEngine->getType() ? ' selected="selected"' : '' ).'>'.$searchEngine->getLabel($parameters).'</option>'."\n";
-                }
-                echo '</select>';
-
-//              print '<br />';
-//              print '
-//              <input type="CHECKBOX" name="exact" value="1"'.( $exact ? ' CHECKED' : ' UNCHECKED' ).'> Require All Words';
-
-                $parameters = $searchManager->getParameters();
-                foreach($parameters AS $name => $value) {
-                        print '<input type="hidden" value="'.$value.'" name="'.$name.'" />';
-                }
-                print '<input type="text" size="12" name="words" value="'.$defaultWords.'" />';
-
-                print '<input type="submit" name="Search" value="'.$Language->getText('searchbox','search').'" />';
-
-                if (isset($group_id)) {
-                        print '
-				<br/>
-				<span id="advanced_search">
-                                &rsaquo; <a href="/search/advanced_search.php?group_id='.$group_id.'">'
-					.$Language->getText('searchbox', 'advanced_search').'</a>
-				</span>';
-                }
-                print '</form>';
-} else
-{
-	 $re= '
-                <form action="/search/" method="get">';
-                $parameters = array(
-                        SEARCH__PARAMETER_GROUP_ID => $group_id,
-                        SEARCH__PARAMETER_ARTIFACT_ID => $atid,
-                        SEARCH__PARAMETER_FORUM_ID => $forum_id,
-                        SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id
-                );
-
-                $searchManager =& getSearchManager();
-                $searchManager->setParametersValues($parameters);
-                $searchEngines =& $searchManager->getAvailableSearchEngines();
-
-               $re.= '<select name="type_of_search">';
-                for($i = 0, $max = count($searchEngines); $i < $max; $i++) {
-                        $searchEngine =& $searchEngines[$i];
-                        $re.= '<option value="'.$searchEngine->getType().'"'.( $type_of_search == $searchEngine->getType() ? ' selected="selected"' : '' ).'>'.$searchEngine->getLabel($parameters).'</option>'."\n";
-                }
-                $re.= '</select>';
-
-//              print '<br />';
-//              print '
-//              <input type="CHECKBOX" name="exact" value="1"'.( $exact ? ' CHECKED' : ' UNCHECKED' ).'> Require All Words';
-
-                $parameters = $searchManager->getParameters();
-                foreach($parameters AS $name => $value) {
-                       $re.= '<input type="hidden" value="'.$value.'" name="'.$name.'" />';
-                }
-                $re.= '<input type="text" size="12" name="words" value="'.$defaultWords.'" />';
-
-                $re.='<input type="submit" name="Search" value="'.$Language->getText('searchbox','search').'" />';
-
-                if (isset($group_id)) {
-                        $re.= '
-				<br/>
-				<span id="advanced_search">
-                                &rsaquo; <a href="/search/advanced_search.php?group_id='.$group_id.'">'
-					.$Language->getText('searchbox', 'advanced_search').'</a>
-				</span>';
-                }
-                $re.='</form>';
-		return $re;
-}
-}
-
-}
-
-?>

Copied: trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis_old/Theme.class.php.old (from rev 142, trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis_old/Theme.class.php)
===================================================================
--- trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis_old/Theme.class.php.old	                        (rev 0)
+++ trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis_old/Theme.class.php.old	2009-06-15 14:12:24 UTC (rev 143)
@@ -0,0 +1,811 @@
+<?php
+/* Evolvis theme for tarent GmbH
+ * heavily modified version of the Mac OS X like theme.
+ * Copyright (c) 2009 Thorsten Glaser <t.glaser at tarent.de>
+ * Copyright (c) 2007 Thorsten Glaser <t.glaser at aurisp.de>
+ *	on behalf of tarent GmbH
+ * Copyright (c) 2007 Waldemar Brodkorb <w.brodkorb at tarent.de>
+ *
+ * Copyright (c) 2002-2003 Richard Offer. All rights reserved.
+ *
+ * Permission to use, copy, modify, distribute, and sell this software and its
+ * documentation for any purpose is hereby granted without fee, provided that
+ * the above copyright notice appear in all copies and that both that
+ * copyright notice and this permission notice appear in supporting
+ * documentation.
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+ * AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Except as contained in this notice, the name of the author shall not be
+ * used in advertising or otherwise to promote the sale, use or other dealings
+ * in this Software without prior written authorization from the author.
+
+ *
+ * Based on the "debian" theme, which is apparantly :-
+ * 		Copyright 1999-2001 (c) VA Linux Systems
+ *
+ * @version   $Id$
+ */
+class Theme extends Layout {
+
+	/**
+	 * Theme() - Constructor
+	 */
+	function Theme() {
+		// Parent constructor
+		$this->Layout();
+
+		// The root location for images
+		$this->imgroot = '/themes/evolvis_old/images/';
+		$this->imgproj = '/themes/evolvis_old/images/proj/';
+
+		// The primary light background color
+		// Alternate list
+		$this->COLOR_LTBACK1= '#FFFFFF';
+
+		// The secondary light background color
+		$this->COLOR_LTBACK2= '#FFFFFF';
+
+		// The HTML box background color
+		$this->COLOR_HTMLBOX_BACK = '#FFFFFF';
+
+		// The color to separate HTML boxes
+		$this->COLOR_HTMLBOX_SEP = '#000000';
+
+		// Font Face Constants
+		// The content font
+		$this->FONT_CONTENT = 'sans-serif';
+		// The HTML box title font
+		$this->FONT_HTMLBOX_TITLE = 'sans-serif';
+		// The HTML box title font color
+		$this->FONTCOLOR_HTMLBOX_TITLE = '#72A5D8';
+		// The content font color
+		$this->FONTCOLOR_CONTENT = '#202020';
+		//The smaller font size
+		$this->FONTSIZE_SMALLER='small';
+		//The smallest font size
+		$this->FONTSIZE_SMALLEST='x-small';
+		//The HTML box title font size
+		$this->FONTSIZE_HTMLBOX_TITLE = 'x-small';
+
+// new variables introduced by this theme...
+		// background image
+		//$this->BACKGROUND= 'background.png';
+
+		// height of a tab (ie the size of the background image), 23 is specified in the
+		// style guide and so the background images were drawn for that size, changing
+		// this will lead to the images being cropped or tiled, either will look bad.
+		$this->TAB_HEIGHT=23;
+
+
+		// the following are not used in this theme, but have been set to obnoxious
+		// colors to help debug any new pages that make assumptions about a theme...
+		// The content background color
+		$this->COLOR_CONTENT_BACK= '#0000FF';
+		// The background color
+		$this->COLOR_BACK= '#00FF00';
+		// The HTML box title color
+		$this->COLOR_HTMLBOX_TITLE = '#FF0000';
+
+		//by cepe
+		//standard evolvis color
+		$this->EVOLVIS_COLOR='#CC0E08';
+		$this->EVOLVIS_BG_COLOR='#bebebe';
+		$this->allvar=array( 	'imgroot' => '/themes/evolvis_old/images/',
+					'imgproj' => '/themes/evolvis_old/images/proj/',
+					'COLOR_LTBACK1' => '#FFFFFF',
+					'COLOR_LTBACK2' => '#FFFFFF',
+					'COLOR_HTMLBOX_BACK' => '#FFFFFF',
+					'COLOR_HTMLBOX_SEP' => '#000000',
+					'FONT_CONTENT' => 'sans-serif',
+					'FONT_HTMLBOX_TITLE' => 'sans-serif',
+					'FONTCOLOR_HTMLBOX_TITLE' => '#72A5D8',
+					'FONTCOLOR_CONTENT' => '#202020',
+					'FONTSIZE_SMALLER' => 'small',
+					'FONTSIZE_SMALLEST' => 'x-small',
+					'FONTSIZE_HTMLBOX_TITLE' => 'x-small',
+					'TAB_HEIGHT' => 23,
+					'COLOR_CONTENT_BACK' => '#0000FF',
+					'COLOR_BACK' => '#00FF00',
+					'COLOR_HTMLBOX_TITLE' => '#FF0000'
+				);
+		require_once('template.class');
+		$this->template = new template('/usr/share/gforge/www/themes/evolvis_old/templates/');
+	}
+
+	/**
+	 *	header() - "steel theme" top of page
+	 *
+	 * @param	array	Header parameters array
+	 */
+	function header($params) {
+		global $Language, $sys_name,$tabcount;
+		$site_fonts=' sans-serif';
+		$this->SITE_FONTS=$site_fonts;
+		$params['title']=(!$params['title'])?$sys_name:$sys_name.': '.$params['title'];
+
+		$tpl_input['param_title']	= $params['title'];
+		$tpl_input['lang_encoding']	= $Language->getEncoding();
+		$tpl_input['lang_languagecode']	= $Language->getLanguageCode();
+		$tpl_input['issecure']		= session_issecure()?'s':'';
+		$tpl_input['default_domain']	= $GLOBALS['sys_default_domain'];
+		$tpl_input['SESSION_LOGGEDIN']	= session_loggedin();
+		$tpl_input['lang_getText_common_login'] = $Language->getText('common','login');
+		$tpl_input['lang_getText_common_logout'] = $Language->getText('common','logout');
+		$tpl_input['lang_getText_common_newaccount'] = $Language->getText('common','newaccount');
+		$tpl_input['lang_getText_common_myaccount'] = $Language->getText('common','myaccount');
+		$tpl_input['lang_getText_menu_mypage'] = $Language->getText('menu','mypage');
+
+		####Head-Variablen####
+		$tpl_input['searchBox']=$this->searchBox(0);
+		$tpl_input['outerTabs']=$this->outerTabs($params,0);
+		if (isset($params['group'])) {
+			$tpl_input['projectTabs'] = $this->projectTabs($params['toptab'],$params['group']);
+		}
+		$count = $GLOBALS['tabcount']-1;
+
+		$tpl_input['publicName'] = '';
+		if (array_key_exists ('group', $params)){
+				$project = group_get_object($params['group']);
+				if ($project && is_object($project) && !$project->isError() && $project->isProject()){
+					$tpl_input['publicName'] = "<div id=\"project_name\">Project: <u>".$project->getPublicName()."</u></div>";
+				}
+		}
+		if( eregi("(msie) ([0-9]{1,2}.[0-9]{1,3})",$_SERVER['HTTP_USER_AGENT'],$regs) )  {
+			$tpl_input['ie']='_ie';
+		}
+		$this->template->assign_vars($tpl_input);
+		$this->template->assign_vars($this->allvar);
+		$this->template->set_filenames(array('header'=>'overall_header.tpl'));
+		$this->template->pparse('header');
+	}
+
+	function footer($params) {
+		$tpl_input['SCRIPT_NAME']='';
+		global $sys_show_source;
+		if ($sys_show_source) {
+			global $SCRIPT_NAME;
+			$tpl_input['SCRIPT_NAME']='<a class="showsource" href="/source.php?file=' . $SCRIPT_NAME . '">Show Source</a>';
+		}
+		$this->template->assign_vars($tpl_input);
+		$this->template->set_filenames(array('footer'=>'overall_footer.tpl'));
+		$this->template->pparse('footer');
+	}
+
+
+	/**
+	 * boxTop() - Top HTML box
+	 *
+	 * @param   string  Box title
+	 * @param   bool	Whether to echo or return the results
+	 * @param   string  The box background color
+	 */
+	function boxTop($title) {
+		return '
+		<!-- boxTop -->
+		<table cellspacing="2" cellpadding="0" width="100%" border="0">
+		<tr>
+		<td>
+
+			<table cellspacing="2" cellpadding="0" width="100%" border="0" >
+				<tr class="titlebar">
+					<td colspan="2">'.$title.'</td>
+				</tr>
+				<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
+					<td colspan="2" height="1"></td></tr><tr align="left"><td colspan="2">';
+	}
+
+	/**
+	 * boxMiddle() - Middle HTML box
+	 *
+	 * @param   string  Box title
+	 * @param   string  The box background color
+	 */
+	function boxMiddle($title) {
+		return '
+				<!-- boxMiddle -->
+				</td>
+				</tr>
+				<tr class="titlebar">
+					<td colspan="2"><span>'.$title.'</span></td>
+				</tr>
+				<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
+					<td colspan="2" height="1"></td></tr><tr><td colspan="2">';
+	}
+
+	/**
+	 * boxGetAltRowStyle() - Get an alternating row style for tables
+	 *
+	 * @param			   int			 Row number
+	 */
+	function boxGetAltRowStyle($i) {
+		switch ($i % 3 ) {
+			case 0:
+				return 'bgcolor="#FFFFFF"';
+			case 1:
+				return 'bgcolor="' . $this->COLOR_LTBACK1 . '"';
+			case 2:
+				return 'bgcolor="' . $this->COLOR_LTBACK2 . '"';
+		}
+	}
+
+	/**
+	 * boxBottom() - Bottom HTML box
+	 *
+	 * @param   bool	Whether to echo or return the results
+	 */
+	function boxBottom() {
+		return '<!-- boxBottom -->
+					</td>
+				</tr>
+			</table>
+		</td>
+		</tr>
+		</table>';
+	}
+
+	/**
+	 * listTableTop() - Takes an array of titles and builds the first row of a new table.
+	 *
+	 * @param	   array   The array of titles
+	 * @param	   array   The array of title links
+	 */
+	function listTableTop ($title_arr,$links_arr=false) {
+		$return = '
+		<!-- listTableTop -->
+		<table cellspacing="0" cellpadding="1" width="100%" border="0">
+		<tr><td>
+		<table width="100%" border="0" cellspacing="2" cellpadding="0">
+			<tr>';
+
+		$count=count($title_arr);
+		if ($links_arr) {
+			for ($i=0; $i<$count; $i++) {
+				$return .= '
+				<td align="left"><a class="titlebar" href="'.$links_arr[$i].'">'.$title_arr[$i].'</a></td>';
+			}
+		} else {
+			for ($i=0; $i<$count; $i++) {
+				$return .= '
+				<td align="left" class="list_table_top">'.$title_arr[$i].'</td>';
+			}
+		}
+		$return .= '
+		</tr>
+		<tr align="left" bgcolor="'. $this->COLOR_HTMLBOX_BACK .'">
+			<td colspan="'.$count.'" height="1"><img src="'.$this->imgroot.'clear.png" height="1" width="1" alt="" /></td>
+		</tr>';
+		return $return;
+	}
+
+	function tabGenerator($TABS_DIRS,$TABS_TITLES,$nested=false,$selected=false,$sel_tab_bgcolor='WHITE',$total_width='100%',$TAB_TYPE) {
+
+		$count=count($TABS_DIRS);
+/*		//$width=intval((100/($count)))-0.5;
+		$width=floor ((100/($count))*0.9);
+		$space=intval($width/2);
+		if ($nested) {		
+			$inner='-inner';
+		} else {
+			$inner='';
+		}*/
+		//$return = '<ul class="tab_bar">';
+		$return='';
+		for ($i=0; $i<$count; $i++) {
+			$TABS_TITLES[$i] = preg_replace("/ +/", "&nbsp;", $TABS_TITLES[$i]);
+			//by cepe
+			$return .= '<li class="tab '.$TAB_TYPE.' '. (($selected==$i)?' active_tab':'').'">'.
+                                '<a href="'. $TABS_DIRS[$i] .'">'. $TABS_TITLES[$i] .'</a></li>'."\n";
+		}
+		//$return = $return.'</ul>';
+		return $return;
+	}
+
+	function outerTabs($params,$write=1) {
+		global $Language,$sys_use_trove,$sys_use_snippet,$sys_use_people;
+
+		$TABS_DIRS[]='/';
+//		$TABS_DIRS[]='/my/';
+		if ($sys_use_trove) {
+			$TABS_DIRS[]='/softwaremap/';
+		}
+//		if ($sys_use_snippet) {
+//			$TABS_DIRS[]='/snippet/';
+//		}
+//		if ($sys_use_people) {
+//			$TABS_DIRS[]='/people/';
+//		}
+		$TABS_TITLES[]=$Language->getText('menu','home');
+//		$TABS_TITLES[]=$Language->getText('menu','mypage');
+		if ($sys_use_trove) {
+			$TABS_TITLES[]=$Language->getText('menu','projectree');
+		}
+//		if ($sys_use_snippet) {
+//			$TABS_TITLES[]=$Language->getText('menu','code_snippet');
+//		}
+//		if ($sys_use_people) {
+//			$TABS_TITLES[]=$Language->getText('menu','project_help_wanted');
+//		}
+		if (user_ismember(1,'A')) {
+			$TABS_DIRS[]='/admin/';
+			//$TABS_TITLES[]=$Language->getText('menu','admin');
+			$TABS_TITLES[]='Site-Admin';
+		}
+		if (user_ismember($GLOBALS['sys_stats_group'])) {
+			$TABS_DIRS[]='/reporting/';
+			$TABS_TITLES[]=$Language->getText('menu','reporting');
+		}
+/*		if(isset($params['group']) && $params['group']) {
+			// get group info using the common result set
+			$project =& group_get_object($params['group']);
+			if ($project && is_object($project)) {
+				if ($project->isError()) {
+
+				} elseif (!$project->isProject()) {
+
+				} else {
+					$TABS_DIRS[]='/projects/'.$project->getUnixName().'/';
+					$TABS_TITLES[]=$project->getPublicName();
+					$selected=count($TABS_DIRS)-1;
+				}
+			}
+		}
+		*/
+		if (strstr($GLOBALS['REQUEST_URI'],'/my/') || strstr($GLOBALS['REQUEST_URI'],'/account/') || 
+				strstr($GLOBALS['REQUEST_URI'],'/themes/') ) {
+			$selected=array_search("/my/", $TABS_DIRS);
+		} elseif (strstr($GLOBALS['REQUEST_URI'],'softwaremap')) {
+			$selected=array_search("/softwaremap/", $TABS_DIRS);
+		} elseif (strstr($GLOBALS['REQUEST_URI'],'/snippet/')) {
+			$selected=array_search("/snippet/", $TABS_DIRS);
+		} elseif (strstr($GLOBALS['REQUEST_URI'],'/people/')) {
+			$selected=array_search("/people/", $TABS_DIRS);
+		} elseif (strstr($GLOBALS['REQUEST_URI'],'/reporting/')) {
+			$selected=array_search('/reporting/',$TABS_DIRS);
+		} elseif (strstr($GLOBALS['REQUEST_URI'],'/admin/') && user_ismember(1,'A')) {
+			$selected=array_search('/admin/',$TABS_DIRS);;
+		} else {
+			$selected=0;
+		}
+
+		if (!$this->COLOR_SELECTED_TAB) {
+			$this->COLOR_SELECTED_TAB= '#e0e0e0';
+		}
+		$GLOBALS['tabcount'] = count($TABS_DIRS);
+		if(!$write)
+		{
+			return $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%',"outerTab");
+		} else
+		{
+			echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%',"outerTab");
+		}
+	}
+
+	/**
+	 *	projectTabs() - Prints out the project tabs, contained here in case
+	 *		we want to allow it to be overriden
+	 *
+	 *	@param	string	Is the tab currently selected
+	 *	@param	string	Is the group we should look up get title info
+	 */
+	function projectTabs($toptab,$group) {
+
+		global $Language;
+
+		// get group info using the common result set
+		$project =& group_get_object($group);
+		if (!$project || !is_object($project)) {
+			return;
+		}
+		if ($project->isError()) {
+			//wasn't found or some other problem
+			return;
+		}
+		if (!$project->isProject()) {
+			return;
+		}
+
+		// Summary
+		$TABS_DIRS[]='/projects/'. $project->getUnixName() .'/';
+		$TABS_TITLES[]=$Language->getText('group','short_summary');
+		(($toptab == 'home') ? $selected=(count($TABS_TITLES)-1) : '' );
+
+		if (user_ismember($group,'A')) {
+			// Project Admin
+			$TABS_DIRS[]='/project/admin/?group_id='. $group;
+			$TABS_TITLES[]=$Language->getText('group','short_admin');
+			(($toptab == 'admin') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+		/* Homepage
+		$TABS_DIRS[]='http://'. $project->getHomePage();
+		$TABS_TITLES[]=$Language->getText('group','short_homepage');
+		*/
+
+		// Forums
+		if ($project->usesForum()) {
+			$TABS_DIRS[]='/forum/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_forum');
+			(($toptab == 'forums') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// Artifact Tracking
+		if ($project->usesTracker()) {
+			$TABS_DIRS[]='/tracker/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_tracker');
+			(($toptab == 'tracker' || $toptab == 'bugs' || $toptab == 'support' || $toptab == 'patch')
+				? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// Mailing Lists
+		if ($project->usesMail()) {
+			$TABS_DIRS[]='/mail/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_mail');
+			(($toptab == 'mail') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// Project Manager
+		if ($project->usesPm()) {
+			$TABS_DIRS[]='/pm/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_pm');
+			(($toptab == 'pm') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// Doc Manager
+		if ($project->usesDocman()) {
+			$TABS_DIRS[]='/docman/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_docman');
+			(($toptab == 'docman') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		//newsbytes
+		if ($project->usesNews()) {
+			$TABS_DIRS[]='/news/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_news');
+			(($toptab == 'news') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// SCM systems
+		if ($project->usesSCM()) {
+			$TABS_DIRS[]='/scm/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_scm');
+			(($toptab == 'scm') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// groupmenu_after_scm hook
+		$hookParams['DIRS'] = &$TABS_DIRS;
+		$hookParams['TITLES'] = &$TABS_TITLES;
+		$hookParams['toptab'] = &$toptab;
+		$hookParams['selected'] = &$selected;
+		$hookParams['group_id'] = $group ;
+				
+		plugin_hook ("groupmenu_scm", $hookParams) ; 
+
+		// Downloads
+		if ($project->usesFRS()) {
+			$TABS_DIRS[]='/frs/?group_id='.$group;
+			$TABS_TITLES[]=$Language->getText('group','short_files');
+			(($toptab == 'frs') ? $selected=(count($TABS_TITLES)-1) : '' );
+		}
+
+		// groupmenu hook
+		$hookParams['DIRS'] = &$TABS_DIRS;
+		$hookParams['TITLES'] = &$TABS_TITLES;
+		$hookParams['toptab'] = &$toptab;
+		$hookParams['selected'] = &$selected;
+		$hookParams['group'] = $group;
+				
+		plugin_hook ("groupmenu", $hookParams) ; 
+
+		$GLOBALS['tabcount'] = count($TABS_DIRS);
+		
+		//reverse array to show tabs in right order if tabs are floated to the right
+		//$TABS_DIRS = array_reverse($TABS_DIRS);
+		//$TABS_TITLES = array_reverse($TABS_TITLES);
+		//echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,true,$selected,'white','100%','projectTab');
+		return $this->tabGenerator($TABS_DIRS,$TABS_TITLES,true,$selected,'white','100%','projectTab');
+
+	}
+
+/*	function generalTabs($params) {
+			global $Language,$sys_use_trove,$sys_use_snippet,$sys_use_people;
+
+			//$TABS_DIRS[]='/';
+			//$TABS_TITLES[]=$Language->getText('menu','home');
+
+			//$TABS_DIRS[]='/my/';
+			//$TABS_TITLES[]=$Language->getText('menu','mypage');
+
+			if (user_ismember(1,'A')) {
+				$TABS_DIRS[]='/admin/';
+				$TABS_TITLES[]=$Language->getText('menu','admin');
+			}
+
+			if ($sys_use_trove) {
+				$TABS_DIRS[]='/softwaremap/';
+				$TABS_TITLES[]=$Language->getText('menu','projectree');
+			}
+
+			if (user_ismember($GLOBALS['sys_stats_group'])) {
+				$TABS_DIRS[]='/reporting/';
+				$TABS_TITLES[]=$Language->getText('menu','reporting');
+			}
+
+			// $selected=count($TABS_DIRS)-1; <- Fehlt bei den obrigen Tabs!
+
+			if ($params['group']) {
+
+			$group = $params['group'];
+			$toptab = $params['toptab'];
+
+			$project =& group_get_object($group);
+			if (!$project || !is_object($project)) {
+				return;
+			}
+			if ($project->isError()) {
+				//wasn't found or some other problem
+				return;
+			}
+			if (!$project->isProject()) {
+				return;
+			}	
+
+
+				// Summary
+				$TABS_DIRS[]='/projects/'. $project->getUnixName() .'/';
+				$TABS_TITLES[]=$Language->getText('group','short_summary');
+
+				(($toptab == 'home') ? $selected=(count($TABS_TITLES)-1) : '' );
+
+				if (user_ismember($group,'A')) {
+					// Project Admin
+					$TABS_DIRS[]='/project/admin/?group_id='. $group;
+					$TABS_TITLES[]=$Language->getText('group','short_admin');
+					(($toptab == 'admin') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// Forums
+				if ($project->usesForum()) {
+					$TABS_DIRS[]='/forum/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_forum');
+					(($toptab == 'forums') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// Artifact Tracking
+				if ($project->usesTracker()) {
+					$TABS_DIRS[]='/tracker/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_tracker');
+					(($toptab == 'tracker' || $toptab == 'bugs' || $toptab == 'support' || $toptab == 'patch')
+						? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// Mailing Lists
+				if ($project->usesMail()) {
+					$TABS_DIRS[]='/mail/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_mail');
+					(($toptab == 'mail') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// Project Manager
+				if ($project->usesPm()) {
+					$TABS_DIRS[]='/pm/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_pm');
+					(($toptab == 'pm') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// Doc Manager
+				if ($project->usesDocman()) {
+					$TABS_DIRS[]='/docman/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_docman');
+					(($toptab == 'docman') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				//newsbytes
+				if ($project->usesNews()) {
+					$TABS_DIRS[]='/news/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_news');
+					(($toptab == 'news') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// SCM systems
+				if ($project->usesSCM()) {
+					$TABS_DIRS[]='/scm/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_scm');
+					(($toptab == 'scm') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// groupmenu_after_scm hook
+				$hookParams['DIRS'] = &$TABS_DIRS;
+				$hookParams['TITLES'] = &$TABS_TITLES;
+				$hookParams['toptab'] = &$toptab;
+				$hookParams['selected'] = &$selected;
+				$hookParams['group_id'] = $group ;
+
+				plugin_hook ("groupmenu_scm", $hookParams) ; 
+
+				// Downloads
+				if ($project->usesFRS()) {
+					$TABS_DIRS[]='/frs/?group_id='.$group;
+					$TABS_TITLES[]=$Language->getText('group','short_files');
+					(($toptab == 'frs') ? $selected=(count($TABS_TITLES)-1) : '' );
+				}
+
+				// groupmenu_after_scm hook
+				$hookParams['DIRS'] = &$TABS_DIRS;
+				$hookParams['TITLES'] = &$TABS_TITLES;
+				$hookParams['toptab'] = &$toptab;
+				$hookParams['selected'] = &$selected;
+				$hookParams['group_id'] = $group;
+
+				plugin_hook ("groupmenu_scm", $hookParams);
+
+
+			}
+				
+			if (!$this->COLOR_SELECTED_TAB) {
+				$this->COLOR_SELECTED_TAB= '#e0e0e0';
+			}
+
+			$GLOBALS['tabcount'] = count($TABS_DIRS);
+			echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%','generalTab');
+		//	echo $this->tabGenerator($TABS_DIRS,$TABS_TITLES,false,$selected,$this->COLOR_SELECTED_TAB,'100%');
+	
+	}
+
+*/
+	/**
+	 * multiTableRow() - create a mutlilevel row in a table
+	 *
+	 * @param	string	the row attributes
+	 * @param	array	the array of cell data, each element is an array,
+	 *				  	the first item being the text,
+	 *					  the subsequent items are attributes
+	 * @param	boolean is this row part of the title ?
+	 *
+	 */
+
+
+	 function multiTableRow($row_attr, $cell_data, $istitle) {
+		$return= '
+		<!-- multiTableRow -->
+		<tr class="multi_table_row" '.$row_attr;
+		if ( $istitle ) {
+			$return .=' align="center" ';
+		}
+		$return .= '>';
+		for ( $c = 0; $c < count($cell_data); $c++ ) {
+			$return .='<td ';
+			for ( $a=1; $a < count($cell_data[$c]); $a++) {
+				$return .= $cell_data[$c][$a].' ';
+			}
+			$return .= '>';
+			if ( $istitle ) {
+				$return .='<span class="titlebar">';
+			}
+			$return .= $cell_data[$c][0];
+			if ( $istitle ) {
+				$return .='</span>';
+			}
+			$return .= '</td>';
+
+		}
+		$return .= '</tr>
+		<!-- end multiTableRow -->
+		';
+
+		return $return;
+	 }
+
+        function searchBox($print=1) {
+                global $Language,$words,$forum_id,$group_id,$group_project_id,$atid,$exact,$type_of_search;
+
+                if(get_magic_quotes_gpc()) {
+                        $defaultWords = stripslashes($words);
+                } else {
+                        $defaultWords = $words;
+                }
+
+                // if there is no search currently, set the default
+                if ( ! isset($type_of_search) ) {
+                        $exact = 1;
+                }
+	if($print)
+{
+                print '
+                <form action="/search/" method="get">';
+                $parameters = array(
+                        SEARCH__PARAMETER_GROUP_ID => $group_id,
+                        SEARCH__PARAMETER_ARTIFACT_ID => $atid,
+                        SEARCH__PARAMETER_FORUM_ID => $forum_id,
+                        SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id
+                );
+
+                $searchManager =& getSearchManager();
+                $searchManager->setParametersValues($parameters);
+                $searchEngines =& $searchManager->getAvailableSearchEngines();
+
+                echo '<select name="type_of_search">';
+                for($i = 0, $max = count($searchEngines); $i < $max; $i++) {
+                        $searchEngine =& $searchEngines[$i];
+                        echo '<option value="'.$searchEngine->getType().'"'.( $type_of_search == $searchEngine->getType() ? ' selected="selected"' : '' ).'>'.$searchEngine->getLabel($parameters).'</option>'."\n";
+                }
+                echo '</select>';
+
+//              print '<br />';
+//              print '
+//              <input type="CHECKBOX" name="exact" value="1"'.( $exact ? ' CHECKED' : ' UNCHECKED' ).'> Require All Words';
+
+                $parameters = $searchManager->getParameters();
+                foreach($parameters AS $name => $value) {
+                        print '<input type="hidden" value="'.$value.'" name="'.$name.'" />';
+                }
+                print '<input type="text" size="12" name="words" value="'.$defaultWords.'" />';
+
+                print '<input type="submit" name="Search" value="'.$Language->getText('searchbox','search').'" />';
+
+                if (isset($group_id)) {
+                        print '
+				<br/>
+				<span id="advanced_search">
+                                &rsaquo; <a href="/search/advanced_search.php?group_id='.$group_id.'">'
+					.$Language->getText('searchbox', 'advanced_search').'</a>
+				</span>';
+                }
+                print '</form>';
+} else
+{
+	 $re= '
+                <form action="/search/" method="get">';
+                $parameters = array(
+                        SEARCH__PARAMETER_GROUP_ID => $group_id,
+                        SEARCH__PARAMETER_ARTIFACT_ID => $atid,
+                        SEARCH__PARAMETER_FORUM_ID => $forum_id,
+                        SEARCH__PARAMETER_GROUP_PROJECT_ID => $group_project_id
+                );
+
+                $searchManager =& getSearchManager();
+                $searchManager->setParametersValues($parameters);
+                $searchEngines =& $searchManager->getAvailableSearchEngines();
+
+               $re.= '<select name="type_of_search">';
+                for($i = 0, $max = count($searchEngines); $i < $max; $i++) {
+                        $searchEngine =& $searchEngines[$i];
+                        $re.= '<option value="'.$searchEngine->getType().'"'.( $type_of_search == $searchEngine->getType() ? ' selected="selected"' : '' ).'>'.$searchEngine->getLabel($parameters).'</option>'."\n";
+                }
+                $re.= '</select>';
+
+//              print '<br />';
+//              print '
+//              <input type="CHECKBOX" name="exact" value="1"'.( $exact ? ' CHECKED' : ' UNCHECKED' ).'> Require All Words';
+
+                $parameters = $searchManager->getParameters();
+                foreach($parameters AS $name => $value) {
+                       $re.= '<input type="hidden" value="'.$value.'" name="'.$name.'" />';
+                }
+                $re.= '<input type="text" size="12" name="words" value="'.$defaultWords.'" />';
+
+                $re.='<input type="submit" name="Search" value="'.$Language->getText('searchbox','search').'" />';
+
+                if (isset($group_id)) {
+                        $re.= '
+				<br/>
+				<span id="advanced_search">
+                                &rsaquo; <a href="/search/advanced_search.php?group_id='.$group_id.'">'
+					.$Language->getText('searchbox', 'advanced_search').'</a>
+				</span>';
+                }
+                $re.='</form>';
+		return $re;
+}
+}
+
+}
+
+?>


Property changes on: trunk/gforge_base/gforge-4.8~rc2/www/themes/evolvis_old/Theme.class.php.old
___________________________________________________________________
Name: svn:keywords
   + Author CVSHeader Date HeadURL Id LastChangedBy LastChangedDate LastChangedRevision Log Revision Source State
Name: svn:mergeinfo
   + 




More information about the evolvis-commits mailing list