<!--#include File="String.asp"-->
<!--#include file="../common/conn.asp"-->
<%
call checkuser("调查管理")
	dim Title
	Title		=	"发布新调查"
%>
<html>
<head>
<title><%=Title%></title>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<STYLE type="text/css">
FONT		{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; FONT-SIZE: 12px}
BODY		{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; CURSOR: default; FONT-SIZE: 12px; COLOR: #333333; SCROLLBAR-BASE-COLOR: #669900; SCROLLBAR-ARROW-COLOR: FFFFFF}

P			{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; FONT-SIZE: 12px;  COLOR: #333333}
TD			{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; FONT-SIZE: 12px;  COLOR: #333333;line-height:150%}
TR			{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; FONT-SIZE: 12px;  COLOR: #333333}
UL			{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; FONT-SIZE: 12px;  COLOR: #333333}
LI			{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; FONT-SIZE: 12px;  COLOR: #333333}

FORM		{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; FONT-SIZE: 12px}
SELECT		{FONT-FAMILY: "宋体",Arial,Verdana,Helvetica,sans-serif; BACKGROUND-COLOR: #EEEEEE; COLOR: #333333; FONT-SIZE: 12px;}
TEXTAREA	{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; BACKGROUND-COLOR: #EEEEEE; COLOR: #333333; FONT-SIZE: 12px;}
OPTION		{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; BACKGROUND-COLOR: #EEEEEE; COLOR: #333333; FONT-SIZE: 12px;}
INPUT		{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; COLOR: #333333; FONT-SIZE: 12px;}

A:active	{COLOR: #FF0000;}
A:visited	{COLOR: #333333; TEXT-DECORATION: none}
A:hover		{COLOR: #FF0000;TEXT-DECORATION: underline}
A:link		{COLOR: #333333; TEXT-DECORATION: none}

A.blink:active, A.blink:hover	{COLOR: #FF0000;}
A.blink:visited,A.blink:link	{COLOR: #333366;;TEXT-DECORATION: underline}

#redad A:active		{COLOR: #FF0000;  TEXT-DECORATION: none}
#redad A:visited	{COLOR: #FF0000; TEXT-DECORATION: none}
#redad A:ho嘀污敵笩?	ver		{COLOR: #FF0000; TEXT-DECORATION: underline}
#redad A:link		{COLOR: #FF0000; TEXT-DECORATION: none}

#greenad A:active	{COLOR: #FF0000;  TEXT-DECORATION: none}
#greenad A:visited	{COLOR: #336600; TEXT-DECORATION: none}
#greenad A:hover	{COLOR: #FF0000; TEXT-DECORATION: underline}
#greenad A:link	{COLOR: #336600; TEXT-DECORATION: none}

#cat A:active	{COLOR: #FFFFFF;  TEXT-DECORATION: none}
#cat A:visited	{COLOR: #FFFFFF; TEXT-DECORATION: none}
#cat A:hover	{COLOR: #FFFFFF; TEXT-DECORATION: underline}
#cat A:link		{COLOR: #FFFFFF; TEXT-DECORATION: none}

.bginput		{FONT-FAMILY: "宋体",Arial,Verdana,Helvetica,sans-serif; FONT-SIZE: 12px; COLOR: #333333; HEIGHT: 18px; BACKGROUND-COLOR: #CCCCCC}
.input			{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; FONT-SIZE: 12px; COLOR: #333333; HEIGHT: 18px; BACKGROUND-COLOR: #F9F9F9}
.baseline		{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; BORDER-COLOR: black black #336600; BORDER-STYLE: dashed; BORDER-TOP-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 1px; BORDER-LEFT-WIDTH: 0px}
.solidbaseline	{FONT-FAMILY: Arial,Verdana,Helvetica,sans-serif; BORDER-COLOR: black black #E0E0E0; BORDER-STYLE: solid; BORDER-TOP-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 1px; BORDER-LEFT-WIDTH: 0px}
</STYLE>
<script language="JavaScript">
function checkform(theform){
	if (theform.Question.value==""){
		alert("请填写调查主题！　");
		return false;
	}
	if (theform.Answer1.value==""){
		alert("请填写调查选项（答案）！　");
		return false;
	}
}
</script>
</head>
<body leftmargin="0" topmargin="0" BodyBegin>
<form method="POST" action="CreateDo.asp" id=form1 name=form1 onSubmit="return checkform(this)">
  <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="336600">
    <tr> 
      <td colspan="2" bgcolor="669900"><font color="#FFFFFF"><strong>发布调查</strong></font></td>
    </tr>
    <tr> 
      <td width="16%" align="right" bgcolor="eeeeee">调查主题： </td>
      <td width="84%" bgcolor="eeeeee"><input name="Question" type="text" id="Question" size="50" class="bginput"></td>
    </tr>
    <tr bgcolor="#eeeeee"> 
      <td align="right">有效期：</td>
      <td bgcolor="#eeeeee"> 直到 
        <select name="year" id="year">
          <%
			for i=year(date) to year(date)+2
			%>
          <option value="<%=i%>"><%=i%></option>
          <%
			next
			%>
        </select>
        年 
        <select name="month" id="month">
          <option value="<%=month(date)%>"><%=month(date)%></option>
          <%
				for i=1 to 12
				%>
          <option value="<%=i%>"><%=i%></option>
          <%
				next
				%>
        </select>
        月 
        <select name="day" id="day">
          <option value="<%=day(date)%>"><%=day(date)%></option>
          <%
				for i=1 to 31
				%>
          <option value="<%=i%>"><%=i%></option>
          <%
				next
				%>
        </select>
        日</td>
    </tr>
    <%	For i=1 to 10%>
    <tr> 
      <td align="right" bgcolor="F9F9F9"> 选项<%=i%>：</td>
      <td bgcolor="F9F9F9"> <input type="text" name="Answer<%=i%>" size="50" class="bginput"> 
        &nbsp;&nbsp; 初始值 
        <input type="text" name="Count<%=i%>" size="3" value="0" class="bginput"> 
      </td>
    </tr>
    <%
	next
	%>
    <tr align="center"> 
      <td colspan="2" bgcolor="669900"><input type="submit" name="Submit" value=" 提 交 "> 
        <input type="reset" name="Submit2" value=" 重 置 "></td>
    </tr>
  </table>
</form>
  </body>                                    
                                    
</html>
