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 wrap: on
line diff
--- a/s4-funcs.sh	Fri Apr 17 07:18:07 2020 +0900
+++ b/s4-funcs.sh	Fri Apr 17 07:50:47 2020 +0900
@@ -13,6 +13,7 @@
 dbdir=${DBDIR:-db}
 tmpfiles=""
 db=${DB:-$dbdir/cgi.sq3}
+listentlimit=${LISTENTLIMIT:-30}
 admin=${ADMIN:-hostmaster@example.org}
 templ=${TEMPL:-templ}
 layout=${LAYOUT:-$templ/default}
@@ -2101,7 +2102,7 @@
   fi
   offset=$((offset + 0))	# change to numeric forcibly
   [ $offset -lt 0 ] && offset=0
-  limit=30
+  limit=$listentlimit
   dir=`getcachedir "$1"`
   if [ x"$1" = x"user" ]; then
     hrb="$myname?home"
@@ -2188,9 +2189,9 @@
   # Show owner/member filter button
   cat<<-EOF
 	`cgi_checkbox onlymem no 'id="ismembtn"'`<label
-	for="ismembtn">参加中のみ表示</label>
+	for="ismembtn">参加中以外隠す</label>
 	`cgi_checkbox onlyadm no 'id="isadmbtn"'`<label
-	for="isadmbtn">管理者参加のみ表示</label>
+	for="isadmbtn">管理者参加以外隠す</label>
 	EOF
   METHOD=GET
   if [ $total -gt $limit ]; then

yatex.org