<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="Contribution.aspx.cs"
    Inherits="ETongJin.Search.Web.Admin.Contribution" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <script type="text/javascript">
function CheckAll(obj)
{
var allcheck = document.getElementsByName("userid");
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="8"> 用户贡献列表 </th>
    </tr>
    <tr>
      <td colspan="8" class="date"><div class="dateinput">搜索：
        <asp:DropDownList ID="ddlSearchType" runat="server">
          <asp:ListItem Text="关键词" Value="0"></asp:ListItem>
          <asp:ListItem Text="用户ID" Value="1"></asp:ListItem>
        </asp:DropDownList>
        <input style="display:none" />
        <asp:TextBox ID="txtKeyWords" runat="server" Text="关键字" onfocus="if(this.value=='关键字')this.value='';" CssClass="ym12_input2"></asp:TextBox>
        <asp:Button ID="Button4" runat="server" Text=" 提交 " OnClick="Button4_Click" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" /></div></td>
    </tr>
    <tr>
      <td width="5%" class="td1"> 选中 </td>
      <td class="td1"> 搜索关键词 </td>
      <td width="15%" class="td1"> 来路 </td>
      <td width="8%" class="td1"> 用户编号 </td>
      <td width="15%" class="td1"> 点击IP </td>
      <td width="18%" class="td1"> 点击时间 </td>
      <td width="8%" class="td1"> 常规操作 </td>
    </tr>
    <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
      <ItemTemplate>
        <tr align="center">
          <td><input name='userid' type='checkbox' value='<%#Eval("id") %>' /></td>
          <td class="td4"><asp:HyperLink ID="HyperLink1" Target="_blank" Text='<%#Eval("word") %>' runat="server"></asp:HyperLink></td>
          <td class="td4"><%#Eval("add1") %>， <%#Eval("add2")%> </td>
          <td><asp:HyperLink ID="HyperLink2" NavigateUrl='<%#"Edit.aspx?i="+Eval("userid") %>' runat="server"><%#Eval("userid") %></asp:HyperLink></td>
          <td><%#Eval("IP") %> </td>
          <td><%#Eval("addTime") %> </td>
          <td><asp:LinkButton ID="btnDel" runat="server" OnClick="btnDel_Click" CommandArgument='<%# Eval("id")%>' OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');">删除</asp:LinkButton>
          </td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
    <tr>
      <td colspan="8" class="td2"><div id="tnt_pagination"> <%= PageStr%></div></td>
    </tr>
    <tr>
      <td class="td3"><input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this)' value='checkbox' /></td>
      <td colspan="7" class="td5"><asp:Button ID="Button7" runat="server" Text="批量删除" OnClick="ButtonClick" CommandArgument="2" OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" />
          <asp:Button ID="Button8" runat="server" Text="全部删除" CommandArgument="2" OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" onclick="Button8_Click" /></td>
    </tr>
  </table>
<script language="JavaScript">
	tigra_tables('demo_table', 3, 2, '#ecfbd4', '#ffffff', '#e5f1f4', '#bce774');
</script>
</asp:Content>
