<!--左边 导航 结束-->
<div id="centre" class="layout">
    <div class="centreInner ">
        <div class="mainInner radius5 "> 
           <?php include 'rent_manage_statics.php'; ?>
            <div class="titleTabBox">
                <div class="titleTab">
                    <div class="titleTabB clearfix">
                        <dl class="list">
                            <dd class="item itemOn"> <a class="link" href="<?php echo GB_WO_URL;?>/rent/manage/active/"> 激活房源</a> </dd>
                            <dd class="item "> <a class="link" href="<?php echo GB_WO_URL;?>/rent/manage/invalid/"> 失效房源 </a></dd>
                            <dd class="item"> <a class="link" href="<?php echo GB_WO_URL;?>/rent/manage/frozen/"> 违规房源(<?php echo $statistic_data['forzen_house_num']; ?>)</a> </dd>
                            <dd class="itemLast"><a href="<?php echo $documentation['house_manage_rule'];?>" target="_blank">使用说明&gt;&gt;</a></dd>
                        </dl>
                    </div>
                </div>
            </div>
            <!---->
            <form id="search_form" name="search_form" method="post" action="<?php echo GB_WO_URL;?>/rent/manage/active/">
            <div class="forms functionBox">
                <dl class="list">
                    <dd class="list_item clearfix">
                        <div class="fields">
                            <div class="fgInput jsFgInput">
                                <div class="imitateSelect">
                                    <label class="labelImitate">房源类型</label>
                                    <input type="text" name="infotypename" class="imitate imitateIe" readonly value="<?php if(isset($post_param['infotypename'])){ echo $post_param['infotypename'];}else{ echo '房源类型';} ?>"/>
                                    <input type="hidden" name="infotype" class="jsImitateHidden" value="<?php if(isset($post_param['infotype'])){ echo $post_param['infotype']; } else { echo 0;}?>"/>
                                    <div class="listImitate">
                                        <dl class="inner">
                                            <dd><a class="link" oid="0">不限</a></dd>
                                            <?php foreach($house['infotype'] as $key=>$value){ ?>
                                                <dd><a class="link" oid="<?php echo $key; ?>" href="####"><?php echo $value;?></a></dd>
                                            <?php } ?>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                            <!---->
                            <p class="textFg textFg2">&nbsp;</p>
                            <div class="fgInput jsFgInput">
                                <div class="imitateSelect">
                                    <label class="labelImitate">租金</label>
                                    <input type="text" name="price_rentname" class="imitate imitateIe" readonly value="<?php if(!isset($post_param['price_rentname'])){echo '租金';}else{echo $post_param['price_rentname'];} ?>"/>
                                    <input type="hidden" name="price_rent" class="jsImitateHidden" value="<?php if(isset($post_param['price_rent'])){ echo $post_param['price_rent']; } else { echo 0;}?>"/>
                                    <div class="listImitate">
                                        <dl class="inner">
                                            <dd><a class="link" oid="0">不限</a></dd>
                                           <?php foreach($house['price_rent'] as $key=>$value){ ?>
                                                <dd><a class="link" oid="<?php echo $key;?>" href="####"><?php echo $value;?></a></dd>
                                            <?php } ?>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                            <p class="textFg textFg2">&nbsp;</p>
                            <div class="fgInput jsFgInput">
                                <div class="imitateSelect">
                                    <label class="labelImitate">面积</label>
                                    <input type="text" name="buildareaname" class="imitate imitateIe" value="<?php if(!isset($post_param['buildareaname'])){echo '面积';}else{echo $post_param['buildareaname'];} ?>" readonly/>
                                    <input type="hidden" name="buildarea" class="jsImitateHidden" value="<?php if(isset($post_param['buildarea'])){ echo $post_param['buildarea']; } else { echo 0;}?>"/>
                                    <div class="listImitate">
                                        <dl class="inner">
                                            <dd><a class="link" oid="0">不限</a></dd>
                                           <?php foreach($house['buildarea'] as $key=>$value){ ?>
                                                <dd><a class="link" oid="<?php echo $key;?>" href="####"><?php echo $value;?></a></dd>
                                            <?php } ?>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                            <p class="textFg textFg2">&nbsp;</p>
                            <div class="fgInput jsFgInput">
                                <div class="imitateSelect">
                                    <label class="labelImitate">户型</label>
                                    <input type="text" name="roomtypename" class="imitate imitateIe" value="<?php if(!isset($post_param['roomtypename'])){echo '户型';}else{echo $post_param['roomtypename'];} ?>" readonly/>
                                    <input type="hidden" name="roomtype" class="jsImitateHidden" value="<?php if(isset($post_param['roomtype'])){ echo $post_param['roomtype']; } else { echo 0;} ?>"/>
                                    <div class="listImitate">
                                        <dl class="inner">
                                            <dd><a class="link" oid="0">不限</a></dd>
                                           <?php foreach($house['roomtype'] as $key=>$value){ ?>
                                                <dd><a class="link" oid="<?php echo $key; ?>" href="####"><?php echo $value; ?></a></dd>
                                            <?php } ?>
                                        </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 imitate2" readonly name="k_name" value="<?php if(isset($post_param['k_name'])){echo $post_param['k_name'];} ?>"/>
                                        <input type="hidden"  class="jsImitateHidden" name="k_id" value="<?php if(isset($post_param['k_id'])){ echo $post_param['k_id'];}else{ echo 1; } ?>"/>
                                    <div class="listImitate">
                                        <dl class="inner inner2">
                                            <dd><a class="link" href="####" onClick="addThisText('请输入小区名称')" oid="1">小区名称</a></dd>
                                            <dd><a class="link" href="####" onClick="addThisText('请输入房源编号')" oid="2">房源编号</a></dd>
                                            <dd><a class="link" href="####" onClick="addThisText('请输入房源内部编号')" oid="3">内部编号</a></dd>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                            <!---->
                            <div class="fgInput nameInput " >
                                <div class="fgInput jsNameInput jsFgInput">
                                    <label id="jsHouseNume" for="jsNameInputNF" class="labelPrev labelPrevN jslabelPrev">请输入小区名称</label>
                                    <input  type="text" class="input_text w170" id="jsNameInputNF" name="keywords" value="<?php if(isset($post_param['keywords'])){ echo $post_param['keywords'];}?>"/>
                                </div>
                            </div>
                            <!---->
                            <p class="textFg textFg2">&nbsp;</p>
                            <div class="fgInput" >
                                <input type="submit" style="cursor: pointer;" class="btn btnCon radius5" value="搜索"> 
                            </div>
                            <!----> 
                        </div>
                    </dd>
                </dl>
            </div>
            <!---->
            <div id="jsHideFun" class="forms functionBox functionBox2">
                <dl class="list">
                    <dd class="list_item clearfix">
                        <div class="fields"> 
                            <!---->
                            <div class="fgInput jsFgInput" id="selectFun">
                                <div class="imitateSelect">
                                    <div class="imitate imitateIe" >
                                       <input type="checkbox" class="jsSelectItem jsALLinput_c input_c" name="rows_id"/>
                                    </div>
                                    <div class="listImitate">
                                        <dl class="inner">
                                            <dd><a class="link" href="#" onClick="selectALL()">全选</a></dd>
                                            <dd><a class="link" href="#" onClick="selectALLf()">反选</a></dd>
                                            <dd><a class="link" href="#" onClick="selectALLn()">不选</a></dd>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                            <p class="textFg textFg2">&nbsp;</p>
                            <div class="fgInput"> <a class="btn autoBtn btnCon " onclick="submit_all('refresh')" id='refreshbtn' href="###">刷新</a> </div>
                            <div class="fgInput"> <a class="btn autoBtn btnCon "  id='appointment' name='appointment' href="###" onclick="submit_all('appointment',this);">预约刷新</a> </div>
                            <div class="fgInput"> <a class="btn autoBtn btnCon " onclick="submit_all('qx_reserve',this);" id="qx_reserve" href="###">取消预约</a> </div>
                            <p class="textFg textFg2">&nbsp;</p>
                            <div class="fgInput"> <a class="btn autoBtn btnCon" onclick="submit_all('invalid_house',this)"  href="####">失效</a> </div>
                            <p class="textFg textFg2">&nbsp;</p>
                            <div class="fgInput"> <a class="btn autoBtn btnCon "  href="/reserve/project_manage/">管理预约刷新方案</a> </div>
                            <div class="fgInput fgInputRight"> 
                            <!---->
                            <div class="fgInput jsFgInput">
                                    <div class="imitateSelect">
                                            <label class="labelImitate">全部房源</label>
                                            <input type="text" name="roomcategoryname" id="roomcategoryname" class="imitate imitateIe imitate2" value="<?php if(!isset($post_param['roomcategoryname'])){echo '全部房源';}else{echo $post_param['roomcategoryname'];} ?>" readonly/>
                                            <input type="hidden" name="roomcategory" id="roomcategory" class="jsImitateHidden" value="<?php if(isset($post_param['roomcategory'])){echo $post_param['roomcategory'];}?>"/>
                                            <div class="listImitate">
                                                    <dl class="inner inner2">
                                                    <dd><a class="link" onclick="document.getElementById('roomcategoryname').value='不限';document.getElementById('roomcategory').value=0;document.search_form.submit();" oid="0">不限</a></dd>
                                                    <?php foreach($house['roomcategory'] as $key=>$value){ ?>
                                                            <dd><a href="####" class="link" oid="<?php echo $key; ?>" onclick="document.getElementById('roomcategoryname').value='<?php echo $value;?>';document.getElementById('roomcategory').value=<?php echo $key; ?>;document.search_form.submit();"><?php echo $value; ?></a></dd>
                                                    <?php } ?>
                                                    </dl>
                                            </div>
                                    </div>
                            </div>
                            <!---->
                            <div class="fgInput jsFgInput">
                                <div class="imitateSelect">
                                    <label class="labelImitate">默认排序</label>
                                    <input type="text" name="roomordername" id="roomordername" class="imitate imitateIe imitate3" readonly value="<?php if(!isset($post_param['roomordername'])){ echo '默认排序'; }else{ echo $post_param['roomordername']; } ?>"/>
                                    <input type="hidden" name="roomorder" id="roomorder" class="jsImitateHidden" value="<?php if(isset($post_param['roomorder'])){ echo $post_param['roomorder']; } ?>"/>
                                    <div class="listImitate">
                                        <dl class="inner inner3">
                                            <?php foreach($house['rent_order'] as $key=>$value){ ?>
                                            <dd><a href="####" class="link" oid="<?php echo $key;?>" onclick="document.getElementById('roomorder').value='<?php echo $key;?>';document.getElementById('roomordername').value='<?php echo $value;?>';document.search_form.submit();"><?php echo $value;?></a></dd>
                                            <?php }?>
                                        </dl>
                                    </div>
                                </div>
                            </div>
							 <!----> 
							<p class="textFg textFg2">&nbsp;</p>								
                                <div class="fgInput" style="height:29px; line-height:29px; color:#4c4c4c"> 当前条件下共有<strong style="color:#f47936"><?=$total_count?></strong>条房源</div>
                                <!----> 
                            </div>
                        </div>
                    </dd>
                </dl>
            </div>
            <!---->

            <div class="fgTitleBox radius4">
                <table class="table">
                    <tr>
                        <td class="w30">&nbsp;</td>
                        <td class="w260" style="width:380px;">房源基本信息</td>
                        <td class="w90">创建时间</td>
                        <td class="w60">更新时间</td>
                        <!--<td class="w85">剩余天数</td>-->
                       <td class="w115">统计</td>
                        <td class="w70">刷新</td>
                        <!--<td class="w85">预约刷新</td>-->
                        <td>操作</td>
                    </tr>
                </table>
            </div>
            <!---->
            <?php if( is_array($data_info) && !empty($data_info) ){ 
                $nowtime = time();
            ?>
            <?php 
            foreach ( $data_info as $key => $value ) {  ?>
            <div class="itemInfoBach itemInfoBachAuto radius4">
                <table class="table gl_table">
                    <tr>
                        <td class="td first"><input class="jsSelectItem" type="checkbox" name="rows_id" value="<?php echo $value['id'];?>"/></td>
                        <td class="td second" style="width:380px;">
                            <div class="itemTex">
								<a class="name" title = "<?php echo $value['address'];?>" href="<?php echo $value['info_url'];?>" target="_blank"><?php echo $value['address_str'];?></a>
							</div>
							<div class="itemTex">
                                  <?php if($value['is_star_result'] === TRUE) { ?>
                                  <img alt="多图房源" title="多图房源" src="http://esf.s.house365.com/zsb/images/v1.0/new_duotu.gif" />
                                  <?php } ?>
                                  <?php if($value['is_tag_result'] === TRUE) { ?>
                                  <img alt="急推房源" title="急推房源" src="http://esf.s.house365.com/zsb/images/v1.0/new_jitui.gif" />
                                  <?php } ?>
                                  <?php if(false && isset($value['block_level']) && $value['block_level'] != '') { ?>
                                  <img alt="小区专家参与等级" title="小区专家参与等级" src="http://esf.s.house365.com/zsb/images/v1.0/lv<?php echo $value['block_level'];?>.gif" />
                                  <?php } ?>
                            </div>
                            <div class="itemTex"><span class="name"><?php if(isset($value['block_url']) && $value['block_url'] !='') {?> <a class="name" href="<?php echo $value['block_url'];?>" target="_blank"><?php echo $value['blockshowname'];?></a><?}else{echo $value['blockshowname'];}?></span><span class="fg_z">/</span><span><?php echo $value['room'];?>室<?php echo $value['hall'];?>厅</span><span class="fg_z">/</span><span><?php echo $value['floor_str'];?>层</span><span class="fg_z">/</span><span class="red"><?php echo $value['buildarea'];?>㎡</span><span class="fg_z">/</span><span class="red"><?php echo $value['price'];?><?php echo $house['shoppriceunit'][$value['priceunit']];?></span>
                            </div>
                            <div class="itemTex itemTex2">
                                <span>房源编号：<?php echo $value['id'];?></span>
                                <?php if (!empty($value['ownid'])) { echo '内部编号：'.$value['ownid']; } ?>
								
								<!-- Baidu Button START -->
							
								<br/>

									<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare" data="{'url':'http://nj.rent.house365.com/r_<?php echo $value['id'].'.html';?>'}">
									<span class="bds_more"></span>
									<a class="bds_qzone"></a>
									<a class="bds_tsina"></a>
									<a class="bds_tqq"></a>
									<a class="bds_renren"></a>

									
									
								</div>
								<script type="text/javascript" id="bdshare_js" data="type=tools" ></script>
									<script type="text/javascript" id="bdshell_js"></script>
									<script type="text/javascript">
										document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);

								</script>
								<a style="margin-left:2px;" value="<?php echo $value['id'];?>" id="wx_share" class="wx_share_c" href="javascript:void(0)"><img src="http://esf.s.house365.com/zsb/images/v1.0/weixin_tu.jpg"></a>
									
								<!-- Baidu Button END -->

                            </div>
                        </td>
                        <td class="td w90">
                            <p><?php echo date( 'm-d H:i' , $value['creattime']); ?></p>
                            <p>房源：<span class="color"><?php echo $value['exipire_days'];?></span></p>
                            <?php if($value['is_tag_result'] === TRUE) {  ?>
                            <p>急推：<span class="color"><?php echo $value['tag_exipire_days'];?></span></p>
                            <?php } ?>
                        </td>
                        <td class="td w60">
                            <p><?php if($value['updatetime'] > 0) { echo date( 'm-d H:i' , $value['updatetime']);}?></p>
                        </td>
                        <!--
                        <td class="td w85">
                            <p>房源：<span class="color"><?php echo $value['exipire_days'];?></span></p>
                            <?php if($value['is_tag_result'] === TRUE) {  ?>
                            <p>急推：<span class="color"><?php echo $value['tag_exipire_days'];?></span></p>
                            <?php } ?>
                        </td>-->
                        <td class="td w115">
                            <p>昨日点击：<span class="color"><?php echo $value['click_num_y'];?></span>次</p>
                            <!--<p><a class="link" href="/statistics_analysis/click/" target="_blank">详细</a></p>-->
                            <p>今日：<span class="color"><?php echo $value['refresh_num'];?></span>次</p>
                        </td>
                        <td class="td w70">
                            <p><a class="link" onclick="submit_all('refresh',0,<?php echo $value['id'];?>)"  href="#">手动刷新</a></p>
                            <?php if(is_array($reserve_info) && isset($reserve_info[$value['id']])){?>
                            <a class="link" href="/reserve/project_manage/<?php echo $reserve_info[$value['id']]['id'];?>/" target="_blank"><?php echo $reserve_info[$value['id']]['name'];?></a>
                            <br />剩余：<span class="color"><?php  $lastday = $reserve_info[$value['id']]['endtime'] - $nowtime; echo $lastday > 0 ? ceil($lastday/86400).'天' : '已到期'; ?></span>
                            <?php } else { ?>
                            <p><a class="link" href='####' onclick="submit_all('appointment',this,<?php echo $value['id'];?>);">我要预约</a></p>
                            <?php }?>
                        </td>
                        <!--
                        <td class="td w85">
                           <?php if(is_array($reserve_info) && isset($reserve_info[$value['id']])){?>
                            <a class="link" href="/reserve/project_manage/<?php echo $reserve_info[$value['id']]['id'];?>/" target="_blank"><?php echo $reserve_info[$value['id']]['name'];?></a>
                            <br />剩余：<span class="color"><?php  $lastday = $reserve_info[$value['id']]['endtime'] - $nowtime; echo $lastday > 0 ? ceil($lastday/86400).'天' : '已到期'; ?></span>
                            <?php } else { ?>
                            <p><a class="link" href='####' onclick="submit_all('appointment',this,<?php echo $value['id'];?>);">我要预约</a></p>
                            <?php }?>
                        </td>-->
                        <td class="td">
                            <div class="fun">
                                <div class="linkBox"><a class="link"  href="<?php echo $value['modify_url'];?>" target="_blank">修改</a><span class="fg">|</span><a class="link" onclick="submit_all('invalid_house' ,0 ,<?php echo $value['id'];?>)" href="####">失效</a> </div>
                                <div class="jsImgBoxFun imgBox">
                                    <?php if($value['is_tag_result'] === TRUE) {  ?>
                                    <div class="pic  house_tag_<?php echo $value['id']; ?>" onClick="change_tag(<?php echo $value['id']; ?>, '<?php echo md5("HOUSE365_TAG_SET_".$value["id"]);?>')">
                                        <img alt="取消急推设置"  src="http://esf.s.house365.com/zsb/images/v1.0/new_jitui.gif" /><em class="btn btnT"></em>
                                        <input type="hidden" name ="is_tag_<?php echo $value['id']; ?>" id ="is_tag_<?php echo $value['id']; ?>" value='1'>
                                    </div>
                                    <?php }else{ ?>
                                        <?php if($value['tag_standard']['is_ok'] == 1){ ?>
                                        <div class="pic  house_tag_<?php echo $value['id']; ?>" onClick="change_tag(<?php echo $value['id'];?> , '<?php echo md5("HOUSE365_TAG_SET_".$value["id"]);?>')">
                                        <img alt="<?php echo $value['tag_standard']['msg']; ?>" src="http://esf.s.house365.com/zsb/images/v1.0/new_jitui.gif" /><em class="btn"></em>
                                        <input type="hidden" name ="is_tag_<?php echo $value['id']; ?>" id ="is_tag_<?php echo $value['id']; ?>" value='0'>
                                        </div>
                                        <?php } ?>
                                    <?php } ?>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
            <?php }?>
            <?php }else{ ?>		
            <div class="itemInfoBach radius4">
                <table class="table">
                    <tbody>
                        <tr>
                            <td class="td">没有符合条件的记录</td>
                        </tr>
                     </tbody>
                </table>
			</div>
            <?php }?>
           <div class="forms functionBox ">
                <dl id="jsFixed" class="list">
                    <dd class="list_item clearfix">
                        <div class="fields"> 
                            <!---->
                            <div class="fgInput jsFgInput" id="selectFun2">
                                <div class="imitateSelect">
                                    <div class="imitate imitateIe" >
                                  <input type="checkbox" class="jsSelectItem jsALLinput_c input_c" />
                                    </div>
                                    <div class="listImitate">
                                        <dl class="inner">
                                            <dd><a class="link" href="#" onClick="selectALL()">全选</a></dd>
                                            <dd><a class="link" href="#" onClick="selectALLf()">反选</a></dd>
                                            <dd><a class="link" href="#" onClick="selectALLn()">不选</a></dd>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                            <p class="textFg textFg2">&nbsp;</p>
                            <div class="fgInput"><a class="btn autoBtn btnCon"  onclick="submit_all('refresh')" href="####">刷新</a></div>
                            <!---->
                            <div class="fgInput">
                             <a class="btn autoBtn btnCon "  href="###" onclick="submit_all('appointment',this);">预约刷新</a>
                            </div>
                            <!---->
                            <div class="fgInput"><a class="btn autoBtn btnCon " onclick="submit_all('qx_reserve',this);"  href="####">取消预约</a></div>
                            <p class="textFg textFg2">&nbsp;</p>
                            <div class="fgInput"><a class="btn autoBtn btnCon" onclick="submit_all('invalid_house',this)"  href="####">失效</a></div>
                            <div class="fgInput fgInputRight"><a href="/reserve/project_manage/" class="btn autoBtn btnCon ">管理预约刷新方案</a></div>
                        </div>
                    </dd>
                </dl>
            </div>
          <input type = 'hidden' name ='page' value='<?php if(isset($post_param['page'])){ echo $post_param['page'];}else{ echo '1';}?>'>
		  <input type = 'hidden' name ='blockid' value="<?php if(isset($post_param['blockid'])){ echo $post_param['blockid'];}else{ echo '';}?>">
          </form>

		  <div class="clearfix"><!--add-->

			<div class="left" style="height:30px; padding:15px 0 0 10px; line-height:30px; color:#4c4c4c"> 当前条件下共有<strong style="color:#f47936"><?=$total_count?></strong>条房源</div>

            <!--翻页-->
            <?php if (!empty($pagination)) { ?>
                <div class="picPreviewPagBox right">
                    <div class="picPreviewPag">
                        <?php echo $pagination; ?>
                    </div>
                    <input type='hidden' name='page' value='<?php echo $page; ?>'>
                </div>
            <?php } ?>
			</div><!--add-->

			<?php if (isset($publish_block) && is_array($publish_block) && !empty($publish_block)) { ?>
			<div class="personalBox_top">
				<div class="personalBox radius5 inner">
					<div class="hotWord">
						<div class="nameWord">我的小区：</div>
							<div class="infoWord">
							<a href="<?php echo GB_WO_URL;?>/rent/manage/active/"><span>全部小区</span></a>
							<?php foreach($publish_block as $b_key => $b_val) { ?>
							<a onclick="document.search_form.blockid.value='<?php echo $b_val['blockid'];?>';document.search_form.submit();return false;" href="#"><span><?php echo $b_val['blockshowname'];?></span></a>
							<? } ?>
							</div>
					</div>
				</div>
			</div>
			<? } ?>
            <form action="<?php echo GB_WO_URL;?>/rent/do_action" method="post" name="action_form">
            <input type=hidden name="actiontype" value="">
            <input type=hidden name="actionid" value="">
            <input type=hidden name="infotype" value="">
            <input type=hidden name="pid" value="">
            <input type=hidden name="pg" value="<?php echo $page; ?>">
			<input type = 'hidden' name ='referer' value='<?php echo GB_WO_URL;?>/rent/manage/active/<?php echo $page;?>/'>
			<input type = 'hidden' name ='rent_token' value='<?php echo $_SESSION['rent_token_value']?>'>
            </form>
            <form action="" method="post" name="reserve_form">
                <input type=hidden name="tbl" value="rent">
                <input type=hidden name="actionid" value="">
                <input type=hidden name="actiontype" value="">
            </form>
    </div>
</div>
</div>
<!--批量操作弹出层-->
<div id="dialogtc2" 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="dialogSaveDiv2"></div>
		<div style="padding:20px 0 0 65px;">
                    <a href="###" class="btn savePrjoect btnConColor radius5" id="dialog_url2" onclick="closeP()">确定</a>
                    <a href="####" class="btn btnCon radius5 close-win">取消</a>
                    <input type="hidden" id="dialog2_id" value="" />
                </div>
	</div>
</div>

<!--操作结果弹出提示框-->
<div id="dialogts" 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="dialog_tip"></div>
    </div>
</div>

<!--页面处理中弹层-->
<div style="display:none; text-align: center;" id ='docation_loading'>
    <img src ="<?php echo STATIC_SOURCE_URL; ?>/common/images/loading_6.gif">
    <p style="font-size: 16px; font-family:'微软雅黑'; line-height: 30px; color: #fff;">正在处理</p>
</div>


<!--确定操作弹框-->
<div id="dialogtc" 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="dialogSaveDiv"></div>
		<div style="padding:20px 0 0 65px;">
                    <a href='####' class="btn savePrjoect btnConColor radius5" onclick="do_action();close_confirm_window()">确定</a>
                    <a href="####" class="btn btnCon radius5 close-win">取消</a>
                    <input type ="hidden" name='rowid' id = 'rowid' value = ''>
                    <input type ="hidden" name='secret_key' id = 'secret_key' value = ''>
                    <input type ="hidden" name='atction_type' id = 'atction_type' value = ''>
                    <input type ="hidden" name='do_type' id = 'do_type' value = ''>
		</div>
	</div>
</div>
<script>
function closeP()
{
    $('#dialogtc2').hide();
}

//关闭确认窗口
function close_confirm_window()
{
    $("#gTipsCoverdialogtc").remove();
    $("#dialogtc").hide();
}

function close_doaction_loading()
{   
    $('#docation_loading').hide();
}

//设置标签房源
function ajax_set_tag()
{
    var rowid = $("#rowid").val(); 
    var secret_key = $("#secret_key").val();
    var do_type = $("#do_type").val();
    
    //弹出处理遮罩层
    openWin('docation_loading');
    var form = $("#search_form");

    if(do_type == 1)
    {
        $.ajax({
            type: 'get',
            url: '<?php echo GB_WO_URL;?>/rent/house_tag_cancel/',
            data: { 'secret_key':secret_key , 'rowid':rowid},
            dataType: "json",
            success: function(data)
            {   
               close_doaction_loading();
               
                if(data.errorCode == '401')
                {
                    jump_win('<?php echo GB_WO_URL;?>/sell/jump/login/' , '请重新登录');
                    return false;
                }
                
               if( data.is_ok == '1' )
               {    
                    $("#dialogts #dialog_tip").html(data.msg);
                    openWin('dialogts');
                    form.submit();
               }
               else
               {    
                    $("#dialogts #dialog_tip").html(data.msg);
                    openWin('dialogts');
                    form.submit();
               }
            }
        });
    }
    else if(do_type == 0)
    {
        $.ajax({
            type: "get",
            url: "<?php echo GB_WO_URL;?>/rent/house_tag_set/",
            data: { 'secret_key':secret_key , 'rowid':rowid},
            dataType: "json",
            success: function(data)
            {
               close_doaction_loading();
               if( data.is_ok == '1' )
               {    
                    $("#dialogts #dialog_tip").html(data.msg);
                    openWin('dialogts');
                    form.submit();
               }
               else
               {    
                    $("#dialogts #dialog_tip").html(data.msg);
                    openWin('dialogts');
                    form.submit();
               }
            }
        });
    } 
}

function do_action()
{   
    var action_type = $('#atction_type').val();
    switch(action_type)
    {
        case "ajax_set_tag":
            ajax_set_tag();
            break;
        default:
            alert('no_doaction');
    }
}


//设置急推标签
function change_tag( rowid , secret_key )
{   
    var do_type = $('#is_tag_'+rowid).val();
    
    $('#rowid').val( rowid );
    $('#secret_key').val( secret_key );
    $('#atction_type').val('ajax_set_tag');
    $('#do_type').val(do_type);
    
    if(do_type == 1)
    {
        $("#dialogSaveDiv").html("您确定要对选定的房源纪录取消急推标签吗？取消后再次设置仍会消耗次数！");
        openWin("dialogtc");
    }
    else if(do_type == 0)
    {
		$("#dialogSaveDiv").html("您确定要对选定的房源纪录设置急推标签吗？");
        openWin("dialogtc");
    }
}
</script>

<?php if($guide_show){ ?>
<style> 
#guide05{ display:none; width:425px; height:175px; overflow:hidden; z-index:9999999; position:absolute;}
#guide05 .inner{width:425px; height:175px; overflow:hidden;background:url(http://esf.s.house365.com/zsb/images/v1.0/guide05.png) no-repeat 0 0;_background:transparent;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://esf.s.house365.com/zsb/images/v1.0/guide05.png');}
#guide05 .close{display:block; width:40px; height:40px; overflow:hidden; text-indent:-999px; position:absolute;right:23px; top:10px;}
#guide05 .link{display:block; width:100px; height:60px; overflow:hidden; text-indent:-9699px;position:absolute; right:0; top:116px;}

</style>
<div id="guide05">
	<div class="inner">&nbsp;</div>
	<a href="javascript:void(0)" class="link close-win" title="立即设置">立即设置</a>
	<a href="javascript:void(0)" title="关闭" class="close close-win">关闭</a>
</div>

<script>
	function showguide05()
		{
			var g_l = $("#jsHideFun").offset().left;
			var g_t = $("#jsHideFun").offset().top;
			$("#guide05").css({
					"top":g_t+6+"px",
					"left":g_l+339+"px"
			}).show()	
		}
$(function(){
	
	
		openWin();
		showguide05();
		$(window).resize(function(event){
				showguide05();
		});
		$("#guide05 .link,#guide05 .close").click(function(){
				$("#guide05").hide()
		})
})
</script>
<?php } ?>


<!--微信活动二维码-->
<div id="weixin_qrcode" class="weixin_qrcode" >
	<p  class="weixin_qrcode_01" >分享到微信朋友圈</p>
	<img  src="" alt="" id="weixinpic" width="190px;" height="190px"/>
	<p class="weixin_qrcode_02">打开微信点击底部的“发现”，</p>
	<p class="weixin_qrcode_02">使用“扫一扫”即可将网页分享至朋友圈。</p>
</div>

<script>
$(function(){	
	$(".wx_share_c").mouseover(function(){
	  
	   var sell_house = $(this).attr("value");	   
	   var wx_url ="http://user.house365.com/esf_center_api/getWxPic/?id="+sell_house+"&tbl=rent";
	 
	   $("#weixinpic").attr("src",wx_url);
	})
})
</script>


<!--微信活动二维码-->
<style>
  .withdelet{position:relative;left: 280px;top:60px; float:left;}
  .withoutdelet{position:relative;left:340px;top:45px;;float:left;}
  #weixin_qrcode{display: none;position:absolute;z-index: 100;}
  .weixin_qrcode {width: 260px;height: 300px;background: #fff;border:solid 1px #ccc;}
  .weixin_qrcode_01{font:bold 12px "宋体";display: inline-block;margin:10px;color:#000;}
  .weixin_qrcode_02{font:normal 11px "宋体";display: inline-block;color:#666;line-height: 20px;}
  .weixin_qrcode img{margin: 5px 0 10px 35px;}

</style>


<!---微信活动js-->
<script type="text/javascript">
$(function(){

  

     $(".wx_share_c").mouseover(function(e){ 
     	$("#weixin_qrcode").css({ 
              "top" :e.pageY+ "px", 
              "left" :e.pageX + "px" ,
              "display":"block"
});   }); 

$(".wx_share_c").mouseout(function(){ 
$("#weixin_qrcode").css({ "display":"none" });

     })


	
 })
</script>