<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
		<style>
			.flexlist-item{
				width:33.3%;
			}
		</style>
		<?php echo $this->fetch('header.html'); ?>
		<div class="main-body">
			<div class="flex">
				<?php echo $this->fetch('user-side.html'); ?>
				<div class="flex-1">
					<div class="mgb-10 cl-primary">我购买的课堂</div>
					<?php if (empty ( $this->_var['list'] )): ?>
					<div class="emptyData">暂时未报名</div>
					<?php endif; ?>
					<div class="flex flex-wrap">
						<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
						<a href="/module.php?m=book&a=view&bookid=<?php echo $this->_var['c']['bookid']; ?>" class="flexlist-item">
					
							<img class="flexlist-img" src="<?php echo $this->_var['c']['imgurl']; ?>.100x100.jpg">
							<div class="flex-1">
								<div class="flexlist-title"><?php echo $this->_var['c']['title']; ?></div>
								<div class="cl3 f12">
									<?php echo $this->_var['c']['description']; ?>
								</div>
					
							</div>
					
						</a>
						<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					</div>
					<?php echo $this->_var['pagelist']; ?>
					
				</div>
		</div>
		<?php echo $this->fetch('footer.html'); ?>
		 
	</body>
</html>
