Revision: 2533
          https://sourceforge.net/p/mrbs/code/2533/
Author:   cimorrison
Date:     2012-10-27 14:19:33 +0000 (Sat, 27 Oct 2012)
Log Message:
-----------
Added some missing hidden inputs

Modified Paths:
--------------
    mrbs/trunk/web/functions.inc

Modified: mrbs/trunk/web/functions.inc
===================================================================
--- mrbs/trunk/web/functions.inc        2012-10-27 14:00:35 UTC (rev 2532)
+++ mrbs/trunk/web/functions.inc        2012-10-27 14:19:33 UTC (rev 2533)
@@ -592,6 +592,14 @@
     $html .= $params['label'] . "</label>";
   }
   $html .= "\n";
+  
+  // and a hidden input if the input box is disabled and the value is true
+  // (the checkbox isn't posted if not checked)
+  if (($params['disabled']) && !empty($params['value']))
+  {
+    $html .= "<input type=\"hidden\" value=\"1\" name=\"" . $params['name'] . 
"\">\n";
+  }
+  
   echo $html;
 }
 
@@ -730,6 +738,12 @@
   $html .= ">" . htmlspecialchars($option['value']);
   $html .= "</label>\n";
   
+  // and a hidden input if the input box is disabled and the value is true
+  // (the checkbox isn't posted if not checked)
+  if (($params['disabled']) && ($params['value'] == $option['key']))
+  {
+    $html .= "<input type=\"hidden\" value=\"" . 
htmlspecialchars($option['key']) . "\" name=\"" . $params['name'] . "\">\n";
+  }
   echo $html;
 }
 
@@ -873,7 +887,7 @@
     }
   }
   $html .= "</div>\n";
-
+  
   echo $html;
 }
 
------------------------------------------------------------------------------
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to