Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pierre-Jean CHANCELLIER
Barre de financement intégrable
Commits
d8136eba
Commit
d8136eba
authored
Oct 01, 2019
by
Chancellier Pierre-Jean
Browse files
correcion du probleme des floatt avec json_decode
parent
4c23c565
Changes
1
Hide whitespace changes
Inline
Side-by-side
iframe.php
View file @
d8136eba
...
...
@@ -123,7 +123,7 @@
$output
=
explode
(
':'
,
$output
);
$montant_transaction
=
$output
[
0
]
/
100
;
if
(
$timestamp
!=
$tmp_timestamp
){
array_push
(
$array_final
,
[
't'
=>
$tmp_timestamp
*
1000
,
'y'
=>
$total
]);
array_push
(
$array_final
,
[
't'
=>
$tmp_timestamp
*
1000
,
'y'
=>
(
string
)
$total
]);
}
$total
+=
$montant_transaction
;
$tmp_timestamp
=
$timestamp
;
...
...
@@ -134,9 +134,9 @@
$donors
=
count
(
$donneurs
);
if
(
$display_graph
){
// On complète le tableau avec la derniere transaction et pour la date de visualisation du graph
array_push
(
$array_final
,
[
't'
=>
$tmp_timestamp
*
1000
,
'y'
=>
$total
]);
array_push
(
$array_final
,
[
't'
=>
$today_timestamp
*
1000
,
'y'
=>
$total
]);
$array_line
=
[[
't'
=>
$start_timestamp
*
1000
,
'y'
=>
$target
],[
't'
=>
$today_timestamp
*
1000
,
'y'
=>
$target
]];
array_push
(
$array_final
,
[
't'
=>
$tmp_timestamp
*
1000
,
'y'
=>
(
string
)
$total
]);
array_push
(
$array_final
,
[
't'
=>
$today_timestamp
*
1000
,
'y'
=>
(
string
)
$total
]);
$array_line
=
[[
't'
=>
$start_timestamp
*
1000
,
'y'
=>
(
string
)
$target
],[
't'
=>
$today_timestamp
*
1000
,
'y'
=>
(
string
)
$target
]];
}
// Vérification de l'unité
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment