Changeset 1080

Show
Ignore:
Timestamp:
09/29/08 05:42:34 (3 months ago)
Author:
rach
Message:

Correct satus in card info and query about refills and payments

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/Public/A2B_card_info.php

    r1044 r1080  
    202202                                        </td> 
    203203                                        <td class="tableBodyRight"  background="../Public/templates/default/images/background_cells.gif" width="70%"> 
    204                                                 <?php echo $card['status']?>  
     204                                                <?php  
     205                                                $list_status = Constants::getCardStatus_List(); 
     206                                                echo $list_status[$card['status']][0];?>  
    205207                                        </td> 
    206208                                </tr> 
     
    368370$payment_table = new Table('cc_logpayment','*'); 
    369371$payment_clause = "card_id = ".$id; 
    370 $payment_result = $payment_table -> Get_list($DBHandle, $payment_clause, 0); 
     372$payment_result = $payment_table -> Get_list($DBHandle, $payment_clause, 0,NULL,NULL,NULL,10,0); 
    371373 
    372374if(sizeof($payment_result)>0){ 
     
    376378                <td height="20" align="center">  
    377379                        <font class="toppage_maintable_text">                                              
    378                           <?php echo gettext("Customer Payments"); ?>           <br/> 
     380                          <?php echo gettext("10 Last Customer's Payment"); ?>                  <br/> 
    379381                        </font> 
    380382                </td> 
     
    442444$refill_table = new Table('cc_logrefill','*'); 
    443445$refill_clause = "card_id = ".$id; 
    444 $refill_result = $refill_table -> Get_list($DBHandle, $refill_clause, 0); 
     446$refill_result = $refill_table -> Get_list($DBHandle, $refill_clause, 0,NULL,NULL,NULL,10,0); 
    445447 
    446448if(sizeof($refill_result)>0){ 
     
    450452                <td height="20" align="center">  
    451453                        <font class="toppage_maintable_text">                                              
    452                          <?php echo gettext("Customer Refills"); ?>                     <br/> 
     454                         <?php echo gettext("10 Last Customer's Refill"); ?>                    <br/> 
    453455                        </font> 
    454456                </td> 
  • trunk/common/lib/interface/constants.php

    r1021 r1080  
    2020 
    2121 
     22         
    2223         
    2324 
     
    186187        } 
    187188 
     189        public static function getCardStatus_List(){ 
     190                $cardstatus_list = array(); 
     191                $cardstatus_list["1"]  = array( gettext("ACTIVE"), "1"); 
     192                $cardstatus_list["0"]  = array( gettext("CANCELLED"), "0"); 
     193                $cardstatus_list["2"]  = array( gettext("NEW"), "2"); 
     194                $cardstatus_list["3"]  = array( gettext("WAITING-MAILCONFIRMATION"), "3"); 
     195                $cardstatus_list["4"]  = array( gettext("RESERVED"), "4"); 
     196                $cardstatus_list["5"]  = array( gettext("EXPIRED"), "5"); 
     197                $cardstatus_list["6"]  = array( gettext("SUSPENDED FOR UNDERPAYEMENT"), "6"); 
     198                $cardstatus_list["7"]  = array( gettext("SUSPENDED FOR LITIGATION"), "7"); 
     199                return $cardstatus_list; 
     200        } 
     201         
    188202} 
    189203 
     
    204218Constants::getBillingTypeList(); 
    205219Constants::getBillingTypeShortList(); 
     220Constants::getCardStatus_List(); 
    206221*/ 
    207222 


Google