-
Notifications
You must be signed in to change notification settings - Fork 0
/
gallery.php
142 lines (132 loc) · 4.91 KB
/
gallery.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
<?php
if(isset($_GET['page'])){
$c = $_GET['page'];
if($c>4||$c<=0){
$c = 1;
}
}else{
$c = 1;
}
function active($i,$c){
if($i==$c) return 'class="active"';
}
function disabled($i,$c){
if($i==$c) return 'class="disabled"';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="C-SCAN'16" />
<meta property="og:site_name" content="cscan.org.in"/>
<meta property="og:url" content="http://cscan.org.in"/>
<meta property="og:description" content="C-SCAN 2016, the first of it's kind, is a conference aimed at bringing in student-teacher fraternity of CS Departments of reputed NIT's across the nation under a single umbrella for exchange of ideas spark innovation." />
<meta property="og:image" content="http://cscan.org.in/logo.png">
<title>C-SCAN'16</title>
<link href="./css/styles.css" rel="stylesheet">
<link href="./css/gallery.css" rel="stylesheet">
<link rel="icon" href="./logo.png" type="image/png">
<link rel="shortcut icon" href="./logo.png" type="image/png">
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/dynamics.min.js"></script>
</head>
<body>
<div class="header" id="home">
<div class="over"></div>
<div class="bg"></div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12 col-md-offset-0 col-xs-12">
<div class="sub">
<div class="thefloat">
<a class="brochure" href="#">Download Brochure</a>
</div>
<img src="images/logo.png" />
<div>
<h1>C-SCAN '16</h1>
<h2>Computer Science Conference of All NITs
<br/>Feb 19 - 21, 2016, NIT Calicut.</h2>
</div>
</div>
</div>
</div>
</div>
</div>
<nav class="navsection navbar navbar-default hidden-xs">
<div class="container-fluid">
<nav id="sac-navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="./">Home</a></li>
</ul>
</nav>
</div>
</nav>
<div class="committe" style="min-height:300px">
<div class="container">
<div class="row">
<div class="col-md-12 col-xs-12">
<h1>Gallery</h1>
<div id="tabContent" class="tab-content">
<div role="tabpanel" class="tab-pane fade active in" id="pics1" aria-labelledby="pics-tab" style="text-align:center">
<?php
$f = ($c-1)*8+1;
for($i=$f;$i<$f+8;$i++){
?>
<div class="pictures">
<a href="#">
<img src="./images/photos/<?=$i?>.JPG" data-toggle="modal" data-target="#myModal">
</a>
</div>
<?php } ?>
</div>
</div>
<nav class="pages" style="text-align:center">
<ul class="pagination">
<li style="cursor:pointer" <?=disabled(1,$c);?>>
<a id="prev" href="./gallery.php?page=<?=$c-1?>" >
<span aria-hidden="true">«</span>
</a>
</li>
<li <?=active(1,$c);?>><a href="./gallery.php?page=1">1</a></li>
<li <?=active(2,$c);?>><a href="./gallery.php?page=2">2</a></li>
<li <?=active(3,$c);?>><a href="./gallery.php?page=3">3</a></li>
<li <?=active(4,$c);?>><a href="./gallery.php?page=4">4</a></li>
<li style="cursor:pointer" <?=disabled(4,$c);?>>
<a id="next" href="./gallery.php?page=<?=$c+1?>" >
<span aria-hidden="true">»</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
<div class="footer">
<p> © Creative and Intellectual minds of NIT Calicut </p>
</div>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModal" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<!--div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel" style="color:black">The Swiss Maestro</h4>
</div-->
<div class="modal-body">
<div style="text-align:center">
<img id="img" src="" alt="Not Found" style="display:inline;height:100%;width:100%">
</div>
</div>
</div>
</div>
</div>
<script>
$('.pictures').on('click', 'img', function(){
var src = $(this).attr('src');
$("#img").attr("src", src);
});
</script>