"); SDV($InputTags['text']['class'], 'inputbox'); SDV($InputTags['password']['class'], 'inputbox'); SDV($InputTags['submit']['class'], 'inputbutton'); SDV($InputTags['reset']['class'], 'inputbutton'); # (:input form:) SDVA($InputTags['form'], array( ':args' => array('action', 'method'), ':html' => "
'); # (:input textarea:) SDVA($InputTags['textarea'], array( ':html' => "")); # (:input image:) SDV($InputTags['image'][':args'], array('name', 'src', 'alt')); Markup('input', 'directives', '/\\(:input\\s+(\\w+)(.*?):\\)/ei', "InputMarkup(\$pagename, '$1', PSS('$2'))"); function InputMarkup($pagename, $type, $args) { global $InputTags, $InputAttrs, $InputValues, $FmtV; if (!@$InputTags[$type]) return "(:input $type $args:)"; $opt = array_merge($InputTags[$type], ParseArgs($args)); $args = @$opt[':args']; if (!$args) $args = array('name', 'value'); while (count(@$opt['']) > 0 && count($args) > 0) $opt[array_shift($args)] = array_shift($opt['']); foreach ((array)@$opt[''] as $a) if (!isset($opt[$a])) $opt[$a] = $a; if (!isset($opt['value']) && isset($InputValues[@$opt['name']])) $opt['value'] = $InputValues[$opt['name']]; $attr = array(); foreach ($InputAttrs as $a) { if (!isset($opt[$a])) continue; $attr[] = "$a='".str_replace("'", ''', $opt[$a])."'"; } $FmtV['$InputFormArgs'] = implode(' ', $attr); $out = FmtPageName($opt[':html'], $pagename); return Keep($out); } ## Form-based authorization prompts (for use with PmWikiAuth) SDVA($InputTags['auth_form'], array( ':html' => "