<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
		<div class="tabs-border">
			<a class="item <?php if (get ( 'a' ) == 'default'): ?>active<?php endif; ?>" href="<?php echo $this->_var['appadmin']; ?>?m=sblog_topic">话题列表</a>

		</div>
		<div class="main-body">
			<table class="tbs">
				<thead>
					<tr>
						<td>id</td>
						<td>名称</td>
						<td>主题数</td>
						<td>浏览数</td>
						<td>状态</td>
						<td>创建时间</td>
						<td>推荐</td>
						<td>首页</td>
						<td>
							操作
						</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><?php echo $this->_var['c']['id']; ?></td>
					<td><?php echo $this->_var['c']['title']; ?></td>
					<td><?php echo $this->_var['c']['blog_num']; ?></td>
					<td><?php echo $this->_var['c']['view_num']; ?></td>
					<td>
						<div class="<?php if ($this->_var['c']['status'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=sblog_topic&a=status&ajax=1&id=<?php echo $this->_var['c']['id']; ?>"></div>
					</td>
					<td><?php echo $this->_var['c']['createtime']; ?></td>
					<td>
						<div class="<?php if ($this->_var['c']['isrecommend'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=sblog_topic&a=recommend&ajax=1&id=<?php echo $this->_var['c']['id']; ?>"></div>
					</td>
					<td>
						<div class="<?php if ($this->_var['c']['isindex'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=sblog_topic&a=index&ajax=1&id=<?php echo $this->_var['c']['id']; ?>"></div>
					</td>
					<td>
						<a href="/moduleadmin.php?m=sblog_topic&a=add&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>
		<?php echo $this->fetch('footer.html'); ?>
	</body>
</html>
