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 $basic = $ctrl->basic;
12 $ymd = $view->strDate(date('Y/m/d'));
14 <script type="text/javascript">
27 gotoNext: function(func, act) {
44 'ymd': this.v_ymd.val(),
45 'era': this.v_era.val(),
46 'abr': this.v_abr.val(),
51 eval("this.ans = " + data);
54 this.ans = {"sts": "NG", "err": "ajax error"};
64 if (!confirm("登録しますか?")) {
68 if (this.check() == 'NG') {
70 for (var i in this.ans.err) {
71 msg += this.ans.err[i] + '<br>';
74 this.errmsg.html(msg);
87 'ymd': this.v_ymd.val(),
88 'era': this.v_era.val(),
89 'abr': this.v_abr.val(),
94 eval("this.ans = " + data);
97 this.ans = {"sts": "NG", "err": "ajax error"};
100 if (this.ans.sts == 'NG') {
101 this.errmsg.html(this.ans.err);
105 this.gotoNext('UserEra');
111 this.errmsg = $('#errmsg');
112 this.next = $('#next');
113 this.func = $('#func');
114 this.act = $('#act');
115 this.v_ymd = $('#v_ymd');
116 this.v_era = $('#v_era');
117 this.v_abr = $('#v_abr');
119 this.v_ymd.datepicker();
120 this.v_ymd.val('<?= $ymd ?>');
130 <form method="post" name="next" id="next" action="<?= $base ?>">
131 <input type="hidden" name="func" id="func">
132 <input type="hidden" name="act" id="act">
135 <table id="my_header" width="100%">
138 <a onclick="return my.gotoNext('UserMenu', '');">メニュー</a>
139 > <a onclick="return my.gotoNext('UserEra');">年号</a>
142 <td style="text-align: right;">
143 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login', '');">ログアウト</button>
147 <td colspan="2" style="text-align: center;">
148 <?= $view->strBasic($basic) ?>
153 <div style="height: 5px;"> </div>
158 <table class="my_table" width="100%">
160 <th class="my_border">年号・新規作成</th>
164 <div style="height: 1px;"> </div><hr>
171 <td style="padding: 8px;">
172 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.regist();">登録</button>
174 <td style="width: 80px;"> </td>
176 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.gotoNext('UserEra');">戻る</button>
184 <div style="height: 1px;"> </div><hr>
186 <div style="height: 8px;"> </div>
188 <table class="my_table">
190 <td colspan="2"><div id="errmsg" class="my_red"></div></td>
193 <td colspan="2"> </td>
196 <th class="my_border" style="width: 100px; text-align: right;">
199 <td class="my_border">
200 <input type="text" id="v_ymd">
204 <th class="my_border" style="width: 100px; text-align: right;">
207 <td class="my_border">
208 <input style="width: 100px; text-align: left;" maxlength="8" type="text" id="v_era">
212 <th class="my_border" style="width: 100px; text-align: right;">
215 <td class="my_border">
216 <input style="width: 100px; text-align: left;" maxlength="4" type="text" id="v_abr">