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
4cda35d0
Commit
4cda35d0
authored
Feb 21, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
book service
parent
155eecb3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Webservice_model.php
application/models/Webservice_model.php
+2
-3
list-booking.php
application/views/Bookings/list-booking.php
+4
-2
No files found.
application/models/Webservice_model.php
View file @
4cda35d0
...
...
@@ -5,8 +5,8 @@ class Webservice_model extends CI_Model {
date_default_timezone_set
(
'Asia/Kolkata'
);
}
/***************************************************************************************
**
/
/****************************************Mobile API's***********************************
**
/
/***************************************************************************************/
/****************************************Mobile API's***********************************/
public
function
checkMobAvailability
(
$data
=
array
()){
$res
=
array
(
'status'
=>
'success'
,
'message'
=>
'Mobile Number Available'
,
'data'
=>
array
(
'phone'
=>
$data
[
'phone'
],
'is_available'
=>
true
));
...
...
@@ -245,7 +245,6 @@ class Webservice_model extends CI_Model {
$respArr
[
'message'
]
=
'success'
;
$respArr
[
'data'
]
=
$mechanic_data
;
}
$respArr
[
'message'
]
=
'Booking Id does\'t Exist'
;
}
return
$respArr
;
}
...
...
application/views/Bookings/list-booking.php
View file @
4cda35d0
...
...
@@ -119,11 +119,13 @@
onClick=
"return doconfirm()"
>
<i
class=
"fa fa-fw fa-trash"
></i>
Delete
</a>
<?php
if
(
$bookData
->
custom_id
==
''
){
?>
<?php
if
(
$bookData
->
custom_id
==
''
){
if
(
$this
->
session
->
userdata
[
'user_type'
]
!=
1
){
?>
<button
class=
"btn btn-sm btn-primary"
style=
"margin-top:3px;"
booking_id=
"
<?=
encode_param
(
$bookData
->
booking_id
)
?>
"
id=
"customQuote"
view=
"0"
>
<i
class=
"fa fa-fw fa-edit"
></i><span>
Generate Custom Quote
</span>
</button>
<?php
}
else
{
?>
<?php
}
}
else
{
?>
<button
class=
"btn btn-sm btn-primary"
style=
"margin-top:3px;"
booking_id=
"
<?=
encode_param
(
$bookData
->
custom_id
)
?>
"
id=
"customQuote"
view=
"1"
>
<i
class=
"fa fa-fw fa-edit"
></i><span>
View Custom Quote
</span>
</button>
...
...
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