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

<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <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>
    <%--<script src="js/easyloader.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"/>
    <title></title>
</head>
<body class="easyui-layout">
     <div id="dg" title="共享文件" style="width:740px;height:100%;" data-options="singleSelect:true,pagination:'true'">
	</div>
</body>
</html>
<script type="text/javascript">
    $(function () {
        $(window).resize(function () {
            $("#dg").datagrid("resize", { width: $("body").width() });
        });
        setTimeout(function () {
            $('#dg').css("height", $("body").height() + "px");

            $('#dg').datagrid({
                title: '',
                loadMsg: "数据加载中，请稍后……",
                nowrap: false,
                collapsible: true,
                showFooter: true,
                striped: true,
                url: 'FileSpaceHandler.ashx?kind=<% if(Request["kind"]!=null) Response.Write(Request["kind"].ToString()); %>&cmd=GetShareAllpathPage&strCmd=<% if(Request["cmd"]!=null) Response.Write(Request["cmd"].ToString()); %>',
                pageList: [10, 20, 30, 40, 50],
                pageSize: 20,
                singleSelect:true,
                pagination:true,
                sortName: 'lasttime',
                sortOrder: 'desc',
                remoteSort: true,
                fitColumns: true,
                idField: 'id',
                columns: [[
                { field: 'filename', title: '文件名', width: 300, align: 'left', sortable: true },
                { field: 'jcvar', title: '教材版本', width: 100, align: 'center', sortable: true },
                { field: 'zytype', title: '资源类型', width: 100, align: 'center', sortable: true },
                { field: 'fileext', title: '文件类型', width: 100, align: 'center', sortable: true }
            ]],
                rownumbers: true,
                onLoadSuccess: function (res) {
                }
            });
            $("#dg").datagrid("getPager").pagination({
                beforePageText: '第', //页数文本框前显示的汉字  
                afterPageText: '页    共 {pages} 页',
                displayMsg: '当前显示从第{from}条到{to}条 共{total}条记录',
                onBeforeRefresh: function (pageNumber, pageSize) {
                    $(this).pagination('loading');
                }
            });
        }, 100);
    });
</script>