<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeBehind="Template_Add.aspx.cs" Inherits="KstCMS.KstCMS_Manager.WebSet.Template.tmp.Template_Add" %>


<html>
<head runat="server">
    <title>无标题页</title>

    <script type="text/javascript">

        function checkForm() {
            var frm = document.forms[0];
            if (frm.drp_SiteList.options[frm.drp_SiteList.selectedIndex].value == "0") {
                alert("请选择所属站点！");
                frm.drp_SiteList.focus();
                return false;
            }
            if (frm.txt_TempName.value == "") {
                alert("请输入模板名称！");
                frm.drp_SiteList.focus();
                return false;
            }
            return true;
        }
</script>
</head>
<body>

    <form id="form1" runat="server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>

    <div class="MainBox">
      <table class="PageTitle" width="98%"><tr><td>
       <img src="<%=SysRootUrl %>/KstCMS_Manager/images/sms_type13.gif" align="absmiddle" /> <b> 增加模板</b> </td></tr></table>
         <table width="98%" border="0" cellspacing="0" cellpadding="5">


        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td width="8%" nowrap class="Line">所属站点：</td>
          <td width="92%" class="Line">
              <asp:DropDownList ID="drp_SiteList" runat="server">
              </asp:DropDownList> 模板名称：<asp:TextBox ID="txt_TempName" runat="server" MaxLength="50" CssClass="input_text"></asp:TextBox> <span class="Red">*</span>
          </td>
        </tr>
        

        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
        
          <td  colspan="2" class="Line">
              <textarea id="txt_TempContent" runat="server" name="txt_TempContent" rows="25" style="width:100%"></textarea>
            <fieldset>
                <legend></legend>
                <input type="button" value="显示自定义标签" onclick="OpenDialog('../mytag/index.aspx',800,700)"; class="input_text" />
            </fieldset>   
          </td>
        </tr>

        <tr class="Linetr1" >
          <td nowrap class="Line">&nbsp;</td>
          <td nowrap class="Line">
              <asp:Button ID="OkBtn" runat="server" Text=" 确 定 " CssClass="bigButton" OnClientClick="return checkForm();" />
              <input type="button" value="返回" class="bigButton" onclick="history.go(-1);" />
              </td>
        </tr>
        

        
        </table>

       
       
    </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
    <ProgressTemplate>正在处理中，请稍候...</ProgressTemplate>
    </asp:UpdateProgress>
    </form>
    
</body>
</html>
