<!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=gb2312" />
<title>投票管理</title>

<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/base.css">
<script language="javascript" src="js/jquery.min.js" type="text/javascript"></script>	
<script type="text/javascript" src="js/admin.jquery.configuration.js"></script>

<script language="javascript" src="js/global.js"></script>
<script language="javascript" src="../include/js/dedeajax2.js"></script>

</head>
<body>
<div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
<?php include(DEDEADMIN.'/templets/menu.htm'); ?>
<script language="javascript">
$("#plus").addClass("current");$("#vote_main").addClass("current");</script>				

	<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>投票管理</h3>
					
					<ul class="content-box-tabs">

					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
<div class="tab-content  default-tab" id="tab1">				
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
  <tr>
    <td style="padding-left:10px;">[<a href="vote_main.php"><u>管理以往投票内容记录</u></a>]</td>
</tr>
<tr>
    <td height="200" bgcolor="#FFFFFF" valign="top">
	<form name="form1" method="post" action="vote_edit.php">
	<input type="hidden" name="dopost" value="saveedit">
	<input type="hidden" name="aid" value="<?php echo $aid?>">
	    <table width="100%" border="0" cellspacing="4" cellpadding="4">
          <tr> 
            <td width="15%" align="center">投票名称：</td>
            <td width="85%"> <input name="votename" type="text" id="votename" value="<?php echo $row['votename']?>"> 
            </td>
          </tr>
          <tr>
            <td align="center">投票总人数：</td>
            <td><input name="totalcount" type="text" id="totalcount" value="<?php echo $row['totalcount']?>"></td>
          </tr>
          <tr> 
            <td align="center">开始时间：</td>
            <td><input name="starttime" type="text" id="starttime" value="<?php echo GetDateMk($row['starttime'])?>"></td>
          </tr>
          <tr> 
            <td align="center">结束时间：</td>
            <td><input name="endtime" type="text" id="endtime" value="<?php echo GetDateMk($row['endtime'])?>"></td>
          </tr>
		<tr> 
          <td align="center">是否允许游客投票：</td>
          <td> <input name="isallow" type="radio" class="np" value="0" <?php if($row['isallow']==0) echo " checked"; ?>>
            是 　 
              <input type="radio" name="isallow" class="np" value="1" <?php if($row['isallow']==1) echo " checked"; ?>>
              否</td>
        </tr>
		<tr> 
          <td align="center">是否允许查看投票：</td>
          <td> <input name="view" type="radio" class="np" value="0" <?php if($row['view']==0) echo " checked"; ?>>
            是 　 
              <input type="radio" name="view" class="np" value="1" <?php if($row['view']==1) echo " checked"; ?>>
              否</td>
        </tr>
     <tr> 
          <td align="center">投票时间间隔：</td>
          <td><input name="spec" type="text" value="<?php echo $row['spec'] ?>" class="spec" >
            (N天后可再次投票，0 表示此IP地址只能投一次)</td>
        </tr>
          <tr> 
            <td align="center">是否多选：</td>
            <td> <input name="ismore" type="radio" class="np" value="0"<?php if($row['ismore']==0) echo " checked";?>>
              单选 　 
              <input type="radio" name="ismore" class="np" value="1"<?php if($row['ismore']==1) echo " checked";?>>
              多选 </td>
          </tr>
          <tr> 
            <td align="center">投 票 项：<br/>
              (请按相同的形式来增加或修改节点，其中属性：id不能重复) </td>
            <td><textarea name="votenote" rows="8" id="votenote" style="width:80%"><?php echo $row['votenote']?></textarea> 
            </td>
          </tr>
		<tr> 
          <td align="center">是否启用：</td>
          <td> <input name="isenable" type="radio" class="np" value="0" <?php if($row['isenable']==0) echo " checked"; ?>>
            是 　 
              <input type="radio" name="isenable" class="np" value="1" <?php if($row['isenable']==1) echo " checked"; ?>>
              否</td>
        </tr>
          <tr> 
            <td height="47">&nbsp;</td>
            <td><input class="button" name="Submit" type="submit" value="保存投票数据" /></td>
          </tr>
          <tr> 
            <td colspan="2">&nbsp;</td>
          </tr>
        </table>
	  </form>
	  </td>
</tr>
</table>
							<div class="clear"></div><!-- End .clear -->
							
						
						
					</div> <!-- End #tab1 -->

					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			<div class="clear"></div>
			
           <?php include(DEDEADMIN.'/templets/footer.htm'); ?>
			
		</div> <!-- End #main-content -->	
	</div>
</body>
</html>