<div id="centre" class="layout">
    <div class="broadCentre radius5">
        <div class="hd">
            <h3 class="h3"><?=$title?></h3>
            <p class="more"><a class="link" href="http://zsb.house365.com/help/?p=36" target="_blank">使用说明&gt;&gt;</a></p>
        </div>
        <div class="mod">
            <div class="titleTabBox">
                <div class="titleTab">
                    <div class="titleTabB clearfix">
                        <dl class="list">
                            <dd class="item <?php if ($module == 'sell') echo 'itemOn'; ?>"><a class="link" href="<?= $url_manage_sell ?>"> 出售</a> </dd>
                            <dd class="item"> <a class="link <?php if ($module == 'rent') echo 'itemOn'; ?>" href="<?= $url_manage_rent ?>">出租</a> </dd>  
                        </dl>
                    </div>
                </div>
            </div>
            <div class="templateBox clearfix">
                <div class="list">
                    <?php
                    if (is_array($array_template) && !empty($array_template)) 
                    {
                        foreach ($array_template as $key => $value) {
                    ?>
                            <div class="item">
                                <div class="itemInner radius5">
                                    <div class="clearfix">
                                        <h2 class="h2"><?php echo $value['template_name']; ?></h2>
                                        <p class="houseNume"><?php echo $value['block_name']; ?></p>
                                    </div>
                                    <p class="tex">最后修改时间：<?php echo date("Y-m-d", $value['update_time']); ?></p>
                                    <div class="btnBox"><a  href="<?=$url_modify ?><?php echo $value['id']; ?>" class="btn btnConColor radius5">编辑</a>
                                        <a href="####" class="btn delbut btnCon radius5" idval="<?php echo $value['id']; ?>">删除</a></div>
                                </div>
                            </div>
                        <?php }
                    } ?>
                    <!--如果大于六套模版就不显示添加模版-->
                    <?php 
                    if ($template_num < 12) 
                    { 
                    ?>
                        <div class="item">
                            <a  href="<?=$url_add ?>" class="addTemplate radius5">
                                <span class="add">+</span>
                                <span class="text">添加房源模板</span> 
                            </a> 
                        </div>
                    <?php } ?>
                </div>
            </div>
            <div class="templateBack">
                <a class="btn btnCon radius5" href="<?=$url_add_house ?>">返回发布<?=$module_name ?></a>
            </div>
        </div>
    </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>
<script type="text/javascript">
    function delete_evaluate(module)
    {
        var id = $("#del_temp").val();
        var _href = "<?= $url_delete ?>" + module + "/" + id;
        window.location.href = _href;
    }

    $(".delbut").bind("click", function() {
        var id = $(this).attr("idval");
        $("#del_temp").val(id);
        openWin("jsDialogDel");
    })
</script>

<div id="jsDialogDel" 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="####" onclick="delete_evaluate('<?php echo $module; ?>');" class="btn btnConColor radius5 close-win">确定</a>
            <a href="####" class="btn btnCon radius5 close-win">取消</a>
            <input type="hidden" id="del_temp" value="" />
        </div>
    </div>
</div>
