<?php
if (!defined('ROOT'))
	exit ;
?>
<!DOCTYPE html>
<html>

	<head>
		<title>教学视频</title>
		<meta name="description" content="">
		<meta name="keywords" content="">
		<?php
		include 'Inc_files.php';
		?>
		<style type="text/css">
		#list_style .widget{ padding: 15px;}
		</style>
	</head>

	<body>
		<div class="am-g tpl-g">
			<?php include 'Inc_head.php'
			?>
			<!-- 侧边导航栏 -->
			<?php
			include 'Inc_left.php';
			?>
			<!-- 内容区域 -->
			<div class="tpl-content-wrapper">
				<div class="row-content am-cf"  id="list_style">
					<div class="row">
						<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
							<div class="widget am-cf">
								<div class="widget-head am-cf">
									<div class="am-btn-group am-btn-group-xs" style="float: left;">
										<a href="/video/add" type="button" class="am-btn am-btn-default am-btn-success">
										<span class="am-icon-plus"></span> 添加
										</a>
									</div>
								</div>
								<div class="widget-body">
									<?php foreach ($list as $k => $v) {?>
									<div class="am-u-sm-12 am-u-md-12 am-u-lg-3 list">
										<div class="widget am-cf">
											<div class="am-cf">
												<embed src='<?php echo $v['url'];?>' allowFullScreen='true' quality='high' width='100%' height='auto' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash'></embed>
											</div>
											<div class="am-cf">
												<div class="widget-title am-fl">
													<?php echo $v['title'];?>
												</div>
											</div>
											<div class="am-cf">
												<a href="video/mod/<?php echo $v['id'];?>"><button type="button" style="float: left;color: #838FA1;margin-right: 10px;background: none;border: 1px solid #EFEFF4;">编辑</button></a>
												<form action="V/del" method="post">
													<input type="hidden" name="model_id" value="51" />
													<input type="hidden" name="id" value="<?php echo $v['id'];?>" />
													<button type="submit" style="float: right;background: none;border: 1px solid #EFEFF4;">删除</button>
												</form>
											</div>
										</div>
									</div>
									<?php }?>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<?php
		include 'Inc_files_boot.php';
		?>
		<script src="<?php echo C('TMPL_PARSE_STRING.__TPL__'); ?>/assets/js/theme.js"></script>
		<script type="text/javascript">
			jQuery(document).ready(function($){ 
				jQuery("#list_style .list").last().addClass('am-u-end');
			});
		</script>
		
	</body>

</html>