'[' . $gInfo->coupon_id . '] ' . ' ' . $currencies->format($gInfo->coupon_amount)); $redeem_result = $dbconn->Execute("SELECT * FROM " . $oostable['coupon_redeem_track'] . " WHERE coupon_id = '" . $gInfo->coupon_id . "'"); $redeemed = 'No'; if ($redeem_result->RecordCount() > 0) $redeemed = 'Yes'; $contents[] = array('text' => TEXT_INFO_SENDERS_ID . ' ' . $gInfo->customer_id_sent); $contents[] = array('text' => TEXT_INFO_AMOUNT_SENT . ' ' . $currencies->format($gInfo->coupon_amount)); $contents[] = array('text' => TEXT_INFO_DATE_SENT . ' ' . oos_date_short($gInfo->date_sent)); $contents[] = array('text' => TEXT_INFO_VOUCHER_CODE . ' ' . $gInfo->coupon_code); $contents[] = array('text' => TEXT_INFO_EMAIL_ADDRESS . ' ' . $gInfo->emailed_to); if ($redeemed=='Yes') { $redeem = $redeem_result->fields; $contents[] = array('text' => '
' . TEXT_INFO_DATE_REDEEMED . ' ' . oos_date_short($redeem['redeem_date'])); $contents[] = array('text' => TEXT_INFO_IP_ADDRESS . ' ' . $redeem['redeem_ip']); $contents[] = array('text' => TEXT_INFO_CUSTOMERS_ID . ' ' . $redeem['customer_id']); } else { $contents[] = array('text' => '
' . TEXT_INFO_NOT_REDEEMED); } if ( (oos_is_not_null($heading)) && (oos_is_not_null($contents)) ) { ?>
Execute($gv_result_raw); while ($gv_list = $gv_result->fields) { if ((!isset($_GET['gid']) || (isset($_GET['gid']) && ($_GET['gid'] == $gv_list['coupon_id']))) && !isset($gInfo)) { $gInfo = new objectInfo($gv_list); } if (isset($gInfo) && is_object($gInfo) && ($gv_list['coupon_id'] == $gInfo->coupon_id) ) { echo ' ' . "\n"; } else { echo ' ' . "\n"; } ?> MoveNext(); } ?>
 
format($gv_list['coupon_amount']); ?> coupon_id) ) { echo ''; } else { echo ''; } ?> 
display_count($gv_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, $nPage, TEXT_DISPLAY_NUMBER_OF_GIFT_VOUCHERS); ?> display_links($gv_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $nPage); ?>
infoBox($heading, $contents); ?>