;<center>更新主题:</font><select name="select">
<option selected>选项数目</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
<input type="submit" name="Submit_tp" value="确定">
<?
echo " <a href=\"$PHP_SELF?vhistory=yes\"><font color=#ff9900>查看历史记录</font><a> ";
echo "<a href=\"$PHP_SELF?stop=yes\"><font color=#ff9900>停止使用投票系统</font></a> ";
echo "<a href=\"admin.php3\"><font color=#ff9900>文章管理</font></a>";
echo "</center></form> <hr size=\"1\" color=\"#ff9900\">";
if ($Submit_tp) {
?>
<SCRIPT language=JavaScript>
<!--
var submitcount=0;
function check_com(){
if(document.form_tp.theme.value.length ==0){
submitcount--;
alert("主题没有填写!\nYou must supply a subject.");
return false;
}
<?
for ($t=1;$t<=$select;$t++) {
?>
if(document.form_tp.<? echo $xuanxiang[$t]; ?>.value.length ==0){
submitcount--;
alert("选项没有填写完整\nYou must supply a option.");
return false;
}
<?
}
?>
}
//-->
</SCRIPT>
<form name="form_tp" onsubmit="return check_com()" action="<? echo $PHP_SELF; ?>" method="post" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="23%" bgcolor="#f5f5f5">
<div align="center">主 题:</div>
</td>
<td width="77%" bgcolor="#f5f5f5">
<input type="text" name="theme"><input type="hidden" name="select2" value="<? echo $select; ?>">
</td>
</tr>
<tr>
<td width="23%">
<div align="center">选 项:</div>
</td>
<td width="77%">
<?
&n