"); # (:input form:) SDVA($InputTags['form'], array( ':args' => array('action', 'method'), ':html' => "
", 'method' => 'post')); # (:input end:) SDV($InputTags['end'][':html'], '
'); # (:input textarea:) SDVA($InputTags['textarea'], array( ':html' => "")); # (:input ...:) items for edit forms SDVA($InputTags['e_form'], array( ':html' => "
")); SDVA($InputTags['e_text'], array( ':html' => "", 'name' => 'text', 'id' => 'text', rows => '60', cols => '60')); SDVA($InputTags['e_author'], array( ':html' => "", 'name' => 'author', 'value' => $Author)); SDVA($InputTags['e_minor'], array( ':html' => "", 'name' => 'diffclass', 'value' => 'minor')); SDVA($InputTags['e_save'], array( ':html' => "", 'name' => '_post', 'value' => 'Save')); SDVA($InputTags['e_preview'], array( ':html' => "", 'name' => 'preview', 'value' => 'Preview')); Markup('input', '>directives', '/\\(:input\\s+(\\w+)(.*?):\\)/ei', "Keep(InputMarkup(\$pagename, '$1', PSS('$2')))"); function InputMarkup($pagename, $type, $args) { global $InputTags, $InputAttrs, $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['']); $attr = array(); foreach ($InputAttrs as $a) { if (!isset($opt[$a])) continue; $attr[] = "$a='".str_replace("'", ''', $opt[$a])."'"; } $FmtV['$InputFormArgs'] = implode(' ', $attr); return FmtPageName($opt[':html'], $pagename); }