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
legi
soft
gestex
Commits
5a983a54
Commit
5a983a54
authored
Jul 08, 2021
by
Gabriel Moreau
Browse files
Format file
parent
18b51922
Changes
1
Show whitespace changes
Inline
Side-by-side
module/html-functions.php
View file @
5a983a54
...
...
@@ -236,26 +236,31 @@ function redirect($link='index.php') {
exit
();
}
// ---------------------------------------------------------------------
function
loan_list_container
(
$pdo
,
$equipment_loans
,
$equipment_loan_reserved
=
false
,
$equipment_blacklist
=
false
,
$logged_level
)
{
?>
<div
class=
"loan-list-container"
>
<?php
if
(
$equipment_loan_reserved
)
{
?>
function
loan_list_container
(
$pdo
,
$equipment_loans
,
$equipment_loan_reserved
=
false
,
$equipment_blacklist
=
false
,
$logged_level
)
{
?>
<div
class=
"loan-list-container"
>
<?php
if
(
$equipment_loan_reserved
)
{
?>
<div>
<h4
style=
"background-color: orange;"
>
DERNIER EMPRUNT N°
<?php
echo
$equipment_loan_reserved
[
0
][
"id"
]
?>
</h4>
<?php
<h4
style=
"background-color: orange;"
>
Dernier emprunt N°
<?php
echo
$equipment_loan_reserved
[
0
][
"id"
]
?>
</h4>
<?php
echo
$equipment_loan_reserved
[
0
][
'emprunt'
]
.
' → '
.
$equipment_loan_reserved
[
0
][
'retour'
]
.
PHP_EOL
;
echo
'<br>'
.
get_team_by_id
(
$pdo
,
$equipment_loan_reserved
[
0
][
'equipe'
])[
"nom"
]
.
PHP_EOL
;
echo
'<br>'
.
$equipment_loan_reserved
[
0
][
'commentaire'
]
.
PHP_EOL
;
?>
</div>
?>
</div>
<?php
}
?>
<?php
}
if
(
$equipment_loans
)
{
foreach
(
$equipment_loans
as
$loan_current
)
{
foreach
(
$equipment_loans
as
$loan_current
)
{
echo
'<div>'
.
PHP_EOL
;
if
(
$loan_current
[
"status"
]
==
STATUS_LOAN_BORROWED
)
{
echo
'<h4 style="background-color: green;">E
MPRUNT
N°'
.
$loan_current
[
"id"
]
.
'</h4>'
.
PHP_EOL
;
echo
'<h4 style="background-color: green;">E
mprunt
N°'
.
$loan_current
[
"id"
]
.
'</h4>'
.
PHP_EOL
;
}
else
{
echo
'<h4>R
ESERVATION
N°'
.
$loan_current
[
"id"
]
.
'</h4>'
.
PHP_EOL
;
echo
'<h4>R
éservation
N°'
.
$loan_current
[
"id"
]
.
'</h4>'
.
PHP_EOL
;
}
echo
$loan_current
[
'emprunt'
]
.
' → '
.
$loan_current
[
'retour'
]
.
PHP_EOL
;
echo
'<span class="option-right">'
;
...
...
@@ -280,6 +285,9 @@ function loan_list_container($pdo, $equipment_loans, $equipment_loan_reserved=fa
echo
'<br>'
.
$loan_current
[
'commentaire'
]
.
PHP_EOL
;
echo
'</div>'
.
PHP_EOL
;
}
}
?>
</div>
<?php
}
?>
</div>
<?php
}
?>
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