<input class=input1
type=text maxlength=100 size=30 name=homepage value="<%=rs("admin_homepage")%>">
</td>
</tr>
<tr>
<td class=jnfont3 width="30%" align="right" height="15">每页显示: </td>
<td class=jnfont3 width="70%" height="15">
<select name="perpage">
<%for i=5 to 20 step 5
if rs("admin_perpage")=i then
response.write "<option selected>"&i&"</option>"
else
response.write "<option >" &i&"</option>"
end if
next
%>
</select>
条留言 </td>
</tr>
<tr>
<td class=jnfont3 width="100%" align="center" colspan="2" height="15">
<input type="hidden" name="action" value="modify">
<input class=input1 type=submit value=" 修 改 " name="submit">
</td>
</tr>
<tr>
<td class=jnfont3 width="100%" colspan="2">
<p align=right>
<script language="JavaScript">
function check(theForm)
{
if (theForm.pwd.value == "")
{
alert("请输入密码!");
theForm.pwd.focus();
return (false);
}
if (theForm.newpwd.value != "")
{
if (theForm.newpwd.value != theForm.newpwd2.value)
{
alert("两次输入的密码不相同!");
theForm.newpwd.focus();
return (false);
}
}
if (theForm.nick.value == "")
{
alert("请输入昵称!");
theForm.nick.focus();
return (false);
}
if (theForm.name.value == "")
{
alert("请输入姓名!");
theForm.name.focus();
return (false);
}
if (theForm.homepage.value == "")
{
alert("请输入您的主页!");
theForm.homepage.focus();
return (false);
}
}
</script>
『<a
href="index.asp">返回</a>』</p>
</td>
</tr>
</form>
</tbody>
</table>
</tr>
</tbody>
</table>
<%closetable rs
closedb my
end sub
%>
最后,加上文件尾部的版权引用:
<!--#include file="bott.htm" -->
为了弹出一个窗口来显示头像和UBB用法,在<head></head>之间加入一个JS脚本:
<script language=JavaScript>
function popwin3(path){
window.open(path,"","height=450,width=600,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");
}
</script>
好了。所有的代码都写完了,最后就是测试了。
因为是第一次写这么长的文章,不管是编排上还是内容上,总会有不足的地方,还请大家多多见谅
有什么意见,可以提出来,争取以后写得更好。
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9]