[Mapbender-commits] r7652 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sat Feb 26 08:21:48 EST 2011


Author: astrid_emde
Date: 2011-02-26 05:21:48 -0800 (Sat, 26 Feb 2011)
New Revision: 7652

Modified:
   trunk/mapbender/http/php/mod_editElementVars.php
Log:
mark selected element_var radio-button as checked

Modified: trunk/mapbender/http/php/mod_editElementVars.php
===================================================================
--- trunk/mapbender/http/php/mod_editElementVars.php	2011-02-26 12:53:48 UTC (rev 7651)
+++ trunk/mapbender/http/php/mod_editElementVars.php	2011-02-26 13:21:48 UTC (rev 7652)
@@ -217,7 +217,11 @@
    while(db_fetch_row($res)){
       echo "<tr onmouseover='this.className=\"show-secondary\"' onmouseout='this.className=\"\"'>\n";
       echo "<td class='myTable'>";
-      echo "<input type='radio' name='myElement' value='".db_result($res, $cnt, "var_name")."' onclick='submit()'>";
+      echo "<input type='radio' name='myElement' value='".db_result($res, $cnt, "var_name")."' onclick='submit()' ";
+      if(isset($myElement) && $myElement == db_result($res, $cnt, "var_name")){
+	echo "checked='checked' ";
+      }
+      echo ">";
       echo "</td>\n";
       echo "<td class='myTable'>".db_result($res, $cnt, "var_name")."</td>\n";
       echo "<td class='secondary'>".db_result($res, $cnt, "var_type")."</td>\n";
@@ -263,4 +267,4 @@
 <input type="hidden" name="mySave">
 </form>
 </body>
-</html>
\ No newline at end of file
+</html>



More information about the Mapbender_commits mailing list