# HG changeset patch # User HIROSE Yuuji # Date 1437285208 -32400 # Node ID 7ccd9c2eb97e1672114dd53d11833fea06a4fc45 # Parent 067d42b98182b45fe0ee04a27c33bba6a78af655 Add templates diff -r 067d42b98182 -r 7ccd9c2eb97e templ/default/default.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/default/default.css Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,96 @@ +/* + * Default CSS definitions + */ +body {background: #eff;} +hr {clear: both;} +div.topmenu { + margin: 0; padding: 0; width: 100%; height: 2em; +} +div.topmenu ul {width: 100%; position: fixed; margin: 0; + margin: 0 auto;} +div.topmenu ul li { + float: left; width: 18%; + background: rgba(68,255,102,0.8); border: #3e5 2px groove; margin: 0; + text-align: center; font-size: 80%; list-style: none; + box-shadow: #242 2px 3px 5px; + text-shadow: #fff 0px 0px 10px; +} +div.topmenu ul li:hover {background: #8fa;} +div.topmenu ul a {text-decoration: none;} + +ldiv.topmenu + h1 {clear: both; margin-top: 3em;} + +div.dumptable {max-height: 15em; overflow: auto;} + +td {padding-left: 0.5ex; padding-right: 0.5ex;} +table.td2r td:nth-child(2) {text-align: right;} +table.td3r td:nth-child(3) {text-align: right;} +table.form, table.b, table.b tr, table.b td, table.b th { + border: 1px solid black; border-collapse: collapse; +} +td.warn {background: #fcc;} +input[type="checkbox"][name="rm"]:checked ~ table {background: red;} +input[type="checkbox"][name="rm"] ~ span {display: none;} +input[type="checkbox"][name="rm"]:checked ~ span {display: inline;} + +input[type="radio"][value="replace"] + input.replace[type="file"] { + visibility: hidden;} +input[type="radio"][value="replace"]:checked + input.replace[type="file"] { + visibility: visible; +} + +/* keep/edit/rm action selector */ +input.action ~ input:not(.action), input.action ~ textarea { + display: none; +} +input.action[value="edit"]:checked ~ input {display: inline;} +input.action[value="edit"]:checked ~ textarea {display: block;} +input.action[value="edit"]:checked ~ span {display: none;} +input.action[value="rm"]:checked ~ span {background: red;} +label.confirm {display: none;} +input.action[value="rm"]:checked ~ label.confirm { + display: inline; +} + +form.replyblog {margin-bottom: 40%;} +div.blogcomment { + position: fixed; bottom: 0; left: 0; + z-index: 2; background-color: rgba(250,222,222,0.8); +} +div.blogcomment * {opacity: 1.0;} +table.bloghead, .bloghead tr, .bloghead td { + border: 1px solid black; border-collapse: collapse; + min-width: 30em; +} +table.bloghead tr:nth-child(2) { + font-size: 150%; background: yellow; text-align: center; +} +table.bloghead {margin-bottom: 1em;} + +table.blog_replies, .blog_replies tr, .blog_replies td { + border: 1px solid black; border-collapse: collapse; + white-space: pre; +} +.blog_replies td:nth-child(2) { + vertical-align: top; min-width: 30em; height: 3em; +} + +div.fold {margin-top: 1em; border-top: 1px solid black; padding-top: 1em;} +div.fold > div { + display: none; max-height: 80%; overflow: auto; +} +div.fold input[type="checkbox"]:checked ~ div {display: block;} + +/********************* icon list *********************/ +div.iconlist { + text-align: center; float: left; margin: 1ex 1em; + border: dotted #dfd 2px; padding: 1ex; +} +div.iconlist p {margin: 0; padding: 0;} +div.iconlist p.tag {background: #ffa; border-radius: 4em;} +div.iconlist p._temp {background: cyan;} +div.iconlist p._lecture {background: pink;} +div.xy120x120 {min-width: 120px; min-height: 140px;} +div.xy96x96 {min-width: 96px; min-height: 116px;} +div.xy50x50 {min-width: 50px; min-height: 70px;} +div.right {clear: both; float: right;} diff -r 067d42b98182 -r 7ccd9c2eb97e templ/default/diary.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/default/diary.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,9 @@ +

_TITLE_

+

_SUBTITLE_

+
+_DIARY_ +
+_FORM_ +
+

_BLOGS_

+_DUMPTABLE_ diff -r 067d42b98182 -r 7ccd9c2eb97e templ/default/footer.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/default/footer.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,2 @@ + + diff -r 067d42b98182 -r 7ccd9c2eb97e templ/default/groupman.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/default/groupman.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,6 @@ +

_TITLE_

+
+_FORM_ +
+
+_DUMPTABLE_ diff -r 067d42b98182 -r 7ccd9c2eb97e templ/default/home.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/default/home.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,15 @@ +

_TITLE_

+
+_PROFILE_ +
+ +
+ +
_BLOGS_
+
+ +
+ +_GROUPS_ +
diff -r 067d42b98182 -r 7ccd9c2eb97e templ/default/html.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/default/html.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,15 @@ + +_TITLE_ + + + +
+ +
diff -r 067d42b98182 -r 7ccd9c2eb97e templ/default/invite.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/default/invite.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,14 @@ +

招待メイル送信

+

_REPORT_

+ +
+ + + +
送信先
+ + +
+ + + diff -r 067d42b98182 -r 7ccd9c2eb97e templ/default/login-fail.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/default/login-fail.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,2 @@ +

ログイン失敗

+

パスワードが違っています。

diff -r 067d42b98182 -r 7ccd9c2eb97e templ/default/login.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/default/login.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,10 @@ +

_SYSNAME_

+
+ + + +
User
Password
+ + +
diff -r 067d42b98182 -r 7ccd9c2eb97e templ/default/welcome.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/default/welcome.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,12 @@ +

Welcome to _SITE_

+ diff -r 067d42b98182 -r 7ccd9c2eb97e templ/form/article.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/form/article.def Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,9 @@ +シリアル:id:p:serial: +blogID:blogid:f:blog(id): +筆者:author:s:author: +時刻:ctime:s:stamp: +参照元:parent:s:parent: +パス:path:s:path: +本文:text:s:textarea:cols="60" rows="8" +画像:image:m:image:multiple +stage:stage:x:hidden:value="replyblog" diff -r 067d42b98182 -r 7ccd9c2eb97e templ/form/blog.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/form/blog.def Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,9 @@ +シリアル:id:p:serial: +用途:mode:s:select:普通の掲示板=normal レポート提出用(相互に参照可能)=report-open レポート提出用(管理者のみ参照可能)=report-closed +タイトル:title:s:text:maxlength="200" +所有者:owner:s:owner: +筆者:author:s:author: +時刻:ctime:s:stamp: +序文:heading:s:textarea:cols="60" rows="3" +リプライ:reply:m:*article: +stage:stage:x:hidden:value="blog" diff -r 067d42b98182 -r 7ccd9c2eb97e templ/form/diary.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/form/diary.def Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,4 @@ +タイトル:title:s:text:length="20" maxlength="40" +曜日:wday:s:radio:日=sun 月=mon 火=tue 水=wed 木=thu 金=fri 土=sun +本文:diary:s:textarea: rows="4" cols="30" maxlength="2048" +stage:stage:s:hidden:value="diary" diff -r 067d42b98182 -r 7ccd9c2eb97e templ/form/form-groupman.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/form/form-groupman.def Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,4 @@ +グループ名(英数字):name:p:text:length="20" maxlength="40" +種別:tag:s:select:講義関連=lecture 個人的リスト=friend 管理用=admin 一時的=temp +グループの説明:gecos:s:text:length="30" maxlength="60" +stage:stage:s:hidden:value="groupman" diff -r 067d42b98182 -r 7ccd9c2eb97e templ/form/grp.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/form/grp.def Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,6 @@ +グループ名(英数字):gname:p:text:length="20" maxlength="40" +説明(日本語OK):gecos:s:text:length="20" maxlength="40" +種別:tag:s:select:講義関連=lecture 個人的リスト=friend 管理用=admin 一時的=temp +所有者:owner:m:*grp_adm: +プロフィール画像:profimg:m:image: +メンバー:member:m:*grp_mem:maxlength="4M" diff -r 067d42b98182 -r 7ccd9c2eb97e templ/form/grp_adm.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/form/grp_adm.def Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,3 @@ +グループ:gname:pf:grp(gname): +ユーザ:user:pf:user(name): +このグループでのメイルアドレス:email:s:text: diff -r 067d42b98182 -r 7ccd9c2eb97e templ/form/grp_mem.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/form/grp_mem.def Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,3 @@ +グループ:gname:pf:grp(gname): +ユーザ:user:pf:user(name): +このグループでのメイルアドレス:email:s:text: diff -r 067d42b98182 -r 7ccd9c2eb97e templ/form/user.def --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/form/user.def Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,8 @@ +ユーザ名(英数字):name:p:user:length="20" maxlength="40" +パスワード:pswd:s:password:length="20" maxlength="40" +なまえ(日本語OK):gecos:s:text:length="20" maxlength="40" +セッションキー:skey:s:session +通知送信メイルアドレス(複数可):email:mh:text:length="20" maxlength="40" +住所:address:m:textarea:maxlength="400" +プロフィール画像:profimg:m:image:maxlength="400K" +履歴書(4MBまで):profpdf:m:document:maxlength="4M" diff -r 067d42b98182 -r 7ccd9c2eb97e templ/msg/login-fail-1.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/msg/login-fail-1.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,3 @@ +

パスワード再発行

+

登録アドレス(_USER_)に新パスワードを送付しておきました。

+

_URL_

diff -r 067d42b98182 -r 7ccd9c2eb97e templ/msg/login-fail-2.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/msg/login-fail-2.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,3 @@ +

ログイン失敗

+

パスワードが違います。思い出せない場合はwasureta入れてください。

+

_URL_

diff -r 067d42b98182 -r 7ccd9c2eb97e templ/msg/login-fail-3.m4.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/msg/login-fail-3.m4.html Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,3 @@ +

ログイン失敗

+

ユーザ登録が必要です。管理者までおしらせください。

+

_ADMIN_

diff -r 067d42b98182 -r 7ccd9c2eb97e templ/msg/mail --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/msg/mail Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,8 @@ +To: _RCPT_ +Subject: _SUBJ_ +Date: _DATE_ +From: _FROM_ +MIME-Version: 1.0 +Content-type: text/plain; charset=iso-2022-jp + +_BODY_ diff -r 067d42b98182 -r 7ccd9c2eb97e templ/msg/mail-header.m4 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/msg/mail-header.m4 Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,6 @@ +To: _RCPT_ +Subject: _SUBJ_ +From: _FROM_ +MIME-Version: 1.0 +Content-type: text/plain; charset=iso-2022-jp + diff -r 067d42b98182 -r 7ccd9c2eb97e templ/msg/mail-invite.m4 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/msg/mail-invite.m4 Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,13 @@ + +=== _URL_ +=== メンバー加入のお誘い + +_USER_ さんから +_EMAIL_ さん宛に +招待状が送られました。 + +下記URLにアクセスすることで、加入登録が進みます。 +_REGIST_ + +もしこのURLに心当たりがない場合は以下の管理者宛に御連絡ください。 +_ADMIN_ diff -r 067d42b98182 -r 7ccd9c2eb97e templ/msg/mail-newaccount.m4 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/templ/msg/mail-newaccount.m4 Sun Jul 19 14:53:28 2015 +0900 @@ -0,0 +1,7 @@ + +_USER_ さんのアカウントを作成しました。 +初期パスワードは _PSWD_ です。 +もし、このパスワードを忘れたときは +wasureta +を入力してください。 +_URL_ diff -r 067d42b98182 -r 7ccd9c2eb97e y4-funcs.sh --- a/y4-funcs.sh Sun Jul 19 14:25:55 2015 +0900 +++ b/y4-funcs.sh Sun Jul 19 14:53:28 2015 +0900 @@ -442,7 +442,7 @@ esac) } mktempd() { - mktemp -d -p $tmpdir/ -t $session + TMPDIR=$tmpdir mktemp -d -t $session } getval() { # $1=table $2=col $3(optional)=condition @@ -778,7 +778,7 @@ expire() ( at="${1:-$timeout}" FMT="${2:-%F %T}" - TZ=GMT date -d "$at" +"$FMT" + TZ=GMT gdate -d "$at" +"$FMT" ) addsession() { # expireをセット