s4

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 diff
     1.1 --- a/s4-blog.sh	Fri Jun 08 09:37:52 2018 +0900
     1.2 +++ b/s4-blog.sh	Sat Jun 16 13:25:55 2018 +0900
     1.3 @@ -178,7 +178,7 @@
     1.4    href="<a href=\"?editheading+$rowid\" accesskey=\"e\" title=\"E\"> 編集 </a>"
     1.5    if $ismem; then
     1.6      case `getvalbyid blog mode $rowid` in
     1.7 -      *report*)
     1.8 +      *report*|*quiz*)
     1.9  	href2="<a href=\"?lshandout+$rowid\" accesskey=\"l\" title=\"L\"> 提出状況 </a>"
    1.10  	;;
    1.11      esac
    1.12 @@ -525,7 +525,10 @@
    1.13   	 GROUP BY id
    1.14  	)
    1.15  	SELECT id, brid, title, ctime FROM blog_owner_mode
    1.16 -	WHERE owner=$qowner AND mode LIKE '%report%';
    1.17 +	/* WHERE owner=$qowner AND mode LIKE '%report%'; */
    1.18 +	WHERE owner=$qowner
    1.19 +		AND
    1.20 +	      (mode LIKE '%report%' OR mode LIKE '%quiz%');
    1.21  	 /* ↑これでレポート形式の blogid 一覧を得る */
    1.22  	EOF
    1.23    if [ -z "$CATCSV" ]; then