
 <div class="page-side mgl-10">
	<?php $this->assign("catList",M("category")->children(0,"article",1)); ?>
	 <div class="row-box mgb-5"> 
	        <div class="row-box-hd" style=""><span>栏目推荐</span></div>
			<?php $_from = $this->_var['catList']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('k', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['k'] => $this->_var['c']):
?>
				<a href="<?php echo R("/index.php?m=article&a=list&catid=".$this->_var["c"]["catid"]."");?>"  class="row-item">
					<div  class="row-item-title"><?php echo $this->_var['c']['cname']; ?></div>
				</a>
				<?php if ($this->_var['c']['child']): ?>
					<?php $_from = $this->_var['c']['child']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'cc');if (count($_from)):
    foreach ($_from AS $this->_var['cc']):
?>
					<a href="<?php echo R("/index.php?m=article&a=list&catid=".$this->_var["cc"]["catid"]."");?>"  class="row-item">
						<div  class="row-item-title">|--<?php echo $this->_var['cc']['cname']; ?></div>
					</a>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
				<?php endif; ?> 
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>   
			    
	</div> 
	<?php $this->assign("t_c",M("article")->recList("".$this->_var["cat"]["catid"]."",10)); ?>
	<div class="row-box"> 
	           <div class="row-box-hd"><span>推荐文章</span></div>
	           <?php $_from = $this->_var['t_c']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
	   
	    <a href="/index.php?m=article&a=show&id=<?php echo $this->_var['c']['id']; ?>" class="row-item">
			<div class="row-item-title"><?php echo $this->cutstr($this->_var['c']['title'],36,'..'); ?></div>
		</a>
	   
	  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	 </div>          
	  
 </div>
 
