<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>

	<body>

		<?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>
					<table class="tbs">
						<thead>
							<tr>
							 
								 
								<td>内容</td>
								<td width="200">操作</td>
							</tr>
							</tr>
						</thead> <?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']):
?>
						<tr>
							 
							 
							<td>
								<div>
									<div class="mgb-5"><?php echo $this->_var['c']['content']; ?></div>
									<div class="flex">
										<div class="mgr-5 cl3 f12">来自课程：<?php echo $this->_var['c']['book']['title']; ?></div>
										<div class=" cl3 f12">来自文章：<?php echo $this->_var['c']['article']['title']; ?></div>
									</div>
								</div>
							</td>
							<td>
								 
								<a href="/module.php?m=book&a=view&bookid=22&vid=<?php echo $this->_var['c']['articleid']; ?>">查看</a>
								<a href="javascript:;" class="js-delete" url="/module.php?m=book_comment&a=delete&ajax=1&id=<?php echo $this->_var['c']['id']; ?>">删除</a></td>
						</tr>
						<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					</table>
					<div><?php echo $this->_var['pagelist']; ?></div>
				</div>

			</div>
		</div>
		<?php echo $this->fetch('footer.html'); ?>
		<?php echo $this->fetch('foot-all.html'); ?>
	</body>

</html>
