<%@ page language="C#" autoeventwireup="true" inherits="WebAdmin_SearchKeyList, 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 href="css/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/checked.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 src="js/topHead.js" type="text/javascript"></script>
    <script type="text/javascript">
        function validate(){
            var flag=true;
            if(document.getElementById("txt_name").value==""){
                document.getElementById("msg_name").innerHTML="<span  class='msg_submit'>关键字不能为空！</span>"
                flag=false;
            }else{
                document.getElementById("msg_name").innerHTML="";
            }
            return flag;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" onsubmit="return validate()">
         <script>header(6,8,"images/");</script>
   
    <!--面包屑-->
    <div class="blank clearfix"></div>
    
    <!--功能区-->
   <div class="tabmenus mainwidth">
        <ul>
            <li><a href="SearchKeyList.aspx"><span>关键字管理</span></a></li>
            <li class="current"><a href="SearchKeyAdd.aspx"><span>关键字添加</span></a></li>
        </ul>
    </div>
    <div class="tab-mainbody">
        <div class="tab-mainbody2">
        <div class="functionHandleArea clearfix">
            <input id="Button2" type="button"  runat="server" class="btn-app" onserverclick="Button2_ServerClick"/>
                    <input type="image"  title=" 重填 " onClick="reset();return false;" src="images/bt_res.gif" align="absmiddle" />
                    <input type="image" title=" 返回 " onclick="history.back();return false;" src="images/bt_bak.gif" align="absmiddle" />
        </div>
        <div id="datalist">
            <table cellpadding="0" cellspacing="0" width="100%" border="0" id="list">
                <tr>
                    <th style="width:12%;">关键词添加</th><th><span class="title_r" id="msg_sub"></span></th>
                     <script type="text/javascript">
                        var $=jQuery;
                        var i = 2;
                        var f="<%=Session["returnValue"] %>";
                        if(f=="true"){
                            tipsWindown('操作结果','text:操作成功！','250','60','true','2000','true','text');
                            <% Session["returnValue"]= null; %>
                            setInterval("fun()", 1000);
                        }
                        if(f=="false"){
                            tipsWindown('操作结果','text:操作失败！','250','60','true','2000','true','text');
                            <% Session["returnValue"]= null; %>
                        }
                        function fun() {
                            if (i == 1) {
                                window.location.href="SearchKeyList.aspx";
                            }
                            i--;
                        }
                    </script>
                </tr>
                <tr >
                    <td >
                        链接名称：
                    </td>
                    <td >
                        <input type="text" runat="server" id="txt_name" class="input"/>&nbsp;<span id="msg_name" runat="server"></span>
                    </td>
                </tr>
                <tr >
                    <td >
                        链接属性：
                    </td>
                    <td >
                        <input id="Radio1" type="radio" checked  runat=server/>内链<input id="Radio2" type="radio" runat=server/>外链
                    </td>
                </tr>
                <tr >
                    <td >
                        链接地址：
                    </td>
                    <td >
                        <input type="text" runat="server" id="txt_url" class="input"/>
                    </td>
                </tr>
                <tr >
                    <td >
                        排序序号：
                    </td>
                    <td >
                        <input type="text" runat="server" id="txt_sort" class="input" value="0" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="list-foot">
                        <input id="Button1" type="button"  runat="server" class="btn-app" onserverclick="Button2_ServerClick"/>
                    </td>
                </tr>
            </table>
            <script type="text/javascript">tdshowm("list");</script>
            </div>
        </div></div>
    </form>
</body>
</html>
