";
print "";
while($row = db_getarray($result))
{
$i = $i + 1;
if ($i % 2) $bgcolor = $config['color_b'];
else $bgcolor = $config['color_a'];
if ($row[senttime])
{
if ($config['24hour'])
$format = "m-d-y H:i";
else
$format = "m-d-y h:i a";
$datetext = date($format,sql_to_unix_time($row[senttime]));
}
else
{
$datetext = FALSE;
}
if ($row[status] == '0')
$titletext = "".$row[subject]."";
else
$titletext = $row[subject];
print "";
}
print "
|
";
while($row = db_getarray($result))
{
$i = $i + 1;
$options = $row[useropts];
if ($i % 2)
$bgcolor = $config['color_b'];
else
$bgcolor = $config['color_a'];
if ($row[status] == 0)
{
$columns = array("status");
$values = array('1');
db_update($config[pmtable],"id='$id'",$columns,$values);
}
if (($row[rank])&&($row[votes]))
{
$score = $row[rank]/$row[votes];
$rank = round($score, 0);
$score = round($score, 2);
}
else
{
$rank = FALSE;
}
if ($config['24hour'])
$format = "l, F j Y H:i";
else
$format = "l, F j Y h:i A";
$datetext = date($format,sql_to_unix_time($row[senttime]));
?>
|