vote.php
1.73 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
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>投票: <?=$r[title]?></title>
<meta name="keywords" content="<?=$r[title]?> 投票" />
<meta name="description" content="<?=$r[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]);
for($i=0;$i<count($r_r);$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>發佈時間:<?=$r[addtime]?>, 共 <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>