📄 employeemessage.jsp
字号:
"1987", "1986", "1985",
"1984", "1983", "1982",
"1981", "1980", "1979",
"1978", "1977", "1976",
"1975", "1974", "1973",
"1972", "1971", "1970",
"1969", "1968", "1967",
"1966", "1965", "1964",
"1963", "1962", "1961",
"1960", "1959", "1958",
"1957", "1956", "1955",
"1954", "1953", "1952",
"1951", "1950", "1949",
"1948", "1947", "1946",
"1945", "1944", "1943",
"1942", "1941", "1940",
"1939", "1938", "1937",
"1936", "1935", "1934",
"1932", "1931", "1930",
"1929", "1928", "1927",
"1926", "1925", "1924",
"1923", "1922", "1921",
"1920", "1919", "1918",
"1917", "1916", "1915",
"1914", "1913", "1912",
"1911", "1910", "1909",
"1908", "1907", "1906",
"1905", "1904", "1903",
"1902", "1901", "1900"
};
String y = employee.getBirthday().substring(0, 4);
for (int i=0; i<year.length; i++) {
if (year[i].equals(y)) {
%>
<option value=<%=year[i]%> selected><%=year[i]%></option>
<%
}
else {
%>
<option value=<%=year[i]%>><%=year[i]%></option>
<%
}
}
%>
</select>
年
<select name="birthMonth" id="birthMonth">
<%
String[] month = {
"01", "02", "03",
"04", "05", "06",
"07", "08", "09",
"10", "11", "12"
};
String m = employee.getBirthday().substring(4, 6);
for (int i=0; i<month.length; i++) {
if (month[i].equals(m)) {
%>
<option value=<%=month[i]%> selected><%=month[i]%></option>
<%
}
else {
%>
<option value=<%=month[i]%>><%=month[i]%></option>
<%
}
}
%>
</select>
月
<select name="birthDay" id="birthDay">
<%
String[] day = {
"01", "02", "03",
"04", "05", "06",
"07", "08", "09",
"10", "11", "12",
"13", "14", "15",
"16", "17", "18",
"19", "20", "21",
"22", "23", "24",
"25", "26", "27",
"28", "29", "30",
"31"
};
String d = employee.getBirthday().substring(6, 8);
for (int i=0; i<day.length; i++) {
if (day[i].equals(d)) {
%>
<option value=<%=day[i]%> selected><%=day[i]%></option>
<%
}
else {
%>
<option value=<%=day[i]%>><%=day[i]%></option>
<%
}
}
%>
</select>
日 </div></td>
</tr>
<tr style="vertical-align: top">
<td style="text-align: right" class="LabelColor" bgcolor="#DFDFFF"> 部门 </td>
<td bgcolor="#FFFFCA">
<div align="left">
<select name="depId" id="depId">
<%
Byte depId = employee.getDepartment().getId();
for (int i=0; i<depList.size(); i++) {
Department dep = (Department)depList.get(i);
Byte index = dep.getId();
if (index.compareTo(depId) == 0) {
%>
<option value=<%=String.valueOf(index)%> selected><%=dep.getName()%></option>
<%
}
else {
%>
<option value=<%=String.valueOf(index)%>><%=dep.getName()%></option>
<%
}
}
%>
</select>
</div></td>
</tr>
<tr style="vertical-align: top">
<td style="text-align: right" class="LabelColor" bgcolor="#DFDFFF"> 手机 </td>
<td bgcolor="#FFFFCA">
<div align="left">
<input name="mobile" type="text" id="mobile" value="<%=employee.getMobile()%>">
</div></td>
</tr>
<tr style="vertical-align: top">
<td style="text-align: right" class="LabelColor" bgcolor="#DFDFFF"> 职务</td>
<td bgcolor="#FFFFCA">
<div align="left">
<select name="jobId" id="jobId">
<%
Byte jobId = employee.getJob().getId();
for (int i=0; i<jobList.size(); i++) {
Job job = (Job)jobList.get(i);
Byte index = job.getId();
if (index.compareTo(jobId) == 0) {
%>
<option value=<%=String.valueOf(index)%> selected><%=job.getName()%></option>
<%
}
else {
%>
<option value=<%=String.valueOf(index)%>><%=job.getName()%></option>
<%
}
}
%>
</select>
</div></td>
</tr>
<tr style="vertical-align: top">
<td style="text-align: right" class="LabelColor" bgcolor="#DFDFFF"> 简历 </td>
<td bgcolor="#FFFFCA">
<div align="left"> <textarea name="experience" cols="50" rows="6" id="experience"><%=employee.getExperience()%></textarea>
</div></td>
</tr>
<tr style="vertical-align: top">
<td height="72" class="LabelColor" style="text-align: right" bgcolor="#DFDFFF"> 备注 </td>
<td bgcolor="#FFFFCA">
<div align="left">
<textarea name="remarks" cols="50" rows="4" id="remarks"><%=employee.getRemarks()%></textarea>
</div></td>
</tr>
<tr style="vertical-align: top">
<td colspan="2"><p class="StoryContentColor"> </p></td>
</tr>
<tr style="vertical-align: top" class="FooterColor">
<td colspan="2"><div align="center">
<input type="submit" name="SubmitName" value="提 交">
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
</form>
<html:errors/>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -