-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
80 lines (65 loc) · 1.69 KB
/
admin.php
File metadata and controls
80 lines (65 loc) · 1.69 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
70
71
72
73
74
75
76
77
78
79
80
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="./css/fullcalendar.css" rel="stylesheet" type="text/css" />
<script src="./js/jquery.js"></script>
<script type='text/javascript' src='./js/fullcalendar.js'></script>
</head>
<body>
<?php
include("./top_bar.php");
include("./menubaradmin.php");
?>
<div id="content">
<div id=left>
<?php
/* To count number of files in folder */
$fileCount = 0;
$dir = 'slideshow/';
if ($handle = opendir($dir)) {
while (($file = readdir($handle)) !== false){
if (!in_array($file, array('.', '..')) && !is_dir($dir.$file))
$fileCount++;
}
}
?>
<p><img src="slideshow/4.jpg" width="500" height="300" name="slide" /></p>
<script type="text/javascript">
/*Slide show*/
var i=0;
var images = new Array();
for(i=0;i<<?php echo $fileCount ?>;i++)
{
images[i] = new Image();
images[i].src = "slideshow/"+i+".jpg";
}
var step=0;
function slideit()
{
document.images.slide.src = eval("images[" + step + "].src");
step++;
if(step==<?php echo $fileCount ?>)
step=0;
setTimeout("slideit()",1000);
}
slideit();
</script>
</div>
<div id=right>
<div id="right_top">
<div id="calendar">
<input id=plancal type = button value="plan calendar">
</div>
</div>
<div id=right_bottom>
What new tutorial you want to be included<br>
<input type="radio" value=android>Android<br>
<input type="radio" value=windows>Windows<br>
<input type=submit value=POLL>
</div>
</div>
</div>
<script src="./js/calendarShow.js"></script>
<script src = "./js/ajaxhome.js"></script>
</body>
</html>