]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing import interface. Step2. MDL-8793
authorstronk7 <stronk7>
Thu, 29 Mar 2007 23:13:09 +0000 (23:13 +0000)
committerstronk7 <stronk7>
Thu, 29 Mar 2007 23:13:09 +0000 (23:13 +0000)
Merged from MOODLE_18_STABLE

mod/glossary/import.html
mod/glossary/import.php

index 11b3f89c1112ed80028aa2f473c470df79bc3147..5a271c9af25d847e8d7961c171fa876d53311445 100644 (file)
@@ -43,6 +43,5 @@
 </tr>
 </table>
 <input type="hidden" name="id" value="<?php p($id) ?>" />
-<input type="hidden" name="l" value="<?php p($l) ?>" />
 <input type="hidden" name="step" value="1" />
 </form> 
index aa1137c6670925c928f41605d523e46bf6dd58ce..2d2e178e12abd534c8ef6038bab143fc325a11d7 100644 (file)
     $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), "",
-        "<a href=\"index.php?id=$course->id\">$strglossaries</a> -> ".format_string($glossary->name),
+        "<a href=\"index.php?id=$course->id\">$strglossaries</a> -> " .
+        "<a href=\"view.php?id=$id\">" .format_string($glossary->name) . "</a> -> " .
+        $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 '<br />';
-    }
-
-/// 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;
     }
     $um = new upload_manager('file',false,false,$course,false,0);
 
     if (!$um->preprocess_files()) {
-        echo '</center>';
-        glossary_print_tabbed_table_end();
+        print_box_start('glossarydisplay generalbox');
         print_continue('import.php?id='.$id);
+        print_box_end();
+
         print_footer();
         die();
     }
                 }
             } else {
                 notify("Error while trying to create the new glossary.");
-                echo '</center>';
-                glossary_print_tabbed_table_end();
                 print_footer($course);
                 exit;
             }
             }
         }
         // processed entries
-        echo '<table border="0" width="100%">';
+        print_box_start('glossarydisplay generalbox');
+        echo '<table class="glossaryimportexport">';
         echo '<tr>';
         echo '<td width="50%" align="right">';
         echo get_string("totalentries","glossary");
         echo ':</td>';
-        echo '<td width="50%">';
+        echo '<td width="50%" align="left">';
         echo $importedentries + $entriesrejected;
         echo '</td>';
         echo '</tr>';
         echo '<td width="50%" align="right">';
         echo get_string("importedentries","glossary");
         echo ':</td>';
-        echo '<td width="50%">';
+        echo '<td width="50%" align="left">';
         echo $importedentries;
         if ( $entriesrejected ) {
             echo ' <small>(' . get_string("rejectedentries","glossary") . ": $entriesrejected)</small>";
             echo '</td>';
             echo '</tr>';
         }
-        echo '</table><hr width="75%">';
+        echo '</table><hr />';
 
         // rejected entries
         if ($rejections) {
-            echo '<div class="boxaligncenter"><table border="0" width="70%">';
+            echo '<table class="glossaryimportexport">';
             echo '<tr><td align="center" colspan="2" width="100%"><strong>' . get_string("rejectionrpt","glossary") . '</strong></tr>';
             echo $rejections;
-            echo '</div></center><p><hr width="75%">';
+            echo '</table><hr />';
         }
+        print_box_end();
     } else {
         notify("Error while trying to read the file.");
     }
 
-    glossary_print_tabbed_table_end();
-
 /// Finish the page
     print_footer($course);