--- db/prgsrc/db.cgi 2002/06/08 10:07:14 1.67
+++ db/prgsrc/db.cgi 2002/06/13 00:16:10 1.68
@@ -1052,7 +1052,7 @@ sub PrintQuestion {
$output .=
&PrintField("Вопрос $qnum", $Question{'Question'}, $text);
- if ($answer) {
+ if ($answer==1) {
$output .=
&PrintField("Ответ", $Question{'Answer'}, $text);
@@ -1098,6 +1098,38 @@ sub PrintQuestion {
$output .= &PrintField("Комментарии", $Question{'Comments'}, $text);
}
}
+ elsif ($answer==2) {
+ my $text=$Question{'Answer'};
+ $text=~s/\n//mg;
+ $output.=""
+ }
+ }
+ elsif ($answer==3) {
+ $output.= <
+ Показать/убрать ответ
+
+EOTT
+ .&PrintField("Ответ", $Question{'Answer'}, $text);
+ if ($Question{'Authors'}) {
+ $output .= &PrintField("Автор(ы)", $Question{'Authors'}, $text);
+ }
+ if ($Question{'Sources'}) {
+ $output .= &PrintField("Источник(и)", $Question{'Sources'}, $text);
+ }
+
+ if ($Question{'Comments'}) {
+ $output .= &PrintField("Комментарии", $Question{'Comments'}, $text);
+ }
+
+
+$output.=""
+
+ }
# $output.=br.a({href=> url."?metod=proxy&qid=$Id"}, 'Близкие вопросы').p
# if $answer;
return $output;
@@ -1671,6 +1703,18 @@ $sstr=~s/[^йцукенгшщзхъфывапролджэячсмит
}
if (!$text) {
print &Include_virtual("../dimrub/db/footer.html");
+print <
+function toggle(e) {
+ if (e.style.display == "none") {
+ e.style.display="";
+ } else {
+ e.style.display = "none";
+ }
+}
+
+EEE
+;
print end_html;
}
$dbh->disconnect;