From: stronk7 Date: Thu, 29 Mar 2007 23:13:09 +0000 (+0000) Subject: Fixing import interface. Step2. MDL-8793 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6ca980741fc1c9976483069a1eff9d7d855d79bd;p=moodle.git Fixing import interface. Step2. MDL-8793 Merged from MOODLE_18_STABLE --- diff --git a/mod/glossary/import.html b/mod/glossary/import.html index 11b3f89c11..5a271c9af2 100644 --- a/mod/glossary/import.html +++ b/mod/glossary/import.html @@ -43,6 +43,5 @@ - diff --git a/mod/glossary/import.php b/mod/glossary/import.php index aa1137c667..2d2e178e12 100644 --- a/mod/glossary/import.php +++ b/mod/glossary/import.php @@ -43,29 +43,22 @@ $strsearchconcept = get_string("searchconcept", "glossary"); $strsearchindefinition = get_string("searchindefinition", "glossary"); $strsearch = get_string("search"); + $strimportentries = get_string('importentries', 'glossary'); print_header_simple(format_string($glossary->name), "", - "id\">$strglossaries -> ".format_string($glossary->name), + "id\">$strglossaries -> " . + "" .format_string($glossary->name) . " -> " . + $strimportentries, "", "", true, update_module_button($cm->id, $course->id, $strglossary), navmenu($course, $cm)); - print_heading(format_string($glossary->name)); - -/// Info box - - if ( $glossary->intro ) { - print_simple_box(format_text($glossary->intro), 'center', '70%', '', 5, 'generalbox', 'intro'); - echo '
'; - } - -/// Tabbed browsing sections - $tab = GLOSSARY_IMPORT_VIEW; - include("tabs.php"); + print_heading($strimportentries); if ( !$step ) { + print_box_start('glossarydisplay generalbox'); include("import.html"); + print_box_end(); - glossary_print_tabbed_table_end(); print_footer($course); exit; } @@ -77,9 +70,10 @@ $um = new upload_manager('file',false,false,$course,false,0); if (!$um->preprocess_files()) { - echo ''; - glossary_print_tabbed_table_end(); + print_box_start('glossarydisplay generalbox'); print_continue('import.php?id='.$id); + print_box_end(); + print_footer(); die(); } @@ -193,8 +187,6 @@ } } else { notify("Error while trying to create the new glossary."); - echo ''; - glossary_print_tabbed_table_end(); print_footer($course); exit; } @@ -323,12 +315,13 @@ } } // processed entries - echo ''; + print_box_start('glossarydisplay generalbox'); + echo '
'; echo ''; echo ''; - echo ''; echo ''; @@ -336,7 +329,7 @@ echo ''; - echo ''; echo ''; } - echo '
'; echo get_string("totalentries","glossary"); echo ':'; + echo ''; echo $importedentries + $entriesrejected; echo '
'; echo get_string("importedentries","glossary"); echo ':'; + echo ''; echo $importedentries; if ( $entriesrejected ) { echo ' (' . get_string("rejectedentries","glossary") . ": $entriesrejected)"; @@ -353,21 +346,20 @@ echo '

'; + echo '
'; // rejected entries if ($rejections) { - echo '
'; + echo '
'; echo ''; echo $rejections; - echo '


'; + echo '
' . get_string("rejectionrpt","glossary") . '

'; } + print_box_end(); } else { notify("Error while trying to read the file."); } - glossary_print_tabbed_table_end(); - /// Finish the page print_footer($course);