vote.php
1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$infor[title]?> 投票</title>
<meta name="keywords" content="<?=$infor[title]?> 投票" />
<meta name="description" content="<?=$infor[title]?> 投票" />
<link href="../../data/images/qcss.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td height="25">標題:<?=$r[title]?> (<?=$voteclass?>)</td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<?php
//取得行
$r_r=explode($r_exp,$r[votetext]);
$count=count($r_r);
for($i=0;$i<$count;$i++)
{
$f_r=explode($f_exp,$r_r[$i]);
if($r['votenum'])
{
$width=number_format(($f_r[1]/$r['votenum'])*100,2);
}
else
{
$width=0;
}
?>
<tr height=24>
<td width="48%">
<img src="../../data/images/msgnav.gif" width="5" height="5">
<?=$f_r[0]?>
</td>
<td width="10%">
<div align="center"><?=$f_r[1]?>票</div>
</td>
<td width="42%">
<img src="../../data/images/showvote.gif" width="<?=$width?>" height="6" border=0>
<?=$width?>%
</td>
</tr>
<?php
}
?>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" align="right" cellpadding="3" cellspacing="1">
<tr>
<td> 共 <b><?=$r['votenum']?></b> 票</td>
</tr>
</table></td>
</tr>
</table>
<br>
<br>
<br>
<center><input type=button name=button value=關閉 onclick="self.window.close();"></center>
</body>
</html>