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
4aaf92aa
Commit
4aaf92aa
authored
6 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.techware.co.in/timeout/timeOut
into tobin
parents
7f1256e9
00848737
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
4 deletions
+25
-4
Webservice.php
application/controllers/Webservice.php
+1
-2
bookingStatusCrone.php
application/controllers/bookingStatusCrone.php
+23
-0
Validation_app_model.php
application/models/Validation_app_model.php
+1
-2
Webservice_model.php
application/models/Webservice_model.php
+0
-0
No files found.
application/controllers/Webservice.php
View file @
4aaf92aa
...
...
@@ -421,4 +421,4 @@ class Webservice extends CI_Controller {
}
?>
\ No newline at end of file
?>
This diff is collapsed.
Click to expand it.
application/controllers/bookingStatusCrone.php
0 → 100644
View file @
4aaf92aa
<?php
$conn
=
mysqli_connect
(
"192.168.140.123"
,
"root"
,
"Golden_123"
,
"tobin_eventTimeOut"
);
if
(
$conn
->
connect_error
){
return
;
}
$todate
=
date
(
'Y-m-d'
);
$sql
=
"UPDATE booking
INNER JOIN event_date_time ON event_date_time.id = booking.event_date_id
SET booking.status = '2'
WHERE event_date_time.date < '
$todate
' and event_date_time.time < now() and booking.status='1'"
;
$result
=
mysqli_query
(
$conn
,
$sql
);
$date_time
=
date
(
'Y-m-d H:i:sa'
,
strtotime
(
'- 15 minutes'
));
$sql
=
"UPDATE booking
INNER JOIN transaction ON transaction.booking_id = booking.bookId
SET booking.status = '5',transaction.status='3'
WHERE transaction.datetime > '
$date_time
'"
;
$conn
->
close
();
?>
This diff is collapsed.
Click to expand it.
application/models/Validation_app_model.php
View file @
4aaf92aa
...
...
@@ -160,4 +160,4 @@ class Validation_app_model extends CI_Model {
return
array
(
'state'
=>
$state
,
'response'
=>
$error_key
);
}
}
?>
\ No newline at end of file
?>
This diff is collapsed.
Click to expand it.
application/models/Webservice_model.php
View file @
4aaf92aa
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