{template "header.html", "/"}
<script language="javascript">
    // 这是加入收藏夹的ajax请求，我就随意写了一下提示信息，至于美化啊什么交给你们了
    function dr_favorite() {
        $.get("/index.php?s={MOD_DIR}c=api&m=favorite&id={$id}", function(data){
            if (data == 1) {
                dr_tips("没有登录，不能收藏");
            } else if (data == 2) {
                dr_tips("文档不存在，无法收藏");
            } else if (data == 3) {
                dr_tips("更新收藏成功", 3, 1);
            } else if (data == 4) {
                dr_tips("收藏成功", 3, 1);
            }
        });
    }
</script>
<div class="page-container">
    <div class="page-content-wrapper">

        <div class="page-content">
            <div class="container">

                <ul class="page-breadcrumb breadcrumb">
                    <li>
                        <a href="{SITE_URL}">首页</a>
                        <i class="fa fa-circle"></i>
                    </li>
                    <li>
                        <a href="{MODULE_URL}">{MODULE_NAME}</a>
                        <i class="fa fa-circle"></i>
                    </li>
                    {dr_catpos($catid, '', true, '<li><a href="{url}">{name}</a><i class="fa fa-circle"></i></li>')}
                    <li>
                        <span>正文</span>
                    </li>
                </ul>

                <div class="page-content-inner">
                    <div class="search-page search-content-2">
                        <div class="row">
                            <div class="col-lg-12">
                                <div class="portlet light">
                                    <div class="row">
                                        <div class="col-md-12" style="padding-top: 10px; padding-bottom: 10px">
                                            <img width="260" src="{dr_get_file($thumb)}">
                                        </div>
                                        <div class="col-md-12">
                                            <div class="portlet light" style="padding-top:0px;margin-bottom:0;padding-left: 0px;">
                                                <div class="portlet-title">
                                                    <div class="caption">
                                                        <span class="caption-subject font-dark bold uppercase">{$title}</span>
                                                    </div>
                                                </div>
                                                <div class="search-post-foot" style="padding-top:0px;text-align:left;padding-bottom: 10px">
                                                    <div class="search-post-meta">
                                                        <i class="icon-user font-blue"></i>
                                                        <a href="javascript:;">{$author}</a>
                                                    </div>
                                                    <div class="search-post-meta">
                                                        <i class="icon-calendar font-blue"></i>
                                                        <a href="javascript:;">{$updatetime}</a>
                                                    </div>
                                                    <div class="search-post-meta">
                                                        <i class="icon-fire font-blue"></i>
                                                        <a href="javascript:;">{dr_show_hits($id)}次</a>
                                                    </div>
                                                    <div class="search-post-meta">
                                                        <i class="icon-bubble font-blue"></i>
                                                        <a href="javascript:;">{$comments}</a>
                                                    </div>
                                                    <div class="search-post-meta">
                                                        <i class="icon-flag font-blue"></i>
                                                        <a href="javascript:dr_favorite();">加入收藏</a>
                                                    </div>
                                                </div>
                                                <p><strong>所在区域：</strong>{dr_linkagepos('address', $area, ' > ', dr_search_url($params, 'area', '{linkage}'))}</p>
                                                <p><strong>小区名称：</strong>{$xiaoqumingcheng}</p>
                                                <p><strong>租金信息：</strong>{$zujin}/月，{$zujinleixing}</p>
                                                <p><strong>联系姓名：</strong>{$lianxiren}</p>
                                                <p><strong>联系电话：</strong>{$lianxidianhua}</p>
                                                <p><strong>详细地址：</strong>{$dizhi}</p>
                                                <p><strong>户型状况：</strong>{$shi}室，{$ting}厅，{$wei}卫，{$huxing}</p>
                                                <p><strong>房屋状况：</strong>共{$zongceng}层，第{$suozaiceng}层，{$mianji}平米，{$zhuangxiu}，{$chaoxiang}</p>
                                                <p><strong>配置状况：</strong>{if $peitao}{implode('，', $peitao)}{/if}</p>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>


                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet light">
                                    <div id="myphoto">
                                        <div class="row">
                                            {loop $images $i $t}
                                            <div class="col-md-2" style="line-height:150px;">
                                                <a href="{dr_get_file($t.file)}" title="{$t.title}"> <img src="{dr_thumb($t.file, 130,130)}" width="150" height="120" /></a>
                                            </div>
                                            {/loop}
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet light">
                                    {dr_baidu_map($weizhi, 19, 0, 400)}
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet light">
                                    <div class="portlet-body" style="height: auto;">
                                        {$content}
                                    </div>

                                    <div class="blog-single-foot">

                                        <ul class="blog-post-tags" style="margin-top: 20px;">
                                            {loop $keyword_list $name $url}
                                            <li class="uppercase">
                                                <a href="{$url}" target="_blank">{$name}</a>
                                            </li>
                                            {/loop}
                                        </ul>
                                        <p class="f14" style="margin-bottom: 0">
                                            <strong>上一篇：</strong>{if $prev_page}<a href="{$prev_page.url}">{$prev_page.title}</a>{else}没有了{/if}<br>
                                            <strong>下一篇：</strong>{if $next_page}<a href="{$next_page.url}">{$next_page.title}</a>{else}没有了{/if}
                                        </p>
                                    </div>

                                    {dr_module_comment(MOD_DIR, $id)}

                                </div>


                            </div>
                        </div>
                    </div>


                </div>
            </div>
        </div>
    </div>
</div>


<script type="text/javascript" src="{HOME_THEME_PATH}photo/src/js/hammer.min.js"></script>
<script type="text/javascript" language="javascript" src="{HOME_THEME_PATH}photo/lib/FlameViewportScale.js"></script>
<script type="text/javascript" language="javascript" src="{HOME_THEME_PATH}photo/src/js/jquery.tosrus.min.all.js"></script>
<link type="text/css" media="all" rel="stylesheet" href="{HOME_THEME_PATH}photo/src/css/jquery.tosrus.all.css" />
<script type="text/javascript" language="javascript">
    jQuery(function($) {
        $('#myphoto a').tosrus({
            pagination: {
                add: true
            },
            caption: {
                add: true
            },
            slides: {
                scale: 'fill'
            }
        });

    });
</script>

{template "footer.html", "/"}