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 );
?>