<%@ page language="C#" autoeventwireup="true" inherits="pfile_pfolder, App_Web_xcn_tr2u" %>
<!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="../CssHtml.css" rel="stylesheet" type="text/css" />
 <%--<script type="text/javascript" src="../commons/moveDiv.js"></script>--%>
 <script src="../scripts/addTrs2.js" type="text/javascript"></script>
 
  
</head>
<body  >
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="font-size: 9pt">
                    <div>
                        <div>
                            <table cellpadding="0" cellspacing="0" width="100%">
                                <tr>
                                    <td style="height: 19px">
                                      目前位置：我的文件 - 创建我的文件夹 &nbsp; &nbsp; 当前文件夹：<asp:Label ID="Label1" runat="server" ForeColor="red"></asp:Label>
                                        <asp:Label ID="Label2" runat="server" Enabled="False" Visible="false"></asp:Label>
                                    </td>
                                    <td style="text-align: right; height: 19px;">
                                      
                                            
                                        <asp:ImageButton ID="imgAddPfolder" runat="server" ImageUrl="../Images/19.gif"    ToolTip ="创建个人文件夹" OnClick ="imgAddPfolder_Click"/>
                                            
                                           <asp:ImageButton ID="img_refresh" ImageUrl ="../Images/18.gif"  runat="server" OnClick="img_refresh_Click" />
                                             <a href="../OnlineHelp/OnlineHelp.aspx" target="_blank">
                                        <img src="../Images/8.gif" style="border-top-style: none; border-right-style: none;
                                            border-left-style: none; border-bottom-style: none;" /></a>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div>
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"
                                Style="width: 100%; text-align: center;" OnDataBound="GridView1_DataBound" Font-Size="9pt">
                                <Columns>
                                    <asp:TemplateField HeaderText="folderid" InsertVisible="False" SortExpression="folderid"
                                        Visible="False">
                                        <EditItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("folderid") %>'></asp:Label>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("folderid") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="删除">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/DEL2.gif" OnClick="ImageButton2_Click"
                                                CommandName='<%# Eval("folderid") %>' Visible="False" OnClientClick="return confirm('确认删除？')" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="folderName" HeaderText="文件夹名称" SortExpression="folderName" />
                                    <asp:TemplateField HeaderText="上层文件夹" SortExpression="fatherFolderId">
                                        
                                        <ItemTemplate>
                                            <asp:Label ID="Label2" runat="server" Text='<%# GetFolderName(Eval("fatherFolderId")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="ownerloginid" HeaderText="ownerloginid" SortExpression="ownerloginid"
                                        Visible="False" />
                                   
                              
                                    <asp:BoundField DataField="cdate" HeaderText="创建时间" SortExpression="cdate" />
                                  
                                    <asp:TemplateField HeaderText="共享">
                                        <ItemTemplate>
                                            <a style="color: Blue; cursor: pointer" onclick="window.open( 'shared.aspx?id=<%# Eval("folderid") %>','','width=640,height=400,top=200,left=200,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')">
                                                共享</a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <EmptyDataTemplate>
                                    <table style="text-align: center; width: 100%; font-size: 9pt" cellpadding="0" cellspacing="1">
                                        <tr style="font-weight: bold; color: white; background-color: #1471b0;">
                                            <td style="font-weight: bold; font-size: 9pt; color: white;">
                                                <strong>删除</strong></td>
                                            <td  style="font-weight: bold; font-size: 9pt; color: white;border-left: white 1px solid;">
                                                <strong>文件夹名称</strong></td>
                                            <td  style="font-weight: bold; font-size: 9pt; color: white;border-left: white 1px solid;">
                                                <strong>上层文件夹</strong></td>
                                        
                                            <td  style="font-weight: bold; font-size: 9pt; color: white;border-left: white 1px solid;">
                                                <strong>创建时间</strong></td>
                                            <td  style="font-weight: bold; font-size: 9pt; color: white;border-left: white 1px solid;">
                                                共享</td>
                                        </tr>
                                         <tr>
                                                <td align="center" colspan="6" style="font-weight: normal; font-size: 9pt;">
                                                    没有数据................................
                                                </td>
                                            </tr>
                                    </table>
                                </EmptyDataTemplate>
                                <HeaderStyle BackColor="#1471B0" ForeColor="White" />
                            </asp:GridView>
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server"  >
                               
                            </asp:SqlDataSource>
                          
                        </div>
                       
                   
                       <div  id ="mydiv1" visible ="false" runat ="server" style ="  overflow :auto ;border-right: #ff0000 2px solid; border-top: #ff0000 2px solid; border-left: #ff0000 2px solid; border-bottom: #ff0000 2px solid; background-color: buttonface; position :relative ; top :5px" >
                            
          <div style ="width :100%;">
      <table width="100%" border="0" align="center" cellspacing="0" id="SignFrame"
                        style="margin-top: 8px; border-right: #00cccc 1px solid; border-top: #00cccc 1px solid; border-left: #00cccc 1px solid;  border-bottom: #00ccff 1px solid; " cellpadding="0">
                        
                         <tr>
               <td style=" font-size: 9pt;  height: 19px; background-color: #83bbd9; border-left: white 1px solid; " align="center">
                   文件夹名称
               </td>
               
            
                <td style="font-weight: bold; font-size: 9pt; color: white; height: 19px;  width :86px;background-color: #83bbd9; border-left: white 1px solid;" align="center">
               <input type="button" value="+ 添加行" style="width: 68px; height: 19px;" onclick="AddSignRow()" class="button" id="ndyd" /></td>             
              
           </tr>
                         <tr>
                            <td style="height: 22px; "> <input type="text" name="treename" id="treename999" style="width: 97%; height: 17px;" />   </td>                                            
                             
                          
                          <td style="height: 22px;  width :86px; ">
                              &nbsp;</td>                         
                        </tr>
                        </table>   <input name='txtTRLastIndex' type='hidden' id='txtTRLastIndex' value="1" style="width: 49px; height: 14px" />
                        </div>                 
                             
                            <div style="text-align: right">
                                <table style="width: 100%">
                                    <tr>
                                        <td style="text-align: left; width: 79%; height: 26px;">
                                            <asp:Label ID="lbl_state" runat="server" Text="" Style="color: Red; "></asp:Label>&nbsp;
                                        </td>
                                        <td style="text-align: right; width: 21%; height: 26px;">
                                    
                                            <asp:Button ID="btncjwj" runat="server" Text="创  建" OnClick="Button1_Click"  Width="71px"  Height="22px" />
                                        
                                            <asp:Button
                                                ID="Button3" runat="server" Text="关  闭" OnClick="Button2_Click"  Height="22px" />
                                            <asp:Button ID="btn_reset" runat="server" Text="重  置" OnClick="btn_reset_Click" />  
                                                
                                                </td>
                                    </tr>
                                </table>
                            </div>
                            
                             </div>     
                  
                        
                        </div>
                         <table width="100%" style="margin-top: 5px">
                            <tr>
                                <td align="left">
                                    子文件夹：
                                </td>
                              
                            </tr>
                        </table>
                        <div >
                            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource2"
                                Style="width: 100%; text-align: center" OnDataBound="GridView2_DataBound" Font-Size="9pt">
                                <Columns>
                                    <asp:TemplateField HeaderText="folderid" InsertVisible="False" SortExpression="folderid"
                                        Visible="False">
                                        <EditItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Eval("folderid") %>'></asp:Label>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("folderid") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="删除">
                                        <ItemTemplate>
                                            <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/Images/DEL2.gif" OnClick="ImageButton2_Click"
                                                Visible="False" CommandName='<%# Eval("folderid") %>' OnClientClick="return confirm('确认删除？')" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="folderName" HeaderText="文件夹名称" SortExpression="folderName" />
                                    <asp:TemplateField HeaderText="上层文件夹" SortExpression="fatherFolderId">
                                      
                                        <ItemTemplate>
                                            <asp:Label ID="Label2" runat="server" Text='<%# GetFolderName(Eval("fatherFolderId")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="ownerloginid" HeaderText="ownerloginid" SortExpression="ownerloginid"
                                        Visible="False" />
                                  
                               
                                    <asp:BoundField DataField="cdate" HeaderText="创建时间" SortExpression="cdate" />
                                    
                                    <asp:TemplateField HeaderText="共享">
                                        <ItemTemplate>
                                            <a style="color: Blue; cursor: pointer" onclick="window.open( 'shared.aspx?id=<%# Eval("folderid") %>','','width=640,height=400,top=200,left=200,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no')">
                                                共享</a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                 <EmptyDataTemplate>
                                    <table style="text-align: center; width: 100%; font-size: 9pt" cellpadding="0" cellspacing="1">
                                        <tr style="font-weight: bold; color: white; background-color:#83BBD9;">
                                            <td style="font-weight: bold; font-size: 9pt; color: white;">
                                                <strong>删除</strong></td>
                                            <td  style=" font-size: 9pt; color: white;border-left: white 1px solid;">
                                                <strong>文件夹名称</strong></td>
                                            <td  style="font-weight: bold; font-size: 9pt; color: white;border-left: white 1px solid;">
                                                <strong>上层文件夹</strong></td>
                                           
                                            <td  style="font-weight: bold; font-size: 9pt; color: white;border-left: white 1px solid;">
                                                <strong>创建时间</strong></td>
                                            <td  style="font-weight: bold; font-size: 9pt; color: white;border-left: white 1px solid;">
                                                共享</td>
                                        </tr>
                                         <tr>
                                                <td align="center" colspan="6" style="font-weight: normal; font-size: 9pt;">
                                                    没有数据................................
                                                </td>
                                            </tr>
                                    </table>
                                </EmptyDataTemplate>
                                <HeaderStyle BackColor="#83BBD9"  ForeColor ="#00568A" Font-Bold =false />
                            </asp:GridView>
                            <asp:SqlDataSource ID="SqlDataSource2" runat="server" >
                               
                            </asp:SqlDataSource>
                        </div>
                    </div>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
