$s = $this->PrintLinked($year); if ($this->web) $s .= sprintf(" [<a href='%s'>web</a>]",_html($this->web)); return $s; } function GetResultsLocalFileName($year) { return get_local_partyresult_path($this->id,$year); } function RenderResultsLink($year) { return "[<a href='party_results.php?which=".$this->id."&when=".$year."'>results</a>] "; } }; BM_AddClass("PouetParty"); class PouetPlacing { var $party; var $compo; var $ranking; var $year; function PouetPlacing($initarray) { $this->party = $initarray["party"]; $this->compo = $initarray["compo"]; $this->ranking = $initarray["ranking"]; $this->year = $initarray["year"]; } function PrintRanking() { $n = (int)$this->ranking; if (!$n) return "";
return true; } function CanPostInBBS() { return true; } function CanPostInProdComments() { return true; } function CanSubmitItems() { return $this->permissionSubmitItems != 0; } function CanDeleteItems() { return $this->IsModerator(); } function CanEditItems() { return $this->IsGloperator(); } function CanEditBBS() { return $this->IsModerator(); } }; BM_AddClass("PouetUser"); ?>
$v->cdc = 0; $rows = SQLLib::selectRows("select which from cdc where which in (".implode(",",$ids).")"); foreach($prodArray as &$v) { $v->cdc = 0; foreach($rows as &$r) { if ($v->id == $r->which) { $v->cdc++; } } } $rows = SQLLib::selectRows("select count(*) as c,cdc from users_cdcs where cdc in (".implode(",",$ids).") group by cdc"); foreach($prodArray as &$v) { foreach($rows as &$r) { if ($v->id == $r->cdc) { $v->cdc += $r->c; } } } } BM_AddClass("PouetProd"); ?>