Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IPok
IPok_Web
Commits
b9fc11f4
Commit
b9fc11f4
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jansa'
parents
f7384e38
69a575c2
master
…
client
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
Webservice.php
admin/application/controllers/Webservice.php
+3
-1
Webservice_model.php
admin/application/models/Webservice_model.php
+1
-0
No files found.
admin/application/controllers/Webservice.php
View file @
b9fc11f4
...
...
@@ -1630,6 +1630,7 @@ class Webservice extends CI_Controller {
if
(
$end
<=
$end_time
&&
(
$initial
>
strtotime
(
$nowin_server_addoffset
))){
$time
=
date
(
'h:i a'
,
$initial
)
.
' - '
.
date
(
'h:i a'
,
$end
);
$result
=
$this
->
Webservice_model
->
is_waiting_list_used
(
$data
,
$time
);
print_r
(
$result
);
exit
();
if
(
$result
==
false
||
count
(
$result
)
<=
1
){
array_push
(
$res
[
'data'
][
'time_interval'
],
array
(
'time'
=>
date
(
'h:i a'
,
$initial
)
.
' - '
.
date
(
'h:i a'
,
$end
)));
}
...
...
@@ -1639,7 +1640,8 @@ class Webservice extends CI_Controller {
if
(
$end
<=
$end_time
&&
(
$initial
>
strtotime
(
$nowin_server_addoffset
))){
$time
=
date
(
'h:i a'
,
$initial
)
.
' - '
.
date
(
'h:i a'
,
$end
);
$result
=
$this
->
Webservice_model
->
is_waiting_list_used
(
$data
,
$time
);
if
(
$result
!=
false
||
count
(
$result
)
<=
1
){
print_r
(
$result
);
exit
();
if
(
$result
==
false
||
count
(
$result
)
<=
1
){
array_push
(
$res
[
'data'
][
'time_interval'
],
array
(
'time'
=>
date
(
'h:i a'
,
$initial
)
.
' - '
.
date
(
'h:i a'
,
$end
)));
}
}
...
...
This diff is collapsed.
Click to expand it.
admin/application/models/Webservice_model.php
View file @
b9fc11f4
...
...
@@ -1879,6 +1879,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
function
is_waiting_list_used
(
$data
,
$time
){
$query
=
$this
->
db
->
get_where
(
'tbl_booking'
,
array
(
'doctor_id'
=>
$data
[
'doctor_id'
],
'clinic_id'
=>
$data
[
'clinic_id'
],
'date'
=>
$data
[
'date'
],
'time'
=>
$time
))
->
result
();
echo
$this
->
db
->
last_query
();
if
(
count
(
$query
)
>
0
){
return
$query
;
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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