<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$charset" />
<title>$subtitle - {$_config[sitename]}{$_config[subname]}</title>
<meta name="keywords" content="$_config[meta_keywords]" />
<meta name="description" content="{sublen $shop[content],100,''},$_config[meta_description]" />
<link rel="stylesheet" type="text/css" href="{$itemstyle_url}css_style.css" />
<link rel="stylesheet" type="text/css" href="{$template_url}css_common.css" />
<link rel="stylesheet" type="text/css" href="{$_config[siteurl]}images/jquery/ui.css" media="screen" />
<!--{if $_config[headhtml]}-->$_config[headhtml]<!--{/if}-->{LF}
<script type="text/javascript">
var siteurl = '{$_config[siteurl]}';
</script>
<script type="text/javascript" src="{$_config[siteurl]}include/javascript/jquery.js"></script>
<script type="text/javascript" src="{$_config[siteurl]}include/javascript/common.js"></script>
<script type="text/javascript" src="{$_config[siteurl]}include/javascript/jquery-ui.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">
window.onload = function() {
    user_effect($shopid,'shop','effect1','getusers');
    user_effect($shopid,'shop','effect2','getusers');
}
{LF}
<!--{if $shop['usemap']}-->
var lng = '$shop[mappoint][0]';
var lat = '$shop[mappoint][1]';
var shopname = '$shop[fullname]';
<!--{else}-->
var d_lng = $_default_mappoint[0];
var d_lat = $_default_mappoint[1];
<!--{/if}-->
</script>
</head>
<body>
<div id="layout">
<div id="header">
    <div class="titlebg">
        <h1><a href="shop.php?shopid=$shopid">$shop[fullname]</a></h1>
        <div>
            <h3>{$MOD[url]}?$shopid</h3>
            <h5><a href="javascript:;" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('{$MOD[url]}shop.php?shopid=$shopid')">设为主页</a>&nbsp;&nbsp;
            <a href="javascript:;" onclick="addfavorite($shop[sid]);">收藏本店</a></h5>
        </div>
    </div>
    <div class="titleft">
        <div class="left">
            <!--{if $panelcfg[itemapply]}-->
            <em><span><!--{if $shop[owner]}-->店主：<a href="{$_modules[space][url]}index.php?suid=$shop[ownerid]">$shop[owner]</a>
                <!--{else}--><a href="{$_config[siteurl]}member/?ac=itemapply&shopid=$shopid">认领本商铺</a><!--{/if}-->
            </span></em>
            <!--{/if}-->
            &nbsp;&nbsp;&nbsp;
            <span><a href="{$_config[siteurl]}">首页</a></span>
            <!--{if $shop[ownerid]>0 && $shop[ownerid] == $user->uid}-->
            <span><a href="{$_config[siteurl]}member/?ac=myitems">商铺管理</a></span>
            <span><a href="{$_config[siteurl]}member/?ac=postarticle&shopid=$shopid">发布资讯</a></span>
            <!--{/if}-->
        </div>
        <div class="right"></div>
    </div>
</div>
<div id="body">
    <div class="left">
        <div class="header"></div>
        <div class="body">
            <ul class="contact">
                {if $shop[website]}<li><span class="red"><b>网址：$shop[website]</b></span></li>{/if}
                {if $shop[tel1]}<li><span class="red"><b>电话：$shop[tel1] $shop[tel2]</b></span></li>{/if}
                {if $shop[mobile]}<li><span class="red"><b>手机：$shop[mobile]</b></span></li>{/if}
                {if $shop[address]}<li><span class="red"><b>地址：$shop[address]</b></span></li>{/if}
            </ul>
            <p class="line"></p>
            <div class="titlebg"><span>商家资讯</span></div>
            <ul class="news">
                <!--{datacall:45}-->
            </ul>
            <p class="line"></p>
            <div class="titlebg"><span>商家介绍</span></div>
            <p class="info">$shop[content]</p>
            <p class="line"></p>
            <em><a href="javascript:user_effect($shopid,'shop','effect1','add','getuser');">我去过</a></em>
            <div class="titlebg"><span>去过的会员</span></div>
            <p class="info" id="users_effect1"></p>
            <p class="line"></p>
            <em><a href="javascript:user_effect($shopid,'shop','effect2','add','getuser');">我想过</a></em>
            <div class="titlebg"><span>想去的会员</span></div>
            <p class="info" id="users_effect2"></p>
        </div>
        <div class="footer"></div>
    </div>
    <div class="right">
        <div class="item">
            <div class="info">
                <div class="video">
                    <object width="440" height="350">
                        <param name="movie" value="$shop[video]"></param>
                        <param name="allowScriptAccess" value="always"></param>
                        <param name="allowFullScreen" value="true"></param>
                        <param name="wmode" value="transparent"></param>
                        <embed src="$shop[video]" type="application/x-shockwave-flash" width="440" height="350" allowFullScreen="true" wmode="transparent" allowScriptAccess="always"></embed>
                    </object>
                </div>
                <div class="other">
                    <div class="card">
                        <!--{if $_modules[card] && $shop[membercard]}-->
                        $_modules[card][name]：<span class="font_2"><strong>$shop[membercard_msg]</strong></span>
                        <!--{if $shop[exception]}--><span class="font_3">($shop[exception])</span><!--{/if}-->
                        <!--{/if}-->
                    </div>
                    <div class="map" id="map_small">
                        <!--{if $_panel_config[$pcd][mapmark]}-->
                        <iframe id="map_iframe" src="{$itemstyle_url}map.htm" frameborder="0" scrolling="no"></iframe>
                        <span><!--{if !$shop['usemap']}--><a href="{$MOD[url]}shop_map.php?action=mark&shopid=$shop[sid]">地图未标注，我来标注</a><!--{else}--><a href="{$MOD[url]}shop_map.php?action=big&shopid=$shop[sid]" target="_blank">查看大图</a>&nbsp;&nbsp;<a href="javascript:show_upshopmap('$shop[sid]');">报错</a><!--{/if}--></span>
                        <!--{/if}-->
                    </div>
                </div>
                <div style="clear:both;"></div>
            </div>
            <!--{if $shop['picturelist']}-->
            <link rel="stylesheet" type="text/css" href="{$_config[siteurl]}images/lightbox/lightbox.css" />
            <script type="text/javascript" src="{$_config[siteurl]}include/javascript/lightbox.js"></script>
            <div class="plctures">
                <div id="demo" style="overflow:hidden;width:720px;padding:2px;margin:5px 0 0 10px;" onmouseover="stopscroll();" onmouseout="doscroll();">
                    <div id="demo1" style="white-space:nowrap;padding:0;">
                        <!--{loop $shop['picturelist'] $picture}-->
                        <a href="$picture[url]" title="$picture[title]" target="_blank"><img src="$picture[thumb_url]" $picture[thumb_alt]  /></a>
                        <!--{/loop}-->
                    </div>
                </div>
            </div>
            <script type="text/javascript">
            $(function() {
                $('#demo a').lightBox();
            });
            </script>
            <!--{/if}-->
            <div class="footer"></div>
        </div>
        <div class="reviews">
            <div class="titlebg">
                <em>
                    <a href="post.php?action=uploadpicture&shopid=$shopid"><span style="color:#FFFF00;font-weight:bold;">上传图片</span></a>&nbsp;
                    <a href="shop.php?shopid=$shopid&review_orderby=posttime#review">最新点评</a>&nbsp;
                    <a href="shop.php?shopid=$shopid&review_orderby=flower#review">最多鲜花</a>&nbsp;
                    <a href="shop.php?shopid=$shopid&review_orderby=respond#review">最多回应</a>
                </em>
                <h3><a name="review">会员点评</a></h3>
            </div>
            <div class="list">
                <!--{if $reviews}-->
                <!--{loop $reviews $review}-->
                <table class="reviewtable" cellspacing="0" cellpadding="0" border="0">
                    <tr>
                        <td class="memberinfo" valign="top" rowspan="2">
                            <a href="{$_modules[space][url]}index.php?suid=$review[member][uid]"><span class="font_5">$review[member][username]</span></a><br />
                            <a href="{$_modules[space][url]}index.php?suid=$review[member][uid]"><img src="$review[member][face]" class="face"></a>
                            <span class="rank">$review[member][rank]</span><br />
                            点评:<span class="font_2">$review[member][reviews]</span><br />
                            积分:<span class="font_2">$review[member][point]</span><br />
                            金币:<span class="font_2">$review[member][coin]</span>
                        </td>
                        <td class="review" valign="top">
                            <div class="reviewsort">
                                <!--{loop $reviewsorts $key $val}--><li>$val</li><li class="start{$review[$key]}"></li><!--{/loop}-->
                            </div>
                            <div class="sort">$review[content]</div>
                            <div class="sort">
                                <!--{if $review['avgprice']}-->人均消费: <span class="font_2">$review[avgprice]元</span><!--{/if}-->
                                <!--{if $review['producttags']}--><br />推荐产品:<!--{loop $review['producttags'] $tag}--><a href="tag.php?tagname=$tag[tagnameenc]">$tag[tagname]</a><!--{/loop}-->
                                <!--{/if}-->
                                <!--{if $review['shoptags']}--><br />商铺标签:<!--{loop $review['shoptags'] $tag}--><a href="tag.php?tagname=$tag[tagnameenc]">$tag[tagname]</a><!--{/loop}-->
                                <!--{/if}-->
                                <!--{if $review['suitplacetags']}--><br />适合环境:<!--{loop $review['suitplacetags'] $tag}--><a href="tag.php?tagname=$tag[tagnameenc]">$tag[tagname]</a><!--{/loop}--><!--{/if}-->
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="review_op">
                            <span class="posttime"><!--{date $review[posttime],'w2style'}--></span>
                            <span class="operation"><span class="flower-ico"><a href="javascript:addflower('$review[rid]',$review[flower]);" >鲜花</a>(<span id="flower_$review[rid]">$review[flower]</span>)</span>&nbsp;&nbsp;<span class="respond-ico"><a href="viewreview.php?reviewid=$review[rid]">我要回应</a>($review[respond])</span>&nbsp;&nbsp;<a href="javascript:;" onclick="show_report('$review[rid]');">举报此点评</a></span>
                        </td>
                    </td>
                </table>
                <!--{/loop}-->
                <!--{if $multipage}-->
                <div class="multipage">$multipage</div>
                <!--{/if}-->
                <!--{else}-->
                <!--{/if}-->
            </div>
            <!--{if $user->isLogin && !$reviewed && $shop['status']==1}-->
            <div class="post">
                <script type="text/javascript" src="{$_config[siteurl]}data/cachefiles/inputlimit.js"></script>
                <script type="text/javascript" src="{$_config[siteurl]}include/javascript/addnew.js"></script>
                <div class="title"><h1>添加新点评</h1></div>
                <form method="post" action="post.php?action=newreview&shopid=$shopid" name="addreviewfrm" onsubmit="return checkaddreviewfrm();">
                <input type="hidden" name="pcd" value="$pcd" />
                <table class="table" border="0" cellspacing="0" cellpadding="0" id="postreviewtable">
                <tr>
                    <input type="hidden" name="shopid" value="$shopid">
                    <td align="right" width="80px"><span class="font_1">*</span>评价分数：</td>
                    <td>
                        <!--{loop $panelcfg['review'] $key $val}-->
                        <select name="$key">
                            <option value="">-{$val}-</option>
                            <option value="0">差(0)</option>
                            <option value="1">一般(1)</option>
                            <option value="2">还行(2)</option>
                            <option value="3">好(3)</option>
                            <option value="4">很好(4)</option>
                            <option value="5">非常好(5)</option>
                        </select>
                        <!--{/loop}-->
                    </td>
                </tr>
                <tr>
                    <td align="right"><!--{if $_panel_config[$pcd]['avgprice_need']}--><span class="font_1">*</span><!--{/if}-->人均消费：</td>
                    <td><input type="text" name="avgprice" size="8" value="$avgprice" class="t_input" /> 元/人 <span id="avgprice_w" class="enter-error"></span></td>
                </tr>
                <tr>
                    <td align="right" valign="top"><span class="font_1">*</span>点评内容：</td>
                    <td><textarea name="content" rows="8" cols="68">$content</textarea>
                    [<a href="javascript:;" onclick="addrows(addreviewfrm.content,8);">＋增加行数</a>]&nbsp;[<a href="javascript:;" onclick="decrows(addreviewfrm.content,8);">－减少行数</a>]&nbsp;[<span class="font_2">字数请控制在<span class="font_1">{$_inputlimit[review][min]} - {$_inputlimit[review][max]}</span>字以内</span>]<span id="content_w" class="enter-error"></span></td>
                </tr>
                <tr>
                    <td align="right"><span class="font_1">*</span>喜欢程度：</td>
                    <td><input type="radio" name="enjoy" value="0">不喜欢 <input type="radio" name="enjoy" value="1">无所谓 <input type="radio" name="enjoy" checked="checked" value="2">喜欢 <input type="radio" name="enjoy" value="3">很喜欢</td>
                </tr>
                <!--{if $_panel_config[$pcd]['suitplace_enable']}-->
                <tr>
                    <td align="right">适合环境：</td>
                    <td>
                        <!--{loop $_panel_config[$pcd]['suitplaces'] $val}-->
                        <input type="checkbox" name="suitplace[]" value="$val" />$val&nbsp;
                        <!--{/loop}-->
                    </td>
                </tr>
                <!--{/if}-->
                <tr>
                    <td align="right">推荐产品：</td>
                    <td><input type="text" name="producttags" id="producttags" size="50" class="t_input" /> 多产品请用空格分开<!--{if $shoptags}--><br /><span class="hottag"><!--{loop $producttags $tag}--><a href="javascript:;" onclick="addtag('producttags', '$tag[tagname]'); ">$tag[tagname]</a><!--{/loop}--></span><!--{/if}--></td>
                </tr>
                <tr>
                    <td align="right">商铺标签：</td>
                    <td><input type="text" name="shoptags" id="shoptags" size="50" class="t_input" /> 多标签请用空格分开<!--{if $shoptags}--><br /><span class="hottag"><!--{loop $shoptags $tag}--><a href="javascript:;" onclick="addtag('shoptags', '$tag[tagname]'); ">$tag[tagname]</a><!--{/loop}--></span><!--{/if}--></td>
                </tr>
                <!--{if $_seccode['newreview']}--><tr>
                    <td align="right">验证码：</td>
                    <td><div id="seccode"></div><input type="text" name="seccode" onfocus="show_seccode();" class="t_input" /></td>
                </tr><!--{/if}-->
                <tr>
                    <td><input type="hidden" name="newreviewsubmit" value="yes" /></td>
                    <td><button type="submit" name="submit" value="yes">提交点评</button></td>
                </tr>
                </table>
                </form>
            </div>
            <!--{elseif !$user->isLogin}-->
            <div class="messageborder">想要点评<a href="#top"><span class="font_2">$shop[shopname]</span></a>? 请先<a href="{$_config[siteurl]}member/login.php"><span class="font_2">登录</span></a>或<a href="{$_config[siteurl]}member/reg.php"><span class="font_2">快速注册</span></a>。</div>
            <!--{/if}-->
            <div class="footer"></div>
        </div>
    </div>
    <div style="clear:both;"></div>
</div>
</div>
<script type="text/javascript">
function view_content (action) {
    if(action == 'all') {
        document.getElementById('shop-content').style.display = 'block';
        document.getElementById('shop-content_sort').style.display = 'none';
    } else if(action == 'little') {
        document.getElementById('shop-content').style.display = 'none';
        document.getElementById('shop-content_sort').style.display = 'block';
    }
}
<!--{if $shop['picturelist']}-->
var d = document.getElementById('demo');
var t = d.scrollWidth;
var c = document.getElementById('demo1');
<!--{if $shop[pictures]>3}-->
c.innerHTML += c.innerHTML;
<!--{/if}-->
function doMarquee() {
    d.scrollLeft = d.scrollLeft < d.scrollWidth - d.offsetWidth ? d.scrollLeft + 1 : t - d.offsetWidth;
}
function doscroll() {
  sc = setInterval(doMarquee, 20);
}
function stopscroll() {
  clearInterval(sc);
}

doscroll();
<!--{/if}-->
</script>
</script>
</body>
</html>