-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfiles.php
More file actions
71 lines (66 loc) · 2 KB
/
Copy pathfiles.php
File metadata and controls
71 lines (66 loc) · 2 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
<?PHP
$hide=array("md5"=>true);
?>
<HTML>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script src="./js/jquery-1.10.2.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script>
var app = angular.module('fileApp', []);
app.controller('filelistCtrl', function($scope, $http) {
var data = { mode: "fileList"};
$http({ url:"json.php",
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
data: $.param({mode: "fileList"}) })
.then(function (response) {$scope.json = response.data;});
});
</script>
</head>
<BODY>
<div ng-app="fileApp" ng-controller="filelistCtrl">
<table id="FileTable" class="table compact table-hover">
<thead>
<tr>
<th>ID</th>
<TH>icons</TH>
<th>File</th>
<?if(!$hide["md5"]){?><th>MD5</th><?}?>
<th>Timestamp</th>
<th>Duration</th>
<th>Filesize</th>
<th>_high</th>
<th>_med</th>
<th>_low</th>
<th>_strip</th>
<th>_thumb</th>
</tr>
</thead>
<tbody>
<TR CLASS="{{ x.error ? 'danger':'sucess' }}" ng-repeat="x in json.vid">
<td>{{ x.id }}</td>
<td> </td>
<td>{{ x.sql.filename }}</td>
<!-- <td>{{ x.sql.md5 }}</td> -->
<td>{{ x.sql.dt }}</td>
<td>{{ x.sql.duration }}</td>
<td>{{ x.files.original }}</td>
<td>{{ x.files.high }} </td>
<td>{{ x.files.med }} </td>
<td>{{ x.files.low }} </td>
<td>{{ x.files.strip }} </td>
<td>{{ x.files.thumb }} </td>
</TR>
</TBODY>
</TABLE>
<?
/*
<div ng-repeat="x in json.vid" ID="{{ x.id }}">
{{ x.id }}
</div>
*/?>
</div>
</BODY>
</HTML>