?? show.php
字號:
<?PHPinclude ("huanbao.connect.php"); $table_vote_ip='huanbao_vote_ip'; $table_vote_list='huanbao_vote_list';$query = "select sum(number) as sum_number from ".$table_vote_list;$result = mysql_query($query,$db);$row = mysql_fetch_array($result);$all=$row[sum_number];$query = "select * from ".$table_vote_list;$result = mysql_query($query,$db);$num=mysql_num_rows($result);?><html><HEAD><TITLE>環保設計大賽</TITLE></HEAD><BODY><td><table><tr><?php echo "<center> <table border=\"0\" width=\"490\" class=\"bannertext\"> <tr> <td width=\"490\" height=\"53\" colspan=\"3\">總票數:$all</td> </tr>";while($row = mysql_fetch_array($result)){ $rr=$row[number]; echo "<tr><td width=\"131\" height=\"54\">" ."第".$row[id]."號作品:". "</td> <td width=\"223\" height=\"54\"> <table width=\"223\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"black\"> <tr> <td bgcolor=\"#105588\"><img src=\"vote_view.gif\" width=\""; echo ($rr/$all)*223; echo"\" height=\"10\"><tr></table>".$rr."</td> <td width=\"120\" height=\"54\">";echo round(($rr/$all)*10000)/100;echo "%</td> </tr>";}echo "</table>";echo "<br><br><br>";?></td></table></tr></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -