[Mapbender-commits] r3478 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jan 22 13:35:29 EST 2009
Author: marc
Date: 2009-01-22 13:35:29 -0500 (Thu, 22 Jan 2009)
New Revision: 3478
Modified:
trunk/mapbender/http/php/mb_listGUIs.php
Log:
rollback to revission 3334 (login Zebra will create by astroidex branch)
Modified: trunk/mapbender/http/php/mb_listGUIs.php
===================================================================
--- trunk/mapbender/http/php/mb_listGUIs.php 2009-01-22 18:34:27 UTC (rev 3477)
+++ trunk/mapbender/http/php/mb_listGUIs.php 2009-01-22 18:35:29 UTC (rev 3478)
@@ -19,59 +19,45 @@
# list of user-guis after login:
function mb_listGUIs($arrayGUIs){
-// echo "<form name='listGUIsForm' target='_blank'>\n";
+ echo "<form name='listGUIsForm' target='_blank'>";
+ echo "<table width = '50%' ><tr><td>";
+ echo "<h2><font align='left' color='#000000'>Ma</font><font color='#0000CE'>p</font><font color='#C00000'>b</font><font color='#000000'>ender GUI list </font> </h2>";
+ echo "</td><td>";
if (count($arrayGUIs)>0){
$v = array();
$t = array();
- $sql_list_guis = "SELECT DISTINCT gui_id,gui_name,gui_description, gui_type FROM gui WHERE gui_id IN (";
+ $sql_list_guis = "SELECT DISTINCT gui_id,gui_name,gui_description FROM gui WHERE gui_id IN (";
for($i=0; $i<count($arrayGUIs); $i++){
if($i>0){$sql_list_guis .= ",";}
$sql_list_guis .= "$".($i+1);
array_push($v,$arrayGUIs[$i]);
array_push($t,'s');
}
- $sql_list_guis .= ") ORDER BY gui_type, gui_name";
+ $sql_list_guis .= ") ORDER BY gui_name";
$res_list_guis = db_prep_query($sql_list_guis,$v,$t);
-
- //echo "<table width='50%' class='list_guis' border='1' cellpadding='3' rules='rows'>\n<tr style='background-color:#F0F0F0;' width='80px'><td ><b>GUI name</b></td><td><b>GUI description</b></td></tr>\n";
-
- echo "<table class ='zebra' width='75%'>\n";
- echo "<caption><font color='#000000'>Ma</font><font color='#0000CE'>p</font><font color='#C00000'>b</font><font color='#000000'>ender GUI list </font><br /><br /><a href=\"../php/mod_editSelf.php?".SID."\" class='list_guis' target=_blank>Change personal settings</a><a href=\"../php/mod_logout.php?".SID."\"><img src =\"../img/button_gray/logout_off.png\" align='right' border='0' onmouseover='this.src=\"../img/button_gray/logout_over.png\"' onmouseout='this.src=\"../img/button_gray/logout_off.png\"' alt=\"Logout\" title=\"Logout\"></a></caption>";
- echo "<thead>";
- echo "<tr><th><b>GUI name</b></th><th><b>GUI description</b></th></tr>\n";
- echo "</thead>";
- echo "<tbody>\n";
- $cnt_list_guis = 0;
+ echo "</td><td align = 'right'>";
+ echo "<a href=\"../php/mod_logout.php?".SID."\"><img src =\"../img/button_gray/logout_off.png\" border='0' onmouseover='this.src=\"../img/button_gray/logout_over.png\"' onmouseout='this.src=\"../img/button_gray/logout_off.png\"' title=\"Logout\"></a>";
+ echo "</td></tr></table>";
+ echo "<table width='50%' class='list_guis' border='1' cellpadding='3' rules='rows'><tr style='background-color:#F0F0F0;' width='80px'><td ><b>GUI name</b></td><td><b>GUI description</b></td></tr>";
+ $cnt_list_guis = 0;
while($row = db_fetch_array($res_list_guis)){
echo "<tr ";
- if(($cnt_list_guis % 2) == 0){ echo " class='dark' ";}
- if($row['gui_type'] ==wms_container){ echo "style='display:none' ";}
- echo ">\n";
- echo "<td valign='middle'>";
- echo "<b><a href='index.php?".strip_tags (SID)."&gui_id=".$row["gui_id"]."'>";
-
- if ($row['gui_type'] ==admin){ echo "<img src='../img/admin.png' border=0 alt='".$row['gui_type']."' /> ";}
- if ($row['gui_type'] ==digitize){ echo "<img src='../img/digitize.png' border=0 alt='".$row['gui_type']."' /> ";}
- if ($row['gui_type'] ==map){ echo "<img src='../img/map.png' border=0 alt='".$row['gui_type']."' /> ";}
- if ($row['gui_type'] ==wms_container){ echo "<img src='../img/x.gif' border=0 alt='".$row['gui_type']."' /> ";}
-
- echo $row["gui_name"]."</a></b></td>";
- echo "<td valign='middle'><a href='index.php?".strip_tags (SID)."&gui_id=".$row["gui_id"]."'>".$row["gui_description"]."</a></td>";
- echo "</tr>\n";
+ if(($cnt_list_guis % 2) == 0){ echo " style='background-color:#ffffff;' ";}
+ echo ">";
+ echo "<td><b><a href='index.php?".strip_tags (SID)."&gui_id=".$row["gui_id"]."'>".$row["gui_name"]."</a><b></td>";
+ echo "<td>".$row["gui_description"]."</td>";
+ echo "</tr>";
$cnt_list_guis++;
}
}
else{
- echo "<a href=\"../php/mod_editSelf.php?".SID."\" class='list_guis' target=_blank>Change personal settings</a>";
echo "</td><td align = 'right'>";
echo "<a href=\"../php/mod_logout.php?".SID."\"><img src =\"../img/button_gray/logout_off.png\" border='0' onmouseover='this.src=\"../img/button_gray/logout_over.png\"' onmouseout='this.src=\"../img/button_gray/logout_off.png\"' title=\"Logout\"></a>";
echo "</td><tr>" ;
echo "<td><br>There are no guis available for this user</td></tr>";
-
+ echo "</table>";
}
- echo "</tbody>";
- echo "</table>";
-// echo "</form>";
+ echo "</form>";
}
?>
More information about the Mapbender_commits
mailing list