-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathview_book_category.php
executable file
·117 lines (102 loc) · 5.92 KB
/
view_book_category.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php
session_start();
include('config/config.php');
include('config/checklogin.php');
check_login();
require_once('partials/_head.php');
?>
<body>
<!-- BEGIN NAVBAR -->
<?php
require_once('partials/_navbar.php');
$view = $_GET['view'];
$ret="SELECT * FROM book_categories WHERE category_id = '$view'";
$stmt= $mysqli->prepare($ret);
$stmt->execute();
$res=$stmt->get_result();
while($cat=$res->fetch_object())
{
?>
<!-- END NAVBAR -->
<!-- BEGIN NAVBAR -->
<div class="sub-header-container">
<header class="header navbar navbar-expand-sm">
<a href="javascript:void(0);" class="sidebarCollapse" data-placement="bottom"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg></a>
<ul class="navbar-nav flex-row">
<li>
<div class="page-header">
<nav class="breadcrumb-one" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="dashboard.php">Home</a></li>
<li class="breadcrumb-item"><a href="javascript:void(0);">Dashboard</a></li>
<li class="breadcrumb-item"><a href="javascript:void(0);">Book Categories</a></li>
<li class="breadcrumb-item"><a href="javascript:void(0);">Manage Book Categories</a></li>
<li class="breadcrumb-item"><a href="javascript:void(0);">View Book Category</a></li>
<li class="breadcrumb-item active" aria-current="page"><span><?php echo $cat->category_name;?></span></li>
</ol>
</nav>
</div>
</li>
</ul>
</header>
</div>
<!-- END NAVBAR -->
<!-- BEGIN MAIN CONTAINER -->
<div class="main-container" id="container">
<div class="overlay"></div>
<div class="search-overlay"></div>
<!-- BEGIN SIDEBAR -->
<?php
require_once('partials/_sidebar.php');
?>
<!-- END SIDEBAR -->
<!-- BEGIN CONTENT AREA -->
<div id="content" class="main-content">
<div class="layout-px-spacing">
<div class="row layout-spacing">
<!-- Content -->
<div class="col-xl-4 col-lg-6 col-md-5 col-sm-12 layout-top-spacing">
<div class="user-profile layout-spacing">
<div class="widget-content widget-content-area">
<div class="d-flex justify-content-between">
<h3 class=""><?php echo $cat->category_name;?>'s Details</h3>
<a href="update_book_category.php?update=<?php echo $cat->category_id;?>" class="mt-2 edit-profile"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit-3"><path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path></svg></a>
</div>
<div class="text-center user-info">
<img src='assets/img/book_category.jpg' class='img-thumbnail img-fluid' alt='avatar'>
<p class="">Category Name : <?php echo $cat->category_name;?></p>
</div>
<div class="user-info-list">
<div class="">
<ul class="contacts-block list-unstyled">
<li class="contacts-block__item">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-activity"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7" y2="7"></line></svg>
<?php echo $cat->category_code;?>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-8 col-lg-6 col-md-7 col-sm-12 layout-top-spacing">
<div class="bio layout-spacing ">
<div class="widget-content widget-content-area">
<h3 class="">Book Category Description</h3>
<p>
<?php
echo $cat->category_description;
?>
</p>
</div>
</div>
</div>
</div>
</div>
<?php require_once('partials/_footer.php');?>
</div>
<!-- END CONTENT AREA -->
</div>
<?php require_once('partials/_scripts.php'); }?>
</body>
</html>