<?php if (!defined('APP_PATH')) exit;?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="http://127.0.0.5/Magic/Data/Public/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://127.0.0.5/Magic/Data/Public/js/jquery.js"></script>
<script src="http://127.0.0.5/Magic/Data/Public/js/main.js"></script>
</head>
<body>
<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a href="/">首页</a></li>
		<li><a href="#">模块管理</a></li>
		<li><a href="#">幻灯片管理</a></li>
	</ul>
</div>
<div class="rightinfo">
    <div class="tools">
		<ul class="toolbar">
			<li><a href="?r=slide-index-edit"><span><img src="http://127.0.0.5/Magic/Data/Public/images/t01.png" /></span>添加</a></li>
		</ul>
    </div>  
   <div class="formtitle1"><span>幻灯片列表</span></div>
   <iframe id="blank" name="blank"  style="display:none" ></iframe>
    <table class="tablelist">
		<thead>
    	<tr>
			<th height="35" width="80" align="center">ID</th>
			<th height="35" width="250" align="center">缩略图</th>
			<th height="35" width="180" align="center">标题</th>			
			<th height="35" width="250" align="center">链接地址</th>			
			<th height="35" align="center">排序</th>
			<th height="35" width="80" align="center">状态</th>
			<th height="35" width="80" align="center">操作</th>
		</tr>
		</thead>
		<tbody>
		<?php if (empty($list)){ ?>
		<tr><td height="35" colspan="7" align="center">暂无记录</td></tr>
		<?php }else{ ?>
		<?php foreach ($list as $vo){?>
		<tr>
			<td height="110" align="center"><?php echo $vo['id'];?></td>
			<td height="110" align="center"><img src="<?php echo $vo['image'];?>" height="100" width="220" alt="图片无法显示"></td>
			<td height="110" align="left">幻灯片组<?php echo $vo['sgroup'];?> [ID:<?php echo $vo['sgroup'];?>]<br><a href="##"><?php echo $vo['title'];?></a></td>
			<td height="110" align="left"><a href="<?php echo $vo['url'];?>" target="_blank"><?php echo $vo['url'];?></a></td>
			<td height="110" align="center"><?php echo $vo['sorter'];?></td>
			<td height="110" align="center"><img src="http://127.0.0.5/Magic/Data/Public/images/ico-0<?php echo $vo['status'];?>.png"></td>
			<td align="center"><a href="?r=slide-index-edit&id=<?php echo $vo['id'];?>">编辑</a> | <a href="javascript:" onclick="confirms('删除后将无法恢复，<br>请谨慎操作，确认删除？','?r=slide-index-del&id=<?php echo $vo['id'];?>')">删除</a></td>
		</tr>
		<?php }?>
		<?php }?>
		 </tbody>
		</table>
</div>
 <script type="text/javascript">$('.tablelist tbody tr:odd').addClass('odd');</script>
</body>
</html>
