【php开源代码栏目提醒】:网学会员--在 php开源代码编辑为广大网友搜集整理了:polladd.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);
?>
<table width="60%" border="0" cellpadding="0" cellspacing="1" class="tdsectionbar">
<tr align="center">
<td width ="15%" class="tdbg2">
序号
</td>
<td align="left" width="90%" class="tdbg2">
内容
</td>
</tr>
<?php
$i = 1;
while($myarray=mysql_fetch_array($result, MYSQL_ASSOC))
{
?>
<tr>
<td align="center" class="tdbg0">
<?php echo $i; ?>
</td>
<td align="left" class="tdbg0"> <?php echo $myarray["PollTypeName"];?></td>
</tr>
<?php
$i = $i + 1;
}
?>
</table>
<br>
<table width="60%" border="0" cellpadding="0" cellspacing="1" class="tdsectionbar">
<tr>
<td colspan="3" bgcolor="#99ccff">请输入新投票项目名称:</td>
</tr>
<tr align="left">
<form action="add.php" method="post">
<td colspan="3" class="tdbg0">
<input type="text" name="PollTypeName" size="50" maxlength="40">
</td>
</tr>
<tr align="center" class="input2" colSpan=11>
<td>
<input type="submit" name="Submit1" value="新增">
<input type="reset" name="Submit2" value="重置">
</td>
</form>
</tr>
</table>
<br><br>
<table width="80%" 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>
</div>
</body>
</
HTML>