?? editeuser.jsp
字號:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.jxyd.vo.UserBean;"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>讀者信息修改</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="<%=basePath%>/css/style.css" rel="stylesheet">
<link href="<%=basePath%>/css/main.css" rel="stylesheet">
<script type="text/javascript">
function ShowTime()
{
var now,clock_line,time_text;
now=new Date();
time_text =now.getYear()+"-"+(now.getMonth()+1)+"-"+now.getDate()+" "+now.getHours()+":"+now.getMinutes()+":"+now.getSeconds();
clock_line=document.all("clock");
clock_line.innerText=time_text;
setTimeout("ShowTime();",200);
}
</script>
</head>
<body onload="ShowTime();">
<form action="" name="showform" method="post">
<% UserBean ub = (UserBean) request.getAttribute("ub"); %>
<table width="600" border="1" class="table">
<tr>
<td width="66">
姓名
</td>
<td width="177">
<label>
<input type="text" name="name" value="<%=ub.getName() %>"/>
</label>
</td>
<td>
性別
</td>
<td>
<label>
<% String check1="",check2="";
if(ub.getSex()==1){
check1="checked";
}else if(ub.getSex()==2){
check2="checked";
}
%>
男<input type="radio" value="2" <%=check1 %> name="sex">
女<input type="radio" value="1" name="sex" <%=check2 %>>
</label>
</td>
</tr>
<tr>
<td>
年齡:
</td>
<td>
<label>
<input type="text" name="age" value="<%=ub.getAge() %>"/>
</label>
</td>
<td>
單位:
</td>
<td>
<label>
<input type="text" name="unit" value="<%=ub.getUnit() %>"/>
</label>
</td>
</tr>
<tr>
<td width="77">
借閱證號:
</td>
<td>
<label>
<input type="text" name="code" value="<%=ub.getBarCode() %>"/>
</label>
</td>
<td width="77">
編號:
</td>
<td width="175">
<label>
<input type="text" name="userId" value=" <%=ub.getUserId() %>"/>
</label>
</td>
</tr>
<tr>
<td>手機號:</td>
<td><input type="text" name="mphone" value="<%=ub.getMphone() %>"> </td>
<td>押金:</td>
<td><input type="text" name="yj" value="<%=ub.getYJ() %>"> </td>
</tr>
<tr><td>
讀者類型:
</td>
<td>
<% String check3="",check4="";
if(ub.getSign()==1){
check3="checked";
}else if(ub.getSign()==2){
check4="checked";
}
%>
<label>
學員<input type="radio" value="2" <%=check4 %> name="sign"> 教員<input type="radio" value="1" name="sign" <%=check3 %>>
</label>
</td>
<td>
修改時間:
</td>
<td>
<label>
<input type="text" name="adddate" id="clock"/>
</label>
</td>
</tr>
<tr>
<td>
備注:
</td>
<td colspan="3">
<label>
<textarea name="mark" cols="50" rows="4"><%=ub.getMark() %></textarea>
</label>
</td>
</tr>
<tr>
<td colspan="2"><div align="right"> <input type="button" name="tijiao" value="確定" onclick="adduser()"> </div></td>
<td colspan="2"><input type="reset" value="取消"></td>
</tr>
</table>
<!--end RIGHT-->
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -