コード例 #1
0
ファイル: Eway.php プロジェクト: reeleis/ohiocitycycles
 function setfields()
 {
     // echo '<pre>'; print_r($this->cart); print_r($this); exit;
     if (method_exists($this->payEway, 'setCurlPreferences')) {
         $expiry = explode('/', $this->x_exp_date);
         $this->fields['CustomerPostcode'] = $this->zip;
         $this->fields['CardNumber'] = $this->x_card_num;
         $this->fields['CardHoldersName'] = $this->firstname . ' ' . $this->lastname;
         $this->fields['CardExpiryMonth'] = $expiry[0];
         $this->fields['CardExpiryYear'] = $expiry[1];
         $this->fields['CVN'] = $this->x_card_code;
         $this->fields['TotalAmount'] = $this->cart->getAmount();
     }
     $this->fields['MerchantReference'] = $this->confirmNum;
     // $this->fields['CompanyName'] = $this->organization;
     $this->fields['CustomerFirstName'] = $this->firstname;
     $this->fields['InvoiceDescription'] = $this->description;
     $this->fields['CustomerLastName'] = $this->lastname;
     $this->fields['CustomerAddress'] = $this->address;
     $this->fields['CustomerEmail'] = $this->email != "" ? $this->email : '';
     $this->fields['Amount'] = DTreg::numberFormat($this->cart->getAmount(), 2);
     // $this->fields['TrxnNumber'] = '';
     //  $this->fields['Option1'] = '';
     /// $this->fields['Option2'] = '';
     //$this->fields['Option3'] = '';
     // $this->fields['Phone'] = $this->phone;
     // $this->fields['Email'] = $this->email;
     //$this->fields['Credit'] = 0;
     //die;
 }
コード例 #2
0
ファイル: list.php プロジェクト: reeleis/ohiocitycycles
 <?php 
                echo JText::_('DT_MEMBERS');
                ?>
</a>

					<?php 
            }
        }
        ?>
</td>

             <td align="center"><?php 
        if ($row->cancel == 1) {
            echo DTreg::numberFormat($row->due, 2);
        } else {
            echo DTreg::numberFormat($row->fee - $row->paid_amount, 2);
        }
        ?>

                </td>

                 <td align="center"><?php 
        echo $this->mUser->table->statustxt[$row->user_status];
        ?>
</td>

         </tr>

         <?php 
        $k = 1 - $k;
        $i++;