-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmins.php
executable file
·79 lines (74 loc) · 3.09 KB
/
admins.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
require_once dirname(__FILE__).'/include/header.php';
require_once dirname(__FILE__).'/include/api.php';
require_once dirname(__FILE__).'/include/navbar.php';
$api = new API;
$response = $api->getAdmins();
?>
<?php if(!$response->error)
{
$admins = $response->admins;
?>
<div class="socialcodia" style="margin-top: -30px">
<div class="row">
<div class="col l12 s12 m12" style="padding: 30px 0px 30px 10px;">
<div class="card z-depth-0">
<div class="card-content">
<div class="input-field">
<input type="text" name="productName" autocomplete="off" id="productName" placeholder="" onkeyup="filterProduct()">
<label for="productName">Enter Seller Name</label>
</div>
</div>
</div>
<div id="productList">
<div class="card z-depth-0">
<table id="mstrTable" class="highlight responsive-table ">
<thead>
<tr>
<th>Sr No</th>
<th>Image</th>
<th>Name</th>
<th>Email</th>
<th>Position</th>
</tr>
</thead>
<tbody id="tableBody">
<tr>
<?php
$count = 1;
foreach ($admins as $admin)
{
$image = $admin->adminImage;
if (!isset($image) && empty($image))
$image = 'src/icons/admin.png';
echo "<tr>";
echo "<td>$count</td>";
echo "<td><a href='#!'><img src='$image' class='circle' style='width:50px; height:50px; border:2px solid #2196F3'/></a></td>";
echo "<td class='blue-text darken-4'><a href='#!'>$admin->adminName</a></td>";
echo "<td style='font-weight:bold'>$admin->adminEmail</td>";
echo "<td class='blue-text darken-4'><span class='chip red white-text'>$admin->adminPosition</span></td>";
$count++;
echo "</tr>";
}
?>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<?php }
else
{
?>
<div class="socialcodia center">
<h4>No Admin Found</h4>
<img class="verticalCenter socialcodia" src="src/img/empty_cart.svg">
</div>
<?php
}
?>
<?php require_once dirname(__FILE__).'/include/sidenav.php'; ?>
<?php require_once dirname(__FILE__).'/include/footer.php'; ?>