-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgallery.php
More file actions
150 lines (135 loc) · 5.71 KB
/
gallery.php
File metadata and controls
150 lines (135 loc) · 5.71 KB
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
<?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>
<span>Gallery Table</span>
</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="insertgallery.php">Gallery Insert Table</a>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="example" class="display" style="min-width: 845px">
<thead>
<tr>
<th>Gallery Id</th>
<th>Image Path</th>
<th>Image Description</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$sql="select * from gallery";
$result=mysqli_query($conn,$sql);
while($row=mysqli_fetch_array($result))
{
$gid=$row['Gallery_Id'];
?>
<tr>
<td><?php echo $row['Gallery_Id'];?></td>
<td><img src="../Image/<?php echo $row['Image_Path']?>" height="50" width="50"/></td>
<td><?php echo $row['Image_Description'];?></td>
<td><a href="dgallery.php?id=<?php echo $gid;?>"><img src="delete.png" height="25" weidth="25"/></a>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<th>Gallery Id</th>
<th>Image Path</th>
<th>Image 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 -->