📄 dochistory.jsp
字号:
<jsp:include page="/include/global.jsp"/>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ page contentType="text/html; charset=GBK" %>
<HTML>
<HEAD>
<LINK rel=stylesheet type=text/css HREF="common/olstyle.css">
<meta http-equiv="Pragma" content="no-cache">
<style>
A:link {text-decoration: underline; color:red}
A:visited { color:red; text-decoration:underline }
A:active { text-decoration: underline; color:red }
A:hover {text-decoration:underline;color:red;background-color:#cccccc;}
</style>
<script type="text/javascript" src="common/CTable.js"></script>
<script type="text/javascript" src="common/CommonFunc.js"></script>
<SCRIPT language=javascript id=clientEventHandlersJS>
document.title="版本历史"
window.onload = ShowTable;
var mTable = null ;
var mTableData = new CTableItem(null,null,null,null,null,null,'T');//按照缺省的属性建立一个Table
var ShowingModal=false; //used for show modal window
var myObject = new Object(); //used for arg
var i;
cntCTDefaultRowCellDefine = "";// 表格内容可以wrap
//状态用图标表示
mTableData.head.addCells(new Array("版本","大小(KB)","日期-时间","用户","提示"));
//设置排序的列
//设置各列的属性
mTableData.SetHeadCell( 0 ,"define" , ' width=45 height="22" nowrap ');
mTableData.SetHeadCell( 1 ,"define" , ' width=65 height="22" nowrap align=right ');
mTableData.SetHeadCell( 2 ,"define" , ' width=120 height="22" nowrap align=center');
mTableData.SetHeadCell( 3 ,"define" , ' width=95 height="22" nowrap ');
mTableData.SetHeadCell( 4 ,"define" , ' width=75 height="22" nowrap ');
mTableData.SetHeadCell( 5 ,"define" , ' width=100% height="22" nowrap ');
//将RecordSet里面的数据放入表格
var lindex
<logic:iterate id="attachment" name="attachments" type="com.chinaspis.future.dao.Attachment" indexId="index">
lindex =
mTableData.AddRow(new Array("<a taget='_blank' href='<%=request.getContextPath()%>/servlet/attachments/download/00-<%=attachment.getObjectType()%>-<%=attachment.getObjectId()%>-<%=attachment.getId()%>/<%=attachment.getFileName()%>' title='浏览或下载文件'><bean:write name="attachment" property="version" /></a>",
"<% if (attachment.getFileSize()>(1024*1024)) { out.print(attachment.getFileSize()/(1024*1024));%>M<%} else if (attachment.getFileSize()>1024) {
out.print(attachment.getFileSize()/1024);%>K<%} else {%><%=attachment.getFileSize()%>byte<%}%>",
"<bean:write name="attachment" property="createDate" format="yyyy-MM-dd hh:mm:ss" />",
"<bean:write name="attachment" property="creator" />",
"<bean:write name="attachment" property="remark" />"));
mTableData.SetCell(lindex,1,"define"," align=right ");
mTableData.SetCell(lindex,2,"define"," align=center ");
</logic:iterate>
function btnDel_onclick() {
if(mTable.CurSelectRow == null){
alert("请先选择需要删除的文件");
return;
}
}
function btnRead_onclick() {
if(mTable.CurSelectRow == null){
alert("请先选择目标文件");
return;
}
}
function btnDownload_onclick() {
if(mTable.CurSelectRow == null){
alert("请先选择目标文件");
return;
}
}
function btnPrint_onclick() {
}
function btnRefresh_onclick() {
}
function ShowTable() { //显示表
if(mTable == null){
mTable =new CommonTableClass(divMain,mTableData);
mTable.ReDraw();
}
}
function divMainOnClick(aTable)
{
if (aTable) aTable.OnClick();
}
function divMainOnClickCell(axx)
{
divMainOnClickRow(axx);
}
function divMainOnClickRow(axx)
{
//parent.bottomFrame.ShowTable( mTable.CurSelectRow);
}
</SCRIPT>
</head>
<body >
<TABLE cellpadding='0' cellspacing='0' bgcolor="#93bee2" class="cbToolbar" id="idToolbar">
<TR valign="top">
<TD width="50%" height="15" NOWRAP><div align="left"></div>
<div align="left"><font color="#000000">文件名:</font><font color="#339966">
<bean:write name="document" property="name"/></font></div>
<div align="left"></div></TD>
</tr>
</table>
<div id="divMain" style="behavior:url(common/CTable.htc)"
onclick = "divMainOnClick(mTable);"
onclickCell = "divMainOnClickCell(divMain);"
onclickRow = "divMainOnClickRow(divMain);"
onSort = ""
onclickCol = ""
>
</DIV>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -