📄 leaveapply.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<jsp:directive.page import="com.lovo.vo.bobo.LeaveApplyVO" />
<%
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%>">
<%
LeaveApplyVO vo = (LeaveApplyVO) session.getAttribute("select");
String restart = (String) session.getAttribute("restart");
if (restart == null) {
session.setAttribute("restart", "go");
}
if (restart == "re") {
%>
<script type="text/javascript">
alert("带星号的信息必须填写");
</script>
<%
session.setAttribute("restart","go");
}
String falg = (String)session.getAttribute("falg");
if(falg =="1"){
%>
<script type="text/javascript">
alert("申请成功!");
</script>
<%
session.setAttribute("falg","3");
}
if(falg=="2"){
%>
<script type="text/javascript">
alert("申请失败,请重新填写!");
</script>
<%
}
%>
</head>
<body>
<div id="wrap">
<div id="right">
<div id="aa">
<a href="#" class="aa">行政后勤</a>
<label class="aa">
>
</label>
<a href="#" class="aa">请休假管理</a>
<label class="aa">
>
</label>
<a href="#" class="aa">请假申请</a>
</div>
<div id="form">
<form id="register" action="<%=request.getContextPath()+"/leave/LeaveApplyServlet" %>">
<table style="font-size:10pt;">
<tr>
<td colspan="3" id="title1">
请假申请基本信息录入
</td>
</tr>
<tr>
<td>
请假类型
</td>
<td>
<select name="leave">
<%
if (vo.getGongling() > 0) {
out.print("<option value='工龄假'>");
out.print("工龄假");
out.print("</option>");
}
if (vo.getTanqin() > 0) {
out.print("<option value='探亲假'>");
out.print("探亲假");
out.print("</option>");
}
%>
<option value="other">
其它
</option>
</select>
</td>
<td>
*
</td>
</tr>
<tr>
<td>
请假部门
</td>
<td>
<input type="text" size="10" name="position"
value='<%=vo.getLeaveDepartment()%>' />
</td>
</tr>
<tr>
<td name="qingjiaren">
请假人
</td>
<td>
<input type="text" size="10" name="tex1"
value="<%=vo.getLeaveName()%>" />
该年度拥有探亲假
<input type="text" size="4" maxlength="3" name="tex2"
value="<%=vo.getTanqin()%>" />
天,工龄假
<input type="text" size="4" maxlength="3" name="tex3"
value="<%=vo.getGongling()%>" />
天
</td>
<TD>
*
</TD>
</tr>
<tr>
<td name="position">
职务
</td>
<td>
<input type="text" size="10" value="<%=vo.getPosition()%>"/>
</td>
<TD>
*
</TD>
</tr>
<tr>
<td>
前往地点
</td>
<td>
<input name="post" type="text" size="40" />
</td>
</tr>
<tr>
<td>
起始时间
</td>
<td>
<input name="startTime" type="text" size="20"
onfocus="calendar();" />
</td>
<td>
*
</td>
</tr>
<tr>
<td>
终止时间
</td>
<td>
<input name="endTime" type="text" size="20"
onfocus="calendar();" />
</td>
<td>
*
</td>
</tr>
<tr>
<td>
请假理由
</td>
<td>
<textarea name="reason" rows="4" cols="55"></textarea>
</td>
<td>
*
</td>
</tr>
<tr>
<td>
备 注
</td>
<td>
<textarea name="remark" rows="3" cols="55"></textarea>
</td>
</tr>
</table>
<div style="text-align:center;">
<input type="submit" value="提交" />
<input type="reset" value="重置" />
</div>
</from>
</div>
</div>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -