⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vote.php

📁 一个投票系统
💻 PHP
字号:
<?
include ("const.php");
link_data();
$query="select * from title where id=".$HTTP_GET_VARS["id"];
$result=mysql_query($query);
$row=mysql_fetch_array($result);
?>
<style type="text/css">
<!--
.style1 {font-size: 12px}
-->
</style>
<script language="javascript">
function openwin(url,a,b){
var
newwin=window.open(url,"dddddd","toolbar=no,location=no,top=10,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+a+",height="+b+"");
newwin.focus();
return(newwin);
}
</script>

<table width="220"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#000000"><form name="form1" method="post" target="_blank" action="deal.php?id=<?=$HTTP_GET_VARS["id"];?>">
  <tr>
    <td width="231" height="152" valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="4" cellpadding="0">
      <tr>
        <td height="28" bgcolor="#EFEFEF">
		<div align="left"><span class="style1">
              <?=$row["title"];?>
              
      </span></div></td>
      </tr>
    </table>
	<?
	$query1="select * from choice where extends=".$HTTP_GET_VARS["id"];
	$result1=mysql_query($query1);
	if (mysql_num_rows($result1)==0)
	{
	   echo "<script language='javascript'>alert('您还没有添加选项,目前无法查看!');window.close();</script>";
	   exit;
	}
	else
	{
	   while($row1=mysql_fetch_array($result1))
	   {
	      if ($row1["IsDefault"]=="a")
		  {
		     $de="checked";
		  }
		  else
		  {
		     $de="";
		   }
     ?> 
        <table width="100%"  border="0" cellspacing="4" cellpadding="0">
          <tr>
            <td width="13%">
			<?
			if ($row["choice"]=="a")
               echo "<input name=choice type=radio value=".$row1["id"]." ".$de.">";
			elseif ($row["choice"]=="b")
			   echo "<input name=choice[] type=checkbox value=".$row1["id"]." ".$de.">";
			?>
			   
		    </td>
            <td width="87%"><div align="left"><font class="style1">
              <?=$row1["choice"];?>
            </font></div></td>
          </tr>
    </table> 
	<?
	}
	}
	?> <input name="typ" type="hidden" id="typ" value="1">	<table width="100%"  border="0" cellspacing="5" cellpadding="0">
      <tr>
        <td><div align="center">
              <input type="image" src="image/button1.gif" width="50" height="20">
            &nbsp;&nbsp;<a href="show.php?id=<?=$HTTP_GET_VARS["id"];?>" target="_blank"><img src=image/button2.gif width=50 height=20 border=0></a></div></td>
      </tr>
    </table></td>
  </tr>
</form></table><?=$ch;?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -