Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
joyride phase2
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
Jansa Jose
joyride phase2
Commits
287baa2f
Commit
287baa2f
authored
Jan 04, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
change dashboard See merge request
!72
parents
59bab82d
ee968ae4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
11 deletions
+14
-11
general_helper.php
application/helpers/general_helper.php
+12
-8
Dashboard.php
application/views/Home/Dashboard.php
+2
-2
addbanner.php
application/views/Managebanner/addbanner.php
+0
-1
tukkibi_1546594167_7040690-desktop-backgrounds-hd.jpg
...ers/tukkibi_1546594167_7040690-desktop-backgrounds-hd.jpg
+0
-0
tukkibi_1546594182_7040690-desktop-backgrounds-hd.jpg
...ers/tukkibi_1546594182_7040690-desktop-backgrounds-hd.jpg
+0
-0
No files found.
application/helpers/general_helper.php
View file @
287baa2f
...
@@ -4,10 +4,9 @@
...
@@ -4,10 +4,9 @@
function
get_total_customers
(){
function
get_total_customers
(){
$CI
=
&
get_instance
();
$CI
=
&
get_instance
();
$CI
->
db
->
select
(
"COUNT(*) AS tot_customers"
);
$CI
->
db
->
select
(
"COUNT(*) AS tot_customers"
);
$CI
->
db
->
where
(
'status'
,
'1'
);
$CI
->
db
->
where
(
'users.status'
,
1
);
$CI
->
db
->
join
(
'verification'
,
'verification.user_id=users.id'
,
'left'
);
$rs
=
$CI
->
db
->
get
(
'users'
);
$rs
=
$CI
->
db
->
get
(
'users'
);
// echo $CI->db->last_query();
// die();
return
$rs
->
row
()
->
tot_customers
;
return
$rs
->
row
()
->
tot_customers
;
}
}
...
@@ -79,11 +78,16 @@ function get_total_amount(){
...
@@ -79,11 +78,16 @@ function get_total_amount(){
function
get_total_drivers
(){
function
get_total_drivers
(){
$CI
=
&
get_instance
();
$CI
=
&
get_instance
();
$rs
=
$CI
->
db
->
select
(
'COUNT(*) AS tot_drivers'
)
->
where
(
'status'
,
1
)
->
get
(
'booking_approve'
);
//$rs = $CI->db->select('COUNT(*) AS tot_drivers')->where('status',1)->get('booking_approve');
//$rs = $CI->db->select('type')->where('id',$id)->get('verification')->row();
// echo $CI->db->last_query();
// die();
$CI
->
db
->
select
(
"DISTINCT(COUNT(booking_approve.id)) AS tot_drivers"
);
return
$rs
->
row
()
->
tot_drivers
;
$CI
->
db
->
join
(
'users'
,
'users.id = booking_approve.driver_id'
);
$CI
->
db
->
where
(
'booking_approve.status'
,
1
);
$CI
->
db
->
where
(
'driver_id !='
,
'NULL'
);
$CI
->
db
->
where
(
'users.status'
,
'1'
);
$query
=
$CI
->
db
->
get
(
'booking_approve'
);
return
$query
->
row
()
->
tot_drivers
;
}
}
...
...
application/views/Home/Dashboard.php
View file @
287baa2f
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<p>
Total Bookings
</p>
<p>
Total Bookings
</p>
</div>
</div>
<div
class=
"icon"
>
<div
class=
"icon"
>
<i
class=
"ion ion-
stats-bars
"
></i>
<i
class=
"ion ion-
bag
"
></i>
</div>
</div>
<a
href=
"
<?php
echo
base_url
();
?>
Booking/view_allbooking"
class=
"small-box-footer"
>
More info
<i
class=
"fa fa-arrow-circle-right"
></i></a>
<a
href=
"
<?php
echo
base_url
();
?>
Booking/view_allbooking"
class=
"small-box-footer"
>
More info
<i
class=
"fa fa-arrow-circle-right"
></i></a>
</div>
</div>
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<p>
Completed Bookings
</p>
<p>
Completed Bookings
</p>
</div>
</div>
<div
class=
"icon"
>
<div
class=
"icon"
>
<i
class=
"ion ion-
stats-bars
"
></i>
<i
class=
"ion ion-
bag
"
></i>
</div>
</div>
<a
href=
"
<?php
echo
base_url
();
?>
Booking/view_completedbooking"
class=
"small-box-footer"
>
More info
<i
class=
"fa fa-arrow-circle-right"
></i></a>
<a
href=
"
<?php
echo
base_url
();
?>
Booking/view_completedbooking"
class=
"small-box-footer"
>
More info
<i
class=
"fa fa-arrow-circle-right"
></i></a>
</div>
</div>
...
...
application/views/Managebanner/addbanner.php
View file @
287baa2f
...
@@ -29,7 +29,6 @@
...
@@ -29,7 +29,6 @@
<!-- form -->
<!-- form -->
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<!-- general form elements -->
<!-- general form elements -->
<div
class=
"box"
>
<div
class=
"box"
>
...
...
assets/uploads/banners/tukkibi_1546594167_7040690-desktop-backgrounds-hd.jpg
0 → 100644
View file @
287baa2f
345 KB
assets/uploads/banners/tukkibi_1546594182_7040690-desktop-backgrounds-hd.jpg
0 → 100644
View file @
287baa2f
345 KB
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