<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newhouselist.aspx.cs" Inherits="HeyuanHouse.Web.backend.newhouselist" %>
<%@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=uft-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>
</head>
<body>
<form id="Form1" runat="server">
<div class="sdcms_notice">
  <span>新房搜索：</span>  
  关键词：<asp:TextBox runat="server" ID="txtSearchKeyword" /> 
  &nbsp; 
  <asp:Button runat="server" ID="btnSearch" Text="搜索" onclick="btnSearch_Click" />
</div>
<br>
<ul id="sdcms_sub_title">
	<li class="sub">新房管理</li>
</ul>
<div id="sdcms_right_b">
  <asp:DataGrid runat="server" ID="dgNewHouseList" 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="hid" onitemcommand="dgNewHouseList_ItemCommand" 
      onitemcreated="dgNewHouseList_ItemCreated">
     <Columns>
        <asp:TemplateColumn HeaderText="楼盘LOGO" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <img src='<%# DataBinder.Eval(Container.DataItem, "logo")%>' width="170" height="75" />
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="楼盘形象图" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <img src='<%# DataBinder.Eval(Container.DataItem, "includepic")%>' width="139" height="109" />
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="楼盘名称" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <a href='/newhouse/view.aspx?hid=<%# DataBinder.Eval(Container.DataItem, "hid")%>'  target="_blank"><%# DataBinder.Eval(Container.DataItem, "housename")%></a>
           </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>
              <asp:CheckBox ID="chkiscommended" runat="server" Checked='<%# (bool)DataBinder.Eval(Container.DataItem, "iscommended")%>' Enabled="false" />
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="操作" ItemStyle-HorizontalAlign="Center">
             <ItemTemplate>
                <a href="">留言</a> | 
                <a href="newhousephotolist.aspx?hid=<%# DataBinder.Eval(Container.DataItem, "hid")%>">楼盘相册</a> | 
                <a href="newhouseedit.aspx?hid=<%# DataBinder.Eval(Container.DataItem, "hid")%>&action=edit">编辑</a> | 
                <asp:LinkButton runat="server" ID="lnkCheck" CommandArgument="CheckInfo" Text="推荐" /> | 
                <asp:LinkButton runat="server" ID="lnkDelete" CommandArgument="DeleteInfo" Text="删除" Enabled="false" />
             </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>
