3 * @link https://datagram.co.jp/source/bksj for the canonical source repository
4 * @copyright Copyright (c) 2006-2019 Datagram Ltd. (https://datagram.co.jp)
5 * @license https://datagram.co.jp/source/bksj/license.txt
9 $expire = str_replace('-', '/', EXPIRE);
11 <script type="text/javascript">
24 if (this.ans.sts == 'NG') {
25 this.errmsg.html(this.ans.err);
29 this.func.val(this.ans.func);
30 this.nextUrl.attr('action', this.ans.url).submit();
33 btn_login: function() {
42 'account': this.account.val(),
43 'passwd': this.passwd.val(),
44 'token': '<?= $token ?>'
48 eval("this.ans = " + data);
51 this.ans = {"sts": "NG", "err": "ajax error"};
62 this.errmsg = $('#errmsg');
63 this.account = $('#account');
64 this.passwd = $('#passwd');
65 this.nextUrl = $('#nextUrl');
66 this.func = $('#func');
78 <form method="post" name="nextUrl" id="nextUrl">
79 <input type="hidden" name="func" id="func">
82 <table id="my_header" width="100%">
84 <td align="left"> ログイン (有効期限:<?= $expire ?>)</td>
86 <!-- <button type="button" class="my_red">閉じる</button> -->
91 <div style="height: 25px;"> </div>
98 <td colspan="3"><div id="errmsg" class="my_red"></div></td>
101 <td colspan="3"> </td>
106 <td><input type="text" id="account" size="32" value="" style="width: 160pt; height: 18pt;"></td>
111 <td><input type="password" id="passwd" size="32" value="" style="width: 160pt; height: 18pt;"></td>
114 <td colspan="3"><br></td>
117 <td colspan="3" align="center">
118 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.btn_login();">ログイン</button>