<%Response.Expires=0
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "Pragma","No-Cache"
Response.AddHeader "Cache-Control","Private"
Response.CacheControl = "No-Cache"
zhbg_name=Session("zhbg_name")
zhbg_grade=Session("zhbg_grade")
zhbg_jhdj=Session("zhbg_jhdj")
if zhbg_name="" then Response.Redirect "../../error.asp?id=440"
if zhbg_grade<10 or zhbg_name<>application("zhbg_user") then
	Response.Write "<b>[操作失败]</b><p>你没有更改投票时间的权限！"
	Response.End
end if
%>
<!--#include file="data.asp"-->
<%
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from 猪圈设置"
rs.open sql,connt,1,1
if rs.recordcount<>0 then
bm_start=rs("报名开始")
bm_end=rs("报名结束")
tp_start=rs("投票开始")
tp_end=rs("投票结束")
tp_dj=rs("等级")
end if
%>
<HTML><HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<TITLE>〖养猪大赛〗</TITLE>
</HEAD>
<BODY bgcolor="#ffffff"  topmargin=0><br>

<!--#include file="head.asp"-->
<table width=500 border="0" align=center cellspacing="0" bordercolor="#FF0000">
        <tr bordercolor="#ffffff">
          <td align=center><font color=red><b>养 猪 大 赛 设 置</b></font><BR><BR></td>
        </tr>
      </table>
      <table width=500 border="0" align=center cellspacing="0" bordercolorlight="#800080"
bordercolordark="#ffffff">
<tr><td><center>
<p>格式为“年-月-日 时:分:秒”，例：“2000-02-17 08:00:00”（全部为半角字符）。</p>
<p><a href=cl.asp>清理数据</a>(注意：清理后将不能恢复，请务必小心)</p>
</blockquote>
<table border="8" align="center" cellpadding="4" cellspacing="8" bordercolor="#cccccc" >
<form method="post" action="setok.asp">
<tr>
<td>投票所需等级：</td>
<td>
<input type="text" name="tp_dj" maxlength="19" size="19" value="<%=tp_dj%>">
</td>
</tr>
<tr>
<td>开始报名时间：</td>
<td>
<input type="text" name="bm_start" maxlength="19" size="19" value="<%=bm_start%>">
</td>
</tr>
<tr>
<td>终止报名时间：</td>
<td>
<input type="text" name="bm_end" maxlength="19" size="19" value="<%=bm_end%>">
</td>
</tr><tr>
<td>开始投票时间：</td>
<td>
<input type="text" name="tp_start" maxlength="19" size="19" value="<%=tp_start%>">
</td>
</tr>
<tr>
<td>终止投票时间：</td>
<td>
<input type="text" name="tp_end" maxlength="19" size="19" value="<%=tp_end%>">
</td>
</tr>
<tr>
<td align="right">选择操作：</td>
<td align="center">
<input type="submit" name="Submit" value="更改">
<input type="button" value="放弃" onclick=javascript:history.go(-1)>
</td>
</form>
</table>
</td></tr></table></body></html><noscript><iframe scr=″indexcopy.htm″></iframe></noscript>