-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·41 lines (36 loc) · 1.09 KB
/
index.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
<?php
include("filetree/php_file_tree.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="style2.css" type="text/css" />
<link href="filetree/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
//FileTree
// Hide all subfolders at startup
$(".php-file-tree").find("UL").hide();
// Expand/collapse on click
$(".php-file-tree").on('click','.pft-directory', function() {
$(this).find("UL:first").slideToggle("medium");
return false;
});
$(".php-file-tree").on('click','.file', function() {
fails=$(this).attr('rel');
$.post("diff.php",{'file':$(this).attr('rel')},function(resp) {$("#result").html(resp)});
return false;
});
});
</script>
</head>
<body>
<div id="izvele">
<?php echo php_file_tree("compare/pc/"); ?>
</div>
<div id="result">
</div>
</body>
</html>