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 $rlist = $ctrl->round;
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 $round = $view->str($dat['round']);
19 $calendar = $view->str($dat['calendar']);
21 <script type="text/javascript">
38 gotoNext: function(func, act) {
52 'func': 'UserBasicInfo',
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(),
58 'round': this.v_round.val(),
59 'calendar': this.v_calendar.val(),
64 eval("this.ans = " + data);
67 this.ans = {"sts": "NG", "err": "ajax error"};
77 if (!confirm("登録しますか?")) {
81 if (this.check() == 'NG') {
83 for (var i in this.ans.err) {
84 msg += this.ans.err[i] + '<br>';
87 this.errmsg.html(msg);
96 'func': 'UserBasicInfo',
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 'round': this.v_round.val(),
104 'calendar': this.v_calendar.val(),
109 eval("this.ans = " + data);
112 this.ans = {"sts": "NG", "err": "ajax error"};
115 if (this.ans.sts == 'NG') {
116 this.errmsg.html(this.ans.err);
120 this.gotoNext('UserMenu', '');
126 this.errmsg = $('#errmsg');
127 this.next = $('#next');
128 this.func = $('#func');
129 this.act = $('#act');
130 this.v_disp_name = $('#v_disp_name');
131 this.v_term_year = $('#v_term_year');
132 this.v_term_begin = $('#v_term_begin');
133 this.v_term_end = $('#v_term_end');
134 this.v_round = $('#v_round');
135 this.v_calendar = $('#v_calendar');
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 ?>');
141 this.v_round.val('<?= $round ?>');
142 this.v_calendar.val('<?= $calendar ?>');
152 <form method="post" name="next" id="next" action="<?= $base ?>">
153 <input type="hidden" name="func" id="func">
154 <input type="hidden" name="act" id="act">
155 <input type="hidden" name="bid" id="bid" value="<?= $bid ?>">
158 <table id="my_header" width="100%">
161 <a onclick="return my.gotoNext('UserMenu', '');">メニュー</a>
164 <td style="text-align: right;">
165 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login', '');">ログアウト</button>
170 <div style="height: 5px;"> </div>
175 <table class="my_table" width="100%">
177 <th class="my_border">基本情報</th>
181 <div style="height: 1px;"> </div><hr>
188 <td style="padding: 8px;">
189 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.regist();">登録</button>
191 <td style="width: 80px;"> </td>
193 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.gotoNext('UserMenu', '');">戻る</button>
201 <div style="height: 1px;"> </div><hr>
203 <div style="height: 8px;"> </div>
205 <table class="my_table">
207 <td colspan="2"><div id="errmsg" class="my_red"></div></td>
210 <td colspan="2"> </td>
213 <th class="my_border" style="width: 100px; text-align: right;">
214 <div class="my_required">名称</div>
216 <td class="my_border">
221 <th class="my_border" style="width: 100px; text-align: right;">
222 <div class="my_required">表示名称</div>
224 <td class="my_border">
225 <input style="width: 400px; text-align: left;" maxlength="80" type="text" id="v_disp_name" value="<?= $disp_name ?>">
229 <th class="my_border" style="text-align: right;">
230 <div class="my_required">年度</div>
232 <td class="my_border">
233 <input style="width: 50px; text-align: right;" maxlength="4" type="text" id="v_term_year" value="<?= $term_year ?>">
237 <th class="my_border" style="text-align: right;">
238 <div class="my_required">期首</div>
240 <td class="my_border">
241 <input type="text" id="v_term_begin">
245 <th class="my_border" style="text-align: right;">
246 <div class="my_required">期末</div>
248 <td class="my_border">
249 <input type="text" id="v_term_end">
253 <th class="my_border" style="text-align: right;">
254 <div class="my_required">まるめ</div>
256 <td class="my_border">
257 <select id="v_round">
259 foreach ($rlist as $d) {
260 echo '<option value="' . $view->str($d['c0']) . '">' . $view->str($d['name']) . '</option>';
267 <th class="my_border" style="text-align: right;">
268 <div class="my_required">歴</div>
270 <td class="my_border">
271 <select id="v_calendar"><?php echo $view->calendarOption(); ?></select>