📄 neirong-zhoubao.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
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>My JSP 'neirong-zhoubao.jsp' starting page</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
margin-left: 15px;
margin-top: 15px;
}
.STYLE1 {
color: #FFFFFF;
font-weight: bold;
font-size: 14px;
}
-->
</style>
<script>
function change(){
var all = document.getElementById("all");
if(all.checked){//alert(document.getElementById("id").style.background);
document.getElementById("id").readOnly=true;
document.getElementById("id").style.background="#CCCCCC";
}else{
document.getElementById("id").readOnly=false;
document.getElementById("id").style.background="#FFFFFF";
}
}
</script>
</head>
<%int period = (Integer)request.getAttribute("period");
Date first = (Date)request.getAttribute("begindate");
Date end = (Date)request.getAttribute("enddate");
java.text.SimpleDateFormat format = new java.text.SimpleDateFormat("yyyy-MM-dd");%>
<body>
<table height="78" cellspacing="0" cellpadding="0" width="419" border="0">
<tbody>
<tr>
<td height="26" bgcolor="#A4B5E3"><span class="STYLE1"> 周报管理</span></td>
</tr>
<tr>
<td height="52" valign="top"><table width="850" border="0" cellpadding="0" cellspacing="1" bgcolor="#3868f8">
<tbody>
<tr>
<td height="25" bgcolor="#FFFFFF"> <span>[添加周期]</span></td>
</tr>
<form action="<%=request.getContextPath()%>/submitperiod.do" name="fr" method="post" style="display:inline">
<tr>
<td height="25" bgcolor="#FFFFFF"> 当前第<input name="select" type="text" value="<%=period %>" size="4" maxlength="12" />期
从<input name="first" type="text" value="<%=format.format(first) %>" size="12"/>至<input name="first" type="text" value="<%=format.format(end) %>" size="12"/>日
添加第<input name="period" type="text" value="<%=period+1 %>" size="4" maxlength="12" />期
<input type="submit" name="Submit42" value="确 定" onclick="period()"/>
</td>
</tr>
</form>
<tr>
<td height="25" bgcolor="#FFFFFF"> <span>[产生周报]</span></td>
</tr>
<form action="<%=request.getContextPath()%>/submitzhoubao.do" name="fr" method="post" style="display:inline">
<tr>
<td height="25" bgcolor="#FFFFFF" colspan="2"> 期号:第<input name="period2" type="text" value="<%=period %>" size="4" maxlength="12" />期
指定员工编号: <input name="username" type="text" value="" size="12" style="background:#CCCCCC" readOnly="readonly" maxlength="12" id="id"/>
或<input type="checkbox" name="all" id="all" onclick="change()" checked/>
全选 <input type="submit" name="Submit43" value="确 定" /></br>
注意:指定员工编号或全选只能择其一
</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF" colspan="2"> </td>
</tr>
</form>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -