You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123 lines
4.1 KiB
123 lines
4.1 KiB
<%@page import="org.wdk.module.auth.mount.bean.BaseSessionUser"%>
|
|
<%@page import="org.wdk.WDK"%>
|
|
<%@page import="org.wdk.module.auth.source.bean.TokenBean"%>
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
<%
|
|
String path = request.getContextPath();
|
|
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
|
|
BaseSessionUser su = WDK.getSessionUser(request, response);
|
|
if(null==su){
|
|
su = new BaseSessionUser();
|
|
}
|
|
String WDK_ROOT = WDKCore.WDK_ROOT;
|
|
String RSS_ROOT = WDK_ROOT +"/"+WDKConstant.Theme+"/"+WDKCore.THEME;
|
|
String commonURL = "/"+RSS_ROOT+"/module/public/common.jsp";
|
|
%>
|
|
<!DOCTYPE html>
|
|
<%@page import="org.wdk.WDKConstant"%>
|
|
<%@page import="org.wdk.WDKCore"%>
|
|
<html>
|
|
|
|
<head>
|
|
<base href="<%=basePath%>" target="_self">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<jsp:include page='<%=commonURL %>'></jsp:include>
|
|
<script type="text/javascript" src="<%=RSS_ROOT%>/core/js/wdk.js"></script>
|
|
<title>附件管理</title>
|
|
<script type="text/javascript">
|
|
<% if(null==su){%>
|
|
$.timeout();
|
|
<%}%>
|
|
|
|
var _gridcode = "wdk.module.sys.attachmentgrid";
|
|
var _gridid = $.getUUID();
|
|
window.onload = function(){
|
|
_gridid = $.grid({
|
|
id:_gridid
|
|
,containerid:'layout_grid'
|
|
,gridcode:_gridcode
|
|
,url:'wdk?action=wdk.public&method=attachment_load&ajaxparam='+new Date().getTime()
|
|
,idField:'fileid'
|
|
,queryParams:{}
|
|
,pagination:true //分页控件
|
|
});
|
|
|
|
};
|
|
|
|
function _handler_click(method,fileid){
|
|
switch(method){
|
|
case 'download':
|
|
$.download({fileid:fileid});
|
|
break;
|
|
case 'remove':
|
|
alert('待实现');
|
|
break;
|
|
default:
|
|
alert('待实现');
|
|
break;
|
|
}
|
|
}
|
|
|
|
//目录删除
|
|
function _handler_catalog_remove(catalogid){
|
|
alert('_handler_catalog_remove catalogid='+catalogid);
|
|
}
|
|
//目录更名
|
|
function _handler_catalog_rename(catalogid){
|
|
alert('_handler_catalog_rename catalogid='+catalogid);
|
|
}
|
|
//目录复制
|
|
function _handler_catalog_copy(catalogid){
|
|
alert('_handler_catalog_copy catalogid='+catalogid);
|
|
}
|
|
//目录移动
|
|
function _handler_catalog_cut(catalogid){
|
|
alert('_handler_catalog_cut catalogid='+catalogid);
|
|
}
|
|
//目录下载
|
|
function _handler_catalog_download(catalogid){
|
|
alert('_handler_catalog_download catalogid='+catalogid);
|
|
}
|
|
|
|
//附件删除
|
|
function _handler_attachment_remove(fileid){
|
|
alert('_handler_attachment_remove fileid='+fileid);
|
|
}
|
|
//附件更名
|
|
function _handler_attachment_rename(fileid){
|
|
alert('_handler_attachment_rename fileid='+fileid);
|
|
}
|
|
//附件复制
|
|
function _handler_attachment_copy(fileid){
|
|
alert('_handler_attachment_copy fileid='+fileid);
|
|
}
|
|
//附件移动
|
|
function _handler_attachment_cut(fileid){
|
|
alert('_handler_attachment_cut fileid='+fileid);
|
|
}
|
|
//附件下载
|
|
function _handler_attachment_download(fileid){
|
|
alert('_handler_attachment_download fileid='+fileid);
|
|
var url = $.base()+'/wdk?action=wdk.public&method=attachment_download&fileid='+fileid;
|
|
window.open(url);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="easyui-layout" style="padding:0px;margin:0px;background-color:#FFFFFF;">
|
|
<!-- 按钮 -->
|
|
<div data-options="region:'north',border:false,collapsed:false" style="height:30px;overflow:hidden;border-bottom:1px solid #d4a375;text-align:left;" >
|
|
<label style="width:50px;margin-left: 10px;">附件目录</label>
|
|
<input type="text" id="catalog" name="catalog" class="txt" style="width:120px;margin-left: 5px;"></input>
|
|
<label style="margin-left: 1px;text-align:left;">文件ID</label>
|
|
<input type="text" id="fileid" name="fileid" class="txt" style="width:120px;margin-left: 5px;"></input>
|
|
<label style="margin-left: 1px;text-align:left;">文件名</label>
|
|
<input type="text" id="fileid" name="fileid" class="txt" style="width:120px;margin-left: 5px;"></input>
|
|
<a id="_btnaddledger" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-add'" href="javascript:void(0)" onclick="_todo_query()">查询</a>
|
|
</div>
|
|
|
|
<!-- 表格 -->
|
|
<div id="layout_grid" data-options="region:'center',border:false,collapsed:false" style="overflow:hidden;border:0px solid #d4a375;" ></div>
|
|
|
|
|
|
</body>
|
|
</html>
|