<?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 isset($category_info)&&count($category_info)?$category_info[0]->category_name:'图片栏目';?></title>
<meta name="keywords" content="<?php echo isset($category_info)&&count($category_info)?$category_info[0]->category_keywords:'';?>" />
<meta name="description" content="<?php echo isset($category_info)&&count($category_info)?$category_info[0]->category_description:'';?>" />
<link href="/style/global.css" rel="stylesheet" type="text/css" />
<link href="/style/pic.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="zibanma">

	<?php include ZIBANMA_SYS_APP_ROOT.'/template/inc/header.php';?>
    
    <div id="art_channel">
    
    	<div class="left">
    	
            <div class="category">
                <div class="title">
                	<span class="float_left"><?php echo isset($category_info)&&count($category_info)?$category_info[0]->category_name:'新闻栏目';?></span>
                    <span class="float_right">&nbsp;</span>
                </div>
                <div class="content">
                	<?php 
                	if(isset($album_list) && count($album_list->rs)):
                		foreach ($album_list->rs as $v):
                	?>
                	<div class="li">
                        <span class="t"><a href="<?php echo $common->get_rewriter_url_arr(array('pic','album',$v->id));?>"><?php echo $v->title;?></a></span>
                        <span class="d"><?php echo date('Y-m-d', $v->create_time);?></span>
                    </div>
                    <?php 
                    	endforeach;
                    else:
                    ?>
                    <div class="li">
                        <span class="t">暂无数据</span>
                        <span class="d"></span>
                    </div>
                    <?php endif;?>
                </div>
                <div class="page"><?php echo $album_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>
