Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nemt_backend
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
Tobin
nemt_backend
Commits
3871cc14
Commit
3871cc14
authored
Oct 16, 2018
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daily commit
parent
81c2cabb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Driver_model.php
application/models/Driver_model.php
+5
-1
login-form.php
application/views/Login/login-form.php
+1
-1
No files found.
application/models/Driver_model.php
View file @
3871cc14
...
...
@@ -22,7 +22,11 @@ class Driver_model extends CI_Model {
}
function
getDriver
(
$driver_id
=
''
){
$cond
=
(
!
empty
(
$driver_id
))
?
" AND driver_id = '
$driver_id
'"
:
""
;
$user_id
=
$this
->
session
->
userdata
(
'id'
);
if
(
$this
->
session
->
userdata
(
'user_type'
)
!=
1
){
$cond
=
" AND CMP.company_id = '
$user_id
'"
;
}
$cond
.=
(
!
empty
(
$driver_id
))
?
" AND DRV.driver_id = '
$driver_id
'"
:
""
;
$sql
=
"SELECT DRV.*, CMP.company_name, VH.vehicle_type
FROM drivers AS DRV
...
...
application/views/Login/login-form.php
View file @
3871cc14
...
...
@@ -23,7 +23,7 @@
<body
class=
"hold-transition login-page"
>
<div
class=
"login-box"
>
<div
class=
"login-logo"
>
<a
href=
"
<?php
echo
base_url
();
?>
"
><b>
Waaw
</b></a>
<a
href=
"
<?php
echo
base_url
();
?>
"
><b>
NEMT
</b></a>
</div>
<!-- /.login-logo -->
<div
class=
"login-box-body"
>
<p
class=
"login-box-msg"
>
Sign in to start your session
</p>
...
...
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