refactoring rrd section: new html formating

This commit is contained in:
Serghey Rodin 2012-09-20 17:15:41 +03:00
commit 61cc4b1dcf
2 changed files with 0 additions and 38 deletions

View file

@ -13,13 +13,9 @@ top_panel($user,$TAB);
// Data
if ($_SESSION['user'] == 'admin') {
exec (VESTA_CMD."v_list_sys_rrd json", $output, $return_var);
check_error($return_var);
$data = json_decode(implode('', $output), true);
unset($output);
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_rrd.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_rrd.html');
}

View file

@ -1,34 +0,0 @@
<?php
if (!empty($_SESSION['error_msg'])) {
?>
<script type="text/javascript">
$(function() {
$( "#dialog:ui-dialog" ).dialog( "destroy" );
$( "#dialog-message" ).dialog({
modal: true,
buttons: {
Ok: function() {
$( this ).dialog( "close" );
}
}
});
});
</script>
<div id="dialog-message" title="Error">
<p><?php echo $_SESSION['error_msg'] ?>.</p>
</div>
<?php
unset($_SESSION['error_msg']);
}
?>
<table class="sub-menu">
<tr >
<td style="padding: 19px 0 16px 22px">
<a class="add" <?php if ((empty($_GET['period'])) || ($_GET['period'] == 'daily')) echo "style='color: #34536A'" ?> href="?period=daily">Daily</a>
<a class="add" <?php if ($_GET['period'] == 'weekly') echo "style='color: #34536A'" ?> href="?period=weekly">Weekly</a>
<a class="add" <?php if ($_GET['period'] == 'monthly') echo "style='color: #34536A'" ?> href="?period=monthly">Monthly</a>
<a class="add" <?php if ($_GET['period'] == 'yearly') echo "style='color: #34536A'" ?> href="?period=yearly">Yearly</a>
</td>
<td style="text-align: right;" ><input type="text" size="30" style="padding: 3px 80px 3px 0;"> <button> Search </button></td>
</tr>
</table>