<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Common_SelectFile, QianboCMS" EnableEventValidation="false" %>
<!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="../Css/layout.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../../Js/Common.js"></script>
<script type="text/javascript" src="../../Js/SelectFile.js"></script>
<script type="text/javascript">
var api = frameElement.api, W = api.opener, D = W.document;
</script>
</head>

<body>
<form id="form1" runat="server">
  <table width="98%" border="0" cellpadding="0" cellspacing="0" align="center">
    <tr>
      <td width="50%"><asp:HyperLink ID="hyperNav" runat="server" ImageUrl="../../Images/Ico/up.gif"></asp:HyperLink>
        <a href="javascript:location.href=location.href;" id="btnRe"><img src="../Images/Ico/reload.gif" border="0" /></a><a href=" " onclick="return SetShow('tbUpload')"><img src="../Images/Ico/addfile.gif" border="0" /></a><a href=" " onclick="return SetShow('tbCreate')"><img src="../Images/Ico/adddir.gif" border="0" /></a></td>
      <td width="50%" align="right">当前目录：<asp:Label ID="lbCurrentDirPath" runat="server"></asp:Label></td>
    </tr>
  </table>
  <table align="center" style="width: 98%; display: none;" id="tbUpload">
    <tr>
      <td>上传文件：
        <input type="file" id="fileUpload" runat="server" class="btn" />
        <asp:Button ID="btnUpload" runat="server" OnClick="btnUpload_Click" Text="上传" Width="55px" CssClass="btn" /></td>
    </tr>
  </table>
  <table align="center" style="width: 98%; display: none;" id="tbCreate">
    <tr>
      <td>新文件夹名称：
        <asp:TextBox ID="txtDirName" runat="server"></asp:TextBox>
        <asp:Button ID="btnCreate" runat="server" Text="创建" Width="55px" OnClick="btnCreate_Click" CssClass="btn" /></td>
    </tr>
  </table>
  <table cellpadding="0" cellspacing="1" class="border" align="center">
    <asp:Repeater ID="repFile" runat="server">
      <HeaderTemplate>
        <tr class="title">
          <td>名称</td>
          <td width="120px">修改时间</td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr value="<%#Eval("Path")%>|<%#Eval("Type")%>" class="tdbg" style="cursor: hand;" onclick='<%#GetScriptStr(Eval("Path"),Eval("Type"),Eval("Name"))%>' onmouseover="this.className='tdbgmouseover'" onmouseout="this.className='tdbg'">
          <td align="left" style="padding-left: 10px;"><%#GetFileTypeIco(Eval("Type"))%> <%#Eval("Name")%></td>
          <td align="center"><%#Eval("UpdateTime")%></td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
  </table>
</form>
<asp:Literal ID="litMsg" runat="server"></asp:Literal>
</body>
</html>