<%@ page language="C#" autoeventwireup="true" inherits="SystemManagement_creatFtpDir, App_Web_wrcbq7tn" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../CssHtml.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function cjwj()
        {
           document.getElementById('Button1').click();
           window.parent['homeLeft'].location='../sysLeft.aspx?efd='+document.getElementById('Label2').innerHTML;
        }
         function tz()
        {
            window.parent['homeLeft'].location='../sysLeft.aspx?efd='+document.getElementById('Label2').innerHTML;
        }
    </script>

</head>
<body style="font-size: 9pt">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="float: left; margin-left: 3px">
                    <div>
                        <table style="width: 100%;" cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <asp:Label ID="Label2" runat="server" Enabled="False" Style="display: none"></asp:Label>当前位置：ftp文件夹管理- 当前ftp父文件夹：<asp:Label
                                        ID="Label1" runat="server" ></asp:Label></td>
                                <td style="text-align: right">
                                    <asp:ImageButton ID="ImageButton1" runat="server" ToolTip ="您没有创建权限" ImageUrl="~/Images/19.gif" Enabled="False"
                                        OnClick="ImageButton1_Click" /><img src="../Images/18.gif" onclick="tz()" title="刷新左侧文件夹树"
                                            style="cursor: pointer" id="IMG1" />
                                </td>
                            </tr>
                        </table>
                    </div>
                    <asp:GridView ID="GridView1" runat="server" Font-Size="9pt" AutoGenerateColumns="False"
                        DataSourceID="SqlDataSource1" Style="width: 100%; text-align: center" AllowPaging="True"
                        OnDataBound="GridView1_DataBound" HeaderStyle-BackColor="#83BBD9" HeaderStyle-Font-Bold="true"
                        HeaderStyle-ForeColor="White">
                        <EmptyDataTemplate>
                            <table style="text-align: center; width: 100%; font-size: 9pt" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <strong>删除</strong></td>
                                    <td style="border-left: 1px #000000 solid">
                                        <strong>FTP名称</strong></td>
                                    <td style="border-left: 1px #000000 solid">
                                        <strong>FTP路径</strong></td>
                                    <td style="border-left: 1px #000000 solid">
                                        <strong>创建时间</strong></td>
                                    <td style="border-left: 1px #000000 solid">
                                        <strong>创建人</strong></td>
                                </tr>
                            </table>
                        </EmptyDataTemplate>
                        <Columns>
                            <asp:TemplateField HeaderText="id" InsertVisible="False" SortExpression="id" Visible="False">
                                <EditItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("id") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除">
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/DEL.bmp" OnClick="ImageButton2_Click"
                                        CommandName='<%# Eval("id") %>'  />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ftpName" HeaderText="FTP名称" SortExpression="ftpName" />
                            <asp:BoundField DataField="ftpPath" HeaderText="FTP路径" SortExpression="ftpPath" />
                            <asp:BoundField DataField="cdate" HeaderText="创建时间" SortExpression="cdate" />
                            <asp:BoundField DataField="cloginid" HeaderText="创建人" SortExpression="cloginid" />
                            <asp:BoundField DataField="fatherid" HeaderText="fatherid" SortExpression="fatherid"
                                Visible="False" />
                        </Columns>
                        <HeaderStyle BackColor="#1471B0" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" >
                      
                    </asp:SqlDataSource>
                    <asp:Panel ID="Panel1" runat="server" Visible="false" Width="100%">
                        <div style="margin-top: 30px; border: 1px #000000 solid; font-size: 9pt; padding: 10px; background-color: #f1ebf1;">
                            FTP文件夹名称：<asp:TextBox ID="TextBox1" runat="server" Width="498px" ValidationGroup="dddd"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                                ValidationGroup="dddd" Font-Bold="True">不能为空</asp:RequiredFieldValidator>
                            <input type="button" value="创建" onclick="cjwj()" id="fesdg" runat="server" visible="false" />
                            <asp:Button ID="Button1" runat="server" Text="确定" OnClick="Button1_Click" ValidationGroup="dddd"
                                Style="display: none" />&nbsp;&nbsp;&nbsp;<asp:Button ID="Button2" runat="server"
                                    Text="取消" OnClick="Button2_Click" /></div>
                    </asp:Panel>
                    <asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="Red" Font-Size="9pt"></asp:Label><br />
                    <asp:GridView ID="GridView2" runat="server" Style="width: 100%; margin-top: 20px;
                        text-align: center" AutoGenerateColumns="False" DataSourceID="SqlDataSource2"
                        Font-Size="9pt" OnDataBound="GridView2_DataBound" HeaderStyle-BackColor="InactiveCaption"
                        HeaderStyle-Font-Bold="true" HeaderStyle-ForeColor="White">
                        <Columns>
                            <asp:TemplateField HeaderText="id" InsertVisible="False" SortExpression="id" Visible="False">
                                <EditItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("id") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除">
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/Images/DEL.bmp" CommandName='<%# Eval("id") %>'
                                         OnClick="ImageButton2_Click" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="ftpName" HeaderText="FTP名称" SortExpression="ftpName" />
                            <asp:BoundField DataField="fatherid" HeaderText="fatherid" SortExpression="fatherid"
                                Visible="False" />
                            <asp:BoundField DataField="ftpPath" HeaderText="FTP路径" SortExpression="ftpPath" />
                            <asp:BoundField DataField="cdate" HeaderText="创建时间" SortExpression="cdate" />
                            <asp:BoundField DataField="cloginid" HeaderText="创建人" SortExpression="cloginid" />
                        </Columns>
                        <HeaderStyle BackColor="#83BBD9" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>
                    &nbsp;
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" >
                       
                    </asp:SqlDataSource>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
