{dede:config.pagesize value='20'/}
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
		<title>投票管理</title>
		<link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
		<link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
		<link rel="stylesheet" href="/static/web/css/admin.css">
	</head>
	<body>
		<table class="table shadow-sm my-3">
			<tr>
				<td colspan="7">投票管理</td>
			</tr>
			<tr align="center">
				<td width="6%">id</td>
				<td width="30%">投票名称</td>
				<td width="10%">开始时间</td>
				<td width="10%">结束时间</td>
				<td width="10%">投票总数</td>
				<td width="10%">状态</td>
				<td>操作</td>
			</tr>
			{dede:datalist empty='<tr><td colspan="7" align="center">暂无投票</td></tr>'}
			<tr align="center">
				<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 "未启用";} else {echo "启用";} ?></td>
				<td>
					<a href="vote_edit.php?aid={dede:field.aid/}&dopost=edit" class="btn btn-light btn-sm"><i class="fa fa-pencil-square"></i> 修改</a>
					<a href="vote_getcode.php?aid={dede:field.aid/}" class="btn btn-light btn-sm"><i class="fa fa-code"></i> 代码</a>
					<a href="vote_edit.php?aid={dede:field.aid/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除</a>
				</td>
			</tr>
			{/dede:datalist}
			<tr>
				<td colspan="7"><a href="vote_add.php" class="btn btn-success btn-sm">添加一组投票</a></td>
			</tr>
			<tr>
				<td colspan="7" align="center">{dede:pagelist listsize='6'/}</td>
			</tr>
		</table>
	</body>
</html>