📄 addvote.php
字号:
<?php
require("notaccess.php");
?><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>
<?php
function getdatetime()
{
$datetime=getdate();
$strReturn=$datetime["year"]."-";
$strReturn=$strReturn.$datetime["mon"]."-";
$strReturn=$strReturn.$datetime["mday"]." ";
$strReturn=$strReturn.$datetime["hours"].":";
$strReturn=$strReturn.$datetime["minutes"].":";
$strReturn=$strReturn.$datetime["seconds"];
return $strReturn;
}
?>
<form method="post" action="addvotes.php">
<table border="1" width="45%" cellpadding="2" cellspacing="0" bordercolordark="#f7f7f7" bordercolorlight="#cccccc" class="css">
<tr>
<td bgcolor="#f7f7f7" colspan="2">添加新的投票</td>
</tr>
<tr>
<td>投票类型</td>
<td><select name="types" class="inputt" id="types">
<option value="1" selected>单选</option>
<option value="2">多选</option>
</select></td>
</tr>
<tr>
<td>投票标题</td>
<td><input type="text" name="title" class="inputt" size="30" maxlength="125">
<input type="hidden" name="times" value="<?php echo getdatetime()?>">
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#f7f7f7" align="center"><input type="submit" name="submit" value="添加新投票" class="inputt"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -