<?php die;?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<title><!--{$smarty.const.MICE_TITLE}--></title>
<base href="<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/" />
<link href="css/Default.css" rel="stylesheet" type="text/css" />
<link href="css/fieldset.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
var baseurl = '<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/';
</script>
<script type="text/javascript" src="js/Main.js"></script>
<script language="JavaScript">
function CheckForm()
{
	if (document.form1.title.value.length == 0)
	{
		Dialog.alert( "标题不能为空！" ) ;
		document.form1.title.focus();
		return false;
	}
	document.form1.submit();
	return true;
}

function ResetForm(){
	document.form1.reset();
}
</script>
</head>

<body>
<table width="100%" border="0" cellspacing="6" cellpadding="0" style="border-collapse: separate; border-spacing: 6px;">
	  <form action="<!--{$formaction}-->" method="post" name="form1" id="form1" onsubmit="return CheckForm()">
      <tr valign="top">
        <td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="blockTable">
			
			<tr>
			  <td width="100%" style="padding:6px 10px;" class="blockTd">
			  <div style="float: left;"><img src="imgs/Icons/icon032a1.gif" />投票编辑</div>
			  <div style="float: right; white-space: nowrap;vertical-align:middle;"><a href='javascript:CheckForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a16.gif" /><b>保存&nbsp;</b></a><a href='javascript:ResetForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a13.gif" /><b>重置&nbsp;</b></a><a href='javascript:history.back(-1);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon008a20.gif" /><b>返回&nbsp;</b></a></div>
			 </td>
            </tr>
            <tr>
              <td style="padding-top:0px;padding-left:6px;padding-right:6px;padding-bottom:8px;">

<!--内容开始-->
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" >
	<tr>
		<td width="100%" valign="top">
			<fieldset class="adminform">
				<legend>投票选项</legend>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td width="100" class="keyred" height='20'>标　题:</td>
						<td colspan="2">
							<input name='pollcategory_id' id='pollcategory_id' type='hidden' value='<!--{$results->getPollcategoryId()}-->'>
							&nbsp;<input name='title' id='title' type='text' size='50' value='<!--{$results->getTitle()}-->'>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>投票权限:</td>
						<td colspan="2">
							&nbsp;<select name="usergroup_id">
							<option value='0' <!--{if $results->getUsergroupId()==0}-->selected<!--{/if}-->>匿名用户</option>
							<!--{foreach from=$usergroups item=usergroup}-->
								<option value='<!--{$usergroup->getUsergroupId()}-->' <!--{if $usergroup->getUsergroupId()==$results->getUsergroupId()}-->selected<!--{/if}-->><!--{$usergroup->getName()}--></option>
							<!--{/foreach}-->
							</select>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>点　数:</td>
						<td colspan="2">
							&nbsp;<input name='pointnum' id='pointnum' type='text' size='15' value='<!--{$results->getPointnum()}-->'>&nbsp;(参加投票奖励的点数)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>最多可同时选取:</td>
						<td colspan="2">
							&nbsp;<input name='checks' id='checks' type='text' size='15' value='<!--{$results->getChecks()}-->'>&nbsp;项(0表示不限制,可全选)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>开始时间:</td>
						<td colspan="2">
							&nbsp;<input name='startdate' id='startdate' type='text' size='15'  value="<!--{$startdate}-->"  onClick="setDayHM(this);">&nbsp;(0表示不限制)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>截止时间:</td>
						<td colspan="2">
							&nbsp;<input name='stopdate' id='stopdate' type='text' size='15'  value="<!--{$stopdate}-->"  onClick="setDayHM(this);">&nbsp;(0表示不限制)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>投票间隔时间:</td>
						<td colspan="2">
							&nbsp;<select name="times">
							<option value='60' <!--{if $results->getTimes()==60}-->selected<!--{/if}-->>1分钟</option>
							<option value='3600' <!--{if $results->getTimes()==3600}-->selected<!--{/if}-->>1小时</option>
							<option value='86400' <!--{if $results->getTimes()==86400}-->selected<!--{/if}-->>1天</option>
							<option value='1296000' <!--{if $results->getTimes()==1296000}-->selected<!--{/if}-->>15天</option>
							<option value='31104000' <!--{if $results->getTimes()==31104000}-->selected<!--{/if}-->>1年</option>
							</select>&nbsp;(同一个IP两次投票的间隔时间)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>启用:</td>
						<td colspan="2">
							&nbsp;<input name='isvisible' id='isvisible' type="radio" value="0" <!--{if $results->getIsvisible()==0}-->checked<!--{/if}-->/>是
							&nbsp;<input name='isvisible' id='isvisible' type="radio" value="1" <!--{if $results->getIsvisible()==1}-->checked<!--{/if}-->/>否
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>查看结果:</td>
						<td colspan="2">
							&nbsp;<input name='isopen' id='isopen' type="radio" value="0" <!--{if $results->getIsopen()==0}-->checked<!--{/if}-->/>允许
							&nbsp;<input name='isopen' id='isopen' type="radio" value="1" <!--{if $results->getIsopen()==1}-->checked<!--{/if}-->/>不允许
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>说　明:</td>
						<td colspan="2">
							<!--{$editor}-->
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr > 
		<td height="30" valign='middle'>
			<div id='_PageBar_buttom' class="pageBarWrap" style="padding-top:6px;clear:both;bottom:0px; height:30px; line-height:30px;"><div class="pageBar" style='float:right;font-family:Tahoma'></div><div style='float:left;font-family:Tahoma'><a href='javascript:CheckForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a16.gif" /><b>保存&nbsp;</b></a><a href='javascript:ResetForm();' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon001a13.gif" /><b>重置&nbsp;</b></a><a href='javascript:history.back(-1);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false'><img src="imgs/Icons/icon008a20.gif" /><b>返回&nbsp;</b></a>&nbsp;&nbsp;<label><input type="checkbox" name="goon" id="goon" value="1">保存后继续添加</label></div></div>
		</td>
	</tr>
</table>

<!--内容结束-->
		</td>
		</tr>
	</table></td>
  </tr>
  </form>
</table>
</body>
</html>