<script type="text/javascript" src="{$_config[siteurl]}data/cachefiles/inputlimit.js"></script>
<script type="text/javascript" src="{$_config[siteurl]}include/javascript/review.js"></script>
<script type="text/javascript" src="{$_config[siteurl]}include/javascript/favorite.js"></script>
<script type="text/javascript" src="{$_config[siteurl]}include/javascript/pmsg.js"></script>
<div id="body">
<div class="link_path">
    <a href="{$_config[siteurl]}">首页</a>&nbsp;&raquo;&nbsp;<a href="reviews.php">商铺点评</a>&nbsp;&raquo;&nbsp;<a href="shop.php?shopid=$shop[sid]">$shop[fullname]</a>&nbsp;&raquo;&nbsp;会员点评：<a href="{$_modules[space][url]}index.php?suid=$member[uid]">$member[username]</a>
</div>
<div class="mainrail rail-border-3">
    <div id="detail_right">
        <div class="mainrail">
            <h1 class="rail-h-3 rail-h-border-1"><b>$shop[fullname]</b></h1>
            <ul class="rail-list">
                <!--{if $shop}-->
                <li>地址：$shop[address]</li>
                <!--{if $shop[tel1] || $shop[tel2]}--><li>电话：$shop[tel1]&nbsp;&nbsp;$shop[tel2]</li><!--{/if}-->
                <li><a href="{$_modules[shop][url]}post.php?action=newreview&shopid=$shop[sid]">添加点评</a></li>
                <li><a href="javascript:;" onclick="addfavorite($shop[sid]);">加入收藏</a></li>
                <li><a href="{$_modules[shop][url]}shop.php?shopid=$shop[sid]">查看更多介绍和点评</a></li>
                <!--{else}-->
                <li>商铺信息不存在或已被删除。</li>
                <!--{/if}-->
            </ul>
        </div>
        <!--{if $flowercount > 0}-->
        <div class="mainrail">
            <h1 class="rail-h-3 rail-h-border-1">此点评有<span class="font_2"><b>{$flowercount}</b></span>人鲜花支持</h1>
            <ul class="rail-list">
                <!--{loop $flowers $flower}-->
                <li><a href="{$_modules[space][url]}index.php?suid=$flower[uid]">$flower[username]</a></li>
                <!--{/loop}-->
            </ul>
        </div>
        <!--{/if}-->
    </div>
    <div id="detail_left">
        <div class="review">
            <div class="feed"><span><a href="{$_modules[space][url]}index.php?suid=$review[member][uid]">$review[member][username]</a></span>&nbsp;在{date $review[posttime], 'w2style'}点评了&nbsp;<h3><a href="{$_modules[shop][url]}shop.php?shopid=$review[shopid]">$shop[fullname]</a></h3></div>
            <div class="review">
                <div class="member detail_member">
                    <a href="{$_modules[space][url]}index.php?suid=$review[member][uid]"><img src="$review[member][face]" class="face"></a>
                    <ul>
                        <li>$review[member][rank]</li>
                        <li>点评:$review[member][reviews]</li>
                        <li>积分:$review[member][point]</li>
                        <li>金币:$review[member][coin]</li>
                    </ul>
                </div>
                <div class="info">
                    <ul class="score">
                        <!--{loop $reviewsorts $key $val}--><li>$val</li><li class="start{$review[$key]}"><p></li><!--{/loop}-->
                    </ul>
                    <p>$review[content]<!--{if $review[more_enable]}-->&nbsp;<a href="viewreview.php?reviewid=$review[rid]"><span class="font_1">全文</span></a><!--{/if}--></p>
                    <ul class="params">
                        <!--{if $review['avgprice']}--><li>人均消费: <span class="font_2">$review[avgprice]元</span></li><!--{/if}-->
                        <!--{if $review['producttags']}--><li>推荐产品:<!--{loop $review['producttags'] $tag}--><a href="tag.php?tagname=$tag[tagnameenc]">$tag[tagname]</a></li><!--{/loop}-->
                        <!--{/if}-->
                        <!--{if $review['shoptags']}--><li>商铺标签:<!--{loop $review['shoptags'] $tag}--><a href="tag.php?tagname=$tag[tagnameenc]">$tag[tagname]</a></li><!--{/loop}-->
                        <!--{/if}-->
                        <!--{if $review['suitplacetags']}--><li>适合环境: <!--{loop $review['suitplacetags'] $tag}--><a href="tag.php?tagname=$tag[tagnameenc]">$tag[tagname]</a></li><!--{/loop}--><!--{/if}-->
                    </ul>
                    <p style="text-align:right;">
                        <span class="respond-ico"><a href="#respond">回应</a></span>(<span class="font_2">{$total}</span>)&nbsp;&nbsp;<span class="flower-ico"><a href="javascript:;" onclick="addflower('$review[rid]',$review[flower]);">鲜花</a>(<span id="flower_$review[rid]"><span class="font_2">$review[flower]</span></span>)</span>&nbsp;&nbsp;<span class="pm-ico"><a href="javascript:;" onclick="pmsg($member[uid],'关于$shop['fullname']的点评');">发短信</a></span>&nbsp;&nbsp;<span class="member-ico"><a href="javascript:;" onclick="addfriend($member[uid]);";>加为好友</a></span>&nbsp;&nbsp;<a href="javascript:;" onclick="show_report('$review[rid]');">举报</a>
                    </p>
                </div>
                <div class="clear"></div>
            </div>
        </div>
        <a name="respond"></a>
        <div class="respondlist">
            <h3 class="rail-h-3"><b>点评回应</b></h3>
            <!--{if $total > 0}-->
            <!--{loop $responds $respond}-->
            <div class="respond" id="respond_$respond[uid]">
                <h5><a href="{$_modules[space][url]}index.php?suid=$respond[uid]">$respond[username]</a> :</h5>
                <p>$respond[content]&nbsp;[<span class="font_3">{date $respond[posttime],'w2style'}</span>]</p>
            </div>
            <!--{/loop}-->
            <div class="multipage">$multipage</div>
            <!--{/if}-->
        </div>
        <div class="post">
            <!--{if $user->isLogin}-->
            <a name="respond" id="respond"></a>
            <!--{if $error}--><div class="formerror">$error</div><!--{/if}-->
            <div class="title"><h1>添加我的回应：</h1>
            </div>
            <form method="post" action="post.php?action=newrespond&amp;reviewid=$reviewid" name="respondfrm">
            <table class="table" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td><textarea name="content" rows="5">$content</textarea>
                    [<a href="javascript:;" onclick="addrows(respondfrm.content,8);">＋增加行数</a>]&nbsp;&nbsp;[<a href="javascript:;" onclick="decrows(respondfrm.content,8);">－减少行数</a>]&nbsp;&nbsp;[<span class="font_2">字数请控制在<span class="font_1">{$_inputlimit[respond][min]} - {$_inputlimit[respond][max]}</span>字以内</span>]
                    </td>
                </tr>
                <tr>
                    <td><button type="submit" value="yes" name="newrespondsubmit">&nbsp;提&nbsp;交&nbsp;</button></td>
                </tr>
            </table>
            <!--{else}-->
            <div class="review_nologin">想要回应几句? 请先<a href="{$_config[siteurl]}member/login.php">登录</a>或<a href="{$_config[siteurl]}member/reg.php">快速注册</a>。</div>
            <!--{/if}-->
        </div>
    </div>
    <div class="clear"></div>
</div>
</div>