1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +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

@@ -1,23 +1,23 @@
<?php <?php
/* /*
+ ----------------------------------------------------------------------------+ + ----------------------------------------------------------------------------+
| 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
| |
| Released under the terms and conditions of the | Released under the terms and conditions of the
| 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");
if (!plugInstalled('poll')) if (!plugInstalled('poll'))
{ {
header("Location: ".e_BASE."index.php"); header("Location: ".e_BASE."index.php");
exit; exit;
@@ -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++;
@@ -136,7 +138,7 @@ $text = "<table class='fborder' style='".USER_WIDTH."'>
<td class='fcaption' style='width: 30%;'>".POLLAN_36."</td> <td class='fcaption' style='width: 30%;'>".POLLAN_36."</td>
</tr>\n"; </tr>\n";
if (!is_object($tp->e_bb)) if (!is_object($tp->e_bb))
{ {
require_once(e_HANDLER.'bbcode_handler.php'); require_once(e_HANDLER.'bbcode_handler.php');
$tp->e_bb = new e_bbcode; $tp->e_bb = new e_bbcode;
@@ -149,7 +151,7 @@ foreach($oldpollArray as $oldpoll)
$to = $gen->convert_date($poll_end_datestamp, "short"); $to = $gen->convert_date($poll_end_datestamp, "short");
$poll_title = $tp->e_bb->parseBBCodes($poll_title, 0,TRUE,TRUE); // Strip bbcodes $poll_title = $tp->e_bb->parseBBCodes($poll_title, 0,TRUE,TRUE); // Strip bbcodes
$text .= "<tr> $text .= "<tr>
<td class='forumheader3' style='width: 55%;'><a href='".e_SELF."?{$poll_id}'>{$poll_title}</a></td> <td class='forumheader3' style='width: 55%;'><a href='".e_SELF."?{$poll_id}'>{$poll_title}</a></td>
<td class='forumheader3' style='width: 15%;'><a href='".e_BASE."user.php?id.{$poll_admin_id}'>{$user_name}</a></td> <td class='forumheader3' style='width: 15%;'><a href='".e_BASE."user.php?id.{$poll_admin_id}'>{$user_name}</a></td>