" . __('Downloaded Packages') . ""; $list_downloaded_packages = update_pandora_get_list_downloaded_packages('operation'); $table = null; $table->width = '80%'; $table->head = array(__('Packages')); $table->data = $list_downloaded_packages; html_print_table($table); echo "

" . __('Online Packages') . "

"; $table = null; $table->id = 'online_packages'; $table->width = '80%'; $table->head = array(__('Packages')); $table->rowclass[0] = 'spinner_row'; $table->data[0][0] = __('Get list online Packages') . html_print_image('images/spinner.gif', true); html_print_table($table); update_pandora_print_javascript(); } function update_pandora_administration() { global $conf_update_pandora; ui_print_page_header(__('Update Pandora'), "images/extensions.png", false, "", true); if (!update_pandora_check_installation()) { ui_print_error_message(__('First execution of Update Pandora')); update_pandora_installation(); } $conf_update_pandora = update_pandora_get_conf(); echo "

" . __('Downloaded Packages') . "

"; $list_downloaded_packages = update_pandora_get_list_downloaded_packages('administration'); $table = null; $table->width = '80%'; $table->size = array('80%', '50px'); $table->head = array(__('Packages'), __('Action')); $table->align = array('left', 'center'); $table->data = array(); foreach ($list_downloaded_packages as $package) { $actions = ''; if (!isset($package['empty'])) { if (!$package['current']) { $actions = '' . html_print_image('images/b_white.png', true, array('alt'=> __('Install this version'), 'title' => __('Install this version'))) . ''; } else { $actions = '' . html_print_image('images/b_yellow.png', true, array('alt'=> __('Reinstall this version'), 'title' => __('Reinstall this version'))) . ''; } } $table->data[] = array($package['name'], $actions); } html_print_table($table); echo "

" . __('Online Package') . "

"; echo ''; echo ''; echo ''; echo '
' . __('Package') . ' ' . __('Action') . '
' . __('Get list online Package') . " " . html_print_image('images/spinner.gif', true) . '
'; ?>