comparison s4-blog.sh @ 1002:47b3e770372d draft

Auth-ON/OFF button available in all modes
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 04 Dec 2022 16:59:59 +0859
parents ae6c5df09f22
children 5bd1b5125049
comparison
equal deleted inserted replaced
1001:bbd5a0c50d5b 1002:47b3e770372d
267 *report*|*quiz*|*enquete*) 267 *report*|*quiz*|*enquete*)
268 href2="<a href=\"?lshandout+$rowid\" accesskey=\"l\" title=\"Shortcut: L${nl}List Handouts\"> 提出状況 </a>" 268 href2="<a href=\"?lshandout+$rowid\" accesskey=\"l\" title=\"Shortcut: L${nl}List Handouts\"> 提出状況 </a>"
269 case "$isgrpadmin$blog_mode" in 269 case "$isgrpadmin$blog_mode" in
270 false*closed*|false*quiz|false*enquete*) ;; 270 false*closed*|false*quiz|false*enquete*) ;;
271 *) 271 *)
272 href3="(ファイル取得[<a href=\"?gethandout+$rowid\" accesskey=\"f\" title=\"Shortcut: F${nl}File Retrieval\">記事順</a>|<a href=\"?gethandout+$rowid+by_uname\" accesskey=\"u\" title=\"Shortcut: F${nl}File Retrieval by User\">著者順</a>])" 272 href3="(ファイル取得[<a href=\"?gethandout+$rowid\" accesskey=\"f\" title=\"Shortcut: F${nl}File Retrieval\">記事順</a>|<a href=\"?gethandout+$rowid+by_uname\" accesskey=\"u\" title=\"Shortcut: U${nl}File Retrieval by User\">著者順</a>])"
273 ;; 273 ;;
274 esac 274 esac
275 ;; 275 ;;
276 esac 276 esac
277 fi 277 fi
278 href4="${blog_math:+<span id=\"mathjax\">Math</span>} <a href=\"#bottom\" accesskey=\"b\" title=\"Shortcut: B${nl}to the Bottom\"> 末尾へ</a>" 278 hidebtn='<button type="button" id="hideauth" accesskey="a" title="Shortcut: A
279 Hide/Show Author - Useful for summary printing
280 OFFにするとまとめ印刷に便利。">著者OFF</button>'
281 href4="${blog_math:+<span id=\"mathjax\">Math</span>} $hidebtn <a href=\"#bottom\" accesskey=\"b\" title=\"Shortcut: B${nl}to the Bottom\"> 末尾へ</a>"
279 $isgrpadmin && 282 $isgrpadmin &&
280 href5="<a href=\"?blogseen+$rowid\" accesskey=\"s\" title=\"Shortcut: S${nl}State of Accesses\"> 読刻</a>" 283 href5="<a href=\"?blogseen+$rowid\" accesskey=\"s\" title=\"Shortcut: S${nl}State of Accesses\"> 読刻</a>"
281 quizmodefile=$tmpd/quiz; rm -f "$quizmodefile" # XXX: Global state 284 quizmodefile=$tmpd/quiz; rm -f "$quizmodefile" # XXX: Global state
282 midfile=$tmpd/midfile 285 midfile=$tmpd/midfile
283 286
309 </table> 312 </table>
310 EOF 313 EOF
311 case "$blogtype" in 314 case "$blogtype" in
312 "クイズ"|"XXXX集計") 315 "クイズ"|"XXXX集計")
313 echo "${blogtype}モードは本人と管理者の書き込みのみが表示されます" 316 echo "${blogtype}モードは本人と管理者の書き込みのみが表示されます"
314 echo "隠す/見せる(Hide/Show)" | html button 'id="quizwarn" type="button"'
315 ;; 317 ;;
316 esac | html p 'class="warn"' 318 esac | html p 'class="warn"'
317 319
318 fi # UUUUU 320 fi # UUUUU
319 if [ x"$blogtype" = x"クイズ" -o x"$blogtype" = x"XXXX集計" ]; then 321 if [ x"$blogtype" = x"クイズ" -o x"$blogtype" = x"XXXX集計" ]; then

yatex.org