HomeHelpTrac

Changeset 9984 for trunk/membership.php


Ignore:
Timestamp:
04/06/09 22:50:09 (3 years ago)
Author:
Andrey Prikaznov
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/membership.php

    r9975 r9984  
    5454        case 'cancel_subscription': 
    5555            $transactionID = (int)$_REQUEST['tran_id']; 
    56             $subscriptionArr = db_arr( "SELECT `sys_payment_subscriptions`.`TransactionID`, DATE_FORMAT(`sys_payment_subscriptions`.`StartDate`,  '$date_format' ) AS StartDate, `sys_payment_subscriptions`.`Period`, `Transactions`.`Description`, `sys_payment_providers`.`Caption` AS `ProviderCaption` FROM `sys_payment_subscriptions` 
    57                                             LEFT JOIN `Transactions` ON `sys_payment_subscriptions`.`TransactionID` = `Transactions`.`ID` 
    58                                             LEFT JOIN `sys_payment_providers` ON `Transactions`.`IDProvider` = `sys_payment_providers`.`ID` 
     56            $subscriptionArr = db_arr( "SELECT `sys_payment_subscriptions`.`TransactionID`, DATE_FORMAT(`sys_payment_subscriptions`.`StartDate`,  '$date_format' ) AS StartDate, `sys_payment_subscriptions`.`Period`, `sys_transactions`.`Description`, `sys_payment_providers`.`Caption` AS `ProviderCaption` FROM `sys_payment_subscriptions` 
     57                                            LEFT JOIN `sys_transactions` ON `sys_payment_subscriptions`.`TransactionID` = `sys_transactions`.`ID` 
     58                                            LEFT JOIN `sys_payment_providers` ON `sys_transactions`.`IDProvider` = `sys_payment_providers`.`ID` 
    5959                                            WHERE `sys_payment_subscriptions`.`TransactionID` = {$transactionID}" ); 
    6060 
     
    149149    ob_start(); 
    150150 
    151     $subscriptionsRes = db_res( "SELECT `sys_payment_subscriptions`.`TransactionID`, DATE_FORMAT(`sys_payment_subscriptions`.`StartDate`, '$date_format' ) AS StartDate, `sys_payment_subscriptions`.`Period`, `sys_payment_subscriptions`.`ChargesNumber`, `Transactions`.`Description` FROM `sys_payment_subscriptions` 
    152                                     LEFT JOIN `Transactions` ON `sys_payment_subscriptions`.`TransactionID` = `Transactions`.`ID` 
    153                                     WHERE `Transactions`.`IDMember` = {$memberID} 
    154                                         AND `Transactions`.`Status` = 'declined'" ); 
     151    $subscriptionsRes = db_res( "SELECT `sys_payment_subscriptions`.`TransactionID`, DATE_FORMAT(`sys_payment_subscriptions`.`StartDate`, '$date_format' ) AS StartDate, `sys_payment_subscriptions`.`Period`, `sys_payment_subscriptions`.`ChargesNumber`, `sys_transactions`.`Description` FROM `sys_payment_subscriptions` 
     152                                    LEFT JOIN `sys_transactions` ON `sys_payment_subscriptions`.`TransactionID` = `sys_transactions`.`ID` 
     153                                    WHERE `sys_transactions`.`IDMember` = {$memberID} 
     154                                        AND `sys_transactions`.`Status` = 'declined'" ); 
    155155    $daysLangString = _t('_days'); 
    156156    $cancelLangString = _t('_Cancel'); 
Note: See TracChangeset for help on using the changeset viewer.