| 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.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, |
| 113 |
<center> |
<center> |
| 114 |
<p style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: red; FONT-FAMILY: 楷体">更改个人设定</p> |
<p style="FONT-WEIGHT: bold; FONT-SIZE: 16px; COLOR: red; FONT-FAMILY: 楷体">更改个人设定</p> |
| 115 |
<p><span id="err_msg_prompt" name="err_msg" style="color: red"></span></p> |
<p><span id="err_msg_prompt" name="err_msg" style="color: red"></span></p> |
| 116 |
<form method="post" action="preference_sub.php" id="preference_form" name="preference_form"> |
<form method="post" action="#" 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"]; ?>"> |
| 146 |
<td> |
<td> |
| 147 |
<span id="err_msg_introduction" name="err_msg" style="color: red;"></span> |
<span id="err_msg_introduction" name="err_msg" style="color: red;"></span> |
| 148 |
<textarea id="textarea_introduction" name="textarea" cols="80" rows="7"><? echo htmlspecialchars($result_set["data"]["introduction"], ENT_HTML401, 'UTF-8'); ?></textarea> |
<textarea id="textarea_introduction" name="textarea" cols="80" rows="7"><? echo htmlspecialchars($result_set["data"]["introduction"], ENT_HTML401, 'UTF-8'); ?></textarea> |
| 149 |
不超过10行,每行不超过40个全角字符 |
限10行80列以内 |
| 150 |
</td> |
</td> |
| 151 |
</tr> |
</tr> |
| 152 |
<tr> |
<tr> |
| 154 |
<td> |
<td> |
| 155 |
<span id="err_msg_sign_1" name="err_msg" style="color: red;"></span> |
<span id="err_msg_sign_1" name="err_msg" style="color: red;"></span> |
| 156 |
<textarea id="textarea_sign_1" name="textarea" cols="80" rows="7"><? echo htmlspecialchars($result_set["data"]["sign_1"], ENT_HTML401, 'UTF-8'); ?></textarea> |
<textarea id="textarea_sign_1" name="textarea" cols="80" rows="7"><? echo htmlspecialchars($result_set["data"]["sign_1"], ENT_HTML401, 'UTF-8'); ?></textarea> |
| 157 |
不超过10行,每行不超过40个全角字符 |
限10行80列以内 |
| 158 |
</td> |
</td> |
| 159 |
</tr> |
</tr> |
| 160 |
<tr> |
<tr> |
| 162 |
<td> |
<td> |
| 163 |
<span id="err_msg_sign_2" name="err_msg" style="color: red;"></span> |
<span id="err_msg_sign_2" name="err_msg" style="color: red;"></span> |
| 164 |
<textarea id="textarea_sign_2" name="textarea" cols="80" rows="7"><? echo htmlspecialchars($result_set["data"]["sign_2"], ENT_HTML401, 'UTF-8'); ?></textarea> |
<textarea id="textarea_sign_2" name="textarea" cols="80" rows="7"><? echo htmlspecialchars($result_set["data"]["sign_2"], ENT_HTML401, 'UTF-8'); ?></textarea> |
| 165 |
不超过10行,每行不超过40个全角字符 |
限10行80列以内 |
| 166 |
</td> |
</td> |
| 167 |
</tr> |
</tr> |
| 168 |
<tr> |
<tr> |
| 170 |
<td> |
<td> |
| 171 |
<span id="err_msg_sign_3" name="err_msg" style="color: red;"></span> |
<span id="err_msg_sign_3" name="err_msg" style="color: red;"></span> |
| 172 |
<textarea id="textarea_sign_3" name="textarea" cols="80" rows="7"><? echo htmlspecialchars($result_set["data"]["sign_3"], ENT_HTML401, 'UTF-8'); ?></textarea> |
<textarea id="textarea_sign_3" name="textarea" cols="80" rows="7"><? echo htmlspecialchars($result_set["data"]["sign_3"], ENT_HTML401, 'UTF-8'); ?></textarea> |
| 173 |
不超过10行,每行不超过40个全角字符 |
限10行80列以内 |
| 174 |
</td> |
</td> |
| 175 |
</tr> |
</tr> |
| 176 |
</table> |
</table> |