<%@ page language="C#" autoeventwireup="true" inherits="pfile_shared, App_Web_xcn_tr2u" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!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 id="Head1" runat="server">
    <title>共享我的文件夹 </title>
    <link href="../CssHtml1.css" rel="stylesheet" type="text/css" />
  
</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 >
                <table width="100%" border="0" cellspacing="0" cellpadding="0" style =" background-image: url(../Images/bg0021.jpg); height: 29px; ">
                                                        <tr style="border-bottom:  inactivecaption 1px solid; " >
                                                            
                                                            <td width="40%"  valign="bottom" class="css1" >
                                                                &nbsp;
                                                               
                                                               <img src="../images/tb.gif" width="14" height="14" /> 共享人员名单
                                                               </td>
                                                                <td  width="50%" >文件夹： <asp:Label ID="Label1" runat="server" Text="" ForeColor ="Red"></asp:Label></td>
                                                                <td align ="right" >  <asp:ImageButton ID="ImageButton2" runat="server" ToolTip ="添加新的共享用户" ImageUrl="../Images/19.gif" OnClick="ImageButton2_Click" /></td>
                                                                
                                                        </tr>
                                                    </table>
                        <table width=100%  background="images/main_34.gif" cellpadding="0"  border=0 cellspacing="0"> 
                            </table>
           
                            <div style ="height :350px; overflow :auto ;" >
                                <asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" Style="text-align: center;
                                    margin-top: 2px" Width="100%" AllowPaging="True" DataSourceID="SqlDataSource2"
                                    OnPageIndexChanging="GridView4_PageIndexChanging" BackColor="White" BorderWidth="1px"
                                    Font-Size="9pt" Font-Underline="False" BorderColor="InactiveCaption" BorderStyle="Solid" PageSize="30">
                                    <Columns>
                                        <asp:TemplateField HeaderText="员工id" Visible="False">
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("uid") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="Uname" HeaderText="用户名称"  />
                                        <asp:BoundField DataField="dept" HeaderText="所在部门" />
                                       
                                           <asp:BoundField DataField="duty" HeaderText="职务" SortExpression="duty"
                                         />
                                           
                                        <asp:TemplateField HeaderText="删除">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LinkButton2" runat="server" Text="删除" CommandName='<%# Bind("uid") %>'
                                                    OnClick="LinkButton2_Click"></asp:LinkButton>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <table style="text-align: center; width: 100%; font-size: 9pt" cellpadding="0" cellspacing="1">
                                            <tr style="background-color: #1471b0; color: white; border-right: white 1px solid;">
                                                <td width=10% style="background-color: #1471b0; color: white; border-right: white 1px solid;">
                                                    <strong>用户名称</strong></td>
                                                <td width=40% style="background-color: #1471b0; color: white; border-right: white 1px solid;" >
                                                    <strong>所在部门</strong></td>
                                                     <td style="background-color: #1471b0; color: white; border-right: white 1px solid;">
                                                    <strong>职务</strong></td>
                                            
                                                <td style="background-color: #1471b0; color: white;">
                                                    <strong>删除</strong></td>
                                            </tr>
                                             <tr>
                                                
                                                <td colspan =3 >
                                                    没有数据.......................................................................................</td>
                                            </tr>
                                        </table>
                                    </EmptyDataTemplate>
                                    <HeaderStyle BackColor="#1471B0" ForeColor="White" />
                                </asp:GridView>
                            </div>    
                
                  <asp:SqlDataSource ID="SqlDataSource2" runat="server" >
                                </asp:SqlDataSource>  
                    
             
                      
               
                <table style="margin-top: 0px" width="100%" height="350">
                    
                    <tr>
                        <td style="vertical-align: top; width: 50%;">
                         <asp:Panel ID="Panel1" runat="server"  Visible="false" >
            
             
                     <div id="Div1"  runat ="server"  style="width:400px;height:310px; position :absolute  ;left: 70px; top :5px; "  >
                         <table style =" position :relative ; height:26px; width: 400px;" cellpadding="0" cellspacing="0">
                      <tr >
                       <td align ="left" style="font-weight: bold; font-size: 9pt; color: white; width :200px;background-image:url(../Images/top_left.gif); height: 26px;" > &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; 
                    选择共享人员<asp:Label ID="lbl_checker" runat="server" Text=""></asp:Label></td>
                        <td align ="right" valign ="bottom" style="width :200px;background-image:url(../Images/top_right2.gif); height: 26px;" ><asp:ImageButton ID="ImageButton3" runat="server" OnClick="ImageButton1_Click" ImageUrl="~/Images/close.gif" style="padding-top:3px;  padding-right:2px;" ToolTip="关闭" BorderStyle="None" BorderWidth="0px" />&nbsp;</td>
                        </tr>
                
                    </table>         
                     <div style="  width: 395px; background-color:#e0ffd3; left: 171px; top: 6px; border-right: #0066cc 2px solid; border-left: #0066cc 2px solid; border-bottom: #0066cc 2px solid;">
                            <table style ="position :relative ; " width="100%">
                                <tr>
                                    <td> <strong>&nbsp; 按部门：</strong></td>
                                    <td> <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnTextChanged="DropDownList1_TextChanged"
                                    Font-Size="9pt" Width="128px" Height="20px">
                                    </asp:DropDownList>
                                    </td>
                                    <td align="right" style="width: 119px">
                                       <input id="Button5" type="button" value="确 定"  style="width: 73px;
                                    height: 21px;" onserverclick="Button5_ServerClick" runat="server" /></td>
                                </tr>
                            </table>
                            
                            
                            <div style=" overflow:auto ; height :300px; width: 100%; position:relative; left:1px;  ">
                                <asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False"    Width="99%" DataSourceID="SqlDataSource1"
                                    OnPageIndexChanging="GridView3_PageIndexChanging" Font-Size="9pt" BackColor="White"
                                    BorderWidth="1px" BorderColor="#1471B0" BorderStyle="Solid" PageSize="30" >
                                    <Columns>
                                    <asp:TemplateField HeaderText="选择" ItemStyle-Width="15%" >
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chk_uid" runat="server"  ToolTip = '<%# Eval("uid") %>'  />
                                            </ItemTemplate>
                                        <HeaderTemplate>
                                            <asp:CheckBox ID="chk_selectAll" runat="server" OnCheckedChanged="chk_selectAll_CheckedChanged" AutoPostBack="True" />
                                        </HeaderTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="员工id" Visible="False">
                                            <ItemTemplate>
                                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("Uid") %>'></asp:Label>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="用户姓名"  ItemStyle-Width="30%" >
                                            
                                            <ItemTemplate>
                                               
                                                    <asp:Label  runat="server" id="lbl_uname"  Text='<%# Bind("Uname") %>'></asp:Label>
                                            </ItemTemplate>
                                         
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="所在部门"  ItemStyle-Width="55%" >
                                           
                                            <HeaderTemplate>
                                                所在部门
                                            </HeaderTemplate><ItemTemplate>
                                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("dept") %>'></asp:Label>
                                            </ItemTemplate>
                                          
                                         </asp:TemplateField>
                                    </Columns>
                                    <EmptyDataTemplate>
                                        <table style="text-align: center; width: 100%;" cellpadding="0" cellspacing="0">
                                            <tr>
                                            <td style="font-weight: bold; font-size: 9pt; color: white; background-color: #1471b0">
                                                    <strong>选择</strong></td>
                                                <td style="font-weight: bold; font-size: 9pt; color: white; background-color: #1471b0">
                                                    <strong>用户名称</strong></td>
                                                <td style="font-weight: bold; font-size: 9pt; color: white; background-color: #1471b0;">
                                                    <strong>所在部门</strong></td>
                                                   
                                            </tr>
                                        </table>
                                    </EmptyDataTemplate>
                                    <HeaderStyle BackColor="#1471B0" ForeColor="White" BorderStyle="None" />
                                    <RowStyle BorderStyle="Solid" BorderWidth="1px" />
                                </asp:GridView>
                                </div>
                                </div>
                          </div>       
                                
                               
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" >
                                </asp:SqlDataSource>
                               
                                 </asp:Panel>     
                      
                             
                        </td>
                        <td style="vertical-align: top; width: 50%;" align="left">
                          
                                </td>
                    </tr>
                    <tr>
                        <td style="width: 50%">
                            <asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label></td>
                        <td align="center" style="width: 50%">
                        </td>
                    </tr>
                    </table> 
             
              
           
              </ContentTemplate>
                            </asp:UpdatePanel>    
                
               
      
    </form>
</body>
</html>

