='$startdate' AND processdate < '$enddate' ORDER BY payid DESC"; $result = db_query($sql); rawoutput(""); $type = translate_inline("Type"); $gross = translate_inline("Gross"); $fee = translate_inline("Fee"); $net = translate_inline("Net"); $processed = translate_inline("Processed"); $id = translate_inline("Transaction ID"); $who = translate_inline("Who"); rawoutput(""); $number=db_num_rows($result); for ($i=0;$i<$number;$i++){ $row = db_fetch_assoc($result); $info = unserialize($row['info']); rawoutput(""); } rawoutput("
Date$id$type$gross$fee$net$processed$who
"); output_notl(date("m/d H:i",strtotime($info['payment_date']))); rawoutput(""); output_notl("%s",$row['txnid']); rawoutput(""); output_notl("%s", $info['txn_type']); rawoutput(""); output_notl("%.2f %s", $info['mc_gross'], $info['mc_currency']); rawoutput(""); output_notl("%s", $info['mc_fee']); rawoutput(""); output_notl("%.2f", (float)$info['mc_gross'] - (float)$info['mc_fee']); rawoutput(""); output_notl("%s", translate_inline($row['processed']?"`@Yes`0":"`\$No`0")); rawoutput(""); if ($row['name']>"") { rawoutput(""); output_notl("`&%s`0 (%d/%d)", $row['name'], $row['donationspent'], $row['donation']); rawoutput(""); addnav("","user.php?op=edit&userid={$row['acctid']}"); }else{ $amt = round((float)$info['mc_gross'] * 100,0); $memo = ""; if (isset($info['memo'])) { $memo = $info['memo']; } $link = "donators.php?op=add1&name=".rawurlencode($memo)."&amt=$amt&txnid={$row['txnid']}"; rawoutput("-=( [".htmlentities($memo, ENT_COMPAT, getsetting("charset", "ISO-8859-1"))."] )=-"); addnav("",$link); } rawoutput("
"); addnav("Refresh","paylog.php"); } page_footer(); ?>