");
}
$typess = explode(",", $results[$i]["type"]);
print(" | \n");
?>
"> print(strtolower($results[$i]["groupn1"])); ?>
if ($results[$i]["groupn2"]) {print(" :: ");} ?>"> print(strtolower($results[$i]["groupn2"])); ?>
if ($results[$i]["groupn3"]) {print(" :: ");} ?>"> print(strtolower($results[$i]["groupn3"])); ?>
|
if(($results[$i]["partyname"])&&!($results[$i]["party"]==1024))
{
if($results[$i]["party_place"])
{
$placeadj="";
if ($results[$i]["partycompo"]=="") $compophrase="";
else $compophrase=" ".$results[$i]["partycompo"];
if (($results[$i]["partycompo"]=="none")||($results[$i]["partycompo"]=="invit")) $results[$i]["party_place"]=98;
switch($results[$i]["party_place"]) {
case 1:
case 21:
case 31:
case 41:
case 51:
case 61:
case 71:
case 81:
case 91: $placeadj="st";
print("".$results[$i]["party_place"].$placeadj." at ".$results[$i]["partyname"]." ".sprintf("%02d",$results[$i]["party_year"])."".$compophrase."
| \n");
break;
case 2:
case 22:
case 32:
case 42:
case 52:
case 62:
case 72:
case 82:
case 92: $placeadj="nd";
print("".$results[$i]["party_place"].$placeadj." at ".$results[$i]["partyname"]." ".sprintf("%02d",$results[$i]["party_year"])."".$compophrase."
| \n");
break;
case 3:
case 23:
case 33:
case 43:
case 53:
case 63:
case 73:
case 83:
case 93: $placeadj="rd";
print("".$results[$i]["party_place"].$placeadj." at ".$results[$i]["partyname"]." ".sprintf("%02d",$results[$i]["party_year"])."".$compophrase."
| \n");
break;
case 97: print("disqualified at ".$results[$i]["partyname"]." ".sprintf("%02d",$results[$i]["party_year"])."".$compophrase."
| \n");
break;
case 98: print("for ".$results[$i]["partyname"]." ".sprintf("%02d",$results[$i]["party_year"])."
| \n");
break;
case 99: print("not shown at ".$results[$i]["partyname"]." ".sprintf("%02d",$results[$i]["party_year"])."".$compophrase."
| \n");
break;
default: $placeadj="th";
print("".$results[$i]["party_place"].$placeadj." at ".$results[$i]["partyname"]." ".sprintf("%02d",$results[$i]["party_year"])."".$compophrase."
| \n");
break;
}
} else
{
$placeadj = "??";
print("".$results[$i]["party_place"].$placeadj." at ".$results[$i]["partyname"]."
| \n");
}
} else {
print(" 
| \n");
}
if( ($results[$i]["date"]!="0000-00-00") && (strlen($results[$i]["date"])>0) )
{
$rdate=explode("-",$results[$i]["date"]);
switch($rdate[1]) {
case "01": $rmonth="January"; break;
case "02": $rmonth="February"; break;
case "03": $rmonth="March"; break;
case "04": $rmonth="April"; break;
case "05": $rmonth="May"; break;
case "06": $rmonth="June"; break;
case "07": $rmonth="July"; break;
case "08": $rmonth="August"; break;
case "09": $rmonth="September"; break;
case "10": $rmonth="October"; break;
case "11": $rmonth="November"; break;
case "12": $rmonth="December"; break;
}
print("".$rmonth." ".$rdate[0]."
| \n");
} else {
print(" 
| \n");
}
if($results[$i]["avg_rating"]>0)
$thumbgfx="gfx/rulez.gif";
elseif($results[$i]["avg_rating"]==0)
$thumbgfx="gfx/isok.gif";
else
$thumbgfx="gfx/sucks.gif";
printf("\n | %.2f | | |
| \n",$results[$i]["avg_rating"]);
if ($results[$i]["total"])
{ print("\n".$results[$i]["total"]." | \n");
}
else
{print("\n0 | \n");
}
//popularity bar
print("\n");
$pourcent = floor($results[$i]["views"]*100/$max_views);
//print($pourcent."%<\td>\n");
DoBar($pourcent);
print(" | \n");
?>
endfor; ?>
if((($nb_posts-1)/$posts_per_page)>0): ?>