[evolvis-commits] r10081: adding ultralite the?==?UTF-8?Q?me↵

mirabilos at evolvis.org mirabilos at evolvis.org
Thu Feb 24 17:37:28 CET 2011


Author: mirabilos
Date: 2011-02-24 17:37:28 +0100 (Thu, 24 Feb 2011)
New Revision: 10081

Added:
   trunk/gforge_base/evolvisforge-5.1/gforge/db/20041014.sql
   trunk/gforge_base/evolvisforge-5.1/gforge/www/themes/ultralite/
   trunk/gforge_base/evolvisforge-5.1/gforge/www/themes/ultralite/Theme.class
Modified:
   trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog
Log:
adding ultralite theme


Modified: trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog	2011-02-24 16:37:26 UTC (rev 10080)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/ChangeLog	2011-02-24 16:37:28 UTC (rev 10081)
@@ -1,3 +1,7 @@
+2004-10-14  GForge Group <luis at gforgegroup.com>
+
+	* Added a text-only ultralite theme
+
 2004-10-13  Francisco Gimeno <kikov at kikov.org>
 
 	* I18N: Spanish.tab updated

Added: trunk/gforge_base/evolvisforge-5.1/gforge/db/20041014.sql
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/db/20041014.sql	                        (rev 0)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/db/20041014.sql	2011-02-24 16:37:28 UTC (rev 10081)
@@ -0,0 +1,2 @@
+insert into themes (dirname,fullname,enabled) 
+	values ('ultralite','Ultra-Lite Text-only Theme',true);

Added: trunk/gforge_base/evolvisforge-5.1/gforge/www/themes/ultralite/Theme.class
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/gforge/www/themes/ultralite/Theme.class	                        (rev 0)
+++ trunk/gforge_base/evolvisforge-5.1/gforge/www/themes/ultralite/Theme.class	2011-02-24 16:37:28 UTC (rev 10081)
@@ -0,0 +1,218 @@
+<?php
+class Theme extends Layout {
+	/**
+	 * Theme() - Constructor
+	 */
+
+	function Theme() {
+	}
+
+
+	/**
+	 *	header() - "steel theme" top of page
+	 *
+	 * @param	array	Header parameters array
+	 */
+	function header($params) {
+		
+		if ($_POST['selectmenu'] == "yes")
+		{
+		header("Location:".$_POST['menuList']);		
+		}
+
+		global $Language, $sys_name;
+		if (!$params['title']) {
+			$params['title'] = "$sys_name";
+		} else {
+			$params['title'] = "$sys_name: " . $params['title'];
+		}
+		print '<?xml version="1.0" encoding="' . $Language->getEncoding(). '"?>';
+		?>
+		<!DOCTYPE html
+		PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="<?php echo $Language->getLanguageCode(); ?>">
+		<head>
+		<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $Language->getEncoding(); ?>" />
+		<title><?php echo $params['title']; ?></title>
+		</head>
+		
+		<body>
+		<p align=right>
+		<?
+		if (session_loggedin()) {
+		?>
+		<b><a href="/account/logout.php"><?php echo $Language->getText('common','logout'); ?></a></b>
+		<b><a href="/account/"><?php echo $Language->getText('common','myaccount'); ?></a></b>
+		<?php
+		} else {
+		?>
+		<b><a href="/account/login.php"><?php echo $Language->getText('common','login'); ?></a></b>
+		<b><a href="/account/register.php"><?php echo $Language->getText('common','newaccount'); ?></a></b>
+		<?php
+		}
+		?>
+		</p>
+
+		<p align=right>
+		<?php echo $this->searchBox(); ?>
+		</p>
+
+		<p align=right>
+		<?php echo $this->outerTabs($params); ?>
+		<?php
+		if ($params['group']) {
+		?>
+		<?php
+		echo $this->projectTabs($params['toptab'],$params['group']);
+		?>
+		<?php
+		}
+		?>
+		</p>
+		<?php
+	}
+
+	function searchBox() {
+		global $Language,$words,$forum_id,$group_id,$group_project_id,$atid,$exact,$type_of_search;
+
+		// if there is no search currently, set the default
+		if ( ! isset($type_of_search) ) {
+			$exact = 1;
+		}
+
+		print '
+		<form action="/search/" method="post">
+		<select name="type_of_search">';
+		if ($atid && $group_id) {
+			$group =& group_get_object($group_id);
+			if ($group && is_object($group)) {
+				$ath = new ArtifactTypeHtml($group,$atid);
+				if ($ath && is_object($ath)) {
+				print '
+				<option value="'.SEARCH__TYPE_IS_ARTIFACT.'"'.( $type_of_search == SEARCH__TYPE_IS_ARTIFACT ? ' selected="selected"' : '' ).'>'. $ath->getName() .'</option>';
+				}
+			}
+		} else if ($group_id && $forum_id) {
+			print '
+			<option value="'.SEARCH__TYPE_IS_FORUM.'"'.( $type_of_search == SEARCH__TYPE_IS_FORUM ? ' selected="selected"' : '' ).'>'.$Language->getText('searchbox','forum').'</option>';
+		} else if ($group_id && $group_project_id) {
+			print '
+			<option value="task"'. ( $type_of_search == 'tasks' ? ' selected="selected"' : '').'>'.$Language->getText('searchbox','task').'</option>';
+		}
+
+		print '
+			<option value="'.SEARCH__TYPE_IS_SOFTWARE.'"'.( $type_of_search == SEARCH__TYPE_IS_SOFTWARE ? ' selected="selected"' : '' ).'>'.$Language->getText('searchbox','softwaregroup').'</option>';
+		print '
+			<option value="'.SEARCH__TYPE_IS_SKILL.'"'.( $type_of_search == SEARCH__TYPE_IS_SKILL ? ' selected="selected"' : '' ).'>'.$Language->getText('searchbox','skill').'</option>';
+		print '
+			<option value="'.SEARCH__TYPE_IS_PEOPLE.'"'.( $type_of_search == SEARCH__TYPE_IS_PEOPLE ? ' selected="selected"' : '' ).'>'.$Language->getText('searchbox','people').'</option>';
+
+		if ( isset($forum_id) ) {
+			print '
+			<input type="hidden" value="'.$forum_id.'" name="forum_id" />';
+		}
+		if ( isset($group_id) ) {
+			print '
+			<input type="hidden" value="'.$group_id.'" name="group_id" />';
+		}
+		if ( isset($atid) ) {
+			print '
+			<input type="hidden" value="'.$atid.'" name="atid" />';
+		}
+		if ( isset($group_project_id) ){
+			print '
+			<input type="hidden" value="'.$group_project_id.'" name="group_project_id" />';
+		}
+		print '
+		<input type="text" size="12" name="words" value="'.$words.'" />';
+		print '<input type="submit" name="Search" value="'.$Language->getText('searchbox','search').'" />';
+		print '</form>';
+	}
+
+
+
+	function footer($params) {
+		?>
+		<!-- end main body row -->
+		<!-- PLEASE LEAVE "Powered By GForge" on your site -->
+		<br />
+		<center>
+		<a href="http://gforge.org/">Powered By GForge Collaborative Development Environment</a>
+		</center>
+		<?php
+		global $sys_show_source;
+		if ($sys_show_source) {
+		global $SCRIPT_NAME;
+		print '<a class="showsource" href="/source.php?file=' . $SCRIPT_NAME . '">Show Source</a>';
+		}
+		?>
+		</body>
+		</html>
+		<?php
+	}
+
+	
+
+	/**
+	 * boxTop() - Top HTML box
+	 *
+	 * @param   string  Box title
+	 */
+	function boxTop($title) {
+		return '<!-- boxTop --><BR>'.$title.'<BR>';
+	}
+
+	
+	/**
+	 * boxMiddle() - Middle HTML box
+	 *
+	 * @param   string  Box title
+	 */
+	function boxMiddle($title) {
+		return '<!-- boxMiddle --><BR><BR>'.$title.'<BR><BR>';
+	}
+
+
+	/**
+	 * 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) {
+		$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">'.$title_arr[$i].'</td>';
+			}
+		}
+		return $return;
+	}
+
+	function tabGenerator($TABS_DIRS,$TABS_TITLES,$nested=false,$selected=false,$sel_tab_bgcolor='WHITE',$total_width='100%') {
+		$count=count($TABS_DIRS);
+		$return .= '
+		<form name="menuForm" method="POST" action="/">
+		<select name="menuList">';
+		for ($i=0; $i<$count; $i++) {
+		$return .= '
+		<option '. (($selected==$i)?'selected':'').' value="'.$TABS_DIRS[$i].'"> '.$TABS_TITLES[$i].'</option>';
+		}
+		$return .= '</select> 
+		<input type="hidden" name="selectmenu" value="yes">
+		<input type="submit" value="GO"></form>
+		';
+		return $return;
+	}
+
+}
+
+?>



More information about the evolvis-commits mailing list