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 $basic = $ctrl->basic;
12 <script type="text/javascript">
24 gotoNext: function(func, act) {
38 'func': 'UserSection',
41 'kana': this.v_kana.val(),
42 'name': this.v_name.val(),
47 eval("this.ans = " + data);
50 this.ans = {"sts": "NG", "err": "ajax error"};
60 if (!confirm("登録しますか?")) {
64 if (this.check() == 'NG') {
66 for (var i in this.ans.err) {
67 msg += this.ans.err[i] + '<br>';
70 this.errmsg.html(msg);
79 'func': 'UserSection',
83 'kana': this.v_kana.val(),
84 'name': this.v_name.val(),
89 eval("this.ans = " + data);
92 this.ans = {"sts": "NG", "err": "ajax error"};
95 if (this.ans.sts == 'NG') {
96 this.errmsg.html(this.ans.err);
100 this.gotoNext('UserSection', 'remember');
106 this.errmsg = $('#errmsg');
107 this.next = $('#next');
108 this.func = $('#func');
109 this.act = $('#act');
110 this.v_kana = $('#v_kana');
111 this.v_name = $('#v_name');
121 <form method="post" name="next" id="next" action="<?= $base ?>">
122 <input type="hidden" name="func" id="func">
123 <input type="hidden" name="act" id="act">
126 <table id="my_header" width="100%">
129 <a onclick="return my.gotoNext('UserMenu', '');">メニュー</a>
130 > <a onclick="return my.gotoNext('UserSection', 'remember');">部門情報</a>
133 <td style="text-align: right;">
134 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login', '');">ログアウト</button>
138 <td colspan="2" style="text-align: center;">
139 <?= $view->strBasic($basic) ?>
144 <div style="height: 5px;"> </div>
149 <table class="my_table" width="100%">
151 <th class="my_border">部門情報・新規作成</th>
155 <div style="height: 1px;"> </div><hr>
162 <td style="padding: 8px;">
163 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.regist();">登録</button>
165 <td style="width: 80px;"> </td>
167 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.gotoNext('UserSection', 'remember');">戻る</button>
175 <div style="height: 1px;"> </div><hr>
177 <div style="height: 8px;"> </div>
179 <table class="my_table">
181 <td colspan="2"><div id="errmsg" class="my_red"></div></td>
184 <td colspan="2"> </td>
187 <th class="my_border" style="width: 100px; text-align: right;">
190 <td class="my_border">
191 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_kana">
195 <th class="my_border" style="width: 100px; text-align: right;">
198 <td class="my_border">
199 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_name">