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

<%@ Register src="membernav.ascx" tagname="membernav" tagprefix="uc1" %>
<%@ Register src="../siteheader.ascx" tagname="siteheader" tagprefix="uc2" %>
<%@ Register src="../sitefooter.ascx" tagname="sitefooter" tagprefix="uc3" %>
<!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>河房网 - 专业的房产信息交易平台 - www.0762h.com</title>
<link href="../images/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<uc2:siteheader ID="siteheader1" runat="server" />
<div id="sitenav">您现在的位置：<a href="/">河房网</a> &gt;&gt; <a href="/member/">会员中心</a></div>
<div class="main">
<div class="boxright">
<uc1:membernav ID="membernav1" runat="server" />
</div>
  <div class="boxlefts">
  
<div class="TabTitle">
        <ul>
          <asp:PlaceHolder runat="server" ID="phHouseTabHiring">
            <li class="active"><a href="request.aspx?t=hiring">求租信息</a></li>
            <li class="normal"><a href="request.aspx?t=buy">求购信息</a></li>
          </asp:PlaceHolder>
          <asp:PlaceHolder runat="server" ID="phHouseTabBuy" Visible="false">
            <li class="normal"><a href="request.aspx?t=hiring">求租信息</a></li>
            <li class="active"><a href="request.aspx?t=buy">求购信息</a></li>
          </asp:PlaceHolder>
        </ul>
       </div>
<div id="myissay">
  <table width="100%" border="0" cellpadding="8" cellspacing="1"  bgcolor="#e0e0e0">  
    <tr bgcolor="#ebebeb" style="font-weight:bold;">
      <td width="20">&nbsp;</td>
      <td width="60">编号</td>
      <td>信息描述标题</td>
      <td width="80">发布时间</td>
      <td width="100">操作</td>
      </tr>
  </table>
   
<table width="100%" border="0" cellpadding="8" cellspacing="1" bgcolor="#ebebeb">
  <asp:Repeater runat="server" ID="rptRequestList">
    <ItemTemplate>
      <tr>
      <td width="20" bgcolor="#FFFFFF"><label>
        <asp:CheckBox runat="server" ID="chkSelectItem" />
        <asp:TextBox runat="server" ID="txtSelectItemValue" Text='<%# DataBinder.Eval(Container.DataItem, "hid")%>' Visible="false" />
      </label></td>
      <td width="60" bgcolor="#FFFFFF"><%# DataBinder.Eval(Container.DataItem, "hid")%></td>
      <td bgcolor="#FFFFFF"><%# DataBinder.Eval(Container.DataItem, "title")%></td>
      <td width="80" bgcolor="#FFFFFF"><%# ((DateTime)DataBinder.Eval(Container.DataItem, "datecreated")).ToShortDateString()%></td>
      <td width="100" bgcolor="#FFFFFF">
        <a href='<%# GetEditLink(DataBinder.Eval(Container.DataItem, "hid"))%>'>修改</a>
      </td>
      </tr>
    </ItemTemplate>
  </asp:Repeater>  
 
  </table> 
  
  <table border="0" cellpadding="5" cellspacing="1" width="100%" class="Paging">
    <tr>
      <td width="100%">
        <webdiyer:AspNetPager id="pager" runat="server" AlwaysShow="True" ShowCustomInfoSection="Left" Width="80%" OnPageChanged="pager_PageChanged" ShowSelectBox="Never"></webdiyer:AspNetPager>  
      </td>
     </tr>
   </table>
  <div class="member_right_bottom">			
    <input id="Checkbox1" name="chkSelectAll" type="checkbox" runat="server" onclick="javascript:SelectAll(this);" />全选 
    <asp:Button runat="server" ID="btnDelete" Text="删除选中信息" 
          onclick="btnDelete_Click" /> 
  </div> 
</div>
    
</div>

</div>
<uc3:sitefooter ID="sitefooter1" runat="server" />
</form>
<script language="javascript" type="text/javascript">
function SelectAll(theBox)
{
    var elm=document.form1.elements;
    for(i=0;i<elm.length;i++)
    if(elm[i].type=="checkbox" && elm[i].name!=theBox.name)
    {
        elm[i].checked=theBox.checked ;
    }
}
function CheckDeleteHandle(btn)
{
    var elm=document.form1.elements;
    var flag = false ;
    for(i=0;i<elm.length;i++) 
    if(elm[i].type=="checkbox")
    {
        if (elm[i].checked)
        {
          flag = true ;
          break ;
        }
    }
    
    if (flag)
    { 
        return confirm('确认要删除选择的信息？') ;
    }
    else
    {
        alert("你没有选择任何信息，请选择！") ;
        return false ;
    }
}
</script>
</body>
</html>