📄 adddocumentweekly.jsp
字号:
<%@ page language="java" pageEncoding="gbk" %>
<%@ 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"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>公司文档备份周报表</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
margin-left: 10px;
margin-top: 10px;
margin-right: 0px;
margin-bottom: 0px;
}
.wd{
background-color:#ffffff;
}
-->
</style>
<link href="../../credit/css/lx2.css" rel="stylesheet" type="text/css" />
<meta http-equiv="pragma" content="text/html; charset=gbk">
<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 rel="stylesheet" type="text/css" href="styles.css">
-->
<link rel="stylesheet" type="text/css" media="all" href="<%=request.getContextPath()%>/css/calendar-win2k-cold-1.css" title="win2k-cold-1" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/Calendar.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/Calendar-zh.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/Calendar-Setup.js"></script>
<script type="text/javascript">
var cellID=0;
function addaffix(){
cellID=cellID+1;
var row = tab.insertRow();
row.id="r"+cellID;
var cell1 = row.insertCell();
var ss1 = "<input type=\"text\" name=\"documentAttachs\" size=\"10\" value=\"\" style=\"border-width:0px;\">";
cell1.className="wd";
// var ss1 = " "+"<input type=\"file\" size=\"35\" name=\"file"+cellID+"\">";
cell1.innerHTML = ss1;
// var cell2 = row.insertCell();
// var ss2 = "<input type=\"button\" value=\"删除\" onclick=\"delpicture(this)\" />";
var cell2 = row.insertCell();
cell2.height="25";
cell2.className="wd";
var ss2 = "<input type=\"text\" name=\"documentTypes\" size=\"12\" value=\"\" style=\"border-width:0px;\">";
cell2.innerHTML = ss2;
var cell3 = row.insertCell();
var ss3 = "<input type=\"text\" name=\"documentNames\" size=\"45\" value=\"\" style=\"border-width:0px;\">";
cell3.className="wd";
cell3.innerHTML = ss3;
var cell4 = row.insertCell();
var ss4 = "<input type=\"text\" name=\"documentDepts\" size=\"10\" value=\"\" style=\"border-width:0px;\">";
cell4.className="wd";
cell4.innerHTML = ss4;
var cell5 = row.insertCell();
var ss5 = "<input type=\"text\" name=\"documentAuthors\" size=\"10\" value=\"\" style=\"border-width:0px;\">";
cell5.className="wd";
cell5.innerHTML = ss5;
var cell6 = row.insertCell();
var ss6 = "<input type=\"text\" name=\"documentDates\" size=\"15\" value=\"\" style=\"border-width:0px;\">";
cell6.className="wd";
cell6.innerHTML = ss6;
}
function delpicture(obj){
var tableObj = document.getElementById("tab");
var a = tableObj.rows.length-1;
tableObj.deleteRow(a);
}
</script>
</head>
<body>
<html:form action="/addDocumentWeekly">
<table width="800" height="25" border="0" align="center"
cellpadding="0" cellspacing="0">
<tr>
<td width="49" bgcolor="#A4B5E3"> </td>
<td width="678" bgcolor="#A4B5E3">
<div align="center" class="STYLE9">
公司文档备份周报表(<%=request.getAttribute("documentCycle")%>)
</div>
</td>
<td width="54" bgcolor="#A4B5E3" align="right"></td>
</tr>
</table>
<table width="800" border="0" align="center" cellpadding="0"
cellspacing="1" bordercolor="#000000" bgcolor="#CCCCCC" id="tab">
<tbody>
<tr>
<td width="86" bgcolor="#FFFFFF">
<div align="center">
文档归属 </div> </td>
<td width="95" bgcolor="#FFFFFF">
<div align="center">文档类别 </div></td>
<td width="280" bgcolor="#FFFFFF">
<div align="center">
文档名称 </div> </td>
<td width="91" height="24" bgcolor="#FFFFFF">
<div align="center">
部门 </div> </td>
<td width="85" height="24" bgcolor="#FFFFFF">
<div align="center">
作者 </div> </td>
<td width="156" bgcolor="#FFFFFF">
<div align="center">
日期 </div></td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentAttachs" size="10" value="" style="border-width:0px;"></html:text>
</div> </td>
<td bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentTypes" size="12" value="" style="border-width:0px;"></html:text>
</div> </td>
<td bgcolor="#FFFFFF" >
<div align="center">
<html:text property="documentNames" size="45" value="" style="border-width:0px;"></html:text>
</div> </td>
<td height="24" bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentDepts" size="10" value="" style="border-width:0px;"></html:text>
</div> </td>
<td height="24" bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentAuthors" size="10" value="" style="border-width:0px;"></html:text>
</div> </td>
<td bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentDates" size="15" value="" style="border-width:0px;"></html:text>
</div> </td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentAttachs" size="10" value="" style="border-width:0px;"></html:text>
</div> </td>
<td bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentTypes" size="12" value="" style="border-width:0px;"></html:text>
</div> </td>
<td bgcolor="#FFFFFF" >
<div align="center">
<html:text property="documentNames" size="45" value="" style="border-width:0px;"></html:text>
</div> </td>
<td height="24" bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentDepts" size="10" value="" style="border-width:0px;"></html:text>
</div> </td>
<td height="24" bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentAuthors" size="10" value="" style="border-width:0px;"></html:text>
</div> </td>
<td bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentDates" size="15" value="" style="border-width:0px;"></html:text>
</div> </td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentAttachs" size="10" value="" style="border-width:0px;"></html:text>
</div> </td>
<td bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentTypes" size="12" value="" style="border-width:0px;"></html:text>
</div> </td>
<td bgcolor="#FFFFFF" >
<div align="center">
<html:text property="documentNames" size="45" value="" style="border-width:0px;"></html:text>
</div> </td>
<td height="24" bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentDepts" size="10" value="" style="border-width:0px;"></html:text>
</div> </td>
<td height="24" bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentAuthors" size="10" value="" style="border-width:0px;"></html:text>
</div> </td>
<td bgcolor="#FFFFFF">
<div align="center">
<html:text property="documentDates" size="15" value="" style="border-width:0px;"></html:text>
</div> </td>
</tr>
</table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td height="18" bgcolor="#FFFFFF" width="82">
<div align="center">文档数量</div></td>
<td width="93" bgcolor="#FFFFFF"> <html:text property="documentData" size="10"></html:text></td>
<td height="18" bgcolor="#FFFFFF" width="323"></td>
<td width="84" height="18" bgcolor="#FFFFFF"><div align="center">占空间大小</div></td>
<td width="212" height="18" bgcolor="#FFFFFF"> <html:text property="documentSpace" size="10"></html:text></td>
</tr>
<tr>
<td height="24" bgcolor="#FFFFFF" width="82">
<div align="center">小结 </div></td>
<td height="24" bgcolor="#FFFFFF" colspan="4">
<html:textarea property="summarize" rows="4" cols="90" style="border-width:0px;"></html:textarea></td>
</tr>
</table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td width="81" height="22" bgcolor="#FFFFFF"
style="border-right:#CCCCCC 1px solid">
<div align="center">
制表人 </div> </td>
<td width="183" bgcolor="#FFFFFF">
<div align="center">
<html:text property="tableMan" size="14"></html:text>
</div> </td>
<td width="100" bgcolor="#FFFFFF"
style="border-right:#CCCCCC 1px solid;border-left:#CCCCCC 1px solid;">
<div align="center">
<div align="center">
制表时间 </div> </td>
<%
java.text.SimpleDateFormat f = new java.text.SimpleDateFormat( "yyyy-MM-dd");
java.util.Date d = new java.util.Date();
String strdate = f.format(d);//System.out.println(strdate);
String fromdate = (String) request.getAttribute("fromdate");
if (fromdate != null) {
strdate = fromdate;
}
%>
<%
java.text.SimpleDateFormat f2 = new java.text.SimpleDateFormat("yyyy-MM-dd");
java.util.Date d2 = new java.util.Date();
String strdate2 = f2.format(d2);
String todate = (String) request.getAttribute("todate");
if (todate != null) {
strdate2 = todate;
}
%>
<td width="431" bgcolor="#FFFFFF">
从
<html:text property="fromDate" value="<%=strdate%>" size="12"></html:text>
<input type="button" value="选择" id="btn" /> 至
<html:text property="toDate" value="<%=strdate2%>" size="12"></html:text>
<input type="button" value="选择" id="btn2" /></td>
</tr>
</table>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#000000" bgcolor="#CCCCCC">
<tr>
<td height="52" bgcolor="#E8E8E8">
<div align="left">
<input type="button" name="button" id="button" value="添加行" onClick="addaffix()"/>
<input type="button" name="button" id="button" value="删除行" onClick="delpicture()"/>
</div>
<div align="center">
<input name="baocun" type="submit" class="anniu" value="保 存"
hidefocus="true" />
<input name="chongzhi" type="reset" class="anniu" value="重 填"
hidefocus="true" />
</div> </td>
</tr>
</table>
</html:form>
</body>
</html:html>
<script type="text/javascript">
Calendar.setup({
inputField : "fromDate", // id of the input field
ifFormat : "%Y-%m-%d", // format of the input field
button : "btn", // trigger for the calendar (button ID)
align : "Br", // alignment (defaults to "Bl")
singleClick : true
});
Calendar.setup({
inputField : "toDate", // id of the input field
ifFormat : "%Y-%m-%d", // format of the input field
button : "btn2", // trigger for the calendar (button ID)
align : "Br", // alignment (defaults to "Bl")
singleClick : true
});
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -