【php开源代码栏目提醒】:网学会员鉴于大家对php开源代码十分关注,论文会员在此为大家搜集整理了“pollamend.php”一文,供大家参考学习
<?php
/*
* Created on 2006-11-15
*
系统维护
* 修改投票项目
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse -
PHP - Code Templates
*/
?>
<HTML>
<head>
<Title>修改投票项目</Title>
<link rel="stylesheet" type="text/css" href="css/shared.css">
</head>
<body>
<div align="center">
<?php
require_once('com/db.php');
$db = new DataAccess();
$sql="select * from book_polltype";
mysql_query("set names 'gbk'");
$result=
mysql_query($
sql);
?>
<form action="amend.php" method="post">
<table width="60%" border="0" cellpadding="0" cellspacing="1" class="tdsectionbar">
<tr align="center">
<td width="20%" class="tdbg2">
选择
</td>
<td width="80%" class="tdbg2">
内容
</td>
</tr>
<?php
while($myarray=mysql_fetch_array($result, MYSQL_ASSOC))
{
?>
<tr>
<td class="tdbg0">
<input type="radio" name="tcode" value=<?php echo $myarray["PollId"]?>>
</td>
<td class="tdbg0"><?php echo $myarray["PollTypeName"]?>
</td>
</tr>
<?php
}
?>
</table>
<br>
<table width="60%" border="0" cellpadding="0" cellspacing="1" class="tdsectionbar">
<tr align="center" colSpan=11 class='tdbg2'>
<td width="20%" align=left> 修改的内容 </td>
<td colspan="2" align=left> <input type="text" name="tname" size="15" maxlength="45"/>
</td>
</tr>
<tr align="center" colSpan=11 class='tdbg2'>
<td colspan="2" align="center"> <input type="submit" name="Submit1" value="修改">
</td>
<td width="50%" align="center">         
<a href ="pollamend.php">重置</a> </td>
</tr>
</table>
<br><br>
<table width="60%" border="0" cellspacing="0" cellpadding="0">
<tr align="center">
<td width="55%" align="center"><a href="showtpxm.php">查看投票项目</a>
</td>
<td width="45%" align="center"><a href ="index.php">返回首页</a>
</td>
</tr>
</table>
</form>
</div>
</body>
</
HTML>