{layout:default} {class:Shop.Admin.config.file_edit}
<lbhead>
    <title><%=Tag("文件编辑")%>-<%=site.title%></title>
    <style>
    textarea
    {
       font-size:12px;
     }
    </style>
</lbhead>
<lbpath>
    <div class="tools">
    <ul>
    <%if (PageReturnMsg == ""){%>
    <li class="submit"><a href="javascript:void(0);" onclick="SaveObj();"><b></b><span><%=Tag("保存")%></span></a></li>
    <%}%>
    <li class="rotate"><a href="javascript:void(0);" onclick="history.go(-1);"><b></b><span><%=Tag("返回")%></span></a></li>
    <li class="name"><span id="navIgation"><%=Tag("当前位置")%>：<a href="<%=site.AdminPath %>/Ajax/ajax_admin.aspx?__Action=MenuJump&pid=0"><%=Tag("管理首页")%></a> > 
    <a href="filelist.aspx"><%=Tag("文件编辑")%></a></span></li>
    </ul>
    </div>
</lbpath>
<lbbody>
    <table class="table">
        <tr>
            <th >
                <%=Tag("文件")%>：
            </th>
            <td><%=FileName%>
            </td>
        </tr>
        <tr>
            <th style="vertical-align:top">
                <%=Tag("内容")%>：
            </th>
            <td>
                <textarea id="SkinContent" name="SkinContent" shop="true" class="textarea" style="height: 500px; width: 100%" rows="4" class="input"><%=Server.HtmlEncode(SkinContent)%></textarea>
                <div class="tools clear">
                    <ul>
                        <li class="plus"><a href="javascript:void(0);" onclick="javascript:resizeEditor('SkinContent',250);"><b></b><span><%=Tag("展开")%></span></a></li>
                        <li class="minus"><a href="javascript:void(0);" onclick="javascript:resizeEditor('SkinContent',-250)"><b></b><span><%=Tag("收缩")%></span></a></li>
                    </ul>
                </div>
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        function SaveObj() {
            var postData = GetFormJsonData("shop");
            var url = "<%=site.AdminPath %>/ajax/ajax_site.aspx?__Action=File_Edit&file=<%=FileName %>";
            RequestAjax(url,postData,function(res){MsgBox(1, "<%=Tag("操作成功")%>", "#")});
        }
    </script>
</lbbody>