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


PHP ConfigHelper::getCurrency方法代码示例

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


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

示例1: number_format

                                        <?php 
        $bgcolor = CobaltHelper::percent2Color($goal['goal_info'] / $goal['amount'] * 100);
        ?>
                                        <div class="goal_info_progress_total bar" style="background-color:#<?php 
        echo $bgcolor;
        ?>
;width:<?php 
        echo number_format($goal['goal_info'] / $goal['amount'] * 100);
        ?>
%;"></div>
                                    </div>
                                    <div class="clearfix">
                                        <span class="goal_info_out_of">
                                            <?php 
        if ($goal['goal_type'] == 'win_cash') {
            echo ConfigHelper::getCurrency() . (int) $goal['goal_info'];
            ?>
 <?php 
            echo TextHelper::_("COBALT_OUT_OF");
            ?>
 <?php 
            echo ConfigHelper::getConfigValue('currency');
            echo $goal['amount'] . " " . TextHelper::_('COBALT_WON');
        }
        if ($goal['goal_type'] == 'win_deals') {
            echo (int) $goal['goal_info'];
            ?>
 <?php 
            echo TextHelper::_("COBALT_OUT_OF");
            ?>
 <?php 
开发者ID:houzhenggang,项目名称:cobalt,代码行数:31,代码来源:default.php

示例2: ucwords

}
?>

        <?php 
if ($event['deal_name'] != "") {
    ?>
            <div data-role="collapsible">
                <h3><?php 
    echo ucwords(TextHelper::_('COBALT_ASSOCIATED_DEALS'));
    ?>
</h3>
                <ul data-inset='true' data-role='listview' data-theme="c">
                    <li>
                        <a href="<?php 
    echo RouteHelper::_('index.php?view=deals&layout=deal&id=' . $event['association_id']);
    ?>
">
                            <h3><?php 
    echo $event['deal_name'];
    ?>
</h3>
                            <div class="ui-li-count"><?php 
    echo ConfigHelper::getCurrency() . $event['deal_amount'];
    ?>
</div>
                        </a>
                    </li>
                </ul>
            </div>
        <?php 
}
开发者ID:houzhenggang,项目名称:cobalt,代码行数:31,代码来源:event.mobile.php

示例3:

         <?php 
    }
    ?>
         <td><a href="<?php 
    echo RouteHelper::_("index.php?view=deals&layout=deal&id=" . $report['id']);
    ?>
"><?php 
    echo $report['name'];
    ?>
</a></td>
         <td><?php 
    echo $report['owner_first_name'] . " " . $report['owner_last_name'];
    ?>
</td>
         <td><?php 
    echo ConfigHelper::getCurrency() . $report['amount'];
    ?>
</td>
         <td><?php 
    echo $report['source_name'];
    ?>
</td>
         <td><?php 
    echo $report['stage_name'];
    ?>
</td>
         <td><?php 
    echo $report['percent'];
    ?>
%</td>
         <td><div class="deal-status-<?php 
开发者ID:houzhenggang,项目名称:cobalt,代码行数:31,代码来源:source_report_filter.php

示例4: foreach

                <?php 
if ($app->input->get('view') != "print") {
    ?>
                    <td>&nbsp;</td>
                <?php 
}
?>
                <td><?php 
echo TextHelper::_('COBALT_SALES_PIPELINE');
?>
</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>
                    <?php 
echo ConfigHelper::getCurrency();
?>
                    <span id="total_amount">
                    <?php 
if (count($this->reports) > 0) {
    $total = 0;
    foreach ($this->reports as $key => $report) {
        $total += $report->amount;
    }
    echo $total;
}
?>
                    </span>
                </td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
开发者ID:houzhenggang,项目名称:cobalt,代码行数:31,代码来源:sales_pipeline_header.php

示例5: array_key_exists

                $custom_field_filter = array_key_exists('selected', $value) && $value['selected'] != 0 && $value['selected'] != "0000-00-00 00:00:00" ? DateHelper::formatDate($value['selected']) : "";
                break;
            case "picklist":
                $custom_field_filter = is_array($value) && array_key_exists('values', $value) && is_array($value['values']) && array_key_exists('selected', $value) && array_key_exists($value['selected'], $value['values']) ? $value['values'][$value['selected']] : "";
                break;
        }
        echo '<tr>';
        echo '<th class="customFieldHead">' . $value['name'] . '</th>';
        echo '<td>';
        //determine type of input
        switch ($value['type']) {
            case "text":
            case "number":
            case "currency":
            case "picklist":
            case "date":
                echo '<span>' . $custom_field_filter . '</span>';
                break;
            case "forecast":
                echo '<span class="forecast">';
                echo ConfigHelper::getCurrency() . $custom_field_filter;
                echo '</span>';
                break;
        }
        echo '</td>';
        echo '</tr>';
    }
    echo '</div>';
    echo '</table>';
    echo '</div>';
}
开发者ID:houzhenggang,项目名称:cobalt,代码行数:31,代码来源:custom_fields.php

示例6: strtolower

    echo RouteHelper::_("index.php?view=deals&layout=deal&id=" . $report->id);
    ?>
"><?php 
    echo $report->name;
    ?>
</a></td>
         <td><?php 
    echo $report->owner_first_name . " " . $report->owner_last_name;
    ?>
</td>
         <td><?php 
    echo $report->summary;
    ?>
</td>
         <td><?php 
    echo ConfigHelper::getCurrency() . $report->amount;
    ?>
</td>
         <td><?php 
    echo $report->stage_name;
    ?>
</td>
         <td><?php 
    echo $report->percent;
    ?>
%</td>
         <td><div class="deal-status-<?php 
    echo strtolower($report->status_name);
    ?>
"></div></td>
         <td><?php 
开发者ID:houzhenggang,项目名称:cobalt,代码行数:31,代码来源:sales_pipeline_filter.php

示例7: defined

defined('_CEXEC') or die('Restricted access');
for ($i = 0; $i < count($this->deals); $i++) {
    $deal = $this->deals[$i];
    ?>
    <div class="widget">
        <h2><a href="<?php 
    echo RouteHelper::_('index.php?view=deals&layout=deal&id=' . $deal->id);
    ?>
"><?php 
    echo $deal->name;
    ?>
</a></h2>
        <div class="details">
            <div class="row-fluid">
                <span class="well well-small col-md-4"><?php 
    echo TextHelper::_('COBALT_AMOUNT') . ": " . ConfigHelper::getCurrency() . $deal->amount;
    ?>
</span>
                <span class="well well-small col-md-4"><?php 
    echo TextHelper::_('COBALT_DEAL_STAGE') . ": " . $deal->stage_name;
    ?>
</span>
                <span class="well well-small col-md-4"><?php 
    echo TextHelper::_('COBALT_OWNER') . ": " . $deal->owner_first_name . " " . $deal->owner_last_name;
    ?>
</span>
            </div>
        </div>
        <div class="events">
        <table class="table table-bordered table-striped table-hover">
            <thead>
开发者ID:houzhenggang,项目名称:cobalt,代码行数:31,代码来源:deal_milestones_filter.php

示例8: echo

            <td><?php 
    echo $source['name'];
    ?>
</td>
            <td><?php 
    echo $source['number_of_deals'];
    ?>
</td>
            <td><?php 
    echo $source['revenue'];
    ?>
</td>
            <td>
                <?php 
    if ($source['type'] != 'per') {
        echo ConfigHelper::getCurrency() . $source['cost'];
    } else {
        $cost = $source['cost'] * $source['number_of_deals'];
        echo ConfigHelper::getCurrency() . $cost;
    }
    ?>
            </td>
            <td>
                <?php 
    echo (int) $source['roi'] . "%";
    ?>
            </td>
        </tr>
    <?php 
}
//}
开发者ID:houzhenggang,项目名称:cobalt,代码行数:31,代码来源:roi_report_filter.php

示例9:

echo $deal->name;
?>
</a>
        </div>
    </td>
    <td class="company">
        <a href="<?php 
echo RouteHelper::_('index.php?view=companies&layout=company&id=' . $deal->company_id);
?>
"><?php 
echo $deal->company_name;
?>
</a><br>
    </td>
    <td class="amount"><?php 
echo ConfigHelper::getCurrency() . $deal->amount;
?>
</td>
    <td class='status' >
        <div class='dropdown'>
            <a href='javascript:void(0);' class='dropdown-toggle update-toggle-html' role='button' data-toggle='dropdown' id="deal_status_<?php 
echo $deal->id;
?>
_link">
                <span class="deal-status-<?php 
echo $deal->status_name;
?>
"></span>
            </a>
            <ul class="dropdown-menu" aria-labelledby="deal_stage_<?php 
echo $deal->id;
开发者ID:houzhenggang,项目名称:cobalt,代码行数:31,代码来源:entry.php


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