vote.php 1.7 KB

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