Add new voting system

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-10-09 21:10:29 +02:00
committed by Chris Morgan
parent c95da59dd1
commit 835d82e49b
7 changed files with 283 additions and 7 deletions

View File

@@ -789,10 +789,12 @@ class version {
// main URL
echo " <tr class=\"color1\"><td><b>URL</b></td><td>".$appLinkURL."</td></tr>\n";
$oM = new objectManager("voteManager", "Vote");
$oM->setReturnTo($this->objectMakeUrl());
// Votes
echo html_tr(array(
"<b>Votes</b>",
vote_count_version_total($this->iVersionId)),
vote_count_version_total($this->iVersionId).' &nbsp; <a href="'.$oM->makeUrl("edit", $_SESSION['current']->iUserId).'&iVersionId='.$this->iVersionId.'">Vote</a>'),
"color0");
if($this->sTestedRating != "/" && $this->sTestedRating)