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 $list = $ctrl->dat['list'];
14 <script type="text/javascript">
23 gotoNext: function(func) {
31 this.func.val('UserTax');
32 this.act.val('create');
37 drop: function(id, name) {
41 if (!confirm("'" + name + "' を削除しますか?")) {
57 eval("this.ans = " + data);
60 this.ans = {"sts": "NG", "err": "ajax error"};
63 if (this.ans.sts == 'NG') {
68 this.gotoNext('UserTax');
74 this.func.val('UserTax');
82 var vflg = $('#v_valid_flg_' + id).val();
97 eval("this.ans = " + data);
100 this.ans = {"sts": "NG", "err": "ajax error"};
103 if (this.ans.sts == 'NG') {
111 this.next = $('#next');
112 this.func = $('#func');
113 this.act = $('#act');
124 <form method="post" name="next" id="next" action="<?= $base ?>">
125 <input type="hidden" name="func" id="func">
126 <input type="hidden" name="act" id="act">
127 <input type="hidden" name="id" id="id">
128 <input type="hidden" name="bid" id="bid" value="<?= $bid ?>">
131 <table id="my_header" width="100%">
134 <a onclick="return my.gotoNext('UserMenu');">メニュー</a>
137 <td style="text-align: right;">
138 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login');">ログアウト</button>
142 <td colspan="2" style="text-align: center;">
143 <?= $view->strBasic($basic) ?>
148 <div style="height: 5px;"> </div>
153 <table class="my_table" width="100%">
155 <th class="my_border">消費税</th>
159 <div style="height: 1px;"> </div><hr>
161 <table class="my_table" width="100%">
163 <td class="my_border" id="my_create">
164 <button type="button" class="my_cyan" style="width: 150px;" onclick="return my.create();">新規作成</button>
169 <div style="height: 20px;"> </div>
171 <table class="my_list">
186 <td colspan="5">データなし</td>
190 foreach ($list as $rec) {
193 $name = $view->str($rec['name']);
194 $rate = $view->str($rec['rate']);
195 $vopt = $view->validSelect($rec['valid_flg']);
198 <td style="text-align: center;">
199 <button type="button" class="my_green" onclick="return my.edit('<?= $id ?>');">編集</button>
201 <td style="text-align: center;">
202 <select id="v_valid_flg_<?= $id ?>" onchange="return my.use('<?= $id ?>');">
206 <td><?= $name ?></td>
207 <td style="text-align: right;"><?= $rate ?></td>
209 <button type="button" class="my_magenta" onclick="return my.drop('<?= $id ?>', '<?= $name ?>');">削除</button>