changeset 493:d879d9d1acb7

Assume quiz board as report because we need handout-summary on quiz.
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 16 Jun 2018 13:25:55 +0900
parents 35458671d18c
children 6906c140431a
files s4-blog.sh
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/s4-blog.sh	Fri Jun 08 09:37:52 2018 +0900
+++ b/s4-blog.sh	Sat Jun 16 13:25:55 2018 +0900
@@ -178,7 +178,7 @@
   href="<a href=\"?editheading+$rowid\" accesskey=\"e\" title=\"E\"> 編集 </a>"
   if $ismem; then
     case `getvalbyid blog mode $rowid` in
-      *report*)
+      *report*|*quiz*)
 	href2="<a href=\"?lshandout+$rowid\" accesskey=\"l\" title=\"L\"> 提出状況 </a>"
 	;;
     esac
@@ -525,7 +525,10 @@
  	 GROUP BY id
 	)
 	SELECT id, brid, title, ctime FROM blog_owner_mode
-	WHERE owner=$qowner AND mode LIKE '%report%';
+	/* WHERE owner=$qowner AND mode LIKE '%report%'; */
+	WHERE owner=$qowner
+		AND
+	      (mode LIKE '%report%' OR mode LIKE '%quiz%');
 	 /* ↑これでレポート形式の blogid 一覧を得る */
 	EOF
   if [ -z "$CATCSV" ]; then

yatex.org