1 _info?> body<=
(Back to FAQ Index)
prepare("SELECT question, answer, faqcat, sortorder FROM faq WHERE faqid=$id"); $sth->execute; ($question, $answer, $faqcat, $sortorder) = $sth->fetchrow_array or return "Error: FAQ #$id does not exist."; $q = LJ::ehtml($question); $a = LJ::ehtml($answer); unless ($ac_edit{'*'} || $ac_edit{$faqcat}) { if (%ac_edit) { return "Error: You do not have access to edit a FAQ question in the \"$faqcat\" category."; } else { return "Error: You do not have access to edit the FAQ."; } } } else { unless (%ac_add) { return "Error: You do not have access to add to the FAQ."; } } $sortorder += 0; $sortorder ||= 50; $ret .= "\n"; $ret .= "

Category: "; $ret .= "SortOrder (1-100): "; $ret .= "
(sort order is how to sort within the category. categories themselves are also sorted.)"; $ret .= "

Question: (as brief as possible, do not span multiple lines)

(erase question to delete FAQ entry)\n"; $ret .= "

Answer: (long as you want, give URLs to links, not HTML)
\n"; my $faqd = LJ::Lang::get_dom("faq"); if ($faqd) { $ret .= "

Select modification level: "; $ret .= LJ::html_select({ 'name' => "sev", "selected" => 1 }, 0 => "Typo/etc (no notify)", 1 => "Minor (notify translators)", 2 => "Major (require translation updates)"); $ret .= "

"; } $ret .= "

"; return $ret; _code?>

<=body page?> lib: cgi-bin/ljlib.pl post: htdocs/admin/faq/faqedit_do.bml _c?>