gusucode.com > 爱美尔女性商城源码 1.0源码程序 > admintouch/votemodify.asp
<!--#include file="conn.asp"--> <%if session("bjxadmin")="" then response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>" response.End else if session("flag")>1 then response.Write "<p align=center><font color=red>您没有此项目管理权限!</font></p>" response.End end if end if dim id,Title,DateAndTime,i,sql id=request.QueryString("id") if id<>"" then if not isnumeric(id) then response.write"<script>alert(""非法访问!"");location.href=""../index.asp"";</script>" response.end end if end if set rs=server.createobject("adodb.recordset") sql="select * from BJX_toupiao where id="&id rs.open sql,conn,1,1 if rs.eof then response.write "<script language=javascript>alert('操作错误!');history.go(-1);</script>" Response.End else Title=rs("Title") DateAndTime=rs("DateAndTime") end if %> <html><head><title>投票管理</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <LINK href="images/css.css" rel=stylesheet> <SCRIPT language="JavaScript" type="text/javascript"> function IsDigit() { return ((event.keyCode >= 48) && (event.keyCode <= 57)); } </script> <style type="text/css"> <!-- .style1 { color: #FFFFFF; font-weight: bold; } --> </style> </head> <body> <table class="tableBorder" width="90%" border="0" align="center" cellpadding="3" cellspacing="1"> <form method="POST" action="voteSave.asp?id=<%=id%>"> <tr> <td colspan="4" align="center" background="images/admin_bg_1.gif"><span class="style1">修改网站投票</span></td> </tr> <tr > <td width="20%" align="right">投主题:</td> <td width="80%"> <input type="text" name="Title" value="<%=Title%>" size="20" style="font-family: 宋体; font-size: 9pt"></td> </tr> <%for i=1 to 8%> <tr > <td align="right">选 项 <%=i%>:</td> <td> <input type="text" name="select<%=i%>" value="<%=rs("select"&i)%>" size="20" style="font-family: 宋体; font-size: 9pt"> 票数:<input type="text" name="answer<%=i%>" value="<%=rs("answer"&i)%>" size="5" style="font-family: 宋体; font-size: 9pt"></td> </tr> <%next%> <tr > <td align="right">发布时间:</td> <td><%=DateAndTime%> </td> </tr> <tr > <td colspan=2 align=center> <input type="hidden" value="edit" name="act"> <input type="submit" value=" 修 改 " name="cmdok" style="font-family: 宋体; font-size: 9pt"> <input type="reset" value=" 清 除 " name="cmdcancel" style="font-family: 宋体; font-size: 9pt"> <input type="button" value=" 返 回 " onclick="javascript:history.go(-1)" style="font-family: 宋体; font-size: 9pt"> </td> </tr> </form> </table> </td> </tr> </table> <% rs.close set rs=nothing conn.close set conn=nothing%> </body></html>