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'];
12 <script type="text/javascript">
28 gotoNext: function(func) {
36 this.func.val('Account');
37 this.act.val('create');
42 drop: function(login_id, aid, mid) {
46 if (!confirm("アカウント " + login_id + " を削除しますか?")) {
63 eval("this.ans = " + data);
66 this.ans = {"sts": "NG", "err": "ajax error"};
69 if (this.ans.sts == 'NG') {
74 this.gotoNext('Account', 'remember');
80 this.func.val('Account');
89 var curr = this.v_page_curr.val() * 1;
90 var last = this.v_page_last.val() * 1;
94 case -9: next = 1; break;
95 case 9: next = last; break;
96 default: next = curr + dlt; break;
107 this.v_page_curr.val(next);
115 if (this.v_page_curr.val() < 1) {
116 this.v_page_curr.val(1);
119 this.func.val('Account');
120 this.act.val('search');
121 this.cnd_name.val(this.v_cnd_name.val());
122 this.cnd_login_id.val(this.v_cnd_login_id.val());
123 this.page_curr.val(this.v_page_curr.val());
129 this.v_cnd_name.val('');
130 this.v_cnd_login_id.val('');
131 this.v_page_curr.val(1);
136 this.next = $('#next');
137 this.func = $('#func');
138 this.act = $('#act');
139 this.mid = $('#mid');
140 this.cnd_name = $('#cnd_name');
141 this.cnd_login_id = $('#cnd_login_id');
142 this.page_curr = $('#page_curr');
143 this.v_cnd_name = $('#v_cnd_name');
144 this.v_cnd_login_id = $('#v_cnd_login_id');
145 this.v_page_curr = $('#v_page_curr');
146 this.v_page_last = $('#v_page_last');
156 <form method="post" name="next" id="next" action="<?= $base ?>">
157 <input type="hidden" name="func" id="func">
158 <input type="hidden" name="act" id="act" >
159 <input type="hidden" name="cnd_name" id="cnd_name" >
160 <input type="hidden" name="cnd_login_id" id="cnd_login_id" >
161 <input type="hidden" name="page_curr" id="page_curr" >
162 <input type="hidden" name="mid" id="mid" >
165 <table id="my_header" width="100%">
168 <a onclick="return my.gotoNext('RootMenu');">root用メニュー</a>
169 > アカウント
171 <td style="text-align: right;">
172 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login');">ログアウト</button>
177 <div style="height: 5px;"> </div>
182 <table class="my_table" width="100%">
184 <th class="my_border">アカウント</th>
188 <div style="height: 1px;"> </div><hr>
190 <table class="my_table" width="100%">
192 <th colspan="3" class="my_border">絞込み検索</th>
195 <td class="my_border" style="text-align: center; width: 110px;" rowspan="2">
196 <table class="my_table" cellpadding="0" cellspacing="2">
199 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.search();">検索</button>
204 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.reset();">検索リセット</button>
209 <th class="my_border" style="width: 100px;">名称</th>
210 <td class="my_border">
211 <input id="v_cnd_name" type="text" value="<?= $view->str($cnd['cnd_name']) ?>" size="20" style="text-align: left;">
215 <th class="my_border">アカウント</th>
216 <td class="my_border">
217 <input id="v_cnd_login_id" type="text" value="<?= $view->str($cnd['cnd_login_id']) ?>" size="20" style="text-align: left;">
222 <div style="height: 1px;"> </div><hr>
224 <table class="my_table" width="100%">
226 <td class="my_border" id="my_create">
227 <button type="button" class="my_cyan" style="width: 150px;" onclick="return my.create();">新アカウント作成</button>
232 <div style="height: 2px;"> </div>
236 <td style="text-align: left; width: 20%;">全件数:<?= $list['cnt'] ?>[件]</td>
238 if ($list['cnt'] < 1) {
240 <td style="visibility: hidden;">
244 <td style="text-align: center;">
248 <button type="button" class="my_blue" style="width: 40px;" onclick="return my.move(-9);">|<</button>
249 <button type="button" class="my_blue" style="width: 40px;" onclick="return my.move(-1);"><</button>
250 <input id="v_page_last" type="hidden" value="<?= $list['last'] ?>">
251 <input id="v_page_curr" style="text-align: right;" type="text" size="4" value="<?= $list['page'] ?>">/<?= $list['last'] ?>[ページ]
252 <button type="button" class="my_blue" style="width: 40px;" onclick="return my.move(1);">></button>
253 <button type="button" class="my_blue" style="width: 40px;" onclick="return my.move(9);">>|</button>
255 <td style="text-align: right; left; width: 20%;">
256 表示数:<?= $list['rpp'] ?>[件/ページ]
261 <div style="height: 2px;"> </div>
263 <table class="my_list">
278 if ($list['cnt'] < 1) {
281 <td colspan="8">データなし</td>
285 $i = ($list['page'] - 1) * $list['rpp'];
286 foreach ($list['rec'] as $rec) {
292 $name = $view->str($rec['name']);
293 $login_id = $view->str($rec['login_id']);
294 $role = $view->str($rec['role']);
295 $email = $view->str($rec['email']);
296 $tel = $view->str($rec['tel']);
299 <td style="text-align: center;">
300 <button type="button" class="my_green" onclick="return my.edit('<?= $mid ?>');">編集</button>
302 <td style="text-align: right;"><?= $i ?></td>
303 <td><?= $name ?></td>
304 <td><?= $login_id ?></td>
305 <td><?= $role ?></td>
306 <td><?= $email ?></td>
309 if ($rec['login_id'] == 'root') {
316 <button type="button" class="my_magenta" onclick="return my.drop('<?= $login_id ?>', '<?= $aid ?>', '<?= $mid ?>');">削除</button>