📄 updatainfo.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GB2312"
pageEncoding="GB2312"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>Insert title here</title>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:25px;
top:48px;
width:300px;
height:250px;
z-index:1;
background:#F9F0B7;
}
-->
</style>
<script type="text/javascript">
var ReturnValue;
function ChooseFace(){
ReturnValue=window.showModalDialog("ChooseFacePage.jsp",window,"dialogWidth=500px;dialogHeight=500px;status=no;toolbar=no");
if(ReturnValue&&ReturnValue!=""){
var str=ReturnValue;
document.all.userface.src="manFace/"+str;
document.all.face.value="manFace/"+str;
}
}
function checkInfo(){
var area=document.all.Area.value;
var emile=document.all.Emile.value;
if(emile.indexOf("@")==-1||emile.indexOf(".com")==-1){
alert("邮箱输入不正确");
return false;
}
if(area.length>50){
alert("抱歉用户留言不能超过50字");
return false;
}
return true;
}
function getimage(num){
var i=parseInt(num);
return imageLibrary[i].src="manFace/"+i+"_m.bmp";
}
</script>
</head>
<body>
<jsp:useBean id="chatbase" scope="application" class="tryChat.DataBaseOfChatRoom"></jsp:useBean>
<jsp:useBean id="userInfo" scope="session" class="tryChat.CurrentlyUser"></jsp:useBean>
<jsp:useBean id="chatHome" scope="application" class="tryChat.ChatHome"></jsp:useBean>
<%
String name=userInfo.getName();
String sex=chatbase.getSex(name);
String face=chatbase.getFace(name);
String emile=chatbase.getEmile(name);
String qq=chatbase.getQQ(name);
String province=chatbase.getCountryAndProvince(name);
String favore=chatbase.getFavore(name);
%>
<div id="Layer1">
<form name="login" action="succeedUpdata.jsp" onSubmit="return checkInfo()">
<table border=1 bgcolor="#F9F0B7" align="left" bordercolor="#000000" style="font-size:15px; font-family:'宋体'">
<tr>
<td><font color=red>*</font>性别:</td><td>
<input name="sex" type="radio" value="man" <%if(sex.equals("man"))%>checked="checked"<% %>/>男
<input name="sex" type="radio" value="woman"<%if(sex.equals("woman"))%>checked="checked"<% %> />女
</tr>
<tr>
<td> 头像</td><td><input type="button" value="选择头像" onClick="ChooseFace()"> <input type=image name='userface' src="<%=face%>" disabled="ture">
<input name="face" type="hidden" value="<%=face%>" maxlength=15 size="20"></td>
</tr>
<tr>
<td><font color=red>*</font>电子邮箱:</td><td><input name="Emile" type="text" size="20" maxlength="20"value="<%=emile%>"></td>
</tr>
<tr>
<td>QQ:</td><td><input name="QQ" type="text" size="20" maxlength="15"value="<%=qq%>"></td>
</tr>
<tr>
<td>国家省份</td><td><input name="Province" type="text" size="20" maxlength="10"value="<%=province%>"></td>
</tr>
<tr>
<td colspan="2" align="center"><textarea name="Area" cols="30" rows="5" title="用户留言(不超过50字)"><%=favore%></textarea></td>
</tr>
<tr>
<td colspan="2"align="center"><input type="submit" value="提交"></td>
</tr>
</table>
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -