Revision: 1497
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1497&view=rev
Author:   cimorrison
Date:     2010-10-14 16:01:19 +0000 (Thu, 14 Oct 2010)

Log Message:
-----------
Made the code for displaying the name field in the Edit User form generic so 
that it can also be used for custom fields that should only be editable by 
admins

Modified Paths:
--------------
    mrbs/branches/provisional_bookings_new_style/web/edit_users.php

Modified: mrbs/branches/provisional_bookings_new_style/web/edit_users.php
===================================================================
--- mrbs/branches/provisional_bookings_new_style/web/edit_users.php     
2010-10-13 13:24:15 UTC (rev 1496)
+++ mrbs/branches/provisional_bookings_new_style/web/edit_users.php     
2010-10-14 16:01:19 UTC (rev 1497)
@@ -409,7 +409,7 @@
                     // you cannot change a username (even your own) unless you 
have user editing rights
                     echo "<label for=\"$var_name\">$label_text:</label>\n";
                     echo "<input id=\"$var_name\" name=\"$var_name\" 
type=\"text\" " .
-                          "maxlength=\"" . $maxlength['users.name'] . "\" " .
+                         ((isset($maxlength["users.$key"])) ? "maxlength=\"" . 
$maxlength["users.$key"] . "\" " : '') .
                          (($level < $min_user_editing_level) ? 
"disabled=\"disabled\" " : "") .
                           "value=\"" . htmlspecialchars($data[$key]) . "\">\n";
                     // if the field was disabled then we still need to pass 
through the value as a hidden input


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to