<?php
if (!defined('USING_SYSTEM')) 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" />
<link type="text/css" rel="stylesheet" href="admin/images/page.css" />
<script type="text/javascript" src="skins/common/images/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="admin/images/page.js"></script>
<title>Filiant Control Panel</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <th colspan="3">管理模板</th>
  </tr>
  <tr>
    <th width="150">模板名</th>
    <th>简介</th>
    <th width="100">操作</th>
  </tr>
<?php
$skinsDir = dir(__ROOT__.'skins/');
while($folder = $skinsDir->read()) {
	if(is_dir(__ROOT__.'skins/'.$folder)) {
		if($folder != '.' && $folder != '..' && $folder != 'common') {
?>
  <tr>
    <td class="title" align="center"><img width="150" height="100" src="skins/<?php echo $folder ?>/preview.jpg" /><?php echo $folder ?></td>
    <td>默认模板</td>
    <td class="tips" align="center"><?php echo ($folder==UI_DEFAULT) ? '已使用' : '使用' ?></td>
  </tr>
<?php
		}
	}
}
$skinsDir->close();
?>
</table>
</body>
</html>