<%@ page language="C#" autoeventwireup="true" inherits="e_browse, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register TagName="meta" TagPrefix="UC" Src="~/e/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/e/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/e/foot.ascx" %><!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>
<UC:meta ID="meta1" runat="server" />
<script type="text/javascript" src="/s/skin/image.js"></script>
<script type="text/javascript">
    function killErrors(){return true;}window.onerror = killErrors; 
    function showUploadBox(type){
        var par1="uploaddir";if(type==1)par1="replacefile";else alert("请注意：\r\n\r\n“上传文件” 会自动按当前时间重命名　　 \r\n\r\n如需按原名上传请点击 “替换文件”");var dir= document.getElementById("AddressUrlVirtual").value;dir=escape(dir).replace(/\%/g,'<'); TINY.box.show("upload.aspx?"+par1+"="+dir,1,500,90,1,0);
    }
</script>
<style type="text/css">.inp1{border-color:#a3c4e1;}.but1{margin-right:10px;}.self_item{float:left;margin:5px;overflow:hidden;width:90px;height:86px;text-align:center;border:solid 1px #ccc;}.self_item_pic{width:60px;height:42px;overflow:hidden;margin-left:auto;margin-right:auto;margin-top:16px;}.self_item_txt{margin-left:auto;margin-right:auto;width:80px;overflow:hidden;height:20px;}</style>
</head>
<body>
<form id="form1" runat="server" autocomplete="off">
    <asp:Label ID="pathcode" runat="server" style="display: none">&nbsp;&raquo;&nbsp;在线FTP</asp:Label>
    <UC:head ID="head2" runat="server" />
    <%--main start--%>
        <input id="ObjectNum" type="hidden" runat="server" />
        <input id="FolderUrl" type="hidden" runat="server" />
        <input id="FolderPath" type="hidden" runat="server" />
        <div id="self_browse_box" style="padding-left: 10px; padding-right: 10px; margin-top: 5px;background-color: #fff; overflow-y: auto; overflow-x: hidden">
            <div style="padding-top: 5px; padding-bottom: 5px; border: solid 1px #b4ccf0; background-color: #ccddf7;padding-left: 10px; padding-right: 10px">
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td>地址：&nbsp;
                                        <script type="text/javascript">
                                            function self_fun1(){if(document.getElementById('AddressUrl').value.indexOf('/')!=-1){return false;}window.location='browse.aspx?dir='+escape(document.getElementById('AddressUrl').value.replace('\\\\','\\').replace('\\\\','\\').replace('\\\\','\\').replace('\\\\','\\'));}
                                            function self_keydown(e){var theEvent=window.event||e;var keyNum=theEvent.keyCode||theEvent.which;if(keyNum==13)self_fun1();}
                                        </script>
                                    </td>
                                    <td><input id="AddressUrl" style="width: 600px" class="inp1" type="text" name="text" runat="server" onkeydown="self_keydown(event)" /><asp:HiddenField ID="AddressUrlVirtual" runat="server" /></td>
                                    <td><img src="/s/skin/urlgo.gif" style="margin-left: 5px; *margin-top: 2px; cursor: pointer" onclick="self_fun1()" /></td>
                                </tr>
                            </table>
                        </td>
                        <td align="right"><asp:HyperLink ID="HyperLink2" runat="server">向上一级</asp:HyperLink>&nbsp;&nbsp;&nbsp;<asp:HyperLink ID="HyperLink1" runat="server">根目录</asp:HyperLink>&nbsp;&nbsp;&nbsp;<a href="#" onclick="history.go(-1)">后退</a>&nbsp;&nbsp;&nbsp; <a href="#" onclick="window.location=(location.href)">刷新</a></td>
                    </tr>
                </table>
            </div>
            <table id="self_browse_table" width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr valign="top">
                    <td width="200" style="background-color: #CCDDF7">
                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                            <tr>
                                <td>
                                    <div style="padding-left: 10px; padding-top: 7px"><asp:Label ID="leftpic" runat="server"></asp:Label></div>
                                    <div class="str s14" style="border-bottom: solid 1px #90b2d1; padding-left: 10px;padding-top: 10px; padding-bottom: 6px"><asp:Label ID="ListLabel" runat="server"></asp:Label></div>
                                </td>
                            </tr>
                            <tr>
                                <td style="padding-left: 10px; padding-top: 8px">
                                    <div id="filename"></div>
                                    <div id="fileinfo"></div>
                                    <div><img id="picture" style="display: none; margin-top: 10px" width="179" onload="ResizePic(this,179,400)" /></div>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td oncontextmenu="return false" ondragstart="return false" onselectstart="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false" onmouseup="document.selection.empty()" onclick="return BodyClick()">
                        <asp:Literal ID="fileShow" runat="server"></asp:Literal><div class="clear"></div>
                    </td>
                </tr>
            </table>
        </div>
        <script type="text/javascript">if(!-[1,]){document.getElementById("self_browse_box").focus();}document.getElementById("self_browse_box").style.height=top.window.screen.availHeight-310+"px";document.getElementById("self_browse_table").style.height=top.window.screen.availHeight-346+"px";</script>
        <div style="padding-left: 10px; padding-right: 10px; padding-top: 5px">
            <asp:HiddenField ID="HiddenField1" runat="server" />
            <input id="CurrentFile" type="hidden" name="CurrentFile" runat="server" />
            <input id="CurrentFolder" type="hidden" name="CurrentFolder" runat="server" />
            <table cellspacing="0" cellpadding="0" border="0">
                <tr>               
                    <td><input type="button" class="but1" value="上传文件" onclick="showUploadBox(0)" title="按时间自动命名模式！" /></td>
                    <td><input type="button" class="but1" value="替换文件" onclick="showUploadBox(1)" title="按原文件名称上传，如果文件存在则替换！" /></td>
                    <td><asp:Button ID="Button_download" runat="server" CssClass="but1" Text="下载文件" OnClick="Button_download_Click"></asp:Button></td>
                    <td><asp:Button ID="Button_CreateDir" runat="server" Text="新建目录" CssClass="but1" OnClick="Button_CreateDir_Click" /></td>
                    <td><asp:Button ID="Button_delfile" runat="server" CssClass="but1" Text="删除文件" OnClick="Button_delfile_Click"></asp:Button></td>
                    <td><asp:Button ID="Button_deldir" runat="server" CssClass="but1" Text="删除目录" OnClick="Button_deldir_Click"></asp:Button></td>
                    <td>
                        <input type="button" class="but1" value="重命名" onclick="this.style.display='none';document.getElementById('TextBox_rename_inp').style.display='';document.getElementById('TextBox_rename_btn').style.display=''" />
                        <asp:TextBox ID="TextBox_rename_inp" runat="server" CssClass="inp1" Width="150" MaxLength="30" Style="display: none" onkeyup="replaceCharLegal(this,this.value)" onblur="replaceCharLegal(this,this.value)"></asp:TextBox>
                        <asp:Button ID="TextBox_rename_btn" runat="server" CssClass="but1" Text="重命名" Style="display: none" OnClick="TextBox_rename_btn_Click" OnClientClick="if(document.getElementById('TextBox_rename_inp').value=='')return false"></asp:Button>
                    </td>
                    <td><asp:Button ID="Button_copy" runat="server" CssClass="but1" Text="复制" OnClick="Button_copy_Click"></asp:Button></td>
                    <td><asp:Button ID="Button_cut" runat="server" CssClass="but1" Text="剪切" OnClick="Button_cut_Click"></asp:Button></td>
                    <td><asp:Button ID="Button_paste" runat="server" CssClass="but1" Text="粘贴" OnClick="Button_paste_Click"></asp:Button></td>
                </tr>
            </table>
        </div>
    <%--main end--%>
    <UC:foot ID="foot1" runat="server" />
</form>
<script type="text/javascript" src="/s/skin/for_browse_aspx.js"></script>
</body>
</html>
