<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
		<?php echo $this->fetch('exue_course/nav.html'); ?>
		<form action="/moduleadmin.php" class="search-form">
			<input type="hidden" name="m" value="exue_course" />
			<div class="flex flex-ai-center">
				标题：<input value="<?php echo $this->_var['keyword']; ?>" class="w150 mgr-5" type="text" name="keyword" />
				类型：<select class="w150 mgr-5" name="stype">
					<option <?php if (get ( 'stype' ) == 0): ?>selected<?php endif; ?> value="0">请选择</option>
					<option <?php if (get ( 'stype' ) == 1): ?>selected<?php endif; ?> value="1">限时试课</option>
					<option <?php if (get ( 'stype' ) == 2): ?>selected<?php endif; ?> value="2">正式课程</option>
				</select>
				推荐：<input type="checkbox" <?php if (get ( "site_index" )): ?>checked<?php endif; ?> name="site_index" value="1" />
				
				<button class="btn-small">搜一下</button>
			</div>
			
		</form>
		<div class="main-body">
			<table class="tbs">
				<thead>
					<tr>
						<td>courseid</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']['courseid']; ?></td>
					<td><?php echo $this->_var['c']['shop_title']; ?></td>
					<td><?php echo $this->_var['c']['catid_name']; ?></td>
					<td><?php echo $this->_var['c']['title']; ?></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><?php echo $this->_var['c']['raty_grade']; ?></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_course&a=status&courseid=<?php echo $this->_var['c']['courseid']; ?>&ajax=1" ></div>
					</td>
					<td>
						<div class="<?php if ($this->_var['c']['site_index'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=exue_course&a=site_index&courseid=<?php echo $this->_var['c']['courseid']; ?>&ajax=1" ></div>
						
					</td>
					 

					<td>
						<a href="moduleadmin.php?m=exue_course&a=add&courseid=<?php echo $this->_var['c']['courseid']; ?>">编辑</a> 
						<a target="_blank" href="/module.php?m=exue_course&a=show&courseid=<?php echo $this->_var['c']['courseid']; ?>">查看</a>
						<a href="javascript:;" class="js-delete" url="moduleadmin.php?m=exue_course&a=delete&ajax=1&courseid=<?php echo $this->_var['c']['courseid']; ?>">删除</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>
