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
0f8c5e10
Commit
0f8c5e10
authored
Dec 19, 2018
by
Tobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
daily commit
parent
b6616424
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
447 additions
and
38 deletions
+447
-38
Issue.php
application/controllers/Issue.php
+95
-6
Issue_model.php
application/models/Issue_model.php
+39
-4
issueForm.php
application/views/Issue/issueForm.php
+146
-6
viewIssues.php
application/views/Issue/viewIssues.php
+14
-6
custom-style.css
assets/css/custom-style.css
+51
-2
custom-script.js
assets/js/custom-script.js
+87
-2
tobin_dcarfixers.sql
sql/tobin_dcarfixers.sql
+15
-12
No files found.
application/controllers/Issue.php
View file @
0f8c5e10
...
@@ -20,7 +20,7 @@ class Issue extends CI_Controller {
...
@@ -20,7 +20,7 @@ class Issue extends CI_Controller {
$template
[
'pTitle'
]
=
"Add Issue"
;
$template
[
'pTitle'
]
=
"Add Issue"
;
$template
[
'pDescription'
]
=
"Create New Issue"
;
$template
[
'pDescription'
]
=
"Create New Issue"
;
$template
[
'issue_data'
]
=
$this
->
Issue_model
->
getIssue
();
$template
[
'issue_data'
]
=
$this
->
Issue_model
->
getIssue
s
();
$this
->
load
->
view
(
'template'
,
$template
);
$this
->
load
->
view
(
'template'
,
$template
);
}
}
...
@@ -31,7 +31,7 @@ class Issue extends CI_Controller {
...
@@ -31,7 +31,7 @@ class Issue extends CI_Controller {
$template
[
'pTitle'
]
=
"View Issues"
;
$template
[
'pTitle'
]
=
"View Issues"
;
$template
[
'pDescription'
]
=
"View and Manage Issues"
;
$template
[
'pDescription'
]
=
"View and Manage Issues"
;
$template
[
'issue_data'
]
=
$this
->
Issue_model
->
getIssue
(
''
,
1
);
$template
[
'issue_data'
]
=
$this
->
Issue_model
->
getIssue
s
(
''
,
1
);
$this
->
load
->
view
(
'template'
,
$template
);
$this
->
load
->
view
(
'template'
,
$template
);
}
}
...
@@ -51,6 +51,7 @@ class Issue extends CI_Controller {
...
@@ -51,6 +51,7 @@ class Issue extends CI_Controller {
public
function
createIssue
(){
public
function
createIssue
(){
$err
=
0
;
$err
=
0
;
$errMsg
=
''
;
$errMsg
=
''
;
$this
->
load
->
library
(
'upload'
,
set_upload_service
(
"assets/uploads/services"
));
$flashMsg
=
array
(
'message'
=>
'Something went wrong, please try again..!'
,
'class'
=>
'error'
);
$flashMsg
=
array
(
'message'
=>
'Something went wrong, please try again..!'
,
'class'
=>
'error'
);
if
(
!
isset
(
$_POST
)
||
empty
(
$_POST
)){
if
(
!
isset
(
$_POST
)
||
empty
(
$_POST
)){
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
...
@@ -60,14 +61,84 @@ class Issue extends CI_Controller {
...
@@ -60,14 +61,84 @@ class Issue extends CI_Controller {
$err
=
1
;
$err
=
1
;
$errMsg
=
'Provide Issue Short Discription'
;
$errMsg
=
'Provide Issue Short Discription'
;
}
}
else
if
(
$err
==
0
&&
(
!
isset
(
$_FILES
[
'issue_image'
])
||
empty
(
$_FILES
[
'issue_image'
]))){
$err
=
1
;
$errMsg
=
'Provide Issue Icon'
;
}
else
if
(
$err
==
0
&&
(
empty
(
$_POST
[
'issue_category'
])
||
count
(
$_POST
[
'issue_category'
])
<=
0
)){
$err
=
1
;
$errMsg
=
'Provide Issue Category Type'
;
}
else
if
(
$err
==
0
&&
(
empty
(
$_POST
[
'default_description'
])
||
count
(
$_POST
[
'default_description'
])
<=
0
)){
$err
=
1
;
$errMsg
=
'Provide Issue Category Discription'
;
}
else
if
(
$err
==
0
&&
(
empty
(
$_POST
[
'default_service_fee'
])
||
count
(
$_POST
[
'default_service_fee'
])
<=
0
)){
$err
=
1
;
$errMsg
=
'Provide Issue Category Service Fee'
;
}
else
if
(
$err
==
0
&&
(
empty
(
$_FILES
[
'issue_cat_image'
])
||!
isset
(
$_FILES
[
'issue_cat_image'
][
'name'
])
||
count
(
$_FILES
[
'issue_cat_image'
][
'name'
])
<=
0
)){
$err
=
1
;
$errMsg
=
'Provide Issue Category Default Icon'
;
}
else
if
(
$err
==
0
&&
(
count
(
$_POST
[
'issue_category'
])
!=
count
(
$_POST
[
'default_description'
])
||
count
(
$_POST
[
'issue_category'
])
!=
count
(
$_POST
[
'default_service_fee'
])
||
count
(
$_POST
[
'issue_category'
])
!=
count
(
$_FILES
[
'issue_cat_image'
][
'name'
]))){
$err
=
1
;
}
$files
=
$_FILES
;
if
(
$err
==
0
){
$typ
=
0
;
$issueTyp
=
array
();
for
(
$typ
=
0
;
$typ
<
count
(
$_POST
[
'issue_category'
]);
$typ
++
)
{
if
(
!
isset
(
$_POST
[
'issue_category'
][
$typ
])
||
!
isset
(
$_POST
[
'default_description'
][
$typ
])
||
!
isset
(
$_POST
[
'default_service_fee'
][
$typ
])
||
!
isset
(
$_FILES
[
'issue_cat_image'
][
'name'
][
$typ
])){
$err
=
1
;
break
;
}
$_FILES
[
'file'
][
'name'
]
=
$files
[
'issue_cat_image'
][
'name'
][
$typ
];
$_FILES
[
'file'
][
'type'
]
=
$files
[
'issue_cat_image'
][
'type'
][
$typ
];
$_FILES
[
'file'
][
'size'
]
=
$files
[
'issue_cat_image'
][
'size'
][
$typ
];
$_FILES
[
'file'
][
'error'
]
=
$files
[
'issue_cat_image'
][
'error'
][
$typ
];
$_FILES
[
'file'
][
'tmp_name'
]
=
$files
[
'issue_cat_image'
][
'tmp_name'
][
$typ
];
if
(
!
$this
->
upload
->
do_upload
(
'file'
)){
$err
=
1
;
$errMsg
=
$this
->
upload
->
display_errors
();
break
;
}
$imgData
=
$this
->
upload
->
data
();
$image_name
=
"assets/uploads/services/"
.
$imgData
[
'file_name'
];
$issueTyp
[]
=
array
(
'issue_category'
=>
$_POST
[
'issue_category'
][
$typ
],
'issue_cat_image'
=>
$image_name
,
'status'
=>
'1'
,
'default_service_fee'
=>
$_POST
[
'default_service_fee'
][
$typ
],
'default_description'
=>
$_POST
[
'default_description'
][
$typ
]);
}
unset
(
$_POST
[
'issue_category'
]);
unset
(
$_POST
[
'default_service_fee'
]);
unset
(
$_POST
[
'default_description'
]);
if
(
$this
->
upload
->
do_upload
(
'issue_image'
)){
$imgData
=
$this
->
upload
->
data
();
$_POST
[
'issue_image'
]
=
"assets/uploads/services/"
.
$imgData
[
'file_name'
];
}
else
{
$err
=
1
;
$errMsg
=
$this
->
upload
->
display_errors
();
break
;
}
}
if
(
$err
==
1
){
if
(
$err
==
1
){
$flashMsg
[
'message'
]
=
$errMsg
;
$flashMsg
[
'message'
]
=
$errMsg
;
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'Issue/addIssue'
));
redirect
(
base_url
(
'Issue/addIssue'
));
}
}
$status
=
$this
->
Issue_model
->
addIssue
(
$_POST
);
$status
=
$this
->
Issue_model
->
addIssue
(
$_POST
,
$issueTyp
);
if
(
$status
==
1
){
if
(
$status
==
1
){
$flashMsg
=
array
(
'message'
=>
'Successfully Updated Issue Details..!'
,
'class'
=>
'success'
);
$flashMsg
=
array
(
'message'
=>
'Successfully Updated Issue Details..!'
,
'class'
=>
'success'
);
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
...
@@ -92,7 +163,7 @@ class Issue extends CI_Controller {
...
@@ -92,7 +163,7 @@ class Issue extends CI_Controller {
$template
[
'pDescription'
]
=
"Update Issue Data"
;
$template
[
'pDescription'
]
=
"Update Issue Data"
;
$template
[
'issue_id'
]
=
encode_param
(
$issue_id
);
$template
[
'issue_id'
]
=
encode_param
(
$issue_id
);
$template
[
'issue_data'
]
=
$this
->
Issue_model
->
getIssue
(
$issue_id
,
1
);
$template
[
'issue_data'
]
=
$this
->
Issue_model
->
getIssue
Details
(
$issue_id
,
1
);
if
(
empty
(
$template
[
'issue_data'
])){
if
(
empty
(
$template
[
'issue_data'
])){
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
redirect
(
base_url
(
'Issue/viewIssues'
));
redirect
(
base_url
(
'Issue/viewIssues'
));
...
@@ -145,7 +216,7 @@ class Issue extends CI_Controller {
...
@@ -145,7 +216,7 @@ class Issue extends CI_Controller {
$template
[
'pTitle'
]
=
"Issue Mapping"
;
$template
[
'pTitle'
]
=
"Issue Mapping"
;
$template
[
'pDescription'
]
=
"Creating Couston Issues"
;
$template
[
'pDescription'
]
=
"Creating Couston Issues"
;
$template
[
'issue_data'
]
=
$this
->
Issue_model
->
getIssue
(
''
,
1
);
$template
[
'issue_data'
]
=
$this
->
Issue_model
->
getIssue
s
(
''
,
1
);
$template
[
'mechanic_id'
]
=
encode_param
(
$this
->
session
->
userdata
(
'id'
));
$template
[
'mechanic_id'
]
=
encode_param
(
$this
->
session
->
userdata
(
'id'
));
if
(
empty
(
$template
[
'issue_data'
])){
if
(
empty
(
$template
[
'issue_data'
])){
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
...
@@ -249,7 +320,7 @@ class Issue extends CI_Controller {
...
@@ -249,7 +320,7 @@ class Issue extends CI_Controller {
$template
[
'issue_id'
]
=
$issue_id
;
$template
[
'issue_id'
]
=
$issue_id
;
$template
[
'mechanic_id'
]
=
$mechanic_id
;
$template
[
'mechanic_id'
]
=
$mechanic_id
;
$template
[
'issue_data'
]
=
$this
->
Issue_model
->
getIssue
(
''
,
1
);
$template
[
'issue_data'
]
=
$this
->
Issue_model
->
getIssue
s
(
''
,
1
);
$template
[
'mechanicIssueData'
]
=
$this
->
Issue_model
->
getMechanicIssues
(
$mechanic_id
,
$issue_id
);
$template
[
'mechanicIssueData'
]
=
$this
->
Issue_model
->
getMechanicIssues
(
$mechanic_id
,
$issue_id
);
if
(
empty
(
$template
[
'mechanicIssueData'
])){
if
(
empty
(
$template
[
'mechanicIssueData'
])){
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
$this
->
session
->
set_flashdata
(
'message'
,
$flashMsg
);
...
@@ -301,5 +372,22 @@ class Issue extends CI_Controller {
...
@@ -301,5 +372,22 @@ class Issue extends CI_Controller {
redirect
(
$url
);
redirect
(
$url
);
}
}
}
}
function
getIssueDetails
(){
$resArr
=
array
(
'status'
=>
0
);
if
(
!
isset
(
$_POST
)
||
empty
(
$_POST
)
||!
isset
(
$_POST
[
'issue_id'
])
||
empty
(
$_POST
[
'issue_id'
])
||
!
is_numeric
(
$issue_id
=
decode_param
(
$_POST
[
'issue_id'
]))){
echo
json_encode
(
$resArr
);
exit
;
}
$issue_data
=
$this
->
Issue_model
->
getIssueDetails
(
$issue_id
);
if
(
empty
(
$issue_data
)){
echo
json_encode
(
$resArr
);
exit
;
}
$resArr
[
'status'
]
=
1
;
$resArr
[
'data'
]
=
$issue_data
;
echo
json_encode
(
$resArr
);
exit
;
}
}
}
?>
?>
\ No newline at end of file
application/models/Issue_model.php
View file @
0f8c5e10
...
@@ -5,16 +5,24 @@ class Issue_model extends CI_Model {
...
@@ -5,16 +5,24 @@ class Issue_model extends CI_Model {
parent
::
_construct
();
parent
::
_construct
();
}
}
public
function
addIssue
(
$issue_data
=
array
()){
public
function
addIssue
(
$issue_data
=
array
()
,
$issueTyp
=
array
()
){
if
(
empty
(
$issue_data
)
){
if
(
empty
(
$issue_data
)
||
empty
(
$issueTyp
))
return
0
;
return
0
;
}
$status
=
$this
->
db
->
insert
(
'issues'
,
$issue_data
);
$status
=
$this
->
db
->
insert
(
'issues'
,
$issue_data
);
if
(
!
$status
)
return
0
;
$issue_id
=
$this
->
db
->
insert_id
();
foreach
(
$issueTyp
AS
$key
=>
$value
)
{
$issueTyp
[
$key
][
'issue_id'
]
=
$issue_id
;
}
$status
=
$this
->
db
->
insert_batch
(
'issues_category'
,
$issueTyp
);
return
(
$status
)
?
1
:
0
;
return
(
$status
)
?
1
:
0
;
}
}
function
getIssue
(
$issue_id
=
''
,
$view_all
=
0
){
function
getIssue
s
(
$issue_id
=
''
,
$view_all
=
0
){
$cond
=
(
$view_all
!=
0
)
?
' status IN (0,1) '
:
' status IN (1) '
;
$cond
=
(
$view_all
!=
0
)
?
' status IN (0,1) '
:
' status IN (1) '
;
$cond
.=
(
!
empty
(
$issue_id
))
?
" AND issue_id = '
$issue_id
'"
:
""
;
$cond
.=
(
!
empty
(
$issue_id
))
?
" AND issue_id = '
$issue_id
'"
:
""
;
...
@@ -25,6 +33,33 @@ class Issue_model extends CI_Model {
...
@@ -25,6 +33,33 @@ class Issue_model extends CI_Model {
return
(
empty
(
$issue_id
))
?
$result
->
result
()
:
$result
->
row
();
return
(
empty
(
$issue_id
))
?
$result
->
result
()
:
$result
->
row
();
}
}
function
getIssueDetails
(
$issue_id
=
''
,
$view_all
=
0
){
$cond
=
(
$view_all
!=
0
)
?
' status IN (0,1) '
:
' status IN (1) '
;
$cond
.=
(
!
empty
(
$issue_id
))
?
" AND issue_id = '
$issue_id
' "
:
""
;
$result
=
$this
->
db
->
query
(
"SELECT * FROM issues WHERE
$cond
"
);
if
(
empty
(
$result
)){
return
;
}
if
(
empty
(
$issue_id
)){
$issue_data
=
$result
->
result
();
foreach
(
$issue_data
AS
$key
=>
$issue
)
{
$result
=
$this
->
db
->
query
(
"SELECT * FROM issues_category
WHERE issue_id='
$issue->issue_id
' AND status='1'"
);
if
(
empty
(
$result
)){
return
;
}
$issue_data
[
$key
]
->
sub_issue
=
$result
->
result
();
}
}
else
{
$issue_data
=
$result
->
row
();
$result
=
$this
->
db
->
query
(
"SELECT * FROM issues_category
WHERE issue_id='
$issue_data->issue_id
' AND status='1'"
);
$issue_data
->
sub_issue
=
$result
->
result
();
}
return
$issue_data
;
}
function
changeStatus
(
$issue_id
=
''
,
$status
=
'0'
){
function
changeStatus
(
$issue_id
=
''
,
$status
=
'0'
){
if
(
empty
(
$issue_id
)){
if
(
empty
(
$issue_id
)){
return
0
;
return
0
;
...
...
application/views/Issue/issueForm.php
View file @
0f8c5e10
...
@@ -14,7 +14,12 @@
...
@@ -14,7 +14,12 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<?php
<?php
$url
=
(
!
isset
(
$issue_id
)
||
empty
(
$issue_id
))
?
'Issue/createIssue'
:
'Issue/updateIssue/'
.
$issue_id
;
$url
=
'Issue/createIssue'
;
$reqFlag
=
'required'
;
if
(
isset
(
$issue_id
)
&&
!
empty
(
$issue_id
)){
$url
=
'Issue/updateIssue/'
.
$issue_id
;
$reqFlag
=
''
;
}
if
(
$this
->
session
->
flashdata
(
'message'
))
{
if
(
$this
->
session
->
flashdata
(
'message'
))
{
$flashdata
=
$this
->
session
->
flashdata
(
'message'
);
?>
$flashdata
=
$this
->
session
->
flashdata
(
'message'
);
?>
<div
class=
"alert alert-
<?=
$flashdata
[
'class'
]
?>
"
>
<div
class=
"alert alert-
<?=
$flashdata
[
'class'
]
?>
"
>
...
@@ -29,13 +34,113 @@
...
@@ -29,13 +34,113 @@
<form
role=
"form"
action=
"
<?=
base_url
(
$url
)
?>
"
method=
"post"
<form
role=
"form"
action=
"
<?=
base_url
(
$url
)
?>
"
method=
"post"
class=
"validate"
data-parsley-validate=
""
enctype=
"multipart/form-data"
>
class=
"validate"
data-parsley-validate=
""
enctype=
"multipart/form-data"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<div
class=
"form-group"
>
<div
class=
"col-md-4"
>
<label>
Issue Shot Discription
</label>
<div
class=
"form-group"
>
<input
type=
"text"
class=
"form-control required"
data-parsley-trigger=
"change"
<label>
Issue
</label>
data-parsley-minlength=
"2"
name=
"issue"
required=
""
value=
"
<?=
(
isset
(
$issue_data
->
issue
))
?
$issue_data
->
issue
:
''
?>
"
placeholder=
"Issue Shot Discription"
>
<input
type=
"text"
class=
"form-control required"
data-parsley-trigger=
"change"
<span
class=
"glyphicon form-control-feedback"
></span>
data-parsley-minlength=
"2"
name=
"issue"
required=
""
value=
"
<?=
(
isset
(
$issue_data
->
issue
))
?
$issue_data
->
issue
:
''
?>
"
placeholder=
"Issue Shot Discription"
>
<span
class=
"glyphicon form-control-feedback"
></span>
</div>
</div>
<div
class=
"col-md-4"
>
<div
class=
"form-group"
>
<label>
Issue Icon
</label>
<div
class=
"col-md-12"
style=
"padding-bottom:10px;"
>
<div
class=
"col-md-5"
>
<img
id=
"issue_image"
src=
"
<?=
(
isset
(
$issue_data
->
issue_image
))
?
base_url
(
$issue_data
->
issue_image
)
:
''
?>
"
onerror=
"this.src='
<?=
base_url
(
"assets/images/no_image.png"
)
?>
';"
height=
"50"
width=
"auto"
/>
</div>
<div
class=
"col-md-7"
style=
"padding-top: 12px;"
>
<input
name=
"issue_image"
type=
"file"
accept=
"image/*"
onchange=
"setImg(this,'issue_image');"
<?=
$reqFlag
?>
/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col-md-12"
>
<div
class=
"row"
style=
"padding-left:30px;"
>
<label>
Issue Sub Types
</label>
</div>
<div
id=
"subIssueCntr"
>
<?php
$count
=
1
;
if
(
isset
(
$issue_id
)
&&
!
empty
(
$issue_id
)
&&
isset
(
$issue_data
->
sub_issue
)
&&
!
empty
(
$issue_data
->
sub_issue
)){
foreach
(
$issue_data
->
sub_issue
AS
$sub_issue
){
?>
<input
type=
"hidden"
name=
"extSubTypes[]"
value=
"
<?=
$sub_issue
->
issue_cat_id
?>
"
>
<div
<
div
id=
"newSubIssue_
<?=
$count
?>
"
>
<div
class=
"col-md-1"
>
<div
class=
"row marginTop10"
>
<div
class=
"col-md-6"
></div>
<div
class=
"col-md-6"
>
<?php
if
(
$count
==
1
)
{
?>
<i
class=
"fa fa-plus-circle cpoint fav-add-icon"
id=
"addSubIssue_1"
count=
"
<?=
count
(
$issue_data
->
sub_issue
)
?>
"
></i>
<?php
}
else
{
?>
<i
class=
"fa fa-times-circle-o cpoint fav-rem-icon"
onclick=
"remSubIssue(
<?=
$count
?>
);"
></i>
<?php
}
?>
</div>
</div>
</div>
<div
class=
"col-md-2"
>
<input
type=
"text"
class=
"form-control required marginTop-8"
required
data-parsley-trigger=
"change"
data-parsley-minlength=
"2"
name=
"issue_category_
<?=
$sub_issue
->
issue_cat_id
?>
"
placeholder=
"Issue Type"
value=
"
<?=
$sub_issue
->
issue_category
?>
"
>
</div>
<div
class=
"col-md-3"
>
<textarea
type=
"text"
class=
"form-control required marginTop-8"
data-parsley-trigger=
"change"
required
data-parsley-minlength=
"2"
name=
"default_description_
<?=
$sub_issue
->
issue_cat_id
?>
"
placeholder=
"Description"
style=
"height:34px;"
>
<?=
$sub_issue
->
default_description
?>
</textarea>
</div>
<div
class=
"col-md-2"
>
<input
type=
"text"
class=
"form-control required marginTop-8"
data-parsley-trigger=
"change"
name=
"default_service_fee_
<?=
$sub_issue
->
issue_cat_id
?>
"
required
data-parsley-minlength=
"2"
placeholder=
"Default Service Fee"
data-parsley-pattern=
"^[0-9\ . \/]+$"
value=
"
<?=
$sub_issue
->
default_service_fee
?>
"
>
</div>
<div
class=
"col-md-4"
style=
"padding-bottom:10px;"
>
<div
class=
"col-md-4"
>
<img
id=
"issue_cat_image_
<?=
$count
?>
"
src=
"
<?=
base_url
(
$sub_issue
->
issue_cat_image
)
?>
"
onerror=
"this.src='
<?=
base_url
(
"assets/images/no_image.png"
)
?>
';"
height=
"50"
width=
"auto"
/>
</div>
<div
class=
"col-md-8"
style=
"padding-top: 12px;"
>
<input
name=
"issue_cat_image_
<?=
$sub_issue
->
issue_cat_id
?>
"
type=
"file"
accept=
"image/*"
onchange=
"setImg(this,'issue_cat_image_
<?=
$count
?>
');"
<?=
$reqFlag
?>
/>
</div>
</div>
</div>
<?php
$count
+=
1
;
}
}
else
{
?>
<div
class=
"col-md-1"
>
<div
class=
"row marginTop10"
>
<div
class=
"col-md-6"
></div>
<div
class=
"col-md-6"
>
<i
class=
"fa fa-plus-circle cpoint fav-add-icon"
id=
"addSubIssue_1"
count=
"1"
></i>
</div>
</div>
</div>
<div
class=
"col-md-2"
>
<input
type=
"text"
class=
"form-control required marginTop-8"
data-parsley-trigger=
"change"
data-parsley-minlength=
"2"
name=
"issue_category[]"
placeholder=
"Issue Type"
value=
"
<?=
(
isset
(
$sub_issue
->
issue_category
))
?
$sub_issue
->
issue_category
:
''
?>
"
required
>
</div>
<div
class=
"col-md-3"
>
<textarea
type=
"text"
class=
"form-control required marginTop-8"
data-parsley-trigger=
"change"
required=
""
data-parsley-minlength=
"2"
name=
"default_description[]"
placeholder=
"Description"
style=
"height:34px;"
>
<?=
(
isset
(
$sub_issue
->
default_description
))
?
$sub_issue
->
default_description
:
''
?>
</textarea>
</div>
<div
class=
"col-md-2"
>
<input
type=
"text"
class=
"form-control required marginTop-8"
required
data-parsley-trigger=
"change"
data-parsley-minlength=
"2"
name=
"default_service_fee[]"
data-parsley-pattern=
"^[0-9\ . \/]+$"
placeholder=
"Default Service Fee"
value=
"
<?=
(
isset
(
$sub_issue
->
default_service_fee
))
?
$sub_issue
->
default_service_fee
:
''
?>
"
>
</div>
<div
class=
"col-md-4"
style=
"padding-bottom:10px;"
>
<div
class=
"col-md-4"
>
<img
id=
"issue_cat_image"
src=
"
<?=
(
isset
(
$sub_issue
->
issue_cat_image
))
?
base_url
(
$sub_issue
->
issue_cat_image
)
:
''
?>
"
onerror=
"this.src='
<?=
base_url
(
"assets/images/no_image.png"
)
?>
';"
height=
"50"
width=
"auto"
/>
</div>
<div
class=
"col-md-8"
style=
"padding-top: 12px;"
>
<input
name=
"issue_cat_image[]"
type=
"file"
accept=
"image/*"
onchange=
"setImg(this,'issue_cat_image');"
<?=
$reqFlag
?>
/>
</div>
</div>
<?php
}
?>
</div>
</div>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<div
class=
"box-footer textCenterAlign"
>
<div
class=
"box-footer textCenterAlign"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Submit
</button>
<button
type=
"submit"
class=
"btn btn-primary"
>
Submit
</button>
...
@@ -48,4 +153,38 @@
...
@@ -48,4 +153,38 @@
</div>
</div>
</div>
</div>
</section>
</section>
</div>
<!-- ADD SUB ITEM HTML -->
<div
id=
"subIssueAdd"
class=
"hide"
>
<div
class=
"col-md-1"
>
<div
class=
"row marginTop10"
>
<div
class=
"col-md-6"
></div>
<div
class=
"col-md-6"
>
<i
class=
"fa fa-times-circle-o cpoint fav-rem-icon"
onclick=
"remSubIssue({:count});"
></i>
</div>
</div>
</div>
<div
class=
"col-md-2"
>
<input
type=
"text"
class=
"form-control required marginTop-8"
data-parsley-trigger=
"change"
data-parsley-minlength=
"2"
name=
"issue_category[]"
required=
""
placeholder=
"Issue Type"
>
</div>
<div
class=
"col-md-3"
>
<textarea
type=
"text"
class=
"form-control required marginTop-8"
data-parsley-trigger=
"change"
required
data-parsley-minlength=
"2"
name=
"default_description[]"
placeholder=
"Description"
style=
"height:34px;"
></textarea>
</div>
<div
class=
"col-md-2"
>
<input
type=
"text"
class=
"form-control required marginTop-8"
data-parsley-trigger=
"change"
required
data-parsley-minlength=
"2"
name=
"default_service_fee[]"
placeholder=
"Default Service Fee"
data-parsley-pattern=
"^[0-9\ . \/]+$"
>
</div>
<div
class=
"col-md-4"
style=
"padding-bottom:10px;"
>
<div
class=
"col-md-4"
>
<img
id=
"issue_cat_image_{:count}"
src=
""
onerror=
"this.src='
<?=
base_url
(
"assets/images/no_image.png"
)
?>
';"
height=
"50"
width=
"auto"
/>
</div>
<div
class=
"col-md-8"
style=
"padding-top: 12px;"
>
<input
name=
"issue_cat_image[]"
type=
"file"
accept=
"image/*"
onchange=
"setImg(this,'issue_cat_image_{:count}');"
required
/>
</div>
</div>
</div>
</div>
\ No newline at end of file
application/views/Issue/viewIssues.php
View file @
0f8c5e10
...
@@ -36,10 +36,11 @@
...
@@ -36,10 +36,11 @@
<table
id=
"mechanicUsers"
class=
"table table-bordered table-striped datatable "
>
<table
id=
"mechanicUsers"
class=
"table table-bordered table-striped datatable "
>
<thead>
<thead>
<tr>
<tr>
<th
class=
"50px"
>
ID
</th>
<th
class=
"hidden"
>
ID
</th>
<th
width=
"600px;"
>
Issue Shot Discription
</th>
<th
width=
"15%;"
>
Issue Icon
</th>
<th
width=
"100px;"
>
Status
</th>
<th
width=
"35%;"
>
Issue Category
</th>
<th
width=
"300px;"
>
Action
</th>
<th
width=
"10%;"
>
Status
</th>
<th
width=
"40%;"
>
Action
</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
@@ -47,14 +48,21 @@
...
@@ -47,14 +48,21 @@
if
(
!
empty
(
$issue_data
)){
if
(
!
empty
(
$issue_data
)){
foreach
(
$issue_data
as
$issue
)
{
?>
foreach
(
$issue_data
as
$issue
)
{
?>
<tr>
<tr>
<th
class=
"center"
>
<?=
$issue
->
issue_id
?>
</th>
<th
class=
"hidden"
>
<?=
$issue
->
issue_id
?>
</th>
<th
class=
"center"
>
<img
src=
"
<?=
base_url
(
$issue
->
issue_image
)
?>
"
onerror=
"this.src='
<?=
base_url
(
"assets/images/no_image.png"
)
?>
';"
height=
"50"
width=
"auto"
/>
</th>
<th
class=
"center"
>
<?=
$issue
->
issue
?>
</th>
<th
class=
"center"
>
<?=
$issue
->
issue
?>
</th>
<th
class=
"center"
>
<?=
(
$issue
->
status
==
1
)
?
'Active'
:
'De-activate'
?>
</th>
<th
class=
"center"
>
<?=
(
$issue
->
status
==
1
)
?
'Active'
:
'De-activate'
?>
</th>
<td
class=
"center"
>
<td
class=
"center"
>
<a
class=
"btn btn-sm btn-info cpoint"
onclick=
"viewIssueDetls('
<?=
encode_param
(
$issue
->
issue_id
)
?>
');"
>
<i
class=
"fa fa-fw fa-edit"
></i>
View Issue Sub Categories
</a>
<a
class=
"btn btn-sm btn-primary"
<a
class=
"btn btn-sm btn-primary"
href=
"
<?=
base_url
(
'Issue/editIssue/'
.
encode_param
(
$issue
->
issue_id
))
?>
"
>
href=
"
<?=
base_url
(
'Issue/editIssue/'
.
encode_param
(
$issue
->
issue_id
))
?>
"
>
<i
class=
"fa fa-fw fa-edit"
></i>
Edit
<i
class=
"fa fa-fw fa-edit"
></i>
Edit
</a>
</a>
<a
class=
"btn btn-sm btn-danger"
<a
class=
"btn btn-sm btn-danger"
href=
"
<?=
base_url
(
"Issue/changeStatus/"
.
encode_param
(
$issue
->
issue_id
))
.
"/2"
?>
"
href=
"
<?=
base_url
(
"Issue/changeStatus/"
.
encode_param
(
$issue
->
issue_id
))
.
"/2"
?>
"
onClick=
"return doconfirm()"
>
onClick=
"return doconfirm()"
>
...
...
assets/css/custom-style.css
View file @
0f8c5e10
...
@@ -316,6 +316,10 @@
...
@@ -316,6 +316,10 @@
padding-bottom
:
20px
!important
;
padding-bottom
:
20px
!important
;
}
}
.padBottom10
{
padding-bottom
:
10px
!important
;
}
.padTop10
{
.padTop10
{
padding-top
:
10px
!important
;
padding-top
:
10px
!important
;
}
}
...
@@ -344,6 +348,18 @@
...
@@ -344,6 +348,18 @@
padding-left
:
20px
!important
;
padding-left
:
20px
!important
;
}
}
.padLeft40
{
padding-left
:
40px
!important
;
}
.padLeft30
{
padding-left
:
30px
!important
;
}
.padLeft50
{
padding-left
:
50px
!important
;
}
.padUnset
{
.padUnset
{
padding-left
:
unset
!important
;
padding-left
:
unset
!important
;
}
}
...
@@ -393,4 +409,38 @@
...
@@ -393,4 +409,38 @@
.marginBottom-10
{
.marginBottom-10
{
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
\ No newline at end of file
.marginTop-8
{
margin-top
:
8px
;
}
.fav-add-icon
{
font-size
:
2em
;
color
:
#5a9f5a
;
}
.fav-rem-icon
{
font-size
:
2em
;
color
:
#c61a1a
;
}
.list_custom
{
width
:
100%
;
padding
:
0px
;
margin
:
0px
;
border-bottom
:
1px
solid
#e2e2e2
;
}
.list_custom
li
{
display
:
inline-block
;
text-align
:
left
;
padding-left
:
15px
;
}
.issue-box
{
vertical-align
:
top
;
margin-top
:
10px
!important
;
}
assets/js/custom-script.js
View file @
0f8c5e10
...
@@ -520,4 +520,89 @@ function searchAction(car_id, action, saved, name){
...
@@ -520,4 +520,89 @@ function searchAction(car_id, action, saved, name){
jQuery
(
'div'
).
on
(
'click'
,
'[id^="remove_saved_"]'
,
function
(
event
)
{
jQuery
(
'div'
).
on
(
'click'
,
'[id^="remove_saved_"]'
,
function
(
event
)
{
var
thisObj
=
jQuery
(
this
),
car_id
=
thisObj
.
attr
(
'car_id'
);
var
thisObj
=
jQuery
(
this
),
car_id
=
thisObj
.
attr
(
'car_id'
);
searchAction
(
car_id
,
'3'
,
'1'
,
''
);
searchAction
(
car_id
,
'3'
,
'1'
,
''
);
});
});
\ No newline at end of file
jQuery
(
'[id^="addSubIssue_"]'
).
on
(
'click'
,
function
(
event
)
{
var
thisObj
=
jQuery
(
this
),
count
=
thisObj
.
attr
(
'count'
),
html
=
jQuery
(
'[id="subIssueAdd"]'
).
html
();
if
(
count
==
''
||
count
==
null
||
count
==
'null'
||
count
==
undefined
||
count
==
'undefined'
||
html
==
''
||
html
==
null
||
html
==
'null'
||
html
==
undefined
||
html
==
'undefined'
){
return
false
;
}
count
=
parseInt
(
count
)
+
1
;
thisObj
.
attr
(
'count'
,
count
);
html
=
html
.
replace
(
/{:count}/g
,
count
);
jQuery
(
'[id="subIssueCntr"]'
).
append
(
'<div id="newSubIssue_'
+
count
+
'">'
+
html
+
'</div>'
);
});
function
remSubIssue
(
count
){
if
(
count
==
''
||
count
==
null
||
count
==
'null'
||
count
==
undefined
||
count
==
'undefined'
){
return
false
;
}
jQuery
(
'[id="newSubIssue_'
+
count
+
'"]'
).
remove
();
}
function
viewIssueDetls
(
issue_id
){
if
(
issue_id
==
''
||
issue_id
==
null
||
issue_id
==
'null'
||
issue_id
==
undefined
||
issue_id
==
'undefined'
){
return
false
;
}
var
head
=
''
,
body
=
''
,
msg
=
'Something went wrong, please try again later...!'
;
jQuery
(
'.modal-dialog'
).
css
(
'width'
,
'60%'
);
modalTrigger
(
'Issue Sub Types'
,
''
);
addModalLoader
();
jQuery
.
ajax
({
url
:
base_url
+
"Issue/getIssueDetails"
,
type
:
'POST'
,
data
:
{
'issue_id'
:
issue_id
},
success
:
function
(
resp
){
if
(
resp
==
''
||
resp
==
undefined
||
resp
==
'undefined'
||
resp
==
null
||
resp
==
'null'
){
remModalLoader
();
jQuery
(
'[id="modal_content"]'
).
html
(
msg
);
return
false
;
}
var
resp_data
=
jQuery
.
parseJSON
(
resp
);
if
(
resp_data
[
'status'
]
!=
'1'
||
(
resp_data
[
'status'
]
==
1
&&
resp_data
[
'data'
]
==
''
||
resp_data
[
'data'
]
==
null
||
resp_data
[
'data'
]
==
undefined
||
resp_data
[
'data'
]
==
'null'
||
resp_data
[
'data'
]
==
'undefined'
)){
remModalLoader
();
jQuery
(
'[id="modal_content"]'
).
html
(
msg
);
return
false
;
}
head
=
'<ul class="list_custom">'
+
'<li class="marginTop10" style="width:25%;"><label>Type</label></li>'
+
'<li class="marginTop10" style="width:40%;"><label>Description</label></li>'
+
'<li class="marginTop10" style="width:15%;"><label>Service Fee</label></li>'
+
'<li class="padBottom10 padLeft50"><label>Image</label></li>'
+
'</ul>'
;
jQuery
.
each
(
resp_data
[
'data'
][
'sub_issue'
],
function
(
index
,
value
)
{
console
.
log
(
value
);
body
+=
'<ul class="list_custom">'
+
'<li class="issue-box" style="width:25%;"><label>'
+
value
[
'issue_category'
]
+
'</label></li>'
+
'<li class="issue-box" style="width:40%;">'
+
value
[
'default_description'
]
+
'</li>'
+
'<li class="issue-box padLeft40" style="width:15%;"><label>'
+
value
[
'default_service_fee'
]
+
'</label></li>'
+
'<li class="padBottom10 padLeft20 issue-box">'
+
'<img src="'
+
base_url
+
value
[
'issue_cat_image'
]
+
'" height="50" width="auto" '
+
'onerror="this.src=;" />'
+
'</li>'
+
'</ul>'
;
});
jQuery
(
'[id="modal_content"]'
).
html
(
'<div class="border">'
+
head
+
body
+
'</div>'
);
remModalLoader
();
return
false
;
},
fail
:
function
(
xhr
,
textStatus
,
errorThrown
){
remModalLoader
();
jQuery
(
'[id="modal_content"]'
).
html
(
msg
);
return
false
;
},
error
:
function
(
ajaxContext
)
{
remModalLoader
();
jQuery
(
'[id="modal_content"]'
).
html
(
msg
);
return
false
;
}
});
}
\ No newline at end of file
sql/tobin_dcarfixers.sql
View file @
0f8c5e10
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
-- https://www.phpmyadmin.net/
-- https://www.phpmyadmin.net/
--
--
-- Host: db
-- Host: db
-- Generation Time: Dec 1
7, 2018 at 12:46
PM
-- Generation Time: Dec 1
9, 2018 at 01:05
PM
-- Server version: 5.6.41
-- Server version: 5.6.41
-- PHP Version: 7.2.8
-- PHP Version: 7.2.8
...
@@ -113,7 +113,8 @@ INSERT INTO `customer_vehicle` (`customer_veh_id`, `customer_id`, `car_name`, `c
...
@@ -113,7 +113,8 @@ INSERT INTO `customer_vehicle` (`customer_veh_id`, `customer_id`, `car_name`, `c
(
15
,
NULL
,
'2017 Hyundai Sonata SE'
,
'sonata'
,
'hyundai'
,
'2017'
,
NULL
,
'{
\"
vehicle
\"
:
\"
2017 Hyundai Sonata SE
\"
,
\"
attributes
\"
:{
\"
Year
\"
:
\"
2017
\"
,
\"
Make
\"
:
\"
Hyundai
\"
,
\"
Model
\"
:
\"
Sonata
\"
,
\"
Trim
\"
:
\"
SE
\"
,
\"
Short Trim
\"
:
\"
SE
\"
,
\"
Trim Variations
\"
:
\"
Base PZEV
\\
/ Base
\\
/ SE PZEV
\\
/ SE
\\
/ Eco
\\
/ Sport
\\
/ Limited
\\
/ Sport 2.0T
\\
/ Limited 2.0T
\"
,
\"
Made In
\"
:
\"
United States
\"
,
\"
Vehicle Style
\"
:
\"
Sedan (4-Door)
\"
,
\"
Vehicle Type
\"
:
\"
Car
\"
,
\"
Vehicle Size
\"
:
\"
Midsize
\"
,
\"
Vehicle Category
\"
:
\"
Large Cars
\"
,
\"
Doors
\"
:
\"
4
\"
,
\"
Fuel Type
\"
:
\"
Regular Unleaded
\"
,
\"
Fuel Capacity
\"
:
\"
18.5 gallon
\"
,
\"
City Mileage
\"
:
\"
25 miles
\\
/gallon
\"
,
\"
Highway Mileage
\"
:
\"
36 miles
\\
/gallon
\"
,
\"
Engine
\"
:
\"
2.4L L4 DOHC 16V
\"
,
\"
Engine Size
\"
:
\"
2.4
\"
,
\"
Engine Cylinders
\"
:
\"
4
\"
,
\"
Transmission Type
\"
:
\"
Automatic
\"
,
\"
Transmission Gears
\"
:
\"
6
\"
,
\"
Driven Wheels
\"
:
\"
Front Wheel Drive
\"
,
\"
Anti-Brake System
\"
:
\"
4-Wheel ABS
\"
,
\"
Steering Type
\"
:
\"
R&P
\"
,
\"
Curb Weight
\"
:
\"
3252
\"
,
\"
Gross Weight
\"
:
\"\"
,
\"
Overall Height
\"
:
\"
58.10 inches
\"
,
\"
Overall Length
\"
:
\"
191.10 inches
\"
,
\"
Overall Width
\"
:
\"
73.40 inches
\"
,
\"
Standard Seating
\"
:
\"
5
\"
,
\"
Optional Seating
\"
:
\"\"
,
\"
Invoice Price
\"
:
\"
$21,047
\"
,
\"
Delivery Charges
\"
:
\"
$835
\"
,
\"
MSRP
\"
:
\"
$21,950
\"
},
\"
success
\"
:true,
\"
error
\"
:
\"\"
}'
,
'DfR Solutions, Virginia Manor Road, Beltsville, MD, USA'
,
'39.063356'
,
'-76.893169'
,
'2018-12-17 10:33:05'
,
3
),
(
15
,
NULL
,
'2017 Hyundai Sonata SE'
,
'sonata'
,
'hyundai'
,
'2017'
,
NULL
,
'{
\"
vehicle
\"
:
\"
2017 Hyundai Sonata SE
\"
,
\"
attributes
\"
:{
\"
Year
\"
:
\"
2017
\"
,
\"
Make
\"
:
\"
Hyundai
\"
,
\"
Model
\"
:
\"
Sonata
\"
,
\"
Trim
\"
:
\"
SE
\"
,
\"
Short Trim
\"
:
\"
SE
\"
,
\"
Trim Variations
\"
:
\"
Base PZEV
\\
/ Base
\\
/ SE PZEV
\\
/ SE
\\
/ Eco
\\
/ Sport
\\
/ Limited
\\
/ Sport 2.0T
\\
/ Limited 2.0T
\"
,
\"
Made In
\"
:
\"
United States
\"
,
\"
Vehicle Style
\"
:
\"
Sedan (4-Door)
\"
,
\"
Vehicle Type
\"
:
\"
Car
\"
,
\"
Vehicle Size
\"
:
\"
Midsize
\"
,
\"
Vehicle Category
\"
:
\"
Large Cars
\"
,
\"
Doors
\"
:
\"
4
\"
,
\"
Fuel Type
\"
:
\"
Regular Unleaded
\"
,
\"
Fuel Capacity
\"
:
\"
18.5 gallon
\"
,
\"
City Mileage
\"
:
\"
25 miles
\\
/gallon
\"
,
\"
Highway Mileage
\"
:
\"
36 miles
\\
/gallon
\"
,
\"
Engine
\"
:
\"
2.4L L4 DOHC 16V
\"
,
\"
Engine Size
\"
:
\"
2.4
\"
,
\"
Engine Cylinders
\"
:
\"
4
\"
,
\"
Transmission Type
\"
:
\"
Automatic
\"
,
\"
Transmission Gears
\"
:
\"
6
\"
,
\"
Driven Wheels
\"
:
\"
Front Wheel Drive
\"
,
\"
Anti-Brake System
\"
:
\"
4-Wheel ABS
\"
,
\"
Steering Type
\"
:
\"
R&P
\"
,
\"
Curb Weight
\"
:
\"
3252
\"
,
\"
Gross Weight
\"
:
\"\"
,
\"
Overall Height
\"
:
\"
58.10 inches
\"
,
\"
Overall Length
\"
:
\"
191.10 inches
\"
,
\"
Overall Width
\"
:
\"
73.40 inches
\"
,
\"
Standard Seating
\"
:
\"
5
\"
,
\"
Optional Seating
\"
:
\"\"
,
\"
Invoice Price
\"
:
\"
$21,047
\"
,
\"
Delivery Charges
\"
:
\"
$835
\"
,
\"
MSRP
\"
:
\"
$21,950
\"
},
\"
success
\"
:true,
\"
error
\"
:
\"\"
}'
,
'DfR Solutions, Virginia Manor Road, Beltsville, MD, USA'
,
'39.063356'
,
'-76.893169'
,
'2018-12-17 10:33:05'
,
3
),
(
16
,
NULL
,
'2017 Hyundai Sonata SE'
,
'sonata'
,
'hyundai'
,
'2017'
,
NULL
,
'{
\"
vehicle
\"
:
\"
2017 Hyundai Sonata SE
\"
,
\"
attributes
\"
:{
\"
Year
\"
:
\"
2017
\"
,
\"
Make
\"
:
\"
Hyundai
\"
,
\"
Model
\"
:
\"
Sonata
\"
,
\"
Trim
\"
:
\"
SE
\"
,
\"
Short Trim
\"
:
\"
SE
\"
,
\"
Trim Variations
\"
:
\"
Base PZEV
\\
/ Base
\\
/ SE PZEV
\\
/ SE
\\
/ Eco
\\
/ Sport
\\
/ Limited
\\
/ Sport 2.0T
\\
/ Limited 2.0T
\"
,
\"
Made In
\"
:
\"
United States
\"
,
\"
Vehicle Style
\"
:
\"
Sedan (4-Door)
\"
,
\"
Vehicle Type
\"
:
\"
Car
\"
,
\"
Vehicle Size
\"
:
\"
Midsize
\"
,
\"
Vehicle Category
\"
:
\"
Large Cars
\"
,
\"
Doors
\"
:
\"
4
\"
,
\"
Fuel Type
\"
:
\"
Regular Unleaded
\"
,
\"
Fuel Capacity
\"
:
\"
18.5 gallon
\"
,
\"
City Mileage
\"
:
\"
25 miles
\\
/gallon
\"
,
\"
Highway Mileage
\"
:
\"
36 miles
\\
/gallon
\"
,
\"
Engine
\"
:
\"
2.4L L4 DOHC 16V
\"
,
\"
Engine Size
\"
:
\"
2.4
\"
,
\"
Engine Cylinders
\"
:
\"
4
\"
,
\"
Transmission Type
\"
:
\"
Automatic
\"
,
\"
Transmission Gears
\"
:
\"
6
\"
,
\"
Driven Wheels
\"
:
\"
Front Wheel Drive
\"
,
\"
Anti-Brake System
\"
:
\"
4-Wheel ABS
\"
,
\"
Steering Type
\"
:
\"
R&P
\"
,
\"
Curb Weight
\"
:
\"
3252
\"
,
\"
Gross Weight
\"
:
\"\"
,
\"
Overall Height
\"
:
\"
58.10 inches
\"
,
\"
Overall Length
\"
:
\"
191.10 inches
\"
,
\"
Overall Width
\"
:
\"
73.40 inches
\"
,
\"
Standard Seating
\"
:
\"
5
\"
,
\"
Optional Seating
\"
:
\"\"
,
\"
Invoice Price
\"
:
\"
$21,047
\"
,
\"
Delivery Charges
\"
:
\"
$835
\"
,
\"
MSRP
\"
:
\"
$21,950
\"
},
\"
success
\"
:true,
\"
error
\"
:
\"\"
}'
,
'DfR Solutions, Virginia Manor Road, Beltsville, MD, USA'
,
'39.063356'
,
'-76.893169'
,
'2018-12-17 10:33:11'
,
3
),
(
16
,
NULL
,
'2017 Hyundai Sonata SE'
,
'sonata'
,
'hyundai'
,
'2017'
,
NULL
,
'{
\"
vehicle
\"
:
\"
2017 Hyundai Sonata SE
\"
,
\"
attributes
\"
:{
\"
Year
\"
:
\"
2017
\"
,
\"
Make
\"
:
\"
Hyundai
\"
,
\"
Model
\"
:
\"
Sonata
\"
,
\"
Trim
\"
:
\"
SE
\"
,
\"
Short Trim
\"
:
\"
SE
\"
,
\"
Trim Variations
\"
:
\"
Base PZEV
\\
/ Base
\\
/ SE PZEV
\\
/ SE
\\
/ Eco
\\
/ Sport
\\
/ Limited
\\
/ Sport 2.0T
\\
/ Limited 2.0T
\"
,
\"
Made In
\"
:
\"
United States
\"
,
\"
Vehicle Style
\"
:
\"
Sedan (4-Door)
\"
,
\"
Vehicle Type
\"
:
\"
Car
\"
,
\"
Vehicle Size
\"
:
\"
Midsize
\"
,
\"
Vehicle Category
\"
:
\"
Large Cars
\"
,
\"
Doors
\"
:
\"
4
\"
,
\"
Fuel Type
\"
:
\"
Regular Unleaded
\"
,
\"
Fuel Capacity
\"
:
\"
18.5 gallon
\"
,
\"
City Mileage
\"
:
\"
25 miles
\\
/gallon
\"
,
\"
Highway Mileage
\"
:
\"
36 miles
\\
/gallon
\"
,
\"
Engine
\"
:
\"
2.4L L4 DOHC 16V
\"
,
\"
Engine Size
\"
:
\"
2.4
\"
,
\"
Engine Cylinders
\"
:
\"
4
\"
,
\"
Transmission Type
\"
:
\"
Automatic
\"
,
\"
Transmission Gears
\"
:
\"
6
\"
,
\"
Driven Wheels
\"
:
\"
Front Wheel Drive
\"
,
\"
Anti-Brake System
\"
:
\"
4-Wheel ABS
\"
,
\"
Steering Type
\"
:
\"
R&P
\"
,
\"
Curb Weight
\"
:
\"
3252
\"
,
\"
Gross Weight
\"
:
\"\"
,
\"
Overall Height
\"
:
\"
58.10 inches
\"
,
\"
Overall Length
\"
:
\"
191.10 inches
\"
,
\"
Overall Width
\"
:
\"
73.40 inches
\"
,
\"
Standard Seating
\"
:
\"
5
\"
,
\"
Optional Seating
\"
:
\"\"
,
\"
Invoice Price
\"
:
\"
$21,047
\"
,
\"
Delivery Charges
\"
:
\"
$835
\"
,
\"
MSRP
\"
:
\"
$21,950
\"
},
\"
success
\"
:true,
\"
error
\"
:
\"\"
}'
,
'DfR Solutions, Virginia Manor Road, Beltsville, MD, USA'
,
'39.063356'
,
'-76.893169'
,
'2018-12-17 10:33:11'
,
3
),
(
17
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
'1NXBR32E85Z505904'
,
'{
\"
vin
\"
:
\"
1NXBR32E85Z505904
\"
,
\"
attributes
\"
:{
\"
VIN
\"
:
\"
1NXBR32E85Z505904
\"
,
\"
Year
\"
:
\"
2005
\"
,
\"
Make
\"
:
\"
Toyota
\"
,
\"
Model
\"
:
\"
Corolla
\"
,
\"
Trim
\"
:
\"
CE
\"
,
\"
Short Trim
\"
:
\"
CE
\"
,
\"
Trim Variations
\"
:
\"
CE
\\
/ LE
\\
/ S
\"
,
\"
Made In
\"
:
\"
United States
\"
,
\"
Vehicle Style
\"
:
\"
Sedan (4-Door)
\"
,
\"
Vehicle Type
\"
:
\"
Car
\"
,
\"
Vehicle Size
\"
:
\"
Compact
\"
,
\"
Vehicle Category
\"
:
\"
Compact Cars
\"
,
\"
Doors
\"
:
\"
4
\"
,
\"
Fuel Type
\"
:
\"
Regular Unleaded
\"
,
\"
Fuel Capacity
\"
:
\"
13.2 gallon
\"
,
\"
City Mileage
\"
:
\"
30 - 32 miles
\\
/gallon
\"
,
\"
Highway Mileage
\"
:
\"
38 - 41 miles
\\
/gallon
\"
,
\"
Engine
\"
:
\"
1.8L L4 DOHC 16V
\"
,
\"
Engine Size
\"
:
\"
1.8
\"
,
\"
Engine Cylinders
\"
:
\"
4
\"
,
\"
Transmission Type
\"
:
\"
Automatic
\"
,
\"
Transmission Gears
\"
:
\"
4
\"
,
\"
Driven Wheels
\"
:
\"
Front Wheel Drive
\"
,
\"
Anti-Brake System
\"
:
\"
Non-Abs | 4-Wheel ABS
\"
,
\"
Steering Type
\"
:
\"
R&P
\"
,
\"
Curb Weight
\"
:
\"
2615
\"
,
\"
Gross Weight
\"
:
\"\"
,
\"
Overall Height
\"
:
\"
58.50 inches
\"
,
\"
Overall Length
\"
:
\"
178.30 inches
\"
,
\"
Overall Width
\"
:
\"
66.90 inches
\"
,
\"
Standard Seating
\"
:
\"
5
\"
,
\"
Optional Seating
\"
:
\"\"
,
\"
Invoice Price
\"
:
\"
$14,287
\"
,
\"
Delivery Charges
\"
:
\"
$540
\"
,
\"
MSRP
\"
:
\"
$15,790
\"
},
\"
success
\"
:true,
\"
error
\"
:
\"\"
}'
,
'DRTY SMMR, Myrtle Avenue, Brooklyn, NY, USA'
,
'40.6973088'
,
'-73.9308637'
,
'2018-12-17 11:42:55'
,
3
),
(
17
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
'1NXBR32E85Z505904'
,
'{
\"
vin
\"
:
\"
1NXBR32E85Z505904
\"
,
\"
attributes
\"
:{
\"
VIN
\"
:
\"
1NXBR32E85Z505904
\"
,
\"
Year
\"
:
\"
2005
\"
,
\"
Make
\"
:
\"
Toyota
\"
,
\"
Model
\"
:
\"
Corolla
\"
,
\"
Trim
\"
:
\"
CE
\"
,
\"
Short Trim
\"
:
\"
CE
\"
,
\"
Trim Variations
\"
:
\"
CE
\\
/ LE
\\
/ S
\"
,
\"
Made In
\"
:
\"
United States
\"
,
\"
Vehicle Style
\"
:
\"
Sedan (4-Door)
\"
,
\"
Vehicle Type
\"
:
\"
Car
\"
,
\"
Vehicle Size
\"
:
\"
Compact
\"
,
\"
Vehicle Category
\"
:
\"
Compact Cars
\"
,
\"
Doors
\"
:
\"
4
\"
,
\"
Fuel Type
\"
:
\"
Regular Unleaded
\"
,
\"
Fuel Capacity
\"
:
\"
13.2 gallon
\"
,
\"
City Mileage
\"
:
\"
30 - 32 miles
\\
/gallon
\"
,
\"
Highway Mileage
\"
:
\"
38 - 41 miles
\\
/gallon
\"
,
\"
Engine
\"
:
\"
1.8L L4 DOHC 16V
\"
,
\"
Engine Size
\"
:
\"
1.8
\"
,
\"
Engine Cylinders
\"
:
\"
4
\"
,
\"
Transmission Type
\"
:
\"
Automatic
\"
,
\"
Transmission Gears
\"
:
\"
4
\"
,
\"
Driven Wheels
\"
:
\"
Front Wheel Drive
\"
,
\"
Anti-Brake System
\"
:
\"
Non-Abs | 4-Wheel ABS
\"
,
\"
Steering Type
\"
:
\"
R&P
\"
,
\"
Curb Weight
\"
:
\"
2615
\"
,
\"
Gross Weight
\"
:
\"\"
,
\"
Overall Height
\"
:
\"
58.50 inches
\"
,
\"
Overall Length
\"
:
\"
178.30 inches
\"
,
\"
Overall Width
\"
:
\"
66.90 inches
\"
,
\"
Standard Seating
\"
:
\"
5
\"
,
\"
Optional Seating
\"
:
\"\"
,
\"
Invoice Price
\"
:
\"
$14,287
\"
,
\"
Delivery Charges
\"
:
\"
$540
\"
,
\"
MSRP
\"
:
\"
$15,790
\"
},
\"
success
\"
:true,
\"
error
\"
:
\"\"
}'
,
'DRTY SMMR, Myrtle Avenue, Brooklyn, NY, USA'
,
'40.6973088'
,
'-73.9308637'
,
'2018-12-17 11:42:55'
,
3
),
(
20
,
NULL
,
'2005 Toyota Corolla CE'
,
NULL
,
NULL
,
NULL
,
'1NXBR32E85Z505904'
,
'{
\"
vin
\"
:
\"
1NXBR32E85Z505904
\"
,
\"
attributes
\"
:{
\"
VIN
\"
:
\"
1NXBR32E85Z505904
\"
,
\"
Year
\"
:
\"
2005
\"
,
\"
Make
\"
:
\"
Toyota
\"
,
\"
Model
\"
:
\"
Corolla
\"
,
\"
Trim
\"
:
\"
CE
\"
,
\"
Short Trim
\"
:
\"
CE
\"
,
\"
Trim Variations
\"
:
\"
CE
\\
/ LE
\\
/ S
\"
,
\"
Made In
\"
:
\"
United States
\"
,
\"
Vehicle Style
\"
:
\"
Sedan (4-Door)
\"
,
\"
Vehicle Type
\"
:
\"
Car
\"
,
\"
Vehicle Size
\"
:
\"
Compact
\"
,
\"
Vehicle Category
\"
:
\"
Compact Cars
\"
,
\"
Doors
\"
:
\"
4
\"
,
\"
Fuel Type
\"
:
\"
Regular Unleaded
\"
,
\"
Fuel Capacity
\"
:
\"
13.2 gallon
\"
,
\"
City Mileage
\"
:
\"
30 - 32 miles
\\
/gallon
\"
,
\"
Highway Mileage
\"
:
\"
38 - 41 miles
\\
/gallon
\"
,
\"
Engine
\"
:
\"
1.8L L4 DOHC 16V
\"
,
\"
Engine Size
\"
:
\"
1.8
\"
,
\"
Engine Cylinders
\"
:
\"
4
\"
,
\"
Transmission Type
\"
:
\"
Automatic
\"
,
\"
Transmission Gears
\"
:
\"
4
\"
,
\"
Driven Wheels
\"
:
\"
Front Wheel Drive
\"
,
\"
Anti-Brake System
\"
:
\"
Non-Abs | 4-Wheel ABS
\"
,
\"
Steering Type
\"
:
\"
R&P
\"
,
\"
Curb Weight
\"
:
\"
2615
\"
,
\"
Gross Weight
\"
:
\"\"
,
\"
Overall Height
\"
:
\"
58.50 inches
\"
,
\"
Overall Length
\"
:
\"
178.30 inches
\"
,
\"
Overall Width
\"
:
\"
66.90 inches
\"
,
\"
Standard Seating
\"
:
\"
5
\"
,
\"
Optional Seating
\"
:
\"\"
,
\"
Invoice Price
\"
:
\"
$14,287
\"
,
\"
Delivery Charges
\"
:
\"
$540
\"
,
\"
MSRP
\"
:
\"
$15,790
\"
},
\"
success
\"
:true,
\"
error
\"
:
\"\"
,
\"
vehicle
\"
:
\"
2005 Toyota Corolla CE
\"
}'
,
'CA, USA'
,
'36.778261'
,
'-119.4179324'
,
'2018-12-17 12:35:05'
,
3
);
(
20
,
NULL
,
'2005 Toyota Corolla CE'
,
NULL
,
NULL
,
NULL
,
'1NXBR32E85Z505904'
,
'{
\"
vin
\"
:
\"
1NXBR32E85Z505904
\"
,
\"
attributes
\"
:{
\"
VIN
\"
:
\"
1NXBR32E85Z505904
\"
,
\"
Year
\"
:
\"
2005
\"
,
\"
Make
\"
:
\"
Toyota
\"
,
\"
Model
\"
:
\"
Corolla
\"
,
\"
Trim
\"
:
\"
CE
\"
,
\"
Short Trim
\"
:
\"
CE
\"
,
\"
Trim Variations
\"
:
\"
CE
\\
/ LE
\\
/ S
\"
,
\"
Made In
\"
:
\"
United States
\"
,
\"
Vehicle Style
\"
:
\"
Sedan (4-Door)
\"
,
\"
Vehicle Type
\"
:
\"
Car
\"
,
\"
Vehicle Size
\"
:
\"
Compact
\"
,
\"
Vehicle Category
\"
:
\"
Compact Cars
\"
,
\"
Doors
\"
:
\"
4
\"
,
\"
Fuel Type
\"
:
\"
Regular Unleaded
\"
,
\"
Fuel Capacity
\"
:
\"
13.2 gallon
\"
,
\"
City Mileage
\"
:
\"
30 - 32 miles
\\
/gallon
\"
,
\"
Highway Mileage
\"
:
\"
38 - 41 miles
\\
/gallon
\"
,
\"
Engine
\"
:
\"
1.8L L4 DOHC 16V
\"
,
\"
Engine Size
\"
:
\"
1.8
\"
,
\"
Engine Cylinders
\"
:
\"
4
\"
,
\"
Transmission Type
\"
:
\"
Automatic
\"
,
\"
Transmission Gears
\"
:
\"
4
\"
,
\"
Driven Wheels
\"
:
\"
Front Wheel Drive
\"
,
\"
Anti-Brake System
\"
:
\"
Non-Abs | 4-Wheel ABS
\"
,
\"
Steering Type
\"
:
\"
R&P
\"
,
\"
Curb Weight
\"
:
\"
2615
\"
,
\"
Gross Weight
\"
:
\"\"
,
\"
Overall Height
\"
:
\"
58.50 inches
\"
,
\"
Overall Length
\"
:
\"
178.30 inches
\"
,
\"
Overall Width
\"
:
\"
66.90 inches
\"
,
\"
Standard Seating
\"
:
\"
5
\"
,
\"
Optional Seating
\"
:
\"\"
,
\"
Invoice Price
\"
:
\"
$14,287
\"
,
\"
Delivery Charges
\"
:
\"
$540
\"
,
\"
MSRP
\"
:
\"
$15,790
\"
},
\"
success
\"
:true,
\"
error
\"
:
\"\"
,
\"
vehicle
\"
:
\"
2005 Toyota Corolla CE
\"
}'
,
'CA, USA'
,
'36.778261'
,
'-119.4179324'
,
'2018-12-17 12:35:05'
,
3
),
(
21
,
NULL
,
'2014 Hyundai Sonata GLS'
,
'sonata'
,
'hyundai'
,
'2014'
,
NULL
,
'{
\"
vehicle
\"
:
\"
2014 Hyundai Sonata GLS
\"
,
\"
attributes
\"
:{
\"
Year
\"
:
\"
2014
\"
,
\"
Make
\"
:
\"
Hyundai
\"
,
\"
Model
\"
:
\"
Sonata
\"
,
\"
Trim
\"
:
\"
GLS
\"
,
\"
Short Trim
\"
:
\"
GLS
\"
,
\"
Trim Variations
\"
:
\"
GLS
\\
/ GLS PZEV
\"
,
\"
Made In
\"
:
\"
United States
\"
,
\"
Vehicle Style
\"
:
\"
Sedan (4-Door)
\"
,
\"
Vehicle Type
\"
:
\"
Car
\"
,
\"
Vehicle Size
\"
:
\"
Midsize
\"
,
\"
Vehicle Category
\"
:
\"
Large Cars
\"
,
\"
Doors
\"
:
\"
4
\"
,
\"
Fuel Type
\"
:
\"
Regular Unleaded
\"
,
\"
Fuel Capacity
\"
:
\"
18.5 gallon
\"
,
\"
City Mileage
\"
:
\"
24 miles
\\
/gallon
\"
,
\"
Highway Mileage
\"
:
\"
35 miles
\\
/gallon
\"
,
\"
Engine
\"
:
\"
2.4L L4 DOHC 16V
\"
,
\"
Engine Size
\"
:
\"
2.4
\"
,
\"
Engine Cylinders
\"
:
\"
4
\"
,
\"
Transmission Type
\"
:
\"
Automatic
\"
,
\"
Transmission Gears
\"
:
\"
6
\"
,
\"
Driven Wheels
\"
:
\"
Front Wheel Drive
\"
,
\"
Anti-Brake System
\"
:
\"
4-Wheel ABS
\"
,
\"
Steering Type
\"
:
\"
R&P
\"
,
\"
Curb Weight
\"
:
\"\"
,
\"
Gross Weight
\"
:
\"\"
,
\"
Overall Height
\"
:
\"
57.90 inches
\"
,
\"
Overall Length
\"
:
\"
189.80 inches
\"
,
\"
Overall Width
\"
:
\"
72.20 inches
\"
,
\"
Standard Seating
\"
:
\"
5
\"
,
\"
Optional Seating
\"
:
\"\"
,
\"
Invoice Price
\"
:
\"
$20,532
\"
,
\"
Delivery Charges
\"
:
\"
$810
\"
,
\"
MSRP
\"
:
\"
$21,450
\"
},
\"
success
\"
:true,
\"
error
\"
:
\"\"
}'
,
'Fresno, CA, USA'
,
'36.7377981'
,
'-119.7871247'
,
'2018-12-17 12:48:33'
,
3
);
-- --------------------------------------------------------
-- --------------------------------------------------------
...
@@ -133,13 +134,7 @@ CREATE TABLE `issues` (
...
@@ -133,13 +134,7 @@ CREATE TABLE `issues` (
--
--
INSERT
INTO
`issues`
(
`issue_id`
,
`issue`
,
`issue_image`
,
`status`
)
VALUES
INSERT
INTO
`issues`
(
`issue_id`
,
`issue`
,
`issue_image`
,
`status`
)
VALUES
(
1
,
'Oil Change and General Service (Free Water Service).'
,
NULL
,
2
),
(
9
,
'dfrtge'
,
'assets/uploads/services/images8.jpg'
,
1
);
(
2
,
'Wheel Alignment and General Service (Free Water Service)'
,
NULL
,
1
),
(
3
,
'General Water Service and Periodic General Check up'
,
NULL
,
1
),
(
4
,
'Water Service (With polishing)'
,
NULL
,
1
),
(
5
,
'Water Service (Without polishing)'
,
NULL
,
1
),
(
6
,
'Oil Change and General Service (Free Water Service and Polishing).'
,
NULL
,
1
),
(
7
,
'Oil Change and General Service (Free Water Service and Polishing).'
,
NULL
,
1
);
-- --------------------------------------------------------
-- --------------------------------------------------------
...
@@ -157,6 +152,14 @@ CREATE TABLE `issues_category` (
...
@@ -157,6 +152,14 @@ CREATE TABLE `issues_category` (
`status`
tinyint
(
3
)
NOT
NULL
DEFAULT
'1'
`status`
tinyint
(
3
)
NOT
NULL
DEFAULT
'1'
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
--
-- Dumping data for table `issues_category`
--
INSERT
INTO
`issues_category`
(
`issue_cat_id`
,
`issue_id`
,
`issue_category`
,
`issue_cat_image`
,
`default_service_fee`
,
`default_description`
,
`status`
)
VALUES
(
3
,
9
,
'awert'
,
'assets/uploads/services/images7.jpg'
,
43
,
'sert'
,
1
),
(
4
,
9
,
'dfgse eswrftse sewrwe werwerf serdfewfr wearwe aweraw w3qrewq wqaew wqewq'
,
'assets/uploads/services/images7.jpg'
,
43
,
'dfgse eswrftse sewrwe werwerf serdfewfr wearwe awedfgse eswrftse sewrwe werwerf serdfewfr wearwe aweraw w3qrewq wqaew wqewq dfgse eswrftse sewrwe werwerf serdfewfr wearwe aweraw w3qrewq wqaew wqewq dfgse eswrftse sewrwe werwerf serdfewfr wearwe aweraw w3qrewq wqaew wqewq dfgse eswrftse sewrwe werwerf serdfewfr wearwe aweraw w3qrewq wqaew wqewq dfgse eswrftse sewrwe werwerf serdfewfr wearwe aweraw w3qrewq wqaew wqewq raw w3qrewq wqaew wqewq '
,
1
);
-- --------------------------------------------------------
-- --------------------------------------------------------
--
--
...
@@ -347,19 +350,19 @@ ALTER TABLE `customers`
...
@@ -347,19 +350,19 @@ ALTER TABLE `customers`
-- AUTO_INCREMENT for table `customer_vehicle`
-- AUTO_INCREMENT for table `customer_vehicle`
--
--
ALTER
TABLE
`customer_vehicle`
ALTER
TABLE
`customer_vehicle`
MODIFY
`customer_veh_id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
2
1
;
MODIFY
`customer_veh_id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
2
2
;
--
--
-- AUTO_INCREMENT for table `issues`
-- AUTO_INCREMENT for table `issues`
--
--
ALTER
TABLE
`issues`
ALTER
TABLE
`issues`
MODIFY
`issue_id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
8
;
MODIFY
`issue_id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
10
;
--
--
-- AUTO_INCREMENT for table `issues_category`
-- AUTO_INCREMENT for table `issues_category`
--
--
ALTER
TABLE
`issues_category`
ALTER
TABLE
`issues_category`
MODIFY
`issue_cat_id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
;
MODIFY
`issue_cat_id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
AUTO_INCREMENT
=
5
;
--
--
-- AUTO_INCREMENT for table `mechanic`
-- AUTO_INCREMENT for table `mechanic`
...
...
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