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 $name = $view->str($dat['name']);
15 $rate = $view->str($dat['rate']);
16 $vopt = $view->validSelect($dat['valid_flg']);
18 <script type="text/javascript">
31 gotoNext: function(func, act) {
48 'name': this.v_name.val(),
49 'rate': this.v_rate.val(),
50 'valid_flg': this.v_valid_flg.val(),
55 eval("this.ans = " + data);
58 this.ans = {"sts": "NG", "err": "ajax error"};
68 if (!confirm("登録しますか?")) {
72 if (this.check() == 'NG') {
74 for (var i in this.ans.err) {
75 msg += this.ans.err[i] + '<br>';
78 this.errmsg.html(msg);
92 'name': this.v_name.val(),
93 'rate': this.v_rate.val(),
94 'valid_flg': this.v_valid_flg.val(),
99 eval("this.ans = " + data);
102 this.ans = {"sts": "NG", "err": "ajax error"};
105 if (this.ans.sts == 'NG') {
106 this.errmsg.html(this.ans.err);
110 this.gotoNext('UserTax');
116 this.errmsg = $('#errmsg');
117 this.next = $('#next');
118 this.func = $('#func');
119 this.act = $('#act');
120 this.v_name = $('#v_name');
121 this.v_rate = $('#v_rate');
122 this.v_valid_flg = $('#v_valid_flg');
124 this.v_name.val('<?= $name ?>');
125 this.v_rate.val('<?= $rate ?>');
135 <form method="post" name="next" id="next" action="<?= $base ?>">
136 <input type="hidden" name="func" id="func">
137 <input type="hidden" name="act" id="act">
140 <table id="my_header" width="100%">
143 <a onclick="return my.gotoNext('UserMemu', '');">メニュー</a>
144 > <a onclick="return my.gotoNext('UserTax');">消費税</a>
147 <td style="text-align: right;">
148 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login', '');">ログアウト</button>
152 <td colspan="2" style="text-align: center;">
153 <?= $view->strBasic($basic) ?>
158 <div style="height: 5px;"> </div>
163 <table class="my_table" width="100%">
165 <th class="my_border">消費税・編集</th>
169 <div style="height: 1px;"> </div><hr>
176 <td style="padding: 8px;">
177 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.regist();">登録</button>
179 <td style="width: 80px;"> </td>
181 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.gotoNext('UserTax');">戻る</button>
189 <div style="height: 1px;"> </div><hr>
191 <div style="height: 8px;"> </div>
193 <table class="my_table">
195 <td colspan="2"><div id="errmsg" class="my_red"></div></td>
198 <td colspan="2"> </td>
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">
209 <th class="my_border" style="width: 100px; text-align: right;">
212 <td class="my_border">
213 <input style="width: 100px; text-align: right;" maxlength="10" type="text" id="v_rate">
217 <th class="my_border" style="text-align: right;">
218 <div class="my_required">有効フラグ</div>
220 <td class="my_border">
221 <select id="v_valid_flg"><?= $vopt ?></select>