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
Libriciel
web-DPO
Commits
9b674b37
Commit
9b674b37
authored
Aug 12, 2020
by
Théo GUILLON
Browse files
Ajout : de la taille du fichier en kB
Correction : variable dans la section info_fichiers à l'affichage des variables
parent
6c6f8e61
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/Model/Fiche.php
View file @
9b674b37
...
...
@@ -1212,6 +1212,11 @@ class Fiche extends AppModel implements LinkedOrganisationInterface {
'type'
=>
'text'
];
$donnees
[
'info_fichiers'
][
$key
][
'valeur_taille_fichier'
]
=
[
'value'
=>
(
string
)
round
((
filesize
(
$filename
)
/
1024
),
2
)
.
' kB'
,
'type'
=>
'text'
];
}
else
{
debug
(
"PAS TROUVER"
.
CHEMIN_PIECE_JOINT
.
$fileAnnexe
[
'Fichier'
][
'url'
]);
}
...
...
app/View/Modeles/info_variable.ctp
View file @
9b674b37
...
...
@@ -1217,7 +1217,7 @@ if ($viewAnnexe === true) {
<td>
<?php
echo
"valeur_nom"
echo
"valeur_nom
_fichier
"
?>
</td>
</tr>
...
...
@@ -1237,7 +1237,7 @@ if ($viewAnnexe === true) {
<td>
<?php
echo
"valeur_depot"
echo
"valeur_
date_
depot"
?>
</td>
</tr>
...
...
@@ -1257,7 +1257,27 @@ if ($viewAnnexe === true) {
<td>
<?php
echo
"valeur_type"
echo
"valeur_type_fichier"
?>
</td>
</tr>
<tr>
<td>
<?php
echo
'Taille du fichier en kilobyte (kB)'
;
?>
</td>
<td>
<?php
echo
'info_fichiers'
;
?>
</td>
<td>
<?php
echo
"valeur_taille_fichier"
?>
</td>
</tr>
...
...
Write
Preview
Markdown
is supported
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