PDF rausgenommen
This commit is contained in:
31
msd2/myoos/includes/lib/smarty-plugins/modifier.quantity.php
Normal file
31
msd2/myoos/includes/lib/smarty-plugins/modifier.quantity.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/**
|
||||
* Smarty plugin
|
||||
* @package Smarty
|
||||
* @subpackage plugins
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Smarty plugin
|
||||
*
|
||||
* Type: modifier
|
||||
* Name: quantity<br />
|
||||
* Version: 0.1
|
||||
* Date: August 01, 2006
|
||||
* Install: Drop into the plugin directory
|
||||
*
|
||||
* Examples: {$discount|quantity:2}
|
||||
* Author: r23 <info at r23 dot de>
|
||||
*
|
||||
* @param string
|
||||
* @param string
|
||||
* @return string
|
||||
*/
|
||||
function smarty_modifier_quantity($number, $decimal_places = 2)
|
||||
{
|
||||
|
||||
$number = number_format($number);
|
||||
|
||||
return $number;
|
||||
}
|
Reference in New Issue
Block a user