-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathman.php
More file actions
69 lines (65 loc) · 1.84 KB
/
Copy pathman.php
File metadata and controls
69 lines (65 loc) · 1.84 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
<?php
require("include.php");
?>
<h2>2011 JackJones杰克琼斯 给力男装 优惠特卖</h2>
<!-- Start Advanced Gallery Html Containers -->
<div id="gallery" class="content">
<div id="controls" class="controls"></div>
<div class="slideshow-container">
<div id="loading" class="loader"></div>
<div id="slideshow" class="slideshow"></div>
<div id="caption" class="caption-container"></div>
</div>
<div id="captionToggle">
<a href="#toggleCaption" class="off" title="Show Caption">详细介绍</a>
</div>
</div>
<div id="thumbs" class="navigation">
<ul class="thumbs noscript" id="_imgul" >
</ul>
</div>
<div style="clear: both;"></div>
<div id="hidden_div" style="display:none;">
<li id="hidden_li">
<a title="Title #0" name="leaf" class="thumb">
<img alt="Title #0" src="" name="s"/>
</a>
<div class="caption">
<div class="download">
<a name="download" href="/" target="_blank">下载原图</a>
</div>
<div class="image-title"></div>
<div class="image-desc"></div>
</div>
</li>
</div>
<!-- -->
</div>
</div>
<?PHP
$types = array("coat","shirt","trousers");
$type=$_GET["type"];
if(in_array($type,$types)){
getHiddenFolder('images/man/'.$type);
}else{
getHiddenFolder('images/man');
}
?>
</script>
<?php
require("footer.php");
function getHiddenFolder($path){
$handle = opendir($path);
while (($file = readdir($handle)) !== false) {
if ($file != "." && $file != ".."){
if (is_dir($path . "/" . $file)) {
getHiddenFolder($path . "/" . $file);
}
if($file == "des.json"){
echo '<input type="hidden" name="json" value="'.$path."/".'" />';
}
}
}
}
?>
<input type="hidden" id="currentPageId" value="nav_man"/>