<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_FileOperationMngOld.aspx.cs" Inherits="Webdisk.Admin_FileOperationMngOld" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>文件操作查看</title>
    <link href="../style/gray/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/BaseStyle.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="../js/Common.js" type="text/javascript"></script>
    <script src="../js/jquery.easyui.min.js" type="text/javascript"></script>
	<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css"/>
	<link rel="stylesheet" type="text/css" href="../themes/icon.css"/>
	<link rel="stylesheet" type="text/css" href="../demo.css"/>
</head>
<body class="easyui-layout">
     <div id="dgFileOper" title="文件操作查看" style="width:1000;height:100%;" data-options="singleSelect:true,pagination:'true'">
	</div>
</body>
</html>
<script type="text/javascript">
    $(function () {
        $(window).resize(function () {
            $("#dgFileOper").datagrid("resize", { width: $("body").width() });
        });
        setTimeout(function () {
            $('#dgFileOper').css("height", $("body").height() + "px");

            $('#dgFileOper').datagrid({
                title: "文件预览信息",
                loadMsg: "数据加载中，请稍后……",
                nowrap: false,
                collapsible: true,
                showFooter: true,
                striped: true,
                url: "Admin_FileOperationHandler.ashx?cmd=GetFileViewInfo",
                pageList: [10, 20, 30, 40, 50],
                pageSize: 30,
                singleSelect: true,
                pagination: true,
                sortName: "",
                sortOrder: "desc",
                remoteSort: true,
                fitColumns: true,
                idField: "AllPathID",
                columns: [[
                { field: "FileName", title: "文件名", width: 300, align: "left", sortable: true },
                { field: "FileSize", title: "大小", width: 100, align: "center", sortable: true },
                { field: "UserName", title: "用户名", width: 100, align: "center", sortable: true },
                { field: "LastTime", title: "上传时间", width: 100, align: "center", sortable: true },
                { field: "ViewedUser", title: "浏览人", width: 100, align: "center", sortable: true },
                { field: "viewCount", title: "浏览次数", width: 100, align: "center", sortable: true }
            ]],
                rownumbers: true,
                onLoadSuccess: function (res) {
                }
            });
            $("#dgFileOper").datagrid("getPager").pagination({
                beforePageText: '第', //页数文本框前显示的汉字  
                afterPageText: '页    共 {pages} 页',
                displayMsg: '当前显示从第{from}条到{to}条 共{total}条记录',
                onBeforeRefresh: function (pageNumber, pageSize) {
                    $(this).pagination('loading');
                }
            });
        }, 100);
    });
</script>
