<?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>
<iframe id="blank" name="blank"  style="display:none" ></iframe>
<ul class="imglist">
    <?php foreach ($tpllist as $vo){?>
    <li class="selected">
    <span><a href="javascript:void(0)" onclick="confirms('确定要切换模板吗？','?r=templets-index-start&tpl=<?php echo $vo['title'];?>')" ><img src="<?php if (!empty($vo['info']['preview'])){ ?>../Templets/<?php echo $vo['info']['preview'];?><?php }else{ ?>http://127.0.0.5/Magic/Data/Public/images/nopreview.jpg<?php }?>" width="200" height="150" <?php if($vo['title']==$tpl){ ?>class="ontpl"<?php }?>></a></span>
    <p><?php echo $vo['info']['name'];?>&nbsp;&nbsp;&nbsp;<a href="javascript:"  onclick="confirms('确定要切换模板吗？','?r=templets-index-start&tpl=<?php echo $vo['title'];?>')" class="sbutton <?php if($vo['title']==$tpl){ ?>onsbutton<?php }?>">切换</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="?r=files&path=../Templets/<?php echo $vo['title'];?>" class="sbutton">编辑</a></p>
	<p>作者：<?php echo $vo['info']['author'];?>&nbsp;&nbsp;时间：<?php echo $vo['info']['time'];?></p>
    </li>
    <?php }?>
</ul>
 
</body>
</html>
