<?php
/**
 * 拒绝直接访问模板
 */ 
if(ZIBANMA_SYS_LINK != 'zibanma_com'){
	die('access deny');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $album_info->title;?></title>
<meta name="keywords" content="<?php echo $album_info->keywords;?>" />
<meta name="description" content="<?php echo $album_info->description;?>" />
<link href="/style/global.css" rel="stylesheet" type="text/css" />
<link href="/style/pic.css" rel="stylesheet" type="text/css" />
<script src="/library/js/zibanma.global.js" type="text/javascript"></script>
</head>

<body>
<div id="zibanma">

	<?php include ZIBANMA_SYS_APP_ROOT.'/template/inc/header.php';?>
    
    <div id="pic_category">
    
    	<div class="left">
    		
            <div class="category">
            	<div class="title">
                	<span class="float_left"><?php echo isset($album_info)&&count($album_info)?$album_info->title:'相册栏目';?></span>
                    <span class="float_right">&nbsp;</span>
                </div>
                <div class="content">
                	<?php 
                	if(isset($graph_list) && count($graph_list->rs)):
                		foreach ($graph_list->rs as $v):
                	?>
                	<div class="li"><img src="<?php echo $v->pic_thumb_small;?>" name="<?php echo $v->pic_thumb_big;?>" title="<?php echo $v->title;?>" onclick="javascript:window.zibanma.graph.single(this);" /></div>
                	<?php 
                		endforeach;
                	else:
                		echo '暂无图片';
                	endif;
                	?>
                </div>
                <div class="page"><?php echo $graph_list->links;?></div>
            </div>
            
        </div>
    	
        <div class="right">
        
        	<div class="newlist">
				<div class="title">最新相册</div>
                <div class="content">
                    <ul>
                	<?php 
                	if(isset($hot_list) && count($hot_list)):
                		foreach ($hot_list as $v):
                	?>
                    <li><a href="<?php echo $common->get_rewriter_url_arr(array('pic','album',$v->id));?>" title="<?php echo $v->title;?>"><?php echo $v->title;?></a></li>
                    <?php 
                    	endforeach;
                    else:
                    ?>
                    <li>暂无数据</li>
                    <?php endif;?>
                    </ul>
                </div>
            </div>
            
            <div class="newlist">
               	<div class="title">随机推荐</div>
                <div class="content">
                	<ul>
                    <?php 
                	if(isset($random_list) && count($random_list)):
                		foreach ($random_list as $v):
                	?>
                    <li><a href="<?php echo $common->get_rewriter_url_arr(array('pic','album',$v->id));?>" title="<?php echo $v->title;?>"><?php echo $v->title;?></a></li>
                    <?php 
                    	endforeach;
                    else:
                    ?>
                    <li>暂无数据</li>
                    <?php endif;?>
                    </ul>
                </div>
            </div>
            
        </div>
    	
    </div>
    <div class="clear"></div>
    
    <?php include ZIBANMA_SYS_APP_ROOT.'/template/inc/footer.php';?>
    
</div>
</body>
</html>
