100+ results for 'php number_format'

Not the results you expected?

format.rb (https://github.com/jcn/awesomefoundation.git) Ruby · 253 lines

50 end

51 def num_format

52 @writer.number_format_index @workbook, @format.number_format

53 end

54 def text_direction

imprimir_nota_credito.php (https://github.com/cabenitez/factuweb.git) PHP · 131 lines

53 foreach ($iva_importe_imprimir as $tasa_iva => $neto_gravado) {

54

55 $neto_gravado = number_format($neto_gravado,2,'.','');

56

57 if($codigo_tal == "A"){

58 $importe_iva = ($neto_gravado * $tasa_iva)/100;

59 $total_factura = $neto_gravado + ($neto_gravado * $tasa_iva/100);

60 $importe_iva = number_format($importe_iva,2,'.','');

61 }else{

62 $importe_iva = "";

64 }

65

66 $total_factura = number_format($total_factura,2,'.','');

67 $suma_total_factura = $suma_total_factura + $total_factura;

68 /*

comments.php (https://bitbucket.org/jasonbahl/mhwp.git) PHP · 206 lines

7 if (have_comments()) : ?>

8 <section id="comments">

9 <h3><?php printf(_n('One Response to &ldquo;%2$s&rdquo;', '%1$s Responses to &ldquo;%2$s&rdquo;', get_comments_number(), 'mhwp'), number_format_i18n(get_comments_number()), get_the_title()); ?></h3>

10

11 <ol class="media-list">

54 <?php printf(__('Logged in as <a href="%s/wp-admin/profile.php">%s</a>.', 'mhwp'), get_option('siteurl'), $user_identity); ?>

55 <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php __('Log out of this account', 'mhwp'); ?>"><?php _e('Log out &raquo;', 'mhwp'); ?></a>

56 </p>

57 <?php else : ?>

63 <label for="email"><?php _e('Email (will not be published)', 'mhwp'); if ($req) _e(' (required)', 'mhwp'); ?></label>

64 <input type="email" class="form-control" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" <?php if ($req) echo 'aria-required="true"'; ?>>

65 </div>

66 <div class="form-group">

156 <?php printf(__('Logged in as <a href="%s/wp-admin/profile.php">%s</a>.', 'roots'), get_option('siteurl'), $user_identity); ?>

157

158 <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="<?php __('Log out of this account', 'roots'); ?>"><?php _e('Log out &raquo;', 'roots'); ?></a>

159

160 </p>

content.php (https://github.com/jasonweng/forkcms.git) PHP · 202 lines

1 <?php

2

3 /*

177 {

178 // new visitors

179 $newVisits = ($results['entrances'] == 0) ? 0 : number_format(($results['newVisits'] / $results['entrances']) * 100, 0);

180 $newVisitsTotal = ($resultsTotal['entrances'] == 0) ? 0 : number_format(($resultsTotal['newVisits'] / $resultsTotal['entrances']) * 100, 0);

181 $newVisitsDifference = ($newVisitsTotal == 0) ? 0 : number_format((($newVisits - $newVisitsTotal) / $newVisitsTotal) * 100, 0);

182 if($newVisitsDifference > 0) $newVisitsDifference = '+' . $newVisitsDifference;

183

184 // bounces

185 $bounces = ($results['entrances'] == 0) ? 0 : number_format(($results['bounces'] / $results['entrances']) * 100, 0);

186 $bouncesTotal = ($resultsTotal['entrances'] == 0) ? 0 : number_format(($resultsTotal['bounces'] / $resultsTotal['entrances']) * 100, 0);

html.inc.php (https://github.com/BenBE/ispCP.git) PHP · 201 lines

1 <?php

2

3 // -------------------------------------------------------------------------------

34 $endtime = ((float)$end_usec + (float)$end_sec);

35 $time_taken = ($endtime - $starttime); // to convert from microsec to sec

36 $time_taken = number_format($time_taken, 2); // optional

37

38 return $time_taken;

100 // --------------

101

102 // Original code comes from http://www.phpbuilder.com/columns/tim20000821.php3?print_mode=1

103 // Written by Tim Perdue, and released under the GPL license

104 //

107 // http://sourceforge.net

108 //

109 // $Id: tim20000821.php3,v 1.2 2001/05/22 19:22:47 tim Exp $

110

111

NumericField.php (https://gitlab.com/reasonat/test8) PHP · 181 lines

1 <?php

2

3 namespace Drupal\views\Plugin\views\field;

151 $value = $this->getValue($values);

152 if (!empty($this->options['set_precision'])) {

153 $value = number_format($value, $this->options['precision'], $this->options['decimal'], $this->options['separator']);

154 }

155 else {

156 $remainder = abs($value) - intval(abs($value));

157 $value = $value > 0 ? floor($value) : ceil($value);

158 $value = number_format($value, 0, '', $this->options['separator']);

159 if ($remainder) {

160 // The substr may not be locale safe.

all_pages.php (https://github.com/foonnnnn/forkcms.git) PHP · 213 lines

1 <?php

2

3 /**

139 {

140 // pageviews percentage of total

141 $pageviewsPercentageOfTotal = ($results['pageviews'] == 0) ? 0 : number_format(($results['allPagesPageviews'] / $results['pageviews']) * 100, 0);

142

143 // unique pageviews percentage of total

144 $uniquePageviewsPercentageOfTotal = ($results['uniquePageviews'] == 0) ? 0 : number_format(($results['allPagesUniquePageviews'] / $results['uniquePageviews']) * 100, 0);

145

146 // time on site values

147 $timeOnSite = ($results['entrances'] == 0) ? 0 : ($results['timeOnSite'] / $results['entrances']);

148 $timeOnSiteTotal = ($resultsTotal['entrances'] == 0) ? 0 : ($resultsTotal['timeOnSite'] / $resultsTotal['entrances']);

149 $timeOnSiteDifference = ($timeOnSiteTotal == 0) ? 0 : number_format((($timeOnSite - $timeOnSiteTotal) / $timeOnSiteTotal) * 100, 0);

150 if($timeOnSiteDifference > 0) $timeOnSiteDifference = '+' . $timeOnSiteDifference;

151

class-wpseo-option-xml.php (https://gitlab.com/iamgraeme/royalmile) PHP · 259 lines

1 <?php

2 /**

3 * @package WPSEO\Internals\Options

155 $error_message = sprintf(

156 __( '"Max entries per sitemap page" should be below %s to meet Google\'s requirements, which %s is not.', 'wordpress-seo' ),

157 number_format_i18n( 50000 ), '<strong>' . esc_html( sanitize_text_field( $dirty[ $key ] ) ) . '</strong>'

158 );

159 add_settings_error( $this->group_name, '_' . $key, $error_message, 'error' );

keywordRank.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 161 lines

1 <?php

2

3 /**

60 if ( ! class_exists( 'keywordRank' ) )

61 {

62 include ( NV_ROOTDIR . "/includes/class/keywordRank.class.php" );

63 }

64

92 {

93 $mainResult = array();

94 if ( isset( $info['detail']['myPages'] ) ) $mainResult[] = array( 'key' => $lang_module['allPages'], 'value' => number_format( $info['detail']['allPages'] ) );

95 if ( isset( $info['detail']['myPages'] ) ) $mainResult[] = array( 'key' => $lang_module['myPages'], 'value' => number_format( $info['detail']['myPages'] ) );

155 $contents = $xtpl->text( 'main' );

156

157 include ( NV_ROOTDIR . "/includes/header.php" );

158 echo nv_admin_theme( $contents );

159 include ( NV_ROOTDIR . "/includes/footer.php" );

method.nav_blocks_player.php (https://github.com/txdv/psychostats4.git) PHP · 282 lines

1 <?php

2 /**

3 * PsychoStats method Nav_Blocks_Player()

39 'pct1' => $stats['blue_wins'] / $stats['wins'] * 100,

40 'pct2' => $stats['red_wins'] / $stats['wins'] * 100,

41 'title1'=> trans('%s Blu wins', number_format($stats['blue_wins'])),

42 'title2'=> trans('%s Red wins', number_format($stats['red_wins'])),

43 )) : '',

44 number_format($stats['wins'])),

45 ),

46 'team_losses' => array(

51 'pct1' => $stats['blue_losses'] / $stats['losses'] * 100,

52 'pct2' => $stats['red_losses'] / $stats['losses'] * 100,

53 'title1'=> trans('%s Blu losses', number_format($stats['blue_losses'])),

54 'title2'=> trans('%s Red losses', number_format($stats['red_losses'])),

quickstats.php (https://gitlab.com/kath.de/cibedo_cibedo.de) PHP · 142 lines

12 <th><?php _e('User(s) Online', 'wp_statistics'); ?>:</th>

13 <th colspan="2" id="th-colspan">

14 <span><a href="admin.php?page=<?php echo WP_STATISTICS_ONLINE_PAGE; ?>"><?php echo wp_statistics_useronline(); ?></a></span>

15 </th>

16 </tr>

52 <th><?php _e('Last 365 Days (Year)', 'wp_statistics'); ?>:</th>

53 <th class="th-center"><?php if( $WP_Statistics->get_option('visitors') ) { echo '<a href="admin.php?page=wps_visitors_menu&hitdays=365"><span>' . number_format_i18n(wp_statistics_visitor('year',null,true)) . '</span></a>'; } else { echo ''; }?></th>

54 <th class="th-center"><?php if( $WP_Statistics->get_option('visits') ) { echo '<a href="admin.php?page=' . WP_STATISTICS_HITS_PAGE . '&hitdays=365"><span>' . number_format_i18n(wp_statistics_visit('year')) . '</span></a>'; } else { echo ''; }?></th>

59 <th class="th-center"><?php if( $WP_Statistics->get_option('visitors') ) { echo '<a href="admin.php?page=wps_visitors_menu&hitdays=365"><span>' . number_format_i18n(wp_statistics_visitor('total',null,true)) . '</span></a>'; } else { echo ''; }?></th>

60 <th class="th-center"><?php if( $WP_Statistics->get_option('visits') ) { echo '<a href="admin.php?page=' . WP_STATISTICS_HITS_PAGE . '&hitdays=365"><span>' . number_format_i18n(wp_statistics_visit('total')) . '</span></a>'; } else { echo ''; }?></th>

61 </tr>

62

116

117 <tr>

118 <th colspan="3" style="text-align: center;"><?php _e('Current Time and Date', 'wp_statistics'); ?> <span id="time_zone"><a href="<?php echo admin_url('options-general.php'); ?>"><?php _e('(Adjustment)', 'wp_statistics'); ?></a></span></th>

119 </tr>

120

export_cowInfo.blade.php (https://gitlab.com/kimting254/wbms) PHP · 269 lines

54 <th>Cut Types</th>

55 <th>Article <br>Name</th>

56 <th>Unit Price<br> (Php)</th>

57 <th>Total <br>Qty</th>

58 <th>Sales <br>Qty</th>

59 <th>Remain <br>Qty</th>

60 <th>Pack<br>()</th>

61 <th>Sales <br>(Php)</th>

62 <th>TOTAL <br>(Php)</th>

74 <td></td>

75 </tr>

76 <?php $total1 = 0; ?>

77 @foreach($cow['article_resources'] as $list)

78 @if($list['type']=='Choice Cuts')

83

84 <td> @foreach($list['orderlist'] as $order)

85 {{number_format($order['unit_price'],2)}}

86 <br>

87 @endforeach

micro_bench.php (https://gitlab.com/envieidoc/tomato) PHP · 358 lines

1 <?php

2

3 function hallo() {

259 $last_time = $end-$start;

260 $total += $last_time;

261 $num = number_format($last_time,3);

262 $pad = str_repeat(" ", 24-strlen($name)-strlen($num));

263 if (is_null($overhead)) {

264 echo $name.$pad.$num."\n";

265 } else {

266 $num2 = number_format($last_time - $overhead,3);

267 echo $name.$pad.$num." ".$num2."\n";

268 }

276 $pad = str_repeat("-", 24);

277 echo $pad."\n";

278 $num = number_format($total,3);

279 $pad = str_repeat(" ", 24-strlen("Total")-strlen($num));

280 echo "Total".$pad.$num."\n";

course_stats.tmpl.php (https://github.com/cindyli/ATutor.git) PHP · 167 lines

34 <td class="row1" valign="top" align="right"><strong><?php echo _AT('average'); ?>:</strong></td>

35 <td class="row1"><?php echo number_format($this->avg_total_logins, 1); ?> <?php echo _AT('per_day'); ?></td>

36 </tr>

37 <tr><td height="1" class="row2" colspan="2"></td></tr>

59 </table>

60

61 <small><?php echo _AT('legend'); ?>: <img src="images/red.gif" height="10" width="10" alt="<?php echo _AT('red_members'); ?>" /> <?php echo _AT('members'); ?>,

62 <img src="images/blue.gif" height="10" width="10" alt="<?php echo _AT('blue_guests'); ?>" /> <?php echo _AT('guests'); ?>.</small>

101 echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.($this->last_month).SEP.'year='.$this->last_year.'">';

102 echo ' '.AT_date('%F', $this->last_month, AT_DATE_INDEX_VALUE ); ?></a> |</small>

103 <?php echo AT_date('%F', $this->month, AT_DATE_INDEX_VALUE ); ?> <small class="bigspacer">| <?php

104 echo '<a href="'.$_SERVER['PHP_SELF'].'?month='.$this->next_month.SEP.'year='.$this->next_year.'">';

130 <td class="row1" valign="top" align="right"><strong><?php echo _AT('average'); ?>:</strong></td>

131 <td class="row1"><?php echo number_format($this->avg_total_logins, 1); ?> <?php echo _AT('per_day'); ?></td>

132 </tr>

133 <tr><td height="1" class="row2" colspan="2"></td></tr>

jual_print_detail_view.php (https://github.com/achri/imp.git) PHP · 190 lines

99 <td align="center" nowrap><?php echo $rowb_det->reqsat?></td>

100 <td align="right" nowrap="nowrap"><?php echo number_format($rowb_det->jumlah,2)?></td>

101 <td align="right" nowrap="nowrap"><?php echo number_format($rowb_det->harga,2)?></td>

102 <td align="right" nowrap="nowrap"><?php echo number_format($rowb_det->diskon,2)?></td>

103 <td align="right" nowrap="nowrap"><?php echo number_format($rowb_det->tot_diskon,2)?></td>

104 <td align="right" nowrap="nowrap"><?php echo number_format($rowb_det->tot_harga,2)?></td>

105 </tr>

106 <?php

138 </td>

139 <td align="right">

140 <strong>Rp. <?php echo number_format($data_jual_detail->row()->udata_tot_harga,2)?></strong>

141 </td>

142 <td width="20">

ActionScheduler_WPCLI_QueueRunner.php (https://gitlab.com/ebrjose/comcebu) PHP · 197 lines

1 <?php

2

3 use Action_Scheduler\WP_CLI\ProgressBar;

30 public function __construct( ActionScheduler_Store $store = null, ActionScheduler_FatalErrorMonitor $monitor = null, ActionScheduler_QueueCleaner $cleaner = null ) {

31 if ( ! ( defined( 'WP_CLI' ) && WP_CLI ) ) {

32 /* translators: %s php class name */

33 throw new Exception( sprintf( __( 'The %s class can only be run within WP CLI.', 'action-scheduler' ), __CLASS__ ) );

34 }

91 $this->progress_bar = new ProgressBar(

92 /* translators: %d: amount of actions */

93 sprintf( _n( 'Running %d action', 'Running %d actions', $count, 'action-scheduler' ), number_format_i18n( $count ) ),

94 $count

95 );

visualizationcalculation.php (https://github.com/purpool/purpool.git) PHP · 268 lines

1 <?php

2

3 ini_set('display_errors', 1);

4

5 #################################################################

6 # Name: dashobard.php #

7 # Author: John Kuiphoff #

8 # Description: Allows users to view all purpool related info #

10

11 // Include configuration file

12 include_once('config_path.php'); include_once($config_path.'config.php');

13

14 // Include common utility library

15 include_once($DIR['inc'] . 'Utils.class.php');

16

17 // Include database package

BaseFcesting.php (https://github.com/cidesa/roraima-comunal.git) PHP · 436 lines

1 <?php

2

3

59 {

60

61 if($val) return number_format($this->monto,2,',','.');

62 else return $this->monto;

63

278

279

280 public function getByName($name, $type = BasePeer::TYPE_PHPNAME)

281 {

282 $pos = FcestingPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);

309

310

311 public function toArray($keyType = BasePeer::TYPE_PHPNAME)

312 {

313 $keys = FcestingPeer::getFieldNames($keyType);

FilterTest.php (https://gitlab.com/pr0055/symfonypizza) PHP · 154 lines

1 <?php

2

3 /*

34 $expr = new Twig_Node_Expression_Constant('foo', 1);

35 $node = $this->createFilter($expr, 'upper');

36 $node = $this->createFilter($node, 'number_format', array(new Twig_Node_Expression_Constant(2, 1), new Twig_Node_Expression_Constant('.', 1), new Twig_Node_Expression_Constant(',', 1)));

37

38 if (function_exists('mb_get_info')) {

39 $tests[] = array($node, 'twig_number_format_filter($this->env, twig_upper_filter($this->env, "foo"), 2, ".", ",")');

40 } else {

41 $tests[] = array($node, 'twig_number_format_filter($this->env, strtoupper("foo"), 2, ".", ",")');

144 if (PHP_VERSION_ID >= 50300) {

145 return include 'PHP53/FilterInclude.php';

146 }

147

number.php (https://github.com/coderlabs/internal.git) PHP · 380 lines

1 <?php

2

3 /* SVN FILE: $Id$ */

13 *

14 8

15 * PHP versions 4 and 5

16 9

17 *

18 10

19 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)

20 11

21 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)

33 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)

34 18

35 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project

36 19

37 * @package cake

index.php (https://github.com/oozcitak/eve-corp-portal.git) PHP · 231 lines

1 <?php

2 require_once('../../core/core.class.php');

4

5 //Access control

6 if($core->CurrentUser()->AccessRight() < 2) $core->Goto('../../php/access.php');

7

8 $action = @$_GET["action"];

199 $opvalue += $allitems[$val[0]] * $val[1];

200 }

201 $opvalue = number_format($opvalue, 0);

202

203 // Display to the user

GeneralItemCollection.php (https://gitlab.com/laher01/factu40) PHP · 201 lines

1 <?php

2

3 namespace Modules\Report\Http\Resources;

41 'series' => $resource['series'],

42 'alone_number' => $resource['alone_number'],

43 'quantity' => number_format($row->quantity, 2),

44 'unit_value' => number_format($row->unit_value, 2),

45 'total' => number_format($row->total, 2),

46 'total_number' => $row->total,

47 'total_item_purchase' => number_format($total_item_purchase, 2),

48 'is_set' => (bool) $row->relation_item->is_set,

49 'utility_item' => number_format($utility_item, 2),

50 'factor' => $row->item->presentation ? number_format($row->item->presentation->quantity_unit, 2) : 0,

index.tpl (https://github.com/TheOnly92/Ikariem.git) Smarty Template · 180 lines

58 {if $seafaring.action === true}

59 <div class="researchButton">

60 <a class="button build" style="padding-left:3px;padding-right:3px;" href="/researchAdvisor/doResearch?type={php}echo Chamista_Model_Formula::tech_type(Chamista_Model_Formula::SEAFARING);{/php}">

61 <span class="textLabel">Research</span>

62 </a>

91 {if $economy.action === true}

92 <div class="researchButton">

93 <a class="button build" style="padding-left:3px;padding-right:3px;" href="/researchAdvisor/doResearch?type={php}echo Chamista_Model_Formula::tech_type(Chamista_Model_Formula::ECONOMY);{/php}">

94 <span class="textLabel">Research</span>

95 </a>

124 {if $science.action === true}

125 <div class="researchButton">

126 <a class="button build" style="padding-left:3px;padding-right:3px;" href="/researchAdvisor/doResearch?type={php}echo Chamista_Model_Formula::tech_type(Chamista_Model_Formula::SCIENCE);{/php}">

127 <span class="textLabel">Research</span>

128 </a>

currency.php (https://bitbucket.org/adatux_/uakami.git) PHP · 119 lines

1 <?php

2 if(!class_exists("RGCurrency")){

3

68 }

69

70 $money = number_format($number, $this->currency["decimals"], $this->currency["decimal_separator"], $this->currency["thousand_separator"]);

71 $symbol_left = !empty($this->currency["symbol_left"]) ? $this->currency["symbol_left"] . $this->currency["symbol_padding"] : "";

72 $symbol_right = !empty($this->currency["symbol_right"]) ? $this->currency["symbol_padding"] . $this->currency["symbol_right"] : "";

101 "NOK" => array("name" => __("Norwegian Krone", "gravityforms"), "symbol_left" => 'Kr', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => '.', "decimal_separator" => ',', "decimals" => 2),

102 "NZD" => array("name" => __("New Zealand Dollar", "gravityforms"), "symbol_left" => '$', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),

103 "PHP" => array("name" => __("Philippine Peso", "gravityforms"), "symbol_left" => 'Php', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),

104 "PLN" => array("name" => __("Polish Zloty", "gravityforms"), "symbol_left" => '&#122;&#322;', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => '.', "decimal_separator" => ',', "decimals" => 2),

105 "GBP" => array("name" => __("Pound Sterling", "gravityforms"), "symbol_left" => '&#163;', "symbol_right" => "", "symbol_padding" => " ", "thousand_separator" => ',', "decimal_separator" => '.', "decimals" => 2),

results_1_hpts_BAK_2008-01-23.php (https://github.com/sonnaxindustries/sonnax_php.git) PHP · 133 lines

1 <div id='scroll'><!--pl #1: hpt(s)-->

2 <form method=get action="add_to_order.php">

3 <input type="hidden" name="component" value="0">

4 <input type="hidden" name="tc" value="0">

26 <div class='med_short'><?=$product_line->name?></div>

27 <?if ($part_finder_admin == true) {//this may be a relic?>

28 <div class='med_short'><a href='table_edit.php?t=parts&if=id&strLookupField_Names=product_line&strLookupField_Fields=id,name&strLookupField_OrderBys=name&strLookupField_Tables=product_lines&id=<?=$part->id?>&pl=<?=$part_finder->product_line?>'><?=$part->part_number?></a></div>

29 <?} else {

30 if ($part->new_item == 1) {

35 $str_highlighted_link = "";

36 }?>

37 <div class='med_short<?=$str_highlighted?>'><a <?=$str_highlighted_link?>href='part_summary.php?id=<?=$part->id?>&pl=<?=$part_finder->product_line?>'><?=$part->part_number?></a></div>

38 <?}?>

39 <div class='long1'><?=cp1252_to_utf8($part->description)?></div>

48 $brief_unit = new UnitBrief($units[$y]);

49 if ($y < $unitsUpperBound) {

50 $unitList .= "<a href='part_finder.php?unit=$brief_unit->id&make=$make->id&pl=$part_finder->product_line'>$brief_unit->name</a>, ";

51 } else {

52 $unitList .= "<a href='part_finder.php?unit=$brief_unit->id&make=$make->id&pl=$part_finder->product_line'>$brief_unit->name</a>";

exportar_informe_caja_rentabilidad.php (https://github.com/cabenitez/factuweb.git) PHP · 212 lines

15

16 //---------------------- INCLUYE CONEXION A BD -----------------------------------------------//

17 include("conexion.php");

18

19 //---------------------- INCLUYE CONFIGURACION DE PDF --------------------------------------//

20 include("conf_listados.php");

21

22 //----------------------------------- PDF --------------------------------------------------------------------------------------------//

55 $fecha_caja = "$fecha_caja_dia/$fecha_caja_mes/$fecha_caja_dia";

56

57 $importe = number_format($registro[1],2,'.','');

58

59 $pdf->Cell(1,3,'CAJA INICIAL ('.$fecha_caja.')' ,0,0);

currency.php (https://github.com/livinglab/openlab.git) PHP · 383 lines

1 <?php

2

3 if ( ! class_exists( 'GFForms' ) ) {

86 }

87

88 $money = number_format( $number, $this->currency['decimals'], $this->currency['decimal_separator'], $this->currency['thousand_separator'] );

89

90 if ( $money == '0.00' ) {

284 'code' => 'NZD',

285 ),

286 'PHP' => array(

287 'name' => esc_html__( 'Philippine Peso', 'gravityforms' ),

288 'symbol_left' => 'Php',

292 'decimal_separator' => '.',

293 'decimals' => 2,

294 'code' => 'PHP', // bun not intended.

295 ),

296 'PLN' => array(

AssertProductPage.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 204 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

58

59 $errors = $this->verify();

60 \PHPUnit_Framework_Assert::assertEmpty(

61 $errors,

62 "\nFound the following errors:\n" . implode(" \n", $errors)

113 $priceBlock = $this->productView->getPriceBlock();

114 $formPrice = $priceBlock->isOldPriceVisible() ? $priceBlock->getOldPrice() : $priceBlock->getPrice();

115 $fixturePrice = number_format($this->product->getPrice(), 2, '.', '');

116

117 if ($fixturePrice != $formPrice) {

133 }

134 $fixtureProductSpecialPrice = $this->product->getSpecialPrice();

135 $fixtureProductSpecialPrice = number_format($fixtureProductSpecialPrice, 2);

136 $formProductSpecialPrice = $this->productView->getPriceBlock()->getSpecialPrice();

137 if ($fixtureProductSpecialPrice == $formProductSpecialPrice) {

cake_text_reporter.php (https://github.com/ggunlugu/ornekler.git) PHP · 198 lines

1 <?php

2 /**

3 * CakeTextReporter contains reporting features used for plain text based output

5 * PHP versions 4 and 5

6 *

7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>

8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)

9 *

12 *

13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)

14 * @link http://cakephp.org CakePHP(tm) Project

15 * @package cake

16 * @subpackage cake.tests.libs.reporter

17 * @since CakePHP(tm) v 1.3

18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License

cake_text_reporter.php (https://github.com/jeevangnanam/Hotel-Management-System.git) PHP · 198 lines

1 <?php

2 /**

3 * CakeTextReporter contains reporting features used for plain text based output

5 * PHP versions 4 and 5

6 *

7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>

8 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)

9 *

12 *

13 * @copyright Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)

14 * @link http://cakephp.org CakePHP(tm) Project

15 * @package cake

16 * @subpackage cake.tests.libs.reporter

17 * @since CakePHP(tm) v 1.3

18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License

BaseCiniveles.php (https://github.com/cidesa/siga-universitario.git) PHP · 505 lines

1 <?php

2

3

53 {

54

55 if($val) return number_format($this->consec,2,',','.');

56 else return $this->consec;

57

75 {

76

77 if($val) return number_format($this->lonniv,2,',','.');

78 else return $this->lonniv;

79

325

326

327 public function getByName($name, $type = BasePeer::TYPE_PHPNAME)

328 {

329 $pos = CinivelesPeer::translateFieldName($name, $type, BasePeer::TYPE_NUM);

cake_text_reporter.php (https://github.com/Henmania/cakephp.git) PHP · 198 lines

1 <?php

2 /**

3 * CakeTextReporter contains reporting features used for plain text based output

5 * PHP versions 4 and 5

6 *

7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>

8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)

9 *

12 *

13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)

14 * @link http://cakephp.org CakePHP(tm) Project

15 * @package cake

16 * @subpackage cake.tests.libs.reporter

17 * @since CakePHP(tm) v 1.3

18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License

PurchaseItem.php (https://gitlab.com/laher01/factu40) PHP · 269 lines

1 <?php

2

3 namespace App\Models\Tenant;

211 // 'item' => $this->item,

212 'item' => $item,

213 'quantity' => number_format($this->quantity,2,'.',''),

214 'unit_value' => $this->unit_value,

215 'affectation_igv_type_id' => $this->affectation_igv_type_id,

teilgewaesserbenutzungen.php (https://github.com/srahn/kvwmap.git) PHP · 352 lines

1 <?php

2 class Teilgewaesserbenutzungen extends WrPgObject {

3

158 if(!empty($this->getUmfang()))

159 {

160 return number_format($this->getUmfang(), 0, '', ' ') . " m³/a";

161 }

162

tabel_laporan_rp_apbd_isi.php (https://github.com/OpenSID/OpenSID.git) PHP · 254 lines

53 </thead>

54

55 <?php foreach ($pendapatan as $l): ?>

56 <tr class='bold'>

57 <td colspan='4'><?= $l['Akun'] ." ". $l['Nama_Akun']?></td>

61 <td align='right'></td>

62 </tr>

63 <?php foreach ($l['sub_pendapatan'] as $s): ?>

64 <tr class='bold'>

65 <td><?= $s['Kelompok']?></td>

66 <td colspan='3'><?= $s['Nama_Kelompok'] ?></td>

67 <td align='right'><?= number_format($s['anggaran'][0]['pagu'])?></td>

68 <td align='right'><?= number_format($s['realisasi'][0]['realisasi']+$s['realisasi_bunga'][0]['realisasi'])?></td>

69 <td align='right'><?= number_format($s['anggaran'][0]['pagu']-($s['realisasi'][0]['realisasi']+$s['realisasi_bunga'][0]['realisasi'])) ?></td>

70 <td align='right'><?= $s['anggaran'][0]['pagu'] != 0 ? number_format(($s['realisasi'][0]['realisasi']+$s['realisasi_bunga'][0]['realisasi'])/$s['anggaran'][0]['pagu']*100, 2) : 0 ?></td>

default_details.php (https://gitlab.com/julienv/joomleague) PHP · 169 lines

11 <tr>

12 <td colspan="3" >

13 <span class="label"><?php echo JText::_( 'COM_JOOMLEAGUE_MATCHREPORT_OLD_MATCH' ); ?></span>

14 <span><?php echo JHtml :: link(JoomleagueHelperRoute::getMatchReportRoute( $this->project->id,

63 <tr>

64 <td colspan="3" >

65 <span class="label"><?php echo JText::_( 'COM_JOOMLEAGUE_MATCHREPORT_TIME' ); ?></span>

66 <span><?php echo JoomleagueHelperHtml::showMatchTime($this->match, $this->config, $this->overallconfig, $this->project); ?></span>

77 <span class="label"><?php echo JText::_( 'COM_JOOMLEAGUE_MATCHREPORT_PRESENT' ); ?></span>

78 <span><?php echo $this->match->time_present; ?></span>

79 </td>

80 </tr>

161 <span class="label"><?php echo JText::_( 'COM_JOOMLEAGUE_MATCHREPORT_ATTENDANCES' ); ?></span>

162 <span><?php echo ': ' . number_format( $this->match->crowd, 0, ',' , '.' ); ?></span>

163 </td>

164 </tr>

FilterTest.php (https://gitlab.com/arthur_quiroga/dystawork) PHP · 151 lines

1 <?php

2

3 /*

34 $expr = new Twig_Node_Expression_Constant('foo', 1);

35 $node = $this->createFilter($expr, 'upper');

36 $node = $this->createFilter($node, 'number_format', array(new Twig_Node_Expression_Constant(2, 1), new Twig_Node_Expression_Constant('.', 1), new Twig_Node_Expression_Constant(',', 1)));

37

38 $tests[] = array($node, 'twig_number_format_filter($this->env, twig_upper_filter($this->env, "foo"), 2, ".", ",")');

currency.php (https://bitbucket.org/mjalajel/opencart.git) PHP · 175 lines

1 <?php

2 class Currency {

3 private $code;

90 }

91

92 $string .= number_format(round($value, (int)$decimal_place), (int)$decimal_place, $decimal_point, $thousand_point);

93

94 if (($symbol_right) && ($format)) {

cake_text_reporter.php (https://github.com/andrerezende/SIE-2.0.git) PHP · 198 lines

1 <?php

2 /**

3 * CakeTextReporter contains reporting features used for plain text based output

5 * PHP versions 4 and 5

6 *

7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>

8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)

9 *

12 *

13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)

14 * @link http://cakephp.org CakePHP(tm) Project

15 * @package cake

16 * @subpackage cake.tests.libs.reporter

17 * @since CakePHP(tm) v 1.3

18 * @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License

2012-11-05.log.php (https://gitlab.com/vince.omega/mcb-nov-build) PHP · 68 lines

1 <?php defined('SYSPATH') or die('No direct script access.'); ?>

2

3 2012-11-05 13:25:42 -05:00 --- error: Uncaught PHP Error: number_format() expects parameter 1 to be double, string given in file application/controllers/base.php on line 103

4 2012-11-05 13:32:27 -05:00 --- error: Uncaught PHP Error: number_format() expects parameter 1 to be double, string given in file application/controllers/base.php on line 103

5 2012-11-05 13:32:30 -05:00 --- error: Uncaught Kohana_404_Exception: The page you requested, media/js/grid.locale.js, could not be found. in file /var/www/mch/kohana_core/system/core/Kohana.php on line 841

6 2012-11-05 13:32:30 -05:00 --- error: Uncaught PHP Error: number_format() expects parameter 1 to be double, string given in file application/controllers/base.php on line 103

7 2012-11-05 13:32:52 -05:00 --- error: Uncaught Kohana_404_Exception: The page you requested, media/js/grid.locale.js, could not be found. in file /var/www/mch/kohana_core/system/core/Kohana.php on line 841

8 2012-11-05 13:32:58 -05:00 --- error: Uncaught PHP Error: number_format() expects parameter 1 to be double, string given in file application/controllers/base.php on line 103

9 2012-11-05 13:33:03 -05:00 --- error: Uncaught Kohana_404_Exception: The page you requested, media/js/grid.locale.js, could not be found. in file /var/www/mch/kohana_core/system/core/Kohana.php on line 841

10 2012-11-05 13:33:07 -05:00 --- error: Uncaught Kohana_404_Exception: The page you requested, media/js/grid.locale.js, could not be found. in file /var/www/mch/kohana_core/system/core/Kohana.php on line 841

11 2012-11-05 13:33:12 -05:00 --- error: Uncaught PHP Error: number_format() expects parameter 1 to be double, string given in file application/controllers/base.php on line 103

12 2012-11-05 13:36:53 -05:00 --- error: Uncaught Kohana_404_Exception: The page you requested, media/js/grid.locale.js, could not be found. in file /var/www/mch/kohana_core/system/core/Kohana.php on line 841

16 2012-11-05 13:40:01 -05:00 --- error: Uncaught Kohana_404_Exception: The page you requested, media/js/grid.locale.js, could not be found. in file /var/www/mch/kohana_core/system/core/Kohana.php on line 841

17 2012-11-05 13:46:54 -05:00 --- error: Uncaught PHP Error: number_format() expects parameter 1 to be double, string given in file application/views/product_content.php on line 125

18 2012-11-05 13:47:37 -05:00 --- error: Uncaught Kohana_404_Exception: The page you requested, media/js/grid.locale.js, could not be found. in file /var/www/mch/kohana_core/system/core/Kohana.php on line 841

User.entity.class.php (https://github.com/vitsv/Reformuj.git) PHP · 252 lines

1 <?php

2 class ModuleUser_EntityUser extends Entity {

3

15 }

16 public function getSkill() {

17 return number_format(round($this->_aData['user_skill'],2), 2, '.', '');

18 }

19 public function getDateRegister() {

30 }

31 public function getRating() {

32 return number_format(round($this->_aData['user_rating'],2), 2, '.', '');

33 }

34 public function getCountVote() {

jigoshop_tax.class.php (https://github.com/steveclarkcouk/jigoshop.git) PHP · 265 lines

1 <?php

2 /**

3 * Tax Class

244

245 // use 4 decimal precision to avoid rounding errors:

246 return number_format($tax_amount, 4, '.', '');

247 }

248

exportar_informe_lista_precios.php (https://github.com/cabenitez/factuweb.git) PHP · 116 lines

1 <?php

2 //USAR EN LISTADO DE ARTICULOS

3

6

7 //---------------------- INCLUYE CONFIGURACION DE PDF --------------------------------------//

8 include("conf_listados.php");

9

10 //---------------------- creo los titulos de las columnas-----------------------------------//

29

30 //---------------------- INCLUYE CONEXION A BD -----------------------------------------------//

31 include("conexion.php");

32

33 $consulta = ereg_replace("@@","'",$consulta);

61

62 $precio_categoria_mas_iva = $precio_categoria+($precio_categoria * $tasa_iva_p /100);

63 $precio_categoria_mas_iva= number_format($precio_categoria_mas_iva,2,'.','');

64

65 $pdf->Cell(1,3 ,$cod_grupo.$cod_marca.$cod_variedad.$codigo,0,0);

exportar_informe_compras_del_dia_detalle.php (https://github.com/cabenitez/factuweb.git) PHP · 123 lines

9

10 //---------------------- INCLUYE CONFIGURACION DE PDF --------------------------------------//

11 include("conf_listados.php");

12

13 if($fecha_buscar){

14 //---------------------- INCLUYE CONEXION A BD -----------------------------------------------//

15 include("conexion.php");

16

17 // Obtiene el detalle de todos los comprobantes Factura Vta Cliente

103 $pdf->Cell(0,3,'TOTALES',0,0);

104 $pdf->SetX(-60);

105 $pdf->Cell(1,3,number_format($total_carga_sin_imp,2,'.',''),0,0,'R');

106 $pdf->SetX(-38);

107 $pdf->Cell(1,3,number_format($total_carga_iva,2,'.',''),0,0,'R');

widget.php (https://gitlab.com/hop23typhu/faci-vinhomes) PHP · 333 lines

1 <?php

2 function wp_statistics_widget() {

3 register_widget( 'WPStatistics_Widget' );

37 echo "<li>";

38 echo __('User Online', 'wp_statistics'). ": ";

39 echo number_format_i18n(wp_statistics_useronline());

40 echo "</li>";

41 }

44 echo "<li>";

45 echo __('Today Visit', 'wp_statistics'). ": ";

46 echo number_format_i18n(wp_statistics_visit('today'));

47 echo "</li>";

48 }

51 echo "<li>";

52 echo __('Today Visitor', 'wp_statistics'). ": ";

53 echo number_format_i18n(wp_statistics_visitor('today', null, true));

54 echo "</li>";

55 }

class-walker-category.php (https://gitlab.com/morganestes/wordpress-develop) PHP · 237 lines

1 <?php

2 /**

3 * Taxonomy API: Walker_Category class

97 */

98 public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {

99 /** This filter is documented in wp-includes/category-template.php */

100 $cat_name = apply_filters(

101 'list_cats',

157

158 if ( ! empty( $args['show_count'] ) ) {

159 $link .= ' (' . number_format_i18n( $category->count ) . ')';

160 }

161 if ( 'list' == $args['style'] ) {

conversor.php (https://gitlab.com/gustCL/syscar) PHP · 547 lines

1 <?php

2 /*function unidad($numuero){

3 switch ($numuero)

169 }

170 function decena($numdero){

171 $numdero=number_format($numdero,2);

172 if ($numdero >= 90 && $numdero <= 99.99)

173 {

aggregation.php (https://gitlab.com/Blueprint-Marketing/interoccupy.net) PHP · 178 lines

1 <?php

2 /**

3 * Aggregation controller

136 $awaiting_mod = $awaiting_mod->moderated;

137

138 $link = esc_url(admin_url('edit-comments.php?p='.$post->ID));

139

140 $html = '';

148

149 $response = array(

150 'total' => number_format_i18n($awaiting_mod),

151 'link' => $link,

152 'html' => $html,

method.nav_blocks_clan.php (https://github.com/txdv/psychostats4.git) PHP · 254 lines

1 <?php

2 /**

3 * PsychoStats method Nav_Blocks_Clan()

39 'pct1' => $stats['blue_flag_captured'] / $stats['flag_captured'] * 100,

40 'pct2' => $stats['red_flag_captured'] / $stats['flag_captured'] * 100,

41 'title1'=> trans('%s Blu captures', number_format($stats['blue_flag_captured'])),

42 'title2'=> trans('%s Red captures', number_format($stats['red_flag_captured'])),

43 )) : '',

44 number_format($stats['flag_captured'])),

45 ),

46 'flag_defended' => array(

51 'pct1' => $stats['blue_flag_defended'] / $stats['flag_defended'] * 100,

52 'pct2' => $stats['red_flag_defended'] / $stats['flag_defended'] * 100,

53 'title1'=> trans('%s Blu defends', number_format($stats['blue_flag_defended'])),

54 'title2'=> trans('%s Red defends', number_format($stats['red_flag_defended'])),

AssertProductInCart.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 144 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Tests_Functional

23 * @copyright Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

80 $cartItem = $checkoutCart->getCartBlock()->getCartItem($product);

81 $formPrice = $cartItem->getCartItemTypePrice('price');

82 $fixturePrice = number_format($this->prepareFixturePrice($product), 2);

83

84 \PHPUnit_Framework_Assert::assertEquals(

index.php (https://gitlab.com/alexprowars/bitrix) PHP · 155 lines

84 if ($sum <= 0.0)

85 {

86 $sumHtml = number_format((1 - $uptimeRate)*100, 2, '.', ' ')."%";

87 $alertIntervalText = $intervalLang["uptime"][$monitoring->getInterval()];

88 }

104 elseif ($uptimeRate < 1)

105 {

106 $sumHtml = number_format((1 - $uptimeRate)*100, 2, '.', ' ')."%";

107 $alertIntervalText = $intervalLang["uptime"][$monitoring->getInterval()];

108 }

122 {

123 ?>

124 <a class="bx-gadget-button" href="/bitrix/admin/bitrixcloud_monitoring_admin.php?lang=<?echo LANGUAGE_ID?>&amp;referer=gadget">

125 <div class="bx-gadget-button-lamp"></div>

126 <div class="bx-gadget-button-text"><?echo GetMessage("GD_BITRIXCLOUD_MONITOR_BTN_ALERT")?></div>

ajax_income_1.php (https://gitlab.com/dev.essetel/sjnuri) PHP · 262 lines

1 <?php

2 include_once('./_common.php');

51 $miner_price = 0;

52 }

53 $row['drv_distance'] = number_format($row['drv_distance']);

54 $row['drv_cash'] = number_format($row['drv_cash']);

55 $row['drv_vccash'] = number_format($row['drv_vccash']);

56 $row['tollfee1'] = number_format($row['tollfee1']);

57 $row['tollfee2'] = number_format($row['tollfee2']);

58 $row['tollfee3'] = number_format($row['tollfee3']);

59 $row['tollfee4'] = number_format($row['tollfee4']);

60 $row['cnt'] = number_format($row['cnt']);

ActionScheduler_WPCLI_Scheduler_command.php (https://gitlab.com/ebrjose/comcebu) PHP · 158 lines

1 <?php

2

3 /**

99 /* translators: %d refers to how many scheduled taks were found to run */

100 _n( 'Found %d scheduled task', 'Found %d scheduled tasks', $total, 'action-scheduler' ),

101 number_format_i18n( $total )

102 )

103 );

116 /* translators: %d refers to the total number of batches executed */

117 _n( '%d batch executed.', '%d batches executed.', $batches_completed, 'action-scheduler' ),

118 number_format_i18n( $batches_completed )

119 )

120 );

152 /* translators: %d refers to the total number of taskes completed */

153 _n( '%d scheduled task completed.', '%d scheduled tasks completed.', $actions_completed, 'action-scheduler' ),

154 number_format_i18n( $actions_completed )

155 )

156 );

category.php (https://github.com/amet17/webstar.git) PHP · 262 lines

87 ?>

88

89 <div class="subCategoryContainer<?php echo $lastContainer; ?>"<?php echo (count($this->subCategories)==1) ? '' : ' style="width:'.number_format(100/$this->params->get('subCatColumns'), 1).'%;"'; ?>>

90 <div class="subCategory">

91 <?php if($this->params->get('subCatImage') && $subCategory->image): ?>

176 ?>

177

178 <div class="itemContainer<?php echo $lastContainer; ?>"<?php echo (count($this->primary)==1) ? '' : ' style="width:'.number_format(99/$this->params->get('num_primary_columns'), 1).'%;"'; ?>>

179 <?php

204 ?>

205

206 <div class="itemContainer<?php echo $lastContainer; ?>"<?php echo (count($this->secondary)==1) ? '' : ' style="width:'.number_format(99/$this->params->get('num_secondary_columns'), 1).'%;"'; ?>>

207 <?php

233 ?>

234

235 <div class="itemContainer<?php echo $lastContainer; ?>"<?php echo (count($this->links)==1) ? '' : ' style="width:'.number_format(99/$this->params->get('num_links_columns'), 1).'%;"'; ?>>

236 <?php

Math.php (https://github.com/Koc/core.git) PHP · 276 lines

1 <?php

2 // vim: set ts=4 sw=4 sts=4 et:

3

10 * that is bundled with this package in the file LICENSE.txt.

11 * It is also available through the world-wide-web at this URL:

12 * http://opensource.org/licenses/osl-3.0.php

13 * If you did not receive a copy of the license and are unable to

14 * obtain it through the world-wide-web, please send an email

15 * to licensing@litecommerce.com so we can send you a copy immediately.

16 *

17 * PHP version 5.3.0

18 *

19 * @category LiteCommerce

20 * @author Creative Development LLC <info@cdev.ru>

21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved

22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

23 * @link http://www.litecommerce.com/

24 * @see ____file_see____

Item.php (https://github.com/durand54/sitellite.git) PHP · 330 lines

1 <?php

2

3 loader_import ('saf.Database.Generic');

64 $item

65 );

66 $res->rating = number_format ($res->rating, 2);

67 return $res;

68 }

159 $rex = new Rex ('sitelinks_item');

160 if (! $rex->collection) {

161 $this->error = 'SiteLinks collection is not installed. Please copy install/sitelinks_item.php into inc/app/cms/conf/collections.';

162 return false;

163 }

Drawer.php (https://github.com/stephaneerard/Imagine.git) PHP · 347 lines

1 <?php

2

3 /*

30

31 /**

32 * (non-PHPdoc)

33 * @see Imagine\Draw.DrawerInterface::arc()

34 */

66

67 /**

68 * (non-PHPdoc)

69 * @see Imagine\Draw.DrawerInterface::chord()

70 */

127

128 /**

129 * (non-PHPdoc)

130 * @see Imagine\Draw.DrawerInterface::ellipse()

131 */

DataExtenso.php (https://gitlab.com/FellowsDevel/delicto) PHP · 162 lines

1 <?php

2

3 namespace Delicto;

56 $rt = "";

57

58 $valor = number_format($valor, 2, ".", ".");

59 $inteiro = explode(".", $valor);

60 for ($i = 0; $i < count($inteiro); $i++) {

114 $rt = "";

115

116 $valor = number_format($valor, 2, ".", ".");

117 $inteiro = explode(".", $valor);

118 for ($i = 0; $i < count($inteiro); $i++) {

format.php (https://gitlab.com/vince.omega/mcb-nov-build) PHP · 150 lines

1 <?php defined('SYSPATH') OR die('No direct access allowed.');

2 /**

3 * Format helper class.

4 *

5 * $Id: format.php 4070 2009-03-11 20:37:38Z Geert $

6 *

7 * @package Core

8 * @author Kohana Team

9 * @copyright (c) 2007-2008 Kohana Team

10 * @license http://kohanaphp.com/license.html

11 */

12 class format_Core {

132 public static function dollar($amount)

133 {

134 return '$' . number_format($amount, 2);

135 }

136

index.php (https://bitbucket.org/markmoskalenko/svitor.git) PHP · 96 lines

4 <h2>Обмен опытом: поисковые запросы</h2>

5 <p>

6 Всего <b><?php echo number_format($post_search_logs->totalItemCount); ?></b> <?php echo mApi::plularStr($post_search_logs->totalItemCount, 'запрос', 'запроса', 'запросов'); ?>

7 <?php if ($post_search_logs->totalItemCount > 0): ?>

70 <p>Сейчас на сервере: <b><?php echo number_format($img_data_count); ?></b>

71 <?php echo mApi::plularStr($img_data_count, 'картинка', 'картинки', 'картинок'); ?> (объем ~<b><?php echo $img_data_size; ?></b>)</p>

72

73 <p>Из них ожидает удаления: <b><?php echo number_format($img_data_deleted_count); ?></b>

74 <?php echo mApi::plularStr($img_data_deleted_count, 'картинка', 'картинки', 'картинок'); ?> (обьем ~<b><?php echo $img_data_deleted_size; ?></b>)</p>

75

76 <?php if (!empty($img_last_five)): ?>

88 <td width="20px"><a href="<?php echo $url; ?>" target="_blank"><img src="<?php echo Yii::app()->ImgManager->getUrlById($img->id, 'small', $img->filename); ?>" width="20px"></a></td>

89 <td class="l_al"><a href="<?php echo $url; ?>" target="_blank"><?php echo $img->filename; ?></a></td>

90 <td class="l_al"><?php echo mApi::convertFileSize($img->filesize);?></td>

ShoppingCartItemController.class.php (https://github.com/quinta/quintacms.git) PHP · 130 lines

1 <?php

2 /**

3 * ShoppingCartItemController - provides a panel for the display of a single item in the cart

43 }

44

45 $this->strTemplate = __QUINTA_CORE_VIEWS__ . '/ShoppingCartItemView.tpl.php';

46

47 $this->objProduct = Product::Load($this->objShoppingCartItem->ProductId);

49 $this->lblProductName = new QLabel($this);

50 $this->lblProductName->HtmlEntities = false;

51 $this->lblProductName->Text = '<a href="'. __QUINTA_SUBDIRECTORY__ . '/index.php/Products/'

52 . $this->objProduct->Id . '">' . $this->objProduct->Model . '</a>';

53

54 $this->ctlProductImage = new ProductImageLabel($this, $this->objProduct->Id, ImageSizeType::Thumb, 48, 48);

55

56 $strHeight = number_format( $this->objProduct->Height , 2 );

57 $strWidth = number_format( $this->objProduct->Width , 2 );

donations_widget.php (https://github.com/Matmon/WP-e-Commerce.git) PHP · 181 lines

1 <?php

2

3

95 <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e( 'Title:', 'wpsc' ); ?></label>

96 <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo $title; ?>" />

97 </p>

98 <?php

164 $output .= "<input type='hidden' name='item' value='" . $product['ID'] . "' />";

165 $output .= "<input type='hidden' name='wpsc_ajax_action' value='add_to_cart' />";

166 $output .= "<label for='donation_widget_price_" . $product['ID'] . "'>" . __( 'Donation', 'wpsc' ) . ":</label> $currency_symbol<input type='text' id='donation_widget_price_" . $product['ID'] . "' name='donation_price' value='" . esc_attr( number_format( $price, 2 ) ) . "' size='6' /><br />";

167 $output .= "<input type='submit' id='donation_widget_" . $product['ID'] . "_submit_button' name='Buy' class='wpsc_buy_button' value='" . __( 'Add To Cart', 'wpsc' ) . "' />";

168 $output .= "</form>";

sfDoctrineDqlTask.class.php (https://github.com/bheneka/gitta.git) PHP · 177 lines

1 <?php

2

3 /*

10 */

11

12 require_once(dirname(__FILE__).'/sfDoctrineBaseTask.class.php');

13

14 /**

89

90 $this->log(array(

91 sprintf('found %s results', number_format($count)),

92 sfYaml::dump($results, 4),

93 ));

148 $events = $profiler->getQueryExecutionEvents();

149 $event = array_pop($events);

150 $this->log(sprintf('%s results (%s sec)', number_format($count), number_format($event->getElapsedSecs(), 2)));

151 }

152 else

Migration.php (https://github.com/OpenBuildings/timestamped-migrations.git) PHP · 279 lines

1 <?php defined('SYSPATH') OR die('No direct script access.');

2

3 /**

74 if ($title)

75 {

76 $this->log(' --> '.number_format($end-$start, 4).'s'.($method == 'execute' ? ', affected rows: '.$this->driver->affected_rows() : ''));

77 }

78 return $will_return ? $return : $this;

Products.php (https://github.com/r1zib/salesforce.git) PHP · 157 lines

1 <?php

2

3 class Application_Model_Products

147 */

148 function montant_ttc ($mt, $taxe = 1.196) {

149 return number_format(round(floatval($mt) *1.196,2),2,',','.');

150 }

151 function montant ($mt) {

152 return number_format($mt,2,',','.');

153 }

154

detalle_producto.twig (https://gitlab.com/fabian.morales/Spencial) Twig Template · 124 lines

43 <div class="small-6 columns">

44 {# <h3>{{ producto.nombre }}</h3> #}

45 <div class="precio_prod"><p>$ {{ producto.valor_base|number_format }}</p></div>

46 </div>

47 </div>

89 <li>

90 {% set img = p.imagenes.first %}

91 <a href="index.php?option=com_my_component&controller=catalogo&task=mostrarProducto&id={{ p.id }}">

92 <img src="{{ urlImg }}productos/{{ p.id }}/{{ img.archivo }}" alt="{{ p.nombre }}" />

93 </a>

116 <div class="row">

117 <div class="small-12 columns">

118 <a class="button round rosa" rel="lnkAgregarProd" href="index.php?option=com_my_component&controller=carrito&task=agregarProducto">Comprar</a>

119 <a class="button round" href="index.php">Regresar</a>

profiler.php (https://bitbucket.org/laborautonomo/laravel.git) PHP · 186 lines

1 <?php namespace Laravel\Profiling;

2

3 use Laravel\View;

32 static::$data['memory'] = get_file_size(memory_get_usage(true));

33 static::$data['memory_peak'] = get_file_size(memory_get_peak_usage(true));

34 static::$data['time'] = number_format((microtime(true) - LARAVEL_START) * 1000, 2);

35 foreach ( static::$data['timers'] as &$timer)

36 {

37 $timer['running_time'] = number_format((microtime(true) - $timer['start'] ) * 1000, 2);

38 }

39

65 static::$data['timers'][$name]['start'] = $start;

66 static::$data['timers'][$name]['end'] = $end;

67 static::$data['timers'][$name]['time'] = number_format(($end - $start) * 1000, 2);

68 }

69

WactTemplateFiltersTest.class.php (https://github.com/limb-php-framework/limb-app-buildman.git) PHP · 216 lines

1 <?php

2 /**

3 * Limb Web Application Framework

7 * @copyright Copyright &copy; 2004-2007 BIT

8 * @license LGPL http://www.gnu.org/copyleft/lesser.html

9 * @version $Id: WactTemplateFiltersTest.class.php 5021 2007-02-12 13:04:07Z pachanga $

10 * @package wact

11 */

173 $template = '{$Var|number} {$Var|number:2} {$Var|number:3, ",", "."}';

174

175 $this->registerTestingTemplate('/template/filter/number_format_filter.html', $template);

176 $page = $this->initTemplate('/template/filter/number_format_filter.html');

loop.php (https://github.com/tonyahowe/ABO.git) PHP · 149 lines

20 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

21 <header>

22 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'brunelleschi' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

23 <?php if(brunelleschi_option('posted-on') === 'Above Post'): ?>

58 <?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) : ?>

59 <a href="<?php echo get_post_format_link( 'gallery' ); ?>" title="<?php esc_attr_e( 'View Galleries', 'brunelleschi' ); ?>"><?php _e( 'More Galleries', 'brunelleschi' ); ?></a>

60 <span class="meta-sep">|</span>

61 <?php elseif ( in_category( _x( 'gallery', 'gallery category slug', 'brunelleschi' ) ) ) : ?>

62 <a href="<?php echo get_term_link( _x( 'gallery', 'gallery category slug', 'brunelleschi' ), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'brunelleschi' ); ?>"><?php _e( 'More Galleries', 'brunelleschi' ); ?></a>

63 <span class="meta-sep">|</span>

64 <?php endif; ?>

91 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

92 <header>

93 <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'brunelleschi' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

94 <?php if(brunelleschi_option('posted-on') === 'Above Post'): ?>

overview.php (https://gitlab.com/knowthecode/ktc-sandbox) PHP · 175 lines

1 <?php

2 /*

3 Copyright 2009-2016 John Blackbourn

67 echo '<tr>';

68 echo '<td>';

69 echo esc_html( number_format_i18n( $data['time_taken'], 4 ) );

70 echo '<br><span class="qm-info">';

71 echo esc_html( sprintf(

72 /* translators: 1: Percentage of time limit used, 2: Time limit in seconds*/

73 __( '%1$s%% of %2$ss limit', 'query-monitor' ),

74 number_format_i18n( $data['time_usage'], 1 ),

75 number_format_i18n( $data['time_limit'] )

85 /* translators: %s: Memory used in kilobytes */

86 __( '%s kB', 'query-monitor' ),

87 number_format_i18n( $data['memory'] / 1024 )

88 ) );

89 echo '<br><span class="qm-info">';

FacetGroup.php (https://github.com/dswalker/xerxes.git) PHP · 239 lines

1 <?php

2

3 /*

35 public function addFacet(Facet $facet)

36 {

37 $facet->count_display = Parser::number_format($facet->count);

38

39 array_push($this->facets, $facet);

48 public function prependFacet(Facet $facet)

49 {

50 $facet->count_display = Parser::number_format($facet->count);

51

52 array_unshift($this->facets, $facet);

AssertProductPage.php (https://gitlab.com/daigiangaitu91/magento) PHP · 204 lines

1 <?php

2 /**

3 * Copyright © 2015 Magento. All rights reserved.

58

59 $errors = $this->verify();

60 \PHPUnit_Framework_Assert::assertEmpty(

61 $errors,

62 "\nFound the following errors:\n" . implode(" \n", $errors)

113 $priceBlock = $this->productView->getPriceBlock();

114 $formPrice = $priceBlock->isOldPriceVisible() ? $priceBlock->getOldPrice() : $priceBlock->getPrice();

115 $fixturePrice = number_format($this->product->getPrice(), 2, '.', '');

116

117 if ($fixturePrice != $formPrice) {

133 }

134 $fixtureProductSpecialPrice = $this->product->getSpecialPrice();

135 $fixtureProductSpecialPrice = number_format($fixtureProductSpecialPrice, 2);

136 $formProductSpecialPrice = $this->productView->getPriceBlock()->getSpecialPrice();

137 if ($fixtureProductSpecialPrice == $formProductSpecialPrice) {

scale.php (https://gitlab.com/Rad1calDreamer/honey) PHP · 156 lines

1 <?php

2

3 namespace Bitrix\Conversion\AdminHelpers;

142 ?>

143 <div id="conversion-scale-shift" class="adm-profit-scale-value" style="left: <?=$shift?>%">

144 <div id="conversion-scale-conversion" class="adm-profit-scale-value-num"><?=number_format($conversion, 2)?>%</div>

145 </div>

146 </div>

productGet.php (https://github.com/ciniki/customers.git) PHP · 119 lines

1 <?php

2 //

3 // Description

52

53 ciniki_core_loadMethod($ciniki, 'ciniki', 'users', 'private', 'dateFormat');

54 $date_format = ciniki_users_dateFormat($ciniki, 'php');

55

56 //

112 }

113 $product = $rc['products'][0];

114 $product['unit_amount'] = '$' . number_format($product['unit_amount'], 2);

115 }

116

noo_job-loop.php (https://gitlab.com/hop23typhu/list-theme) PHP · 130 lines

45 <?php do_action( 'job_list_single_before', $loop_args, $wp_query ); ?>

46 <article <?php post_class($item_class); ?> data-url="<?php the_permalink(); ?>">

47

48 <div class="loop-item-wrap">

49 <?php if( !empty( $logo_company ) ) : ?>

50 <div class="item-featured">

51 <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">

52 <?php echo $logo_company;?>

56 <div class="loop-item-content"<?php echo $show_view_more == 'yes' ? ' style="width: 60% !important;float: left"' : ''; ?>>

57 <h2 class="loop-item-title">

58 <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permanent link to: "%s"','noo' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php the_title(); ?></a>

59 </h2>

60 <?php jm_the_job_meta($list_job_meta, $post); ?>

78 <?php if($paginate == 'loadmore' && 1 < $wp_query->max_num_pages):?>

79 <div class="loadmore-action">

80 <a href="#" class="btn btn-default btn-block btn-loadmore" title="<?php _e('Load More','noo')?>"><?php _e('Load More','noo')?></a>

81 <div class="noo-loader loadmore-loading"><span></span><span></span><span></span><span></span><span></span></div>

82 </div>

exportar_clientes_danone.php (https://github.com/cabenitez/factuweb.git) PHP · 173 lines

1 <?php

2 /*

3 select factura_vta.cod_vendedor, vendedor.nombre ,factura_vta.cod_zona, zona.nombre ,count(distinct factura_vta.cod_cliente)

28

29 //---------------------- INCLUYE CONFIGURACION DE PDF --------------------------------------//

30 include("conf_listados.php");

31

32 //---------------------- creo los titulos de las columnas-----------------------------------//

49

50 //---------------------- INCLUYE CONEXION A BD -----------------------------------------------//

51 include("conexion.php");

52

53 $consulta = "select factura_vta.cod_vendedor, vendedor.nombre ,factura_vta.cod_zona, zona.nombre ,count(distinct factura_vta.cod_cliente) as total

112

113 $precio_categoria = $precio_categoria+($precio_categoria * $iva /100);

114 $precio_categoria= number_format($precio_categoria,2,'.','');

115

116 $pdf->Cell(0,3 ,$precio_categoria,0,0);

exportar_imputacion_cobranza_cliente.php (https://github.com/cabenitez/factuweb.git) PHP · 173 lines

9

10 //---------------------- INCLUYE CONFIGURACION DE PDF --------------------------------------//

11 include("conf_listados.php");

12

13 if($cod_tal){

14 //---------------------- INCLUYE CONEXION A BD -----------------------------------------------//

15 include("conexion.php");

16

17 // Obtiene el detalle de todos los comprobantes Factura Vta Cliente

142

143 $pdf->SetX(-7);

144 $pdf->Cell(1,3,number_format($importe,2,'.',''),0,1,'R');

145

146

sales-view.php (https://gitlab.com/mvcarvalho/plataforma-e-commerce) PHP · 119 lines

24 <tr>

25 <td >CEP</td>

26 <td ><?php echo($this->viewItems['user']->cep);?></td>

27 </tr>

28 </table>

37 <tr>

38 <td>Valor total</td>

39 <td><?php echo(number_format($this->viewItems['sale']->value, 2, ',', '.'));?></td>

40 </tr>

41 <tr>

87 <tr style="font-size: 14px">

88 <td>

89 <?php

90 echo($item->product->id);

91 ?>

99 <td>R$ <?php echo(number_format($item->price, 2, ',', '.'));?></td>

100 <td>R$ <?php echo(number_format($item->price * $item->quantity, 2, ',', '.'));?></td>

101 </tr>

102 <?php }?>

Int.class.php (https://github.com/stvvt/ef.git) PHP · 159 lines

1 <?php

2

3

143

144 if(strlen($value) > 4) {

145 $value = number_format($value, 0, '', $thousandsSep);

146 }

147

jobs.blade.php (https://gitlab.com/5r-project/5r-system) PHP · 103 lines

44 <p>

45 <b>Duration: </b>

46 <?php $duration = (time() - $job['timeStart']/1000); ?>

47 {{sprintf('%02d:%02d:%02d',$duration/3600, $duration/60%60, $duration%60)}}

48 </p>

57 <div class="progress progress-striped active">

58 <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="{{$job['progress']*100}}" aria-valuemin="0" aria-valuemax="100" style="width: {{$job['progress']*100}}%">

59 {{number_format($job['progress']*100, 1)}} %

60 </div>

61 </div>

93 <p>

94 <b>Duration: </b>

95 <?php $duration = ($job['timeStop'] - $job['timeStart']) / 1000; ?>

96 {{sprintf('%02d:%02d:%02d',$duration/3600, $duration/60%60, $duration%60)}}

97 </p>

shopexport.php (https://bitbucket.org/seyar/kinda.local.git) PHP · 141 lines

1 <?php

2

3 defined('SYSPATH') OR die('No direct access allowed.');

6 *

7 * Project: microshop.local

8 * File: shopexport.php *

9 *

10 * This library is commercial distributed software; you can't

98 $oPrices = new Model_Frontend_Currencies();

99 $item['price'] = $oPrices->getPrice($rows);

100 $item['price'] = number_format($item['price'][$price_category][Kohana::config( 'shop' )->frontend_currency],2,'.','');

101 $return[$key] = $item;

102 }

proc_gift.php (https://github.com/MyITCRM/myitcrm1.git) PHP · 223 lines

1 <?php

2 $amount = $VAR['gift_amount'];

3 $gift_code = $VAR['gift_code'];

70

71 /* insert Transaction */

72 $gift_amount = number_format($gift_amount, 2,'.', '');

73 $balance = number_format($balance, 2,'.', '');

150 if($invoice_details['INVOICE_AMOUNT'] = $gift_amount){

151 /* insert Transaction */

152 $gift_amount = number_format($gift_amount, 2,'.', '');

153

154 $memo = "Full Gift Certificate Payment Made of $currency_sym$gift_amount, ID: $gift_code";

bp-forums-filters.php (https://bitbucket.org/Red54/dianjihun.git) PHP · 204 lines

1 <?php

2 // Exit if accessed directly

3 if ( !defined( 'ABSPATH' ) ) exit;

41 add_filter( 'bp_get_the_topic_post_content', 'make_clickable', 9 );

42

43 add_filter( 'bp_get_forum_topic_count_for_user', 'bp_core_number_format' );

44 add_filter( 'bp_get_forum_topic_count', 'bp_core_number_format' );

update_indexes.php (https://github.com/mikeschneider/Osmand.git) PHP · 139 lines

1

2 <?php

3 function updateGoogleCodeIndexes($update=false) {

4 $localFileName='indexes.xml';

119 $stat = $zip->statIndex( 0 );

120 $date= date('d.m.Y',$stat['mtime']);

121 $size= number_format((filesize($filename) / (1024.0*1024.0)), 1, '.', '');

122 $zip->close();

123 $out = $output->createElement( "region" );

Nota_despacho.php (https://gitlab.com/gustCL/syscar) PHP · 165 lines

1 <?php

2

3 $fec_lim = $dosificacion['fechaLimite']; //$cons->cons_simple('par_dos',"estado='1'",'fecha_limite');

4 ?>

5 <?php

6 require 'encabezadoNotaDespacho.php';

76 </td>

77 <td style="border-left:1px solid black; text-align: center">

78 <?php echo number_format($precio, 2);

79 ?>

80 </td>

81 <td style="border-left:1px solid black;border-right:1px solid black;text-align: center">

82 <?php echo number_format($precio * $cantidad, 2);

83 ?>

84 </td>

IndStats.php (https://github.com/mccollek/IT-oLogy--IT-Jobs-Report-Application.git) PHP · 150 lines

1 <?php

2

3 include_once('/srv/www/htdocs/m/table.php');

46 $row->stateAbr = $itRows[$i]->stateAbr;

47 $row->stateName = $itRows[$i]->stateName;

48 $row->gsp = 100*number_format($itRows[$i]->gsp / $totalRows[$i]->gsp, 4);

49

50 $rows[] = $row;

FestsetzungsSammelbescheidDaten.php (https://github.com/srahn/kvwmap.git) PHP · 420 lines

1 <?php

2 class FestsetzungsSammelbescheidDaten

3 {

396 public static function formatNumber(&$number)

397 {

398 return number_format($number, 0, '', ' ');

399 }

400

401 public static function formatCurrencyNumber(&$number)

402 {

403 return number_format($number, 2, ',', ' ');

404 }

405

ProfilerTest.php (https://github.com/hhamon/Propel2.git) PHP · 251 lines

1 <?php

2

3 /**

109 {

110 return array(

111 array(1234567890, number_format(1.15, 2) . 'GB'),

112 array(123456789.0, number_format(118) . 'MB'),

113 array(12345678.90, number_format(11.8, 1) . 'MB'),

114 array(1234567.890, number_format(1.18, 2) . 'MB'),

115 array(123456.7890, number_format(121) . 'kB'),

116 array(12345.67890, number_format(12.1, 1) . 'kB'),

117 array(1234.567890, number_format(1.21, 2) . 'kB'),

118 array(123.4567890, number_format(123) . 'B'),

report_excel.blade.php (https://gitlab.com/laher01/factu40) PHP · 246 lines

45 <div class="">

46 <div class=" ">

47 @php

48 $acum_total_taxed=0;

49 $acum_total_igv=0;

59 $acum_total_igv_usd = 0;

60 $acum_total_usd = 0;

61 @endphp

62 <table class="">

63 <thead>

89 @if(in_array($value->document_type_id,["07","08"]) && $value->note)

90

91 @php

92 $serie = ($value->note->affected_document) ? $value->note->affected_document->series : $value->note->data_affected_document->series;

93 $number = ($value->note->affected_document) ? $value->note->affected_document->number : $value->note->data_affected_document->number;

number.php (https://github.com/vprorok/pny.git) PHP · 235 lines

1 <?php

2 /* SVN FILE: $Id: number.php 7296 2008-06-27 09:09:03Z gwoo $ */

9 * PHP versions 4 and 5

10 *

11 * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/>

12 * Copyright 2005-2008, Cake Software Foundation, Inc.

13 * 1785 E. Sahara Avenue, Suite 490-204

19 * @filesource

20 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc.

21 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project

22 * @package cake

23 * @subpackage cake.cake.libs.view.helpers

24 * @since CakePHP(tm) v 0.10.0.1076

25 * @version $Revision: 7296 $

26 * @modifiedby $LastChangedBy: gwoo $

SecondLevelCacheTest.php (https://github.com/adrienbrault/doctrine2.git) PHP · 283 lines

1 <?php

2

3 declare(strict_types=1);

134 $startPersist = microtime(true);

135

136 echo PHP_EOL . $label;

137

138 for ($i = 0; $i < $size; $i++) {

143 $em->clear();

144

145 printf("\n[%s] persist %s countries", number_format(microtime(true) - $startPersist, 6), $size);

146

147 $dql = 'SELECT c FROM Doctrine\Tests\Models\Cache\Country c WHERE c.name LIKE :name';

155 }

156

157 printf("\n[%s] select %s countries (%s times)", number_format(microtime(true) - $startFind, 6), $size, $times);

158 printf("\n%s\n", str_repeat('-', 50));

159 }

index.php (https://bitbucket.org/ciceidev/cicei_moodle_conditional_activities.git) PHP · 144 lines

1 <?php // $Id$

2

3 require_once("../../config.php");

4 require_once("lib.php");

5 require_once("locallib.php");

12

13 require_login($course->id);

14 add_to_log($course->id, "exercise", "view all", "index.php?id=$course->id", "");

15

16 $strexercises = get_string("modulenameplural", "exercise");

32

33 if (! $exercises = get_all_instances_in_course("exercise", $course)) {

34 notice(get_string('thereareno', 'moodle', $strexercises), "../../course/view.php?id=$course->id");

35 die;

36 }

index.php (https://gitlab.com/xe/Carbon-Forum) PHP · 112 lines

1 <?php

2 require(__DIR__ . '/common.php');

19 $HTTPParameters = array();

20 if (in_array($HTTPMethod, array('PUT', 'DELETE', 'OPTIONS'))) {

21 parse_str(file_get_contents('php://input'), $HTTPParameters);

22 }

23 $Routes = array();

88 }

89 //$MicroTime = explode(' ', microtime());

90 //echo number_format(($MicroTime[1] + $MicroTime[0] - $StartTime), 6) * 1000;

91 $UrlPath = $Controller;

92 break 2;

98

99 if ($NotFound === true) {

100 require(__DIR__ . '/404.php');

101 exit();

102 }

class-walker-category.php (https://github.com/livinglab/openlab.git) PHP · 268 lines

1 <?php

2 /**

3 * Taxonomy API: Walker_Category class

97 */

98 public function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) {

99 /** This filter is documented in wp-includes/category-template.php */

100 $cat_name = apply_filters( 'list_cats', esc_attr( $category->name ), $category );

101

185

186 if ( ! empty( $args['show_count'] ) ) {

187 $link .= ' (' . number_format_i18n( $category->count ) . ')';

188 }

189 if ( 'list' === $args['style'] ) {

users.php (https://github.com/hewu/blogwp.git) PHP · 146 lines

1 <?php

2

3 $posts_per_page = $options["admin_rows"];

44 <div class="wrap">

45 <form id="gdsr-articles" method="post" action="">

46 <h2 class="gdptlogopage">GD Star Rating: <?php _e("Users", "gd-star-rating"); ?></h2>

47 <div class="tablenav">

48 <div class="alignleft">

49 </div>

50 <div class="tablenav-pages">

51 <?php echo $pager; ?>

52 </div>

53 </div>

57 <thead>

58 <tr>

59 <th scope="col"><?php _e("Name", "gd-star-rating"); ?></th>

60 <th scope="col"><?php _e("ID", "gd-star-rating"); ?></th>

Notify.php (https://github.com/lostechies/wordpress.git) PHP · 185 lines

1 <?php

2 /**

3 * PHP Command Line Tools

8 * @author James Logsdon <dwarf@girsbrain.org>

9 * @copyright 2010 James Logsdom (http://girsbrain.org)

10 * @license http://www.opensource.org/licenses/mit-license.php The MIT License

11 */

12

69 */

70 public function current() {

71 return number_format($this->_current);

72 }

73

collection_view.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 129 lines

1 <?php

2

3 /**

5 * This is NOT a freeware, use is subject to license terms

6 *

7 * $Id: collection_view.php 29503 2012-04-17 03:11:41Z chenmengshu $

8 */

9

28

29 $permission = checkcollectionperm($_G['collection'], $_G['uid']);

30 $avgrate = number_format($_G['collection']['rate'], 1);

31 require_once libfile('function/discuzcode');

32

81 collectionThread($threadlist, false, $lastvisit, $collectiontids);

82

83 $multipage = multi($_G['collection']['threadnum'], $tpp, $page, "forum.php?mod=collection&action=view&ctid={$_G['collection']['ctid']}");

84 }

85

ActionScheduler_wcSystemStatus.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 166 lines

109 <thead>

110 <tr>

111 <th colspan="5" data-export-label="Action Scheduler"><h2><?php esc_html_e( 'Action Scheduler', 'woocommerce' ); ?><?php echo wc_help_tip( esc_html__( 'This section shows details of Action Scheduler.', 'woocommerce' ) ); ?></h2></th>

112 </tr>

113 <tr>

120 </tr>

121 <tr>

122 <td><strong><?php esc_html_e( 'Action Status', 'woocommerce' ); ?></strong></td>

123 <td class="help">&nbsp;</td>

124 <td><strong><?php esc_html_e( 'Count', 'woocommerce' ); ?></strong></td>

153 *

154 * @return mixed

155 * @link https://php.net/manual/en/language.oop5.overloading.php#language.oop5.overloading.methods

156 */

157 public function __call( $name, $arguments ) {

AssertBundlePriceType.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 130 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

62 * @return void

63 *

64 * @SuppressWarnings(PHPMD.NPathComplexity)

65 */

66 protected function assertPrice(

93

94 $optionPrice[$key]['price'] = $this->productPriceType == 'Fixed'

95 ? number_format(

96 $bundleData['bundle_selections']['bundle_options'][$key]['assigned_products'][$data['value']['key']]

97 ['data']['selection_price_value'],

98 2

99 )

100 : number_format($subProductPrice, 2);

101 }

102

report_pdf.blade.php (https://gitlab.com/laher01/factu40) PHP · 136 lines

97 </thead>

98 <tbody>

99 @php

100 $total = 0;

101 @endphp

102 @foreach($reports as $key => $value)

103 @php

104 $total_line = $value->stock * $value->item->purchase_unit_price;

105 $total = $total + $total_line;

106 @endphp

107 <tr>

108 <td class="celda">{{$loop->iteration}}</td>

benchmark.php (https://github.com/mostlygeek/msgpack.git) PHP · 239 lines

1 <?php

2 $loop = 10000;

3 $retry = 10;

138 (is_object($value) && $unpack == $value) ||

139 (is_float($value) &&

140 number_format($value, 10, '.', '') ===

141 number_format($unpack, 10, '.', '')))

235 {

236 var_dump($value);

237 echo PHP_EOL;

238 }

239 }

tracker_stats2.inc.php (https://github.com/harriswong/ATutor.git) PHP · 87 lines

1 <?php

2 /****************************************************************/

3 /* ATutor */

34 if(!$result7 = mysql_query($sql7, $db)){

35 echo "query failed";

36 require(AT_INCLUDE_PATH.'footer.inc.php');

37 exit;

38 }

72 echo '<td>' . $title_refs[$row['to_cid']] . '</td>';

73 echo '<td>' . $visits[$row['to_cid']] . '</td>';

74 echo '<td>' . number_format($duration[$row['to_cid']]) . '</td>';

75 echo '</tr>';

76 }

79 echo '<tr>';

80 echo '<td>' . _AT('tracker_pages_total', $num_rows_total, $num_rows_read).'</td>';

81 echo '<td>' . _AT('tracker_percent_read',@number_format((($num_rows_read/$num_rows_total)*100),1)) . '%</td>';

82 echo '</tr>';

83

model.php (https://github.com/DoFken/forkcms.git) PHP · 415 lines

1 <?php

2

3 /*

250

251 // loop available formats

252 foreach((array) BackendModel::getModuleSetting('core', 'number_formats') as $format => $example)

253 {

254 $possibleFormats[$format] = $example;

innodb.lib.php (https://bitbucket.org/steve_delbar/iepsm-projet-de-d-veloppement-internet-2013.git) PHP · 193 lines

1 <?php

2 /* $Id: innodb.lib.php,v 2.5 2005/03/26 23:34:26 rabus Exp $ */

166 . ' </td>' . "\n"

167 . ' <td align="right" bgcolor="' . $cfg['BgcolorTwo'] . '">' . "\n"

168 . ' ' . ($status['Innodb_buffer_pool_read_requests'] == 0 ? '---' : htmlspecialchars(number_format($status['Innodb_buffer_pool_reads'] * 100 / $status['Innodb_buffer_pool_read_requests'], 2, $GLOBALS['number_decimal_separator'], $GLOBALS['number_thousands_separator'])) . '&nbsp;%') . "\n"

169 . ' </td>' . "\n"

170 . ' <td bgcolor="' . $cfg['BgcolorOne'] . '">' . "\n"

172 . ' </td>' . "\n"

173 . ' <td align="right" bgcolor="' . $cfg['BgcolorTwo'] . '">' . "\n"

174 . ' ' . ($status['Innodb_buffer_pool_write_requests'] == 0 ? '---' : htmlspecialchars(number_format($status['Innodb_buffer_pool_wait_free'] * 100 / $status['Innodb_buffer_pool_write_requests'], 2, $GLOBALS['number_decimal_separator'], $GLOBALS['number_thousands_separator'])) . '&nbsp;%') . "\n"

175 . ' </td>' . "\n"

176 . ' </tr>' . "\n"

Upload_01.php (https://gitlab.com/orrisb/php-7-solutions) PHP · 157 lines

1 <?php

2

3 namespace PhpSolutions\File;

53

54 public function getMaxSize() {

55 return number_format($this->max / 1024, 1) . ' KB';

56 }

57

FileParams.php (https://gitlab.com/najomie/fit-hippie) PHP · 216 lines

1 <?php

2 /**

3 * Abstracts information about a file into a view parameter object.

23 $n /= 1024;

24 }

25 $s = number_format( $n, $dp, '.', ',' );

26 // trim trailing zeros from decimal places

27 $a = explode('.',$s);

TextReporter.php (https://github.com/shama/cakephp.git) PHP · 189 lines

1 <?php

2 /**

3 * TextReporter contains reporting features used for plain text based output

5 * PHP 5

6 *

7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>

8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

9 *

13 *

14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

15 * @link http://cakephp.org CakePHP(tm) Project

16 * @since CakePHP(tm) v 1.3

17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)

18 */

19 namespace Cake\TestSuite\Reporter;

tiki-accounting_account_list.tpl (https://gitlab.com/ElvisAns/tiki) Smarty Template · 92 lines

16 {foreach from=$accounts item=a}{cycle values="odd,even" assign="style"}

17 <tr class="{$style}">

18 <td class="text-end"><a href="tiki-accounting_account.php?bookId={$bookId}&accountId={$a.accountId}">{$a.accountId}</a></td>

19 <td><a href="tiki-accounting_account.php?bookId={$bookId}&accountId={$a.accountId}">{$a.accountName|escape}</a></td>

21 <td class="text-end">

22 {if $book.bookCurrencyPos==-1}{$book.bookCurrency}{/if}

23 {$a.accountBudget|number_format:$book.bookDecimals:$book.bookDecPoint:$book.bookThousand}

24 {if $book.bookCurrencyPos==1}{$book.bookCurrency}{/if}

25 </td>

27 <td class="text-end">

28 {if $book.bookCurrencyPos==-1}{$book.bookCurrency}{/if}

29 {$a.debit|number_format:$book.bookDecimals:$book.bookDecPoint:$book.bookThousand}

30 {if $book.bookCurrencyPos==1}{$book.bookCurrency}{/if}

31 </td>

32 <td class="text-end">

33 {if $book.bookCurrencyPos==-1}{$book.bookCurrency}{/if}

34 {$a.credit|number_format:$book.bookDecimals:$book.bookDecPoint:$book.bookThousand}

35 {if $book.bookCurrencyPos==1}{$book.bookCurrency}{/if}

36 </td>

latest.php (https://gitlab.com/ppapadatis/Videolearn) PHP · 126 lines

29 <?php if ($this->params->get('categoryImage') && !empty($category->image)): ?>

30 <img src="<?php echo $category->image; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($category->name); ?>" style="width:<?php echo $this->params->get('catImageWidth'); ?>px;height:auto;" />

31 <?php endif; ?>

51 <?php if ($this->params->get('userImage') && !empty($user->avatar)): ?>

52 <div class="gkAvatar">

53 <img src="<?php echo $user->avatar; ?>" alt="<?php echo $user->name; ?>" style="width:<?php echo $this->params->get('userImageWidth'); ?>px;height:auto;" />

54 </div>

55 <?php endif; ?>

58 <?php if ($this->params->get('userName')): ?>

59 <h3><a rel="author" href="<?php echo $user->link; ?>"><?php echo $user->name; ?></a></h3>

60 <?php endif; ?>

67 <?php if ($this->params->get('userURL') && isset($user->profile->url)): ?>

68 <span class="itemAuthorURL">

69 <?php echo JText::_('K2_WEBSITE_URL'); ?>: <a rel="me" href="<?php echo $user->profile->url; ?>" target="_blank"><?php echo $user->profile->url; ?></a>

70 </span>

71 <?php endif; ?>