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 $basic = $ctrl->basic;
13 $id = $view->str($dat['id']);
14 $kana = $view->str($dat['kana']);
15 $name = $view->str($dat['name']);
17 <script type="text/javascript">
29 gotoNext: function(func, act) {
43 'func': 'UserSection',
46 'kana': this.v_kana.val(),
47 'name': this.v_name.val(),
52 eval("this.ans = " + data);
55 this.ans = {"sts": "NG", "err": "ajax error"};
65 if (!confirm("登録しますか?")) {
69 if (this.check() == 'NG') {
71 for (var i in this.ans.err) {
72 msg += this.ans.err[i] + '<br>';
75 this.errmsg.html(msg);
84 'func': 'UserSection',
89 'kana': this.v_kana.val(),
90 'name': this.v_name.val(),
95 eval("this.ans = " + data);
98 this.ans = {"sts": "NG", "err": "ajax error"};
101 if (this.ans.sts == 'NG') {
102 this.errmsg.html(this.ans.err);
106 this.gotoNext('UserSection', 'remember');
112 this.errmsg = $('#errmsg');
113 this.next = $('#next');
114 this.func = $('#func');
115 this.act = $('#act');
116 this.v_kana = $('#v_kana');
117 this.v_name = $('#v_name');
127 <form method="post" name="next" id="next" action="<?= $base ?>">
128 <input type="hidden" name="func" id="func">
129 <input type="hidden" name="act" id="act">
132 <table id="my_header" width="100%">
135 <a onclick="return my.gotoNext('UserMenu', '');">メニュー</a>
136 > <a onclick="return my.gotoNext('UserSection', 'remember');">部門情報</a>
139 <td style="text-align: right;">
140 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login', '');">ログアウト</button>
144 <td colspan="2" style="text-align: center;">
145 <?= $view->strBasic($basic) ?>
150 <div style="height: 5px;"> </div>
155 <table class="my_table" width="100%">
157 <th class="my_border">部門情報・編集</th>
161 <div style="height: 1px;"> </div><hr>
168 <td style="padding: 8px;">
169 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.regist();">登録</button>
171 <td style="width: 80px;"> </td>
173 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.gotoNext('UserSection', 'remember');">戻る</button>
181 <div style="height: 1px;"> </div><hr>
183 <div style="height: 8px;"> </div>
185 <table class="my_table">
187 <td colspan="2"><div id="errmsg" class="my_red"></div></td>
190 <td colspan="2"> </td>
193 <th class="my_border" style="width: 100px; text-align: right;">
196 <td class="my_border">
197 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_kana" value="<?= $kana ?>">
201 <th class="my_border" style="width: 100px; text-align: right;">
204 <td class="my_border">
205 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_name" value="<?= $name ?>">