<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="brokerlist.aspx.cs" Inherits="HeyuanHouse.Web.backend.brokerlist" %>
<%@Register TagPrefix="Webdiyer" Namespace="Wuqi.Webdiyer" Assembly="aspnetpager"%>

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>河房网网站管理系统</title>
<link href="images/sdcms.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="javascript" src="images/sdcms.js" type="text/javascript"></script>
<script type="text/javascript" src="editor/xheditor/jquery.js"></script>
</head>
<body>
<form id="Form1" runat="server">
<div class="sdcms_notice"><span>管理操作：</span></div>
<br />
<ul id="sdcms_sub_title">
	<li class="sub"><a>房产中介管理</a></li>
</ul>
<div id="sdcms_right_b">
  <asp:DataGrid runat="server" ID="dgBrokerList" AutoGenerateColumns="false" 
            BorderWidth="0" HorizontalAlign="Center" CellPadding="3" CellSpacing="1" 
            CssClass="table_b" HeaderStyle-CssClass="title_bg" 
            FooterStyle-BackColor="#ffffff" FooterStyle-HorizontalAlign="Center" FooterStyle-Height="33"
            UseAccessibleHeader="true" ShowFooter="false" ShowHeader="true" 
            DataKeyField="uid" onitemcommand="dgBrokerList_ItemCommand" 
        onitemcreated="dgBrokerList_ItemCreated">
     <Columns>
        <asp:TemplateColumn HeaderText="选择" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <asp:CheckBox runat="server" ID="chkIsSelect" CssClass="input" />
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="中介名称" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "brokername")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="审核情况" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
             <%# (bool)DataBinder.Eval(Container.DataItem, "ischecked") ? "已审核" : "未审核"%>  
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="浏览" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "views")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="开通时间" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "datecreated")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="操作" ItemStyle-HorizontalAlign="Center">
             <ItemTemplate>
                <a href="/broker/uid=<%# DataBinder.Eval(Container.DataItem, "uid")%>" target="_blank">浏览网店</a> | 
                <asp:LinkButton runat="server" ID="lnkCheck" CommandArgument="CheckInfo" Text="审核/反审" /> |
                <a href="brokeredit.aspx?uid=<%# DataBinder.Eval(Container.DataItem, "uid")%>">编辑</a> |
                <asp:LinkButton runat="server" ID="lnkDelete" CommandArgument="DeleteInfo" Text="删除" />
             </ItemTemplate>
        </asp:TemplateColumn>
     </Columns>
  </asp:DataGrid> 
  <table border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
  <tr>
    <td colspan="9" class="tdbg" align="center">
      <webdiyer:AspNetPager id="pager" runat="server" AlwaysShow="True" ShowCustomInfoSection="Left" Width="80%" OnPageChanged="pager_PageChanged" ShowSelectBox="Never"></webdiyer:AspNetPager>
     </td>
  </tr>
  </table>
</div>
</form>
</body>
</html>