[Mapbender-commits] r3411 - branches/astroidex_25/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Jan 7 08:08:15 EST 2009
Author: astrid_emde
Date: 2009-01-07 08:08:15 -0500 (Wed, 07 Jan 2009)
New Revision: 3411
Modified:
branches/astroidex_25/http/php/mb_listGUIs.php
Log:
astrids version
Modified: branches/astroidex_25/http/php/mb_listGUIs.php
===================================================================
--- branches/astroidex_25/http/php/mb_listGUIs.php 2009-01-07 13:07:38 UTC (rev 3410)
+++ branches/astroidex_25/http/php/mb_listGUIs.php 2009-01-07 13:08:15 UTC (rev 3411)
@@ -20,9 +20,9 @@
# list of user-guis after login:
function mb_listGUIs($arrayGUIs){
echo "<form name='listGUIsForm' target='_blank'>";
- echo "<table width = '50%' ><tr><td>";
+ echo "<table width = '50%' ><tr><td id='head_border'>";
echo "<h2><font align='left' color='#000000'>xxxxx Categories Ma</font><font color='#0000CE'>p</font><font color='#C00000'>b</font><font color='#000000'>ender GUI list </font> </h2>";
- echo "</td><td>";
+ echo "</td><td id='head_border'>";
if (count($arrayGUIs)>0){
$v = array();
@@ -49,26 +49,26 @@
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>";
+#echo "<table width='50%' class='list_guis' border='1' cellpadding='3' rules='rows'><tr='background-color:#F0F0F0;' width='80px'><td ><b>GUI name</b></td><td><b>GUI description</b></td></tr>";
$cnt_list_guis = 0;
$tempCategory = '';
+ $table_rows = array();
while($row = db_fetch_array($res_list_guis)){
if($tempCategory != $row["category_name"]){
$tempCategory = $row["category_name"];
if ($cnt_list_guis != 0){echo "</table>";}
- echo "<p><b>".$tempCategory."</b>";
+ echo "<p>".$tempCategory;
echo "<br><label><em>".$row["category_description"]."</em></label></p>";
- echo "<table width='50%' class='list_guis' border='0' cellpadding='3'>"; # rules='rows'
- echo "<tr style='background-color:#F0F0F0;' width='80px'><td ><b>GUI name</b></td><td><b>GUI description</b></td></tr>";
+ echo "<table class='list_guis' cellpadding='3'>"; # rules='rows'
+ echo "<tr><th class='th_gui' >GUI name</th><th class='th_gui_description'>GUI description</th></tr>";
}
- echo "<tr ";
- 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><a href='index.php?".strip_tags (SID)."&gui_id=".$row["gui_id"]."'>".$row["gui_description"]."</a></td>";
+ echo "<tr>";
+ echo "<td class='td_gui' ><b><a href='index.php?".strip_tags (SID)."&gui_id=".$row["gui_id"]."'>".$row["gui_name"]."</a><b></td>";
+ echo "<td class='td_gui_description'><a href='index.php?".strip_tags (SID)."&gui_id=".$row["gui_id"]."'>".$row["gui_description"]."</a></td>";
echo "</tr>";
+ array_push($table_rows,"table_row_".$cnt_list_guis);
$cnt_list_guis++;
}
}
@@ -82,3 +82,26 @@
echo "</form>";
}
?>
+
+<script type="text/javascript">
+function toggleDescription() {
+ var thsDescription = document.getElementsByTagName('th');
+ var tdsDescription = document.getElementsByTagName('td');
+
+ for(var i = 0; i < thsDescription.length; i++) {
+ if(thsDescription[i].className == 'th_gui_description') {
+ var visibility = thsDescription[i].style.visibility;
+ thsDescription[i].style.visibility = (visibility == 'hidden') ? 'visible' : 'hidden';
+ }
+ }
+
+ for(var i = 0; i < tdsDescription.length; i++) {
+ if(tdsDescription[i].className == 'td_gui_description') {
+ var visibility = tdsDescription[i].style.visibility;
+ tdsDescription[i].style.visibility = (visibility == 'hidden') ? 'visible' : 'hidden';
+ }
+ }
+}
+</script>
+
+<p><a href="#" onclick="toggleDescription();">Beschreibungen ein-/ausblenden</a></p>
\ No newline at end of file
More information about the Mapbender_commits
mailing list