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
2ec7ffe9
Commit
2ec7ffe9
authored
Aug 07, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add shop
parent
e0ee42b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
137 additions
and
0 deletions
+137
-0
listShops.php
application/views/Shop/listShops.php
+137
-0
No files found.
application/views/Shop/listShops.php
0 → 100644
View file @
2ec7ffe9
<div
class=
"content-wrapper"
>
<section
class=
"content-header"
>
<h1>
<?=
$pTitle
?>
<small>
<?=
$pDescription
?>
</small></h1>
<ol
class=
"breadcrumb"
>
<li><a
href=
"
<?=
base_url
()
?>
"
><i
class=
"fa fa-star-o"
aria-hidden=
"true"
></i>
Home
</a></li>
<li>
<?=
$menu
?>
</li>
<li
class=
"active"
>
<?=
$smenu
?>
</li>
</ol>
</section>
<section
class=
"content"
>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<div
class=
"box box-warning"
>
<div
class=
"box-header with-border"
>
<div
class=
"col-md-6"
><h3
class=
"box-title"
>
Shop
</h3></div>
<div
class=
"col-md-6"
align=
"right"
>
<a
class=
"btn btn-sm btn-primary"
href=
"
<?=
base_url
()
?>
"
>
Back
</a>
</div>
</div>
<div
class=
"box-body"
>
<?php
if
(
!
empty
(
$shop_data
)
&&
$shop_data
[
'status'
]
==
'success'
){
?>
<!-- <table id="mechanicUsers" class="table table-bordered table-striped datatable ">
<thead>
<tr>
<th class="hidden">ID</th>
<th width="150px;">Shop Name</th>
<th width="150px;">Phone</th>
<th width="150px;">Email ID</th>
<th width="250px;">Address</th>
<th width="100px;">Status</th>
</tr>
</thead>
<tbody>
<?php
if
(
!
empty
(
$shop_data
)
&&
$shop_data
[
'status'
]
==
'success'
){
?>
<tr>
<th class="hidden">
<?=
$shop_data
[
'shops'
][
'shop_id'
]
?>
</th>
<th class="center">
<?=
$shop_data
[
'shops'
][
'shop_name'
]
?>
</th>
<th class="center">
<?=
$shop_data
[
'shops'
][
'phone'
]
?>
</th>
<th class="center">
<?=
$shop_data
[
'shops'
][
'email_id'
]
?>
</th>
<th class="center">
<?=
$shop_data
[
'shops'
][
'address'
]
?>
</th>
<th class="center">
<?=
(
$shop_data
[
'shops'
][
'status'
]
==
1
)
?
'Active'
:
'De-activate'
?>
</th>
</tr>
<?php
}
?>
</tbody>
</table> -->
<div
class=
"col-md-3"
>
<div
class=
"row"
>
<div
class=
"col-md-5"
><span>
Shop Name
</span></div>
<div
class=
"col-md-7"
>
<span>
:-
</span>
<label
class=
"padLeft20"
>
<?=
$shop_data
[
'shops'
][
'shop_name'
]
?>
</label>
</div>
</div>
</div>
<div
class=
"col-md-3"
>
<div
class=
"row"
>
<div
class=
"col-md-5"
><span>
Phone
</span></div>
<div
class=
"col-md-7"
>
<span>
:-
</span>
<label
class=
"padLeft20"
>
<?=
$shop_data
[
'shops'
][
'phone'
]
?>
</label>
</div>
</div>
</div>
<div
class=
"col-md-3"
>
<div
class=
"row"
>
<div
class=
"col-md-4"
><span>
Email ID
</span></div>
<div
class=
"col-md-8"
>
<span>
:-
</span>
<label
class=
"padLeft20"
>
<?=
$shop_data
[
'shops'
][
'email_id'
]
?>
</label>
</div>
</div>
</div>
<div
class=
"col-md-3"
>
<div
class=
"row"
>
<div
class=
"col-md-4"
><span>
Address
</span></div>
<div
class=
"col-md-8"
>
<span>
:-
</span>
<label
class=
"padLeft20"
>
<?=
$shop_data
[
'shops'
][
'address'
]
?>
</label>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
<?php
if
(
count
(
$shop_data
[
'coworkers'
])
>
0
){
?>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<div
class=
"box box-warning"
>
<div
class=
"box-header with-border"
>
<div
class=
"col-md-6"
><h3
class=
"box-title"
>
List Of Co-Workers
</h3></div>
</div>
<div
class=
"box-body"
>
<table
id=
"mechanicShopUsers"
class=
"table table-bordered table-striped datatable "
>
<thead>
<tr>
<th
class=
"hidden"
>
ID
</th>
<th
width=
"150px;"
>
Mechanic Name
</th>
<th
width=
"150px;"
>
Phone
</th>
<th
width=
"150px;"
>
Email ID
</th>
<th
width=
"250px;"
>
Address
</th>
</tr>
</thead>
<tbody>
<?php
if
(
!
empty
(
$shop_data
)
&&
$shop_data
[
'status'
]
==
'success'
){
foreach
(
$shop_data
[
'coworkers'
]
as
$key
=>
$value
)
{
?>
<tr>
<th
class=
"hidden"
>
<?=
$value
[
'mechanic_id'
]
?>
</th>
<th
class=
"center"
>
<?=
$value
[
'first_name'
]
.
' '
.
$value
[
'last_name'
]
?>
</th>
<th
class=
"center"
>
<?=
$value
[
'phone'
]
?>
</th>
<th
class=
"center"
>
<?=
$value
[
'email_id'
]
?>
</th>
<th
class=
"center"
>
<?=
$value
[
'address'
]
?>
</th>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php
}
?>
</section>
</div>
\ No newline at end of file
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