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
LQDN Adminsys
don
Commits
1b14a947
Commit
1b14a947
authored
Nov 06, 2018
by
Guinness
Committed by
Okhin
Nov 08, 2018
Browse files
Fix template. Now counterparts should work.
parent
f5e3f545
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controller/perso.php
View file @
1b14a947
...
...
@@ -390,13 +390,13 @@ class Perso extends Controller
$db
->
query
(
"INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status,commentaire) VALUES ('"
.
$f3
->
get
(
'SESSION.id'
)
.
"',NOW(),'piplome','"
.
\
Utils
::
asl
(
$piplome_id
)
.
"','"
.
\
Utils
::
asl
(
$adresse_id
)
.
"',1, '"
.
\
Utils
::
asl
(
$commentaire
)
.
"')"
);
break
;
case
'pibag'
:
$db
->
query
(
"INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status) VALUES ('"
.
$f3
->
get
(
'SESSION.id'
)
.
"',NOW(),'pibag','','"
.
\
Utils
::
asl
(
$adresse_id
)
.
"',1, '"
.
\
Utils
::
asl
(
$commentaire
)
.
"')"
);
$db
->
query
(
"INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status
,commentaire
) VALUES ('"
.
$f3
->
get
(
'SESSION.id'
)
.
"',NOW(),'pibag','','"
.
\
Utils
::
asl
(
$adresse_id
)
.
"',1, '"
.
\
Utils
::
asl
(
$commentaire
)
.
"')"
);
break
;
case
'pishirt'
:
$db
->
query
(
"INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status) VALUES ('"
.
$f3
->
get
(
'SESSION.id'
)
.
"',NOW(),'pishirt','"
.
\
Utils
::
asl
(
$taille
)
.
"','"
.
\
Utils
::
asl
(
$adresse_id
)
.
"',1, '"
.
\
Utils
::
asl
(
$commentaire
)
.
"')"
);
$db
->
query
(
"INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status
,commentaire
) VALUES ('"
.
$f3
->
get
(
'SESSION.id'
)
.
"',NOW(),'pishirt','"
.
\
Utils
::
asl
(
$taille
)
.
"','"
.
\
Utils
::
asl
(
$adresse_id
)
.
"',1, '"
.
\
Utils
::
asl
(
$commentaire
)
.
"')"
);
break
;
case
'hoopie'
:
$db
->
query
(
"INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status) VALUES ('"
.
$f3
->
get
(
'SESSION.id'
)
.
"',NOW(),'hoodie','"
.
\
Utils
::
asl
(
$taille_h
)
.
"','"
.
\
Utils
::
asl
(
$adresse_id
)
.
"',1, '"
.
\
Utils
::
asl
(
$commentaire
)
.
"')"
);
$db
->
query
(
"INSERT INTO contreparties (user_id,datec,quoi,taille,adresse_id,status
,commentaire
) VALUES ('"
.
$f3
->
get
(
'SESSION.id'
)
.
"',NOW(),'hoodie','"
.
\
Utils
::
asl
(
$taille_h
)
.
"','"
.
\
Utils
::
asl
(
$adresse_id
)
.
"',1, '"
.
\
Utils
::
asl
(
$commentaire
)
.
"')"
);
}
}
// Puis diminution du cumul de la valeur des contreparties
...
...
app/view/user/perso.html
View file @
1b14a947
...
...
@@ -461,7 +461,7 @@
<div
class=
"modal-footer"
>
<input
type=
"hidden"
name=
"csrf"
value=
"{{ @CSRF }}"
>
<repeat
group=
"{{@GET}}"
key=
"{{ @key }}"
value=
"{{ @value }}"
>
<input
type=
"hidden"
name=
"{{ @key }}"
value=
"@value"
>
<input
type=
"hidden"
name=
"{{ @key }}"
value=
"
{{
@value
}}
"
>
</repeat>
<a
href=
"{{ 'perso' | alias }}"
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
Close
</a>
<input
type=
"submit"
class=
"btn btn-primary"
value=
"{{ _('Valider') }}"
>
...
...
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