本文整理汇总了PHP中Formatter::formatCurrency方法的典型用法代码示例。如果您正苦于以下问题:PHP Formatter::formatCurrency方法的具体用法?PHP Formatter::formatCurrency怎么用?PHP Formatter::formatCurrency使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Formatter
的用法示例。
在下文中一共展示了Formatter::formatCurrency方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
background: -webkit-linear-gradient(top, ' . $colorStr1 . ' 0%, ' . $colorStr2 . ' 100%);
background: -o-linear-gradient(top, ' . $colorStr1 . ' 0%, ' . $colorStr2 . ' 100%);
background: -ms-linear-gradient(top, ' . $colorStr1 . ' 0%, ' . $colorStr2 . ' 100%);
background: linear-gradient(to bottom, ' . $colorStr1 . ' 0%, ' . $colorStr2 . ' 100%);';
}
for ($i = 0; $i < count($stages); ++$i) {
$stage = $stages[$i];
?>
<div class='stage-members'>
<div class='stage-member-staging-area'></div>
<?php
$this->widget('zii.widgets.CListView', array('pager' => array('class' => 'ext.infiniteScroll.IasPager', 'rowSelector' => '.stage-member-container', 'listViewId' => 'workflow-stage-' . ($i + 1), 'header' => '', 'options' => array('onRenderComplete' => 'js:function(){
x2.dragAndDropViewManager.refresh ();
}', 'history' => false)), 'id' => 'workflow-stage-' . ($i + 1), 'dataProvider' => $this->getStageMemberDataProvider($modelType, $model->id, $dateRange, $i + 1, $users), 'itemView' => '_dragAndDropItemView', 'viewData' => array('modelTypes' => $modelTypes, 'recordNames' => $recordNames, 'dummyPartial' => false, 'recordType' => $modelType, 'workflow' => $model), 'template' => '<div class="stage-list-title" style="' . $colorGradients[$i] . '">' . '<h2>' . $stage['name'] . '</h2>
<div class="stage-title-row">
<div class="total-projected-stage-value">' . (is_null($stageValues[$i]) ? '' : Formatter::formatCurrency($stageValues[$i])) . '</div>
<div class="total-stage-deals">
<span class="stage-deals-num">' . $stageCounts[$i] . '</span>
<span>' . ($stageCounts[$i] === 1 ? Yii::t('workflow', 'deal') : Yii::t('workflow', 'deals')) . '</span>
</div>
<img class="workflow-stage-arrow"
src="' . Yii::app()->theme->getBaseUrl() . "/images/workflowStageArrow.png" . '" />
</div>
{pager}</div>{items}', 'itemsCssClass' => 'items stage-members-container', 'afterAjaxUpdate' => 'function (id, data) {
x2.dragAndDropViewManager.refresh ();
}'));
?>
</div>
<?php
}
?>
示例2: array
background: -webkit-linear-gradient(top, ' . $colorStr1 . ' 0%, ' . $colorStr2 . ' 100%);
background: -o-linear-gradient(top, ' . $colorStr1 . ' 0%, ' . $colorStr2 . ' 100%);
background: -ms-linear-gradient(top, ' . $colorStr1 . ' 0%, ' . $colorStr2 . ' 100%);
background: linear-gradient(to bottom, ' . $colorStr1 . ' 0%, ' . $colorStr2 . ' 100%);';
}
for ($i = 0; $i < count($stages); ++$i) {
$stage = $stages[$i];
?>
<div class='stage-members'>
<div class='stage-member-staging-area'></div>
<?php
$this->widget('zii.widgets.CListView', array('pager' => array('class' => 'ext.infiniteScroll.IasPager', 'rowSelector' => '.stage-member-container', 'listViewId' => 'workflow-stage-' . ($i + 1), 'header' => '', 'options' => array('onRenderComplete' => 'js:function(){
x2.dragAndDropViewManager.refresh ();
}', 'history' => false)), 'id' => 'workflow-stage-' . ($i + 1), 'dataProvider' => $this->getStageMemberDataProviderMixed($model->id, $dateRange, $expectedCloseDateDateRange, $i + 1, $users, $modelType), 'itemView' => '_dragAndDropItemView', 'viewData' => array('modelTypes' => $modelTypes, 'recordNames' => $recordNames, 'dummyPartial' => false), 'template' => '<div class="stage-list-title" style="' . $colorGradients[$i] . '">' . '<h2>' . $stage['name'] . '</h2>
<div class="stage-title-row">
<div class="total-projected-stage-value">' . Formatter::formatCurrency($stageValues[$i][1]) . '</div>
<div class="total-stage-deals">
<span class="stage-deals-num">' . $stageValues[$i][3] . '</span>
<span>' . ($stageValues[$i][3] === 1 ? Yii::t('workflow', 'deal') : Yii::t('workflow', 'deals')) . '</span>
</div>
<img class="workflow-stage-arrow"
src="' . Yii::app()->theme->getBaseUrl() . "/images/workflowStageArrow.png" . '" />
</div>
{pager}</div>{items}', 'itemsCssClass' => 'items stage-members-container', 'afterAjaxUpdate' => 'function (id, data) {
x2.dragAndDropViewManager.refresh ();
}'));
?>
</div>
<?php
}
?>
示例3: actionGetStageValue
public function actionGetStageValue($id, $stage, $users, $modelType, $start, $end)
{
$modelType = self::parseModelType($modelType);
$dateRange = self::getDateRange();
$expectedCloseDateDateRange = self::getDateRange('expectedCloseDateStart', 'expectedCloseDateEnd', 'expectedCloseDateRange');
$workflow = Workflow::model()->findByPk($id);
if ($workflow !== null) {
list($totalValue, $projectedValue, $currentAmount, $count) = Workflow::getStageValue($id, $stage, $users, $modelType, $dateRange, $expectedCloseDateDateRange);
$this->renderPartial('_dataSummary', array('stageName' => $workflow->getStageName($stage), 'totalValue' => Formatter::formatCurrency($totalValue), 'projectedValue' => Formatter::formatCurrency($projectedValue), 'currentAmount' => Formatter::formatCurrency($currentAmount), 'count' => $count));
}
}
示例4: renderFunnelView
/**
* Render funnel for workflow view
*/
public function renderFunnelView($workflowId, $dateRange, $users = '', $modelId = 0, $modelType = '')
{
$workflowStatus = Workflow::getWorkflowStatus($workflowId, $modelId, $modelType);
$stageCounts = Workflow::getStageCounts($workflowStatus, $dateRange, $users, $modelType);
$stageValues = Workflow::getStageValues($workflowStatus, $dateRange, $users, $modelType);
$model = $this->loadModel($workflowId);
$colors = $model->getWorkflowStageColors(sizeof($stageCounts));
$stageNameLinks = Workflow::getStageNameLinks($workflowStatus, $dateRange, $users);
$this->renderPartial('_funnel', array('workflowStatus' => $workflowStatus, 'recordsPerStage' => $stageCounts, 'stageCount' => sizeof($stageCounts), 'stageValues' => array_map(function ($a) {
return is_null($a) ? '' : Formatter::formatCurrency($a);
}, $stageValues), 'totalValue' => Formatter::formatCurrency(array_sum($stageValues)), 'stageNameLinks' => $stageNameLinks, 'colors' => $colors));
}