?? add.asp
字號(hào):
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<!--#include file="YZ_login.asp"-->
<%
'從form1表單選項(xiàng)個(gè)數(shù)中獲取x值,如果沒(méi)有就給一個(gè)默認(rèn)值4
x=request("x")
if x="" or x=empty then
x=4
end if
%>
<title>添加投票項(xiàng)目</title>
</head>
<body>
<h3 align="center">在線(xiàn)投票管理</h3>
<table width="654" height="431" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr>
<td width="746" height="30" bgcolor="#BEC9DB"><table width="100%" border="0">
<tr>
<td width="471"> 添加投票</td>
<td width="171"><a href="admin.asp">投票管理</a>-<a href="index.asp">首頁(yè)</a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="746" height="350" bgcolor="#F0F0F0">
<form method="post" action="do.asp" name="form1">
<table width="75%" height="284" align="center" border="0" cellspacing="1" cellpadding="0" bgcolor="#999999">
<tr>
<td width="100%" height="17" bgcolor="#F0F0F0"> </td>
</tr>
<tr>
<td height="25" bgcolor="#F0F0F0">投票選項(xiàng)個(gè)數(shù):
<!--通過(guò)onChange方法可以實(shí)現(xiàn)改變選項(xiàng)個(gè)數(shù)值,并傳給上面的變量x,從而動(dòng)態(tài)的改變選項(xiàng)個(gè)數(shù)-->
<input type="text" name="x" size="6"
onChange="location.href='add.asp?x='+form1.x.value;" value="<%=x%>">
<input name="B1" type="button" value="確定"></td>
</tr>
<tr>
<td height="25" bgcolor="#F0F0F0">投票主題:
<input type="text" name="ZhuTi" size="40"></td>
</tr>
<tr>
<td height="25" bgcolor="#F0F0F0">投票方式:
<input name="XuanZe" type="radio" value="radio" checked>單選
<input name="XuanZe" type="radio" value="checkbox" >多選
</td>
</tr>
<tr>
<td height="25" bgcolor="#F0F0F0">投票開(kāi)始時(shí)間:
<select size="1" name="nian">
<%
for i=6 to 9
response.Write("<option value=200"&i&">200"&i&"</option>")
next
%>
</select>年
<select name="yue" size="1">
<%
for i=1 to 12
response.Write("<option value="&i&">"&i&"</option>")
next
%>
</select>月
<select name="ri" size="1">
<%
for i=1 to 31
response.Write("<option value="&i&">"&i&"</option>")
next
%>
</select>日
</td>
</tr>
<tr>
<td height="25" bgcolor="#F0F0F0">投票結(jié)束時(shí)間:
<select size="1" name="nian1">
<%
for i=6 to 9
response.Write("<option value=200"&i&">200"&i&"</option>")
next
%>
</select>年
<select name="yue1" size="1">
<%
for i=1 to 12
response.Write("<option value="&i&">"&i&"</option>")
next
%>
</select>月
<select name="ri1" size="1">
<%
for i=1 to 31
response.Write("<option value="&i&">"&i&"</option>")
next
%>
</select>日
</td>
</tr>
<%
for i=1 to x
%>
<tr>
<td height="25" bgcolor="#F0F0F0">
投票選項(xiàng)<%=i%>:<input name=option<%=i%> value="" type="text">
</td>
</tr>
<%
next
%>
<tr>
<td height="25" bgcolor="#F0F0F0">設(shè)為當(dāng)前投票選項(xiàng)?
<input name="ShiFou" type="radio" value="1" checked>是
<input name="ShiFou" type="radio" value="0" >否</td>
</tr>
<tr>
<td height="25" bgcolor="#F0F0F0" align="center"><input type="submit" name="B2" value=" 提交 ">
<input type="reset" name="B3" value=" 取消 "></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -