当前位置: 首页>>代码示例>>PHP>>正文


PHP QApplication::DisplayCurrencyHtml方法代码示例

本文整理汇总了PHP中QApplication::DisplayCurrencyHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP QApplication::DisplayCurrencyHtml方法的具体用法?PHP QApplication::DisplayCurrencyHtml怎么用?PHP QApplication::DisplayCurrencyHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在QApplication的用法示例。


在下文中一共展示了QApplication::DisplayCurrencyHtml方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dtgFunds_Unposted_Bind

 public function dtgFunds_Unposted_Bind()
 {
     $fltArray = $this->objBatch->GetUnpostedBalanceByStewardshipFundId();
     if (count($fltArray)) {
         $strArrayArray = array();
         foreach ($fltArray as $intStewardshipFundId => $fltAmount) {
             $strArray = array(StewardshipFund::Load($intStewardshipFundId)->Name, QApplication::DisplayCurrencyHtml($fltAmount));
             $strArrayArray[] = $strArray;
         }
         $this->dtgFunds->DataSource = $strArrayArray;
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:12,代码来源:CpStewardship_ViewPost.class.php

示例2: RenderAmount

 public function RenderAmount(StewardshipPost $objPost)
 {
     if ($objPost->Id) {
         return QApplication::DisplayCurrencyHtml($objPost->TotalAmount);
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:6,代码来源:CpStewardship_PostBatch.class.php

示例3: lblTotalAmount_Refresh

 public function lblTotalAmount_Refresh($strFormId, $strControlId, $strParameter)
 {
     $fltTotal = 0;
     foreach ($this->mctAmountArray as $mctAmount) {
         $fltTotal += floatval($mctAmount->AmountControl->Text);
     }
     $this->lblTotalAmount->Text = QApplication::DisplayCurrencyHtml($fltTotal);
 }
开发者ID:alcf,项目名称:chms,代码行数:8,代码来源:CpStewardship_EditContribution.class.php

示例4: RenderPaymentAmount

 public function RenderPaymentAmount(SignupPayment $objPayment)
 {
     if ($objPayment->Id) {
         return QApplication::DisplayCurrencyHtml($objPayment->Amount);
     } else {
         return QApplication::DisplayCurrencyHtml($this->mctSignupEntry->SignupEntry->RefreshAmounts());
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:8,代码来源:result.php

示例5: _p

    _p($objAmount->StewardshipFund->Name);
    ?>
</div>
		<div class="value"><?php 
    _p(QApplication::DisplayCurrencyHtml($objAmount->Amount), false);
    ?>
</div>
		<div class="cleaner"></div>
	</div>
<?php 
}
?>
	<div class="amount amountTotal">
		<div class="fund">TOTAL</div>
		<div class="value"><?php 
_p(QApplication::DisplayCurrencyHtml($_CONTROL->objContribution->TotalAmount), false);
?>
</div>
		<div class="cleaner"></div>
	</div>

	<div class="cleaner"></div>
</div>
<div class="recordInfo">Record originally created by <strong><?php 
_p($_CONTROL->objContribution->CreatedByLogin->Name);
?>
</strong> on
	<strong><?php 
_p($_CONTROL->objContribution->DateEntered->ToString('MMMM D, YYYY'));
?>
</strong> at <?php 
开发者ID:alcf,项目名称:chms,代码行数:31,代码来源:CpStewardship_ViewContribution.tpl.php

示例6: _p

		<div class="cleaner"></div>
		<div class="batchLabel">Actual</div><div class="batchValue"><?php 
_p(QApplication::DisplayCurrency($this->objBatch->ActualTotalAmount));
?>
</div>
		<div class="cleaner"></div>
<?php 
if ($this->objBatch->ReportedTotalAmount) {
    ?>
		<div class="batchLabel">Reported</div><div class="batchValue"><?php 
    _p(QApplication::DisplayCurrency($this->objBatch->ReportedTotalAmount));
    ?>
</div>
		<div class="cleaner"></div>
		<div class="batchLabel">Difference</div><div class="batchValue"><?php 
    _p(QApplication::DisplayCurrencyHtml($this->objBatch->ActualTotalAmount - $this->objBatch->ReportedTotalAmount), false);
    ?>
</div>
		<div class="cleaner"></div>
<?php 
}
if ($this->objBatch->PostedTotalAmount) {
    ?>
		<div class="batchLabel">Posted</div><div class="batchValue"><?php 
    _p(QApplication::DisplayCurrency($this->objBatch->PostedTotalAmount));
    ?>
</div>
<?php 
} else {
    ?>
		<div class="batchLabel">Posted</div><div class="batchValue">n/a</div>
开发者ID:alcf,项目名称:chms,代码行数:31,代码来源:pnlBatchTitle.tpl.php

示例7: pnlStack_Refresh

 public function pnlStack_Refresh(StewardshipStack $objStack)
 {
     $strControlId = 'pnlStack' . $objStack->Id;
     $pnlStack = $this->GetControl($strControlId);
     if (!$pnlStack) {
         return;
     }
     $strClassName = null;
     if ($this->objStack && $this->objStack->Id == $objStack->Id) {
         $strClassName = 'selected';
         // Since there are so many calculated values in the HTML, we'll store the template as a
         // sprintf-formatted string (e.g. with a bunch of %s) as a textfile and use sprintf to manually set the text of the
         // pnlStack, instead of doing a full fledged QPanel template
         if ($objStack->ReportedTotalAmount) {
             $strSprintfTemplate = file_get_contents(dirname(__FILE__) . '/pnlStack_WithReportedAmount.txt');
             $pnlStack->Text = sprintf($strSprintfTemplate, $objStack->StackNumber, $strClassName, $objStack->StackNumber, number_format($objStack->ItemCount, 0), QApplication::DisplayCurrency($objStack->ActualTotalAmount), QApplication::DisplayCurrency($objStack->ReportedTotalAmount), QApplication::DisplayCurrencyHtml($objStack->ActualTotalAmount - $objStack->ReportedTotalAmount));
         } else {
             $strSprintfTemplate = file_get_contents(dirname(__FILE__) . '/pnlStack_WithoutReportedAmount.txt');
             $pnlStack->Text = sprintf($strSprintfTemplate, $objStack->StackNumber, $strClassName, $objStack->StackNumber, number_format($objStack->ItemCount, 0), QApplication::DisplayCurrency($objStack->ActualTotalAmount));
         }
         // For "Unselected"
     } else {
         $strSprintfTemplate = file_get_contents(dirname(__FILE__) . '/pnlStack_Unselected.txt');
         $pnlStack->Text = sprintf($strSprintfTemplate, $objStack->StackNumber, $strClassName, $objStack->StackNumber, number_format($objStack->ItemCount, 0), QApplication::DisplayCurrency($objStack->ActualTotalAmount));
     }
 }
开发者ID:alcf,项目名称:chms,代码行数:26,代码来源:batch.php

示例8: RenderAmount

 public function RenderAmount(StewardshipContributionAmount $objAmount)
 {
     if (!$objAmount->Id) {
         return '<span style="font-weight: normal;">' . QApplication::DisplayCurrency($this->fltTotal, 10) . '</span>';
     }
     $this->fltTotal += $objAmount->Amount;
     $strToReturn = QApplication::DisplayCurrencyHtml($objAmount->Amount, true);
     if ($objAmount->StewardshipContribution->NonDeductibleFlag) {
         $strToReturn .= '<br/><span style="color: #666; font-size: 10px;">Non-Deductible</span>';
     }
     return $strToReturn;
 }
开发者ID:alcf,项目名称:chms,代码行数:12,代码来源:Vicp_Stewardship.class.php


注:本文中的QApplication::DisplayCurrencyHtml方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。