<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]';
<!--{/if}-->
</script>
<div id="body">
<div class="link_path">
    <em>已浏览：<span class="font_2">$shop[pageviews]</span></em>
    <a href="{$_config[siteurl]}">首页</a>&nbsp;&raquo;&nbsp;<a href="{$MOD[url]}cate.php?cd=$shop[panelcode]">$shop[panelname]</a>&nbsp;&raquo;&nbsp;<a href="{$MOD[url]}cate.php?cd=$shop[classcode]">$shop[classname]</a>&nbsp;&raquo;&nbsp;$shop[shopname]
</div>
<div class="mainrail rail-border-3">
    <div id="detail_left">
        <div class="item_detail">
            <div class="item_header">
                <!--{if $panelcfg[itemapply]}-->
                <em><!--{if $shop[owner]}-->店主：<a href="{$_modules[space][url]}index.php?suid=$shop[ownerid]">$shop[owner]</a>
                    <!--{else}--><a href="{$_config[siteurl]}member/index.php?ac=itemapply&shopid=$shopid"><span class="font_1">认领本商铺</span></a><!--{/if}-->
                </em>
                <!--{/if}-->
                <h1>$shop[fullname]</h1>
                <!--{if $shop['status']!=1}--><span class="font_1"><strong>$shop[statusname]</strong></span><!--{/if}-->
                <span><a href="post.php?action=newshop&shopid=$shop[sid]">添加分店</a></span>
            </div>
            <ul class="item_list">
                <li><p class="start start{$shop[avggrade]}"></p></li>
                <li><!--{loop $panelcfg['review'] $key $val}-->$val<span class="font_2">$shop[$key]</span><!--{/loop}-->&nbsp;综合得分：<span class="font_2"><strong>$shop[overall]</strong></span></li>
                <!--{if $shop[avgprice] > 0}-->
                <li>人均：<span class="font_2">$shop[avgprice]元</span></li>
                <!--{/if}-->
            </ul>
            <ul class="item_list">
                    <!--{if $shop[tel1] || $shop[tel2]}--><li>电话：$shop[tel1]&nbsp;&nbsp;$shop[tel2]</li><!--{/if}-->
                    <!--{if $shop[mobile]}--><li>手机：$shop[mobile]</li><!--{/if}-->
                    <li>地址：$shop[areaname] $shop[streetname] $shop[address]</li>
                    <!--{if $shop[website]}--><li>网址：$shop[website]</li><!--{/if}-->
                    <li>分类：<a href="{$MOD[url]}cate.php?cd=$shop[panelcode]">$shop[panelname]</a>&nbsp;&gt;&nbsp;<a href="{$MOD[url]}cate.php?cd=$shop[classcode]">$shop[classname]</a></li>
                    <!--{if $shop[content]}-->
                    <li>商铺介绍：<span id="shop-content_sort">{sublen $shop[content],100}&nbsp;<a href="javascript:myDialog('商铺介绍：$shop[fullname]',$('#shop-content').html(),550,350);">[详细]</a></span><p id="shop-content" style="display:none">$shop[content]</p></li><!--{/if}-->
                    <!--{if $_modules[card] && $shop[membercard]}-->
                    <li>$_modules[card][name]：<span class="font_2"><strong>$shop[membercard_msg]</strong></span><!--{if $shop[exception]}--><span class="font_3">($shop[exception])</span><!--{/if}--></li><!--{/if}-->
                    <!--{if isset($_modules[coupon]) && $shop[coupons]}-->
                    <li><a href="{$_modules[coupon][url]}?ac=shop&shopid=$shopid">$_modules[coupon][name]数量</a>：<span class="font_2"><strong>$shop[coupons]</strong></span></li><!--{/if}-->
            </ul>
            <ul class="item_list">
                <li>
                    <a href="post.php?action=newreview&shopid=$shop[sid]"><img  src="{$template_url}images/review.gif" alt="我要点评" /></a>&nbsp;
                    <a href="javascript:;" onclick="show_upshop($shop[sid]);"><img src="{$template_url}images/modfily.gif"></a>&nbsp;
                    <a href="javascript:;" onclick="addfavorite($shop[sid]);"><img src="{$template_url}images/favorites.gif"></a>&nbsp;
                    <a href="post.php?action=newshop&shopid=$shop[sid]"><img src="{$template_url}images/subshop.gif"></a>
                </li>
                <!--{if $shoptags}--><li>商铺标签：<!--{loop $shoptags $shoptag}--><span class="tags"><a href="tag.php?tagname=$shoptag[tagnameenc]" target="_blank">$shoptag[tagname]</a>($shoptag[total])</span><!--{/loop}--></li><!--{/if}-->
                <!--{if $suitplaces}--><li>环境气氛：<!--{loop $suitplaces $suitplace}--><span class="tags"><a href="tag.php?tagname=$suitplace[tagnameenc]" target="_blank">$suitplace[tagname]</a>($suitplace[total])</span><!--{/loop}--></li><!--{/if}-->
                <!--{if $producttags}--><li>会员推荐：<!--{loop $producttags $producttag}--><span class="tags"><a href="tag.php?tagname=$producttag[tagnameenc]" target="_blank">$producttag[tagname]</a>($producttag[total])</span class="tags"><!--{/loop}--></li><!--{/if}-->
            </ul>
            <ul class="item_list">
                <!--{if !$shop[adduid]}-->
                <li>登记：<span class="member-ico"><span class="font_3">$_config[sitename]</span></span><span class="font_3">@ $shop[addtime]</span></li>
                <!--{else}-->
                <li>登记：<span class="member-ico"><a href="{$_modules[space][url]}index.php?suid=$shop[adduid]">$shop[addname]</a></span><span class="font_3">@ {date $shop[addtime]}</span></li>
                <!--{/if}-->
                <!--{datacall:41}-->
            </ul>
        </div>
        <div class="item_pic">
            <a href="{$MOD[url]}shop_pic.php?shopid=$shop[sid]"><img src="$shop[thumb_b]" /></a>
            <!--{if $shop[pictures] > 0}--><span class="view-img-ico"><a href="{$MOD[url]}shop_pic.php?shopid=$shop[sid]">$shop[pictures]图</a></span>&nbsp;
            <!--{/if}-->
            <span class="update-img-ico"><a href="post.php?action=uploadpicture&amp;shopid=$shop[sid]">上传图片</a></span>
        </div>
        <div class="clear"></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 id="demo" style="overflow:hidden;width:662px;padding:2px;" onmouseover="stopscroll();" onmouseout="doscroll();">
            <div id="demo1" style="white-space:nowrap;padding:0;">
                <!--{loop $shop['picturelist'] $picture}-->
                <a href="$picture[url]" target="_blank"><img src="$picture[thumb_url]" $picture[thumb_alt] title="$picture[title]" /></a>
                <!--{/loop}-->
            </div>
        </div>
        <script type="text/javascript">
        $(function() {
            $('#demo a').lightBox();
        });
        </script>
        <!--{/if}-->
        <div class="item_reviews">
            <!--{if $reviews}-->
            <a name="review" id="review"></a>
            <div class="header">
                <ul class="tab">
                    <li>会员点评($shop[reviews])</li>
                </ul>
                <div class="th">
                    <!--{if $shop[firstuid]}-->
                    <em>第一个点评：<span class="member-ico"><a href="{$_modules[space][url]}index.php?suid=$shop[firstname]" target="_blank">$shop[firstname]</a></span></em>
                    <!--{/if}-->
                    <a href="shop.php?shopid=$shopid&review_orderby=posttime#review">最新点评</a>|<a href="shop.php?shopid=$shopid&review_orderby=flower#review">最多鲜花</a>|<a href="shop.php?shopid=$shopid&review_orderby=respond#review">最多回应</a>
                </div>
            </div>
            {template shop_part_reviews}
            <!--{else}-->
            <div class="messageborder">商铺暂无点评，发表您的消费感受，成为“第一点评人”吧！</div>
            <!--{/if}-->
            <!--{if $user->isLogin && !$reviewed && $shop['status']==1}-->
            {template shop_part_post}
            <!--{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>
    </div>
    <div id="detail_right">
        {template shop_part_side}
    </div>
    <div class="clear"></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>