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
9 $cnd = $ctrl->dat['cnd'];
10 $list = $ctrl->dat['list'];
11 $mem = $ctrl->dat['member'];
13 <script type="text/javascript">
29 gotoNext: function(func) {
37 this.func.val('UserMenu');
44 edit: function(bid, jcnt) {
47 alert("伝票が入力されています。\n編集する場合、伝票を全て削除してください。");
51 this.func.val('BasicInfo');
60 var curr = this.v_page_curr.val() * 1;
61 var last = this.v_page_last.val() * 1;
65 case -9: next = 1; break;
66 case 9: next = last; break;
67 default: next = curr + dlt; break;
78 this.v_page_curr.val(next);
86 if (this.v_page_curr.val() < 1) {
87 this.v_page_curr.val(1);
90 this.func.val('BasicInfo');
91 this.act.val('search');
92 this.cnd_name.val(this.v_cnd_name.val());
93 this.cnd_year.val(this.v_cnd_year.val());
94 this.page_curr.val(this.v_page_curr.val());
100 this.v_cnd_name.val('');
101 this.v_cnd_year.val('');
102 this.v_page_curr.val(1);
107 this.next = $('#next');
108 this.func = $('#func');
109 this.act = $('#act');
110 this.bid = $('#bid');
111 this.cnd_name = $('#cnd_name');
112 this.cnd_year = $('#cnd_year');
113 this.page_curr = $('#page_curr');
114 this.v_cnd_name = $('#v_cnd_name');
115 this.v_cnd_year = $('#v_cnd_year');
116 this.v_page_curr = $('#v_page_curr');
117 this.v_page_last = $('#v_page_last');
127 <form method="post" name="next" id="next" action="<?= $base ?>">
128 <input type="hidden" name="func" id="func">
129 <input type="hidden" name="act" id="act" >
130 <input type="hidden" name="cnd_name" id="cnd_name" >
131 <input type="hidden" name="cnd_year" id="cnd_year" >
132 <input type="hidden" name="page_curr" id="page_curr" >
133 <input type="hidden" name="bid" id="bid" >
136 <table id="my_header" width="100%">
139 <a onclick="return my.gotoNext('RootMenu');">root用メニュー</a>
142 <td style="text-align: right;">
143 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login');">ログアウト</button>
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 <th colspan="3" class="my_border">絞込み検索</th>
166 <td class="my_border" style="text-align: center; width: 110px;" rowspan="2">
167 <table class="my_table" cellpadding="0" cellspacing="2">
170 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.search();">検索</button>
175 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.reset();">検索リセット</button>
180 <th class="my_border" style="width: 100px;">名称</th>
181 <td class="my_border">
182 <input id="v_cnd_name" type="text" value="<?= $view->str($cnd['cnd_name']) ?>" size="20" style="text-align: left;">
186 <th class="my_border">年度</th>
187 <td class="my_border">
188 <input id="v_cnd_year" type="text" value="<?= $view->str($cnd['cnd_year']) ?>" size="20" style="text-align: left;">
193 <div style="height: 1px;"> </div><hr>
195 <div id="my_separate"> </div>
197 <div style="height: 2px;"> </div>
201 <td style="text-align: left; width: 20%;">全件数:<?= $list['cnt'] ?>[件]</td>
203 if ($list['cnt'] < 1) {
205 <td style="visibility: hidden;">
209 <td style="text-align: center;">
213 <button type="button" class="my_blue" style="width: 40px;" onclick="return my.move(-9);">|<</button>
214 <button type="button" class="my_blue" style="width: 40px;" onclick="return my.move(-1);"><</button>
215 <input id="v_page_last" type="hidden" value="<?= $list['last'] ?>">
216 <input id="v_page_curr" style="text-align: right;" type="text" size="4" value="<?= $list['page'] ?>">/<?= $list['last'] ?>[ページ]
217 <button type="button" class="my_blue" style="width: 40px;" onclick="return my.move(1);">></button>
218 <button type="button" class="my_blue" style="width: 40px;" onclick="return my.move(9);">>|</button>
220 <td style="text-align: right; left; width: 20%;">
221 表示数:<?= $list['rpp'] ?>[件/ページ]
226 <div style="height: 2px;"> </div>
228 <table class="my_list">
245 if ($list['cnt'] < 1) {
248 <td colspan="10">データなし</td>
252 $i = ($list['page'] - 1) * $list['rpp'];
253 foreach ($list['rec'] as $rec) {
258 $valid_flg = $view->valid($rec['valid_flg']);
259 $name = $view->str($rec['name']);
260 $disp_name = $view->str($rec['disp_name']);
261 $term_year = $view->str($rec['term_year']) . "(" . $view->str($rec['era']['abbr']) . ")";
262 $term_begin = $view->strDate($rec['term_begin']);
263 $term_end = $view->strDate($rec['term_end']);
264 $member = '';(empty($mem[$rec['mid']])) ? '' : $view->str($mem[$rec['mid']]);
266 $jcnt = $rec['jcnt'];
267 if (empty($rec['mid'])) {
270 if (empty($mem[$rec['mid']])) {
271 $member = '--- removed ---';
273 $member = $view->str($mem[$rec['mid']]);
274 if ($rec['valid_flg']) {
281 <td style="text-align: center;">
282 <button type="button" class="my_green" onclick="return my.edit('<?= $id ?>', <?= $jcnt ?>);">編集</button>
284 <td style="text-align: right;"><?= $i ?></td>
285 <td style="text-align: center;"><?= $valid_flg ?></td>
289 <td style="text-align: center;">
290 <button type="button" class="my_yellow" onclick="return my.use('<?= $id ?>');">使用</button>
299 <td><?= $name ?></td>
300 <td><?= $disp_name ?></td>
301 <td><?= $term_year ?></td>
302 <td><?= $term_begin ?></td>
303 <td><?= $term_end ?></td>
304 <td><?= $member ?></td>