<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ZiYuanGuanLiQi.aspx.cs" Inherits="Admin_ZiYuanGuanLiQi" %>

<!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 rel="Stylesheet" href="Admin.css" />
</head>
<body style="margin:0px;top:0px;left:0px;background:#fafafa">
        位置：<asp:Label ID="WeiZhi" runat="server" Text="Label"></asp:Label><br />
        
        <div style="width:100%;">
            <a href="#" onclick="ChuangJianWenJianJia.style.display=='none'?ChuangJianWenJianJia.style.display='block':ChuangJianWenJianJia.style.display='none'">创建文件夹</a>&nbsp;&nbsp;<a href="#" onclick="ShangChuanWenJian.style.display=='none'?ShangChuanWenJian.style.display='block':ShangChuanWenJian.style.display='none'">上传文件</a>
        </div>
        <div style="width:100%;text-align:center;display:none" id="ChuangJianWenJianJia">
            <form method="post" action="ZiYuanGuanLiQi.aspx?b=<%=标识 %>&d=<%=文件夹位置 %>">
                <input type="text" class="text" maxlength="30" name="MingChen" />&nbsp;&nbsp;<input type="submit" value="创建文件夹" />
            </form>
        </div>
        <div style="width:100%;text-align:center;display:none" id="ShangChuanWenJian">
            <form method="post" action="ZiYuanGuanLiQi.aspx?b=<%=标识 %>&d=<%=文件夹位置 %>" enctype="multipart/form-data">
                <input type="file" name="f1" />&nbsp;&nbsp;<input type="submit" value="上传文件" />
            </form>
        </div>
    <form id="form1" runat="server">
    <div>
        <table class="tab1" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td>
                    <table class="tab2" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="tab2_bt">
                                资源列表
                            </td>
                        </tr>
                        <tr>
                            <td>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellSpacing="1"
                        CssClass="tab3" GridLines="None" Width="100%">
                        <Columns>
                            <asp:BoundField DataField="序号" DataFormatString="{0}" HeaderText="序号">
                                <HeaderStyle Width="7%" />
                                <ItemStyle Width="7%" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="图标">
                                <HeaderStyle Width="7%" />
                                <ItemStyle Width="7%" />
                                <ItemTemplate>
                                    <img src="<%# Eval("图标") %>" alt="图标" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="文件名">
                                <ItemTemplate>
                                    <a href="<%# Eval("文件地址") %>"><%# Eval("文件名") %></a>
                                </ItemTemplate>
                                <HeaderStyle Width="35%" />
                                <ItemStyle Width="35%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="类型" DataFormatString="{0}" HeaderText="类型">
                                <HeaderStyle Width="9%" />
                                <ItemStyle Width="9%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="文件大小" DataFormatString="{0}" HeaderText="文件大小">
                                <HeaderStyle Width="10%" />
                                <ItemStyle Width="10%" />
                            </asp:BoundField>
                            <asp:BoundField DataField="创建时间" DataFormatString="{0}" HeaderText="创建时间">
                                <HeaderStyle Width="17%" />
                                <ItemStyle Width="17%" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="下载">
                                <HeaderStyle Width="8%" />
                                <ItemStyle Width="8%" />
                                <ItemTemplate>
                                    <%# Eval("下载地址").ToString()==""?"":"<a target=\"_blank\" href=\""+Eval("下载地址")+"\">下载</a>" %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除">
                                <HeaderStyle Width="7%" />
                                <ItemStyle Width="7%" />
                                <ItemTemplate>
                                    <a href="<%# Eval("删除地址") %>" onclick="if(!confirm('真的要删除吗？')){return false;}">删除</a>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <HeaderStyle CssClass="tab3_bt" />
                    </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
