"); # (:input form:) SDVA($InputTags['form'], array( ':args' => array('action', 'method'), ':html' => "
'); # (:input textarea:) SDVA($InputTags['textarea'], array( ':html' => "")); Markup('input', 'directives', '/\\(:input\\s+(\\w+)(.*?):\\)/ei', "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['']); foreach ((array)@$opt[''] as $a) if (!isset($opt[$a])) $opt[$a] = $a; $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 preg_replace('/<(\\w+\\s)(.*)$/es',"'<$1'.Keep(PSS('$2'))", $out); } ## The section below handles specialized EditForm pages. ## We don't bother to load it if we're not editing. if ($action != 'edit') return; SDV($PageEditForm, '$SiteGroup.EditForm'); SDV($PageEditFmt, '$EditForm'); if (@$_REQUEST['editform']) { $PageEditForm=$_REQUEST['editform']; $PageEditFmt='$EditForm'; } $Conditions['e_preview'] = '(boolean)$_POST["preview"]'; XLSDV('en', array( 'ak_save' => 's', 'ak_saveedit' => 'u', 'ak_preview' => 'p', 'ak_textedit' => ',', 'e_rows' => '25', 'e_cols' => '60')); # (:e_preview:) displays the preview of formatted text. Markup('e_preview', 'directives', '/^\\(:e_preview:\\)/e', "Keep(\$GLOBALS['FmtV']['\$PreviewText'])"); # If we didn't load guiedit.php, then set (:e_guibuttons:) to # simply be empty. Markup('e_guibuttons', 'directives', '/\\(:e_guibuttons:\\)/', ''); SDVA($InputTags['e_form'], array( ':html' => "