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


PHP display_currency函数代码示例

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


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

示例1: jquery_get_invoices

 public function jquery_get_invoices($status = 'open')
 {
     $function = "get_" . $status;
     $invoices = $this->mdl_invoices->{$function}();
     $inv_array = array();
     foreach ($invoices as $invoice) {
         $inv_array[] = array('id' => $invoice->invoice_id, 'title' => $invoice->client_name . ' (' . display_currency($invoice->invoice_total) . ')', 'start' => date('Y-m-d', $invoice->invoice_due_date), 'url' => './invoices/edit/invoice_id/' . $invoice->invoice_id);
     }
     echo json_encode($inv_array);
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:10,代码来源:calendar.php

示例2: display_currency

        echo $this->lang->line('adjust_stock');
        ?>
"><?php 
        echo $item->inventory_stock;
        ?>
</a>
                        <?php 
    } else {
        ?>
                        --
                        <?php 
    }
    ?>
                    </td>
					<td><?php 
    echo display_currency($item->inventory_unit_price);
    ?>
</td>
					<td class="last">
						<a href="<?php 
    echo site_url('inventory/form/inventory_id/' . $item->inventory_id);
    ?>
" title="<?php 
    echo $this->lang->line('edit');
    ?>
">
							<?php 
    echo icon('edit');
    ?>
						</a>
						<a href="<?php 
开发者ID:Meritxell01,项目名称:prova,代码行数:31,代码来源:index.php

示例3: display_currency

<div class="section_wrapper">

	<h3 class="title_black"><?php 
echo $this->lang->line('total_paid');
?>
</h3>
	<h3 class="title_white"><?php 
echo display_currency($invoice_total_paid);
?>
</h3>

</div>
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:12,代码来源:sidebar_invoice_paid.php

示例4: icon

<div class="section_wrapper">

	<h3 class="title_black"><?php 
echo $this->lang->line('total_balance');
?>
</h3>
	<h3 class="title_white"><?php 
echo icon('coins') . ' ' . display_currency($invoice_total_balance);
?>
</h3>

</div>
开发者ID:Meritxell01,项目名称:prova,代码行数:12,代码来源:sidebar_invoice_balance.php

示例5: character_limiter

    echo $invoice_item->item_name;
    ?>
</td>
			<td><?php 
    echo character_limiter($invoice_item->item_description, 40);
    ?>
</td>
			<td><?php 
    echo number_format($invoice_item->item_qty, 2);
    ?>
</td>
			<td><?php 
    echo display_currency($invoice_item->item_price);
    ?>
</td>
			<td><?php 
    if ($invoice_item->is_taxable) {
        echo icon('check');
    }
    ?>
</td>
			<td class="last"><?php 
    echo display_currency($invoice_item->item_subtotal);
    ?>
</td>
		</tr>
	<?php 
}
?>

</table>
开发者ID:Meritxell01,项目名称:prova,代码行数:31,代码来源:invoice_view_tab_items.php

示例6: foreach

</th>
        <th scope="col" class="last"><?php 
echo $this->lang->line('amount');
?>
</th>
    </tr>

    <?php 
foreach ($items as $item) {
    ?>

    <tr>
        <td class="first"><?php 
    echo $item->inventory_name;
    ?>
</td>
        <td><?php 
    echo format_number($item->inventory_sum_quantity);
    ?>
</td>
        <td class="last"><?php 
    echo display_currency($item->inventory_sum_amount);
    ?>
</td>
    </tr>

    <?php 
}
?>

</table>
开发者ID:Meritxell01,项目名称:prova,代码行数:31,代码来源:inventory_sales_view.php

示例7: invoice_payment

function invoice_payment($payment)
{
    /* Amount of individual payment, formatted as currency */
    return display_currency($payment->payment_amount);
}
开发者ID:rifaiaja,项目名称:orpsystem,代码行数:5,代码来源:mcb_invoice_payment_helper.php

示例8: foreach

foreach ($items as $item) {
    ?>

        <tr>
            <td class="first"><?php 
    echo $item->item_name;
    ?>
</td>
            <td style="text-align: right;"><?php 
    echo format_number($item->sum_item_qty, FALSE);
    ?>
</td>
			<td style="text-align: right;"><?php 
    echo display_currency($item->item_price, FALSE);
    ?>
</td>
			<td style="text-align: right;"><?php 
    echo display_currency($item->sum_item_subtotal, FALSE);
    ?>
</td>
            <td class="last" style="text-align: right;"><?php 
    echo display_currency($item->sum_item_total, FALSE);
    ?>
</td>
        </tr>

    <?php 
}
?>

</table>
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:31,代码来源:sales_view.php

示例9: format_date

        ?>
</td>
				<td><?php 
        echo format_date($payment->payment_date);
        ?>
</td>
				<td><?php 
        echo $payment->invoice_number;
        ?>
</td>
				<td><?php 
        echo anchor('clients/form/client_id/' . $payment->client_id, $payment->client_name);
        ?>
</td>
				<td class="col_amount"><?php 
        echo display_currency($payment->payment_amount);
        ?>
</td>
				<td class="last">
					<a href="<?php 
        echo site_url('payments/form/invoice_id/' . $payment->invoice_id . '/payment_id/' . $payment->payment_id);
        ?>
" title="<?php 
        echo $this->lang->line('edit');
        ?>
">
						<?php 
        echo icon('edit');
        ?>
					</a>
					<a href="javascript:void(0)" class="output_link_receipt" id="<?php 
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:31,代码来源:table.php

示例10: format_date

    ?>
</td>
                    <td><?php 
    echo $this->mdl_expenses->get_provider_name($expen->expense_provider_id);
    ?>
</td>
					<td><?php 
    echo $expen->expense_category_name;
    ?>
</td>
                    <td><?php 
    echo format_date($expen->expense_invoice_overdue_date);
    ?>
</td>
                    <td><span style="white-space: nowrap;"><?php 
    echo display_currency($expen->mcb_expense_amount);
    ?>
</span></td>
                
                    <td><font size="-3"><?php 
    echo $expen->mcb_expense_note;
    ?>
</font></td>
                    <td>
						<?php 
    if ($expen->expense_payed) {
        echo "S";
    } else {
        echo "N";
    }
    ?>
开发者ID:Meritxell01,项目名称:prova,代码行数:31,代码来源:index.php

示例11: invoice_itemtax

function invoice_itemtax($invoice)
{
    return display_currency($invoice->invoice_item_tax);
}
开发者ID:rifaiaja,项目名称:orpsystem,代码行数:4,代码来源:mcb_invoice_amount_helper.php

示例12: character_limiter

        echo character_limiter($invoice->client_name, 20);
        ?>
)
						</option>
						<?php 
    }
    ?>
					</select>
					<?php 
} else {
    ?>
						#<?php 
    echo invoice_id($invoice);
    ?>
 <?php 
    echo display_currency($invoice->invoice_balance, FALSE);
    ?>
 (<?php 
    echo $invoice->client_name;
    ?>
)
					<?php 
}
?>
				</dd>
			</dl>

			<dl>
				<dt><label>* <?php 
echo $this->lang->line('amount');
?>
开发者ID:roxio,项目名称:MyClientBase-SB,代码行数:31,代码来源:form.php

示例13: invoice_item_name

    echo invoice_item_name($item);
    ?>
				</td>
				<td>
					<?php 
    echo invoice_item_description($item);
    ?>
				</td>
				<td align="right">
					<?php 
    echo invoice_item_unit_price($item);
    ?>
				</td>
				<td align="right">
					<?php 
    echo display_currency($item->item_subtotal);
    ?>
				</td>
			</tr>
			<?php 
}
?>
			<tr>
				<td colspan="3"></td>
				<td colspan="2">
					<hr />
				</td>
			</tr>

			<tr>
				<td colspan="4" align="right">
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:31,代码来源:default.php

示例14: invoice_itemlevel_subtotal

function invoice_itemlevel_subtotal($item)
{
    /* Amount of item formatted as currency */
    return display_currency($item->item_subtotal);
}
开发者ID:rifaiaja,项目名称:orpsystem,代码行数:5,代码来源:mcb_invoice_item_helper.php

示例15: display_currency

    ?>
</td>
        </tr>

    <?php 
}
?>

    <tr style="font-weight: bold;">
        <td class="first"><?php 
echo $this->lang->line('total');
?>
</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td style="text-align: right;"><?php 
echo display_currency($totals['total_invoice']);
?>
</td>
        <td style="text-align: right;"><?php 
echo display_currency($totals['total_paid']);
?>
</td>
        <td class="last" style="text-align: right;"><?php 
echo display_currency($totals['total_balance']);
?>
</td>
    </tr>

</table>
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:31,代码来源:client_statement_view.php


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