📄 viewvoteitem.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>
<table border="1" width="70%" cellpadding="2" cellspacing="0" bordercolordark="#f7f7f7" bordercolorlight="#cccccc" class="css">
<tr>
<td bgcolor="#efefef" colspan="4">标题 <a href="vitevote.php">返回</a></td>
</tr>
<tr>
<td width="10%" bgcolor="#f7f7f7"> 图例 </td>
<td width="54%" bgcolor="#f7f7f7">标题</td>
<td width="13%" bgcolor="#f7f7f7">票数</td>
<td width="23%" bgcolor="#f7f7f7">操作</td>
</tr>
<?php
$id=$_GET["id"];
if ($id) {
$db=@mysql_connect("localhost","root","micronsky.net") or die("数据库连接出错");
mysql_select_db("vote",$db);
$result=mysql_query("select id,info,vcount from vote where lid=$id",$db);
if ($myrow=mysql_fetch_array($result)) {
do {
?>
<tr>
<td>图例</td>
<form method="post" action="editvoteitem.php">
<td><input type="text" name="info" class="inputt" value="<?php echo $myrow["info"]?>" size="40"></td>
<td><input type="text" name="vcount" class="inputt" size="3" maxlength="10" value="<?php echo $myrow["vcount"]?>"><input type="hidden" name="id" value="<?php echo $myrow["id"]?>"><input type="hidden" name="idd" value="<?php echo $id?>"></td>
<td><input type="submit" name="submit" value="修改" class="inputt"> <input type="button" value="删除" class="inputt" name="button" onclick="if (confirm('您真的要删除该条选项吗?\n\n注意:该操作不可恢复!'))location.href='delvoteitem.php?id=<?php echo $myrow[id]?>&ids=<?php echo $id?>'"></td>
</form>
</tr>
<?php
}
while ($myrow=mysql_fetch_array($result));
}
}
?>
<tr>
<form method="post" action="addvoteitem.php">
<td colspan="4" bgcolor="#f7f7f7">添加选项 <input type="text" name="info" class="inputt" size="40"><input type="hidden" name="lid" value="<?php echo $id?>"> <input type="submit" name="submit" class="inputt" value="添加"></td>
</form>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -