<%@ page language="C#" autoeventwireup="true" inherits="Qwx.CMS.admin_Info_TemplateModify, Qwx.CMS" validaterequest="false" %>

<!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 id="Head1" runat="server">
<title>修改模板</title>
<script type="text/javascript"  src="../../common/jquery.js"></script>
<script type="text/javascript"  src="../skin/sysifrm.js"></script>
<link href="../skin/syscss.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="../tcode/codemirror.js"></script>
<link href="../tcode/codemirror.css" rel="stylesheet" type="text/css" />

</head>
<body>
<form id="form1" runat="server">
<div class="fheader">修改模板<a href="javascript:igoto();" onclick="javascript:iurl('TemplateShow.aspx');return false;">返回上一级▲</a></div>
<div class="fcontent">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="std1">模板文件</td>
    <td class="std2"><asp:TextBox ID="TemplatePath" runat="server" CssClass="iwc"></asp:TextBox>&nbsp;&nbsp;提示：[必须以html或css为后缀]&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TemplatePath"
        ErrorMessage="必填" Display="Dynamic"></asp:RequiredFieldValidator>
    <asp:Label ID="Label1" runat="server" ForeColor="Red"></asp:Label></td>
    </tr>
  <tr>
    <td class="std1">模板内容</td>
    <td class="std25"><asp:TextBox ID="TemplateContent" runat="server"  TextMode="MultiLine"  ></asp:TextBox></td>
    </tr>
  <tr>
    <td colspan="2" class="scontrol"><asp:Button ID="Button1" runat="server"  CssClass="btn" Text="保存修改" OnClick="Button1_Click"  /></td>
    </tr>
</table>

<div id="scode" runat="server">
<script type="text/javascript" src="../tcode/xml.js"></script>
<script type="text/javascript" src="../tcode/javascript.js"></script>
<script type="text/javascript" src="../tcode/css.js"></script>
<script type="text/javascript" src="../tcode/htmlmixed.js"></script>

<script type="text/javascript">
  var mixedMode = {
	name: "htmlmixed",
	scriptTypes: [{matches: /\/x-handlebars-template|\/x-mustache/i,
				   mode: null},
				  {matches: /(text|application)\/(x-)?vb(a|script)/i,
				   mode: "vbscript"}]
  };
  var editor = CodeMirror.fromTextArea(document.getElementById("TemplateContent"), {lineNumbers: true,mode: mixedMode, tabMode: "indent"});
</script>
</div>

</div>
</form>
</body>
</html>