44 | | if ( !$odd ) { |
45 | | $odd = true; |
46 | | $class = 'kb-table-row-odd'; |
47 | | } |
48 | | else { |
49 | | $odd = false; |
50 | | $class = 'kb-table-row-even'; |
| 56 | $curdate = substr($kill->getTimeStamp(), 0, 10); |
| 57 | if ($curdate != $prevdate) |
| 58 | { |
| 59 | if ($prevdate != "" && $this->daybreak_) |
| 60 | { |
| 61 | $html .= "</table>\n"; |
| 62 | } |
| 63 | |
| 64 | if ($this->daybreak_) |
| 65 | $html .= "<div class=kb-date-header>".date("l, F jS", strtotime($curdate))."</div><br>\n"; |
| 66 | |
| 67 | if ($this->daybreak_ || $prevdate == "") |
| 68 | { |
| 69 | $html .= "<table class=kb-table width=\"99%\" align=center cellspacing=\"1\">\n"; |
| 70 | $html .= "<tr class=kb-table-header>\n"; |
| 71 | $html .= "<td class=kb-table-header colspan=2 align=\"center\">Ship type</td>\n"; |
| 72 | $html .= "<td class=kb-table-header>Victim</td>\n"; |
| 73 | $html .= "<td class=kb-table-header>Final blow</td>\n"; |
| 74 | $html .= "<td class=kb-table-header align=\"center\">System</td>\n"; |
| 75 | $html .= "<td class=kb-table-header align=\"center\">Time</td>"; |
| 76 | |
| 77 | if ($config->getConfig('comments_count')) |
| 78 | { |
| 79 | $html .= "<td class=kb-table-header align=\"center\"><img src=\"".IMG_URL."/comment.gif\"></td>\n"; |
| 80 | } |
| 81 | $html .= "</tr>\n"; |
| 82 | } |
| 83 | $prevdate = $curdate; |
| 84 | } |
| 85 | |
| 86 | $html .= "<tr class=".$class." style=\"height: 34px; cursor: pointer;\" onmouseover=\"this.className='kb-table-row-hover';\" onmouseout=\"this.className='".$class."';\" onClick=\"window.location.href='?a=kill_detail&kll_id=".$kill->getID()."';\">"; |
| 87 | |
| 88 | $html .= "<td width=32 align=center><img src=\"".$kill->getVictimShipImage(32)."\" border=\"0\"></td>"; |
| 89 | |
| 90 | $html .= "<td height=34 width=150 valign=center><div class=kb-shiptype><b>".$kill->getVictimShipName()."</b><br>".$kill->getVictimShipClassName()."</div><div class=kb-shipicon><img src=\"".$kill->getVictimShipValueIndicator()."\" border=\"0\"></div></td>"; |
| 91 | |
| 92 | $html .= "<td width=200 class=kb-table-cell><b>".$kill->getVictimName()."</b><br>".shorten($kill->getVictimCorpName())."</td>"; |
| 93 | $html .= "<td width=200 class=kb-table-cell><b>".$kill->getFBPilotName()."</b><br>".shorten($kill->getFBCorpName())."</td>"; |
| 94 | $html .= "<td width=110 class=kb-table-cell align=\"center\"><b>".shorten($kill->getSolarSystemName(), 10)."</b><br>(".roundsec($kill->getSolarSystemSecurity()).")</td>"; |
| 95 | if ($this->daybreak_) |
| 96 | $html .= "<td class=kb-table-cell align=\"center\"><b>".substr($kill->getTimeStamp(), 11, 5)."</b></td>"; |
| 97 | else |
| 98 | $html .= "<td class=kb-table-cell align=\"center\" width=80><b>".substr($kill->getTimeStamp(), 0, 10)."<br>".substr($kill->getTimeStamp(), 11, 5)."</b></td>"; |
| 99 | if ($config->getConfig('comments_count')) |
| 100 | { |
| 101 | $html .= "<td width=10 class=kb-table-cell align=\"center\"><b>".shorten($kill->countComment($kill->getID()), 10)."</b></td>"; |
| 102 | } |
| 103 | $html .= "</tr>\n"; |
59 | | if ( $this->daybreak_ ) |
60 | | $html .= "<div class=kb-date-header>".date( "l, F jS", strtotime( $curdate ) )."</div><br>\n"; |
61 | | |
62 | | if ( $this->daybreak_ || $prevdate == "" ) { |
63 | | $html .= "<table class=kb-table width=\"99%\" align=center cellspacing=\"1\">\n"; |
64 | | $html .= "<tr class=kb-table-header>\n"; |
65 | | $html .= "<td class=kb-table-header colspan=2 align=\"center\">Ship type</td>\n"; |
66 | | $html .= "<td class=kb-table-header>Victim</td>\n"; |
67 | | $html .= "<td class=kb-table-header>Final blow</td>\n"; |
68 | | $html .= "<td class=kb-table-header align=\"center\">System</td>\n"; |
69 | | $html .= "<td class=kb-table-header align=\"center\">Time</td></tr>\n"; |
70 | | } |
71 | | $prevdate = $curdate; |
72 | | } |
73 | | |
74 | | $html .= "<tr class=".$class." style=\"height: 34px; cursor: pointer;\" onmouseover=\"this.className='kb-table-row-hover';\" onmouseout=\"this.className='".$class."';\" onClick=\"window.location.href='?a=kill_detail&kll_id=".$kill->getID()."';\">"; |
75 | | |
76 | | $html .= "<td width=32 align=center><img src=\"".$kill->getVictimShipImage( 32 )."\" border=\"0\"></td>"; |
77 | | |
78 | | $html .= "<td height=34 width=150 valign=center><div class=kb-shiptype><b>".$kill->getVictimShipName()."</b><br>".$kill->getVictimShipClassName()."</div><div class=kb-shipicon><img src=\"".$kill->getVictimShipValueIndicator()."\" border=\"0\"></div></td>"; |
79 | | |
80 | | $html .= "<td width=200 class=kb-table-cell><b>".$kill->getVictimName()."</b><br>".shorten( $kill->getVictimCorpName() )."</td>"; |
81 | | $html .= "<td width=200 class=kb-table-cell><b>".$kill->getFBPilotName()."</b><br>".shorten( $kill->getFBCorpName() )."</td>"; |
82 | | $html .= "<td width=110 class=kb-table-cell align=\"center\"><b>".shorten( $kill->getSolarSystemName(), 10 )."</b><br>(".roundsec( $kill->getSolarSystemSecurity() ).")</td>"; |
83 | | if ( $this->daybreak_ ) |
84 | | $html .= "<td class=kb-table-cell align=\"center\"><b>".substr( $kill->getTimeStamp(), 11, 5 )."</b></td>"; |
85 | | else |
86 | | $html .= "<td class=kb-table-cell align=\"center\" width=80><b>".substr( $kill->getTimeStamp(), 0, 10 )."<br>".substr( $kill->getTimeStamp(), 11, 5 )."</b></td>"; |
87 | | |
88 | | $html .= "</tr>\n"; |
89 | | } |
90 | | |
91 | | if ( $this->kill_list_->qry_->recordCount() > 0 ) |
92 | | $html .= "</table>\n"; |
93 | | else |
94 | | $html .= "<p>No data."; |
95 | | |
96 | | return $html; |
97 | | |
| 111 | return $html; |