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
ae2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antoine
ae2
Commits
24705ca5
Commit
24705ca5
authored
Jun 13, 2013
by
Bate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Planning2
parent
645c3056
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
include/entities/planning2.inc.php
include/entities/planning2.inc.php
+18
-0
No files found.
include/entities/planning2.inc.php
View file @
24705ca5
...
...
@@ -276,6 +276,24 @@ class planning2 extends stdentity
$sql
=
new
requete
(
$this
->
db
,
"SELECT * from pl2_user_gap
WHERE id_gap = '
$gap_id
'
AND id_utilisateur = '
$user_id
'
AND
(
( start <= '"
.
date
(
"Y-m-d H:i:s"
,
$end
)
.
"'
AND start >= '"
.
date
(
"Y-m-d H:i:s"
,
$start
)
.
"'
)
OR
( end >= '"
.
date
(
"Y-m-d H:i:s"
,
$start
)
.
"'
AND end <= '"
.
date
(
"Y-m-d H:i:s"
,
$end
)
.
"'
)
)"
);
if
(
$sql
->
lines
>
0
)
return
false
;
$sql
=
new
requete
(
$this
->
db
,
"SELECT * from pl2_user_gap
JOIN pl2_gap ON pl2_gap.id_gap = pl2_user_gap.id_gap
WHERE id_utilisateur = '
$user_id
'
AND id_planning IN (SELECT id_planning FROM pl2_gap WHERE id_gap = '
$gap_id
')
AND
(
( start <= '"
.
date
(
"Y-m-d H:i:s"
,
$end
)
.
"'
...
...
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