<%@ page language="C#" autoeventwireup="true" inherits="pfile_myshare, 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" />
      <style type ="text/css"> 
                .mycss   table   tr   td   table   tr   td   span   {   color:red;   } 
        </style>  
          <script type="text/javascript">
        function pl(op)
        {
            var wy ="tjpl.aspx?id=" + op.id;
            window.open( wy,'','width=682,height=330,top=100,left=300,toolbar=no,menubar=no,scrollbars=0,resizable=no,location=no,status=no');
        }
         function tpl(op)
        {
            var wy ="plpfile.aspx?id=" + op;
            window.open( wy,'','width=670,height=450,top=100,left=200,toolbar=no,menubar=no,scrollbars=0,resizable=no,location=no,status=no');
        }
    </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>
            <table  width =100% style="font-size: 9pt;"><tr ><td align =left >目前位置：我的文件 - 我的共享文件 -> 文件夹：<%= GetFN() %></td>
            <td align ="right" style="width :30%"> <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>
               
                <asp:Label ID="Label1" runat="server" Text="Label" Enabled="false" Visible="false"></asp:Label>
                <div  class ="mycss">
                <asp:GridView ID="GridView1" runat="server" style="width:100%; text-align:center" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging"  PageSize="30">
                    <Columns>
                        <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                            SortExpression="id" Visible="False" />
                      
                        <asp:TemplateField HeaderText="文件名称" SortExpression="fname">
                            <EditItemTemplate>
                                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("fname") %>'></asp:TextBox>
                            </EditItemTemplate>
                            <ItemTemplate>
                             
                           <a href='../document/openDoc.aspx?from=pfile&id=<%# Eval("id") %>&shared=yes' target="_blank" style="color :Blue ">
                                            <%# Eval("fname") %>
                                        </a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="ftype" HeaderText="文件类型" />
                        <asp:BoundField DataField="bytes" HeaderText="文件大小" SortExpression="bytes" />
                         <asp:BoundField DataField="cdate" HeaderText="创建时间" SortExpression="cdate" />
                        <asp:TemplateField HeaderText="评论" >
                            <ItemTemplate>
                                <a href="#" onclick="pl(this)" id='<%# Eval("fileno") %>' style="color :Blue ">添加评论</a> <a href="#" onclick="tpl('<%# Eval("fileno") %>')" 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; color: white; background-color:#1471B0;">
                              
                                <td style="font-weight: bold; color: white;">文件名称</td>
                                <td style="font-weight: bold; color: white; border-left: white 1px solid;">文件类型</td>
                                <td style="font-weight: bold; color: white; border-left: white 1px solid;">文件大小</td>
                                <td style="font-weight: bold; color: white; border-left: white 1px solid;">创建时间</td>
                                  <td style="font-weight: bold; color: white; border-left: white 1px solid;">评论</td>
                                </tr>
                                 <tr>
                                                <td align="center" colspan="3" style="font-weight: normal; font-size: 9pt;">
                                                    没有数据................................
                                                </td>
                                            </tr>
                            </table>
                    </EmptyDataTemplate>
                    <HeaderStyle BackColor="#1471B0" ForeColor="White" />
                </asp:GridView>
                </div>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" >
                </asp:SqlDataSource>
            </div>
    </div>
    </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
