[Mapbender-commits] r3427 - branches/beck_dev/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jan 13 02:51:57 EST 2009


Author: beck
Date: 2009-01-13 02:51:57 -0500 (Tue, 13 Jan 2009)
New Revision: 3427

Modified:
   branches/beck_dev/http/php/mb_listGUIs.php
Log:


Modified: branches/beck_dev/http/php/mb_listGUIs.php
===================================================================
--- branches/beck_dev/http/php/mb_listGUIs.php	2009-01-13 07:51:15 UTC (rev 3426)
+++ branches/beck_dev/http/php/mb_listGUIs.php	2009-01-13 07:51:57 UTC (rev 3427)
@@ -20,7 +20,7 @@
 function mb_listGUIs($arrayGUIs){
 	if(count($arrayGUIs) === 0) {
 		echo "<h1>Error</h1>";
-		echo "<p>There are no guis available for this user.</p>";
+		echo "<p>There are no GUIs available for this user.</p>";
 		printf("<p><a href=\"../php/mod_logout.php?%s\"><img src=\"../img/button_gray/logout_off.png\" onmouseover=\"this.src='../img/button_gray/logout_over.png'\" onmouseout=\"this.src='../img/button_gray/logout_off.png'\" title=\"Logout\"></a></p>",SID);
 		
 		return;
@@ -61,90 +61,18 @@
 			
 			echo "</ul>";
 			
-			printf("<h2>%s</h2>",$row["category_name"]);
+			if(strlen($row["category_name"]) > 0) {
+				printf("<h2 class=\"gui_category\">%s</h2>",$row["category_name"]);
+			}
 			if(strlen($row["category_description"]) > 0) {
-				printf("<p><em>%s</em></p>",$row["category_description"]);
+				printf("<p class=\"gui_category_description\"><em>%s</em></p>",$row["category_description"]);
 			}
 			
-			echo "<ul>";
+			echo "<ul class=\"gui_list\">";
 		}
 		
 		$url = sprintf("index.php?%s&gui_id=%s",strip_tags(SID),$row["gui_id"]);
 		printf("<li onclick=\"location.href='%s'\"><strong><a href=\"%s\">%s</a></strong><br /><em>%s</em></li>",$url,$url,$row["gui_name"],$row["gui_description"]);
 	}
 }
-?>
-
-<style type="text/css">
-* {
-	font-weight: normal;
-	font-style: normal;
-}
-
-body {
-	margin: 0;
-	padding: 1em;
-	font: 12px/1em normal Arial,Verdana,Helvetica,sans-serif;
-	color: #000;
-	background-color: #fff;
-}
-
-h1, h2, p, li {
-	padding: 0;
-	line-height: 1.2em;
-}
-
-h1 {
-	font-size: 2em;
-}
-
-h2 {
-	font-size: 1.5em;
-}
-
-img {
-	border: 0;
-}
-
-ul {
-	width: 65em;
-	padding: .5em;
-	list-style: none;
-	background-color: #eee;
-	border: 1px solid #666;
-}
-
-ul li {
-	clear: both;
-	margin-top: -1px;
-	padding: .25em .5em;
-	background-color: #ffe;
-	border: 1px solid #666;
-	cursor: pointer;
-}
-
-ul li:hover {
-	background-color: #ff9;
-}
-
-ul li strong {
-	float: left;
-	width: 25%;
-	font-weight: bold;
-}
-
-ul li em {
-	float: right;
-	width: 75%;
-	margin-top: -1.2em;
-	color: #666;
-}
-
-a:link, a:visited, a:active {
-	font-size: inherit;
-	font-weight: inherit;
-	text-decoration: none;
-	text-transform: uppercase;
-	color: inherit;
-}
-</style>
\ No newline at end of file
+?>
\ No newline at end of file



More information about the Mapbender_commits mailing list