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
10 <script type="text/javascript">
27 gotoNext: function(func, act) {
44 'name': this.v_name.val(),
45 'role': this.v_role.val(),
46 'email': this.v_email.val(),
47 'tel': this.v_tel.val(),
48 'login_id': this.v_login_id.val(),
49 'passwd0': this.v_passwd0.val(),
50 'passwd1': this.v_passwd1.val(),
55 eval("this.ans = " + data);
58 this.ans = {"sts": "NG", "err": "ajax error"};
68 if (!confirm("登録しますか?")) {
72 if (this.check() == 'NG') {
74 for (var i in this.ans.err) {
75 msg += this.ans.err[i] + '<br>';
78 this.errmsg.html(msg);
90 'name': this.v_name.val(),
91 'role': this.v_role.val(),
92 'email': this.v_email.val(),
93 'tel': this.v_tel.val(),
94 'login_id': this.v_login_id.val(),
95 'passwd0': this.v_passwd0.val(),
96 'passwd1': this.v_passwd1.val(),
101 eval("this.ans = " + data);
104 this.ans = {"sts": "NG", "err": "ajax error"};
107 if (this.ans.sts == 'NG') {
108 this.errmsg.html(this.ans.err);
112 this.gotoNext('Account', 'remember');
118 this.errmsg = $('#errmsg');
119 this.next = $('#next');
120 this.func = $('#func');
121 this.act = $('#act');
122 this.v_name = $('#v_name');
123 this.v_login_id = $('#v_login_id');
124 this.v_passwd0 = $('#v_passwd0');
125 this.v_passwd1 = $('#v_passwd1');
126 this.v_role = $('#v_role');
127 this.v_email = $('#v_email');
128 this.v_tel = $('#v_tel');
138 <form method="post" name="next" id="next" action="<?= $base ?>">
139 <input type="hidden" name="func" id="func">
140 <input type="hidden" name="act" id="act">
143 <table id="my_header" width="100%">
146 <a onclick="return my.gotoNext('RootMenu', '');">root用メニュー</a>
147 > <a onclick="return my.gotoNext('Account', 'remember');">アカウント</a>
150 <td style="text-align: right;">
151 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login', '');">ログアウト</button>
156 <div style="height: 5px;"> </div>
161 <table class="my_table" width="100%">
163 <th class="my_border">アカウント・新規作成</th>
167 <div style="height: 1px;"> </div><hr>
174 <td style="padding: 8px;">
175 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.regist();">登録</button>
177 <td style="width: 80px;"> </td>
179 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.gotoNext('Account', 'remember');">戻る</button>
187 <div style="height: 1px;"> </div><hr>
189 <div style="height: 8px;"> </div>
191 <table class="my_table">
193 <td colspan="2"><div id="errmsg" class="my_red"></div></td>
196 <td colspan="2"> </td>
199 <th class="my_border" style="width: 100px; text-align: right;">
202 <td class="my_border">
203 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_name">
207 <th class="my_border" style="width: 100px; text-align: right;">
210 <td class="my_border">
211 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_login_id">
215 <th class="my_border" style="width: 100px; text-align: right;">
218 <td class="my_border">
219 <input style="width: 400px; text-align: left;" maxlength="80" type="password" id="v_passwd0">
221 <input style="width: 400px; text-align: left;" maxlength="80" type="password" id="v_passwd1">
225 <th class="my_border" style="width: 100px; text-align: right;">
228 <td class="my_border">
231 foreach (ROLE as $r) {
232 echo '<option value="' . $r . '">' . $r . '</option>' . "\n";
239 <th class="my_border" style="width: 100px; text-align: right;">
242 <td class="my_border">
243 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_email">
247 <th class="my_border" style="width: 100px; text-align: right;">
250 <td class="my_border">
251 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_tel">