From: Erin S. <ebu...@us...> - 2003-11-22 03:52:16
|
Update of /cvsroot/squirrelmail/smdoc/lib/input In directory sc8-pr-cvs1:/tmp/cvs-serv15228/lib/input Modified Files: input.dropdown.php Log Message: More changes to the user class. Replaced the foowd implementation of user in class.user.php with the core of the changes I made (user objects stored in different DB). Then left our smdoc.class.user.php containing just the smdoc user customizations (variations of user data, etc). Makes things a lot cleaner to look at. Groups can now be set for users... Index: input.dropdown.php =================================================================== RCS file: /cvsroot/squirrelmail/smdoc/lib/input/input.dropdown.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- input.dropdown.php 11 Nov 2003 04:42:55 -0000 1.3 +++ input.dropdown.php 22 Nov 2003 03:52:13 -0000 1.4 @@ -73,9 +73,9 @@ { if ( $this->multiple ) { - foreach($value as $val) + foreach($value as $ord => $key) { - if ( !array_key_exists($val, $this->items) ) + if ( !isset($this->items[$key]) ) return FALSE; } @@ -112,12 +112,12 @@ function display($class = NULL, $visibleItems = 1) { $class = ( $class == NULL ) ? '' : ' class="'.$class.'"'; - $multiple = ( $this->multiple ) ? ' multiple="multiple"' : ''; + $multiple = ( $this->multiple ) ? ' multiple' : ''; $size = ' size="'.$visibleItems.'"'; $name = ' name="'.$this->name.'[]"'; - echo ' <select',$name,$multiple,$size,$class,'>'."\n"; + echo ' <select',$multiple,$name,$size,$class,'>'."\n"; foreach ($this->items as $val => $item) { |