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
82e360c0
Commit
82e360c0
authored
Mar 20, 2019
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
8ba0434a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
71 additions
and
2 deletions
+71
-2
Payment.php
application/controllers/Payment.php
+65
-0
viewSettings.php
application/views/Settings/viewSettings.php
+1
-1
left-menu.php
application/views/Templates/left-menu.php
+5
-1
payment_details.php
application/views/payment/payment_details.php
+0
-0
No files found.
application/controllers/Payment.php
0 → 100644
View file @
82e360c0
<?php
defined
(
'BASEPATH'
)
OR
exit
(
'No direct script access allowed'
);
class
Payment
extends
CI_Controller
{
public
function
__construct
()
{
parent
::
__construct
();
date_default_timezone_set
(
"Asia/Kolkata"
);
$this
->
load
->
model
(
'Provider_model'
);
if
(
!
$this
->
session
->
userdata
(
'logged_in'
))
{
redirect
(
base_url
(
'Login'
));
}
}
function
getPayDetails
(){
$provider_id
=
''
;
if
(
$this
->
session
->
userdata
(
'user_type'
)
==
1
){
$provider_id
=
(
isset
(
$_POST
[
'provider_id'
])
&&!
empty
(
$_POST
[
'provider_id'
]))
?
$_POST
[
'provider_id'
]
:
''
;
}
else
{
$provider_id
=
$this
->
session
->
userdata
(
'id'
);
$template
[
'provider_id'
]
=
$provider_id
;
}
$template
[
'page'
]
=
'Payment/payment_details'
;
$template
[
'page_desc'
]
=
"Payment Details"
;
$template
[
'page_title'
]
=
"Payment Management"
;
$template
[
'menu'
]
=
"Payment Management"
;
$template
[
'sub_menu'
]
=
"Payment Details"
;
$template
[
'provider_id'
]
=
$provider_id
;
$template
[
'user_type'
]
=
$this
->
session
->
userdata
(
'user_type'
);
$template
[
'company_data'
]
=
$this
->
Provider_model
->
getProviderData
();
$template
[
'payment_details'
]
=
$this
->
Provider_model
->
getPayDetails
(
$provider_id
);
$template
[
'broker_pay_details'
]
=
$this
->
Provider_model
->
getBrokerPayDetails
(
$provider_id
);
$this
->
load
->
view
(
'template'
,
$template
);
}
function
updatePaymentDate
(){
$retStatus
=
array
(
'status'
=>
'0'
);
if
(
!
isset
(
$_POST
)
||
empty
(
$_POST
)
||
!
isset
(
$_POST
[
'broker_id'
])
||
empty
(
$_POST
[
'broker_id'
])
||
!
isset
(
$_POST
[
'last_paid_date'
])
||
empty
(
$_POST
[
'last_paid_date'
])){
echo
json_encode
(
$retStatus
);
exit
;
}
$_POST
[
'broker_id'
]
=
decode_param
(
$_POST
[
'broker_id'
]);
$_POST
[
'provider_id'
]
=
$this
->
session
->
userdata
[
'id'
];
$_POST
[
'last_paid_date'
]
=
date
(
'Y-m-d 00:00:00'
,
strtotime
(
$_POST
[
'last_paid_date'
]));
$retStatus
[
'status'
]
=
$this
->
Provider_model
->
updatePaymentDate
(
$_POST
);
if
(
$retStatus
[
'status'
]){
$data
=
$this
->
Provider_model
->
getBrokerPayDetails
(
$_POST
[
'provider_id'
]);
if
(
!
isset
(
$data
[
$_POST
[
'broker_id'
]])
||
empty
(
$data
[
$_POST
[
'broker_id'
]])){
$retStatus
[
'status'
]
=
0
;
}
else
{
$data
[
$_POST
[
'broker_id'
]][
'last_paid_date'
]
=
date
(
'd-M-Y'
,
strtotime
(
$data
[
$_POST
[
'broker_id'
]][
'last_paid_date'
]));
$retStatus
[
'data'
]
=
$data
[
$_POST
[
'broker_id'
]];
}
}
echo
json_encode
(
$retStatus
);
exit
;
}
}
?>
\ No newline at end of file
application/views/Settings/viewSettings.php
View file @
82e360c0
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"form-group col-xs-4"
>
<div
class=
"form-group col-xs-4"
>
<label>
Service Charge
</label>
<label>
Commission Per Booking
</label>
<input
type=
"text"
name=
"service_charge"
class=
"form-control required"
placeholder=
"Enter Service Charge"
value=
"
<?=
$data
[
'service_charge'
]
?>
"
>
<input
type=
"text"
name=
"service_charge"
class=
"form-control required"
placeholder=
"Enter Service Charge"
value=
"
<?=
$data
[
'service_charge'
]
?>
"
>
</div>
</div>
</div>
</div>
...
...
application/views/Templates/left-menu.php
View file @
82e360c0
<aside
class=
"main-sidebar"
>
x
<aside
class=
"main-sidebar"
>
<section
class=
"sidebar"
>
<section
class=
"sidebar"
>
<div
class=
"user-panel"
>
<div
class=
"user-panel"
>
<div
class=
"pull-left image"
>
<div
class=
"pull-left image"
>
...
@@ -137,6 +137,10 @@
...
@@ -137,6 +137,10 @@
<img
src=
"
<?=
base_url
(
"assets/images/m8.png"
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m8.png"
)
?>
"
>
<span>
Booking Details
</span></a>
<span>
Booking Details
</span></a>
</li>
</li>
<li><a
href=
"
<?=
base_url
(
'Payment/getPayDetails'
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m2.png"
)
?>
"
>
<span>
Transaction Management
</span></a>
</li>
<li>
<li>
<a
href=
"
<?=
base_url
(
'CMS'
)
?>
"
>
<a
href=
"
<?=
base_url
(
'CMS'
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m5.png"
)
?>
"
>
<img
src=
"
<?=
base_url
(
"assets/images/m5.png"
)
?>
"
>
...
...
application/views/payment/payment_details.php
0 → 100644
View file @
82e360c0
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