<!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=utf-8" />
<title>修改在线投票选项 {#$LA_poweredby#} -  Powered by GV32.COM</title>
<link rel="stylesheet" type="text/css" href="{#$base_weburl#}/templates/adminsys/css/list.css" />
<script language="javascript">
function submitFun()
{
		var idaddvoi_name 		= document.getElementById('addvoi_name');
		var idsuggestionInfo 	= document.getElementById('suggestionInfo');
		if(idaddvoi_name.value=='')
		{
			idsuggestionInfo.innerHTML = ' 提 示：选项名称不能为空！请输入！';
			idaddvoi_name.focus();
			return false;
		}
		document.formSub.submit(); 
}

function subEditItem()
{
		document.formSub.action="{#$base_weburl#}/adminsys/index.php?load=vote&act=edititem";
		document.formSub.submit(); 
}
function delItem(itemid)
{
		if(confirm('你确认要删除操作！'))
		{ 
			var itemid = itemid;
			document.formSub.action="{#$base_weburl#}/adminsys/index.php?load=vote&act=delitem&id="+itemid;
			document.formSub.submit(); 
			//window.location.href="{#$base_weburl#}/adminsys/index.php?load=vote&act=delitem/"+itemid;
		 }else{ 
		 	return  false;
		 }
}
</script>
</head>
<body>
<table  cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr><td><table cellpadding="0" cellspacing="0" border="0" style="width:100%; color:#000000; font-weight:normal; background-color:#3EC3EF;"  >
  <tr>
    <td>&nbsp;<a href="{#$base_weburl#}/adminsys/index.php?load=vote&act=infolist" ><img src="{#$base_weburl#}/uploads/sys/h.gif"  width="15" border="0">在线投票</a> | 在线投票选项修改</td>
    <td>&nbsp;</td>
    <td align="right"><a href="http://help.gv32.com/type_voteitem-edit.html" target="_blank" title="点击-在线帮助"><img src="{#$base_weburl#}/images/sys/adminhelp.png"  width="21" border="0" alt="点击-在线帮助"></a>&nbsp;&nbsp;</td>
  </tr>
</table>
</td></tr>

<tr><td>
<div class="list">
<form action="{#$base_weburl#}/adminsys/index.php?load=vote&act=additem" method="post"  enctype="multipart/form-data" name="formSub"  id="formSub">
<table cellpadding="0" cellspacing="1" border="0" style="width:100%" class="tableborder">
<tr>
<th colspan="3">在线投票选项修改</th>
</tr>

<input name="vot_id" id="vot_id" value="{#$info.vot_id#}" type="hidden"  style="width:250px;" >

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>投票名称：</strong></td>
<td class="tdd">{#$info.vot_title#}</td>
<td class="tdcenter"><strong>操作</strong></td>
</tr>
 

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>开始日期：</strong></td>
<td class="tdd">{#$info.vot_starttime|date_format:"%Y-%m-%d"#}</td>
<td class="td">&nbsp;</td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>结束日期：</strong></td>
<td class="tdd">{#$info.vot_endtime|date_format:"%Y-%m-%d"#}</td>
<td class="td">&nbsp;</td>
</tr>


<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>能否多选：</strong></td>
<td class="tdd"> {#$_LANG.selecttypeArray[$info.vot_selecttype]#}</td>
<td class="td">&nbsp;</td>
</tr>

{#foreach item=item  from=$infoItem#}
<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>选项：</strong></td>
<td class="tdd"><input name="voi_name[{#$item.voi_id#}]" id="voi_name[{#$item.voi_id#}]" value="{#$item.voi_name#}" type="text"  style="width:250px;" >（数量）：({#$item.voi_count#}) </td>
<td class="tdcenter"><input type="button" value="修改选项" name="upbutton" onclick="return subEditItem(this)"  />&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="delvoteitem[]" value="删除该项" onclick="return delItem('{#$item.voi_id#}')" /></td>
</tr>
{#/foreach#}

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td class="td"><strong>添加选项：</strong></td>
<td class="tdd"><input name="addvoi_name" id="addvoi_name" value="" type="text" style="width:250px;"></td>
<td class="tdcenter">&nbsp;<input name="buttonadd" id="buttonadd" type="button" value="添加选项"  onclick="return submitFun(this)"></td>
</tr>

<tr bgcolor="#f3f3f3" onMouseOut="this.bgColor='#f3f3f3';"; onMouseOver="this.bgColor='#C3E2FF';" >
<td colspan="3"  class="tdcenter"><div id="suggestionInfo">&nbsp;</div></td>
</tr>

</table>
</form>
</div>
</td></tr>
<tr><td></td></tr>
</table>

	
</body>
</html>