public function get_html_effective_dkp($member_id, $multidkp_id, $time_period, $with_twink = true) { return '<span class="' . color_item($this->get_effective_dkp($member_id, $multidkp_id, $time_period)) . '">' . $this->get_effective_dkp($member_id, $multidkp_id, $time_period) . '</span>'; }
public function get_html_value($adj_id, $dkp_id = 0) { return '<span class="' . color_item($this->get_value($adj_id, $dkp_id)) . '">' . runden($this->get_value($adj_id, $dkp_id)) . '</span>'; }
public function get_html_current($member_id, $multidkp_id, $event_id = 0, $itempool_id = 0, $with_twink = true) { $with_twink = (int) $with_twink; $current = $this->get_current($member_id, $multidkp_id, $event_id, $itempool_id, $with_twink); return '<span class="' . color_item($current) . '">' . runden($current) . '</span>'; }
public function get_html_attendance($member_id, $multidkp_id, $time_period, $with_twinks = true) { if (!isset($this->member_attendance[$time_period][$multidkp_id])) { $this->init_attendance($time_period, $multidkp_id); } $mainid = $this->pdh->get('member', 'mainid', array($member_id)); if ($with_twinks and $this->member_attendance[$time_period][$multidkp_id]['mains'][$mainid]) { $with_twinks = 'mains'; $member_id = $mainid; } else { $with_twinks = 'members'; } $member_raidcount = $this->member_attendance[$time_period][$multidkp_id][$with_twinks][$member_id]['attended']; $total_raidcount = $this->member_attendance[$time_period][$multidkp_id][$with_twinks][$member_id]['count']; $percentage = $total_raidcount > 0 ? round($member_raidcount / $total_raidcount * 100) : 0; return '<span class="' . color_item($percentage, true) . '">' . $percentage . '% (' . $member_raidcount . '/' . $total_raidcount . ')</span>'; }
public function get_html_epgp($member_id, $multidkp_id, $round = true, $with_twink = true) { return '<span class="' . color_item($this->get_epgp($member_id, $multidkp_id, $round, $with_twink)) . '">' . $this->get_epgp($member_id, $multidkp_id, $round, $with_twink) . '</span>'; }
public function get_html_adjustment($member_id, $multidkp_id, $event_id = 0, $with_twink = true) { return '<span class="' . color_item($this->get_adjustment($member_id, $multidkp_id, $event_id, $with_twink)) . '">' . runden($this->get_adjustment($member_id, $multidkp_id, $event_id, $with_twink)) . '</span>'; }
public function get_html_attendance($member_id, $event_id, $time_period, $with_twinks = true) { $data = $this->get_attendance($member_id, $event_id, $time_period, $with_twinks, true); $percent = runden($data['member_attendance'] * 100); return $this->jquery->ProgressBar('evatt_' . $member_id . '_' . $event_id, $percent, $percent . '% (' . $data['member_raidcount'] . '/' . $data['total_raidcount'] . ')', 'center', true); return '<span class="' . color_item($percent * 100, true) . '">' . $percent * 100 . '% (' . $data['member_raidcount'] . '/' . $data['total_raidcount'] . ')</span>'; }
public function get_html_epgp($member_id, $multidkp_id) { return '<span class="' . color_item($this->get_epgp($member_id, $multidkp_id)) . '">' . $this->get_epgp($member_id, $multidkp_id) . '</span>'; }
public function get_html_calstat_raids_total_fromto($memberid, $from, $to, $withTwinks = false) { if ($withTwinks) { $arrOthers = $this->pdh->get('member', 'other_members', array($memberid)); $arrOthers[] = $memberid; $arrOthers = array_unique($arrOthers); $number_of_raids_att = 0; foreach ($arrOthers as $intMemberID) { $number_of_raids_att += (int) $this->get_calstat_raids_totalstatus_fromto($intMemberID, $from, $to); } } else { $number_of_raids_att = (int) $this->get_calstat_raids_totalstatus_fromto($memberid, $from, $to); } $number_of_raids_all = (int) $this->pdh->get('calendar_events', 'amount_raids_fromto', array($from, $to)); $percentage = round($number_of_raids_att / $number_of_raids_all * 100, 1); return '<span class="' . color_item($percentage, true) . '">' . $percentage . '% (' . $number_of_raids_att . '/' . $number_of_raids_all . ')</span>'; }