-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexportList.php
More file actions
61 lines (43 loc) · 1.81 KB
/
Copy pathexportList.php
File metadata and controls
61 lines (43 loc) · 1.81 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
<?php include 'general/header.php';?>
<div id="content">
<div class="container">
<!--=== Page Header ===-->
<div class="page-header">
<div class="page-title">
</div>
</div>
<!-- /Page Header -->
<?php $jsonValue = json_decode(file_get_contents($apiUrl.'/api/getsrapedates/'.$_GET['lang'])); ?>
<!--=== Page Content ===-->
<div class="row">
<!--=== Example Box ===-->
<div class="col-md-12">
<table class="table table-striped table-bordered table-hover" id="showexport">
<thead>
<tr>
<th>Date</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php foreach($jsonValue as $values): ?>
<tr>
<td > <B> <?php echo date("Y-m-d",strtotime($values->lastUpdated));?> </B> </td>
<td><a href="<?php echo $apiUrl;?>/api/getdata/xls/1/0/<?php echo $_GET['lang'];?>/<?php echo $values->lastUpdated;?>/<?php echo ( basename($_SERVER['PHP_SELF']) =='codes.php' ? 1 : 0);?>"> <i class="icon-download"></i> Download</a> </td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
<!-- /.container -->
</div>
<script>
$(document).ready(function() {
$('#showexport').dataTable( {
"order": [[ 1, "desc" ]]
} );
} );
</script>
</div>
</body>
</html>