        <!--{assign var='album' value=vo_list("mod={album} where={v.userid='<!--{$home.userid}-->'} num={1000}")}--> 
        <!--{if !empty($album)}--> 
        <script type="text/javascript" src="<!--{$urlpath}-->tpl/static/js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script> 
        <script type="text/javascript" src="<!--{$urlpath}-->tpl/static/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
        <link rel="stylesheet" type="text/css" href="<!--{$urlpath}-->tpl/static/js/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
        <script type="text/javascript">
		$(document).ready(function() {
			$("a[rel=example_group]").fancybox({
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">[<!--{$home.username}-->] 的相册 ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}
			});
		});

		$(function (){
			/* 用按钮控制图片左右滚动 */
			$(".album_Pic .JQ-slide").Slide({
				effect:"scroolLoop",
				autoPlay:false,
				speed:"normal",
				timer:3000,
				steps:1
			});
		});
		</script>
        <div class="mod" id="user_photo">
          <div class="hd">
            <h3>最新照片</h3>
            <p class="zhaoxiang"><span><img width="15" height="13" src="<!--{$skinpath}-->themes/images/xiangji.png"></span><span> 相册(<!--{count($album)}-->张)</span></p>
          </div>
          <div class="bd" id="lshow_2">
            <div class="pcontent"> 
              <!--{if $login.status == 0}-->
              <table border="0" cellspacing="10" cellpadding="10" width="98%">
                <tr>
                  <td align="center"><!--{$home.username}-->有 [<!--{count($album)}-->] 张照片，<a href="###" onClick="jbox_loginbox();">马上登录</a>查看</td>
                </tr>
              </table>
              <!--{else}--> 
              <!-- 判断组权限 --> 
              <!--{if $login.userid == $home.userid}-->

				<div class="home_photo_box">
				  <ul class="home_photo_list">
					<!--{foreach $album as $volist}-->
					<li<!--{if $volist.i>4}--> style='display:none;'<!--{/if}-->><a rel="example_group" href="<!--{$volist.uploadfiles}-->"><img src="<!--{$volist.thumbfiles}-->" width="108" height="130" /></a></li>
					<!--{/foreach}-->
				  </ul>
				</div>

              <!--{else}--> 
              <!--{if $login.group.view.viewphoto == 1}-->

				<div class="home_photo_box">
				  <ul class="home_photo_list">
					<!--{foreach $album as $volist}-->
					<li<!--{if $volist.i>4}--> style='display:none;'<!--{/if}-->><a rel="example_group" href="<!--{$volist.uploadfiles}-->"><img src="<!--{$volist.thumbfiles}-->" width="108" height="130" /></a></li>
					<!--{/foreach}-->
				  </ul>
				</div>

              <!--{else}-->
              <table border="0" cellspacing="10" cellpadding="10" width="98%">
                <tr>
                  <td align="center"> 对不起，您没有权限查看相册，<a href='<!--{$urlpath}-->usercp.php?c=vip' class="btn_c2"><span>升级VIP可见</span></a>&nbsp;&nbsp; 
                    
                    <!-- 支付费用查看 --> 
                    <!--{if $login.group.fee.albumfee>0}--> 
                    或者 <a href='javascript:void(0);' onClick="jbox_home_viewalbum('<!--{$home.userid}-->');" class="btn_c1"><span>支付<!--{$login.group.fee.albumfee}-->个金币</span></a> 可查看 
                    <!--{/if}--></td>
                </tr>
              </table>
              <!--{/if}--> 
              <!--{/if}--> 
              
              <!--{/if}--> 
              
            </div>
          </div>
        </div>
        <!--{/if}--> 