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
996e9604
Commit
996e9604
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
available dates
parent
06653b7d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Webservice.php
admin/application/controllers/Webservice.php
+1
-6
Webservice_model.php
admin/application/models/Webservice_model.php
+5
-0
No files found.
admin/application/controllers/Webservice.php
View file @
996e9604
...
...
@@ -1835,7 +1835,7 @@ class Webservice extends CI_Controller {
}
else
{
$db_day_array
[]
=
[];
}
$getmonth
=
$this
->
get_month
(
$data
[
'month'
]);
$getmonth
=
$this
->
Webservice_model
->
get_month
(
$data
[
'month'
]);
$time
=
strtotime
(
$getmonth
.
$data
[
'year'
]);
$search_form
=
date
(
'Y-m-01'
,
$time
);
...
...
@@ -6754,11 +6754,6 @@ class Webservice extends CI_Controller {
print
json_encode
(
$res
);
}
Public
function
get_month
(
$day
){
if
(
$day
==
'1'
){
$dayid
=
'January'
;}
elseif
(
$day
==
'2'
)
{
$dayid
=
'February'
;}
elseif
(
$day
==
'3'
)
{
$dayid
=
'March'
;}
elseif
(
$day
==
'4'
)
{
$dayid
=
'April'
;}
elseif
(
$day
==
'5'
)
{
$dayid
=
'May'
;}
elseif
(
$day
==
'6'
)
{
$dayid
=
'June'
;}
elseif
(
$day
==
'7'
)
{
$dayid
=
'July'
;}
elseif
(
$day
==
'8'
)
{
$dayid
=
'August'
;}
elseif
(
$day
==
'9'
)
{
$dayid
=
'September'
;}
elseif
(
$day
==
'10'
)
{
$dayid
=
'October'
;}
elseif
(
$day
==
'11'
)
{
$dayid
=
'November'
;}
elseif
(
$day
==
'12'
)
{
$dayid
=
'December'
;}
return
$dayid
;
}
public
function
check_wait_listed
(){
header
(
'Content-type: application/json'
);
...
...
This diff is collapsed.
Click to expand it.
admin/application/models/Webservice_model.php
View file @
996e9604
...
...
@@ -3468,6 +3468,11 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
return
$result
;
}
Public
function
get_month
(
$day
){
if
(
$day
==
'1'
){
$dayid
=
'January'
;}
elseif
(
$day
==
'2'
)
{
$dayid
=
'February'
;}
elseif
(
$day
==
'3'
)
{
$dayid
=
'March'
;}
elseif
(
$day
==
'4'
)
{
$dayid
=
'April'
;}
elseif
(
$day
==
'5'
)
{
$dayid
=
'May'
;}
elseif
(
$day
==
'6'
)
{
$dayid
=
'June'
;}
elseif
(
$day
==
'7'
)
{
$dayid
=
'July'
;}
elseif
(
$day
==
'8'
)
{
$dayid
=
'August'
;}
elseif
(
$day
==
'9'
)
{
$dayid
=
'September'
;}
elseif
(
$day
==
'10'
)
{
$dayid
=
'October'
;}
elseif
(
$day
==
'11'
)
{
$dayid
=
'November'
;}
elseif
(
$day
==
'12'
)
{
$dayid
=
'December'
;}
return
$dayid
;
}
public
function
get_doctor_consultation_configuration
(
$doctor_id
){
$this
->
db
->
select
(
'consultation_duration,price as consultation_price,domiciliary_status,accept_return,return_timeperiod as return_consultation_time_period'
);
...
...
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