s4

changeset 351:deb4cc74a415

Remove old code and add title of accesskey
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 25 Oct 2016 23:00:46 +0859
parents a6ff48595a4d
children dd0c70353869
files s4-funcs.sh
diffstat 1 files changed, 8 insertions(+), 14 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Tue Oct 25 22:56:41 2016 +0859
     1.2 +++ b/s4-funcs.sh	Tue Oct 25 23:00:46 2016 +0859
     1.3 @@ -1732,27 +1732,21 @@
     1.4    unset DT_SQL
     1.5    if [ x"$user" = x"$uname" ]; then
     1.6      # Display NEWS
     1.7 -    if false; then
     1.8 -      cond="where 新着 > 0 order by 新着 desc,ctime desc limit 10"
     1.9 -      new10=`DT_CHLD=article:blogid \
    1.10 -	  DT_VIEW=replyblog dumptable html blog "ctime title gecos" "$cond"`
    1.11 -    else
    1.12 -      # 2016-06-26
    1.13 -      if [ x"`getpar readchk``getpar read`" = x"yesyes" ]; then
    1.14 -	acclog blog $blogreadflagrowid
    1.15 -	# echo "全部既読にしました" | html p
    1.16 -      fi
    1.17 -      # 2016-02-19 Counting NEWS without using dumptable.
    1.18 -      sql=`listnewblogsql "$user"`
    1.19 -      new10=`DT_SQL="$sql" DT_VIEW=replyblog dumptable html blog`
    1.20 +    # 2016-06-26
    1.21 +    if [ x"`getpar readchk``getpar read`" = x"yesyes" ]; then
    1.22 +      acclog blog $blogreadflagrowid
    1.23 +      # echo "全部既読にしました" | html p
    1.24      fi
    1.25 +    # 2016-02-19 Counting NEWS without using dumptable.
    1.26 +    sql=`listnewblogsql "$user"`
    1.27 +    new10=`DT_SQL="$sql" DT_VIEW=replyblog dumptable html blog`
    1.28      cont=`echo "$new10"|grep "^<TR>"|wc -l`
    1.29      cont=$((cont-1))
    1.30      err newcount=$cont
    1.31      if [ $cont -gt 0 ]; then
    1.32        #echo "全体の新着記事${cont}傑" | html h2
    1.33        cgi_radio foldtabs yes 'id="new10" accesskey="f"'
    1.34 -      echo "<label for=\"new10\">新着${cont}傑</label><div>"
    1.35 +      echo "<label for=\"new10\" title=\"X\">新着${cont}傑</label><div>"
    1.36        cat<<-EOF | html form 'action="?home"'
    1.37  	`cgi_checkbox readchk yes 'id="read"'`<label
    1.38  	 for="read">新着ふくめて全部読んだことにする</label>