Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcarfixers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
dcarfixers
Commits
9e60a313
Commit
9e60a313
authored
Aug 27, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small changes
parent
449b6c51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
10 deletions
+1
-10
Vehicle.php
application/controllers/Vehicle.php
+0
-5
Webservices.php
application/controllers/Webservices.php
+1
-3
footer-script.php
application/views/Templates/footer-script.php
+0
-2
No files found.
application/controllers/Vehicle.php
View file @
9e60a313
...
@@ -387,7 +387,6 @@ class Vehicle extends CI_Controller {
...
@@ -387,7 +387,6 @@ class Vehicle extends CI_Controller {
$results
=
'<option value="-1">No Trims</option>'
;
$results
=
'<option value="-1">No Trims</option>'
;
if
(
$result
){
if
(
$result
){
$trim
=
array
();
$trim
=
array
();
// $results = '<option value="-1">Choose Vehicle Trim</option>';
$results
=
''
;
$results
=
''
;
foreach
(
$result
as
$key
=>
$trim
)
{
foreach
(
$result
as
$key
=>
$trim
)
{
if
(
empty
(
$trim
->
trim
)){
if
(
empty
(
$trim
->
trim
)){
...
@@ -403,14 +402,10 @@ class Vehicle extends CI_Controller {
...
@@ -403,14 +402,10 @@ class Vehicle extends CI_Controller {
public
function
get_all_activity
(){
public
function
get_all_activity
(){
$data
=
$_GET
;
$data
=
$_GET
;
$columns
=
array
(
"vehicles.year"
,
"vehicles_brand.maker"
,
"vehicle_models.model_name"
,
"vehicles.trim"
,
"vehicles.engine"
,
"vehicles.status"
);
$columns
=
array
(
"vehicles.year"
,
"vehicles_brand.maker"
,
"vehicle_models.model_name"
,
"vehicles.trim"
,
"vehicles.engine"
,
"vehicles.status"
);
$value
[
'search'
]
=
$data
[
'search'
][
'value'
];
$value
[
'search'
]
=
$data
[
'search'
][
'value'
];
$value
[
'start'
]
=
$data
[
'start'
];
$value
[
'start'
]
=
$data
[
'start'
];
$value
[
'length'
]
=
$data
[
'length'
];
$value
[
'length'
]
=
$data
[
'length'
];
// $search_box = array('bookingId','name','operatorName','travelDate','mobile','amount','payType','Action');
$limit
=
count
(
$data
[
'columns'
]);
$limit
=
count
(
$data
[
'columns'
]);
$value
[
'where'
]
=
''
;
$value
[
'where'
]
=
''
;
...
...
application/controllers/Webservices.php
View file @
9e60a313
...
@@ -32,7 +32,6 @@
...
@@ -32,7 +32,6 @@
header
(
'Content-type: application/json'
);
header
(
'Content-type: application/json'
);
$post
=
file_get_contents
(
"php://input"
);
$post
=
file_get_contents
(
"php://input"
);
$postData
=
json_decode
(
$post
,
true
);
$postData
=
json_decode
(
$post
,
true
);
//pr($postData);
$this
->
load
->
model
(
'Customer_model'
);
$this
->
load
->
model
(
'Customer_model'
);
$respArr
=
array
(
'status'
=>
'0'
,
'message'
=>
'Required Fields are empty.'
);
$respArr
=
array
(
'status'
=>
'0'
,
'message'
=>
'Required Fields are empty.'
);
if
(
!
isset
(
$postData
[
'email'
])
||
empty
(
$postData
[
'email'
])
||
if
(
!
isset
(
$postData
[
'email'
])
||
empty
(
$postData
[
'email'
])
||
...
@@ -144,7 +143,7 @@
...
@@ -144,7 +143,7 @@
$respArr
[
'status'
]
=
'2'
;
$respArr
[
'status'
]
=
'2'
;
$respArr
[
'message'
]
=
'Email Address already in use'
;
$respArr
[
'message'
]
=
'Email Address already in use'
;
echo
json_encode
(
$respArr
);
exit
;
echo
json_encode
(
$respArr
);
exit
;
}
else
if
(
$custResp
==
'3'
){
}
else
if
(
$custResp
==
'3'
){
$respArr
[
'status'
]
=
'2'
;
$respArr
[
'status'
]
=
'2'
;
$respArr
[
'message'
]
=
'Phone already in use'
;
$respArr
[
'message'
]
=
'Phone already in use'
;
echo
json_encode
(
$respArr
);
exit
;
echo
json_encode
(
$respArr
);
exit
;
...
@@ -425,7 +424,6 @@
...
@@ -425,7 +424,6 @@
}
}
echo
json_encode
(
$respArr
);
exit
;
echo
json_encode
(
$respArr
);
exit
;
}
}
// addCustomerCar
// addCustomerCar
public
function
addCustomerCar
(){
public
function
addCustomerCar
(){
header
(
'Content-type: application/json'
);
header
(
'Content-type: application/json'
);
...
...
application/views/Templates/footer-script.php
View file @
9e60a313
...
@@ -67,8 +67,6 @@
...
@@ -67,8 +67,6 @@
});
});
var
schedulingGrid
=
$
(
'.dataTable-custom'
)
.
DataTable
({
var
schedulingGrid
=
$
(
'.dataTable-custom'
)
.
DataTable
({
/*"ordering" : $(this).data("ordering"),
"order": [[ 0, "desc" ]],*/
"processing"
:
true
,
"processing"
:
true
,
"serverSide"
:
true
,
"serverSide"
:
true
,
"ajax"
:
"<?php echo base_url(); ?>"
+
$
(
this
)
.
data
(
"ajax"
),
"ajax"
:
"<?php echo base_url(); ?>"
+
$
(
this
)
.
data
(
"ajax"
),
...
...
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