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


<html >
<head runat="server">
    <title>无标题页</title>
    <link href="../CssHtml.css" rel="stylesheet" type="text/css" />
 <style type="text/css"> 
                .mycss   table   tr   td   table   tr   td   span   {   color:red;   } 
        </style>
    <script type="text/javascript">
        function pl(op)
        {
            var wy ="plpfile.aspx?id=" + op.id;
            window.open( wy,'','width=670,height=450,top=100,left=200,toolbar=no,menubar=no,scrollbars=0,resizable=no,location=no,status=no');
        }
        function cj(er)
        {
            var wy ="addFile.aspx?id=" + er.id;
            window.open( wy,'','width=620,height=360,top=200,left=300,toolbar=no,menubar=no,scrollbars=0,resizable=no,location=no,status=no');
        }
         function pfile(op)
        {
            var wy =op;
            window.open( wy,'','width=1010,height=550,top=50,left=150,toolbar=no,menubar=no,scrollbars=0,resizable=no,location=no,status=no');
        }
      

        function df(op)
        {
            var wy ="../myApp/downfile.aspx?id=" + op+"&tblName=pfile";
            window.open( wy,'','width=675,height=130,top=260,left=300,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
        }


    </script>

</head>
<body>
    <form id="form1" runat="server">
       
      
                <div style="font-size: 9pt">
                    <div>
                        <table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <td style="width: 50%; height: 21px;">
                                目前位置：我的文件 - 我的文件 &nbsp; &nbsp; 当前文件夹：<asp:Label ID="Label2" runat="server" ForeColor="red"></asp:Label>
                                </td>
                                <td style="width: 50%; text-align: right; height: 21px;">
                                <div >
                                    <asp:Panel ID="Panel1" runat="server" Visible="true">
                                        <asp:ImageButton ID="img_addPfile" runat="server" ImageUrl="../Images/dr.gif" 
                                             ToolTip="添加个人文件"  />
                                        <asp:ImageButton ID="img_reflesh" runat="server" ToolTip ="刷新文件记录" ImageUrl="~/Images/18.gif" OnClick="img_reflesh_Click" />
                                        <asp:ImageButton ID="ImageButton2" runat="server"   ToolTip ="删除" ImageUrl="~/Images/6_2.gif" OnClick="ImageButton2_Click"
                                            OnClientClick="return confirm('确认删除？')" />
                                              <asp:ImageButton ID="toexcel" runat="server" ImageUrl="~/Images/17.gif" OnClick="toexcel_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>
                                    </asp:Panel>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <asp:Label ID="Label1" runat="server" Text="Label" Enabled="False" Visible="False"></asp:Label>
                        <asp:Label ID="Label3" runat="server" Enabled="False" Visible="False"></asp:Label>
                      
              <div class="mycss">
                        <asp:GridView ID="GridView1" runat="server"  Style="text-align: center; width: 100%"
                            AutoGenerateColumns="False" DataSourceID="SqlDataSource1" AllowPaging="True"
                            OnDataBound="GridView1_DataBound" Font-Size="9pt" OnPageIndexChanging="GridView1_PageIndexChanging" PageSize="30">
                            <Columns>
                                <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                                    SortExpression="id" Visible="False" />
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="CheckBox1" runat="server" OnCheckedChanged="CheckBox1_CheckedChanged"
                                            AutoPostBack="True" />全选
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="CheckBox2" runat="server" 
                                            ValidationGroup='<%# Eval("id") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="文件名称" SortExpression="fname">
                                    <ItemTemplate>
                                        <a href='../document/openDoc.aspx?from=pfile&id=<%# Eval("id") %>&shared=no' target="_blank"
                                            style="color: Blue">
                                            <%# Eval("fname") %>
                                        </a>
                                       
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="folderno" HeaderText="folderno" SortExpression="folderno"
                                    Visible="False" />
                                <asp:BoundField DataField="ftype" HeaderText="文件类型" />
                                <asp:BoundField DataField="bytes" HeaderText="文件大小(Bytes)" SortExpression="bytes" />
                                <asp:BoundField DataField="cdate" HeaderText="创建时间" SortExpression="cdate" DataFormatString="{0:yyyy-MM-dd}" />
                                <asp:TemplateField HeaderText ="评论" >
                                    <ItemTemplate>
                                        <a href="#" onclick="pl(this)"  style ="color :Blue;"  id='<%# Eval("fileno") %>'>查看评论</a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText ="操作">
                                    <ItemTemplate >
                                        <a href="#" onclick="cj(this)" style ="color :Blue;"  id='<%# Eval("id") %>'>创建文件</a> 
                                     &nbsp;   <a href ="#" onclick  ='df(<%# Eval("id") %>)'  style ="color :Blue;"  >下载</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; font-size: 9pt; color: white; background-color: #1471B0;">
                                        <td>
                                            <input type="checkbox" /></td>
                                        <td style="font-weight: bold; color: white;">
                                            文件名称</td>
                                        <td style="font-weight: bold; color: white;">
                                            文件大小</td>
                                        <td style="font-weight: bold; color: white;">
                                            创建时间</td>
                                        <td style="font-weight: bold; color: white;">
                                            查看评论</td>
                                        <td style="font-weight: bold; color: white;">
                                            文件创建</td>
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="6" style="font-weight: normal; font-size: 9pt;">
                                            没有数据................................
                                        </td>
                                    </tr>
                                </table>
                            </EmptyDataTemplate>
                            <RowStyle Font-Size="9pt" />
                            <HeaderStyle BackColor="#1471B0" ForeColor="White" BorderStyle="None" />
                        </asp:GridView>
                        </div>
                        <asp:Label ID="Label4" runat="server" Text="" Style="color: red"></asp:Label>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" >
                        </asp:SqlDataSource>
                       
                    </div>
                </div>
            
    </form>
</body>
</html>
