<?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 $article_info->title;?></title>
<meta name="keywords" content="<?php echo $article_info->keywords;?>" />
<meta name="description" content="<?php echo $article_info->description;?>" />
<link href="/style/global.css" rel="stylesheet" type="text/css" />
<link href="/style/news.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">
                <h1><?php echo $article_info->title;?></h1>
                <div class="times">发布日期：<?php echo date('Y-m-d', $article_info->create_time);?>&nbsp;&nbsp;发布人：<?php echo $article_info->create_user;?>&nbsp;&nbsp;点击：<?php echo $article_info->click;?>次</div>
                <div class="content">
                	<div class="text">
                	<?php echo $article_info->content;?>
                	</div>
                </div>
                <div class="page"><?php echo $article_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('news','article',$v->id));?>" title="<?php echo $v->title;?>" target="_blank"><?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('news','article',$v->id));?>" title="<?php echo $v->title;?>" target="_blank"><?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>
