📄 modify.jsp
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<jsp:useBean id="cn" class="cn.com.yyj.util.ConDb" scope="page" />
<%@ include file="in.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改信息</title>
<style type="text/css">
<!--
<!--
.kuan { font-size: 9pt; color: #ff0000; border: 1px solid; background-color:#CCFF99; border-color: #CCFF99 #CCFF99 #3399FF}
-->
.tb{ border: 1px solid; border-color: #000000}
.tr{ border: 1px solid; border-color: #000000}
.style2 {color: #000000}
.style3 {color: #000000}
.style4 {font-size: 12px; font-family: "宋体";}
body {
background-color: #333333;
}
-->
</style>
</head>
<body>
<%String nm, sex, birthday, qq, phone, email, work, addr, postcode, other, s_id;
s_id = request.getParameter("id");
cn.exec("select * from class where id=" + s_id);
%>
<table width="648" height="158" border="0" align="center" cellspacing="0">
<tr>
<td width="72" height="27">
</td>
<td width="465">
</td>
<td width="105">
</td>
</tr>
<tr>
<td height="15">
</td>
<td>
<a href="index.jsp">返回</a></td>
<td>
</td>
</tr>
<tr>
<td>
</td>
<td valign="top">
<p>
</p>
<form name="form1" method="post" action="save.jsp?id=<%=s_id%>&act=modify">
<table width="468" height="293" border="1" cellspacing="0" class="tb">
<tr>
<td height="23" colspan="3">
<img src="images/bar1.gif" width="472" height="25">
</tr>
<tr bgcolor="#CCFF99">
<td width="181">
<span class="style4">姓名:</span>
<input name="name" type="text" class="kuan" size="15" value="<%=cn.getname()%>">
</td>
<td width="277">
<span class="style2">性别</span><span class="style3">:</span>
<input name="sex" type="radio" value="男" <% if (cn.getsex().equals("男")) {%> checked <%}%>>
男
<input type="radio" name="sex" value="女" <% if (cn.getsex().equals("女")){%> checked <%}%>>
女
</td>
</tr>
<tr bgcolor="#CCFF99">
<td colspan="2">
<p>
生日:
<select name="birth1" id="select4">
<%for (int y = 1975; y <= 1990; y++) {%>
<option value="<%=y%>" <% if(y==Integer.parseInt(cn.getbirth().substring(0,4))){%> selected <%}%>>
<%=y%>
</option>
<%}%>
</select>
年
<select name="birth2" id="select5">
<%for (int m = 1; m <= 12; m++) {%>
<option value="<%=m%>" <% if(m==Integer.parseInt(cn.getbirth().substring(5,7))){%> selected <%}%>>
<%=m%>
</option>
<%}%>
</select>
月 <font color=#476992><span style="FONT-SIZE: 9pt"> <select name="birth3" id="select6">
<%for (int d = 1; d <= 31; d++) {%>
<option value="<%=d%>" <% if(d==Integer.parseInt(cn.getbirth().substring(8,10))){%> selected <%}%>>
<%=d%>
</option>
<%}%>
</select> </span></font><span style="FONT-SIZE: 9pt"><span class="style2">日 </span></span>
</p>
</td>
</tr>
<tr bgcolor="#CCFF99">
<td>
QQ:
<input name="qq" type="text" class="kuan" id="qq3" size="15" value="<%=cn.getqq()%>">
</td>
<td>
E-mail:
<input name="email" type="text" class="kuan" id="email3" value="<%=cn.getemail()%>">
</td>
</tr>
<tr bgcolor="#CCFF99">
<td>
电话:
<input name="phone" type="text" class="kuan" id="phone3" size="15" value="<%=cn.getphone()%>">
</td>
<td>
邮编:
<input name="postcode" type="text" class="kuan" id="postcode3" size="15" value="<%=cn.getpostcode()%>">
</td>
</tr>
<tr bgcolor="#CCFF99">
<td colspan="2">
工作单位:
<input name="work" type="text" class="kuan" id="work3" size="40" value="<%=cn.getwork()%>">
</td>
</tr>
<tr bgcolor="#CCFF99">
<td colspan="2">
通信地址:
<input name="addr" type="text" class="kuan" id="addr3" size="40" value="<%=cn.getaddr()%>">
</td>
</tr>
<tr bgcolor="#CCFF99">
<td height="143" colspan="2" valign="top">
<p>
备注:
<textarea name="other" cols="60" rows="8"><%=cn.getother()%>
</textarea>
</p>
<p>
<input type="submit" name="Submit" value="保 存">
<input type="reset" name="Submit2" value="重 填">
</p>
</td>
</tr>
</table>
</form>
<p>
</p>
<p>
</p>
<p>
</p>
</td>
<td>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -