<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Oykx.admin.FilesNet.index" %>

<!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>文件管理 - <%=Resources.zhouxiang.adminTitle %></title>
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <link href="../js/skins/ZCMS/asyncbox.css" rel="stylesheet" type="text/css" />
    <script src="../js/jQuery.v1.4.2.js" type="text/javascript"></script>
    <script src="../js/AsyncBox.v1.4.js" type="text/javascript"></script>
    <script src="../js/File.js" type="text/javascript"></script>
    <script language="JavaScript">
        javascript: window.history.forward(1);   
    </script>
    <style type="text/css">
        body
        {
            margin: 0;
            font-size: 12px;
            background-color: #F7F6F1;
        }
        .style1
        {
            width: 812px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="background-color: #E6E6E6; border-bottom-style: solid; border-bottom-width: 1px;
        border-bottom-color: #C0C0C0;">
        <table width="100%">
            <tr>
                <td class="style1">
                    <div style="padding: 2px;">
                        <asp:ImageButton ID="imgup" ToolTip="向上" onmouseout="imghuanOver('upBtn','imgup');"
                            onmouseover="imghuan('upBtn','imgup');" ImageUrl="images/ToolIco/upBtn.gif" Style="width: 32px;
                            height: 37px" runat="server" OnClick="imgup_Click" />
                        <asp:ImageButton ID="imgfolder" ToolTip="文件夹" onmouseover="imghuan('folderBtn','imgfolder');"
                            onmouseout="imghuanOver('folderBtn','imgfolder');" ImageUrl="images/ToolIco/folderBtn.gif"
                            Style="width: 75px; height: 37px" runat="server" OnClick="imgfolder_Click" />
                        <img id="imgnewFolder" onclick="addFile()" runat="server" alt="新建文件夹" onmouseover="imghuan('newFolderBtn','imgnewFolder');this.style.cursor='hand'"
                            src="images/ToolIco/newFolderBtn.gif" style="width: 100px; height: 37px" onmouseout="imghuanOver('newFolderBtn','imgnewFolder');" />
                        <asp:ImageButton ID="imgcut" ToolTip="剪切" runat="server" onmouseout="imghuanOver('cutBtn','imgcut');"
                            onmouseover="imghuan('cutBtn','imgcut');" ImageUrl="images/ToolIco/cutBtn.gif"
                            Style="width: 63px; height: 37px" OnClick="imgcut_Click" OnClientClick="tips('操作成功')" />
                        <asp:ImageButton ID="imgcopy" ToolTip="复制" runat="server" onmouseout="imghuanOver('copyBtn','imgcopy');"
                            onmouseover="imghuan('copyBtn','imgcopy');" ImageUrl="images/ToolIco/copyBtn.gif"
                            Style="width: 63px; height: 37px" OnClick="imgcopy_Click" />
                        <asp:ImageButton ID="imgplaster" ToolTip="粘贴" runat="server" onmouseout="imghuanOver('plasterBtn','imgplaster');"
                            onmouseover="imghuan('plasterBtn','imgplaster');" ImageUrl="images/ToolIco/plasterBtn.gif"
                            Style="width: 63px; height: 37px" OnClick="imgplaster_Click" OnClientClick="tips('操作成功')" />
                        <asp:ImageButton ID="imgdel" ToolTip="删除" runat="server" onmouseout="imghuanOver('delBtn','imgdel');"
                            onmouseover="imghuan('delBtn','imgdel');" ImageUrl="images/ToolIco/delBtn.gif"
                            Style="width: 63px; height: 37px" OnClick="imgdel_Click" OnClientClick="return confirm('您确定要删除吗？请谨慎操作！')" />
                        <asp:ImageButton ID="imgrefurbish" ToolTip="刷新" runat="server" onmouseout="imghuanOver('refurbishBtn','imgrefurbish');"
                            onmouseover="imghuan('refurbishBtn','imgrefurbish');" ImageUrl="images/ToolIco/refurbishBtn.gif"
                            Style="width: 63px; height: 37px" OnClick="imgrefurbish_Click1" OnClientClick="tips('操作成功')" />
                        <img id="imgupdate" alt="重命名" runat="server" onmouseout="imghuanOver('updateBtn','imgupdate');" onmouseover="imghuan('updateBtn','imgupdate');this.style.cursor='hand'" src="images/ToolIco/updateBtn.gif" style="width: 63px; height: 37px"  onclick="EditFiles()" />
                        <asp:ImageButton ID="imgdown" ToolTip="下载" runat="server" onmouseout="imghuanOver('downLoadBtn','imgdown');"
                            onmouseover="imghuan('downLoadBtn','imgdown');" ImageUrl="images/ToolIco/downLoadBtn.gif"
                            Style="width: 63px; height: 37px" OnClick="imgdown_Click" />
                        <img id="imgupfile" alt="上传" runat="server" onmouseout="imghuanOver('upFileBtn','imgupfile');"
                            onmouseover="imghuan('upFileBtn','imgupfile');this.style.cursor='hand'" src="images/ToolIco/upFileBtn.gif"
                            style="width: 63px; height: 37px" onclick="UpFile();" />
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div style="height: 640px; width: 812px;">
        <asp:Panel ID="PanelFile" runat="server" ScrollBars="Auto" Height="640">
            <asp:DataList ID="DataListFile" runat="server" RepeatColumns="6" RepeatDirection="Horizontal"
                Style="text-align: center; margin-top: 2px;" OnItemCommand="DataListFile_ItemCommand"
                >
                <ItemTemplate>
                    <table cellpadding="0" cellspacing="0" style="text-align: center; margin-left: 20px;">
                        <tr>
                            <td>
                                <asp:ImageButton ID="ImageFileImg" CommandName="BtnImg" CommandArgument='<%# Eval("db1") %>'
                                    ImageUrl='<%# Eval("db2") %>' ToolTip='<%# Eval("db3") %>' runat="server" Height="32px"
                                    Width="32px" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lblFileName" runat="server" ToolTip='<%# Eval("db3") %>' Text='<%# Eval("db1") %>'></asp:Label>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
