예제 #1
0
파일: default.php 프로젝트: A-Bush/pprod
    ?>
			</td>

			<td align="center">
			<?php 
    if ($row->bemail) {
        echo $row->bemail;
    } else {
        echo $row->user_email;
    }
    ?>
			</td>

			<td align="center">
				<?php 
    echo K2StoreUtilities::number($row->orderpayment_amount, $row->currency_code, $row->currency_value);
    ?>
			</td>
			<td align="center">
				<?php 
    echo JText::_($row->orderpayment_type);
    ?>
			</td>
			<!--
			<td align="center">
				<?php 
    echo JText::_($row->transaction_status);
    ?>
			</td>
			 -->
			<td align="center">
 function getAmount($value, $currency_code, $currency_value, $convert = false)
 {
     if (version_compare($this->_k2version, '2.6.7', 'lt')) {
         return K2StoreUtilities::number($value, array('thousands' => '', 'num_decimals' => '2', 'decimal' => '.'));
     } else {
         include_once JPATH_ADMINISTRATOR . '/components/com_k2store/library/base.php';
         $currencyObject = K2StoreFactory::getCurrencyObject();
         $amount = $currencyObject->format($value, $currency_code, $currency_value, false);
         return $amount;
     }
 }