<%@ page language="C#" autoeventwireup="true" inherits="admin_template_TextEdit, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Import Namespace="D.BLL" %>
<!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 id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script src="../../js/Common.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/<%=B_Lang.getLang() %>/Copy.js"></script>
    <link rel="Stylesheet" type="text/css" href="../css/RightMenu.css" />
    <script type="text/javascript" src="../../js/rightmenu.js"></script>
    <asp:Literal ID="LitJs" runat="server"></asp:Literal>
	<script language="Javascript" type="text/javascript" src="../editarea/edit_area_full.js"></script>
    <script type="text/javascript">
    var api = frameElement.api, W = api.opener;
	</script>
	<script language="Javascript" type="text/javascript">
	    editAreaLoader.init({
	    id: "txtTemplateContent"	// id of the textarea to transform
			, start_highlight: true	// if start with highlight
			, allow_resize: "both"
			, allow_toggle: true
			, word_wrap: false
			, language: "zh"
			, syntax: "html"
			, toolbar: "search, go_to_line, |, undo, redo, |, select_font, |, syntax_selection, |, change_smooth_selection, highlight, reset_highlight"
	    });
	</script>
</head>
<body oncontextmenu="window.event.returnValue=false" scroll="no">
    <form id="form1" runat="server" onkeydown="Save()">
    <table width="99%" align="center" cellpadding="2" cellspacing="0" border="0" class="dh">
        <tr>
            <td>
                文件路径：<asp:Literal ID="LitPath" runat="server"></asp:Literal>
            </td>
            <td style="display:none"><font color="green">右键选择标签</font></td>
        </tr>
        <tr>
            <td colspan="3" >
                <asp:TextBox ID="txtTemplateContent" runat="server" Width="98%" Height="385px" TextMode="MultiLine" style="word-break:break-all;word-wrap:break-word;" title="右键选择标签" onmouseup="OnMouseUp('txtTemplateContent')"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" height="40">
                <asp:Button ID="DianCMS_Submit" runat="server" Text=" 提交(Ctrl+s) " CssClass="btn radius30 pad_0_30" 
                    onclick="Button1_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input id="Button2" type="button" value=" 取消 " class="btn radius30 pad_0_30" onclick="frameElement.api.close();" /></td>
        </tr>
    </table>
    </form>
</body>
</html>