diff --git a/examples/common/default/default.css b/examples/common/default/default.css index 77c6484..7f95695 100644 --- a/examples/common/default/default.css +++ b/examples/common/default/default.css @@ -147,6 +147,9 @@ div.noprofimg tr.profimg:hover, div.noprofimg tr.profimg:active { visibility: visible; display: table-row;} +/* Used for overlapping image */ +img.overlap {position: absolute; top: 40px; left: 50px; z-index: 2;} + /* Used in user's home page */ p.profimg {float: left; max-width: 50%; max-height: 400px; overflow: hidden; margin: 0 1em 1ex; @@ -294,7 +297,7 @@ rgba(242,240,240,0.7); position: relative; } -div.search div.fr {position: relative;} +div.search div.fr, *.relative {position: relative;} div.search p.help, textarea + p.help {display: none;} div.search input:focus + p.help, textarea:focus + p.help { diff --git a/s4-blog.sh b/s4-blog.sh index 95cd8d7..a3ef9ae 100644 --- a/s4-blog.sh +++ b/s4-blog.sh @@ -119,6 +119,7 @@ ts=${tbl}_s tm=${tbl}_m at=article as=article_s am=article_m serial=$(($(date +%s)-1420038000))s$$ + cannotread='
' blog_writable $rowid $user rc=$? if [ $rc = 0 ]; then @@ -158,17 +159,20 @@ else # if writable isgrpowner "$user" "$blogowner" && isgrpadmin=true # (*1) fi - case `getvalbyid blog notify "$2"` in # "all", "admin" or "no" (or NULL) + case `getvalbyid blog notify "$rowid"` in # "all", "admin" or "no" (or NULL) admin) notifyto=1 ;; *) notifyto="" ;; esac + case `getvalbyid blog mode "$rowid"` in + *quiz*|*close*) f_exclusive=1 ;; + *) f_exclusive='' ;; + esac # err "SELECT id from $tbl where rowid=$rowid" id=`query "select id from $tbl where rowid=$rowid;"` #err id=$id #err "select val from $ts where key='title' and id='$id';" - #(1)Display root article cat<