Ejemplo n.º 1
0
                $tblDiskRep->tbody();
                $tblDiskRep->tr();
                $tblDiskRep->td($devKey);
                $tblDiskRep->td($diskEditLabel . $noticeLabel, 'colspan=2');
                //
            }
        }
    }
}
//
// render main layout
require 'fbegin.inc';
// render the page content
$tblStorage->renderTable();
// echo '<br>';
$tblDiskRep->renderTable();
?>
<script type="text/javascript">
	function doClickAction(action, device, partnum, partstart)
	{
		var $jhf = jQuery.noConflict();
		$jhf('#act').val(action);
		$jhf('#dev').val(device);
		$jhf('#par').val(partnum);
		$jhf('#start').val(partstart);
		//
		$jhf('form').submit();
		return false;
	}
</script>
<form action="sys_storage_edit.php" method="post">
Ejemplo n.º 2
0
                    $storageReport .= _('Total') . ': ' . formatBytes($fsBlocksTotal * 1024);
                    $storageReport .= getAnalogBar(array('total' => $fsBlocksTotal, 'used' => $fsBlocksUsed));
                } else {
                    $storageReport .= _('Unable to get data.') . " ({$hwName}{$fsUuid})<br>";
                }
            } else {
                $storageReport .= _('Missing device.') . " ({$hwName}{$fsUuid})<br>";
            }
        }
        //
        if (!empty($storageReport)) {
            $tbl->tr();
            $tbl->td(_('Configured storage'), 'class=tblrowlabel');
            $tbl->td($storageReport);
        }
        unset($disksInfo, $storageReport, $fsInfo);
    }
}
// system notes
if (isset($config['system']['notes'])) {
    if (!empty($config['system']['notes'])) {
        $tbl->tr();
        $tbl->td(_('Notes'), 'class=tblrowlabel');
        $tbl->td(nl2br(htmlentities(base64_decode($config['system']['notes']), ENT_QUOTES, 'UTF-8'), false));
        //
    }
}
include 'fbegin.inc';
$tbl->renderTable();
echo '<div id="timestamp" style="display: none;">' . (time() + date('Z')) % 86400 . '</div>';
include "fend.inc";