<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdList.aspx.cs" Inherits="ETongJin.Search.Web.TuiGuang.AdList" %>
<!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/mainstyle.css"/>
<script language="JavaScript" src="js/tigra_tables.js"></script>
<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>
</head>
<body>
<form id="form1" runat="server">
  <div class="weizhi">
    <div class="weizhi_bj" id="titlebt" runat="server"> 广告管理</div>
  </div>
  <table class="tableBorder" border="0" cellpadding="3" cellspacing="1" id="demo_table">
    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand" OnItemDataBound="Repeater1_ItemDataBound">
      <HeaderTemplate>
        <tr align="center">
          <td width="5%" class="td1">&nbsp;</td>
          <td width="10%" class="td1"> 广告标题 </td>
          <td class="td1"> 关键词</td>
          <td width="20%" class="td1">广告状态</td>
          <td width="8%" class="td1"> 相关操作</td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr align="center">
          <td><input id="Checkbox1" type="checkbox" name="id" value="<%#Eval("id") %>" />
            <input id="Hidden1" type="hidden" runat="server" value='<%#Eval("id") %>' /></td>
          <td class="td4"><a href="<%#Eval("url") %>" target="_blank"> <%#Eval("title")%></a></td>
          <td class="td4"><asp:HyperLink ID="hlKeyWord" runat="server" Target="_blank" Text='<%#Eval("keyword") %>'></asp:HyperLink></td>
          <td><asp:Label ID="lbPosition" runat="server" Text='<%#Eval("adstatus") %>'></asp:Label></td>
          <td><asp:HyperLink ID="HyperLink1" NavigateUrl='<%#"ad.aspx?i="+Eval("id") %>' runat="server">修改</asp:HyperLink>
            <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="2" CausesValidation="false" OnClientClick="return confirm('您将删除这个广告!!?删除后不可恢复');">删除</asp:LinkButton></td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
    <tr>
      <td colspan="5" class="td2"><div id="tnt_pagination"><%= PageStr%></div></td>
    </tr>
    <tr>
      <td class="td3"><input id="Checkbox1" type="checkbox" name="chkAll" onclick="CheckAll(this);" /></td>
      <td colspan="4" class="td5"><asp:Button ID="Button1" runat="server" Text="批量删除" OnClientClick="return confirm('您确定删除选中的记录么?删除后不可恢复');" OnClick="Button1_Click" CssClass="btn" /></td>
    </tr>
  </table>
  <script language="JavaScript">
	tigra_tables('demo_table', 1, 2, '#ecfbd4', '#ffffff', '#e5f1f4', '#bce774');
</script>
</form>
</body>
</html>
