<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
?>
<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="admin/template/css/style.css" />
<script type="text/javascript" src="images/js/jquery.min.js"></script>
<script src="images/js/check.func.js"></script>
</head>
<body>
<div id="wrap">
	<div class="tab">
		<ul>
			<li><a href="?file=other&action=vote">投票管理</a></li>
			<li><a href="javascript:void(0);" class="on">编辑投票</a></li>			
		</ul>
	</div>
	<div class="main">
	<fieldset>
		<legend>操作提示</legend>
		1：投票名称不能为空
	</fieldset>
	<form action="" method="post" name="myform">
	<input type="hidden" name="do_submit" value="1" />
	<input type="hidden" name="id" value="<?php echo $id;?>" />
	<table cellspacing="0" class="sub">
		<tr>
			<td width="140" align="right">投票名称：</td>
			<td><input type="text" name="info[votename]" size="35" value="<?php echo $r['votename'];?>" datatype="limit" min="2" max="100" /></td>
		</tr>
		<tr>
			<td width="140" align="right">开始时间：</td>
			<td><input type="text" name="info[starttime]" value="<?php echo date('Y-m-d',$r['starttime']);?>"  size="10" datatype="limit" min="2" max="100" /></td>
		</tr>
		<tr>
			<td width="140" align="right">结束时间：</td>
			<td><input type="text" name="info[endtime]" value="<?php echo date('Y-m-d',$r['endtime']);?>" size="10" datatype="limit" min="2" max="100" /></td>
		</tr>
		<tr>
			<td width="140" align="right">重复投票间隔：</td>
			<td><input type="text" name="info[delay]" value="<?php echo $r['delay']/3600;?>" size="12" datatype="integer" /> 小时</td>
		</tr>
		<tr>
			<td width="140" align="right">是否多选：</td>
			<td>
			<input type="radio" class="radio"  name="info[ismore]" value="1"  <?php echo $r['ismore']?' checked="checked"':'';?>/>是  
			<input type="radio" class="radio"  name="info[ismore]"  <?php echo !$r['ismore']?' checked="checked"':'';?> value="0"/>否</td>
		</tr>
		<tr>
			<td width="140" align="right" valign="top">投 票 项：</td>
			<td>
			<textarea name="info[votenote]" cols="50" rows="8" style="font-family:'宋体'"><?php echo htmlspecialchars($r['votenote']);?></textarea>
			</td>
		</tr>
		<tr class="bg2"><td></td><td><input type="button" class="button" onclick="doSubmit(this);" value="保存投票" /> <input type="button" class="button" onclick="window.location.href='<?php echo ADMIN_FILE;?>?file=other&action=vote'" value="取消返回" /></td></tr>
	</table>
	</form>

	</div>
</div>
</body>
</html>