<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="newhouseedit.aspx.cs" Inherits="HeyuanHouse.Web.backend.newhouseedit" ValidateRequest="false" %>
<!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/jquery/jquery-ui-custom.min.js"></script>
<script type="text/javascript" src="editor/xheditor/jquery.js"></script>
<script type="text/javascript" src="editor/xheditor/editor.js"></script>
<link type="text/css" href="../editor/jquery/theme/redmond/jquery-ui-custom.css" rel="stylesheet" />	
<script type="text/javascript" src="../editor/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../editor/jquery/jquery-ui-custom.min.js"></script>
<script type="text/javascript">

</script>
<script language="javascript" type="text/javascript">
 function setMetaData(obj , content)
 {
     document.getElementById(obj).value = content ;
 }
</script>
</head>
<body>
<form id="Form1" runat="server">
<div class="sdcms_notice"><span>管理操作：</span><a href="newhouselist.aspx">新房管理</a></div>
<br />
<ul id="sdcms_sub_title">
	<li class="sub">基本设置</li>
</ul>
<div style="visibility:hidden;position:absolute;margin:0 0 0 176px;*margin:-27px 0 0 88px;border:1px solid #FCBA72;background:#fff;padding:5px 10px;width:280px;" id="search"><img src="images/close.gif"  style="position:absolute;margin:10px 0 0 242px;cursor:pointer;" onclick="$('#search')[0].style.visibility='hidden'" alt="关闭" />关键字：<input name="keyword" class="input" value="" /> <input type="button" class="bnt01" value="搜索">
</div>
<div id="sdcms_right_b">
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" id="tagContent0">
	<tr>
      <td width="100" align="center" class="tdbg">楼盘名称：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txthousename" CssClass="input" Width="270px" /></td>
    </tr>
    <tr class="tdbg" id="sdcms_pic">
      <td align="center" >楼盘LOGO：</td>
      <td><asp:TextBox runat="server" ID="txtlogo" CssClass="input" Width="270px" /> &nbsp;<input name="button" type="button" onclick="window.open('upload.aspx?parentobj=txtlogo','上传文件','top=100,left=400,width=450,height=250, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');" value="上传" />  <span>可为空，建议规格：170*75</span></td>
    </tr>
    <tr class="tdbg" id="Tr1">
      <td align="center" >楼盘形象图：</td>
      <td><asp:TextBox runat="server" ID="txtincludepic" CssClass="input" Width="270px" /> &nbsp;<input name="button" type="button" onclick="window.open('upload.aspx?parentobj=txtincludepic','上传文件','top=100,left=400,width=450,height=250, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');" value="上传" />  <span>建议规格：421*266</span></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">楼盘广告：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txttopad" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">楼盘地址：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtaddress" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">售楼电话：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txttel" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">客服QQ：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtqq" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">电子邮箱：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtemail" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">楼盘起价：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtminprice" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">楼盘均价：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtaverageprice" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">电子沙盘：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtmodel" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">视频看房：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txthousevideo" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">楼盘地图：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtmaplnglat" CssClass="input" Width="270px" /> <input type="button" id="btnShowMap" value="地图标注" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">开盘时间：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtopentime" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">建筑形式：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txthousetype" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">装修情况：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtdecorate" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">开发商：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtdeveloper" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">工作时间：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtofficehours" CssClass="input" Width="270px" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">所在区域：      </td>
      <td  class="tdbg"><asp:DropDownList runat="server" ID="ddlarea" DataValueField="aid" DataTextField="name" /></td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">参数设置：      </td>
      <td  class="tdbg">
        销售状态：<asp:RadioButtonList runat="server" ID="rblsellstatus" RepeatLayout="Flow" RepeatDirection="Horizontal">
          <asp:ListItem Text="不设置" Value="0" Selected />
          <asp:ListItem Text="即将开盘" Value="1" />
          <asp:ListItem Text="在售" Value="2" />
          <asp:ListItem Text="尾盘" Value="3" />
          <asp:ListItem Text="售罄" Value="4" />
        </asp:RadioButtonList>
        <asp:CheckBox runat="server" ID="chkiscommended" Text="推荐" />
      </td>
    </tr>
    <tr>
      <td width="100" align="center" class="tdbg">浏览次数：      </td>
      <td  class="tdbg"><asp:TextBox runat="server" ID="txtviews" CssClass="input" Width="270px" Text="0" /></td>
    </tr>
   <tr class="tdbg" id="flag3">
      <td align="center">楼盘介绍：</td>
      <td>
      <asp:TextBox runat="server" ID="txtresume" Rows="20" Columns="100" Width="80%" TextMode="MultiLine" CssClass="xheditor" />
      </td>
    </tr>
  </table>  
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" >
    <tr class="tdbg">
	  <td width="100">&nbsp;</td>
      <td><asp:CheckBox runat="server" ID="chkIsSaveRemotePhoto" /><label for="t15">保存远程图片</label>
	  <br><asp:Button runat="server" CssClass="bnt" Text="保存" ID="btnSave" onclick="btnSave_Click" /> </td>
	  </tr>
  </table>
  <script type="text/javascript" language="javascript">
    document.getElementById("rbtislinkyes").onclick = function() 
    { 
        if (this.checked)
        {
           document.getElementById("flag1").style.display = "block" ;
        }
    } ;
    
    document.getElementById("rbtislinkno").onclick = function() 
    { 
        if (this.checked)
        {
           document.getElementById("flag1").style.display = "none" ;
        }
    } ;
    
    if (document.getElementById("rbtislinkyes").checked)
    {
        document.getElementById("rbtislinkyes").click() ;
    }
  </script>
</div>
<!-- 遮罩类弹出层 -->
<div id="divIframe" title="地图标注" style="text-align:center;">
   <iframe frameborder="0" style="width:610px ; height:400px" id="mapIframe"></iframe>
</div>
<input type="button" id="btnCloseMapFrame" style="display:none" />
<script type="text/javascript">    
    //btnShowMap
    /*==========事件绑定==========*/
    $(function()
    {
        //遮罩类弹出层
        $("#btnShowMap").click(function(event)
        {
            event.preventDefault();
            event.stopPropagation();
            
            $("#divIframe").dialog("open");
            document.getElementById("mapIframe").src = "../member/googlemap.aspx" ; // "map.aspx" ;
        });

        //单击自身取消冒泡
        $("#divIframe").bind("click", function(event)
        {
            event.stopPropagation();
        });

        //document对象单击隐藏所有弹出层
        $(document).bind("click", function(event)
        {
            $("#divIframe").dialog("close");
        });
        
        //document对象单击隐藏所有弹出层
        $("#btnCloseMapFrame").bind("click", function(event)
        {
            $("#divIframe").dialog("close");
        });
    });
    
    /*==========加载时执行的语句==========*/
    $(function()
    {
        //初始化遮罩类弹出层
        $("#divIframe").dialog({
            show: null,
            bgiframe: false,
            autoOpen: false,
            draggable: true,                
            resizable: false,
            modal: true,
            width: 620,
            height: 410
        });            
    });
</script>
</form>
</body>
</html>