-if (isset($user['pass'])) {
- $hide = empty($_POST['newpass']);
-?>
- <li id="pass"<?php if ($hide) print ' hidden style="display:none"'; ?>>
- <label for="newpass">Wachtwoord:</label>
- <input type="password" name="oldpass" value="" placeholder="Huidig wachtwoord" />
- <input type="password" name="newpass" value="" placeholder="Nieuw wachtwoord" />
- <input type="password" name="passconf" value="" placeholder="Nogmaals" />
-<?php
- if ($error = @$colwarn['pass']) {
+ print '<input';
+ foreach ($attrs as $attr => $attrval) {
+ if ($attrval === FALSE) {
+ continue;
+ }
+ print ' ' . $attr;
+ if ($attrval !== TRUE) {
+ printf('="%s"', $attrval);
+ }
+ }
+ print ' />';
+ }
+ if (!empty($colconf['explain'])) {
+ printf(' <span>(%s)</span>', $colconf['explain']);
+ }
+
+ if ($hide) {
+ print '</span>';
+ }
+
+ if ($error = @$colwarn[$col]) {