Permalink
Browse files

clarity

  • Loading branch information...
1 parent 49b6f3a commit 06bedc5b7ca37fc95c766cbbf4dc419ebfbb498a @tommyrot committed Nov 3, 2012
Showing with 6 additions and 6 deletions.
  1. +3 −3 html.php
  2. +3 −3 www/history.php
View
@@ -1167,8 +1167,6 @@ private function make_table_people($type)
while ($result = mysqli_fetch_object($query)) {
$i++;
- $lastseen = $this->datetime2daysago($result->lastseen);
- $when = '';
$width = 50;
unset($width_float, $width_int, $width_remainders);
$times = array('night', 'morning', 'afternoon', 'evening');
@@ -1195,13 +1193,15 @@ private function make_table_people($type)
}
}
+ $when = '';
+
foreach ($times as $time) {
if (!empty($width_int[$time])) {
$when .= '<li class="'.$this->color[$time].'" style="width:'.$width_int[$time].'px"></li>';
}
}
- $trx .= '<tr><td class="v1">'.number_format(((int) $result->l_total / $total) * 100, 2).'%</td><td class="v2">'.number_format((int) $result->l_total).'</td><td class="pos">'.$i.'</td><td class="v3">'.($this->userstats ? '<a href="user.php?cid='.urlencode($this->cid).'&amp;nick='.urlencode($result->csnick).'">'.htmlspecialchars($result->csnick).'</a>' : htmlspecialchars($result->csnick)).'</td><td class="v4"><ul>'.$when.'</ul></td><td class="v5">'.$lastseen.'</td><td class="v6">'.htmlspecialchars($result->quote).'</td></tr>';
+ $trx .= '<tr><td class="v1">'.number_format(((int) $result->l_total / $total) * 100, 2).'%</td><td class="v2">'.number_format((int) $result->l_total).'</td><td class="pos">'.$i.'</td><td class="v3">'.($this->userstats ? '<a href="user.php?cid='.urlencode($this->cid).'&amp;nick='.urlencode($result->csnick).'">'.htmlspecialchars($result->csnick).'</a>' : htmlspecialchars($result->csnick)).'</td><td class="v4"><ul>'.$when.'</ul></td><td class="v5">'.$this->datetime2daysago($result->lastseen).'</td><td class="v6">'.htmlspecialchars($result->quote).'</td></tr>';
}
return '<table class="ppl">'.$tr0.$tr1.$tr2.$trx.'</table>'."\n";
View
@@ -343,8 +343,6 @@ private function make_table_people($type)
while ($result = mysqli_fetch_object($query)) {
$i++;
- $lastseen = $this->datetime2daysago($result->lastseen);
- $when = '';
$width = 50;
unset($width_float, $width_int, $width_remainders);
$times = array('night', 'morning', 'afternoon', 'evening');
@@ -371,13 +369,15 @@ private function make_table_people($type)
}
}
+ $when = '';
+
foreach ($times as $time) {
if (!empty($width_int[$time])) {
$when .= '<li class="'.$this->color[$time].'" style="width:'.$width_int[$time].'px"></li>';
}
}
- $trx .= '<tr><td class="v1">'.number_format(((int) $result->l_total / $total) * 100, 2).'%</td><td class="v2">'.number_format((int) $result->l_total).'</td><td class="pos">'.$i.'</td><td class="v3">'.($this->userstats ? '<a href="user.php?cid='.urlencode($this->cid).'&amp;nick='.urlencode($result->csnick).'">'.htmlspecialchars($result->csnick).'</a>' : htmlspecialchars($result->csnick)).'</td><td class="v4"><ul>'.$when.'</ul></td><td class="v5">'.$lastseen.'</td><td class="v6">'.htmlspecialchars($result->quote).'</td></tr>';
+ $trx .= '<tr><td class="v1">'.number_format(((int) $result->l_total / $total) * 100, 2).'%</td><td class="v2">'.number_format((int) $result->l_total).'</td><td class="pos">'.$i.'</td><td class="v3">'.($this->userstats ? '<a href="user.php?cid='.urlencode($this->cid).'&amp;nick='.urlencode($result->csnick).'">'.htmlspecialchars($result->csnick).'</a>' : htmlspecialchars($result->csnick)).'</td><td class="v4"><ul>'.$when.'</ul></td><td class="v5">'.$this->datetime2daysago($result->lastseen).'</td><td class="v6">'.htmlspecialchars($result->quote).'</td></tr>';
}
return '<table class="ppl">'.$tr0.$tr1.$tr2.$trx.'</table>'."\n";

0 comments on commit 06bedc5

Please sign in to comment.