<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="houseview.aspx.cs" Inherits="HeyuanHouse.Web.houseview" %>
<%@ Register src="siteheader.ascx" tagname="siteheader" tagprefix="uc1" %>
<%@ Register src="sitefooter.ascx" tagname="sitefooter" tagprefix="uc2" %>
<!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><%= HouseInfo.title + " " + HouseInfo.zone%>  -河房网 - 河源二手房 - www.0762h.com</title>
<link href="/images/style.css" rel="stylesheet" type="text/css" />
<%
if (HouseInfo.maplnglat != string.Empty)
{
%>
<script type="text/javascript" src="/editor/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
  var iscanmake = false ;
  var map ;
  var latlng = new google.maps.LatLng<%= HouseInfo.maplnglat %> ;
  function mapInit() {
    var myLatlng = latlng ;
    var myOptions = {
      zoom: 15,
      center: myLatlng,
      mapTypeControl: false,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    map = new google.maps.Map(document.getElementById("map"), myOptions);
    
    var contentString = '<h3><%= HouseInfo.roomtypedesc %></h3>小区名称： <%= HouseInfo.zone %><br />所在区域： <%= HouseInfo.areaname %> <br />' ;
        
    var infowindow = new google.maps.InfoWindow({
        content: contentString
    });

    var marker = new google.maps.Marker({
        position: latlng ,
        map: map,
        title: '房源地图位置'
    });
    
    infowindow.open(map,marker);
  }
  
  $(document).ready(mapInit);  
</script>
<%
}
%>
<style type="text/css">
.bigbtn {
	PADDING-RIGHT: 6px; DISPLAY: block; PADDING-LEFT: 35px; FONT-SIZE: 16px; BACKGROUND: url(/images/otherbg.png) no-repeat 0px -98px; FLOAT: left; PADDING-BOTTOM: 9px; WIDTH: 187px; COLOR: #0082cb; PADDING-TOP: 9px; FONT-FAMILY: simsun; TEXT-ALIGN: center
}
</style>
</head>
<body>
<form id="form1" runat="server">
<uc1:siteheader ID="siteheader1" runat="server" />
<div id="sitenav">您现在的位置：<a href="/">河房网</a> &gt;&gt;浏览房源详情</div>
<div class="main">
<script type="text/javascript">/*960*60，创建于2011-5-27 房源展示页*/ var cpro_id = 'u489482';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script>
</div>
<div class="main">
<div class="boxright">
<div id="renshow">
<img src="/avatar/<%= MemberInfo.avatar == string.Empty ? "nophoto.gif" : MemberInfo.avatar%>" width="120" height="150" alt="<%= MemberInfo.username %>的头像" />
<h5 style="text-align:center; margin-top:15px"><%= MemberInfo.username%></h5>
<% if (AgentInfo != null)
   { %>
<a href="/agent/?uid=<%= MemberInfo.uid %>" title="进入我的网上店铺"><img src="/images/jjr_entershop.jpg" alt="进入经纪人店铺图标" style="width:112px;height:25px" /></a> <br />
<% } %>

<% if (BrokerInfo != null)
   { %>
<a href="/broker/?uid=<%=BrokerInfo.uid%>" target="_blank" title="进入<%=BrokerInfo.brokername%>网上店铺"><img src="/images/jjr_entershop.jpg" alt="进入房产中介店铺图标" style="width:112px;height:25px" /></a> <br />
<% }%>
</div>
</div>
<div class="boxlefts">
<div id="myistit">
   <h2><img src='<%=HouseInfo.sourcetype == 1 ? "/images/iconzu.gif" : "/images/iconsou.gif" %>' border="0" /> <%= HouseInfo.title%></h2> (发布日期：<%= HouseInfo.datecreated.ToShortDateString()%>) <br />
</div>
<div id="myishow">
<h3><%= HouseInfo.roomtypedesc%></h3>
小区名称： <%= HouseInfo.zone%><br />
所在区域： <%= HouseInfo.areaname%> <br /> 
<%= HouseInfo.sourcetype == 1 ? ("出租租金：" + (HouseInfo.rentmoney == 0 ? "面议" : ("<span>" + HouseInfo.rentmoney.ToString() + "</span>元/月"))) : ("出售价格：" + (HouseInfo.sellmoney == decimal.Zero ? "面议" : "<span>" + HouseInfo.sellmoney.ToString() + "</span>万元"))%> <br />
家具设施： <%= HouseInfo.furnishings%><br />
详细信息：<%= HouseInfo.orientation == string.Empty ? "" : "朝" + HouseInfo.orientation + "，"%><%= HouseInfo.houseclass%>，<%= "第" + HouseInfo.floorno + "层/共" + HouseInfo.totalfloor + "层"%>，<%= HouseInfo.roomtypedesc%>，<%= HouseInfo.buildingarea%>平米，<%= HouseInfo.decorate%>  <br />
<br />
联系电话：<span><%= HouseInfo.linktel%></span> <br />
联 系 人：<%= HouseInfo.linkman%> (联系时您可以这样说:“您好，我从河房网看到...”) <br />

<% if (AgentInfo != null)
   { %>
<br />
提示：本房源信息由 <strong><%= AgentInfo.companyname%></strong> 的经纪人 <strong><%= AgentInfo.realname.Length > 0 ? AgentInfo.realname : HouseInfo.linkman%></strong> 发布，您可以通过<%= AgentInfo.tel.Length > 0 ? "电话：" + AgentInfo.tel : ""%><%= AgentInfo.qq.Length > 0 ? "或QQ：" + AgentInfo.qq : ""%> 联系TA。
<% } %>

<% if (BrokerInfo != null)
   { %>
<br />
提示：本房源信息由 <a href="/broker/?uid=<%=BrokerInfo.uid%>" target="_blank" title="进入<%=BrokerInfo.brokername%>网上店铺"><strong><%= BrokerInfo.brokername%></strong></a> 发布 <br />
<fieldset>
  <legend> <%=BrokerInfo.brokername%></legend>
  电话：<%=BrokerInfo.tel%> QQ：<%=BrokerInfo.qq%> 地址：<%=BrokerInfo.address%> 
</fieldset>
<% } %>
</div>

<div id="myissay">
<!-- 这里是发布者发的说明 -->
<p>
<span style="font-size:20px">
<%= HouseInfo.detail%>
</span>
</p>
<% 
if (HouseInfo.isphoto)
{

    foreach (HeyuanHouse.Core.Model.HousePhoto photoInfo in HousePhotos)
    {
        Response.Write("<p style='padding:8px;'>");
        Response.Write("<img src='" + photoInfo.fullpath + "' border='0' />");
        Response.Write("</p>");
    }

}

if (HouseInfo.maplnglat != string.Empty)
{
%>

<p style="padding:8px;">
<div id="map" style="width: 600px; height: 330px;"></div>
</p>
<%
}
%>
</div>
</div>
  
</div>
<uc2:sitefooter ID="sitefooter1" runat="server" />
</form>
</body>
</html>