<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
		<?php echo $this->fetch('header.html'); ?>
		<div class="header-bottom"></div>
		<div class="main-body">
			<div class="flex">
				<?php echo $this->fetch('user_left.html'); ?>

				<div class="flex-1" >
					<div class="btn btn-danger mgb-10">清空全部消息</div>
					<div class="row-box">
						
						<div  >
							<?php if (empty ( $this->_var['data'] )): ?>
							<div class="emptyData">您暂时没有最新消息</div>
							<?php else: ?>
							
								<?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
								<div class="flex js-item mgb-10 flex-ai-center">
									<div class="cl2">
										<?php echo $this->_var['c']['content']; ?>
									</div>
									<div class="flex-1"></div>
									<div class="f12 mgr-5"><?php echo $this->_var['c']['timeago']; ?></div>
									<a href="javascript:;" url="/index.php?m=notice&a=delete&id=<?php echo $this->_var['c']['id']; ?>" class="btn-small btn-danger js-delete">删除</a> 
								</div>
								<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

							
							<?php endif; ?>
						</div>
					</div>
				</div>
			</div>
		</div>

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