{dede:config.pagesize value='20'/}
<!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=<?php echo $cfg_soft_lang; ?>">
  <title>投票管理</title>
	<link rel="stylesheet" href="../static/css/bootstrap.min.css">
	<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="css/base.css">
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table table-bordered maintable mt-3">
    <tr>
      <td height="26" background="images/tbg.gif" colspan="7" style="padding-left:10px">
        <b>投票管理</b>&nbsp;
        <a href="vote_add.php" class="btn btn-success btn-sm">增加一组投票</a>
      </td>
    </tr>
    <tr align="center" bgcolor="#FBFCE2" height="26">
      <td width="8%">投票ID</td>
      <td width="22%">投票名称</td>
      <td width="15%">开始时间</td>
      <td width="15%">结束时间</td>
      <td width="10%">投票总数</td>
      <td width="10%">状态</td>
      <td width="20%">管理</td>
    </tr>
    {dede:datalist}
    <tr align="center" bgcolor="#FFFFFF" height="26" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
      <td>{dede:field.aid /}</td>
      <td>
        <a href='{dede:global name="cfg_phpurl" /}/vote.php?aid={dede:field.aid/}&dopost=view' target='_blank'>
          {dede:field.votename /}
        </a>
      </td>
      <td>{dede:field.starttime function="GetDateMk(@me)" /}</td>
      <td>{dede:field.endtime function="GetDateMk(@me)" /}</td>
      <td>{dede:field.totalcount /}</td>
      <td><?php if($fields['isenable'] == 1){echo "<span style='color:#e74d58'>未启用</span>";} else {echo "<span style='color:#28a745'>启用</span>";} ?></td>
      <td>
        <a title="获取代码" href='vote_getcode.php?aid={dede:field.aid /}' class="btn btn-success btn-sm">代码</a>
        <a href='vote_edit.php?aid={dede:field.aid /}&dopost=edit' class="btn btn-success btn-sm">修改</a>
        <a href='vote_edit.php?aid={dede:field.aid /}&dopost=delete' class="btn btn-success btn-sm">删除</a>
      </td>
    </tr>
    {/dede:datalist}
    <tr align="center" bgcolor="#F9FCEF" height="26">
      <td colspan="7">{dede:pagelist listsize='6'/}</td>
    </tr>
  </table>
</body>
</html>