s4

changeset 842:de2ef47143a0

Blog list in group home can be folded by a checkbox
author HIROSE Yuuji <yuuji@gentei.org>
date Fri, 26 Jun 2020 08:42:42 +0900
parents 21200ed49e75
children a0dcf6477310
files examples/common/default/default.css s4-funcs.sh
diffstat 2 files changed, 13 insertions(+), 8 deletions(-) [+]
line diff
     1.1 --- a/examples/common/default/default.css	Thu Jun 25 16:56:26 2020 +0900
     1.2 +++ b/examples/common/default/default.css	Fri Jun 26 08:42:42 2020 +0900
     1.3 @@ -70,6 +70,7 @@
     1.4  input.action[value="mv"]:checked ~ span {display: none;}
     1.5  input.action[value="rm"]:checked ~ span {background: red;}
     1.6  label.confirm {display: none;}
     1.7 +*.inline,
     1.8  input.action[value="rm"]:checked ~ label.confirm {
     1.9      display: inline;
    1.10  }
    1.11 @@ -249,7 +250,7 @@
    1.12  }
    1.13  /* ---------------------------------------------------- */
    1.14  
    1.15 -div.dumptable {max-height: 80vw; overflow: auto;}
    1.16 +div.dumptable {max-height: 70vw; overflow: auto;}
    1.17  div.dumptable tr:hover {background-color: #fee;}
    1.18  table.dumpblogs td,
    1.19  div.lcto td {	/* LINK + CTIME + TITLE + OWNER + something... */
     2.1 --- a/s4-funcs.sh	Thu Jun 25 16:56:26 2020 +0900
     2.2 +++ b/s4-funcs.sh	Fri Jun 26 08:42:42 2020 +0900
     2.3 @@ -2795,15 +2795,18 @@
     2.4  グループ管理者が承認操作をした後になります。" | html p 'class="warn"'
     2.5    fi
     2.6    echo '</div></div>'
     2.7 -  echo '<h2>話題一覧</h2>'
     2.8    thelp="1ヶ月分のまとめには上部検索窓に @month と入れてください。"
     2.9    cat<<-EOF
    2.10 -	<form class="summary" action="$myname" title="$thelp">
    2.11 -	`cgi_hidden owner "$grp"`
    2.12 -	`cgi_hidden kwd "@week"`
    2.13 -	`cgi_hidden stage searchart`
    2.14 -	`cgi_submit "一週間のまとめ"`
    2.15 -	</form>
    2.16 +	<div class="fold"> <!-- in showgroupsub -->
    2.17 +	 <h2>話題一覧</h2>
    2.18 +	 <form class="summary inline" action="$myname" title="$thelp">
    2.19 +	 `cgi_hidden owner "$grp"`
    2.20 +	 `cgi_hidden kwd "@week"`
    2.21 +	 `cgi_hidden stage searchart`
    2.22 +	 `cgi_submit "一週間のまとめ"`
    2.23 +	 </form>
    2.24 +	 <input type="checkbox" id="dtcheck" checked><label
    2.25 +	  for="dtcheck">話題一覧表示</label>
    2.26  	EOF
    2.27    cond="where a.id in (select id from blog_s where key='owner' and val=$qgrp) order by ctime desc"
    2.28    colstate="state:稼動状態:frozen=rowclass=凍結"
    2.29 @@ -2811,6 +2814,7 @@
    2.30  	 DT_QOWNER="$qgrp" \
    2.31  	 DT_VIEW=replyblog dumptable html blog \
    2.32  	 "ctime title heading team notify:通知$colmd $colstate" "$cond"
    2.33 +  echo "</div>  <!-- in showgroupsub -->"
    2.34  
    2.35    getgname="(select gname from grp where rowid=$rowid)"
    2.36    c="group by a.name having a.name in (select user from grp_mem where gname=$getgname)"