<!--#include file="vote_SettingFun.asp" -->
<%CheckLogin()%>
<!DOCTYPE HTML PUBLIC "-//W3C//Dtd HTML 4.01 Transitional//EN" "http://www.w3c.org/tr/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style.css" type=text/css rel=stylesheet>
<meta content="MSHTML 6.00.3790.4807" name=GENERATOR>
</head>
<body>
<script type="text/javascript" language="javascript">
function checkpost()
{
re= /select|request|update|delete|exec|count|'|"|=|;|>|<|%/i;
if(re.test(form.votetitle.value)){
alert("投票标题中有非法字符！");
form.votetitle.value = "";
form.votetitle.focus();
return false;
}
if(re.test(form.votename.value)){
alert("投票选项中有非法字符！");
form.votename.value = "";
form.votename.focus();
return false;
}
if(re.test(form.votenum.value)){
alert("投票数据中有非法字符！");
form.votenum.value = "";
form.votenum.focus();
return false;
}
}
</script>
<div class=formzone>
<form name="form" action="?action=save" method="post" onsubmit="return checkpost();">
<div class=tablezone>

<table cellSpacing=0 cellPadding=8 width="100%" align=center border=0>
<tbody>
    <tr>
    <td width="356" class=innerbiaoti><strong>投票选项设置</strong></td>
        <td class=innerbiaoti width=507 height=28></td>
    </tr>
    <tr class=list>
      <td>投票标题设置</td>
      <td><input class="input" size="30" style="width:80%" value="<%=votetitle%>" id="votetitle" name="votetitle"/></td>
    </tr>
    <tr class=list>
        <td>投票选项设置（请用|隔开,例如 a|b|c|d）</td>
        <td width=507><input class="input" size="30" style="width:80%" value="<%=votename%>" id="votename" name="votename"/></td>
    </tr>
   
    <tr class=list>
        <td>投票票数设置（请与选项数量一致，按以上例子为 0|2|3|4）</td>
        <td width=507><input class="input" size="30" style="width:80%" value="<%=votenum%>" id="votenum" name="votenum"/></td>
    </tr>
     
     <tr class=list>
      <td>投票类型</td>
      <td><label>
        <select name="votetype" id="votetype">
        <option value="0" <%if votetype=0 then%> selected<%end if%>>单选</option>
        <option value="1"<%if votetype=1 then%> selected<%end if%>>多选</option>
        </select>
      </label></td>
    </tr><tr class=list>
       <td>调用JS</td>
       <td>&lt;script src=&quot;{aspcms:sitepath}/plug/vote/index.asp&quot; language=&quot;JavaScript&quot;&gt;&lt;/script&gt;<br></td>
     </tr>
</tbody></table>
</div>
<div class=adminsubmit>
<input class="button" type="submit" value="保存" />
<input class="button" type="button" value="返回" onClick="history.go(-1)"/> 
</div>
</form>
</div>
</body>
</html>