Skip to content
GitLab
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
3bd7fd65
Verified
Commit
3bd7fd65
authored
Nov 06, 2018
by
Guinness
Browse files
Fix template. Now counterparts should work.
parent
2cd1f724
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/controller/perso.php
View file @
3bd7fd65
...
...
@@ -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 @
3bd7fd65
...
...
@@ -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') }}"
>
...
...
Guinness
@Guinness
mentioned in issue
#56 (closed)
·
Nov 06, 2018
mentioned in issue
#56 (closed)
mentioned in issue #56
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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