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
11 $basic = $ctrl->basic;
13 $id = $view->str($dat['id']);
14 $ymd = $view->strDate($dat['ymd']);
15 $era = $view->str($dat['era']);
16 $abr = $view->str($dat['abr']);
18 <script type="text/javascript">
31 gotoNext: function(func, act) {
48 'ymd': this.v_ymd.val(),
49 'era': this.v_era.val(),
50 'abr': this.v_abr.val(),
55 eval("this.ans = " + data);
58 this.ans = {"sts": "NG", "err": "ajax error"};
68 if (!confirm("登録しますか?")) {
72 if (this.check() == 'NG') {
74 for (var i in this.ans.err) {
75 msg += this.ans.err[i] + '<br>';
78 this.errmsg.html(msg);
92 'ymd': this.v_ymd.val(),
93 'era': this.v_era.val(),
94 'abr': this.v_abr.val(),
99 eval("this.ans = " + data);
102 this.ans = {"sts": "NG", "err": "ajax error"};
105 if (this.ans.sts == 'NG') {
106 this.errmsg.html(this.ans.err);
110 this.gotoNext('UserEra');
116 this.errmsg = $('#errmsg');
117 this.next = $('#next');
118 this.func = $('#func');
119 this.act = $('#act');
120 this.v_ymd = $('#v_ymd');
121 this.v_era = $('#v_era');
122 this.v_abr = $('#v_abr');
124 this.v_ymd.datepicker();
125 this.v_ymd.val('<?= $ymd ?>');
126 this.v_era.val('<?= $era ?>');
127 this.v_abr.val('<?= $abr ?>');
137 <form method="post" name="next" id="next" action="<?= $base ?>">
138 <input type="hidden" name="func" id="func">
139 <input type="hidden" name="act" id="act">
142 <table id="my_header" width="100%">
145 <a onclick="return my.gotoNext('UserMemu', '');">メニュー</a>
146 > <a onclick="return my.gotoNext('UserEra');">年号</a>
149 <td style="text-align: right;">
150 <button type="button" class="my_magenta" style="width: 120px;" onclick="return my.gotoNext('Login', '');">ログアウト</button>
154 <td colspan="2" style="text-align: center;">
155 <?= $view->strBasic($basic) ?>
160 <div style="height: 5px;"> </div>
165 <table class="my_table" width="100%">
167 <th class="my_border">年号・編集</th>
171 <div style="height: 1px;"> </div><hr>
178 <td style="padding: 8px;">
179 <button type="button" class="my_cyan" style="width: 100px;" onclick="return my.regist();">登録</button>
181 <td style="width: 80px;"> </td>
183 <button type="button" class="my_magenta" style="width: 100px;" onclick="return my.gotoNext('UserEra');">戻る</button>
191 <div style="height: 1px;"> </div><hr>
193 <div style="height: 8px;"> </div>
195 <table class="my_table">
197 <td colspan="2"><div id="errmsg" class="my_red"></div></td>
200 <td colspan="2"> </td>
203 <th class="my_border" style="width: 100px; text-align: right;">
206 <td class="my_border">
207 <input type="text" id="v_ymd">
211 <th class="my_border" style="width: 100px; text-align: right;">
214 <td class="my_border">
215 <input style="width: 100px; text-align: left;" maxlength="8" type="text" id="v_era">
219 <th class="my_border" style="width: 100px; text-align: right;">
222 <td class="my_border">
223 <input style="width: 100px; text-align: left;" maxlength="4" type="text" id="v_abr">