diff s4-funcs.sh @ 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
line wrap: on
line diff
--- a/s4-funcs.sh	Tue Oct 25 22:56:41 2016 +0859
+++ b/s4-funcs.sh	Tue Oct 25 23:00:46 2016 +0859
@@ -1732,27 +1732,21 @@
   unset DT_SQL
   if [ x"$user" = x"$uname" ]; then
     # Display NEWS
-    if false; then
-      cond="where 新着 > 0 order by 新着 desc,ctime desc limit 10"
-      new10=`DT_CHLD=article:blogid \
-	  DT_VIEW=replyblog dumptable html blog "ctime title gecos" "$cond"`
-    else
-      # 2016-06-26
-      if [ x"`getpar readchk``getpar read`" = x"yesyes" ]; then
-	acclog blog $blogreadflagrowid
-	# echo "全部既読にしました" | html p
-      fi
-      # 2016-02-19 Counting NEWS without using dumptable.
-      sql=`listnewblogsql "$user"`
-      new10=`DT_SQL="$sql" DT_VIEW=replyblog dumptable html blog`
+    # 2016-06-26
+    if [ x"`getpar readchk``getpar read`" = x"yesyes" ]; then
+      acclog blog $blogreadflagrowid
+      # echo "全部既読にしました" | html p
     fi
+    # 2016-02-19 Counting NEWS without using dumptable.
+    sql=`listnewblogsql "$user"`
+    new10=`DT_SQL="$sql" DT_VIEW=replyblog dumptable html blog`
     cont=`echo "$new10"|grep "^<TR>"|wc -l`
     cont=$((cont-1))
     err newcount=$cont
     if [ $cont -gt 0 ]; then
       #echo "全体の新着記事${cont}傑" | html h2
       cgi_radio foldtabs yes 'id="new10" accesskey="f"'
-      echo "<label for=\"new10\">新着${cont}傑</label><div>"
+      echo "<label for=\"new10\" title=\"X\">新着${cont}傑</label><div>"
       cat<<-EOF | html form 'action="?home"'
 	`cgi_checkbox readchk yes 'id="read"'`<label
 	 for="read">新着ふくめて全部読んだことにする</label>

yatex.org