Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
TimeOut
TimeOutAdmin
Commits
d7ad2cda
Commit
d7ad2cda
authored
Nov 19, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
t : checker booking list bug fix
parent
22bf80eb
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
14 deletions
+12
-14
Api.php
application/controllers/Api.php
+3
-0
Event.php
application/controllers/Event.php
+2
-3
Webservice.php
application/controllers/Webservice.php
+4
-6
Organizer_model.php
application/models/Organizer_model.php
+2
-4
viewProvider.php
application/views/Provider/viewProvider.php
+1
-1
No files found.
application/controllers/Api.php
View file @
d7ad2cda
...
@@ -699,6 +699,9 @@ class Api extends CI_Controller {
...
@@ -699,6 +699,9 @@ class Api extends CI_Controller {
}
}
public
function
addCard
(){
public
function
addCard
(){
$settings
=
getSettings
();
$redUrl
=
$settings
[
'web_base_url'
];
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$reqData
=
$this
->
decrypt
(
$data
[
'requestData'
],
$this
->
local_key
,
$this
->
local_iv
);
$reqData
=
$this
->
decrypt
(
$data
[
'requestData'
],
$this
->
local_key
,
$this
->
local_iv
);
if
(
empty
(
$reqData
)
||
empty
(
$reqData
=
json_decode
(
$reqData
,
true
))
||
if
(
empty
(
$reqData
)
||
empty
(
$reqData
=
json_decode
(
$reqData
,
true
))
||
...
...
application/controllers/Event.php
View file @
d7ad2cda
...
@@ -250,7 +250,7 @@ class Event extends CI_Controller {
...
@@ -250,7 +250,7 @@ class Event extends CI_Controller {
$err
=
1
;
$err
=
1
;
$errMsg
=
'Provide Event Name (English)'
;
$errMsg
=
'Provide Event Name (English)'
;
}
}
else
if
(
$err
==
0
&&
(
!
isset
(
$_POST
[
'event_description_EN'
])
||
$_POST
[
'event_description_EN'
]
==
''
)){
else
if
(
$err
==
0
&&
(
!
isset
(
$_POST
[
'event_description_EN'
])
||
$_POST
[
'event_description_EN'
]
==
''
)){
$err
=
1
;
$err
=
1
;
$errMsg
=
'Provide Event Description (English)'
;
$errMsg
=
'Provide Event Description (English)'
;
}
}
...
@@ -279,7 +279,7 @@ class Event extends CI_Controller {
...
@@ -279,7 +279,7 @@ class Event extends CI_Controller {
}
}
$_POST
[
'has_payment'
]
=
(
isset
(
$_POST
[
'has_payment'
])
&&
$_POST
[
'has_payment'
]
==
1
)
?
'1'
:
'0'
;
$_POST
[
'has_payment'
]
=
(
isset
(
$_POST
[
'has_payment'
])
&&
$_POST
[
'has_payment'
]
==
1
)
?
'1'
:
'0'
;
$_POST
[
'approve_booking'
]
=
(
isset
(
$_POST
[
'approve_booking'
])
&&
$_POST
[
'approve_booking'
]
==
1
)
?
'1'
:
'0'
;
$_POST
[
'approve_booking'
]
=
(
isset
(
$_POST
[
'approve_booking'
])
&&
$_POST
[
'approve_booking'
]
==
1
)
?
1
:
0
;
$_POST
[
'seat_pricing'
]
=
$_POST
[
'custom_seat_layout'
]
=
''
;
$_POST
[
'seat_pricing'
]
=
$_POST
[
'custom_seat_layout'
]
=
''
;
if
(
isset
(
$_POST
[
'fare_type'
])
&&
$_POST
[
'fare_type'
]
==
1
){
if
(
isset
(
$_POST
[
'fare_type'
])
&&
$_POST
[
'fare_type'
]
==
1
){
...
@@ -309,7 +309,6 @@ class Event extends CI_Controller {
...
@@ -309,7 +309,6 @@ class Event extends CI_Controller {
$_POST
[
'max_booking'
]
=
(
isset
(
$_POST
[
'max_booking'
])
&&
!
empty
(
$_POST
[
'max_booking'
]))
?
$_POST
[
'max_booking'
]
=
(
isset
(
$_POST
[
'max_booking'
])
&&
!
empty
(
$_POST
[
'max_booking'
]))
?
$_POST
[
'max_booking'
]
:
'14'
;
$_POST
[
'max_booking'
]
:
'14'
;
$provider
=
(
$this
->
session
->
userdata
[
'user_type'
]
==
1
)
?
'1'
:
$this
->
session
->
userdata
[
'id'
];
$eventData
=
array
(
'venue_id'
=>
$_POST
[
'venue_id'
],
$eventData
=
array
(
'venue_id'
=>
$_POST
[
'venue_id'
],
'category_id'
=>
$_POST
[
'category_id'
],
'category_id'
=>
$_POST
[
'category_id'
],
'provider_id'
=>
$provider
,
'provider_id'
=>
$provider
,
...
...
application/controllers/Webservice.php
View file @
d7ad2cda
...
@@ -615,6 +615,7 @@ class Webservice extends CI_Controller {
...
@@ -615,6 +615,7 @@ class Webservice extends CI_Controller {
}
}
}
}
/*********************************** START Hotel API ****************************************/
public
function
get_hotel_city_list
(){
public
function
get_hotel_city_list
(){
$data
=
$_GET
;
$data
=
$_GET
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
...
@@ -691,10 +692,10 @@ class Webservice extends CI_Controller {
...
@@ -691,10 +692,10 @@ class Webservice extends CI_Controller {
$this
->
errorResponse
(
$res
[
'code'
],
$res
[
'message'
]);
$this
->
errorResponse
(
$res
[
'code'
],
$res
[
'message'
]);
}
}
}
}
/*********************************** END Hotel API ****************************************/
/*******************************Flight API******************************************/
/********************************** START Flight API ***************************************/
public
function
flight_authenticate
(){
public
function
flight_authenticate
(){
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
=
(
array
)
json_decode
(
file_get_contents
(
'php://input'
));
$data
[
'auth_token'
]
=
$this
->
auth_token
;
$data
[
'auth_token'
]
=
$this
->
auth_token
;
...
@@ -782,9 +783,6 @@ class Webservice extends CI_Controller {
...
@@ -782,9 +783,6 @@ class Webservice extends CI_Controller {
$this
->
errorResponse
(
$res
[
'code'
],
$res
[
'message'
]);
$this
->
errorResponse
(
$res
[
'code'
],
$res
[
'message'
]);
}
}
}
}
/******************************* END Flight API******************************************/
}
}
?>
?>
application/models/Organizer_model.php
View file @
d7ad2cda
...
@@ -1065,8 +1065,7 @@ class Organizer_model extends CI_Model {
...
@@ -1065,8 +1065,7 @@ class Organizer_model extends CI_Model {
$count
=
$this
->
db
->
get_where
(
'checker'
,
array
(
'id'
=>
$checker_id
,
'status'
=>
'1'
))
->
num_rows
();
$count
=
$this
->
db
->
get_where
(
'checker'
,
array
(
'id'
=>
$checker_id
,
'status'
=>
'1'
))
->
num_rows
();
if
(
$count
>
0
){
if
(
$count
>
0
){
$sql
=
"SELECT BOOK.bookId AS booking_id
$sql
=
"SELECT BOOK.bookId AS booking_id
FROM checker_bookings AS CBOOK
FROM booking AS BOOK
INNER JOIN booking AS BOOK ON (BOOK.bookId=CBOOK.booking_id)
INNER JOIN events AS EVT ON (EVT.event_id=BOOK.event_id)
INNER JOIN events AS EVT ON (EVT.event_id=BOOK.event_id)
INNER JOIN checker AS CHK ON (CHK.provider_id=EVT.provider_id)
INNER JOIN checker AS CHK ON (CHK.provider_id=EVT.provider_id)
WHERE CHK.id='
$checker_id
' AND BOOK.status='1'"
;
WHERE CHK.id='
$checker_id
' AND BOOK.status='1'"
;
...
@@ -1082,8 +1081,7 @@ class Organizer_model extends CI_Model {
...
@@ -1082,8 +1081,7 @@ class Organizer_model extends CI_Model {
$sql
=
"SELECT TEVT.event_name,TCAT.category_name,CUST.name,EDATE.date,
$sql
=
"SELECT TEVT.event_name,TCAT.category_name,CUST.name,EDATE.date,
EDATE.time,BOOK.amount,BOOK.bookId AS booking_id
EDATE.time,BOOK.amount,BOOK.bookId AS booking_id
FROM checker_bookings AS CBOOK
FROM booking AS BOOK
INNER JOIN booking AS BOOK ON (BOOK.bookId=CBOOK.booking_id)
INNER JOIN events AS EVT ON (EVT.event_id=BOOK.event_id)
INNER JOIN events AS EVT ON (EVT.event_id=BOOK.event_id)
INNER JOIN checker AS CHK ON (CHK.provider_id=EVT.provider_id)
INNER JOIN checker AS CHK ON (CHK.provider_id=EVT.provider_id)
INNER JOIN event_date_time AS EDATE ON (EDATE.event_id=EVT.event_id)
INNER JOIN event_date_time AS EDATE ON (EDATE.event_id=EVT.event_id)
...
...
application/views/Provider/viewProvider.php
View file @
d7ad2cda
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<th
class=
"hidden"
>
ID
</th>
<th
class=
"hidden"
>
ID
</th>
<th
width=
"80px;"
>
Organizer
</th>
<th
width=
"80px;"
>
Organizer
</th>
<th
width=
"80px;"
>
User Name
</th>
<th
width=
"80px;"
>
User Name
</th>
<th
width=
"
10
0px;"
>
Email_id
</th>
<th
width=
"
8
0px;"
>
Email_id
</th>
<th
width=
"70px;"
>
Phone
</th>
<th
width=
"70px;"
>
Phone
</th>
<th
width=
"60px;"
>
Status
</th>
<th
width=
"60px;"
>
Status
</th>
<th
width=
"600px;"
>
Action
</th>
<th
width=
"600px;"
>
Action
</th>
...
...
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