| 1 |
<?php |
<?php |
| 2 |
require_once "../lib/common.inc.php"; |
require_once "../lib/common.inc.php"; |
| 3 |
require_once "../lib/lml.inc.php"; |
require_once "../lib/str_process.inc.php"; |
| 4 |
require_once "./session_init.inc.php"; |
require_once "./session_init.inc.php"; |
| 5 |
?> |
?> |
| 6 |
<html> |
<html> |
| 150 |
出生日期 |
出生日期 |
| 151 |
</td> |
</td> |
| 152 |
<td> |
<td> |
| 153 |
<span id="err_msg_birthday" name="err_msg" style="color: red;"></span><select id="year" name="year" size="1"> |
<span id="err_msg_birthday" name="err_msg" style="color: red;"></span> |
| 154 |
|
<select id="year" name="year" size="1"> |
| 155 |
<?php |
<?php |
| 156 |
$year_current = intval(date("Y", time())); |
$year_current = intval(date("Y", time())); |
| 157 |
$year_max = $year_current - 16; // Accept registrant of 16+ only |
$year_max = $year_current - 16; // Accept registrant of 16+ only |
| 159 |
$year_selected = $year_current - 25; |
$year_selected = $year_current - 25; |
| 160 |
for ($year = $year_min; $year <= $year_max; $year++) |
for ($year = $year_min; $year <= $year_max; $year++) |
| 161 |
{ |
{ |
| 162 |
?> |
$option_year_selected = ($year == $year_selected ? "selected" : ""); |
| 163 |
<option value="<?= $year; ?>" <?= ($year == $year_selected ? "selected" : ""); ?>><?= $year; ?></option> |
|
| 164 |
<?php |
echo <<<HTML |
| 165 |
|
<option value="{$year}" {$option_year_selected}>{$year}</option> |
| 166 |
|
HTML; |
| 167 |
} |
} |
| 168 |
?> |
?> |
| 169 |
|
|
| 173 |
$month_selected = 1; |
$month_selected = 1; |
| 174 |
for ($month = 1; $month <= 12; $month++) |
for ($month = 1; $month <= 12; $month++) |
| 175 |
{ |
{ |
| 176 |
?> |
$option_month_selected = ($month == $month_selected ? "selected" : ""); |
| 177 |
<option value="<?= $month; ?>" <?= ($month == $month_selected ? "selected" : ""); ?>><?= $month; ?></option> |
|
| 178 |
<?php |
echo <<<HTML |
| 179 |
|
<option value="{$month}" {$option_month_selected}>{$month}</option> |
| 180 |
|
HTML; |
| 181 |
} |
} |
| 182 |
?> |
?> |
| 183 |
</select>月 |
</select>月 |
| 186 |
$day_selected = 1; |
$day_selected = 1; |
| 187 |
for ($day = 1; $day <= 31; $day++) |
for ($day = 1; $day <= 31; $day++) |
| 188 |
{ |
{ |
| 189 |
?> |
$option_day_selected = ($day == $day_selected ? "selected" : ""); |
| 190 |
<option value="<?= $day; ?>" <?= ($day == $day_selected ? "selected" : ""); ?>><?= $day; ?></option> |
|
| 191 |
<?php |
echo <<<HTML |
| 192 |
|
<option value="{$day}" {$option_day_selected}>{$day}</option> |
| 193 |
|
HTML; |
| 194 |
} |
} |
| 195 |
?> |
?> |
| 196 |
</select>日 |
</select>日 |
| 207 |
</tr> |
</tr> |
| 208 |
<tr> |
<tr> |
| 209 |
<td colspan="2" align="center"> |
<td colspan="2" align="center"> |
| 210 |
<span id="err_msg_agreement" name="err_msg" style="color: red;"></span><textarea rows="15" cols="130"><?php |
<span id="err_msg_agreement" name="err_msg" style="color: red;"></span> |
| 211 |
|
<?php |
| 212 |
$buffer = file_get_contents("./doc/license/" . (new DateTime($BBS_license_dt))->format("Ymd") . ".txt"); |
$buffer = file_get_contents("./doc/license/" . (new DateTime($BBS_license_dt))->format("Ymd") . ".txt"); |
| 213 |
echo (LML(htmlspecialchars($buffer, ENT_HTML401, 'UTF-8'), false, false, 1024)); |
$license_f = (split_line(htmlspecialchars($buffer, ENT_HTML401, 'UTF-8'), "", 1024)); |
| 214 |
?></textarea> |
|
| 215 |
|
echo <<<HTML |
| 216 |
|
<textarea rows="15" cols="130">{$license_f}</textarea> |
| 217 |
|
HTML; |
| 218 |
|
?> |
| 219 |
<p> |
<p> |
| 220 |
<input type="checkbox" id="agreement" name="agreement" value="1"> |
<input type="checkbox" id="agreement" name="agreement" value="1"> |
| 221 |
我已仔细阅读并完全同意以上《用户许可协议》 |
我已仔细阅读并完全同意以上《用户许可协议》 |