<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.System_SearchKey_Operate, V5Shop.Shop.Config" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>    
<!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 runat="server">
    <title>关键字添加/编辑</title>
<link href="css/css.css" rel="stylesheet" type="text/css"/>
<link href="css/css_list.css" rel="stylesheet" type="text/css"/>
<link href="css/control.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" language="javascript" src="js/Common.js"></script>
<script type="text/javascript" src="editor/fckeditor.js"></script>
</head>
<body>
    <form id="form1" runat="server">
            <div class="OperateTitle">
        <div>
            <asp:Label ID="lblAdd" runat="server" Text="【 关键字添加 】"></asp:Label> 
            <asp:Label ID="lblEdit" runat="server" Text="【 关键字编辑 】" Visible="false"></asp:Label> 
            <a href="System_SearchKey_Manage.aspx" title="返回关键字列表">返回列表</a>
        </div>
        </div>
     <div>
       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="OperateTable">
       <tr class="FFtr">
        <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
            <cc1:HelpCtrl ID="HelpCtrl3" runat="server" FontColor="red" Header="关键字" ImageURL="images/help.gif"
                Text="客户经常搜索或网站推荐的产品关键词。如：女包，瑞士军刀等" />
        <asp:Label ID="lblName" runat="server" Text="关键字：" ></asp:Label> 
        </td>
        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
        <asp:TextBox ID="txtName" runat="server" MaxLength="150" Width="300px"></asp:TextBox>  <span class="NeedMsg">*</span>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtName" runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
            </td>
        </tr>

       <tr class="F7tr">
        <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
        <asp:Label ID="lblType" runat="server" Text="搜索类型：" ></asp:Label> 
        </td>
        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
            <asp:DropDownList ID="ddlType" runat="server">
            </asp:DropDownList><span class="NeedMsg">*</span>&nbsp;
            </td>
        </tr>
       <tr class="FFtr">
        <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
            <cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="搜索次数" ImageURL="images/help.gif"
                Text="可根据用户在前台搜索的次数自动统计。也可以在此处直接修改。注意：同一关键字，类型不同，则不会累加" />
        <asp:Label ID="lblTemplate" runat="server" Text="搜索次数：" ></asp:Label> 
        </td>
        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
        <asp:TextBox ID="txtCount" runat="server" MaxLength="150" Width="300px"></asp:TextBox>  <span class="NeedMsg">*</span>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtCount" runat="server" ErrorMessage="不能为空" Display="Dynamic"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtCount"
                Display="Dynamic" ErrorMessage="只能为数字" ValidationExpression="\d*"></asp:RegularExpressionValidator></td>
        </tr>
        
       <tr class="F7tr">
        <td align="right" bgcolor="#FFFFFF" style="height: 30px; width: 20%;">
            <cc1:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="是否显示" ImageURL="images/help.gif"
                Text="如果不选中此项，该关键词不会在前台显示" />
        <asp:Label ID="lblIsShow" runat="server" Text="是否显示：" ></asp:Label> 
        </td>
        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
            <input id="cbIsShow" class="checkbox" type="checkbox" runat="server" value="1"/><span class="NeedMsg"></span></td>
        </tr>
        <tr class="fftr">
                <td align="right" bgcolor="#FFFFFF" style="width: 20%; height: 30px;"></td>
        <td bgcolor="#FFFFFF" align="left" style="height: 30px">
        <asp:Button ID="btnAdd" runat="server" Text="确定" OnClick="btnAdd_Click"  CssClass="button" />
        <asp:Button ID="btnEdit" runat="server" Text="更新" OnClick="btnEdit_Click" Visible="False"  CssClass="button" />
        <input id="iptReset" runat="server" type="reset" value="重置" class="button" />    
        <input id="btnReturn" runat="server" type="button" value="返回列表" onclick="window.location.href='System_SearchKey_Manage.aspx'" class="button"/>    
        </td>
        </tr>        
       </table>  
       <script type="text/javascript">
            //加TABLE样式
            InitTrClass();
       </script>
	 </div>
    </form>
    <uc1:PageBottom ID="PageBottom1" runat="server" />
</body>
</html>
