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 $basic = $ctrl->dat['basic'];
10 $err = (empty($ctrl->dat['err'])) ? [] : $ctrl->dat['err'];
11 $bid = $_SESSION['minfo']['bid'];
13 <script type="text/javascript">
22 err: <?php echo json_encode($err) ?>,
24 gotoNext: function(func) {
26 this.bid.val(<?= $bid ?>);
28 this.next.attr('target', '_self');
34 this.func.val('UserMenu');
35 this.bid.val(this.v_bid.val());
36 this.act.val('setBid');
37 this.next.attr('target', '_self');
43 for (var i in this.err) {
44 alert("Error : " + i + " : " + this.err[i]);
49 this.next = $('#next');
50 this.func = $('#func');
53 this.v_bid = $('#v_bid');
64 <form method="post" name="next" id="next" action="<?= $base ?>">
65 <input type="hidden" name="func" id="func">
66 <input type="hidden" name="bid" id="bid">
67 <input type="hidden" name="act" id="act">
70 <table id="my_header" width="100%">
72 <td align="left"> メニュー</td>
74 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login'); ">ログアウト</button>
86 foreach ($basic as $b) {
87 $slct = ($bid == $d['id']) ? ' selected' : '';
88 $opt = $view->str($b['disp_name'])
89 . ' ' . $view->str($b['term_year']) . '年度'
90 . '(' . $view->strDate($b['term_begin'])
91 . '~' . $view->strDate($b['term_end']) . ')'
93 echo '<option value="' . $b['id'] . '"' . $slct . '>' . $opt . '</option>' . "\n";
106 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.setBid();">決定</button>