1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00
extra div in oldpolls.php
This commit is contained in:
marj
2009-08-20 10:18:13 +00:00
parent 06f10fb14c
commit c62fb727fc

View File

@@ -3,7 +3,7 @@
+ ----------------------------------------------------------------------------+ + ----------------------------------------------------------------------------+
| e107 website system | e107 website system
| |
| <EFBFBD>Steve Dunstan 2001-2002 | ©Steve Dunstan 2001-2002
| http://e107.org | http://e107.org
| jalist@e107.org | jalist@e107.org
| |
@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_plugins/poll/oldpolls.php,v $ | $Source: /cvs_backup/e107_0.8/e107_plugins/poll/oldpolls.php,v $
| $Revision: 1.5 $ | $Revision: 1.6 $
| $Date: 2009-03-22 20:16:23 $ | $Date: 2009-08-20 10:16:04 $
| $Author: e107steved $ | $Author: marj_nl_fr $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
require_once("../../class2.php"); require_once("../../class2.php");
@@ -28,10 +28,7 @@ $cobj = new comment;
$gen = new convert; $gen = new convert;
if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); } if(!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); }
include_lan(e_PLUGIN."poll/languages/".e_LANGUAGE.".php");
@include(e_PLUGIN."poll/languages/".e_LANGUAGE.".php");
@include(e_PLUGIN."poll/languages/English.php");
if(e_QUERY) if(e_QUERY)
{ {
@@ -78,12 +75,17 @@ if(e_QUERY)
foreach($optionArray as $option) foreach($optionArray as $option)
{ {
$text .= "<tr> $text .= "
<tr>
<td style='width:40%; text-align: right' class='mediumtext'><b>".$tp -> toHTML($option)."</b>&nbsp;&nbsp;</td> <td style='width:40%; text-align: right' class='mediumtext'><b>".$tp -> toHTML($option)."</b>&nbsp;&nbsp;</td>
<td class='smalltext'> <td class='smalltext'>
<div style='background-image: url($barl); width: 5px; height: 14px; float: left;'>
</div>
<div style='background-image: url($barl); width: 5px; height: 14px; float: left;'></div><div style='background-image: url($bar); width: ".(floor($percentage[$count]) != 100 ? floor($percentage[$count]) : 95)."%; height: 14px; float: left;'></div><div style='background-image: url($barr); width: 5px; height: 14px; float: left;'></div>".$percentage[$count]."% [".POLLAN_31.": ".$voteArray[$count]."]</div> <div style='background-image: url($bar); width: ".(floor($percentage[$count]) != 100 ? floor($percentage[$count]) : 95)."%; height: 14px; float: left;'>
</div>
<div style='background-image: url($barr); width: 5px; height: 14px; float: left;'>
</div>
".$percentage[$count]."% [".POLLAN_31.": ".$voteArray[$count]."]
</td> </td>
</tr>\n"; </tr>\n";
$count++; $count++;