From 704739a092fa952436783160cb23584cface5552 Mon Sep 17 00:00:00 2001 From: Daniel Stefan Haischt Date: Sat, 6 Jan 2007 15:45:31 +0000 Subject: * ajaxified disks_manage_init.php. Should work in Opera and Firefox. --- packages/freenas/www/disks_manage_init.php | 500 +++++++++++++++++++++++------ 1 file changed, 400 insertions(+), 100 deletions(-) diff --git a/packages/freenas/www/disks_manage_init.php b/packages/freenas/www/disks_manage_init.php index 278efdd5..a3032d83 100644 --- a/packages/freenas/www/disks_manage_init.php +++ b/packages/freenas/www/disks_manage_init.php @@ -49,6 +49,365 @@ require_once("guiconfig.inc"); require_once("freenas_guiconfig.inc"); require_once("freenas_functions.inc"); +define("DONE_PARAGRAPH", " +

+ Done! +

+ "); +define("DISK_DETAILS_PARA", " +

+ Disk initialization details (use the toggle icon to unveil detailed infos): +

+ "); + +function create_format_output($disk, $type, $notinitmbr) { + $ddetails = DISK_DETAILS_PARA; + $dopara = DONE_PARAGRAPH; + + ob_end_flush(); + + $retvalue =<<