s4

changeset 610:dfd83a6d09fb

Label fixed and local value loading introduced
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 17 Apr 2020 07:50:47 +0900
parents 7eb71958a09e
children 1546f1f82dcf
files s4-funcs.sh
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Fri Apr 17 07:18:07 2020 +0900
     1.2 +++ b/s4-funcs.sh	Fri Apr 17 07:50:47 2020 +0900
     1.3 @@ -13,6 +13,7 @@
     1.4  dbdir=${DBDIR:-db}
     1.5  tmpfiles=""
     1.6  db=${DB:-$dbdir/cgi.sq3}
     1.7 +listentlimit=${LISTENTLIMIT:-30}
     1.8  admin=${ADMIN:-hostmaster@example.org}
     1.9  templ=${TEMPL:-templ}
    1.10  layout=${LAYOUT:-$templ/default}
    1.11 @@ -2101,7 +2102,7 @@
    1.12    fi
    1.13    offset=$((offset + 0))	# change to numeric forcibly
    1.14    [ $offset -lt 0 ] && offset=0
    1.15 -  limit=30
    1.16 +  limit=$listentlimit
    1.17    dir=`getcachedir "$1"`
    1.18    if [ x"$1" = x"user" ]; then
    1.19      hrb="$myname?home"
    1.20 @@ -2188,9 +2189,9 @@
    1.21    # Show owner/member filter button
    1.22    cat<<-EOF
    1.23  	`cgi_checkbox onlymem no 'id="ismembtn"'`<label
    1.24 -	for="ismembtn">参加中のみ表示</label>
    1.25 +	for="ismembtn">参加中以外隠す</label>
    1.26  	`cgi_checkbox onlyadm no 'id="isadmbtn"'`<label
    1.27 -	for="isadmbtn">管理者参加のみ表示</label>
    1.28 +	for="isadmbtn">管理者参加以外隠す</label>
    1.29  	EOF
    1.30    METHOD=GET
    1.31    if [ $total -gt $limit ]; then