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
12 $bid = $view->str($dat['id']);
13 $name = $view->str($dat['name']);
14 $disp_name = $view->str($dat['disp_name']);
15 $term_year = $view->str($dat['term_year']);
16 $term_begin = $view->strDate($dat['term_begin']);
17 $term_end = $view->strDate($dat['term_end']);
18 $validOpt = $view->validSelect($dat['valid_flg']);
20 <script type="text/javascript">
37 gotoNext: function(func, act) {
53 'name': this.v_name.val(),
54 'disp_name': this.v_disp_name.val(),
55 'term_year': this.v_term_year.val(),
56 'term_begin': this.v_term_begin.val(),
57 'term_end': this.v_term_end.val(),
62 eval("this.ans = " + data);
65 this.ans = {"sts": "NG", "err": "ajax error"};
75 if (!confirm("登録しますか?")) {
79 if (this.check() == 'NG') {
81 for (var i in this.ans.err) {
82 msg += this.ans.err[i] + '<br>';
85 this.errmsg.html(msg);
97 'mid': this.v_mid.val(),
98 'name': this.v_name.val(),
99 'disp_name': this.v_disp_name.val(),
100 'term_year': this.v_term_year.val(),
101 'term_begin': this.v_term_begin.val(),
102 'term_end': this.v_term_end.val(),
103 'valid_flg': this.v_valid_flg.val(),
108 eval("this.ans = " + data);
111 this.ans = {"sts": "NG", "err": "ajax error"};
114 if (this.ans.sts == 'NG') {
115 this.errmsg.html(this.ans.err);
119 this.gotoNext('BasicInfo', 'remember');
125 this.errmsg = $('#errmsg');
126 this.next = $('#next');
127 this.func = $('#func');
128 this.act = $('#act');
129 this.v_mid = $('#v_mid');
130 this.v_name = $('#v_name');
131 this.v_disp_name = $('#v_disp_name');
132 this.v_term_year = $('#v_term_year');
133 this.v_term_begin = $('#v_term_begin');
134 this.v_term_end = $('#v_term_end');
135 this.v_valid_flg = $('#v_valid_flg');
137 this.v_term_begin.datepicker();
138 this.v_term_end.datepicker();
139 this.v_term_begin.val('<?= $term_begin ?>');
140 this.v_term_end.val('<?= $term_end ?>');
150 <form method="post" name="next" id="next" action="<?= $base ?>">
151 <input type="hidden" name="func" id="func">
152 <input type="hidden" name="act" id="act">
155 <table id="my_header" width="100%">
158 <a onclick="return my.gotoNext('RootMenu', '');">root用メニュー</a>
159 > <a onclick="return my.gotoNext('BasicInfo', 'remember');">基本情報</a>
162 <td style="text-align: right;">
163 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login', '');">ログアウト</button>
168 <div style="height: 5px;"> </div>
173 <table class="my_table" width="100%">
175 <th class="my_border">基本情報・修正</th>
179 <div style="height: 1px;"> </div><hr>
186 <td style="padding: 8px;">
187 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.regist();">登録</button>
189 <td style="width: 80px;"> </td>
191 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.gotoNext('BasicInfo', 'remember');">戻る</button>
199 <div style="height: 1px;"> </div><hr>
201 <div style="height: 8px;"> </div>
203 <table class="my_table">
205 <td colspan="2"><div id="errmsg" class="my_red"></div></td>
208 <td colspan="2"> </td>
211 <th class="my_border" style="width: 100px; text-align: right;">
212 <div class="my_required">名称</div>
214 <td class="my_border">
215 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_name" value="<?= $name ?>">
219 <th class="my_border" style="width: 100px; text-align: right;">
220 <div class="my_required">表示名称</div>
222 <td class="my_border">
223 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_disp_name" value="<?= $disp_name ?>">
227 <th class="my_border" style="text-align: right;">
228 <div class="my_required">年度</div>
230 <td class="my_border">
231 <input style="width: 50px; text-align: right;" maxlength="4" type="text" id="v_term_year" value="<?= $term_year ?>">
235 <th class="my_border" style="text-align: right;">
236 <div class="my_required">期首</div>
238 <td class="my_border">
239 <input type="text" id="v_term_begin">
243 <th class="my_border" style="text-align: right;">
244 <div class="my_required">期末</div>
246 <td class="my_border">
247 <input type="text" id="v_term_end">
251 <th class="my_border" style="text-align: right;">
252 <div class="my_not_required">担当</div>
254 <td class="my_border">
257 $mid = (empty($dat['mid'])) ? '' : $dat['mid'];
258 foreach ($mem as $m) {
259 $slct = ($mid == $m['mid']) ? ' selected' : '';
260 $opt = 'ロール: ' . $m['role'] . '、 アカウント: ' . $view->str($m['login_id']) . '、 名前: ' . $view->str($m['name']);
261 echo '<option value="' . $m['mid'] . '"' . $slct . '>' . $opt . '</option>' . "\n";
268 <th class="my_border" style="text-align: right;">
269 <div class="my_required">有効フラグ</div>
271 <td class="my_border">
272 <select id="v_valid_flg"><?= $validOpt ?></select>