-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathviewphotogallery.php
97 lines (92 loc) · 2.67 KB
/
viewphotogallery.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
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="res/styles.css" type="text/css" media="screen">
<link rel="stylesheet" href="res/lightbox.css" type="text/css" media="screen">
<script src="res/prototype.js" type="text/javascript"></script>
<script src="res/scriptaculous.js" type="text/javascript"></script>
<script src="res/lightbox.js" type="text/javascript"></script>
<?php
include("header.php");
?>
<div id="main">
<div id="content" class="left">
<div class="highlight">
<!-- View photo gallery -->
<DIV style="CLEAR: both"></DIV>
</div><div id="contentBox">
<?php
if(isset($_GET[instid]))
{
$resultalbum = mysqli_query($con,"select * from gallery where inst_id='$_GET[instid]'");
}
else
{
$resultalbum = mysqli_query($con,"select * from gallery");
}
?>
<h3>Album</h3>
<?php
while($arrows = mysqli_fetch_array($resultalbum))
{
?>
<div class="thumbsBox">
<a href="viewphotogallery.php?albid=<?php echo $arrows[album_id]; ?>" rel="lightbox[roadtrip]" title="6">
<img src="upload/album.jpg" width="100" height="80" border="0"><div>
<?php
echo $arrows[album_name];
?></div></a>
</div>
<?php
}
?>
<DIV style="CLEAR: both"></DIV>
<?php
if(isset($_GET[albid]))
{
$resultalbum11 = mysqli_query($con,"select * from upload_data where album_id='$_GET[albid]'");
while($arrows1 = mysqli_fetch_array($resultalbum11))
{
?>
<div class="thumbsBox">
<a href="viewphotogallerysingle.php?photoname=<?php echo $arrows1[file_name]; ?>" rel="lightbox[roadtrip]">
<img src="user_data/<?php echo $arrows1[file_name]; ?>" width="100" height="80" border="0"><div>
<?php
echo $arrows[file_name];
?></div></a>
</div> <?php
}
}
?>
<DIV style="CLEAR: both"></DIV>
<!-- End View photo gallery -->
<p> </p>
</div>
<div class="projects">
<div class="item"></div>
<div class="item">
<div class="cl"> </div>
</div>
</div>
</div>
<div id="sidebar" class="right">
<h3>Select institution</h3>
<div class="sidebar-nav">
<ul>
<?php
$resinst = mysqli_query($con,"select * from institute");
while($recs = mysqli_fetch_array($resinst))
{
echo "<li><a href='viewphotogallery.php?instname=$recs[inst_name]&instid=$recs[inst_id]'>$recs[inst_name]</a></li>";
}
?>
</ul>
</div>
</div>
<div class="cl"> </div>
</div>
<div class="shadow-l"></div>
<div class="shadow-r"></div>
<div class="shadow-b"></div>
</div>
<?php
include("footer.php");
?>