<%@ page language="C#" autoeventwireup="true" inherits="admin_storeConfig_TabEdit, LebiMall" %>
<!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>
<link rel="stylesheet" type="text/css" href="css/css.css" media="screen"/>
<script type="text/javascript" language="javascript" src="js/topHead.js"></script>
<link href="css/tipswindown.css" type="text/css" rel="stylesheet" />
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/tipswindown.js" type="text/javascript"></script>

<script type="text/javascript">
    var $=jQuery;
    function validate(){
        var flag=true;
        if(document.getElementById("txt_tname").value==""){
            document.getElementById("msg_n").innerHTML="<span class='msg_submit'>导航不能为空！</span>";
            flag=false;
        }else{
            document.getElementById("msg_n").innerHTML="";
        }
        return flag;
    }

</script>
</head>
<body>
    <form id="form1" runat="server" onsubmit="return validate();">
          <!--顶部logo区域-->
        <script>header(6,6,"images/");</script>
        <div class="blank clearfix"></div>
        
        <!--功能区-->
        <div class="tabmenus mainwidth">
            <ul>
                <li><a href="TabList.aspx"><span>导航管理</span></a></li>
                <li><a href="TabAdd.aspx"><span>添加导航</span></a></li>
                <li class="current"><a href="#"><span>编辑导航</span></a></li>
            </ul>
        </div>
        
        <div class="tab-mainbody">
            <div class="tab-mainbody2">
                <div class="functionHandleArea clearfix">
                    <input type=button class="btn-app" runat=server id="button2" title="保存" onserverclick="button1_ServerClick"/>
                    <input type=button class="btn-res" onclick="reset();return false;" title="重置"/>
                </div>
                <div id="datalist">
                    <table cellspacing="0" border="0" id="list" style="width: 100%; border-collapse: collapse;">
                    <!-- table 导航 -->
                        <tr>
                            <th class="td_right td_left" colspan="2" align=left >添加导航</th>
                        </tr>
                        <tr>
                            <td width="15%">导航名称：</td>
                            <td width="85%" ><input type=text id="txt_tname" name="txt_tname" class="input" style="width:350px;" value="<%=getLStr("tname") %>" />&nbsp;<span id="msg_n"></span></td>
                        </tr>
                        <tr>
                            <td colspan=2>
                                <span style="color:#333; font-weight:bold">SEO优化</span>
                            </td>
                        </tr>
                        <tr>
                            <td>标题：
                            </td>
                            <td><input type="text" id="title_" name="title_" class="input" style="width:500px;" value="<%=getLStr("title") %>" />
                            </td>
                        </tr>
                        <tr>
                            <td>关键字：
                            </td>
                            <td><input type="text" id="key_" name="key_" class="input" style="width:500px;" value="<%=getLStr("tkey") %>" />
                            </td>
                        </tr>
                        <tr>
                            <td>描述：
                            </td>
                            <td><input type="text" id="des_" name="des_" class="input" style="width:500px;" value="<%=getLStr("tdes") %>" />
                            </td>
                        </tr>
                        <script type="text/javascript">
                            var fc='<%=results %>';
                            var i = 2;
                            if(fc=="true"){
                                tipsWindown("提示","text:操作成功！","250","60","true","","true","");
                                setInterval("fun()", 1000);
                            }
                            if(fc=="false"){
                                tipsWindown("提示","text:操作失败！","250","60","true","3000","true","");
                            }
                            function fun() {
                                if (i == 1) {
                                    window.location.href="TabList.aspx";
                                }
                                i--;
                            }
                        </script>
                        <tr>
                            <td style="width:15%">目录名称：</td>
                            <td style="width:85%"><input type="text" runat="server" id="txt_tdname" class="input"/>&nbsp;<em>输入英文</em>
                             </td>
                        </tr>
                        <tr>
                            <td>排序：</td>
                            <td><input type="text" runat="server" id="txt_sort" style="width:50px" class="input" value="0" onkeyup="value=value.replace(/[^\d]/g,'')"
                                    onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" maxlength="4" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" class="list-foot">
                                <input type=button class="btn-app" runat=server id="button1" title="保存" onserverclick="button1_ServerClick"/>
                                <input type=button class="btn-res" onclick="reset();return false;" title="重置"/>
                            </td>
                        </tr>
                    </table>
                    <script type="text/javascript">tdshowm("list");</script>
                </div>
            </div>
        </div>
    </form>
</body>
</html>

