-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsub category.php
157 lines (142 loc) · 6.19 KB
/
sub 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<?php require_once('../Config/covipedia.php');?>
<?php include('header.php');?>
<!--**********************************
Header end ti-comment-alt
***********************************-->
<!--**********************************
Sidebar start
***********************************-->
<!--**********************************
Sidebar end
***********************************-->
<!--**********************************
Content body start
***********************************-->
<div class="content-body">
<div class="container-fluid">
<!-- Add Project -->
<div class="modal fade" id="addProjectSidebar">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Create Project</h5>
<button type="button" class="close" data-dismiss="modal"><span>×</span>
</button>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label class="text-black font-w500">Project Name</label>
<input type="text" class="form-control">
</div>
<div class="form-group">
<label class="text-black font-w500">Deadline</label>
<input type="date" class="form-control">
</div>
<div class="form-group">
<label class="text-black font-w500">Client Name</label>
<input type="text" class="form-control">
</div>
<div class="form-group">
<button type="button" class="btn btn-primary">CREATE</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row page-titles mx-0">
<div class="col-sm-6 p-md-0">
<div class="welcome-text">
<h4>Hi, welcome back!</h4>
<h4 class="card-title">Sub Category Table</h4>
</div>
</div>
<div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
<ol class="breadcrumb">
<li class="breadcrumb-item">Table</a></li>
<li class="breadcrumb-item active"><a href="index.php">Home</a></li>
</ol>
</div>
</div>
<!-- row -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<a href="insertsubcategory.php">Sub Category Insert Table</a>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="example" class="display" style="min-width: 845px">
<thead>
<tr>
<th>SubCategory Id</th>
<th>Category Id</th>
<th>SubCategory Name</th>
<th>Category Name</th>
<th>SubCategory Description</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$sql="select * from sub_category s Join category c where s.Category_Id=c.Category_Id";
$result=mysqli_query($conn,$sql);
while($row=mysqli_fetch_array($result))
{
$sid=$row['SubCategory_Id'];
?>
<tr>
<td><?php echo $row['SubCategory_Id'];?></td>
<td><?php echo $row['Category_Id'];?></td>
<td><?php echo $row['SubCategory_Name'];?></td>
<td><?php echo $row['Category_Name'];?></td>
<td><?php echo $row['SubCategory_Description'];?></td>
<td><a href="dsubcategory.php?id=<?php echo $sid;?>"><img src="delete.png" height="25" width="25"/></a>
<a href="updatesubcategory.php?id=<?php echo $sid;?>"><img src="edit.jpg" height="25" width="25"/></a>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<th>SubCategory Id</th>
<th>Category Id</th>
<th>SubCategory Name</th>
<th>Category Name</th>
<th>SubCategory Description</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
<!--**********************************
Content body end
***********************************-->
<!--**********************************
Footer start
***********************************-->
<?php include('footer.php');?>
<!--**********************************
Footer end
***********************************-->
<!--**********************************
Support ticket button start
***********************************-->
<!--**********************************
Support ticket button end
***********************************-->
</div>
<!--**********************************
Main wrapper end
***********************************-->
<!--**********************************
Scripts
***********************************-->
<!-- Required vendors -->