Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
don
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
LQDN Adminsys
don
Commits
3bd7fd65
Verified
Commit
3bd7fd65
authored
Nov 06, 2018
by
Guinness
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix template. Now counterparts should work.
parent
2cd1f724
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/controller/perso.php
app/controller/perso.php
+3
-3
app/view/user/perso.html
app/view/user/perso.html
+1
-1
No files found.
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
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