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 $c_c0 = $ctrl->const['c_c0'];
13 $c_deb_cre = $ctrl->const['c_deb_cre'];
14 $c_item_class = $ctrl->const['c_item_class'];
15 $c34 = $ctrl->const['c34'];
17 <script type="text/javascript">
33 gotoNext: function(func, act) {
50 'ccd': this.v_ccd.val(),
51 'item': this.v_item.val(),
52 'item_ccd': this.v_item_ccd.val(),
53 'division': this.v_division.val(),
54 'kana': this.v_kana.val(),
55 'name': this.v_name.val(),
60 eval("this.ans = " + data);
63 this.ans = {"sts": "NG", "err": "ajax error"};
73 if (!confirm("登録しますか?")) {
77 if (this.check() == 'NG') {
79 for (var i in this.ans.err) {
80 msg += this.ans.err[i] + '<br>';
83 this.errmsg.html(msg);
96 'ccd': this.v_ccd.val(),
97 'item': this.v_item.val(),
98 'item_ccd': this.v_item_ccd.val(),
99 'division': this.v_division.val(),
100 'kana': this.v_kana.val(),
101 'name': this.v_name.val(),
106 eval("this.ans = " + data);
109 this.ans = {"sts": "NG", "err": "ajax error"};
112 if (this.ans.sts == 'NG') {
113 this.errmsg.html(this.ans.err);
117 this.gotoNext('UserAcitm', 'remember');
123 this.errmsg = $('#errmsg');
124 this.next = $('#next');
125 this.func = $('#func');
126 this.act = $('#act');
127 this.v_ccd = $('#v_ccd');
128 this.v_item = $('#v_item');
129 this.v_item_ccd = $('#v_item_ccd');
130 this.v_division = $('#v_division');
131 this.v_kana = $('#v_kana');
132 this.v_name = $('#v_name');
142 <form method="post" name="next" id="next" action="<?= $base ?>">
143 <input type="hidden" name="func" id="func">
144 <input type="hidden" name="act" id="act">
147 <table id="my_header" width="100%">
150 <a onclick="return my.gotoNext('UserMenu', '');">メニュー</a>
151 > <a onclick="return my.gotoNext('UserAcitm', 'remember');">勘定コード</a>
154 <td style="text-align: right;">
155 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login', '');">ログアウト</button>
159 <td colspan="2" style="text-align: center;">
160 <?= $view->strBasic($basic) ?>
165 <div style="height: 5px;"> </div>
170 <table class="my_table" width="100%">
172 <th class="my_border">勘定コード・新規作成</th>
176 <div style="height: 1px;"> </div><hr>
183 <td style="padding: 8px;">
184 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.regist();">登録</button>
186 <td style="width: 80px;"> </td>
188 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.gotoNext('UserAcitm', 'remember');">戻る</button>
196 <div style="height: 1px;"> </div><hr>
198 <div style="height: 8px;"> </div>
200 <table class="my_table">
202 <td colspan="2"><div id="errmsg" class="my_red"></div></td>
205 <td colspan="2"> </td>
208 <th class="my_border" style="width: 100px; text-align: right;">
211 <td class="my_border">
214 foreach ($c34 as $k => $d) {
215 $aname = $view->str($d['name']);
217 <option value="<?= $k ?>"><?= $k ?> : <?= $c_c0[$d['div']] ?> : <?= $aname ?></option>
225 <th class="my_border" style="width: 100px; text-align: right;">
228 <td class="my_border">
229 <select id="v_item_ccd">
231 foreach ($c_item_class as $k => $d) {
232 $aname = $view->str($d);
234 <option value="<?= $k ?>"><?= $aname ?></option>
242 <th class="my_border" style="width: 100px; text-align: right;">
245 <td class="my_border">
246 <select id="v_division">
248 foreach ($c_deb_cre as $k => $d) {
249 $aname = $view->str($d['name']);
251 <option value="<?= $k ?>"><?= $aname ?></option>
259 <th class="my_border" style="width: 100px; text-align: right;">
262 <td class="my_border">
266 $fmt = '<option value="%s"%s>%s</option>';
267 for ($i = 11; $i < 100; $i++) {
268 $s = ($i == $itm) ? ' selected' : '';
269 echo sprintf($fmt, $i, $s, $i);
276 <th class="my_border" style="width: 100px; text-align: right;">
279 <td class="my_border">
280 <input style="width: 300px; text-align: left;" maxlength="80" type="text" id="v_kana" value="">
284 <th class="my_border" style="width: 100px; text-align: right;">
287 <td class="my_border">
288 <input style="width: 300px; text-align: left;" maxlength="80" type="text" id="v_name" value="">