forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist_rrd.html
More file actions
71 lines (68 loc) · 5.01 KB
/
list_rrd.html
File metadata and controls
71 lines (68 loc) · 5.01 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
<table class="submenu">
<tr>
<td style="padding: 2px 0 0 6px">
<div style="submenu-button-block">
<a class="vst<?php if ((empty($_GET['period'])) || ($_GET['period'] == 'daily')) echo "-selected" ?>" href="?period=daily"><?php print __('Daily');?></a>
<a class="vst<?php if ((!empty($_GET['period'])) && ($_GET['period'] == 'weekly')) echo "-selected" ?>" href="?period=weekly"><?php print __('Weekly');?></a>
<a class="vst<?php if ((!empty($_GET['period'])) && ($_GET['period'] == 'monthly')) echo "-selected" ?>" href="?period=monthly"><?php print __('Monthly');?></a>
<a class="vst<?php if ((!empty($_GET['period'])) && ($_GET['period'] == 'yearly')) echo "-selected" ?>" href="?period=yearly"><?php print __('Yearly');?></a>
</div>
<div class="submenu-search-block">
<form action="/search/" method="get">
<input type="text" name="q" class="submenu-search-field">
<input type="submit" value="<?php print __('Search');?>" class="submenu-button" style="width: 96px;">
</form>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div id="vstobjects">
<table class='data'>
<?php
if (empty($_GET['period'])) {
$period='daily';
} else {
$period=$_GET['period'];
}
foreach ($data as $key => $value) {
?>
<tr class="data-row">
<td class="data-dotted" style="padding: 0px 10px 0px 0px" width="150px">
<table class="data-col1" width="150">
<tr><td style="padding: 24 0 4px 0;"><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo strftime("%d %b %Y", strtotime($data[$key]['DATE']))?></a></td></tr>
<tr><td><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo $data[$key]['TIME']?></a></td></tr>
</table>
</td>
<td class="data-dotted" width="830px" style="vertical-align:top;">
<a href="/rrd/<?php echo $data[$key]['TYPE']."/".$period."-".$data[$key]['RRD'].".png" ?>" target="_blank" class="data-controls">
<span>
<img src="/images/download.png" width="8px" height="8px">
<?php print __('download');?>
</span>
</a>
<table class="data-col2" width="830px">
<tr><td colspan=3 class="domain" style="padding: 0 0 4 4;"><b><?php echo __($data[$key]['TITLE']); ?></b></td></tr>
<tr>
<td style="vertical-align:top;" width="630px">
<table width="630px">
</tr>
<td style="background: #7a766d;" width="630px" height="250px">
<img style="padding: 0 0 0 36px;" src="/rrd/<?php echo $data[$key]['TYPE']."/".$period."-".$data[$key]['RRD'].".png" ?>">
</td>
</tr>
</table>
</td>
<td style="vertical-align:top;">
</td>
</tr>
</table>
</td>
</tr>
<?php
}
?>
</table>
</div>