<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="ConfigJu2.aspx.cs"
    Inherits="ETongJin.Search.Web.Admin.ConfigJu2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <script type="text/javascript">
function CheckAll(obj)
{
var allcheck = document.getElementsByName("id");
for(i=0;i<allcheck.length;i++)
{
allcheck[i].checked = obj.checked;
}
}
</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table class="tableBorder" border="0" cellpadding="3" cellspacing="1" id="demo_table">
    <tr>
      <th colspan="5"> 聚合热门搜索设置 </th>
    </tr>
    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
      <HeaderTemplate>
        <tr style="text-align: center;">
          <td width="6%" class="td2"> 序号 </td>
          <td width="18%" class="td2"> 类别名称 </td>
          <td width="12%" class="td2"> 是否显示 </td>
          <td class="td2"> 热门关键词中包含 </td>
          <td width="10%" class="td2"> 相关操作 </td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr align="center">
          <td><asp:TextBox ID="itemOrderid" runat="server" Text='<%#Eval("OrderId") %>' CssClass="ym12_input2" Width="30px"></asp:TextBox>
            <asp:HiddenField ID="hdId" Value='<%#Eval("id") %>' runat="server" />
          </td>
          <td><asp:TextBox ID="itemTitle" runat="server" Text='<%#Eval("title")%>' CssClass="ym12_input2" ></asp:TextBox></td>
          <td><asp:CheckBox ID="itemShow" runat="server" Text="显示" Checked='<%#Eval("isshow") %>' /></td>
          <td class="td4"><asp:TextBox ID="itemKeywords" runat="server" TextMode="MultiLine" Rows="4" Width="98%" Columns="30" Text='<%#Eval("keywords")%>'></asp:TextBox></td>
          <td><asp:LinkButton ID="LinkButton1" CommandArgument="0" runat="server" CausesValidation="false">修改</asp:LinkButton>
            <asp:LinkButton ID="LinkButton2" CommandArgument="1" runat="server" CausesValidation="false" OnClientClick="return confirm('您将删除这条记录!!?删除后不可恢复');">删除</asp:LinkButton>
          </td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
    <tr>
      <th colspan="5">添加热门关键词</th>
    </tr>
    <tr>
      <td colspan="5" style="background:#FFFFFF"><table width="100%" border="0" cellpadding="3" cellspacing="1">
          <tr>
            <td width="150" class="td2"> 热门关键词： </td>
            <td class="td1"><asp:TextBox ID="txtTitle" runat="server" CssClass="ym12_input2"></asp:TextBox>
            </td>
          </tr>
          <tr>
            <td class="td2"> 排序ID： </td>
            <td class="td1"><asp:TextBox ID="txtOrder" runat="server" CssClass="ym12_input2">1</asp:TextBox>
            </td>
          </tr>
          <tr>
            <td class="td2"> 热门关键词中包含： </td>
            <td class="td1"><asp:TextBox ID="txtKeyWord" runat="server" Height="100px" TextMode="MultiLine" Width="80%"></asp:TextBox>
              <br />
              多个关键词之间请用&quot;|&quot;分割,结尾不要有&quot;|&quot;。 </td>
          </tr>
          <tr>
            <td class="td2"> 是否显示： </td>
            <td class="td1"><asp:RadioButtonList ID="rblShow" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Selected="True" Value="1">显示</asp:ListItem>
                <asp:ListItem Value="0">不显示</asp:ListItem>
              </asp:RadioButtonList>
            </td>
          </tr>
          <tr>
            <td colspan="2" class="td3"> <asp:Button ID="Button2" runat="server" Text="确认更新" OnClick="Button1_Click" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" />
            </td>
          </tr>
        </table></td>
    </tr>
  </table>
<script language="JavaScript">
	tigra_tables('demo_table', 2, 2, '#ffffff', '#F8F8F8', '#F1F3F5', '#71ADDA');
</script>
</asp:Content>
