<!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>
<title>系统后台</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->basedir;?>images/admin/public.css" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->basedir;?>images/admin/style.css" />
<link href="../../images/admin/public.css" rel="stylesheet" type="text/css" />
<link href="../../images/admin/style.css" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->basedir;?>js/calendar.js" language="javascript"></script>
<body>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top"><!-- ######### begin ######### -->
      <div class="Block">
        <div class="BlockBar">编辑模板文件</div>
        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab">
          <tr class="row">
		  <?php
		  $i=0;
		  foreach ($this->data as $name=>$row){$i++;?>
            <td class="align-left">
              <table width="8%" border="1" cellpadding="3" bordercolor="#F5F5F5">
                <tr>
                  <td><a href="<?php echo $this->installdir;?>template/set/name/<?php echo $name;?>/" title="预览模板"><img src="<?php echo $this->basedir;?>templates/<?php echo $name;?>/<?php echo $row['ini']['picture'];?>" width="144" height="196" border="0" /></a></td>
                </tr>
                <tr>
                  <td class="align-center"><a href="<?php echo $this->installdir;?>template/set/name/<?php echo $name;?>/" title="设为默认模板"><?php if ($this->template == $name){echo '<font color=red>'.$row['ini']['subject'].'</font>';}else{echo $row['ini']['subject'];}?></a></td>
                </tr>
              </table>
            </td>
		  <?php
		  	if ($i % 5 == 0) echo '</tr><tr>';
		  }?>
          </tr>
        </table>
      </div>
      <div id="App-Version-Prompt" style="display:none;">
        <div class="space"></div>
        <div class="Block">
          <div class="BlockBar">版本更新信息</div>
          <div class="BlockContent" id="App-Version-Prompt-Body" style="padding:20px 5px 20px 5px; text-align:center; background:#FFFFCC;">loading...</div>
        </div>
      </div>
      <!-- ########## end ########## -->
    </td>
    <td width="5"></td>
    <td width="150" align="center" valign="top"><?php
	echo $this->render('menu');
	?>
    </td>
  </tr>
</table>
<?php
echo $this->render('copyright');
?>
</body>
</html>
