<!--2016-8-19 微信传图-->
<style>
	.mattersBox .leftImg .title{
		background:none;padding-top:0
	}
	.mattersBox .leftImg{ border-radius: 3px 0 0 3px; border-bottom: none;}
	.mattersBox { height: auto;}
	.mattersBox .leftImg{ height: auto;}
	.yz-bort{ border-top: 1px solid #cccccc;height:10px; overflow:hidden;}
	.pl50{ padding-left: 50px;}
	.pl20{ padding-left: 20px;}
	.addPicRight .text{ width: 530px; margin-left: 10px;}
	.addPicRight .addBtn{ padding: 0 5px; width: auto; margin: 6px 0 0 10px; background: none;color: #000;}
	.addPicRight .addBtn:hover{ background: no-repeat;}
	.pre{ position: relative;}
	.yz-ewm{ width: 327px; height: 100px; border: 1px solid #d9d9d9; border-radius: 4px; position: absolute; z-index: 10; left:116px;top:5px; background: #fff;}
	.yz-ewmr span{ position: absolute; right: 5px;top:1px; font-size: 16px; font-weight: bold; cursor: pointer;}
	.fl{ float: left;}
	.fr{ float: right;}
	.yz-ewm .yz-ewmi{ padding: 2px 14px; border-right: 1px solid #d9d9d9;}
	.yz-ewm .yz-ewmi img{ width: 97px; height: 97px;}
	.yz-ewm .yz-ewmw{position:relative; z-index: 11; width: 120px; height: 70px; padding-top: 30px;  text-align: center; color: #fff;  border-right: 1px solid #d9d9d9; background: url(http://esf.s.house365.com/zsb/images/v1.0/err.jpg) no-repeat;}
	.yz-ewm .yz-ewmw a{ color: #fff; text-decoration: underline; cursor: pointer;}
	.yz-ewm .fr{ width: 200px;}
	.yz-ewmt{ margin-top: 30px;}
	.yz-ewm p{ margin-left: 10px;}
</style>

<div id="centre" class="layout">
    <div class="centreInner ">
        <div class="mainInner radius5 "> 
            <!--头部 tab 开始-->
            <div class="titleTabBox">
                <div class="titleTab">
                    <div class="titleTabB clearfix">
                        <dl class="list">
                            <?php
                            if (isset($house_detail['infotype']) && $house_detail['infotype'] != '') {
                                $infotype = $house_detail['infotype'];
                            } else {
                                $infotype = 1;
                            }
                            foreach ($house['infotype'] as $k => $v) {
                                $select_infotype = '';
                                if ($k == $infotype) {
                                    $select_infotype = 'itemOn';
                                }
                                //判断可发布的房源类型
                                if (!in_array($k, $allow_publish_infotype)) {
                                    continue;
                                }
                            ?>
                            <dd id="<?=$k?>" class="item <?=$select_infotype?>"> 
                                <a class="link" href="####" id="<?=$k?>"> <?=$v?></a>
                            </dd>
                            <?php } ?>
                        </dl>
                    </div>
                </div>
            </div>
            <!--头部 tab 结束--> 
            <!--房源模板 开始-->
            <?php
            if ($method == 'add') {
                if (isset($template_num) && $template_num > 0) {
             ?>
            <div class="branchCommon radius5 " id="js_fymb"  >
                <div class="hd ">
                    <h3 class="h3">房源模板</h3>
                    <p class="text">还可保存<strong class="strong"><?= $remain_num ?></strong>套模板</p>
                    <p class="more"><a class="link"  target="_blank" href="<?= $url_template_manage ?>">编辑&gt;&gt;</a></p>
                </div>
                <div class="mod">
                    <div class="modInner" >
                        <div  class="jsTemplateBox templateBox clearfix">
                            <?php
                                if (is_array($template_list) && !empty($template_list)) {
                                    foreach ($template_list as $value) {
                             ?>
                                    <p class="item radius4" id="muban" ids="<?= $value['id'] ?>">
                                        <?= $value['template_name'] ?>
                                    </p>
                                <?php }} ?>
                        </div>
                    </div>
                </div>
            </div>
            <?php } else { ?>
            <div class="branchCommon radius5 ">
                <div class="hd ">
                    <h3 class="h3">房源模板</h3>
                    <p class="more"><a class="link" href="<?= $url_template_manage ?>" target="_blank">编辑&gt;&gt;</a></p>
                </div>
                <div class="mod">
                    <div class="modInner">
                        <div class="modInnerNone"><span class="text">您还没有保存出租房源模板</span><a class="link" href="<?= $url_template_manage ?>" target="_blank">快去添加吧&gt;&gt;</a></div>
                    </div>
                </div>
            </div>
            <?php }} ?>
           <?php if($house['broker_new_info'][0]['starlevel']>=5){?>
			<div class="add_new_sata_title">
			恭喜您，目前您已是最高星级5星！
			</div>
			<?php } else {?>
            <div class="add_new_sata_title">
            剩余<?php if($house['broker_new_info'][0]['distance_month']) {?><?php echo $house['broker_new_info'][0]['distance_month'];?>月<?php }?><?php if($house['broker_new_info'][0]['distance_days']) {?><?php echo $house['broker_new_info'][0]['distance_days'];?>天<?php }?>无违规记录，将升为<?php if($house['broker_new_info'][0]['starlevel']==5) {?><?php echo $house['broker_new_info'][0]['starlevel'];?><?php } else {?><?php echo $house['broker_new_info'][0]['starlevel']+1;?><?php }?>星!
            </div>

			<?php }?>
            <form action="<?= $url_house_submit ?>" id="jsForm_rent" method="post">
                <input type="hidden" name="infotype" value="<?=$infotype?>">
                <!--基本信息 开始-->
                <div class="branchCommon radius5 " id="js_jbxx">
                    <div class="hd ">
                        <h3 class="h3">基本信息</h3>
                        <p class="text"><span class="color">必填</span></p>
                    </div>
                    <div class="mod">
                        <div class="modInner">
                            <div class="forms">
                                <dl class="list">
                                    <dd class="list_item clearfix">
                                        <label class="label">小区：</label>
                                        <div class="fields nameInput jsNameInput">
                                            <div class="fgInput jsFgInput">
                                                <?php
                                                if (!isset($house_detail['blockshowname'])) {
                                                    $house_detail['blockshowname'] = '';
                                                } 
                                                if (!isset($house_detail['blockid'])) {
                                                    $house_detail['blockid'] = '';
                                                } 
                                                ?>
                                                <label class="labelPrev jslabelPrev" for="blockshowname" id="jsLabelBlockshowname">输入小区名称 从下拉列表中选择</label>
                                                <input type="text" class="input_text ui-autocomplete-input w205 
                                                    <?php if($method=='modify'){ echo 'readonly_input_text';} ?>" 
                                                       <?php if($method!='modify'){echo 'id="blockshowname"';} ?> name="blockshowname" 
                                                       value="<?php echo $house_detail['blockshowname']; ?>" 
                                                       <?php if($method=='modify'){ echo 'readonly';} ?>/>

                                                <input type="hidden" name="block_id" id="block_id" value="<?=$house_detail['blockid']?>">
                                            </div>
                                            <div class="fgInput blockPBox" style="display:none;">
                                                <div class="left blockPirceSj">
                                                    <div class="i i7 ">&nbsp;</div>
                                                    <div class="i i5">&nbsp;</div>
                                                    <div class="i i3">&nbsp;</div>
                                                    <div class="i i1">&nbsp;</div>
                                                </div>
                                                <div class="left blockPirce" id="blockPrice">
                                                </div>
                                            </div>
                                            <div class="fgInput textFgErroy"></div>
                                        </div>
                                    </dd>
                                    <!---->
                                    <?php
                                    if (!isset($house_detail['district'])) {
                                        $house_detail['district'] = '';
                                    } 
                                    if (!isset($house_detail['streetid'])) {
                                        $house_detail['streetid'] = '';
                                    } 
                                    if (!isset($house_detail['streetname'])) {
                                        $house_detail['streetname'] = '';
                                    } 
                                    if (!isset($house_detail['blockaddress'])) {
                                        $house_detail['blockaddress'] = '';
                                    } 
                                    ?>
                                    <dd class="list_item clearfix">
                                        <label class="label">地址：</label>
                                        <div class="fields">
                                            <div class="fgInput">
                                                <input type="text" class="input_text w70 readonly_input_text" name="district" id="district" value="<?=$house_detail['district']?>" readonly="">
                                            </div>
                                            <span class="fg">一</span>
                                            <div class="fgInput">
                                                <input type="text" class="input_text w70 readonly_input_text" name="street" id="street" value="<?=$house_detail['streetname']?>" readonly="">
                                                <input type="hidden" name="streetid" id="streetid" value="<?=$house_detail['streetid']?>">
                                            </div>
                                            <span class="fg">一</span>
                                            <div class="fgInput">
                                                <input type="text" class="input_text w170 readonly_input_text" name="blockaddress" id="blockaddress" value="<?=$house_detail['blockaddress']?>" readonly="">
                                            </div>
                                        </div>
                                    </dd>
                                    <?php
                                    if (!isset($house_detail['housekind'])) {
                                        $house_detail['housekind'] = '';
                                    }
                                   if ($infotype == 6) {
                                       $housekind_display = 'block';
                                   } else {
                                       $housekind_display = 'none';
                                   }
                                    ?>
                                    <dd class="list_item clearfix" id="housekindShow" style="display:<?=$housekind_display?>;">
                                        <label class="label">车位属性：</label>
                                        <div class="fields">
                                            <div class="fgInput jsFgInput">
                                                <div class="imitateSelect">
                                                    <label class="labelImitate">选择类型</label>
                                                    <input type="text" class="imitate imitateIe" readonly="" name="housekind" value="<?=$house_detail['housekind']?>">
                                                    <div class="listImitate">
                                                        <dl class="inner">
                                                            <?= get_attr_select($house['housekindname'])?>
                                                        </dl>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="fgInput textFgErroy"><!--jsFgInput--></div>
                                        </div>
                                    </dd>
									<dd class="list_item clearfix">
										<label class="label">租赁方式：</label>
										<div class="fields">
                                            <?php
                                            if (!isset($house_detail['renttype'])) {
                                                $house_detail['renttype'] = '整租';
                                            } 
                                             foreach ($house['renttype'] as  $k => $v) { ?>
                                                <div class="fgInput">
                                                    <label class="textFg3">
                                                    <input type="radio" name="renttype" class="jsInput_rRadio input_r" value="<?=$k?>" <?php if($k ==$house_detail['renttype']) echo "checked";?>>
                                                    <?=$v?></label>
                                                </div>
                                                <?php 
                                                if ($k == '合租') {
                                                    if (!isset($house_detail['rentroom']) || $house_detail['rentroom'] == '') {
                                                        $house_detail['rentroom'] = '主卧';
                                                    } 
                                                    if (!isset($house_detail['rentremark']) || $house_detail['rentremark'] == '') {
                                                        $house_detail['rentremark'] = '性别不限制';
                                                    } 
                                              ?>
                                             <div id="jsLeaseWaySelect" class="fgInput hide">
												<div class="fgInput">
													<div class="imitateSelect">
														<label class="labelImitate"><?=$house_detail['rentroom']?></label>
														<input type="text" name="rentroom" class="imitate imitateIe" value="<?=$house_detail['rentroom']?>" readonly  />
														<div class="listImitate">
															<dl class="inner">
                                                            <?= get_attr_select($house['rentroom'])?>
															</dl>
														</div>
													</div>
												</div>
												<p class="textFg textFg2">&nbsp;</p>												
												<div class="fgInput">
													<div class="imitateSelect">
														<label class="labelImitate"><?=$house_detail['rentremark']?></label>
														<input type="text" class="imitate imitateIe" value="<?=$house_detail['rentremark']?>" readonly  name='rentremark'/>
														<div class="listImitate">
															<dl class="inner">
                                                                <?= get_attr_select($house['rentremark'])?>
															</dl>
														</div>
													</div>
												</div>
											</div>
                                            <?php } ?>
                                            <?php if ($house_detail['renttype'] == '合租') { ?>  
                                            <script>
												$("#jsLeaseWaySelect").show();
											</script>
                                            <?php } ?>
											<p class="textFg textFg2">&nbsp;</p>
                                             <?php }?>
										</div>										
									</dd>
                                    <?php
                                    if (!isset($house_detail['price'])) {
                                        $house_detail['price'] = '';
                                    } 
                                    if (!isset($house_detail['priceunit'])) {
                                        $house_detail['priceunit'] = '元/月';
                                        $priceunit = 1;
                                    } else {
                                        $priceunit = $house_detail['priceunit'];
                                        $house_detail['priceunit'] = $house['shoppriceunit'][$priceunit];
                                    }
                                    ?>
                                    <dd class="list_item clearfix">
                                        <label class="label">租金：</label>						
                                        <div class="fields">
                                            <div class="fgInput jsFgInput" >
                                                <input type="text" id='price' name='price'  value="<?=$house_detail['price']?>" class="input_text w90"   />
                                            </div>	
                                            <?php 
                                            if ($infotype == 1 || $infotype == 2) {
                                                $priceunitshow = 'display:none;';
                                                $priceunit_css_3 = 'display:none;';
                                                $priceunit_css_4 = 'display:none;';
                                                if ($house_detail['renttype'] != '日租') {
                                                    $priceunit_css_1 = 'display:block;';
                                                    $priceunit_css_2 = 'display:none;';
                                                } else {
                                                    $priceunit_css_1 = 'display:none;';
                                                    $priceunit_css_2 = 'display:block;';
                                                }
                                            } else {
                                                $priceunit_css_1 = 'display:none;';
                                                $priceunit_css_2 = 'display:none;';
                                                $priceunitshow = 'display:block;';
                                                if ($house_detail['renttype'] != '日租') {
                                                    $priceunit_css_3 = 'display:block;';
                                                    $priceunit_css_4 = 'display:none;';
                                                } else {
                                                    $priceunit_css_3 = 'display:none;';
                                                    $priceunit_css_4 = 'display:block;';
                                                }
                                            }
                                            ?>
                                            <div id="priceshow1" style="<?=$priceunit_css_1?>">
                                                <p class="textFg">元/月</p>
                                            </div>
                                            <div id="priceshow2"  style="<?=$priceunit_css_2?>">
                                                <p class="textFg">元/天</p>
                                            </div>
                                            <p class="textFg textFg2">&nbsp;</p>
											<div class="fgInput jsFgInput" id="priceunitshow" style="<?=$priceunitshow?>">
												<div class="imitateSelect">
													<label class="labelImitate"><?=$house_detail['priceunit']?></label>
													<input type="text" name="priceunitname" readonly="" id="priceunitname" class="imitate imitateIe" value="<?=$house_detail['priceunit']?>">
													<input type="hidden" name="priceunit" id="priceunit" readonly="" class="jsImitateHidden" value="<?=$priceunit?>">
													<div class="listImitate">
														<dl class="inner" id="priceshow3" style="<?=$priceunit_css_3?>">
                                                        <?php
                                                        foreach($house['shoppriceunit'] as $k =>$v) {
                                                            if ($k == 4) {
                                                                continue;
                                                            }
                                                            echo '<dd><a href="####" oid="' . $k . '" class="link">' 
                                                                   . $v . '</a></dd>';
                                                        }
                                                        ?>
														</dl>
														<dl class="inner" id="priceshow4"  style="<?=$priceunit_css_4?>">
                                                        <?php
                                                        foreach($house['shoppriceunit'] as $k =>$v) {
                                                            if ($k == 1 || $k == 3) {
                                                                continue;
                                                            }
                                                            echo '<dd><a href="####" oid="' . $k . '" class="link">' 
                                                                   . $v . '</a></dd>';
                                                        }
                                                        ?>
														</dl>
													</div>
												</div>
											</div>
											<div class="textFg textFgErroy"></div>
                                    </div>
                                    </dd>
                                    <?php
                                    if (!isset($house_detail['payment'])) {
                                        $house_detail['payment'] = '';
                                    } 
                                    ?>
									<dd class="list_item clearfix">
										<label class="label">付款方式：</label>
										<div class="fields">
											<div class="fgInput jsFgInput">
												<div class="imitateSelect">
													<label class="labelImitate">选择付款方式</label>
													<input type="text" class="imitate imitateIe" readonly  name="payment" value="<?=$house_detail['payment']?>"/>
													<div class="listImitate">
														<dl class="inner">
                                                            <?= get_attr_select($house['payment'])?>
														</dl>
													</div>
												</div>
											</div>
											<div class="textFg textFgErroy"></div>
										</div>
									</dd>
                                    <?php
                                    if (!isset($house_detail['buildarea'])) {
                                        $house_detail['buildarea'] = '';
                                    } 
                                    ?>
                                    <dd class="list_item clearfix">
                                        <label class="label">面积：</label>
                                        <div class="fields">
                                            <div class="fgInput jsFgInput">
                                                <input type="text" class=" input_text w90" name="buildarea" id="buildarea" value="<?=$house_detail['buildarea']?>">
                                            </div>
                                            <p class="textFg">㎡</p>
                                            <div class="textFg textFgErroy"></div>
                                        </div>
                                    </dd>
                                    <?php
                                    if ($infotype == 1 || $infotype == 2) {
                                        if (!isset($house_detail['room'])) {
                                            $house_detail['room'] = '';
                                        } 
                                        if (!isset($house_detail['hall'])) {
                                            $house_detail['hall'] = '';
                                        } 
                                        if (!isset($house_detail['toilet'])) {
                                            $house_detail['toilet'] = '';
                                        } 
                                        $roomshowcss = 'display:block;';
                                    } else {
                                        $roomshowcss = 'display:none;';
                                    }
                                    ?>
                                    <dd class="list_item clearfix" id="roomshow" style="<?=$roomshowcss?>">
                                        <label class="label">户型：</label>
                                        <div class="fields">
                                            <div class="fgInput jsFgInput">
                                                <input type="text" class="input_text w40" name="room" value="<?=$house_detail['room']?>">
                                            </div>
                                            <p class="textFg">室</p>
                                            <div class="fgInput jsFgInput">
                                                <input type="text" class="input_text w40" name="hall" value="<?=$house_detail['hall']?>">
                                            </div>
                                            <p class="textFg">厅</p>
                                            <div class="fgInput jsFgInput">
                                                <input type="text" class="input_text w40" name="toilet" value="<?=$house_detail['toilet']?>">
                                            </div>
                                            <p class="textFg">卫</p>
                                            <div class="textFg textFgErroy"></div>
                                        </div>
                                    </dd>
                                    <?php
                                    if ($infotype == 6) {
                                        $floorshow = "display:none;";
                                    } else {
                                        if (!isset($house_detail['subfloor'])) {
                                            $house_detail['subfloor'] = '';
                                        } 
                                        if (!isset($house_detail['floor'])) {
                                            $house_detail['floor'] = '';
                                        } 
                                        if (!isset($house_detail['totalfloor'])) {
                                            $house_detail['totalfloor'] = '';
                                        } 
                                        $floorshow = "display:block;";
                                    }
                                    ?>
                                    <dd class="list_item clearfix" id="floorshow" style="<?=$floorshow?>">
                                        <label class="label">楼层：</label>
                                        <div class="fields">
                                            <div class="fgInput">
                                                <label class="textFg3">
                                                    <input id="jsInputRadio1" name="lctype" type="radio" <?php if(!$house_detail['subfloor']){echo 'checked';}?> class="jsInputRadio input_r" value="1">
                                                    单层</label>
                                            </div> 
                                            <div id="jsInputBox1" class="jsInputBox fgInput jsFgInput">
                                                <p class="textFg">第</p>
                                                <div class="fgInput">
                                                    <input id="floor" type="text" class="input_text w40" name="floor" value="<?=$house_detail['floor']?>">
                                                </div>
                                                <p class="textFg">层</p>
                                                <p class="textFg">共</p>
                                                <div class="fgInput">
                                                    <input id="totalfloor" type="text" class="input_text w40" name="totalfloor" value="<?=$house_detail['totalfloor']?>">
                                                </div>
                                                <p class="textFg">层</p>
                                            </div>

                                            <div class="fgInput">
                                                <label class="textFg3 textFg4">
                                                    <input id="jsInputRadio2" type="radio" <?php if($house_detail['subfloor']!=0){echo 'checked';}?> class="jsInputRadio input_r" name="lctype" value="2">
                                                    跃层</label>
                                            </div>

                                            <div id="jsInputBox2" class="jsInputBox fgInput hide jsFgInput" style="display: none;">
                                                <p class="textFg">第</p>
                                                <div class="fgInput">
                                                    <input id="subfloor" type="text" class="input_text w40" name="subfloor" value="<?=$house_detail['subfloor']?>">
                                                </div>
                                                <span class="fg">一</span>
                                                <div class="fgInput">
                                                    <input id="floor2" type="text" class="input_text w40" name="floor2" value="<?=$house_detail['floor']?>">
                                                </div>
                                                <p class="textFg">层</p>
                                                <p class="textFg">共</p>
                                                <div class="fgInput">
                                                    <input id="totalfloor2" type="text" class="input_text w40" name="totalfloor2" value="<?=$house_detail['totalfloor']?>">
                                                </div>
                                                <p class="textFg">层</p>
                                            </div>

                                            <div class="textFg textFgErroy"></div>
                                        </div>
                                    </dd>
                                    <!---->
                                    <?php
                                    if (!isset($house_detail['fitment'])) {
                                        $house_detail['fitment'] = '';
                                    } 
                                    if (!isset($house_detail['forward'])) {
                                        $house_detail['forward'] = '';
                                    } 
                                    if ($infotype == 6) {
                                        $fitmentshowcss = "display:none;";
                                    } else  {
                                        $fitmentshowcss = "display:block;";
                                    }
                                     ?>
                                    <dd class="list_item clearfix" id="fitmentshow" style="<?=$fitmentshowcss?>">
                                        <label class="label">装修朝向：</label>
                                        <div class="fields">
                                            <div class="fgInput jsFgInput">
                                                <div class="imitateSelect ">
                                                    <label class="labelImitate">选择装修情况</label>
                                                    <input type="text" class="imitate imitateIe" readonly="" name="fitment" value="<?=$house_detail['fitment']?>">
                                                    <div class="listImitate">
                                                        <dl class="inner">
                                                            <?= get_attr_select($house['fitment'])?>
                                                        </dl>
                                                    </div>
                                                </div>
                                            </div>
                                            <p class="textFg textFg2">&nbsp;</p>
                                            <div class="fgInput jsFgInput">
                                                <div class="imitateSelect">
                                                    <label class="labelImitate">选择房屋朝向</label>
                                                    <input type="text" class="imitate imitateIe" readonly="" name="forward" value="<?=$house_detail['forward']?>">
                                                    <div class="listImitate" style="display: none;">
                                                        <dl class="inner">
                                                            <?= get_attr_select($house['forward'])?>
                                                        </dl>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="textFg textFgErroy"></div>
                                        </div>
                                    </dd>
                                </dl>
                            </div>
                        </div>
                    </div>
                </div>
                <!--基本信息 结束--> 
                <!--补充信息 开始-->
                <div id="infotypeblock">       <!--补充信息 开始-->
                    <?php include_once "rent_add_ext.php"; ?>
                </div>
                <!--补充信息 结束--> 
                <!--详细信息 开始-->
                <div class="branchCommon radius5 " id="js_xxxx">
                    <div class="hd ">
                        <h3 class="h3">详细信息</h3>
                    </div>
                    <div class="mod">
                        <div class="modInner">
                            <div class="forms">
                                <dl class="list">
                                    <?php
                                    if (!isset($house_detail['address']))  {
                                        $house_detail['address'] = '';
                                    } 
                                     ?>
                                    <dd class="list_item clearfix clear">
                                        <label class="label"><span class="fields_state">*</span>房源标题：</label>
                                        <div class="fields nameInput ">
                                            <div class="fgInput jsNameInput jsFgInput">
                                                <label for="address" class="labelPrev labelPrevN jslabelPrev">请简单明了的描述出房源特色</label>
                                                <input type="text" class="input_text w310" id="address" regexp="^[\u4e00-\u9fa5\da-zA-Z\s|，|.|%|【|】]*$" msg=" 房源标题必须填写！不要超过60字符且只能输入汉字、字母、数字、空格、小数点、中文逗号、%、【、】。" name="address" value="<?=$house_detail['address']?>">
                                            </div>
                                            <p class="textFg textFg6">剩余<span id="jsColorN" class="colorN"><?php echo 60-strlen($house_detail['address']);?></span>个字符（1个汉字相当于2个字符，多图房源标题要超过十个字哦！）</p>
                                            <div class="fgInput textFgErroy" style="width:600px"><!--jsFgInput--></div>
                                        </div>
                                    </dd>
                                    <?php
                                    if (!isset($house_detail['remark'])) {
                                        $house_detail['remark'] = '';
                                    } 
                                    ?>
                                    <dd class="list_item clearfix clear">
                                        <label class="label">房源描述：</label>
                                        <div class="fields ">
                                            <p class="textFg textFg6">多图房源描述要超过三十个字哦！</p>
                                            <p class="modelBox"> <a href="<?=$documentation['house_title_rule']?>" class="link" target="_blank">标题描述规则说明&gt;&gt;</a> </p>
                                        </div>
                                    </dd>
                                    <dd class="list_item list_item02 clearfix clear">
                                        <textarea name="remark" id="remark" cols="0" rows="0" style="margin-top:5px; width:835px; height:155px; display:none;"><?=$house_detail['remark']?></textarea>
                                        <div class="editorBox" style="height: 400px;"> <iframe id="remark_iframe" frameborder="0" scrolling="no" src="/editor/house/" style="margin-top:5px; width:830px; height:400px;"></iframe></div>
                                    </dd>  
                                </dl>
                            </div>
                        </div>
                    </div>
                </div>
                <!--详细信息 结束--> 
                <div class="branchCommon radius5 " id="js_tpsc"  >
                    <div class="hd ">
                        <h3 class="h3">图片上传</h3>
                    </div>
                    <div class="mod">
                        <div class="modInner" >
                            <div class="forms">
                                <dl class="list">
                                    <!---->
                                    <dd class="list_item clearfix">
                                        <div class="mattersBox radius3" style="height:170px;">
                                            <div class="leftImg radius3"style="height:170px;">
                                                <p style="height:10px; overflow:hidden;">&nbsp;</p>
                                                <p class="title">发布多图房源</p>
                                                <p class="text">房源点击量比非多图点击量</p>
                                                <p class="text">高出<span class="num">50%</span></p>
                                                <p class="text"><a class="link" href="<?=$documentation['publish_pic_rule']?>" target="_blank">如何发布多图房源&gt;&gt;</a></p>
                                            </div>
                                            <div class="rightTextBox" style="width:600px; line-height:22px;">
                                                <h4 class="h4">注意事项：</h4>
                                              
                                                <p class="text">1、	上传图片需为实拍图，每张图片不大于5M，支持JPG、PNG格式，最佳尺寸：1280*960。</p>
                                                <p class="text">2、	请勿在此处上传中介公司LOGO、经纪人照片等非房源图片，上传的图片类型与房源描述情况需一致。</p>
                                                <p class="text">3、 请勿上传经过明显PS、边框、拼接及含有其他网站水印、链接的图片，中介LOGO必须透明不遮挡图片内容。</p>
                                                <p class="text">4、	您上传的户型图、外景图将可能被365收入图库。<a class="link" target="_blank" href="<?=$documentation['pic_rule']?>">图片规则详情>></a></p>
                                            </div>
                                        </div>
                                    </dd>
                                    <?php require_once 'pic_inc_new_wang.php'; ?>
                                </dl>
                            </div>
                        </div>
                    </div>
                </div>
                <!--图片上传 结束-->
                <div class="btnFBbox"  style="height:35px;">
                    <?php
                    if (!isset($house_detail['id'])) {
                        $house_detail['id'] = '';
                    } 
                    if (!isset($house_detail['esta'])) {
                        $house_detail['esta'] = '';
                    } 
                    if (!isset($tab)) {
                        $tab = '';
                    }
                    ?>
                    <input type="hidden" name="id" id="id" value="<?=$house_detail['id']?>">
                    <input type="hidden" name="tab" id="tab" value="<?=$tab?>">
                    <input type="hidden" name="tbl" id="tbl" value="rent">
                   <?php if($house_detail['esta']!=5){ ?>
                   <div  style="float:left;position:relative; width:117px; height:32px;margin:0 20px 0 285px;_display: inline;">
				        <a style="margin:0;" href="####" id="jsBtnSubmit_rent" class="btnB btnSubmit radius5">
					    <?php if($method=='modify'){echo '确认修改';}else{echo '发布';}?></a>
                         <div id="new_login_btn_none" class="radius5">&nbsp;</div>
                    </div>
                    <a style="float:left;" href="####" class="btnB btnPreserve radius5" onclick="savetemplate()">保存为房源模板</a>
                    <?php } ?>
                </div>
	<input type="hidden" name="<?=$post_rand['post_key']?>"   value="<?=$post_rand['post_value']?>" >

            </form>
            <!----> 
        </div>
    </div>
</div>
<form method="post" name="t_add"  id="t_add" action="<?=$url_template_add ?>" target="_blank">
    <input type="hidden" name="t_remark" id="t_remark"  value=''>
    <input type="hidden" name="t_district"  id="t_district" value="" >
    <input type="hidden" name="t_street" id="t_street"  value="" >
    <input type="hidden" name="t_blockaddress"  id="t_blockaddress" value="" >
    <input type="hidden" name="t_block_id" id="t_block_id"  value="" >
    <input type="hidden" name="t_streetid" id="t_streetid"  value="" >
    <input type="hidden" name="t_blockname" id="t_blockname"  value="" >
    <input type="hidden" name="action" id="action"  value="add" >
    <input type="hidden" name="flag" id="flag"  value="1" >

</form>
<div id='historyHouse'>    
    <?php
        $publish_block_tip = $publish_block == '' ? '暂无历史发布小区' : '历史发布小区';
    ?>
    <a href='####'><?=$publish_block_tip?></a>
<?php
if (isset($publish_block) && !empty($publish_block)) {
    if (count($publish_block) > 10) { //大于10个历史小区，显示滚动条
?>
        <style>
            #historyHouse{height:150px !important; overflow-x: hidden; overflow-y: scroll;}
        </style>  
<?php }foreach ($publish_block as $value) { ?>
        <a href='####'  onclick="addlishi(<?= $value['blockid'] ?>);"><?= $value['blockshowname'] ?></a>
<?php }} ?>
</div>
<!--添加新小区 弹出层-->
<div id="newblockadd" class="dialog dialog2 radius5" style="position: absolute; z-index: 9999902; left: 50%; margin-left: -202.5px; top: 310px; display: none;">
    <div class="hd">
        <h3 class="h3">添加新小区</h3>
        <span title="关闭" class="close close-win">&Chi;</span> </div>
    <div class="mod">
        <form method="post" action="" id="block_add" name="block_add">
            <div class="forms">
                <dl class="list">
                    <dd class="list_item clearfix">
                        <label class="label">小区名称：</label>
                        <div class="fields nameInput ">
                            <div class="fgInput jsNameInput jsFgInput">
                                <label for="jsNameInputOp" class="labelPrev labelPrevN jslabelPrev"><!--请输入小区名称2-8个汉字--></label>
                                <input  type="text" class="jsNameInputOp input_text w170" id="jsNameInputOp" name="tcblockname" />
                                <!--<label  class="error">小区名称在2-8个汉字之间</label>-->
                            </div>
                        </div>
                    </dd>

                    <dd class="list_item clearfix ">
                        <label class="label">小区区属：</label>
                        <div class="fields nameInput imitateSelect2">
                            <div class="fgInput jsFgInput">
                                <div class="imitateSelect">
                                    <label class="labelImitate">请选择区属</label>
                                    <input type="text" class=" imitate imitateIe" readonly name="tcdistrict" value="" id="tcdistrict" />
                                    <!--<label  class="error">请选择区属</label>-->
                                    <div class="listImitate">
                                        <dl class="inner innerScroll">
                                        <?php foreach ($house['district'] as $value) { ?>
                                                <dd><a class="link" onclick="getstreet(this);" href="####" ><?= $value ?></a></dd>
                                        <?php } ?>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                            <p class="textFg textFgLabel">版块：</p>
                            <div class="fgInput jsFgInput">
                                <div class="imitateSelect ">
                                    <label class="labelImitate" id="qs">请选择版块</label>
                                    <input type="text" class=" imitate imitateIe" readonly  name="tcstreetname" value="" id="bankuai"/>
                                    <input type="hidden" class="jsImitateHidden"  id="tcstreetid" name="tcstreetid" value=""/>
                                    <!--<label  class="error">请选择版块</label>-->
                                    <div class="listImitate">
                                        <dl class="inner  innerScroll" id="street_add">
                                        </dl>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </dd>
                    <dd class="list_item clearfix">
                        <label class="label">小区地址：</label>
                        <div class="fields nameInput ">
                            <div class="fgInput jsNameInput jsFgInput">
                                <label for="jsNameInputDz" class="labelPrev labelPrevN jslabelPrev">请输入小区地址2-30个字</label>
                                <input  type="text" class="jsNameInputDz input_text w276" id="jsNameInputDz" name="tcaddress" />
                                <label  class="error" id="xqerror" style="display:none"></label>
                            </div>
                        </div>
                    </dd>
                    <dd class="list_item clearfix"> <a id="jsBtnSubmitP" onclick="tempblock_add()" href="####" class="btnPopo btnCon radius5">提交</a> </dd>
                </dl>
            </div>
        </form>
    </div>
</div>

<!--弹出层添加未知小区-->
<div id="JS_noteHouse1" class="dialog radius5">
    <div class="hd">
        <h3 class="h3">提示</h3>
        <span title="关闭" class="close close-win">&Chi;</span> </div>
    <div class="mod">
        <div class="text"> 添加成功</div>
    </div>
</div>
<!--发布或者修改房源时，验证房源标题和房源描述有屏蔽词提示-->
<div id="JS_noteHouse4" class="dialog radius5">
    <div class="hd">
        <h3 class="h3">提示</h3>
        <span title="关闭" class="close close-win">&Chi;</span> </div>
    <div class="mod">
        <div class="text" id="banwords"></div>
    </div>
</div>
<!--返回顶部  -->
<div id="fixedLocation"> 
    <dl class="list radius5">
        <dd class="item"><a href="####" title='房源模板' onClick="returnFixe('js_fymb')" class="link">房源模板</a></dd>
        <dd class="item"><a href="####" title='基本信息' onClick="returnFixe('js_jbxx')" class="link">基本信息</a></dd>
        <dd class="item"><a href="####" title='补充信息' onClick="returnFixe('js_bcxx')" class="link">补充信息</a></dd>
        <dd class="item"><a href="####" title='详细信息' onClick="returnFixe('js_xxxx')" class="link">详细信息</a></dd>
        <dd class="item"><a href="####" title='图片上传' onClick="returnFixe('js_tpsc')" class="link">图片上传</a></dd>
    </dl>
    <div class="backToTop radius5"><a title='回到顶部' href="#" class="link">回到顶部</a></div>
</div>

<?= $page_js ?>
<script type="text/javascript">
    $(function() {
        var str = $("#address").val();
        var obj_value_arr = str.split("");
        var num = 0;
        for (var i = 0; i < obj_value_arr.length; i++) {
            num += returnStrLen(obj_value_arr[i]);
        }
        $("#jsColorN").text(60 - num);

        $("#address").keyup(function() {

            var str = $("#address").val();
            var obj_value_arr = str.split("");

            var num = 0;
            for (var i = 0; i < obj_value_arr.length; i++) {
                num += returnStrLen(obj_value_arr[i]);
            }
            if (num > 60) {
                var num = $("#address").val().substr(0, 30);
                $("#address").val(num);
                alert("您的房源标题字数太多了，精简下吧！房源标题最多30个汉字，超出部分系统将会自动删除！");
            } else {
                $("#jsColorN").text(60 - num)
            }
        })


        $("#blockshowname").autocomplete({
            source: function(request, response) {
                //clearblockinfo();
                $.ajax({
                    url: "/ajax/find_like_block_list/",
                    type: "POST",
                    dataType: "json",
                    data: {
                        blockname: encodeURIComponent($("#blockshowname").val())
                    },
                    success: function(data) {
                        if(data.errorCode == '401')
                        {
                            jump_win('<?php echo GB_WO_URL;?>/sell/jump/login/' , '请重新登录');
                            return false;
                        }
                        //判断返回数据是否为空，不为空返回数据，为空返回增加小区链接。
                        if (data[0]['id'] != "0") {
                            response(data);
                            //hiddenblockadd();
                            //getBlockImg(1);
                        } else {
                            response(data);
                            //showblockadd();
                        }
                    }
                });
            },
            minLength: 1,
            removeinput: 0,
            select: function(event, ui) {
                if (ui.item.id > 0) {
                    var blockname = ui.item.label;
                    var district = ui.item.district;
                    var street = ui.item.streetname;
                    var streetid = ui.item.streetid;
                    var averprice = ui.item.averprice;
                    var address = ui.item.address;
                    var blockesta = ui.item.esta_block;
                    var url_block = ui.item.url_block;
                    var id = ui.item.id;

                    //获得小区板块
                    getblock(district, street, address, id, streetid, url_block);
                    //显示小区(价格、地址、状态)信息
                    //showblockinfo(averprice, address, blockesta);
                    //显示小区纠错地址
                    //showblockurl(url_block,blockname);
                    //获取小区id
                    //showblockid(id,blockname);
                    removeinput = 0;
                    $("input[name=blockshowname]").val(blockname);
                    getBlockImg(1);
                } else {
                    removeinput = 1;
                    block_add();
                    //remove_blockinfo();
                }
            },
            close: function(event) {
                if (typeof (removeinput) == 'undefined' || removeinput == 1)
                    $("#blockshowname").val("");
            }
        });

    });
</script>