📄 admin_addvote.asp
字号:
<!-- #include file="notacc.asp"--><html>
<head>
<title>添加投票</title>
<link href="css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<!-- #include file="conn.asp"-->
<br>
<%
dim action
action=trim(request.querystring("action"))
select case action
case "add"
dim types,title,rs
types=trim(request.form("types"))
title=server.htmlencode(request.form("title"))
brstr=trim(request.form("brstr"))
if types<>"" then
conn.execute("insert into V_title (types,title,brstr) values ("&types&",'"&title&"','"&brstr&"')")
response.write "<script>alert('投票添加成功,请给新的投票添加项目');location.href='admin_vote.asp';</script>"
response.end
end if
end select
%>
<form method="post" action="?action=add">
<table border="1" width="70%" cellpadding="2" cellspacing="0" bordercolordark="#f7f7f7" bordercolorlight="#cccccc" class="inputt">
<tr>
<td bgcolor="#f7f7f7" height="30" colspan="2">添加新的投票</td>
</tr>
<tr>
<td>投票类型</td>
<td><select name="types" class="inputt">
<option value="1" selected>单选</option>
<option value="2">多选</option>
</select>
</td>
</tr>
<tr>
<td>投票项目换行</td>
<td class="inputt"><select name="brstr" class="inputt" id="brstr">
<option value="1" selected>一列显示</option>
<option value="2">二列显示</option>
<option value="3">三列显示</option>
<option value="4">四列显示</option>
<option value="5">五列显示</option>
</select></td>
</tr>
<tr>
<td>投票标题</td>
<td><input type="text" name="title" size="30" maxlength="150" class="inputt"></td>
</tr>
<tr>
<td colspan="2" align="center" height="30" bgcolor="#f7f7f7"><input type="submit" name="submit" value="添加新的投票" class="inputt">
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -