function viewdownloadcomments($lid, $ttitle) { global $prefix, $dbi, $admin, $bgcolor2, $module_name; include "header.php"; include "modules/{$module_name}/d_config.php"; menu(1); echo "<br>"; $result = sql_query("SELECT ratinguser, rating, ratingcomments, ratingtimestamp FROM " . $prefix . "_downloads_votedata WHERE ratinglid = {$lid} AND ratingcomments != '' ORDER BY ratingtimestamp DESC", $dbi); $totalcomments = sql_num_rows($result, $dbi); $transfertitle = ereg_replace("_", " ", $ttitle); $transfertitle = stripslashes($transfertitle); $displaytitle = $transfertitle; OpenTable(); echo "<center><font class=\"option\"><b>" . _DOWNLOADPROFILE . ": {$displaytitle}</b></font><br><br>"; downloadinfomenu($lid, $ttitle); echo "<br><br><br>" . _TOTALOF . " {$totalcomments} " . _COMMENTS . "</font></center><br>" . "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"450\">"; $x = 0; while (list($ratinguser, $rating, $ratingcomments, $ratingtimestamp) = sql_fetch_row($result, $dbi)) { $ratingcomments = stripslashes($ratingcomments); ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $ratingtimestamp, $ratingtime); $ratingtime = strftime("%F", mktime($ratingtime[4], $ratingtime[5], $ratingtime[6], $ratingtime[2], $ratingtime[3], $ratingtime[1])); $date_array = explode("-", $ratingtime); $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); $formatted_date = date("F j, Y", $timestamp); /* Individual user information */ $result2 = sql_query("SELECT rating FROM " . $prefix . "_downloads_votedata WHERE ratinguser = '******'", $dbi); $usertotalcomments = sql_num_rows($result2, $dbi); $useravgrating = 0; while (list($rating2) = sql_fetch_row($result2, $dbi)) { $useravgrating = $useravgrating + $rating2; } $useravgrating = $useravgrating / $usertotalcomments; $useravgrating = number_format($useravgrating, 1); echo "<tr><td bgcolor=\"{$bgcolor2}\">" . "<font class=\"content\"><b> " . _USER . ": </b><a href=\"{$nukeurl}/modules.php?name=Your_Account&op=userinfo&username={$ratinguser}\">{$ratinguser}</a></font>" . "</td>" . "<td bgcolor=\"{$bgcolor2}\">" . "<font class=\"content\"><b>" . _RATING . ": </b>{$rating}</font>" . "</td>" . "<td bgcolor=\"{$bgcolor2}\" align=\"right\">" . "<font class=\"content\">{$formatted_date}</font>" . "</td>" . "</tr>" . "<tr>" . "<td valign=\"top\">" . "<font class=\"tiny\">" . _USERAVGRATING . ": {$useravgrating}</font>" . "</td>" . "<td valign=\"top\" colspan=\"2\">" . "<font class=\"tiny\">" . _NUMRATINGS . ": {$usertotalcomments}</font>" . "</td>" . "</tr>" . "<tr>" . "<td colspan=\"3\">" . "<font class=\"content\">"; if (is_admin($admin)) { echo "<a href=\"admin.php?op=DownloadsModDownload&lid={$lid}\"><img src=\"modules/{$module_name}/images/editicon.gif\" border=\"0\" alt=\"" . _EDITTHISDOWNLOAD . "\"></a>"; } echo " {$ratingcomments}</font>" . "<br><br><br></td></tr>"; $x++; } echo "</table><br><br><center>"; downloadfooter($lid, $ttitle); echo "</center>"; CloseTable(); include "footer.php"; }
function viewdownloadeditorial($lid, $ttitle) { global $prefix, $dbi, $admin, $module_name; include "header.php"; include "modules/{$module_name}/d_config.php"; menu(1); $result = sql_query("SELECT adminid, editorialtimestamp, editorialtext, editorialtitle FROM " . $prefix . "_downloads_editorials WHERE downloadid = {$lid}", $dbi); $recordexist = sql_num_rows($result, $dbi); $transfertitle = ereg_replace("_", " ", $ttitle); $transfertitle = stripslashes($transfertitle); $displaytitle = $transfertitle; echo "<br>"; OpenTable(); echo "<center><font class=\"option\"><b>" . _DOWNLOADPROFILE . ": {$displaytitle}</b></font><br>"; downloadinfomenu($lid, $ttitle); if ($recordexist != 0) { while (list($adminid, $editorialtimestamp, $editorialtext, $editorialtitle) = sql_fetch_row($result, $dbi)) { $editorialtitle = stripslashes($editorialtitle); $editorialtext = stripslashes($editorialtext); ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $editorialtimestamp, $editorialtime); $editorialtime = strftime("%F", mktime($editorialtime[4], $editorialtime[5], $editorialtime[6], $editorialtime[2], $editorialtime[3], $editorialtime[1])); $date_array = explode("-", $editorialtime); $timestamp = mktime(0, 0, 0, $date_array["1"], $date_array["2"], $date_array["0"]); $formatted_date = date("F j, Y", $timestamp); echo "<br><br>"; OpenTable2(); echo "<center><font class=\"option\"><b>'{$editorialtitle}'</b></font></center>" . "<center><font class=\"tiny\">" . _EDITORIALBY . " {$adminid} - {$formatted_date}</font></center><br><br>" . "{$editorialtext}"; CloseTable2(); } } else { echo "<br><br><center><font class=\"option\"><b>" . _NOEDITORIAL . "</b></font></center>"; } echo "<br><br><center>"; downloadfooter($lid, $ttitle); echo "</center>"; CloseTable(); include "footer.php"; }
function completevotefooter($lid, $ratinguser) { global $prefix, $db, $module_name, $sitename; include "modules/{$module_name}/d_config.php"; $lid = intval($lid); $row = $db->sql_query("SELECT title FROM " . $prefix . "_downloads_downloads WHERE lid='{$lid}'"); $ttitle = filter($row[title], "nohtml"); $result = $db->sql_query("SELECT url FROM " . $prefix . "_downloads_downloads WHERE lid='{$lid}'"); list($url) = $result->fetch_row(); echo "<font class=\"content\">" . _THANKSTOTAKETIME . " {$sitename}. " . _DLETSDECIDE . "</font><br><br><br>"; if ($ratinguser == "outside") { echo "<center><font class=\"content\">" . WEAPPREACIATE . " {$sitename}!<br><a href=\"{$url}\">" . _RETURNTO . " {$ttitle}</a></font><center><br><br>"; $result = $db->sql_query("SELECT title FROM " . $prefix . "_downloads_downloads WHERE lid='{$lid}'"); list($title) = $result->fetch_row(); $ttitle = ereg_replace(" ", "_", $title); } echo "<center>"; downloadinfomenu($lid); echo "</center>"; CloseTable(); }
function viewdownloaddetails($lid, $ttitle) { global $prefix, $dbi, $admin, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $module_name; include "header.php"; include "modules/{$module_name}/d_config.php"; if ($ttitle == 0) { list($ttitle) = sql_fetch_row(sql_query("select title from " . $prefix . "_downloads_downloads where lid='{$lid}'", $dbi), $dbi); $ttitle = ereg_replace(" ", "_", $ttitle); } menu(1); $voteresult = sql_query("SELECT rating, ratinguser, ratingcomments FROM " . $prefix . "_downloads_votedata WHERE ratinglid = {$lid}", $dbi); $totalvotesDB = sql_num_rows($voteresult, $dbi); $anonvotes = 0; $anonvoteval = 0; $outsidevotes = 0; $outsidevoteeval = 0; $regvoteval = 0; $topanon = 0; $bottomanon = 11; $topreg = 0; $bottomreg = 11; $topoutside = 0; $bottomoutside = 11; $avv = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $rvv = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $ovv = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $truecomments = $totalvotesDB; while (list($ratingDB, $ratinguserDB, $ratingcommentsDB) = sql_fetch_row($voteresult, $dbi)) { if ($ratingcommentsDB == "") { $truecomments--; } if ($ratinguserDB == $anonymous) { $anonvotes++; $anonvoteval += $ratingDB; } if ($useoutsidevoting == 1) { if ($ratinguserDB == 'outside') { $outsidevotes++; $outsidevoteval += $ratingDB; } } else { $outsidevotes = 0; } if ($ratinguserDB != $anonymous && $ratinguserDB != "outside") { $regvoteval += $ratingDB; } if ($ratinguserDB != $anonymous && $ratinguserDB != "outside") { if ($ratingDB > $topreg) { $topreg = $ratingDB; } if ($ratingDB < $bottomreg) { $bottomreg = $ratingDB; } for ($rcounter = 1; $rcounter < 11; $rcounter++) { if ($ratingDB == $rcounter) { $rvv[$rcounter]++; } } } if ($ratinguserDB == $anonymous) { if ($ratingDB > $topanon) { $topanon = $ratingDB; } if ($ratingDB < $bottomanon) { $bottomanon = $ratingDB; } for ($rcounter = 1; $rcounter < 11; $rcounter++) { if ($ratingDB == $rcounter) { $avv[$rcounter]++; } } } if ($ratinguserDB == "outside") { if ($ratingDB > $topoutside) { $topoutside = $ratingDB; } if ($ratingDB < $bottomoutside) { $bottomoutside = $ratingDB; } for ($rcounter = 1; $rcounter < 11; $rcounter++) { if ($ratingDB == $rcounter) { $ovv[$rcounter]++; } } } } $regvotes = $totalvotesDB - $anonvotes - $outsidevotes; if ($totalvotesDB == 0) { $finalrating = 0; } else { if ($anonvotes == 0 && $regvotes == 0) { /* Figure Outside Only Vote */ $finalrating = $outsidevoteval / $outsidevotes; $finalrating = number_format($finalrating, $detailvotedecimal); $avgOU = $outsidevoteval / $totalvotesDB; $avgOU = number_format($avgOU, $detailvotedecimal); } else { if ($outsidevotes == 0 && $regvotes == 0) { /* Figure Anon Only Vote */ $finalrating = $anonvoteval / $anonvotes; $finalrating = number_format($finalrating, $detailvotedecimal); $avgAU = $anonvoteval / $totalvotesDB; $avgAU = number_format($avgAU, $detailvotedecimal); } else { if ($outsidevotes == 0 && $anonvotes == 0) { /* Figure Reg Only Vote */ $finalrating = $regvoteval / $regvotes; $finalrating = number_format($finalrating, $detailvotedecimal); $avgRU = $regvoteval / $totalvotesDB; $avgRU = number_format($avgRU, $detailvotedecimal); } else { if ($regvotes == 0 && $useoutsidevoting == 1 && $outsidevotes != 0 && $anonvotes != 0) { /* Figure Reg and Anon Mix */ $avgAU = $anonvoteval / $anonvotes; $avgOU = $outsidevoteval / $outsidevotes; if ($anonweight > $outsideweight) { /* Anon is 'standard weight' */ $newimpact = $anonweight / $outsideweight; $impactAU = $anonvotes; $impactOU = $outsidevotes / $newimpact; $finalrating = ($avgOU * $impactOU + $avgAU * $impactAU) / ($impactAU + $impactOU); $finalrating = number_format($finalrating, $detailvotedecimal); } else { /* Outside is 'standard weight' */ $newimpact = $outsideweight / $anonweight; $impactOU = $outsidevotes; $impactAU = $anonvotes / $newimpact; $finalrating = ($avgOU * $impactOU + $avgAU * $impactAU) / ($impactAU + $impactOU); $finalrating = number_format($finalrating, $detailvotedecimal); } } else { /* REG User vs. Anonymous vs. Outside User Weight Calutions */ $impact = $anonweight; $outsideimpact = $outsideweight; if ($regvotes == 0) { $avgRU = 0; } else { $avgRU = $regvoteval / $regvotes; } if ($anonvotes == 0) { $avgAU = 0; } else { $avgAU = $anonvoteval / $anonvotes; } if ($outsidevotes == 0) { $avgOU = 0; } else { $avgOU = $outsidevoteval / $outsidevotes; } $impactRU = $regvotes; $impactAU = $anonvotes / $impact; $impactOU = $outsidevotes / $outsideimpact; $finalrating = ($avgRU * $impactRU + $avgAU * $impactAU + $avgOU * $impactOU) / ($impactRU + $impactAU + $impactOU); $finalrating = number_format($finalrating, $detailvotedecimal); } } } } } if ($avgOU == 0 || $avgOU == "") { $avgOU = ""; } else { $avgOU = number_format($avgOU, $detailvotedecimal); } if ($avgRU == 0 || $avgRU == "") { $avgRU = ""; } else { $avgRU = number_format($avgRU, $detailvotedecimal); } if ($avgAU == 0 || $avgAU == "") { $avgAU = ""; } else { $avgAU = number_format($avgAU, $detailvotedecimal); } if ($topanon == 0) { $topanon = ""; } if ($bottomanon == 11) { $bottomanon = ""; } if ($topreg == 0) { $topreg = ""; } if ($bottomreg == 11) { $bottomreg = ""; } if ($topoutside == 0) { $topoutside = ""; } if ($bottomoutside == 11) { $bottomoutside = ""; } $totalchartheight = 70; $chartunits = $totalchartheight / 10; $avvper = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $rvvper = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $ovvper = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $avvpercent = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $rvvpercent = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $ovvpercent = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $avvchartheight = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $rvvchartheight = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $ovvchartheight = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); $avvmultiplier = 0; $rvvmultiplier = 0; $ovvmultiplier = 0; for ($rcounter = 1; $rcounter < 11; $rcounter++) { if ($anonvotes != 0) { $avvper[$rcounter] = $avv[$rcounter] / $anonvotes; } if ($regvotes != 0) { $rvvper[$rcounter] = $rvv[$rcounter] / $regvotes; } if ($outsidevotes != 0) { $ovvper[$rcounter] = $ovv[$rcounter] / $outsidevotes; } $avvpercent[$rcounter] = number_format($avvper[$rcounter] * 100, 1); $rvvpercent[$rcounter] = number_format($rvvper[$rcounter] * 100, 1); $ovvpercent[$rcounter] = number_format($ovvper[$rcounter] * 100, 1); if ($avv[$rcounter] > $avvmultiplier) { $avvmultiplier = $avv[$rcounter]; } if ($rvv[$rcounter] > $rvvmultiplier) { $rvvmultiplier = $rvv[$rcounter]; } if ($ovv[$rcounter] > $ovvmultiplier) { $ovvmultiplier = $ovv[$rcounter]; } } if ($avvmultiplier != 0) { $avvmultiplier = 10 / $avvmultiplier; } if ($rvvmultiplier != 0) { $rvvmultiplier = 10 / $rvvmultiplier; } if ($ovvmultiplier != 0) { $ovvmultiplier = 10 / $ovvmultiplier; } for ($rcounter = 1; $rcounter < 11; $rcounter++) { $avvchartheight[$rcounter] = $avv[$rcounter] * $avvmultiplier * $chartunits; $rvvchartheight[$rcounter] = $rvv[$rcounter] * $rvvmultiplier * $chartunits; $ovvchartheight[$rcounter] = $ovv[$rcounter] * $ovvmultiplier * $chartunits; if ($avvchartheight[$rcounter] == 0) { $avvchartheight[$rcounter] = 1; } if ($rvvchartheight[$rcounter] == 0) { $rvvchartheight[$rcounter] = 1; } if ($ovvchartheight[$rcounter] == 0) { $ovvchartheight[$rcounter] = 1; } } $transfertitle = ereg_replace("_", " ", $ttitle); $displaytitle = $transfertitle; $res = sql_query("SELECT cid, date, hits, name, email, description, filesize, version, homepage FROM " . $prefix . "_downloads_downloads WHERE lid='{$lid}'", $dbi); list($cid, $time, $hits, $auth_name, $email, $description, $filesize, $version, $homepage) = sql_fetch_row($res, $dbi); echo "<br>"; OpenTable(); echo "<center><font class=\"title\">" . _DOWNLOADPROFILE . ": <A HREF=\"modules.php?name={$module_name}&d_op=getit&lid={$lid}\" TARGET=\"_blank\">{$displaytitle}</A>"; newdownloadgraphic($datetime, $time); popgraphic($hits); detecteditorial($lid, $transfertitle, 1); $catResult = sql_query("select title,cdescription,ldescription,parentid from " . $prefix . "_downloads_categories where cid='{$cid}'", $dbi); list($catTitle, $cdescription, $ldescription, $parentid) = sql_fetch_row($catResult, $dbi); $catTitle = getparent($parentid, $catTitle); $catTitle = _MAIN . "/{$catTitle}"; echo "</FONT><BR><BR><B>" . _CATEGORY . ":</B> <A HREF=\"modules.php?name=Downloads&d_op=viewdownload&cid={$cid}\">{$catTitle}</A></B><BR>"; downloadinfomenu($lid, $ttitle); echo "<br><br><B><U>" . _DOWNLOADRATINGDET . "</U></B><br>" . "<B>" . _TOTALVOTES . "</B> {$totalvotesDB}<br>" . "<B>" . _OVERALLRATING . ":</B> {$finalrating}<br><br>" . "<DIV ALIGN=JUSTIFY CLASS=\"content\">{$description}</DIV>"; if ($auth_name == "") { $auth_name = "<i>" . _UNKNOWN . "</i>"; } else { if ($email == "") { $auth_name = "{$auth_name}"; } else { $email = ereg_replace("@", " <i>at</i> ", $email); $email = ereg_replace("\\.", " <i>dot</i> ", $email); $auth_name = "{$auth_name} ({$email})"; } } echo "<br><b>" . _AUTHOR . ":</b> {$auth_name}<br>" . "<b>" . _VERSION . ":</b> {$version} <b>" . _FILESIZE . ":</b> " . CoolSize($filesize) . "</font><br><br>" . "[ <b><a href=\"modules.php?name={$module_name}&d_op=getit&lid={$lid}\" TARGET=\"_blank\">" . _DOWNLOADNOW . "</a></b> "; if ($homepage == "" or $homepage == "http://") { echo "]<br><br>"; } else { echo "| <a href=\"{$homepage}\" target=\"new\">" . _HOMEPAGE . "</a> ]<br><br>"; } echo "<table align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"455\">" . "<tr><td colspan=\"2\" bgcolor=\"{$bgcolor2}\">" . "<font class=\"content\"><b>" . _REGISTEREDUSERS . "</b></font>" . "</td></tr>" . "<tr>" . "<td bgcolor=\"{$bgcolor1}\">" . "<font class=\"content\">" . _NUMBEROFRATINGS . ": {$regvotes}</font>" . "</td>" . "<td rowspan=\"5\">"; if ($regvotes == 0) { echo "<center><font class=\"content\">" . _NOREGUSERSVOTES . "</font></center>"; } else { echo "<CENTER><table border=\"1\" WIDTH=\"200\">" . "<tr>" . "<td valign=\"top\" align=\"center\" colspan=\"10\" bgcolor=\"{$bgcolor2}\"><font class=\"content\">" . _BREAKDOWNBYVAL . "</font></td>" . "</tr>" . "<tr>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$rvv['1']} " . _LVOTES . " ({$rvvpercent['1']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$rvvchartheight['1']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$rvv['2']} " . _LVOTES . " ({$rvvpercent['2']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$rvvchartheight['2']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$rvv['3']} " . _LVOTES . " ({$rvvpercent['3']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$rvvchartheight['3']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$rvv['4']} " . _LVOTES . " ({$rvvpercent['4']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$rvvchartheight['4']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$rvv['5']} " . _LVOTES . " ({$rvvpercent['5']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$rvvchartheight['5']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$rvv['6']} " . _LVOTES . " ({$rvvpercent['6']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$rvvchartheight['6']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$rvv['7']} " . _LVOTES . " ({$rvvpercent['7']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$rvvchartheight['7']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$rvv['8']} " . _LVOTES . " ({$rvvpercent['8']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$rvvchartheight['8']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$rvv['9']} " . _LVOTES . " ({$rvvpercent['9']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$rvvchartheight['9']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$rvv['10']} " . _LVOTES . " ({$rvvpercent['10']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$rvvchartheight['10']}\"></td>" . "</tr>" . "<tr><td colspan=\"10\" bgcolor=\"{$bgcolor2}\" ALIGN=CENTER>" . "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"200\"><tr>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">1</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">2</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">3</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">4</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">5</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">6</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">7</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">8</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">9</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">10</font></td>" . "</tr></table></CENTER>" . "</td></tr></table>"; } echo "</td>" . "</tr>" . "<tr><td bgcolor=\"{$bgcolor2}\"><font class=\"content\">" . _DOWNLOADRATING . ": {$avgRU}</font></td></tr>" . "<tr><td bgcolor=\"{$bgcolor1}\"><font class=\"content\">" . _HIGHRATING . ": {$topreg}</font></td></tr>" . "<tr><td bgcolor=\"{$bgcolor2}\"><font class=\"content\">" . _LOWRATING . ": {$bottomreg}</font></td></tr>" . "<tr><td bgcolor=\"{$bgcolor1}\"><font class=\"content\">" . _NUMOFCOMMENTS . ": {$truecomments}</font></td></tr>" . "<tr><td></td></tr>" . "<tr><td valign=\"top\" colspan=\"2\"><font class=\"tiny\"><br><br>" . _WEIGHNOTE . " {$anonweight} " . _TO . " 1.</font></td></tr>" . "<tr><td colspan=\"2\" bgcolor=\"{$bgcolor2}\"><font class=\"content\"><b>" . _UNREGISTEREDUSERS . "</b></font></td></tr>" . "<tr><td bgcolor=\"{$bgcolor1}\"><font class=\"content\">" . _NUMBEROFRATINGS . ": {$anonvotes}</font></td>" . "<td rowspan=\"5\">"; if ($anonvotes == 0) { echo "<center><font class=\"content\">" . _NOUNREGUSERSVOTES . "</font></center>"; } else { echo "<CENTER><table border=\"1\" width=\"200\">" . "<tr>" . "<td valign=\"top\" align=\"center\" colspan=\"10\" bgcolor=\"{$bgcolor2}\"><font class=\"content\">" . _BREAKDOWNBYVAL . "</font></td>" . "</tr>" . "<tr>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$avv['1']} " . _LVOTES . " ({$avvpercent['1']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$avvchartheight['1']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$avv['2']} " . _LVOTES . " ({$avvpercent['2']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$avvchartheight['2']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$avv['3']} " . _LVOTES . " ({$avvpercent['3']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$avvchartheight['3']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$avv['4']} " . _LVOTES . " ({$avvpercent['4']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$avvchartheight['4']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$avv['5']} " . _LVOTES . " ({$avvpercent['5']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$avvchartheight['5']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$avv['6']} " . _LVOTES . " ({$avvpercent['6']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$avvchartheight['6']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$avv['7']} " . _LVOTES . " ({$avvpercent['7']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$avvchartheight['7']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$avv['8']} " . _LVOTES . " ({$avvpercent['8']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$avvchartheight['8']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$avv['9']} " . _LVOTES . " ({$avvpercent['9']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$avvchartheight['9']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$avv['10']} " . _LVOTES . " ({$avvpercent['10']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$avvchartheight['10']}\"></td>" . "</tr>" . "<tr><td colspan=\"10\" bgcolor=\"{$bgcolor2}\">" . "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"200\"><tr>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">1</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">2</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">3</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">4</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">5</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">6</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">7</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">8</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">9</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">10</font></td>" . "</tr></table>" . "</td></tr></table></CENTER>"; } echo "</td>" . "</tr>" . "<tr><td bgcolor=\"{$bgcolor2}\"><font class=\"content\">" . _DOWNLOADRATING . ": {$avgAU}</font></td></tr>" . "<tr><td bgcolor=\"{$bgcolor1}\"><font class=\"content\">" . _HIGHRATING . ": {$topanon}</font></td></tr>" . "<tr><td bgcolor=\"{$bgcolor2}\"><font class=\"content\">" . _LOWRATING . ": {$bottomanon}</font></td></tr>" . "<tr><td bgcolor=\"{$bgcolor1}\"><font class=\"content\"> </font></td></tr>"; if ($useoutsidevoting == 1) { echo "<tr><td valign=top colspan=\"2\"><font class=\"tiny\"><br><br>" . _WEIGHOUTNOTE . " {$outsideweight} " . _TO . " 1.</font></td></tr>" . "<tr><td colspan=\"2\" bgcolor=\"{$bgcolor2}\"><font class=\"content\"><b>" . _OUTSIDEVOTERS . "</b></font></td></tr>" . "<tr><td bgcolor=\"{$bgcolor1}\"><font class=\"content\">" . _NUMBEROFRATINGS . ": {$outsidevotes}</font></td>" . "<td rowspan=\"5\">"; if ($outsidevotes == 0) { echo "<center><font class=\"content\">" . _NOOUTSIDEVOTES . "</font></center>"; } else { echo "<CENTER><table border=\"1\" width=\"200\">" . "<tr>" . "<td valign=\"top\" align=\"center\" colspan=\"10\" bgcolor=\"{$bgcolor2}\"><font class=\"content\">" . _BREAKDOWNBYVAL . "</font></td>" . "</tr>" . "<tr>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$ovv['1']} " . _LVOTES . " ({$ovvpercent['1']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$ovvchartheight['1']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$ovv['2']} " . _LVOTES . " ({$ovvpercent['2']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$ovvchartheight['2']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$ovv['3']} " . _LVOTES . " ({$ovvpercent['3']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$ovvchartheight['3']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$ovv['4']} " . _LVOTES . " ({$ovvpercent['4']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$ovvchartheight['4']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$ovv['5']} " . _LVOTES . " ({$ovvpercent['5']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$ovvchartheight['5']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$ovv['6']} " . _LVOTES . " ({$ovvpercent['6']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$ovvchartheight['6']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$ovv['7']} " . _LVOTES . " ({$ovvpercent['7']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$ovvchartheight['7']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$ovv['8']} " . _LVOTES . " ({$ovvpercent['8']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$ovvchartheight['8']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$ovv['9']} " . _LVOTES . " ({$ovvpercent['9']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$ovvchartheight['9']}\"></td>" . "<td bgcolor=\"{$bgcolor1}\" valign=\"bottom\"><img border=\"0\" alt=\"{$ovv['10']} " . _LVOTES . " ({$ovvpercent['10']}% " . _LTOTALVOTES . ")\" src=\"images/blackpixel.gif\" width=\"15\" height=\"{$ovvchartheight['10']}\"></td>" . "</tr>" . "<tr><td colspan=\"10\" bgcolor=\"{$bgcolor2}\">" . "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"200\"><tr>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">1</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">2</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">3</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">4</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">5</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">6</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">7</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">8</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">9</font></td>" . "<td width=\"10%\" valign=\"bottom\" align=\"center\"><font class=\"content\">10</font></td>" . "</tr></table>" . "</td></tr></table></CENTER>"; } echo "</td>" . "</tr>" . "<tr><td bgcolor=\"{$bgcolor2}\"><font class=\"content\">" . _DOWNLOADRATING . ": {$avgOU}</font></td></tr>" . "<tr><td bgcolor=\"{$bgcolor1}\"><font class=\"content\">" . _HIGHRATING . ": {$topoutside}</font></td></tr>" . "<tr><td bgcolor=\"{$bgcolor2}\"><font class=\"content\">" . _LOWRATING . ": {$bottomoutside}</font></td></tr>" . "<tr><td bgcolor=\"{$bgcolor1}\"><font class=\"content\"> </font></td></tr>"; } echo "</table><br><br><center>"; downloadfooter($lid, $ttitle); echo "</center>"; CloseTable(); include "footer.php"; }