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;
11 $vopt = $view->validSelect(true);
13 <script type="text/javascript">
26 gotoNext: function(func, act) {
43 'name': this.v_name.val(),
44 'rate': this.v_rate.val(),
45 'valid_flg': this.v_valid_flg.val(),
50 eval("this.ans = " + data);
53 this.ans = {"sts": "NG", "err": "ajax error"};
63 if (!confirm("登録しますか?")) {
67 if (this.check() == 'NG') {
69 for (var i in this.ans.err) {
70 msg += this.ans.err[i] + '<br>';
73 this.errmsg.html(msg);
86 'name': this.v_name.val(),
87 'rate': this.v_rate.val(),
88 'valid_flg': this.v_valid_flg.val(),
93 eval("this.ans = " + data);
96 this.ans = {"sts": "NG", "err": "ajax error"};
99 if (this.ans.sts == 'NG') {
100 this.errmsg.html(this.ans.err);
104 this.gotoNext('UserTax');
110 this.errmsg = $('#errmsg');
111 this.next = $('#next');
112 this.func = $('#func');
113 this.act = $('#act');
114 this.v_name = $('#v_name');
115 this.v_rate = $('#v_rate');
116 this.v_valid_flg = $('#v_valid_flg');
126 <form method="post" name="next" id="next" action="<?= $base ?>">
127 <input type="hidden" name="func" id="func">
128 <input type="hidden" name="act" id="act">
131 <table id="my_header" width="100%">
134 <a onclick="return my.gotoNext('UserMenu', '');">メニュー</a>
135 > <a onclick="return my.gotoNext('UserTax');">消費税</a>
138 <td style="text-align: right;">
139 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login', '');">ログアウト</button>
143 <td colspan="2" style="text-align: center;">
144 <?= $view->strBasic($basic) ?>
149 <div style="height: 5px;"> </div>
154 <table class="my_table" width="100%">
156 <th class="my_border">消費税・新規作成</th>
160 <div style="height: 1px;"> </div><hr>
167 <td style="padding: 8px;">
168 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.regist();">登録</button>
170 <td style="width: 80px;"> </td>
172 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.gotoNext('UserTax');">戻る</button>
180 <div style="height: 1px;"> </div><hr>
182 <div style="height: 8px;"> </div>
184 <table class="my_table">
186 <td colspan="2"><div id="errmsg" class="my_red"></div></td>
189 <td colspan="2"> </td>
192 <th class="my_border" style="width: 100px; text-align: right;">
195 <td class="my_border">
196 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_name">
200 <th class="my_border" style="width: 100px; text-align: right;">
203 <td class="my_border">
204 <input style="width: 100px; text-align: right;" maxlength="10" type="text" id="v_rate" value="0.0000">
208 <th class="my_border" style="text-align: right;">
209 <div class="my_required">有効フラグ</div>
211 <td class="my_border">
212 <select id="v_valid_flg"><?= $vopt ?></select>