Revision 1012
Added by Matthias over 15 years ago
users.php | ||
---|---|---|
62 | 62 |
) |
63 | 63 |
); |
64 | 64 |
if($user['active'] == 1) { |
65 |
$template->set_var('ACTIVE_CHECKED', ' checked'); |
|
65 |
$template->set_var('ACTIVE_CHECKED', ' checked="checked"');
|
|
66 | 66 |
} else { |
67 |
$template->set_var('DISABLED_CHECKED', ' checked'); |
|
67 |
$template->set_var('DISABLED_CHECKED', ' checked="checked"');
|
|
68 | 68 |
} |
69 | 69 |
// Add groups to list |
70 | 70 |
$template->set_block('main_block', 'group_list_block', 'group_list'); |
... | ... | |
78 | 78 |
$template->set_var('ID', $group['group_id']); |
79 | 79 |
$template->set_var('NAME', $group['name']); |
80 | 80 |
if(in_array($group['group_id'], split(",",$user['groups_id']))) { |
81 |
$template->set_var('SELECTED', 'selected');
|
|
81 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
82 | 82 |
} else { |
83 | 83 |
$template->set_var('SELECTED', ''); |
84 | 84 |
} |
... | ... | |
99 | 99 |
} |
100 | 100 |
|
101 | 101 |
if($in_group) { |
102 |
$template->set_var('SELECTED', 'selected');
|
|
102 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
103 | 103 |
} else { |
104 | 104 |
$template->set_var('SELECTED', ''); |
105 | 105 |
} |
... | ... | |
108 | 108 |
if($results->numRows() == 0) { |
109 | 109 |
$template->set_var('ID', ''); |
110 | 110 |
$template->set_var('NAME', $TEXT['NONE_FOUND']); |
111 |
$template->set_var('SELECTED', 'selected');
|
|
111 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
112 | 112 |
$template->parse('group_list', 'group_list_block', true); |
113 | 113 |
} |
114 |
}
|
|
114 |
} |
|
115 | 115 |
|
116 | 116 |
// Generate username field name |
117 | 117 |
$username_fieldname = 'username_'; |
... | ... | |
139 | 139 |
$template->set_var('NAME', str_replace(WB_PATH, '', $name)); |
140 | 140 |
$template->set_var('FOLDER', str_replace(WB_PATH.MEDIA_DIRECTORY, '', $name)); |
141 | 141 |
if($user['home_folder'] == str_replace(WB_PATH.MEDIA_DIRECTORY, '', $name)) { |
142 |
$template->set_var('SELECTED', ' selected'); |
|
142 |
$template->set_var('SELECTED', ' selected="selected"');
|
|
143 | 143 |
} else { |
144 | 144 |
$template->set_var('SELECTED', ' '); |
145 | 145 |
} |
Also available in: Unified diff
Major fixes on backend to get XHTML valid output (Thanks to Luisehahne)