Files
VestaCP/web/templates/admin/list_rrd.html
ZonD Eighty a2d33b72ec Completed translation to EN/RU
HTML need to be fixed, configurable language need to be added to user
settings, need to change some API answers to translate RRD Graphics.
2013-01-16 15:36:57 +04:00

72 lines
5.1 KiB
HTML

<table class="sub-menu" style="background: white;">
<tr>
<td style="padding: 12px 0 0 16px">
<div style="float:left">
<a class="vst" <?php if ((empty($_GET['period'])) || ($_GET['period'] == 'daily')) echo "style='color: #174f82'" ?> href="?period=daily"><?php print _('Daily');?></a>
<a class="vst" <?php if ($_GET['period'] == 'weekly') echo "style='color: #174f82'" ?> href="?period=weekly"><?php print _('Weekly');?></a>
<a class="vst" <?php if ($_GET['period'] == 'monthly') echo "style='color: #174f82'" ?> href="?period=monthly"><?php print _('Monthly');?></a>
<a class="vst" <?php if ($_GET['period'] == 'yearly') echo "style='color: #174f82'" ?> href="?period=yearly"><?php print _('Yearly');?></a>
</div>
<div style="text-align: right; float: right;">
<form action="/search/" method="get" >
<input type="text" name="q" style="margin: 2px 2px 0px 0px; width: 250px; padding: 3px;" size="30">
<input type="submit" value="<?php print _('Search');?>" class="button" style="font-size: 12px; height: 24px;">
</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 4 0;"><a class="data-date" title="<?php echo $data[$key]['DATE']." ".$data[$key]['TIME'] ?>"><?php echo date("d M 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;">
<table width="830px">
<tr>
<td></td>
<td class="data-controls" width="80px"><a href="/rrd/<?php echo $data[$key]['TYPE']."/".$period."-".$data[$key]['RRD'].".png" ?>" target="_blank"><img src="/images/download.png" width="8px" height="8px"> <?php print _('download');?></a></td>
</tr>
</table>
<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 30;" 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>