GetMessage(); } catch ( Exception $e ) { $errorMsg = $e->getMessage(); } // Load display data try { $packages = GetPackageList(); $numPackages = GetPackageCount(); if ( $numPackages == 0 ) throw new Exception( $errNoPackagesFound ); $currPage = GetPageNumber( $packages, $selectedPackage, $pageSize ); GetPageRange( $currPage, $numPackages, $pageSize, $firstPageIndex, $lastPageIndex ); LoadPackageTable( $packageTable, $firstPageIndex, $lastPageIndex ); if ( !array_key_exists( $selectedPackage, $packageTable ) && $numPackages > 0 ) $selectedPackage = $packages[$firstPageIndex]; } catch ( MgException $e ) { CheckForFatalMgException( $e ); if ( empty( $errorMsg ) ) $errorMsg = $e->GetMessage(); } catch ( Exception $e ) { if ( empty( $errorMsg ) ) $errorMsg = $e->getMessage(); } ?>

In Studio, large-scale resources can be packaged and saved to a network location for loading directly onto the site. Here you specify a package to be unzipped to the site.


label = "Load Package"; $button->icon = "images/load_package.gif"; $button->id = 'LoadPackageButton'; $button->action = "if ( window.confirm('Load Package may take a significant amount of time to execute. Do you wish to continue?') ) {SetElementValue('".NEXT_PAGE_ID."', 'loadpackage.php');}"; $button->disabled = $disabled; $buttons[0] = $button; $button = new ToolbarButtonRecord(); $button->label = "View Log"; $button->icon = "images/view_log.gif"; $button->id = 'ViewLogButton'; $button->action = "DisplayPackageLog('".$viewLogID."');"; $button->disabled = $disabled; $buttons[1] = $button; $button = new ToolbarButtonRecord(); $button->label = "Delete"; $button->icon = "images/delete.gif"; $button->id = 'DeleteButton'; $button->action = "if ( window.confirm('Are you sure you want to delete the selected Package?') ) {SetElementValue('".DELETE_SELECTION_ID."', 'true');}"; $button->disabled = $disabled; $buttons[2] = $button; DisplayToolbar( $buttons, $formName ); ?>
$val ) { if ( $selectedPackage == $key ) $checkedStr = " checked "; else $checkedStr = ""; ?>
  Package Name Status
     
> status ?>