


        <div id="centre" class="layout" >
            <div class="centreInner ">
                <div class="mainInner radius5 "> 
                    <!---->
                    <div class=" belongBox radius3 belongBoxBg">
                        <table class="table">
                            <tr>
                                <td class="wB20"><div class="bold bg">推荐出售房源</div></td>
                                <td class="wB30">已使用：<em class="bold color2"><?php echo $rec_sell_num;?></em><span class="fg"><em class="bold color"></em></span></td>
                                <td class="wB20"><div class="bold bg bl">推荐出租房源</div></td>
                                <td class="wB30">已使用：<em class="bold color2"><?php echo $rec_rent_num;?></em><span class="fg"><em class="bold color"></em></span></td>
                            </tr>
                        </table>
                    </div>
                    <!---->
                    <div class=" functionBox fgTextTopExplain"> 使用说明：您可以在您的个人店铺首页中推荐优质房源进行展示 <a href="<?=$documentation['shop_recommend_rule']?>" class="link" target="_blank">查看详细说明&gt;&gt;</a> <a href="http://nj.sell.house365.com/agent_bk<?=$uid?>/" class="link"  target="_blank">进入店铺查看&gt;&gt;</a> </div>
                    <!---->
                    <div class="titleTabBox">
                        <div class="titleTab">
                            <div class="titleTabB clearfix">
                                <dl class="list">
                                    <?php if($tbl=='sell'){?>
                                    <dd class="item itemOn"> <a class="link" href="/shop/shop_house_recommend/"> 出售 </a></dd>
                                    <dd class="item "> <a class="link" href="?tbl=rent"> 出租</a> </dd>
                                    <?php }else{?>
                                    <dd class="item "> <a class="link" href="/shop/shop_house_recommend/"> 出售 </a></dd>
                                    <dd class="item itemOn"> <a class="link" href="?tbl/rent"> 出租</a> </dd>
                                    <?php }?>
                                </dl>
                            </div>
                        </div>
                    </div>

                    <!----> 
                     <form id="search_form" name="search_form" method="get" action="">
                    <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 $post_param['infotypename'] = isset($post_param['infotypename'] ) ? $post_param['infotypename'] : '';    if($post_param['infotypename']=='不限'){echo '房源类型';}else{ echo $post_param['infotypename'];} ?>"/>
                                             <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 oid="0" class="link">不限</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>
                                 <?php if($tbl=='sell'){?>
                                    <div class="fgInput jsFgInput">
                                        <div class="imitateSelect">
                                            <label class="labelImitate" >价格</label>
                                            <input type="text" name="price_sellname" class="imitate imitateIe" readonly value="<?php $post_param['price_sellname'] = isset($post_param['price_sellname']) ? $post_param['price_sellname'] : '';    if($post_param['price_sellname']=='不限'){echo '价格';}else{echo $post_param['price_sellname'];} ?>"/>
                                             <input type="hidden" name="price_sell" class="jsImitateHidden" value="<?php if(isset($post_param['price_sell'])){ echo $post_param['price_sell']; } else { echo 0;}?>"/>
                                            <div class="listImitate">
                                                <dl class="inner">
                                                    <dd><a oid="0" class="link">不限</a></dd>

                                                  <?php foreach($house['price_sell'] as $key=>$value){ ?>
                                                <dd><a class="link" oid="<?php echo $key;?>" href="####"><?php echo $value;?></a></dd>
                                                 <?php } ?>                                 

                                                </dl>
                                            </div>
                                        </div>
                                    </div>
                                 <?php }else{?>
                                     <div class="fgInput jsFgInput">
                                        <div class="imitateSelect">
                                            <label class="labelImitate" >租金</label>
                                            <input type="text" name="price_rentname" class="imitate imitateIe" readonly value="<?php  $post_param['price_rentname'] = isset($post_param['price_rentname']) ? $post_param['price_rentname'] : '';  if($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 oid="0" class="link">不限</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>
                                    
                                 <?php }?>

                                    <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 $post_param['buildareaname'] = isset($post_param['buildareaname']) ? $post_param['buildareaname'] : '';  if($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 oid="0" class="link">不限</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  $post_param['roomtypename'] = isset($post_param['roomtypename']) ? $post_param['roomtypename'] : "";   if($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" style="display: none;">
                                                <dl class="inner">
                                                    <dd><a oid="0" class="link">不限</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" style="display: none;">
                                                <dl class="inner inner2">
                                                    <dd><a oid="1" onclick="addThisText('请输入小区名称')" href="####" class="link">小区名称</a></dd>
                                                    <dd><a oid="2" onclick="addThisText('请输入房源编号')" href="####" class="link">房源编号</a></dd>
                                                    <dd><a oid="3" onclick="addThisText('请输入房源内部编号')" href="####" class="link linkOn">内部编号</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>
                                    <!---->
                                    <input type="hidden" value="" name="esta">
                                    <p class="textFg textFg2">&nbsp;</p>
                                    <div class="fgInput"> <input type="submit" value="搜索" class="btn btnCon radius5" style="cursor: pointer;"> </div>

                                    <!----> 

                                </div>
                            </dd>
                        </dl>
                    </div>
                         <input type = 'hidden' name ='page' value='<?php echo $page; ?>'>
                         <input id="tbl" type = 'hidden' name ='tbl' value='<?php echo $tbl;?>'>
                          <input id="istop" type="hidden" name="istop" value="">                  
                          <input type="hidden" name="houseid" value="" id="houseid">
                    </form>
                    <!---->

                    <div class=" functionBox functionBoxInnerNone"> </div>

                    <!---->

                    <div class="fgTitleBox radius4">
                        <table class="table">
                            <tr>
                                <td class="w20">&nbsp;</td>
                                <td class="w260">房源基本信息</td>
                                <td class="w104">创建时间</td>
                                <td class="w104">更新时间</td>
                                <td class="w220">剩余天数</td>
                                <td>店铺首页推荐</td>
                            </tr>
                        </table>
                    </div>

                    <!---->
            <?php if( is_array($data_info) && !empty($data_info)){ ?>
            <?php foreach ($data_info as $key => $value ) { ?>
                    <?php 
                    $createtime = date('m-d H:i', $value['creattime']);
                    $updatetime = date('m-d H:i', $value['updatetime']);
                    $time = strtotime(date('Ymd 23:59:59', $value['expiretime']));
                    $nowtime = strtotime(date('Ymd 23:59:59'));
                    $dif = $time - $nowtime;
                    $d = intval(ceil($dif / 86400));
                    if ($tbl == 'sell') 
					{
						$price = $value['price'] . '万';
						$renttype = '';
						$name = '出售';
                        $detail_url = SELL_DETAIL.$value['id'].".html";
                    } 
					else 
					{
						$value['priceunit'] = $value['priceunit'] ? $value['priceunit'] : 1;
						$unit = $house['priceunit'][$value['priceunit']];
						$price = $value['price'] . $unit;
						$renttype = $value['renttype'] . '&nbsp;';
						$name = '出租';
                        $detail_url = RENT_DETAIL.$value['id'].".html";
                    }
                    ?>
                    <div class="itemInfoBach radius4">
                        <table class="table">
                            <tbody>
                                <tr>
                                    <td class="td w20">&nbsp;</td>
                                    <td class="td second"><div class="itemTex"> <a href="<?=$detail_url?>" target="_blank" class="name"><?php echo $value['blockshowname'];?> </a>
									<?php if($value['is_star_result'] === TRUE) {  ?>
                                    <img alt="多图房源" title="多图房源" src="http://esf.s.house365.com/zsb/images/v1.0/new_duotu.gif" />
									<?php } ?>
									</div>
                                        <div class="itemTex"><span><?php echo $value['room'];?>室<?php echo $value['hall'];?>厅</span>&nbsp;<span><?php echo $value['buildarea'];?>㎡</span>&nbsp;<?php echo $price;?></div>
                                        <div class="itemTex itemTex2"><span>房源编号：<?php echo $value['id'];?></span>&nbsp;
                                            <?php if(!isset($value['ownid'])){?>
                                            内部编号：<?php echo $value['ownid'];?>
                                            <?php }?>
                                        </div></td>
                                    <td class="td w104"><?php echo $createtime;?> </td>
                                    <td class="td w104"><?php echo $updatetime;?></td>
                                    <td class="td w220"><span class="mr17">房源：<span class="color"><?php echo $d;?></span>天</span></td>
                                    <td class="td"><div class="fun">
                                            <div class="shopImgBoxFun imgBox imgBoxNTB">
                                                <div class="pic picN jsPic" style="cursor: pointer;" id="<?php echo $value['id'];?>" top="<?=$value['istop']?>"><img   src="http://esf.s.house365.com/zsb/images/v1.0/tj.png" alt="" >
                                                    <?php if($value['istop']==2){?>
                                                    <em class="btn btnT"></em>
                                                     <?php }else{?>
                                                     <em class="btn "></em>
                                                     <?php }?>
                                                    <div class="tipNumber">
                                                        <div class="tipNumberSj">
                                                            <div class="one ico"></div>
                                                            <div class="two ico"></div>
                                                            <div class="three ico"></div>
                                                            <div class="four ico"></div>
                                                            <div class="five ico"></div>
                                                            <div class="six ico"></div>
                                                        </div>
                                                        <?php if($value['istop']==2){?>
                                                        <div class="tipNumberInner" value="2">取消推荐到首页</div>
                                                        <?php }else{?>
                                                         <div class="tipNumberInner" value="2">推荐到店铺首页</div>
                                                        <?php }?>
                                                    </div>
                                                </div>
                                            </div>
                                        </div></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>

                    <!---->
            <?php }?>
            <?php }else{?>
                     <div class="itemInfoBach radius4" style="text-align:center; line-height:97px;">没有符合条件的记录</div>
            <?php }?>

                    
                    
                    <!---->
                   

                    <!---->
                    <div class=" functionBox functionBoxInnerNone"> </div>

                    <!--翻页-->
                 <?php if (!empty($pagination)) { ?>
                    <div class="picPreviewPagBox pagBoxBorderTop">
                        <div class="picPreviewPag">
                            <?php echo $pagination; ?>
                        </div>
                        <input type='hidden' name='page' value='<?php echo $page; ?>'>
                    </div>
                <?php } ?>
                </div>
            </div>
        </div>
        <style>
            .itemInfoBach .imgBox { text-align:center;}

        </style>
        <script type="text/javascript">
            $(function() {
                $(".shopImgBoxFun").find(".picN").hover(function() {
                    $(this).find(".tipNumber").show();
                }, function() {
                    $(this).find(".tipNumber").hide();
                });        
               
                $(".jsPic").bind('click',function(){
                    $("#istop").val($(this).attr('top'));
                    $("#houseid").val($(this).attr('id'));
                    $("#search_form").attr("action","/shop/shop_recommend/");                   
                    $("#search_form").attr("method","post");                
                    $("#search_form").submit();
                });
         
                
            });
        </script>
    </body>
</html>
<div id="jsDialogE" class="dialog radius5" >
	<div class="hd">
		<h3 class="h3">提示</h3>
		<p class="close close-win" title="关闭">关闭 </p>
	</div>
	<div class="mod">
		<div class="text" id="jsDialogE_msg"></div>
	</div>
</div>