+<?php
+foreach ($cols as $col => &$colconf) {
+ print "\t<input";
+ if (empty($colconf['target'])) print ' readonly';
+ printf(' type="%s" name="%s" id="%1$s" value="%s"',
+ @$colconf['type'] ?: 'text',
+ $col,
+ htmlspecialchars(@$colconf['value'])
+ );
+ print ' placeholder="Geen '.$colconf['label'].' ingesteld"';
+ print " />\n";
+
+ if ($error = @$colwarn[$col]) {
+ print "<span class=warn>$error</span>\n";
+ }
+}
+?>