/** * returns the notification's text * * @access public * @return string */ public function getText() { $words = new MOD_words(); if (!$this->isLoaded() || !$this->WordCode) { return ''; } elseif ($this->WordCode == '' && ($text_params = unserialize($this->TranslateParams)) !== false) { return call_user_func_array(array($words, 'get'), $text_params); } else { $member = MOD_member::getMember_userId($item->IdRelMember); return $words->get($this->WordCode, $member->getUsername()); } }
echo "<tr><th>", $words->get("DateDonation"), "</th><th>", $words->get("AmountDonation"), "</th><th>", $words->get("CommentDonation"), "</th><th>", $words->get("PlaceDonation"), "</th>"; if ($hasRight) { echo "<th>For treasurer eyes only</th>"; } echo "</tr>\n"; $max = count($TDonationArray); for ($ii = 0; $ii < $max; $ii++) { $info_styles = array(0 => "class=\"blank\"", 1 => "class=\"highlight\""); static $iii = 0; $T = $TDonationArray[$ii]; $string = $info_styles[$iii++ % 2]; // this displays the <tr> if (isset($_SESSION["IdMember"]) and $T->IdMember == $_SESSION["IdMember"]) { $string .= "bgcolor=\"yellow\""; } echo "<tr ", $string, " align=left><td>", date("y/m/d", strtotime($T->created)), "</td>"; echo "<td>"; printf("%s %3.2f", $T->Money, $T->Amount); echo "</td>"; echo "<td>", $T->SystemComment, "</td>"; echo "<td>", $T->CountryName, "</td>"; echo "</td>"; if ($hasRight) { $m = MOD_member::getMember_userId($T->IdMember); if ($m) { echo "<td>", $m->getUsername(), " ", $T->referencepaypal, "</td>"; } } echo "</tr>\n"; } echo "</table>";