<%@ Page Language="C#" AutoEventWireup="true" Inherits="EoyooCMS.ManageCode.Navi_Add" %>

<!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><%=com == "add" ? "添加栏目" : "编辑栏目"%></title>
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <script type="text/javascript" src="Script/Jquery.js"></script>
    <script type="text/javascript" src="Script/Common.js"></script>
    <script src="Script/Eoyoo.FormControl.js" type="text/javascript"></script>
    <script type="text/javascript" src="Script/Navi_Add.js"></script>
    <link href="Style/Iframe.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="FormControl" action="<%=getFormUrl %>?com=<%=com%>&naviid=<%=naviid %>" method="post" enctype="multipart/form-data">
<!-- 隐藏域 -->
<input id="naviName_hide" name="naviName_hide" type="hidden" value="<%=_naviName %>" />
<input id="naviModule_hide" name="naviModule_hide" type="hidden" value="<%=_naviModule %>" />
<!-- end 隐藏域 -->
<div class="wrapper-div">
	<!-- 添加栏目 -->
    	<div class="title1">
        	<div class="right">
            	<span class="title-ico f_right titico3 X"> ctrl + s 快捷保存</span>
            	<span class="title-ico titico2 F B">添加栏目</span>
                
            </div>
        </div>
        
        <!-- 表单 -->
        <div class="tbox_form">
            <p>
                <label class="name f_left"><span class="J">*</span>请选择模型:</label>
                <div class="select-modulebox">
                    <ul class="select-module">
                    <%for (int i = 0; i < _moduleDat.Rows.Count; i++) %>
                    <%{%>
                        <li><a id="module-<%=_moduleDat.Rows[i]["id"].ToString() %>" href="<%=_moduleDat.Rows[i]["id"].ToString() %>"><span class="ico<%=_moduleDat.Rows[i]["id"].ToString() %>"><%=_moduleDat.Rows[i]["name"].ToString() %></span></a></li>
                    <%} %>
                      
                    </ul>
                </div>
                <span id="navimodule_msg" class="point ico-remind V">选择该栏目使用的模型</span>
            </p>
            <div class="clear-4"></div>

            <p <%=_naviParent == "0"?"style=display:none":"" %> >
            <label class="name"><span class="J">*</span>栏目所属:</label> 
            <select id="naviParent_select" name="naviModule_select" tabindex="1" class="select">
                <option value="0">- 不选则直接为一级菜单 -</option>
                <%for (int i = 0; i < _parentDat.Rows.Count; i++) %>
                <%{ %>
                <option <%=_naviParent==_parentDat.Rows[i]["id"].ToString()?"selected=selected":"" %> value="<%=_parentDat.Rows[i]["id"].ToString() %>"><%=_parentDat.Rows[i]["name"].ToString()%></option>
                <%} %>
            </select>
            <span class="point ico-remind V">所属级别菜单</span>
            </p>
            <p>
            <label class="name"><span class="J">*</span>栏目名称:</label> <input id="naviName_txt" name="naviName_txt" tabindex="1" class="input200 isNull isChinaEnNum isSysKey" type="text" value="<%=_naviName %>" />
            <span class="point ico-remind V">填写栏目(导航)名称</span>
            </p>

            <p>
            <label class="name">英文名称:</label> <input id="naviEn_name_txt" name="naviEn_name_txt" tabindex="1" class="input200" type="text" value="<%=_naviEn_name %>" />
            <span class="point ico-remind V">填写栏目(导航)的英文标识名称</span>
            </p>

            <p>
            <label class="name"><span class="J">*</span>永久地址:</label>
            <input tabindex="1" value="<%=_naviRewrite %>" class="input200 isNull isEngNum isSysKey" id="naviRewrite_txt" name="naviRewrite_txt" type="text" /><%=EoyooCMS.CoreCalls.GetSiteConfig.siteConfigSuffix == "none" ? "" : "." + EoyooCMS.CoreCalls.GetSiteConfig.siteConfigSuffix %>
            <span class="point ico-remind V">友好永久地址(中文,字母,数字,下划线组成的字符)</span>
            </p>
            <p>
            <label class="name">每页显示数:</label> 
            <select id="Select1" name="naviPagesize_select" tabindex="1" class="select">
              <option value="-1">- 不选则直接为默认 -</option>
              <%for (int i = 1; i < 50; i++) %>
              <%{ %>
              <option <%=_naviPagesize==i.ToString()?"selected=selected":"" %> value="<%=i.ToString() %>"><%=i.ToString() %></option>
              <%} %>
            </select>
            <span class="point ico-remind V">分页每页显示数量</span>
            </p>
            <p>
            <label class="name"><span class="J">*</span>列表模板文件:</label> 
            <select id="naviTemplateList_select" name="naviTemplateList_select" tabindex="1" class="select">
              <option value="-1">- 不选则直接为默认 -</option>
              <%foreach (object m in EoyooCMS.CoreCalls.GetTemplate.getTemplateFile()) %>
              <%{ %>
              <option <%=_naviTemplateList.ToString().ToLower()==m.ToString().ToLower()?"selected=selected":"" %> value="<%=m.ToString().ToLower() %>"><%=m%></option>
              <%} %>
            </select>
            <span class="point ico-remind V">对应 [<%=EoyooCMS.CoreCalls.GetSiteConfig.siteConfigTemplate.ToString() %>] 下的模板文件</span>
            </p>

            <p>
            <label class="name"><span class="J">*</span>内容模板文件:</label> 
            <select id="naviTemplateInfo_select" name="naviTemplateInfo_select" tabindex="1" class="select">
              <option value="-1">- 不选则直接为默认 -</option>
              <%foreach (object m in EoyooCMS.CoreCalls.GetTemplate.getTemplateFile()) %>
              <%{ %>
              <option <%=_naviTemplateInfo.ToString().ToLower()==m.ToString().ToLower()?"selected=selected":"" %> value="<%=m.ToString().ToString().ToLower() %>"><%=m%></option>
              <%} %>
            </select>
            <span class="point ico-remind V">对应 [<%=EoyooCMS.CoreCalls.GetSiteConfig.siteConfigTemplate.ToString() %>] 下的模板文件</span>
            </p>

            <p>
            <label class="name R B">Url跳转链接:</label> <input value="<%=_naviJumpLink %>" id="naviJumpLink_txt" tabindex="1" class="isUrl input200" name="naviJumpLink_txt" type="text" />
            <span class="point ico-remind V">填写完整链接地址（设置之后将自动跳转，取消则留空）</span>
            </p>


            <p>
            <label class="name"><span class="J">*</span>打开方式:</label>
            <label class="radio">
                <input name="naviTarget_rad" <%=_naviTarget==false?"checked=checked":""%> class="radio" type="radio" value="0" />旧窗口 
            </label>
            <label class="radio">
                <input class="radio" <%=_naviTarget==true?"checked=checked":""%> name="naviTarget_rad" type="radio" value="1" /> 新窗口
            </label>
            <span class="point ico-remind V">浏览器打开栏目方式</span>
            </p>

            <p>
            <label class="name"><span class="J">*</span>呈现:</label>
            <label class="radio">
                <input name="naviIsHide_rad" <%=_naviIsHide==false?"checked=checked":""%> class="radio" type="radio" value="0" /> 显示 
            </label>
            <label class="radio">
                <input class="radio" <%=_naviIsHide==true?"checked=checked":""%> name="naviIsHide_rad" type="radio" value="1" /> 隐藏
            </label>
            <span class="point ico-remind V">该栏目是否在导航上显示呈现</span>
            </p>
            <hr />
            <p>
            <label class="name">&nbsp;</label>
            <input type="submit" class="bule-btn W" value="确定保存" />
            <span></span>
            </p>
        </div>
        <!-- end 表单 -->
    <!-- end 添加栏目 -->
</div>
    </form>
</body>
</html>
