# HG changeset patch # User HIROSE Yuuji # Date 1590104224 -32400 # Node ID 2c5ddb0b5f4c1b6be2c7c122e0322e278ad76aba # Parent fdd9c98f0888a4332a24c7159951ea79b655c82e Add more shortcuts and baloon help messages diff -r fdd9c98f0888 -r 2c5ddb0b5f4c examples/common/default/home.m4.html --- a/examples/common/default/home.m4.html Fri May 22 08:35:05 2020 +0900 +++ b/examples/common/default/home.m4.html Fri May 22 08:37:04 2020 +0900 @@ -7,12 +7,14 @@
+ accesskey="a" title="Shortcut: A +My Blogs" for="sd">日記(_NBLOG_)
_BLOGS_
+ accesskey="s" title="Shortcut: S +My Groups" for="grp">参加中グループ
_GROUPS_ @@ -22,5 +24,6 @@ _HOMETAIL_ + accesskey="x" title="Shortcut: X +Hide Tabs" for="close">×
diff -r fdd9c98f0888 -r 2c5ddb0b5f4c s4-blog.sh --- a/s4-blog.sh Fri May 22 08:35:05 2020 +0900 +++ b/s4-blog.sh Fri May 22 08:37:04 2020 +0900 @@ -222,18 +222,18 @@ EOF - href=" 編集 " + href=" 編集 " if $ismem; then case $blog_mode in *report*|*quiz*|*enquete*) - href2=" 提出状況 " - href3="(ファイル取得)" + href2=" 提出状況 " + href3="(ファイル取得)" ;; esac fi - href4=' 末尾へ' + href4=" 末尾へ" $isgrpadmin && - href5=" 読刻" + href5=" 読刻" quizmodefile=$tmpd/quiz; rm -f "$quizmodefile" # XXX: Global state midfile=$tmpd/midfile diff -r fdd9c98f0888 -r 2c5ddb0b5f4c s4-cgi.sh --- a/s4-cgi.sh Fri May 22 08:35:05 2020 +0900 +++ b/s4-cgi.sh Fri May 22 08:37:04 2020 +0900 @@ -10,8 +10,8 @@ $cont - - + + EOF } @@ -82,12 +82,12 @@ cat< diff -r fdd9c98f0888 -r 2c5ddb0b5f4c s4-funcs.sh --- a/s4-funcs.sh Fri May 22 08:35:05 2020 +0900 +++ b/s4-funcs.sh Fri May 22 08:37:04 2020 +0900 @@ -2024,8 +2024,8 @@ search_form_args="" if [ x"$user" = x"$uname" ]; then usermenu="プロフィールの編集 / - 新規話題の作成" + title=\"Shortcut: E${nl}Edit Profile\">プロフィールの編集 / + 新規話題の作成" # Display folders sql="select count(id) from article_m where id in (select id from article where author='$user') @@ -2035,7 +2035,7 @@ # err nfile=$nfile if [ $nfile -gt 0 ]; then usermenu="$usermenu / 過去の提出ファイル" + title=\"Shortcut: L${nl}List All Attachment files\">過去の提出ファイル" fi else latestlog=`query "SELECT max(time) FROM acclog WHERE user='$uname' \ @@ -2123,7 +2123,7 @@ cat<<-EOF `cgi_radio foldtabs yes 'id="mre" accesskey="d"'` + for="mre" title="Shortcut: D${nl}Recent Post">最近の書き込み先
`DT_VIEW=replyblog dumptable html blog`
@@ -2146,7 +2146,7 @@ if [ $cont -gt 0 ]; then #echo "全体の新着記事${cont}傑" | html h2 cgi_radio foldtabs yes 'id="new10" accesskey="f"' - echo "
" + echo "
" cat<<-EOF | html form 'action="?home"' `cgi_checkbox readchk yes 'id="read"'` @@ -2538,27 +2538,32 @@ viewtable $1 grp $rowid echo "
" if isgrpowner "$user" "$grp"; then - echo "

グループ情報の編集" + echo "

グループ情報の編集" iamowner=$rowid colmd=" mode" fi if [ -n "$ismember" ]; then - echo "${iamowner:+ / }グループの新規話題作成" - echo "/ メンバーを個別選択しての操作

" + #echo "${iamowner:+ / }グループの新規話題作成" + #echo "/ メンバーを個別選択しての操作

" # div.fold input[type="checkbox"]:checked ~ div {display: block;} - cat< -
-`cgi_checkbox send yes id="send"` -
-`cgi_textarea message "" "cols=60"` -`cgi_submit 送信` -`cgi_reset リセット` -
-`cgi_hidden grp $rowid` -
-EOF + cat<<-EOF + ${iamowner:+ / }グループの新規話題作成 + / メンバーを個別選択しての操作

+
+
+ `cgi_checkbox send yes id="send"` +
+ `cgi_textarea message "" "cols=60"` + `cgi_submit 送信` + `cgi_reset リセット` +
+ `cgi_hidden grp $rowid` +
+ EOF fi # 加入ボタン + 加入者リスト if [ -n "$ismember" ]; then @@ -2822,7 +2827,7 @@ from=`getpar from`; to=`getpar to` from_input="" to_input="" - fromtonote="

POST集計: $from_input - $to_input

" + fromtonote="

POST集計: $from_input - $to_input

" # New entry sql="WITH mems AS ( SELECT g.rowid, name, gecos FROM grp_mem gm LEFT JOIN gecoses g @@ -2866,11 +2871,13 @@ ## err grpaction: "`echo \"$sql\"`" tf=$tmpd/title.$$ echo "グループ[$grp]参加メンバーに対する操作" > $tf - cmmsg="`cgi_radio rm commission id=\"cmadmin\"`

このグループでの全権を付与します。信頼できる人に託してください。

" - excmsg="`cgi_radio rm yes id=\"conf\"`
本当に消します! `cgi_checkbox confirm yes` 確認

この操作による通知は本人に行きません。 @@ -2884,7 +2891,8 @@ myhexteams=$(hexteams "$grp" "$user") fi if [ -n "$myhexteams" ]; then - rmteammsg="`cgi_radio rm rmteam 'id=\"cmrmteam\"'`

チーム属性:`cgi_select_h rmteam \"2d2d2d\" $myhexteams` を除去します: `cgi_checkbox teamconfirm yes` 確認 @@ -2913,17 +2921,19 @@ | _m4 -D_TEAM_="spaste(\`$stf')"

下でチェックした人を対象として:

-`cgi_radio rm addteam 'id="cmteam"'`
チーム名:`cgi_text team "" 'id="inteam" list="teams"'` `cgi_datalist_h teams $allhexteams`
${rmteammsg} -`cgi_radio rm send id="sendmsg"`
`cgi_checkbox email yes 'id="email" class="fold"'` +title="Using email format">email書式を使う
($i) + value="keep"> + value="edit"> -
From: $user