{$text}
EOF; } function help_popover($content){ $content_fixed = str_replace('"', '"' , $content); echo << EOF; } /* echo a child account's limit or the default if none is set */ function child_limit($conf, $child){ if (is_null($conf['children']['limits'][$child])){ echo(round($conf['children']['default_limit'] / 1024, 2)); } else { echo(round($conf['children']['limits'][$child] / 1024, 2)); } } /* show a hidden div that can be later shown to display an error */ function error_box($id, $class = "alert error-msg"){ echo << EOF; } function browser_widget($browser_id, $home_path, $has_items_func, $post_action, $is_restore, $selections){ if ($is_restore) { echo <<
EOF; } else { echo <<
EOF; } $selections_encoded = htmlspecialchars(json_encode($selections)); echo <<

Click folders to expand them. Click checkboxes to select them to be restored.

EOF; if ($is_restore) { echo <<
EOF; } else { echo << EOF; } echo <<0 items selected.
EOF; } function db_custom_select_widget($this_mode, $dbtype, $db_sizes, $db_conf){ // Select all buttons echo << EOF; // Selection checkboxes echo("
\n"); ksort($db_sizes); foreach($db_sizes as $item => $size_mb) { if (is_null($size_mb)){ $size_mb = '?'; } echo("
\n"); if ( !is_null($db_conf['custom']) && in_array($item, $db_conf['custom']) ){ // item checked echo("
\n"); } echo("
\n"); } function selected_total_widget($baktype, $amp_url, $is_child){ if ($is_child){ $space_err_msg = "

The selected items cannot be backed up without additional space

"; } else { $space_err_msg = "

The selected items won't be backed up unless you purchase more backup space.

"; } echo <<
Total From Selected: 0GB
{$space_err_msg}
EOF; } function date_select_label($conf, $geo, $time){ if ($conf['show_geo']){ if ($geo) { $name = $conf['geo_info']['name']; } else { $name = $conf['cluster_info']['name']; } return "$name - $time"; } else { return "$time"; } } ?>