<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="documentlist.aspx.cs" Inherits="School_Web.admin.document.documentlist" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<title>文件列表</title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />
<link href="../style/green/skin.css" rel="stylesheet" type="text/css">
<style>
    .listimg
    { 
         max-width: 100px;
         width: expression(this.width>100?"100px":this.width+"px");
         margin: 10px 0 8px 0;
         border: 1px solid #FFD151; 
		 overflow:hidden; 
    }
    .divA2{
	    float:left;
	    height: 30px;
        line-height:30px;
        vertical-align:middle;
        text-align:left;
	}
        .divA2 p {
             height:30px;
             margin-top:5px;
            line-height:30px;
        }
	.divA1{
	float:left;
	margin-top: 5px;
	margin-right: 2px;
	margin-bottom: 2px;
	margin-left: 2px;
}
        .divA1 img {
            width:30px;
            height:30px;
        }
</style>
<script type="text/javascript" language="javascript" src="js/0451skyMyDocument.js"></script>
 <script type="text/javascript" src="../mtree/js/jquery-1.4.4.min.js"></script>
 <script type="text/javascript" language="javascript" src="../js/System.js"></script>
       
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
  <div id="tbMain0">
    <div class="divTbg">
      <div class="divTbgL"></div>
      <div class="divTbgInfo">
        <div class="divTbgTitle">我的文档</div>
      </div>
    </div>
    <div class="divTbgF"></div>
    <div id="mypanel">
      <div class="divInfo" id="ddiv1">
        <div class="divInfoContext">
             <div style="width:100%;">
          <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tablist">
            <tr class="MeNewTDLine">
              <td width="100" height="25" align="center" valign="middle" class="SkyTDTopLine">当前路径名称</td>
              <td align="left" valign="middle" class="SkyTDLine"><asp:TextBox ID="TxtPath" ReadOnly="true" runat="server" Width="300px" CssClass="textblur" onfocus="this.className='textfocus'"
																			onblur="this.className='textblur'"></asp:TextBox>
              </td>
            </tr>
            <tr class="MeNewTDLine">
              <td align="center" valign="middle" bgcolor="#ffffff" class="SkyTDTopLine">建立子目录：</td>
              <td align="left" valign="middle" bgcolor="#ffffff" class="SkyTDLine"><asp:TextBox ID="TxtCreate" runat="server" ToolTip="建立子目录的名称，3-16个字母数字下划线组合，不区分大小写！" Width="200px"
																			CssClass="textblur" onfocus="this.className='textfocus'" onblur="this.className='textblur'"></asp:TextBox>
                <asp:Button ID="BtnCreate" runat="server" Text="建立目录" class="SkyButtonFocus" OnClick="BtnCreate_Click"></asp:Button></td>
            </tr>
            <tr class="MeNewTDLine">
              <td align="center" valign="middle" bgcolor="#ffffff" class="SkyTDTopLine">其它相关操作</td>
              <td align="left" valign="middle" bgcolor="#ffffff" class="SkyTDLine"><asp:Button ID="btnUpload" runat="server" Text="文件上传" ToolTip="多文件上传" class="SkyButtonFocus" OnClick="btnUpload_Click"></asp:Button>
                <asp:Button ID="Btndel" runat="server" Text="删除目录" class="SkyButtonFocus" OnClick="Btndel_Click"></asp:Button>
                   注意：以上所有操作都是针对当前目录进行的操作；
                <asp:TextBox ID="TxtFileType" runat="server" Width="120px" Visible="False"></asp:TextBox>
              </td>
            </tr>
          </table>
                 </div>
        </div>
      </div>
    </div>
    
  </div>
  <div class="divInfo">
    <div class="divInfoTopList">
      <div class="listLeft">
        <ul>
          <li>
            <div> <img src="../style/green/images/index.gif" /></div>
          </li>
          <li>文件列表</li>
        </ul>
      </div>
      <div class="listRight"> </div>
    </div>
    <div class="divInfoContext">
      <div style="font: 2px; line-height: 2px;"> &nbsp;</div>
         <div id="ScroLeft" style="height:400px;max-height:420px;min-height:100px; overflow:auto;" class="divAutoHeight">
      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BorderStyle="None"
                                                                        CellPadding="0" CellSpacing="1" GridLines="None" Width="100%" CssClass="Ntable" OnRowDataBound="GridView1_RowDataBound" OnRowCommand="GridView1_RowCommand" DataKeyNames="Fsrc">
        <RowStyle CssClass="SkyTDLineCenter" HorizontalAlign="Center" />
        <HeaderStyle HorizontalAlign="Center" CssClass="SkyTDTopLine"></HeaderStyle>
        <Columns>
        <asp:BoundField HeaderText="序号" />
        <asp:BoundField DataField="FName" HeaderText="名称" HtmlEncode="False" >
          <ItemStyle HorizontalAlign="Left" />
        </asp:BoundField>
        <asp:BoundField DataField="FType" HeaderText="类型" />
        <asp:BoundField DataField="FSize" HeaderText="大小" />
        <asp:BoundField DataField="Fdate" HeaderText="时间" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}"/>
        <asp:HyperLinkField DataNavigateUrlFields="Fsrc" DataNavigateUrlFormatString="{0}"
                                                                        HeaderText="查看" Text="[查看]" Target="_blank" />
        <asp:ButtonField HeaderText="更名" Text="[更名]" CommandName="ReName" />
        <asp:ButtonField HeaderText="应用" Text="[应用]" CommandName="Used" />
        <asp:ButtonField HeaderText="删除" Text="[删除]" CommandName="Dele" />
        </Columns>
      </asp:GridView>
             </div>
           <div class="divAutoHeight">
        &nbsp;&nbsp;系统提示：<asp:Literal ID="Literalall" runat="server"></asp:Literal>
      </div>
    </div>
  </div>
  <asp:literal id="Literal1" runat="server"></asp:literal>
  <asp:Literal id="LiteralCss" runat="server"></asp:Literal>

     <script language="javascript" type="text/javascript" >
         function AutoHeight() {

             var h = $(window).height() - 200;
             $("#ScroLeft").height(h);
            
         }
         $(window).resize(function () {
             AutoHeight();
         });

         $(document).ready(function () {
             AutoHeight();
         });
</script>
</form>
</body>
</html>
