| 14 |
<script src="../js/polyfill.min.js"></script> |
<script src="../js/polyfill.min.js"></script> |
| 15 |
<script src="../js/axios.min.js"></script> |
<script src="../js/axios.min.js"></script> |
| 16 |
<script type="text/javascript"> |
<script type="text/javascript"> |
| 17 |
|
function tz_select(s, value) |
| 18 |
|
{ |
| 19 |
|
for (i = 0; i < s.options.length; i++) |
| 20 |
|
{ |
| 21 |
|
if (s.options[i].value == value) |
| 22 |
|
{ |
| 23 |
|
s.options.selectedIndex = i; |
| 24 |
|
break; |
| 25 |
|
} |
| 26 |
|
} |
| 27 |
|
|
| 28 |
|
return false; |
| 29 |
|
} |
| 30 |
|
|
| 31 |
function refresh_err_msg(errorFieldMap) |
function refresh_err_msg(errorFieldMap) |
| 32 |
{ |
{ |
| 33 |
document.getElementsByName("err_msg").forEach(element => { |
document.getElementsByName("err_msg").forEach(element => { |
| 48 |
function update_preference(f) |
function update_preference(f) |
| 49 |
{ |
{ |
| 50 |
instance.post('preference_service.php', { |
instance.post('preference_service.php', { |
| 51 |
|
user_tz: f.user_tz.value, |
| 52 |
photo: f.photo.value, |
photo: f.photo.value, |
| 53 |
introduction: f.textarea_introduction.value, |
introduction: f.textarea_introduction.value, |
| 54 |
sign_1: f.textarea_sign_1.value, |
sign_1: f.textarea_sign_1.value, |
| 116 |
<form method="post" action="preference_sub.php" id="preference_form" name="preference_form"> |
<form method="post" action="preference_sub.php" id="preference_form" name="preference_form"> |
| 117 |
<table border="1" cellpadding="10" cellspacing="0" width="90%" bgcolor="#ffdead" id="TABLE1"> |
<table border="1" cellpadding="10" cellspacing="0" width="90%" bgcolor="#ffdead" id="TABLE1"> |
| 118 |
<tr> |
<tr> |
| 119 |
|
<td align="right">时区设置</td> |
| 120 |
|
<td> |
| 121 |
|
<span id="err_msg_user_tz" name="err_msg" style="color: red;"></span> |
| 122 |
|
<select id="user_tz" name="user_tz" size="1"> |
| 123 |
|
<? |
| 124 |
|
$timezone_identifiers = DateTimeZone::listIdentifiers(); |
| 125 |
|
foreach ($timezone_identifiers as $tz) |
| 126 |
|
{ |
| 127 |
|
?> |
| 128 |
|
<option value="<? echo $tz; ?>" <? echo ($tz == $result_set["data"]["user_tz"] ? "selected" : ""); ?>><? echo $tz; ?></option> |
| 129 |
|
<? |
| 130 |
|
} |
| 131 |
|
?> |
| 132 |
|
</select> |
| 133 |
|
<a class="s2" href="#" onclick="return tz_select(user_tz, '<? echo $BBS_timezone; ?>');">恢复默认</a> |
| 134 |
|
</td> |
| 135 |
|
</tr> |
| 136 |
|
<tr> |
| 137 |
<td width="30%" align="right">个人头像</td> |
<td width="30%" align="right">个人头像</td> |
| 138 |
<td width="70%"> |
<td width="70%"> |
| 139 |
<input type="text" maxlength="3" id="photo" name="photo" size="3" value="<? echo $result_set["data"]["photo"]; ?>"> |
<input type="text" maxlength="3" id="photo" name="photo" size="3" value="<? echo $result_set["data"]["photo"]; ?>"> |