<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
		<?php echo $this->fetch('exue_teacher/nav.html'); ?>
		<div class="main-body">
			<form action="/moduleadmin.php" class="search-form">
				<input type="hidden" name="m" value="exue_teacher" />
				<div class="flex flex-ai-center">
					标题：<input value="<?php echo $this->_var['keyword']; ?>" class="w150" type="text" name="keyword" />
					<button class="btn-small">搜一下</button>
				</div>
				
			</form>
			<table class="tbs">
				<thead>
					<tr>
						<td>tcid</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']['tcid']; ?></td>
					<td><?php echo $this->_var['c']['shop_title']; ?></td>
					<td><?php echo $this->_var['c']['nickname']; ?></td>
					<td><?php echo $this->_var['c']['telephone']; ?></td>
					 
					<td><?php echo $this->_var['c']['truename']; ?></td>
					<td>
						   <?php if ($this->_var['c']['imgurl']): ?><img  src="<?php echo images_site($this->_var['c']['imgurl']); ?>.100x100.jpg" width="60" /><?php endif; ?>
					</td>
					<td>
						<div class="<?php if ($this->_var['c']['status'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=exue_teacher&a=status&tcid=<?php echo $this->_var['c']['tcid']; ?>&ajax=1" ></div>
					</td>
					 
					<td>
						<div class="<?php if ($this->_var['c']['site_recommend'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=exue_teacher&a=site_recommend&tcid=<?php echo $this->_var['c']['tcid']; ?>&ajax=1" ></div>  	
					</td> 
					 
					<td>
						<a href="moduleadmin.php?m=exue_teacher&a=add&tcid=<?php echo $this->_var['c']['tcid']; ?>">编辑</a> 
						<a target="_blank" href="/module.php?m=exue_teacher&a=show&tcid=<?php echo $this->_var['c']['tcid']; ?>">查看</a>
						<a href="javascript:;" class="js-delete" url="moduleadmin.php?m=exue_teacher&a=delete&ajax=1&tcid=<?php echo $this->_var['c']['tcid']; ?>">删除</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>
