<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="EditFile.aspx.cs" Inherits="QiCms.Web.Admin.OnlineFile.EditFile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="QBSCmsContentPlaceHolder" runat="server">
<form id="TableForm" runat="server">
<div class="tpl-content-wrapper">
        <ol class="am-breadcrumb">
            <li><a href="Admin/Index.aspx" class="am-icon-home">首页</a></li>
            <li><a href="Default.aspx">模板管理</a></li>
            <li class="am-active">编辑文件</li>
        </ol>
        <div class="tpl-portlet-components">
            <div class="tpl-block">
                <div class="portlet-title">
                    <div class="caption font-green bold">
                        <span class="am-icon-code"></span> 编辑文件 - <%=Request.QueryString["File"]%>
                    </div>
                    <div class="tpl-portlet-input tpl-fz-ml">
                        <div class="portlet-input input-small input-inline">
                            <div class="input-icon right">
                                <button type="button" class="am-btn am-btn-default am-btn-success" onclick="window.location.href='Default.aspx';" ><span class="am-icon-backward"></span> 返回</button>
                            </div>
                        </div>
                    </div>


                </div>
                <div class="am-g">
                    <div class="am-u-sm-12">
                        <textarea  name="CodeText" id="CodeText" style="font-size:12px;width:100%;height:350px;" runat="server"></textarea>
                        <hr>
                    </div>
                    <div class="am-form-inline">
                        <asp:Button CssClass="am-btn am-btn-primary tpl-btn-bg-color-success" id="SaveBtn" runat="server" OnClick="SaveBtn_Click" Text="保存文件"></asp:Button>
			            <INPUT type="button" class="am-btn am-btn-primary tpl-btn-bg-color-success" onclick="ConfirmDelete()" value="删除文件">
			        </div>
                </div>
            </div>
                
                
        </div>
    </div>
</form>
<script type="text/javascript">
function ConfirmDelete() {
    if (confirm("您确实要将这个[<%= Request.QueryString["File"].ToString() %>]文件删除吗?"))
                document.location ="DelFile.aspx?Type=File&Name=<%=Request.QueryString["File"].ToString() %>";
}
</script>
</asp:Content>
