This repository has been archived by the owner on Mar 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtaxonomists_card.php
63 lines (61 loc) · 2.35 KB
/
taxonomists_card.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
<?php
include_once 'init.php';
$id = $_GET['id'];
$order_by = $_GET['order_by'];
$page_title = 'Taxonomists';
$filter_by = 'published';
include_once 'libraries/species/taxonomists.php';
$taxonomists = new Taxonomists;
$result = mysqli_query($mysqli, $taxonomists->getTaxonomists($id, $order_by,$filter_by));
?>
<!doctype html>
<html lang="pt">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="<?php echo $author; ?>">
<title><?php echo $page_title; ?> - <?php echo $site_name; ?></title>
<?php include_once 'modules/head.php'; ?>
</head>
<body class="bg-light <?php echo lcfirst($page_title); ?>">
<?php include_once 'modules/menu.php'; ?>
<div class="container-fluid" role="main">
<div class="toolbar sticky-top row my-2 p-2">
<div class="col-12">
<h4><?php echo $page_title; ?></h4>
</div>
</div>
<div class="row">
<?php if (!$result->num_rows): ?>
<p>No entries</p>
<?php else: ?>
<?php while ($row = mysqli_fetch_object($result)): ?>
<div class="col-12 col-md-3">
<div class="card mt-3 mb-3">
<?php if ($row->image): ?>
<img class="card-img-top" src="<?php echo $row->image; ?>" alt="<?php echo $row->name; ?>">
<?php endif; ?>
<div class="card-header">
<h5 class="float-left"><?php echo $row->name; ?></h5>
<a href="taxonomist.php?id=<?php echo $row->id; ?>" role="button" class="btn btn-primary btn-sm float-right">Details</a>
</div>
<div class="card-body">
<?php //echo $row->description; ?>
</div>
<div class="card-footer">
<span class="badge badge-secondary"><?php echo $row->note; ?></span>
<span class="float-right">ID#<span class="badge badge-secondary badge-pill"><?php echo $row->id; ?></span></span>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
<?php mysqli_free_result($result); ?>
<?php mysqli_close($mysqli); ?>
</div>
</div>
<?php include_once 'modules/footer.php'; ?>
</body>
</html>