-
Notifications
You must be signed in to change notification settings - Fork 0
/
foto_ch.php
66 lines (64 loc) · 1.67 KB
/
foto_ch.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
<?php
session_start();
require "pics_ch.php";
session_start();
$_SESSION["gpics"] =$gpics;
$x = json_decode($gpics,true);
$sz = count($x["gallery"]);
require "funcz/functionz.php";
print head("ch","照片");
?>
<body>
<div id="wrapper">
<div id="sidebar-wrapper">
<?php print menu("ch","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>照片</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_ch.php","ch");
print "</div>";
}
}
?> </div>
<div class="alpha">点击图片查看原图</div>
<?php print foot(); ?>
</div>
</div>
</div>
</div> <!-- /#page-content-wrapper -->
</div> <!-- /#wrapper -->
<?php print endPage();?>
</body>
</html>