<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdduPage.aspx.cs" Inherits="KstCMS.KstCMS_Manager.WebSet.upage.AdduPage" %>

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

<script language="javascript" type="text/javascript">
    function onClickOutLink() {
        var chx = document.getElementById("chx_IsOutUrl");

        if (chx.checked) {
            document.getElementById("a1").style.display = "none";
            document.getElementById("txt_GoUrl").value = "http://";
        } else {
            document.getElementById("a1").style.display = "";
            document.getElementById("txt_GoUrl").value = "";
        }
    }

    function MycheckForm() {
        var chx = document.getElementById("chx_IsOutUrl");
        var ErrNum = 0;
        var ErrStr = "输入验证错误:\r\n";
        var frm = document.forms[0];
        if (frm.drp_SiteList.options[frm.drp_SiteList.selectedIndex].value == "0") {
            ErrNum++;
            ErrStr += ErrNum + ":请您需要选择所属站点.\r\n";
        }
        if (frm.drp_MenuList.options[frm.drp_MenuList.selectedIndex].value == "0") {
            ErrNum++;
            ErrStr += ErrNum + ":请您需要选择所属导航.\r\n";          
        }
        if (BaseTrim(frm.txt_LmName.value) == "") {
            ErrNum++;
            ErrStr += ErrNum + ":您需要输入栏目名称.\r\n";
        }

        if (!checkIsLetterOrNumber(BaseTrim(frm.txt_uPageFile.value))) {
                ErrNum++;
                ErrStr += ErrNum + ":输入的目录名必需是字母，数字或横线.\r\n";
        }

            if (BaseTrim(frm.txt_MateKey.value) == "") {
                ErrNum++;
                ErrStr += ErrNum + ":您需要输入Meta关键字.\r\n";
        }

//            if (BaseTrim(frm.txt_MateDesc.value) == "") {
//                ErrNum++;
//                ErrStr += ErrNum + ":您需要输入Meta注解.\r\n";
//        }

            if (!checkIsInteger(frm.txt_SortNo.value)) {
            ErrNum++;
            ErrStr += ErrNum + ":排序必需输入数字.\r\n";
        }
        if (ErrNum > 0) {
            alert(ErrStr);
            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" AutoPostBack="true">
              </asp:DropDownList>
              <asp:DropDownList ID="drp_MenuList" runat="server">
              <asp:ListItem Value="0" Text="请选择导航栏"></asp:ListItem>
              </asp:DropDownList>
          </td>
        </tr>
        
        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">栏目名称：</td>
          <td class="Line">
              <asp:TextBox ID="txt_LmName" 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 nowrap class="Line">网页文件：</td>
          <td class="Line">
              <asp:TextBox ID="txt_uPageFile" runat="server" MaxLength="50" CssClass="input_text"></asp:TextBox>   <span class="Red">*</span>
        </tr>
        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">Meta关键字：</td>
          <td class="Line">
             <asp:TextBox ID="txt_MateKey" runat="server" TextMode="MultiLine" Rows="3" Width="500" ></asp:TextBox> <span class="Red">*</span>
          </td>
        </tr>

        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">Meta注解：</td>
          <td class="Line">
             <asp:TextBox ID="txt_MateDesc" runat="server" TextMode="MultiLine" Rows="3" Width="500" ></asp:TextBox> 
          </td>
        </tr>

  

        <tr class="Linetr1" onMouseOver="this.className='Linetr2';" onMouseOut="this.className='Linetr1';">
          <td nowrap class="Line">相关选项：</td>
          <td class="Line">
           启用导航 <asp:CheckBox ID="chx_Act" runat="server" /> 排序 <asp:TextBox ID="txt_SortNo" runat="server" Width="30" CssClass="input_text"></asp:TextBox>
                                选择模板：<asp:DropDownList ID="drp_TempList" runat="server">
              </asp:DropDownList>
          </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 MycheckForm();" />
              <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>
