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


PHP custom_number_formatter_format函数代码示例

本文整理汇总了PHP中custom_number_formatter_format函数的典型用法代码示例。如果您正苦于以下问题:PHP custom_number_formatter_format函数的具体用法?PHP custom_number_formatter_format怎么用?PHP custom_number_formatter_format使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: custom_number_formatter_format

    echo $dollars;
    ?>
        <?php 
}
?>
           
        </div>
        <div class="indicator"></div>
      </td>
      <?php 
$class = "";
if (_getRequestParamValue("category") == 4) {
    $class = ' active';
}
$link = RequestUtil::preparePayrollBottomNavFilter("spending_landing", 4);
$dollars = "<span class='dollars'>" . custom_number_formatter_format($dollars_by_cat[4], 1, '$') . "</span>";
?>
      <td class="last<?php 
echo $class;
?>
">
        <div class="positioning">
        <?php 
if ($dollars_by_cat[4] != 0) {
    ?>
          <a href="/<?php 
    echo $link;
    ?>
?expandBottomCont=true"><?php 
    echo $count;
    ?>
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:spending_bottom_slider.tpl.php

示例2: custom_number_formatter_format

<?php

/**
* This file is part of the Checkbook NYC financial transparency software.
* 
* Copyright (C) 2012, 2013 New York City
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU Affero General Public License for more details.
* 
* You should have received a copy of the GNU Affero General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
print '<div class="dollar-amounts">';
print '<div class="total-spending-amount">' . custom_number_formatter_format($node->data[1]['revenue_amount_sum'], 2, '$') . "<div class='amount-title'>Total Revenue<br />Recognized</div>" . '</div>';
print '<div class="total-spending-amount">' . custom_number_formatter_format($node->data[0]['total_current_modified_budget_amount'], 2, '$') . "<div class='amount-title'>Total Modified<br />Budget</div>" . '</div>';
print '<div class="total-spending-amount">' . custom_number_formatter_format($node->data[0]['total_adopted_amount'], 2, '$') . "<div class='amount-title'>Total Adopted<br />Budget</div>" . '</div>';
print '<div class="total-spending-amount">' . custom_number_formatter_format($node->data[0]['total_current_modified_budget_amount'] - $node->data[1]['revenue_amount_sum'], 2, '$') . "<div class='amount-title'>Total Remaining<br />Budget</div>" . '</div>';
print '</div>';
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:26,代码来源:recognized_cross_year_total_amount.tpl.php

示例3: custom_number_formatter_format

          <div class="dollar-amounts">
              <div class="spent-to-date"><?php 
    echo custom_number_formatter_format($contract['rfed_amount'], 2, "\$");
    ?>
                  <div class="amount-title">Spent to Date
                  </div>
              </div>
              <div class="original-amount"><?php 
    echo custom_number_formatter_format($contract['original_contract_amount'], 2, '$');
    ?>
                  <div class="amount-title">Original Amount
                  </div>
              </div>
              <div class="current-amount"><?php 
    echo custom_number_formatter_format($contract['maximum_contract_amount'], 2, '$');
    ?>
                  <div class="amount-title">Current Amount
                  </div>
              </div>
              <div class="spent-to-date"><?php 
    if ($subcontract_details[0]['sub_vendor_count']) {
        echo $subcontract_details[0]['sub_vendor_count'];
    } else {
        echo '0';
    }
    ?>
                  <div class="amount-title">Number of Sub Vendors
                  </div>
              </div>
          </div>
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:30,代码来源:contracts_ma_assoc_contracts.tpl.php

示例4: foreach

<?php

/**
* This file is part of the Checkbook NYC financial transparency software.
* 
* Copyright (C) 2012, 2013 New York City
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU Affero General Public License for more details.
* 
* You should have received a copy of the GNU Affero General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
$output = '';
foreach ($node->data as $key => $value) {
    $sum += $value['check_amount_sum'];
    $output .= $value['category_category_spending_category_name'] . ' - ' . custom_number_formatter_format($value['check_amount_sum'], 2, '$') . '<br/>';
}
$sum = custom_number_formatter_format($sum, 2, '$');
$output = '<h2 class="pane-title">City Spending</h2>' . '<h4>Agencies Spending</h4><h4>' . $sum . '</h4>' . $output;
print $output;
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:28,代码来源:agencies_landing_city_spending.tpl.php

示例5: eval

 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
$title = eval($node->widgetConfig->summaryView->templateTitleEval);
$month = '';
$year = 'FY' . _getYearValueFromID(_getRequestParamValue('year'));
$monthDetails = CheckbookDateUtil::getMonthDetails(_getRequestParamValue('month'));
$amount = custom_number_formatter_format(_getRequestParamValue('amt'), 2);
if (isset($monthDetails)) {
    $month = strtoupper($monthDetails[0]['month_name']);
}
$summaryContent = <<<EOD
<div class="contract-details-heading">
\t<div class="contract-id">
\t\t<h2 class="contract-title">{$title}</h2>
\t\t<div class="spending-tx-subtitle"><b>Year</b>: {$year}<br><b>Month</b>: {$month}</div>
\t</div>
\t<div class="dollar-amounts"><div class="total-spending-amount">{$amount}<div class="amount-title">Total Spending Amount</div></div></div>
</div>
EOD;
print $summaryContent;
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:date_summary.tpl.php

示例6: array

* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU Affero General Public License for more details.
* 
* You should have received a copy of the GNU Affero General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
if (_getRequestParamValue("datasource") == "checkbook_oge") {
    $datasource = "/datasource/checkbook_oge";
}
//Main table header
$tbl['header']['title'] = "<h3>Spending by Expense Category</h3>";
$tbl['header']['columns'] = array(array('value' => WidgetUtil::generateLabelMappingNoDiv("expense_category"), 'type' => 'text'), array('value' => WidgetUtil::generateLabelMappingNoDiv("encumbered_amount"), 'type' => 'number'), array('value' => WidgetUtil::generateLabelMappingNoDiv("spent_to_date"), 'type' => 'number'));
$count = 0;
if (count($node->data) > 0) {
    foreach ($node->data as $row) {
        $spent_to_date_value = custom_number_formatter_format($row['spending_amount'], 2, '$');
        $spent_to_date = custom_number_formatter_format($row['spending_amount'], 2, '$');
        //Main table columns
        $tbl['body']['rows'][$count]['columns'] = array(array('value' => $row['expenditure_object_name'], 'type' => 'text'), array('value' => custom_number_formatter_format($row['encumbered_amount'], 2, '$'), 'type' => 'number'), array('value' => $spent_to_date_value, 'type' => 'number_link', 'link_value' => $spent_to_date));
        $count += 1;
    }
}
$html = WidgetUtil::generateTable($tbl);
echo $html;
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:contracts_cta_spending_by_exp_cat.tpl.php

示例7: number_format

    ?>
        <?php 
}
?>
           
        </div>
        <div class="indicator"></div>
      </td>
      <?php 
$class = "";
if (preg_match("/^contracts_pending_rev_landing/", $_GET['q'])) {
    $class = ' active';
}
$pending_rev_link = ContractURLHelper::preparePendingContractsSliderFilter('contracts_pending_rev_landing');
$count = "<span class='count'>" . number_format($node->data[7]['total_contracts']) . "</span>";
$dollars = "<span class='dollars'>" . custom_number_formatter_format($node->data[6]['total_contract_amount'], 1, '$') . "</span>";
?>
      <td class="last<?php 
echo $class;
?>
">
        <div class="positioning">
        <?php 
if ($node->data[7]['total_contracts'] > 0) {
    ?>
          <a href="/<?php 
    echo $pending_rev_link;
    ?>
?expandBottomCont=true"><?php 
    echo $count;
    ?>
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:contracts_nyc_totals.tpl.php

示例8: custom_number_formatter_format

    <?php 
if ($node->data[0]['parent_contract_number']) {
    echo $master_link_html;
}
?>
  </div>
  <div class="dollar-amounts">
    <div class="original-amount">
      <?php 
echo custom_number_formatter_format($node->data[0]['original_contract_amount'], 2, '$');
?>
      <div class="amount-title">Original Amount</div>
    </div>
    <div class="current-amount">
      <?php 
echo custom_number_formatter_format($node->data[0]['maximum_spending_limit'], 2, '$');
?>
      <div class="amount-title">Current Amount</div>
    </div>
  </div>
</div>
<div class="contract-information">
  <div class="contract-details">
    <h4>General Information</h4>
    <ul class="left">
      <li><span class="gi-list-item">Prime Vendor:</span> <a
        href="<?php 
echo $vendor_link;
?>
"><?php 
echo $node->data[0]['legal_name_checkbook_vendor'];
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:pending_contract_details.tpl.php

示例9: getSubMWBENYCLegend

    /**
     * Returns the legend displayed in the Sub Vendors (M/WBE) dashboard for the "Sub Spending by M/WBE Share" visualization
     * @param $year
     * @param $yeartype
     * @return string
     */
    static function getSubMWBENYCLegend($year, $yeartype)
    {
        $where_filter = "where year_id = {$year} and type_of_year = '{$yeartype}' ";
        $sql = 'select rm.minority_type_id, rm.minority_type_name , sum(total_spending_amount) total_spending
	    from aggregateon_subven_spending_coa_entities a1
	    join ref_minority_type rm on rm.minority_type_id = a1.minority_type_id
	   ' . $where_filter . '
	    group by rm.minority_type_id, rm.minority_type_name  ';
        $spending_rows = _checkbook_project_execute_sql($sql);
        foreach ($spending_rows as $row) {
            switch ($row['minority_type_id']) {
                case '2':
                    $mwbe_spending_sub += $row['total_spending'];
                    break;
                case '3':
                    $mwbe_spending_sub += $row['total_spending'];
                    break;
                case '4':
                    $mwbe_spending_sub += $row['total_spending'];
                    break;
                case '5':
                    $mwbe_spending_sub += $row['total_spending'];
                    break;
                case '7':
                    $non_mwbe_spending_sub += $row['total_spending'];
                    break;
                case '9':
                    $mwbe_spending_sub += $row['total_spending'];
                    break;
            }
        }
        $mwbe_share = custom_number_formatter_format($mwbe_spending_sub / ($non_mwbe_spending_sub + $mwbe_spending_sub) * 100, 1, null, '%');
        $mwbe_spending = custom_number_formatter_format($mwbe_spending_sub, 2, '$');
        $non_mwbe = custom_number_formatter_format($non_mwbe_spending_sub, 2, '$');
        return '<div class="chart-nyc-legend">
    			<div class="legend-title"><span>NYC Total M/WBE</span></div>
    			<div class="legend-item"><span>M/WBE Share: ' . $mwbe_share . ' </span></div>
    			<div class="legend-item"><span>M/WBE Spending: ' . $mwbe_spending . ' </span></div>
    			<div class="legend-item"><span>Non M/WBE: ' . $non_mwbe . '</span></div>
    			</div>
    			';
    }
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:48,代码来源:SpendingUtil.php

示例10: array

     $tbl_spending_transaction['header']['title'] = "<h3>SPENDING TRANSACTIONS BY SUB VENDOR</h3>";
     $tbl_spending_transaction['header']['columns'] = array(array('value' => WidgetUtil::generateLabelMappingNoDiv("fiscal_year"), 'type' => 'text'), array('value' => WidgetUtil::generateLabelMappingNoDiv("no_of_transactions"), 'type' => 'number'), array('value' => WidgetUtil::generateLabelMappingNoDiv("amount_spent"), 'type' => 'number'));
     $index_spending_transaction = 0;
     if (count($vendor_spending_yearly_summary[$ref_id]) > 0) {
         foreach ($vendor_spending_yearly_summary[$ref_id] as $year => $results_spending_history_fy) {
             $open = $index_spending_transaction == 0 ? '' : 'open';
             //Main table columns
             $tbl_spending_transaction['body']['rows'][$index_spending_transaction]['columns'] = array(array('value' => "<a class='showHide " . $open . "' ></a>FY " . $year, 'type' => 'text'), array('value' => $results_spending_history_fy['no_of_trans'], 'type' => 'number'), array('value' => custom_number_formatter_format($results_spending_history_fy['amount_spent'], 2, '$'), 'type' => 'number'));
             //Inner table header
             $tbl_spending_transaction_inner = array();
             $tbl_spending_transaction_inner['header']['columns'] = array(array('value' => WidgetUtil::generateLabelMappingNoDiv('date'), 'type' => 'text'), array('value' => WidgetUtil::generateLabelMappingNoDiv('check_amount'), 'type' => 'number'), array('value' => WidgetUtil::generateLabelMappingNoDiv('agency_name'), 'type' => 'text'));
             $index_spending_transaction_inner = 0;
             foreach ($node->results_spending as $contract_spending) {
                 if ($contract_spending['fiscal_year'] == $year && $contract_spending['sub_contract_id'] == $ref_id) {
                     //Inner table columns
                     $tbl_spending_transaction_inner['body']['rows'][$index_spending_transaction_inner]['columns'] = array(array('value' => date_format(new DateTime($contract_spending['check_eft_issued_date']), 'm/d/Y'), 'type' => 'date'), array('value' => custom_number_formatter_format($contract_spending['check_amount'], 2, '$'), 'type' => 'number'), array('value' => $contract_spending['agency_name'], 'type' => 'text'));
                     $index_spending_transaction_inner++;
                 }
             }
             $index_spending_transaction++;
             $tbl_spending_transaction['body']['rows'][$index_spending_transaction]['inner_table'] = $tbl_spending_transaction_inner;
             $index_spending_transaction++;
         }
     }
     $index_sub_contract_reference++;
     $tbl_subcontract_reference['body']['rows'][$index_sub_contract_reference]['child_tables'] = array($tbl_contract_history, $tbl_spending_transaction);
     $index_sub_contract_reference++;
 }
 $index_spending++;
 $tbl_spending['body']['rows'][$index_spending]['child_tables'] = array($tbl_subcontract_reference);
 $index_spending++;
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:contracts_cta_spending_bottom.tpl.php

示例11: array

    $tbl_spending_transaction['header']['title'] = "<h3>SPENDING TRANSACTIONS BY PRIME VENDOR</h3>";
    $tbl_spending_transaction['header']['columns'] = array(array('value' => WidgetUtil::generateLabelMappingNoDiv("fiscal_year"), 'type' => 'text'), array('value' => WidgetUtil::generateLabelMappingNoDiv("no_of_transactions"), 'type' => 'number'), array('value' => WidgetUtil::generateLabelMappingNoDiv("amount_spent"), 'type' => 'number'));
    $index_spending_transaction = 0;
    if (count($vendor_spending_yearly_summary[$vendor]) > 0) {
        foreach ($vendor_spending_yearly_summary[$vendor] as $year => $results_spending_history_fy) {
            $open = $index_spending_transaction == 0 ? '' : 'open';
            //Main table columns
            $tbl_spending_transaction['body']['rows'][$index_spending_transaction]['columns'] = array(array('value' => "<a class='showHide " . $open . "' ></a>FY " . $year, 'type' => 'text'), array('value' => $results_spending_history_fy['no_of_trans'], 'type' => 'number'), array('value' => custom_number_formatter_format($results_spending_history_fy['amount_spent'], 2, '$'), 'type' => 'number'));
            //Inner table header
            $tbl_spending_transaction_inner = array();
            $tbl_spending_transaction_inner['header']['columns'] = array(array('value' => WidgetUtil::generateLabelMappingNoDiv('check_amount'), 'type' => 'number'), array('value' => WidgetUtil::generateLabelMappingNoDiv('expense_category'), 'type' => 'text'), array('value' => WidgetUtil::generateLabelMappingNoDiv('agency_name'), 'type' => 'text'), array('value' => WidgetUtil::generateLabelMappingNoDiv('dept_name'), 'type' => 'text'));
            $index_spending_transaction_inner = 0;
            foreach ($node->results_spending as $contract_spending) {
                if ($contract_spending['fiscal_year'] == $year && $contract_spending['vendor_name'] == $vendor) {
                    //Inner table columns
                    $tbl_spending_transaction_inner['body']['rows'][$index_spending_transaction_inner]['columns'] = array(array('value' => custom_number_formatter_format($contract_spending['check_amount'], 2, '$'), 'type' => 'number'), array('value' => $contract_spending['expenditure_object_name'], 'type' => 'text'), array('value' => $contract_spending['agency_name'], 'type' => 'text'), array('value' => $contract_spending['department_name'], 'type' => 'text'));
                    $index_spending_transaction_inner++;
                }
            }
            $index_spending_transaction++;
            $tbl_spending_transaction['body']['rows'][$index_spending_transaction]['inner_table'] = $tbl_spending_transaction_inner;
            $index_spending_transaction++;
        }
    }
    $index_spending++;
    $tbl_spending['body']['rows'][$index_spending]['child_tables'] = array($tbl_contract_history, $tbl_spending_transaction);
    $index_spending++;
}
$html = "<div class='contracts-oge-spending-bottom'>" . WidgetUtil::generateTable($tbl_spending) . "</div>";
echo $html;
?>
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:contracts_oge_cta_spending_bottom.tpl.php

示例12: custom_number_formatter_format

        $alt_txt = "This contract agreement has information as a prime vendor.<br><br> Click this icon to view this contract as a prime vendor. ";
        $url = "/contract_details/agid/" . $contract['original_agreement_id'] . "/doctype/CTA1/newwindow";
        echo "<div class='contractLinkNote'><a class='new_window' href='" . $url . "' alt='" . $alt_txt . "' target='_blank' >Open in New Window</a></div>";
    }
    ?>
          <div class="assoc_amounts">          
            <div class="rfed-amount contract-details-assoc"><span class="amount"><?php 
    echo custom_number_formatter_format($contract['spent_amount'], 2, '$');
    ?>
</span><span class="label">Spent to Date</span></div>          
            <div class="rfed-amount contract-details-assoc"><span class="amount"><?php 
    echo custom_number_formatter_format($contract['original_amount'], 2, '$');
    ?>
</span><span class="label">Orignal Amount</span></div>        
            <div class="rfed-amount contract-details-assoc"><span class="amount"><?php 
    echo custom_number_formatter_format($contract['current_amount'], 2, '$');
    ?>
</span><span class="label">Current Amount</span></div>        
          </div>    
        </div>

      <div class="resultsContainer<?php 
    print $count;
    ?>
">&nbsp</div>
    </td>

  </tr>
    <?php 
    $count += 1;
    //if ($count > 0) {
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:contracts_oge_ma_assoc_contracts.tpl.php

示例13: elseif

                }
                echo "<tr " . $class . ">";
                echo "<td class='number thVNum'><div>" . $item['document_version'] . "</div></td>";
                echo "<td class='text thStartDate'><div>" . $item['start_date'] . "</div></td>";
                echo "<td class='text thEndDate'><div>" . $item['end_date'] . "</div></td>";
                echo "<td class='text thRegDate'><div>" . $reg_date . "</div></td>";
                if (isset($item['cif_received_date'])) {
                    echo "<td class='text thLastMDate'><div>" . $item['cif_received_date'] . "</div></td>";
                } elseif (trim($item['document_version']) == "1") {
                    echo "<td></td>";
                } else {
                    echo "<td class='text thLastMDate'><div>" . $item['date@checkbook:date_id/source_updated_date_id@checkbook:history_master_agreement'] . "</div></td>";
                }
                echo "<td class='number thCurAmt'><div>" . custom_number_formatter_format($item['maximum_spending_limit'], 2, '$') . "</div></td>";
                echo "<td class='number thOrigAmt'><div>" . custom_number_formatter_format($item['original_contract_amount'], 2, '$') . "</div></td>";
                echo "<td class='number thIncDec'><div>" . custom_number_formatter_format($item['maximum_spending_limit'] - $item['original_contract_amount'], 2, '$') . "</div></td>";
                echo "<td class='text thVerStat'><div>" . $item['status'] . "</div></td>";
                echo "</tr>";
                $count += 1;
            }
            echo "</tbody>";
            echo "</table>";
            echo "</div>";
            echo "</td>";
            echo "</tr>";
        }
    }
} else {
    echo '<tr class="odd">';
    echo '<td class="dataTables_empty" valign="top" colspan="4">' . '<div id="no-records-datatable" class="clearfix">
                 <span>No Matching Records Found</span>
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:contracts_ma_history.tpl.php

示例14: foreach

<?php

/**
* This file is part of the Checkbook NYC financial transparency software.
* 
* Copyright (C) 2012, 2013 New York City
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
* 
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU Affero General Public License for more details.
* 
* You should have received a copy of the GNU Affero General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
$output = '';
foreach ($node->data as $key => $value) {
    $output .= '<div class="field-label">' . WidgetUtil::getLabel('contract_id') . ': </div><div class="field-items">' . $value['contract_id'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('contract_status') . ': </div><div class="field-items">' . $value['status'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('vendor_name') . ': </div><div class="field-items">' . $value['vendor_name'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('current_amount') . ': </div><div class="field-items">' . custom_number_formatter_format($value['current_amount'], 2, '$') . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('original_amount') . ': </div><div class="field-items">' . custom_number_formatter_format($value['original_amount'], 2, '$') . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('contract_purpose') . ': </div><div class="field-items">' . $value['description'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('start_date') . ': </div><div class="field-items">' . $value['start_date'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('end_date') . ': </div><div class="field-items">' . $value['end_date'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('contract_type') . ': </div><div class="field-items">' . $value['agreement_type_name'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('spent_to_date') . ': </div><div class="field-items">' . $value['spent_to_date'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('recv_date') . ': </div><div class="field-items">' . $value['receive_date'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('agency_name') . ': </div><div class="field-items">' . $value['agency_name'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('voucher_amount') . ': </div><div class="field-items">' . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('reg_date') . ': </div><div class="field-items">' . $value['registered_date'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('award_method') . ': </div><div class="field-items">' . $value['award_method_name'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('encumbered_amount') . ': </div><div class="field-items">' . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('version_number') . ': </div><div class="field-items">' . $value['document_version'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('apt_pin') . ': </div><div class="field-items">' . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('pin') . ': </div><div class="field-items">' . $value['pin'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('loc_site') . ': </div><div class="field-items">' . $value['worksites_name'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('sol_per_cont') . ': </div><div class="field-items">' . $value['number_solicitation'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('fms_doc') . ': </div><div class="field-items">' . $value['document_code'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('resp_per_sol') . ': </div><div class="field-items">' . $value['number_responses'] . '</div>' . '<div class="field-label">' . WidgetUtil::getLabel('fms_doc_id') . ': </div><div class="field-items">' . $value['parent_contract_id'] . '</div>';
}
print $output;
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:25,代码来源:contract_transactions_summary.tpl.php

示例15: custom_number_formatter_format

?>
      <div class="amount-title">Spent
        to Date
      </div>
    </div>
    <div
      class="original-amount"><?php 
echo custom_number_formatter_format($original_contract_amount, 2, '$');
?>
      <div class="amount-title">Original
        Amount
      </div>
    </div>
    <div
      class="current-amount"><?php 
echo custom_number_formatter_format($maximum_contract_amount, 2, '$');
?>
      <div class="amount-title">Current
        Amount
      </div>
    </div>
</div>

</div>

<div class="contract-information <?php 
echo $oge_class;
?>
">
  <div class="contract-details <?php 
echo _getRequestParamValue("datasource") == "checkbook_oge" ? "oge-cta-contract " : "";
开发者ID:ecs-hk,项目名称:Checkbook,代码行数:31,代码来源:contracts_ca_details.tpl.php


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