/
foto_e.php
64 lines (64 loc) · 1.67 KB
/
foto_e.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
<?php
require "funcz/functionz.php";
session_start();
require "pics_e.php";
$_SESSION["gpics"] = $gpics;
$x = json_decode($gpics,true);
$sz = count($x["gallery"]);
print head("en","Photos");
?>
<body>
<div id="wrapper">
<div id="sidebar-wrapper">
<?php print menu("en","Photographs","foto_e.php","foto.php","foto_ch.php");?>
</div>
<div id="page-content-wrapper">
<div class="container-fluid">
<?php topRight();?>
<div class="row">
<div class="col-lg-12">
<h2>Photographs</h2>
</div>
</div>
<?
$ctr=999;
for ($i=0;$i<$sz;$i++)
{
$y = $x["gallery"][$i];
$picSmall = $y["picSmall"];
$picLarge = $y["picLarge"];
$flag = $y["flag"];
switch($flag)
{case "T":
$grpTtl = $y["picTtl"];
if ($ctr<999)print "</div>";
print '<h3>'.$grpTtl.'</h3>
<div class="row rowBorder">';
$ctr=0;
break;
default:
$picTtl = $y["picTtl"];
$ctr++;
if ($ctr>5)
{
print '</div>';
print '<div class="row rowBorder">';
$ctr = 1;
}
print '<div class="col-lg-2 col-md-2 col-sm-2 bordered">';
displayPic($i,"foto_e.php","en");
print "</div>";
}
}
?>
</div>
<div class="alpha">Click here to see photos full sized</div>
<?php print foot(); ?>
</div>
</div>
</div>
</div> <!-- /#page-content-wrapper -->
</div> <!-- /#wrapper -->
<?php print endPage();?>
</body>
</html>