\n");
}
$typess = explode(",", $prods[$j]["type"]);
print(" | \n");
if(($prods[$j]["partyname"])&&!($prods[$j]["party"]==1024))
{
$placeadj="";
if ($prods[$j]["partycompo"]=="") $compophrase="";
else $compophrase=" ".$prods[$j]["partycompo"];
if (($prods[$j]["partycompo"]=="none")||($prods[$j]["partycompo"]=="invit")) $prods[$j]["party_place"]=98;
if($prods[$j]["party_place"])
{
switch($prods[$j]["party_place"]) {
case 1:
case 21:
case 31:
case 41:
case 51:
case 61:
case 71:
case 81:
case 91: $placeadj="st";
print("".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["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("".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["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("".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
| \n");
break;
case 97: print("disqualified at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
| \n");
break;
case 98: print("for ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."
| \n");
break;
case 99: print("not shown at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
| \n");
break;
default: $placeadj="th";
print("".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
| \n");
break;
}
} else
{
$placeadj = "??";
print("".$prods[$j]["party_place"].$placeadj." at ".$prods[$j]["partyname"]." ".sprintf("%02d",$prods[$j]["party_year"])."".$compophrase."
| \n");
}
} else {
if ($prods[$j]["party"]==1024) print("no party
| \n");
else print("??
| \n");
}
if(($prods[$j]["date"]!="0000-00-00")&&(strlen($prods[$j]["date"])>0))
{
$rdate=explode("-",$prods[$j]["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;
default: $rmonth=""; break;
}
print("".$rmonth." ".$rdate[0]."
| \n");
} else {
print("
| \n");
}
if ($prods[$j]["voteup"])
{ print("\n".$prods[$j]["voteup"]." | \n");
}
else
{print("\n0 | \n");
}
if ($prods[$j]["votepig"])
{ print("\n".$prods[$j]["votepig"]." | \n");
}
else
{print("\n0 | \n");
}
if ($prods[$j]["votedown"])
{ print("\n".$prods[$j]["votedown"]." | \n");
}
else
{print("\n0 | \n");
}
if($prods[$j]["voteavg"]>0)
$thumbgfx="gfx/rulez.gif";
elseif($prods[$j]["voteavg"]==0)
$thumbgfx="gfx/isok.gif";
else
$thumbgfx="gfx/sucks.gif";
printf("\n | %.2f | | |
| \n",$prods[$j]["voteavg"]);
//popularity bar
print("\n");
$pourcent = floor($prods[$j]["views"]*100/$max_views);
DoBar($pourcent);
print(" | \n");
if ($prods[$j]["lcom_quand"]){ ?>
">" width="16" height="16" border="0" title="=$prods[$j]["lcom_nick"]?>">
|
|
$rdate=explode(" ",$prods[$j]["lcom_quand"]);
$rdate2=explode("-",$rdate[0]);
switch($rdate2[1]) {
case "01": $rmonth="Jan"; break;
case "02": $rmonth="Feb"; break;
case "03": $rmonth="Mar"; break;
case "04": $rmonth="Apr"; break;
case "05": $rmonth="May"; break;
case "06": $rmonth="Jun"; break;
case "07": $rmonth="Jul"; break;
case "08": $rmonth="Aug"; break;
case "09": $rmonth="Sep"; break;
case "10": $rmonth="Oct"; break;
case "11": $rmonth="Nov"; break;
case "12": $rmonth="Dec"; break;
}
print("".$rdate2[2]." ".$rmonth." ".$rdate2[0]."
| \n");
?>
|
} else {
print("
| \n");
} } ?>