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
11 $aid = $view->str($dat['aid']);
12 $mid = $view->str($dat['mid']);
13 $name = $view->str($dat['name']);
14 $login_id = $view->str($dat['login_id']);
15 $role = $view->str($dat['role']);
16 $email = $view->str($dat['email']);
17 $tel = $view->str($dat['tel']);
19 <script type="text/javascript">
36 gotoNext: function(func, act) {
53 'name': this.v_name.val(),
54 'role': this.v_role.val(),
55 'email': this.v_email.val(),
56 'tel': this.v_tel.val(),
57 'login_id': this.v_login_id.val(),
58 'passwd0': this.v_passwd0.val(),
59 'passwd1': this.v_passwd1.val(),
64 eval("this.ans = " + data);
67 this.ans = {"sts": "NG", "err": "ajax error"};
77 if (!confirm("登録しますか?")) {
81 if (this.check() == 'NG') {
83 for (var i in this.ans.err) {
84 msg += this.ans.err[i] + '<br>';
87 this.errmsg.html(msg);
101 'name': this.v_name.val(),
102 'role': this.v_role.val(),
103 'email': this.v_email.val(),
104 'tel': this.v_tel.val(),
105 'login_id': this.v_login_id.val(),
106 'passwd0': this.v_passwd0.val(),
107 'passwd1': this.v_passwd1.val(),
112 eval("this.ans = " + data);
115 this.ans = {"sts": "NG", "err": "ajax error"};
118 if (this.ans.sts == 'NG') {
119 this.errmsg.html(this.ans.err);
123 this.gotoNext('Account', 'remember');
129 this.errmsg = $('#errmsg');
130 this.next = $('#next');
131 this.func = $('#func');
132 this.act = $('#act');
133 this.v_name = $('#v_name');
134 this.v_login_id = $('#v_login_id');
135 this.v_passwd0 = $('#v_passwd0');
136 this.v_passwd1 = $('#v_passwd1');
137 this.v_role = $('#v_role');
138 this.v_email = $('#v_email');
139 this.v_tel = $('#v_tel');
149 <form method="post" name="next" id="next" action="<?= $base ?>">
150 <input type="hidden" name="func" id="func">
151 <input type="hidden" name="act" id="act">
154 <table id="my_header" width="100%">
157 <a onclick="return my.gotoNext('RootMenu', '');">root用メニュー</a>
158 > <a onclick="return my.gotoNext('Account', 'remember');">アカウント</a>
161 <td style="text-align: right;">
162 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login', '');">ログアウト</button>
167 <div style="height: 5px;"> </div>
172 <table class="my_table" width="100%">
174 <th class="my_border">アカウント・編集</th>
178 <div style="height: 1px;"> </div><hr>
185 <td style="padding: 8px;">
186 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.regist();">登録</button>
188 <td style="width: 80px;"> </td>
190 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.gotoNext('Account', 'remember');">戻る</button>
198 <div style="height: 1px;"> </div><hr>
200 <div style="height: 8px;"> </div>
202 <table class="my_table">
204 <td colspan="2"><div id="errmsg" class="my_red"></div></td>
207 <td colspan="2">・パスワード確認が空白ですとパスワードは更新されません。</td>
210 <th class="my_border" style="width: 100px; text-align: right;">
213 <td class="my_border">
214 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_name" value="<?= $name ?>">
218 <th class="my_border" style="width: 100px; text-align: right;">
221 <td class="my_border">
222 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_login_id" value="<?= $login_id ?>">
226 <th class="my_border" style="width: 100px; text-align: right;">
229 <td class="my_border">
230 <input style="width: 400px; text-align: left;" maxlength="80" type="password" id="v_passwd0" value="">
232 <input style="width: 400px; text-align: left;" maxlength="80" type="password" id="v_passwd1" value="">
236 <th class="my_border" style="width: 100px; text-align: right;">
239 <td class="my_border">
242 foreach (ROLE as $r) {
243 $slct = ($r == $role) ? ' selected' : '';
244 echo '<option value="' . $r . '"' . $slct . '>' . $r . '</option>' . "\n";
251 <th class="my_border" style="width: 100px; text-align: right;">
254 <td class="my_border">
255 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_email" value="<?= $email ?>">
259 <th class="my_border" style="width: 100px; text-align: right;">
262 <td class="my_border">
263 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_tel" value="<?= $tel ?>">