<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Modify.aspx.cs" Inherits="K2.Web.Admin.Menu.Modify" %>

<!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><link href="../css/admin.css" type="text/css" rel="stylesheet" charset="utf-8" />
     <link type="text/css" href="../js/msgbox/css/msgbox.css" rel="stylesheet" charset="utf-8" />
    <script type="text/javascript" src="../js/msgbox/script/msgbox.js"></script>

    
</head>
<body   onload="menutype()" >
    <form id="form1" runat="server">
   <div class="newslistabout">
        <div class="newslist_title">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="borderkuang">
                <tr>
                    <td bgcolor="#FFFFFF" class="newstitle">
                        添加导航菜单
                    </td>
                </tr>
                <tr>
                    <td bgcolor="#FFFFFF" class="newstitlebody">
                       您可以新增导航菜单
                    </td>
                </tr>
            </table>
        </div>
        <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
            <tr>
                <td class="tdbg">
                    <table cellspacing="0" cellpadding="3" width="100%" border="0">
                        
                        <tr>
                            <td class="td_class">
                                选择所属父类：
                            </td>
                            <td>
                                <asp:DropDownList ID="DDLFatherID" runat="server">
                                </asp:DropDownList>
                            </td>
                        </tr>
                          <tr>
                            <td class="td_class">
                                菜单名称：
                            </td>
                            <td>
                                <asp:TextBox ID="TxtMenuName" runat="server" style="height:21px;width:400px;"></asp:TextBox>
                                * 菜单名称为必填项，不可以为空。
                            </td>
                        </tr>
                       
                       
                        <tr>
                            <td class="td_class">
                               同类排序：
                            </td>
                            <td>
                                
                                  <asp:TextBox ID="TxtOrders" runat="server" style="height:21px;width:80px;" MaxLength="2"></asp:TextBox>
                            </td>
                        </tr>
                        
                         <tr>
                            <td class="td_class">
                               关键词：
                            </td>
                            <td>
                                <asp:TextBox ID="TxtKeywords" runat="server" style="height:80px;width:400px;"  TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        
                         <tr>
                            <td class="td_class">
                                菜单说明：
                            </td>
                            <td>
                                <asp:TextBox ID="TxtDes" runat="server" style="height:8 0px;width:400px;" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                         <tr>
                            <td class="td_class">
                                菜单类型：
                            </td>
                            <td>
                             <asp:DropDownList  ID="DDLMenuType" runat="server" onfocus="this.defaultIndex=this.selectedIndex;" onchange="this.selectedIndex=this.defaultIndex;"   >
                                <asp:ListItem Text="文章列表型" Value="1"></asp:ListItem>
                                 <asp:ListItem Text="图片列表型" Value="2"></asp:ListItem>
                                 <asp:ListItem Text="单页文章型" Value="3"></asp:ListItem>
                                 <asp:ListItem Text="跳转链接" Value="4"></asp:ListItem>
                                </asp:DropDownList>
                                此项内容不允许修改。
                            </td>
                        </tr>
                       <tr id="url">
                            <td class="td_class">
                                链接地址：
                            </td>
                            <td>
                                <asp:TextBox ID="TxtUrl" runat="server" style="height:21px;width:400px;" ></asp:TextBox>
                                单页列表型时，此项不允许修改。
                                
                            </td>
                        </tr>
                       
                        
                        <tr id="templist">
                            <td class="td_class">
                                列表页模板：
                            </td>
                            <td>
                                <asp:TextBox ID="templatelist" runat="server" style="height:21px;width:400px;" Text=""></asp:TextBox>
                                为空，就是用默认莫模板
                                
                            </td>
                        </tr>
                        <tr id="tempart">
                            <td class="td_class">
                                单页模板：
                            </td>
                            <td>
                                <asp:TextBox ID="templateart" runat="server" style="height:21px;width:400px;" Text=""></asp:TextBox>
                                为空，就是用默认莫模板
                                
                            </td>
                        </tr>
                       
                        
                        <tr>
                            <td class="td_class">
                            </td>
                            <td height="25">

                                <asp:Button ID="BtnSave" runat="server" Text="保存" class="adminsubmit_short" 
                                    onclick="BtnSave_Click" />
                                <asp:Label ID="LblId" runat="server" Text="" Visible="false"></asp:Label>
                                <asp:Label ID="LblGroup" runat="server" Text="" Visible="false"></asp:Label>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <br />
    </div>

    
    </form>
       <script type="text/javascript">
    function menutype()
    {
      // alert(s);
      var obj=document.getElementById("DDLMenuType");
      var s=obj.options[obj.options.selectedIndex].value;
     
        if(s==4)
        {
        document.getElementById("templist").style.display="none";
        document.getElementById("tempart").style.display="none";
         document.getElementById("url").style.display="";
         }
         if(s==3)
         {
         document.getElementById("url").style.display="none";
             document.getElementById("templist").style.display="none";
             document.getElementById("tempart").style.display="";
         }
        if(s==1||s==2)
        {
          document.getElementById("templist").style.display="";
        document.getElementById("tempart").style.display="";
         document.getElementById("url").style.display="none";
         }
         
    }
    </script>
</body>
</html>
