This repository has been archived by the owner on Jun 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.php
50 lines (44 loc) · 1.54 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="jquery-ui.css" rel="stylesheet" type="text/css"/>
<link href="slider.css" rel="stylesheet" type="text/css" />
<title>Test</title>
</head>
<body >
<div id="outer">
<center><strong><h1>Slider Image Password </h1></strong></center>
<?php
header('Content-Type: text/html');
$i = 1;
$handle = opendir(dirname(realpath(__FILE__)).'/otherIMG/');
$path = dirname(realpath(__FILE__)).'/otherIMG/';
echo "<div id='sliderH'>";
echo "<table class='slider' id='slider' border='0'><tr>";
$noF = 0;
while($file = readdir($handle))if($file != "." && $file != ".." && strstr($file, ".png") || strstr($file, ".jpg")){
$noF++;
$imgArr[$i] = "<td>
<div class=\"insideWrapper\" >
<img id='pic".$i."' class='non' src='/otherIMG/".$file."' border='0' width=\"128\" height=\"128\"/>
<canvas id='pic".$i."' class=\"imgMask\" width=\"128\" height=\"128\"></canvas>
</div>
</td>";
$i++;
}
for($i=1; $i < count($imgArr); $i++){
echo $imgArr[$i];
}
echo "</tr></table><div class=\"spacer\" style=\"clear: both;\"></div>";
?>
<input class='btn submit' value='Check' type='button' onclick='checkP();'/>
</div>
</div>
<script src="jquery.min.js" type="text/javascript"></script>
<script src="jcanvas.min.js" type="text/javascript"></script>
<script type="text/javascript" src="jquery-ui.js"></script>
<script src="test.js" type="text/javascript"></script>
<script src="jquery.ui.draggable.snap2.js" type="text/javascript"></script>
</body>
</html>