<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Template_DiyFile" %>
<!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>
    <title>模板文件管理</title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script type="text/javascript" src="Script/Template_DiyFile.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="wrapper-div">
    <!-- 弹出框 -->
    <div id="ouBoxTemplate" class="ouBox" style="left:10%;top:6px;width:800px;">
        <a class="close" title="关闭" href="#"></a>
        <div class="content">
        <div class="title">asdasd</div>
            <iframe id="templateIframe" style="margin:0;padding:0;width:800px;_width:810px;" src="Data_TemplateCode.aspx"></iframe>
        </div>
    </div>
    <!-- end 弹出框 -->
	<!-- 模板文件管理 -->
<div class="template-file-manage">
	    
        <!-- left menu -->
        <div class="left">
            <div class="title Yahei B">模板文件管理 <span class="R NoB">：<%=EoyooCMS.CoreCalls.GetSiteConfig.siteConfigTemplate %></span></div>
            <div class="clear-0"></div>
            <!-- 圆角 -->
                <div class="round">
                <span class="t_e1"></span><span class="t_e2"></span>
                <!-- 开始 -->
                <div class="divbox">
                    <div id="fileList" class="file_list">
                    <%=getTemplateTree%>
<%--                        <%foreach (System.Data.DataRow d in getTemplateFile.Rows) %>
                        <%{ %>
                        <li><a title="编辑文件：<%=d["filepath"] %>" addtime="<%=d["addtime"] %>" filesize="<%=d["filesize"] %>" href="<%=d["filename"] %>"><%=d["filename"] %></a></li>
                        <%} %>--%>
                    </div>
                </div>
                <!-- end 开始 -->
                <span class="t_e3"></span><span class="t_e4"></span>
                </div>
            <!-- end 圆角 -->
            <div class="clear-10"></div>
            <div class="templatepath V">路径：<span class="X">/Template/<%=EoyooCMS.CoreCalls.GetSiteConfig.siteConfigTemplate %>/ </span></div>
            <div class="clear-0"></div>
            <div class="filenumber V">文件数量：<span id="fileNumber" class="Q"></span> 个</div>
        </div>
        <!-- end left menu -->

        <!-- right_sonbox -->
        <div id="loadBox" class="right">
            <span class="tip N">提示</span>
            <div class="clear-8"></div>
            <ul class="tiplist">
                <li>点击左边文件，可针对模板文件进行编辑</li>
                <li>模板文件保存成之后，请到前端页面刷新即改变</li>
                <li>新建的模板在前端可直接输入文件名即可访问看到呈现效果，例如(abc.aspx)：http://eoyoo.com/abc</li>
                <li>新建模板时请注意：模板文件的结尾后缀名必须为：<span class="R">.aspx</span></li>
                <li>编辑模板时请注意任意一个模板文件头部不可缺少：<br /> <span class="R">&lt;%@ Page Language=&quot;C#&quot; AutoEventWireup=&quot;true&quot; Inherits=&quot;EoyooCMS.Web._AspxCode&quot; %&gt;</span></li>
                <li>可将生成的模板代码粘贴至模板文件  <a href="Data_TemplateCode.aspx" class="F underline">点击这里</a> 进行模板代码调用</li>

            </ul>
        </div>
        <div id="rightBox" class="right" style="display:none">
            <span class="tip N f_right">提示：第一次操作请先备份</span>
            <div id="fileName" class="title F B">等待载入文件</div>
            <textarea id="code_Text" class="codetext"></textarea>
            <div class="clear-10"></div>
            <a class="bak f_right Q B" rel="<%=getFormUrl %>" id="derivedBtn" href="#">导出备份</a>
            <a class="keycode f_right F B m_right16" id="keycodeBtn" href="#">快捷代码调用</a>
            <input type="button" id="savaTemplateFile" file="" path="" class="bule-btn m_right4 W" value="保存文件" />
            <span></span>
        </div>
        <!-- end right_sonbox -->

    
</div>
<!-- end 模板文件管理 -->
</div>
</body>
</html>
