]> git.mjollnir.org Git - moodle.git/commitdiff
- Corrections in EN language. Thanks to Przemek!
authorwillcast <willcast>
Tue, 23 Sep 2003 12:34:47 +0000 (12:34 +0000)
committerwillcast <willcast>
Tue, 23 Sep 2003 12:34:47 +0000 (12:34 +0000)
- Added a "All categories" link to the category drop-down box in Category view.
- Better display of categorized entries (more organized).
- SelectLetter, Special and All captions are now properly showed when some of the their flags are not set.
- Properly use of course module visibility (in case someone directly access the URL)

13 files changed:
lang/en/glossary.php
lang/en/help/glossary/allowduplicatedentries.html
lang/en/help/glossary/displayformat.html
lang/en/help/glossary/index.html
lang/en/help/glossary/mainglossary.html
lang/en/help/glossary/mods.html
lang/en/help/glossary/studentcanpost.html
lang/es/glossary.php
mod/glossary/db/mysql.php
mod/glossary/edit.html
mod/glossary/edit.php
mod/glossary/lib.php
mod/glossary/view.php

index 10130e3da49e62bfdd9e1a020c41bbf82d0e6971..03f63c30f058bc443c0494052b434daec9123f0e 100644 (file)
@@ -23,27 +23,29 @@ $string['displayformat'] = "Display format";
 $string['displayformatdefault'] = "Simple, dictionary style";
 $string['displayformat1'] = "Full without author.";
 $string['displayformat2']  = "Full with author.";
+$string['editentry'] = "Edit entry";
+$string['editcategories'] = "Edit categories";
 $string['entries'] = "Entries";
 $string['entrieswithoutcategory'] = "Entries without category";
 $string['entry'] = "Entry";
-$string['editentry'] = "Edit entry";
-$string['editcategories'] = "Edit categories";
-$string['entryalreadyexist'] = "Entry already exist.";
+$string['entryalreadyexist'] = "Entry already exists.";
 $string['entrydeleted'] = "Entry deleted.";
 $string['entryexported'] = "Entry succesfully exported.";
+$string['explainspecial'] = "<b>Special</b> will show all concepts that do not begin with a letter.<br>";
+$string['explainalphabet'] = "Select the letter you want to look for.<p>";
+$string['explainall'] = "<b>ALL</b> will show all entries in one page.";
 $string['exporttomainglossary'] = "Export to main glossary";
 $string['glossarytype'] = "Glossary Type";
 $string['mainglossary'] = "Main glossary";
 $string['modulename'] = "Glossary";
 $string['modulenameplural'] = "Glossaries";
 $string['newglossaryentries'] = "New glossary entries:";
-$string['nocategorized'] = "No categorized";
+$string['nocategorized'] = "Not categorized";
 $string['noentries'] = "No entries found in this section";
 $string['noentry'] = "No entry found.";
 $string['searchconcept'] = "Search:";
 $string['searchindefinition'] = "Search in concept AND definitions?";
-$string['secundaryglossary'] = "Secundary glossary";
-$string['selectletter'] = "Select the letter you want to look for.<p><b>Special</b> will show all concepts that does not begin with a letter.<br><b>ALL</b> will show all entries in one page.";
+$string['secundaryglossary'] = "Secondary glossary";
 $string['showspecial'] = "Show 'Special' link";
 $string['showalphabet'] = "Show alphabet";
 $string['showall'] = "Show 'ALL' link";
@@ -53,4 +55,3 @@ $string['studentcanpost'] = "Students can add entries";
 $string['writtenby'] = "By";
 
 ?>
-
index 5678655f88221a27a8b4613d860fd7fc9a458ce5..17c411eab1a30bcc15b81a10c8cc4bc59c47b2ec 100644 (file)
@@ -1,4 +1,4 @@
-<P ALIGN=CENTER><B>Allow duplicated entries</B></P>\r
-\r
-<P>You can specify if the system should or should not accept duplicated entries in the current glossary.\r
-\r
+<P ALIGN=CENTER><B>Allow duplicated entries</B></P>
+
+<P>You can specify if the system should or should not accept duplicated entries in the current glossary.
+
index 6497b4ec48b8e91bf9a85de38cd47b2f8e545be9..115d74e26b55209565fed68a06ab2fdf3979590f 100644 (file)
@@ -1,10 +1,10 @@
-<P ALIGN=CENTER><B>Display format</B></P>\r
-\r
-<P>The system has three builed-in formats to display entries. You can create your own format if you want.\r
-<p>The default view, is quite simple. It looks like a conventional dictionary.\r
-<p>The second view, shows the entry in a forum-like format, without the author's data.\r
-<p>And the third one, shows the entry also in a forum-like format but with the author's data.\r
-<hr>\r
-<p>If you want to create your own format, you should create a .PHP file and give it a number as its name. See into mod/glossary/formats which should be the next number.\r
-<p>Then, create a funcion called <b>glossary_print_entry_by_format($course, $cm, $glossary, $entry)</b> and dump all your creativity.\r
-<p>The last stemp is to insert a new entry in every language lack you use called <b>displayformat[number]</b>, and give it a meaninful description.
\ No newline at end of file
+<P ALIGN=CENTER><B>Display format</B></P>
+
+<P>The system has three built-in formats to display entries. You can create your own format if you want.
+<p>The default view is quite simple. It looks like a conventional dictionary.
+<p>The second view shows the entry in a forum-like format, without the author's data.
+<p>And the third one shows the entry also in a forum-like format but with the author's data.
+<hr>
+<p>If you want to create your own format, you should create a .PHP file and give it a number as its name. See into mod/glossary/formats which should be the next number.
+<p>Then, create a funcion called <b>glossary_print_entry_by_format($course, $cm, $glossary, $entry)</b> and dump all your creativity.
+<p>The last stemp is to insert a new entry in every language pack you use called <b>displayformat[number]</b>, and give it a meaningful description.
index 4c4897ea9e91235d5b6856e9eb23775141910fe1..35e613b8d1815e80a529b4ea30c12d01160ca537 100644 (file)
@@ -1,15 +1,15 @@
-<p>Glossary</p>\r
-\r
-<ul>\r
-\r
-  <li><a href="help.php?module=glossary&file=studentcanpost.html">Students can post entries</a>\r
-\r
-  <li><a href="help.php?module=glossary&file=allowduplicatedentries.html">Allow duplicated entries</a>\r
-\r
-  <li><a href="help.php?module=glossary&file=displayformat.html">Display formats</a>\r
-\r
-  <li><a href="help.php?module=glossary&file=mainglossary.html">Defining the main glossary of the course</a>\r
-\r
-\r
-</ul>\r
-\r
+<p>Glossary</p>
+
+<ul>
+
+  <li><a href="help.php?module=glossary&file=studentcanpost.html">Students can post entries</a>
+
+  <li><a href="help.php?module=glossary&file=allowduplicatedentries.html">Allow duplicated entries</a>
+
+  <li><a href="help.php?module=glossary&file=displayformat.html">Display formats</a>
+
+  <li><a href="help.php?module=glossary&file=mainglossary.html">Defining the main glossary of the course</a>
+
+
+</ul>
+
index 9f8dc7121ca952ad90e8cf7d2cadad1af04d2c24..3bd1afcce3718145a287438a2a29c11a05c5c20b 100644 (file)
@@ -1,5 +1,5 @@
-<P ALIGN=CENTER><B>Defining the main glossary of the course</B></P>\r
-\r
-<P>The system allows to export entries from any secondary glossary to the main one of the course.\r
-<p>In order to do this, you should specify which glossary is the main one.\r
-<p>Note: You can have only one glossary by course.
\ No newline at end of file
+<P ALIGN=CENTER><B>Defining the main glossary of the course</B></P>
+
+<P>The system allows to export entries from any secondary glossary to the main one of the course.
+<p>In order to do this, you should specify which glossary is the main one.
+<p>Note: You can have only one main glossary per course.
index 8c187953dd465ae2afc1f4cf6df95c215c792ba6..a0d0da044c3104a32e3c22e2dd77e1b4e773f23e 100644 (file)
@@ -1,6 +1,6 @@
-<P><IMG VALIGN=absmiddle SRC="<?php echo $CFG->wwwroot?>/mod/glossary/icon.gif">&nbsp;<B>Glossary</B></P>\r
-<UL>\r
-<P>This resource allows to create and maintain a dictionary or a list of definitions.<br />\r
-The entries could be created by teachers or by students and can the show in different formats.<br />\r
-You can search terms. The glossary also allows to export entries from one glossary to other (the main one) within the same course.\r
-</UL>\r
+<P><IMG VALIGN=absmiddle SRC="<?php echo $CFG->wwwroot?>/mod/glossary/icon.gif">&nbsp;<B>Glossary</B></P>
+<UL>
+<P>This resource allows to create and maintain a dictionary or a list of definitions.<br />
+The entries could be created by teachers or by students and can be shown in different formats.<br />
+You can search for terms. The glossary also allows to export entries from one glossary to another (the main one) within the same course.
+</UL>
\ No newline at end of file
index 9d9aa51f77a81530f17799f9f1212aeb356f3a88..6d7af75445f79809042a05534f4b68600a631881 100644 (file)
@@ -1,4 +1,4 @@
-<P ALIGN=CENTER><B>Students can post entries</B></P>\r
-\r
-<P>You can specify if an user can or cannot add, edit or delete his/her own entries in this glossary.\r
-<p><b>Note:</b> A teacher could edit or delete any entry at any time.
\ No newline at end of file
+<P ALIGN=CENTER><B>Students can post entries</B></P>
+
+<P>You can specify whether a user can or cannot add, edit or delete his/her own entries in this glossary.
+<p><b>Note:</b> A teacher can edit or delete any entry at any time.
\ No newline at end of file
index 81ca2d6b1d669aa6eeef89a7aa12ef1451689465..4ef422fb5670222e0e4be92942799618833b2024 100644 (file)
@@ -31,6 +31,9 @@ $string['entry'] = "Entrada";
 $string['entryalreadyexist'] = "Esta entrada ya existe.";
 $string['entrydeleted'] = "Entrada borrada.";
 $string['entryexported'] = "Entrada exportada con éxito.";
+$string['explainspecial'] = "<b>Especial</b> mostrará todos los conceptos que comiencen con símbolos.<br>";
+$string['explainalphabet'] = "Seleccione la letra que desea buscar.<p>";
+$string['explainall'] = "<b>TODAS</b> mostrará todas las entradas en una página.";
 $string['exporttomainglossary'] = "Exportar todo el glosario";
 $string['glossarytype'] = "Tipo de glosario";
 $string['mainglossary'] = "Glosario principal";
@@ -43,7 +46,6 @@ $string['noentry'] = "No se econtr
 $string['searchconcept'] = "Buscar:";
 $string['searchindefinition'] = "¿Buscar en conceptos Y definiciones?";
 $string['secundaryglossary'] = "Glosario secundario";
-$string['selectletter'] = "Seleccione la letra que desea buscar.<p><b>Especial</b> mostrará todos los conceptos que comiencen con símbolos.<br><b>TODAS</b> mostrará todas las entradas en una página.";
 $string['showspecial'] = "Mostrar enlace 'Especial'";
 $string['showalphabet'] = "Mostrar alfabeto";
 $string['showall'] = "Mostrar enlace 'TODAS'";
index fdf5f753eefdc9b78b4c586c33f8ebc706c845fe..10e386dbd44c4c4820b75e7c95c04ff969e0f730 100644 (file)
@@ -57,7 +57,7 @@ function glossary_upgrade($oldversion) {
 
     if ( $oldversion < 2003092102 ) {
         execute_sql("ALTER TABLE `{$CFG->prefix}glossary_entries_categories` DROP PRIMARY KEY ");
-        execute_sql("ALTER TABLE `{$CFG->prefix}glossary_entries_categories` ADD `ID` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST");
+        execute_sql("ALTER TABLE `{$CFG->prefix}glossary_entries_categories` ADD `id` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST");
     }
 
     return true;
index a96c03f9f5d6bd3956e9d936d558e67ca879585f..5482caf73ce34cf12d0ced8ac9c01309080b0c54 100644 (file)
     <td>       
        <?
                $categories = get_records("glossary_categories","glossaryid",$glossary->id);
-               echo "<select size=\"";
-               if ( count($categories) > 7 ) {
-                       echo 7;
-               }else {
-                       echo count($categories);
-               }
-               echo "\" name=\"categories[]\" multiple=\"yes\">";
+               echo "<select size=\"6\" name=\"categories[]\" multiple=\"yes\">";
+               echo "<option value=0>" . get_string("nocategorized","glossary") . "</optioon>";
 
                foreach ( $categories as $category ) {
                        echo "  <option ";
index 74578c0c7a55ebb4d2d31daa28bf05ce5ff572db..547d49b63026491d25bfbae98a4663c63dc09ebf 100644 (file)
@@ -59,14 +59,16 @@ if ($e) {
 
                 $PermissionGranted = 1;
                 if ( !$glossary->allowduplicatedentries ) {
-                    $dupentries = get_records("glossary_entries","UCASE(concept)", strtoupper($newentry->concept));
-                    if ($dupentries) {
+                        $dupentries = get_records("glossary_entries","UCASE(concept)", strtoupper($newentry->concept));
+                        if ($dupentries) {             
                          foreach ($dupentries as $curentry) {
-                              if ( $curentry->id != $entry) {
-                                   $PermissionGranted = 0;
+                             if ( $glossary->id == $curentry->glossaryid ) {
+                                 if ( $curentry->id != $entry ) {
+                                     $PermissionGranted = 0;
+                                 }
                               }
                          }
-                      }
+                    }
                 }
                 if ( $PermissionGranted ) {
                     $newentry->attachment = $_FILES["attachment"];
@@ -76,12 +78,12 @@ if ($e) {
                          unset($newentry->attachment);
                     }
                     if (! update_record("glossary_entries", $newentry)) {
-                           error("Could not update your glossary");
-                       } else {
-                        add_to_log($course->id, "glossary", "update entry", "view.php?id=$cm->id&eid=$newentry->id", "$newentry->id");
-                    }
+                               error("Could not update your glossary");
+                           } else {
+                      add_to_log($course->id, "glossary", "update entry", "view.php?id=$cm->id&eid=$newentry->id", "$newentry->id");
+                       }
                 } else {
-                       error("Could not update this glossary entry because this concept already exist.");
+                          error("Could not update this glossary entry because this concept already exist.");
                 }
           } else {
                 $newentry->userid = $USER->id;
@@ -125,11 +127,13 @@ if ($e) {
            if ( $categories ) {
                 $newcategory->entryid = $newentry->id;
                 foreach ($categories as $category) {
-                    $newcategory->categoryid =$category;
-                    insert_record("glossary_entries_categories",$newcategory);
+                    if ( $category > 0 ) {
+                        $newcategory->categoryid =$category;
+                        insert_record("glossary_entries_categories",$newcategory);
+                    }
                 }
            }
-          redirect("view.php?id=$cm->id&eid=$newentry->id&currentview=$currentview&cat=$cat");
+          redirect("view.php?id=$cm->id&eid=$newentry->id");
           die;
      }
 }
index 8137f5dd3a04a5dd1cd0ddc101d57f0f02b94cf1..11ecadd34a4e173b0b021e8f9f1be06f35c58e34 100644 (file)
@@ -169,7 +169,7 @@ function glossary_get_entries($glossaryid, $entrylist) {
 }
 
 function glossary_print_entry($course, $cm, $glossary, $entry,$currentview="",$cat="") {
-    global $THEME, $USET, $CFG;
+    global $THEME, $USER, $CFG;
     
     $PermissionGranted = 0;
     $formatfile = "$CFG->dirroot/mod/glossary/formats/$glossary->displayformat.php";
@@ -540,12 +540,20 @@ for ($row = 0; $row < $NumRows; $row++) {
                     } else {
                          $CurrentColor = $TabColor;
                     }
-                    ?>
-                    <td width="<? p($TabWidth) ?>%" bgcolor="<? p($CurrentColor) ?>" align="center">
-                    <b><a href="<? p($data[$TabProccessed]->link) ?>"><? p($data[$TabProccessed]->caption) ?></a></b></td>
-                    <? if ($col < $TabsPerRow) { ?>
-                         <td width="<? p($TabSeparation) ?>" align="center">&nbsp;</td>
-                    <? }
+
+                    echo "<td width=\"$TabWidth%\" bgcolor=\"$CurrentColor\" align=\"center\"><b>";
+                    if ($TabProccessed != $CurrentTab) {
+                        echo "<a href=\"" . $data[$TabProccessed]->link . "\">";
+                    }
+                    echo $data[$TabProccessed]->caption;
+                    if ($TabProccessed != $CurrentTab) {
+                        echo "</a>";
+                    }
+                    echo "</b></td>";
+                    
+                    if ( $col < $TabsPerRow ) {
+                        echo "<td width=\"$TabSeparation\" align=\"center\">&nbsp;</td>";
+                    }
                } else {
                     $CurrentColor = "";
                }
@@ -566,12 +574,19 @@ for ($row = 0; $row < $NumRows; $row++) {
                     } else {
                          $CurrentColor = $TabColor;
                     }
-                    ?>
-                    <td width="<? p($TabWidth) ?>%" bgcolor="<? p($CurrentColor) ?>" align="center">
-                    <b><a href="<? p($data[$TabProccessed]->link) ?>"><? p($data[$TabProccessed]->caption) ?></a></b></td>
-                    <? if ($col < $TabsPerRow) { ?>
-                         <td width="<? p($TabSeparation) ?>" align="center">&nbsp;</td>
-                    <? }
+                    echo "<td width=\"$TabWidth%\" bgcolor=\"$CurrentColor\" align=\"center\"><b>";
+                    if ($TabProccessed != $CurrentTab) {
+                        echo "<a href=\"" . $data[$TabProccessed]->link . "\">";
+                    }
+                    echo $data[$TabProccessed]->caption;
+                    if ($TabProccessed != $CurrentTab) {
+                        echo "</a>";
+                    }
+                    echo "</b></td>";
+
+                    if ($col < $TabsPerRow) {
+                         echo "<td width=\"$TabSeparation\" align=\"center\">&nbsp;</td>";
+                    }
                } else {
                     if ($NumRows > 1) {
                          $CurrentColor = $TabColor;
@@ -610,13 +625,23 @@ global $CFG, $THEME;
      $strspecial      = get_string("special", "glossary");
      $strallentries   = get_string("allentries", "glossary");
 
-     echo "<CENTER>$strselectletter";
+     if ($glossary->showalphabet) {
+         $output .= get_string("explainalphabet","glossary");
+     }
+     if ($glossary->showspecial) {
+         $output .= get_string("explainspecial","glossary");
+     }
+     if ($glossary->showall) {
+         $output .= get_string("explainall","glossary");
+     }
+     
+     echo "<CENTER>$output<p>";
 
       if ( $glossary->showspecial ) {
           if ( $l == "SPECIAL" ) {
-               echo "<p><b>$strspecial</b> | ";
+               echo "<b>$strspecial</b> | ";
           } else {
-               echo "<p><a href=\"$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&l=SPECIAL\">$strspecial</a> | ";
+               echo "<a href=\"$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&l=SPECIAL\">$strspecial</a> | ";
           }
       }
 
@@ -645,7 +670,7 @@ global $CFG, $THEME;
           }
       }
 }
-function glossary_print_categories_menu($course, $cm, $glossary, $category) {
+function glossary_print_categories_menu($course, $cm, $glossary, $cat, $category) {
 global $CFG, $THEME;
      echo "<table border=0 width=100%>";
      echo "<tr>";
@@ -663,11 +688,19 @@ global $CFG, $THEME;
      if ( $category ) {
         echo $category->name;
      } else {
-        echo get_string("entrieswithoutcategory","glossary");
+        if ( $cat < 0 ) {
+            echo get_string("entrieswithoutcategory","glossary");
+            $selected = "-1";
+        } elseif ( $cat == 0 ) {
+            echo get_string("allcategories","glossary");
+            $selected = "0";
+        }
      }
      echo "</b></td>";
      echo "<td align=center width=20%>";
-     $menu[0] = get_string("nocategorized","glossary");
+     $menu["0"] = get_string("allcategories","glossary");
+     $menu["-1"] = get_string("nocategorized","glossary");
+//     $menu[""] = "-----------------------------------------";
 
      $categories = get_records("glossary_categories", "glossaryid", $glossary->id, "name ASC");
      if ( $categories ) {
@@ -680,7 +713,7 @@ global $CFG, $THEME;
           }
      }
 
-     echo popup_form("$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&currentview=categories&cat=", $menu, "catmenu", $selected, get_string("jumpto"),
+     echo popup_form("$CFG->wwwroot/mod/glossary/view.php?id=$cm->id&currentview=categories&cat=", $menu, "catmenu", $selected, "",
                       "", "", false);
 
      echo "</td>";
index b3c31c138ae0e27fd2b40b9420f1f459d60910a5..2ab900ec3be4602c5ba5c9d019b74fa937d79bad 100644 (file)
@@ -28,7 +28,7 @@
     }
 
     require_login($course->id);
-    if ( !$course->visible ) {
+    if (!$cm->visible and !isteacher($course->id)) {
         notice(get_string("activityiscurrentlyhidden"));
     }
 
           $l = "";
           $currentview = strtolower($currentview);
           if ( $currentview ) {
-               if ( $cat ) {
+               if ( $cat > 0 ) {
                     $category = get_record("glossary_categories","id",$cat);
-               }
-               if ( !$category ) {
-                    $cat = "";
+                   if ( !$category ) {
+                        $cat = "";
+                   }
                }
           }
     }
@@ -97,7 +97,7 @@
        </form>
        <?
           echo "</td><td valign=top align=right width=50%>";
-           if (isteacher($course->id) or $glossary->studentcanpost) {
+           if (isteacher($course->id) or ($glossary->studentcanpost) and !isguest($course->id)) {
               $options = array ("id" => "$cm->id");
               print_single_button("edit.php", $options, $straddentry );
            }
      print_tabbed_table_start($data, $CurrentTab, $tCFG);
      echo "<center>";
      if ( $currentview ) {
-         glossary_print_categories_menu($course, $cm, $glossary, $category);
+         glossary_print_categories_menu($course, $cm, $glossary, $cat, $category);
+         $currentcategory = "";
      } else {
          glossary_print_alphabet_menu($cm, $glossary, $l);
      
                $allentries = glossary_search_entries($searchterms, $glossary, $includedefinition);
        } elseif ( $eid ) {     // looking for an entry
                $allentries = get_records("glossary_entries", "id", $eid);
-       } else {                        // looking for terms that begin with a specify letter
+       } elseif ( $currentview and $cat == 0 ) {   // Browsing all categories
+        $sql = "SELECT gec.id gecid, gc.name, gc.id CID, ge.*
+            FROM {$CFG->prefix}glossary_entries ge,
+                {$CFG->prefix}glossary_entries_categories gec,
+                {$CFG->prefix}glossary_categories gc
+            WHERE ge.glossaryid = '$glossary->id' AND
+                gec.entryid = ge.id AND
+                gc.id = gec.categoryid
+            ORDER BY gc.name, ge.concept";
+           $allentries = get_records_sql( $sql );
+       } else {                        // looking for terms that begin with a specify letter or entries with no category associated
                $allentries = get_records("glossary_entries", "glossaryid", $glossary->id,"concept ASC");
        }
 
                               $DumpToScreen = 1;
                          }
                     } else {
-                         if ( ! record_exists("glossary_entries_categories","entryid",$entry->id) ) {
-                              $DumpToScreen = 1;
-                         }
+                        if ( $cat < 0 ) {    // No categorized
+                            if ( ! record_exists("glossary_entries_categories","entryid",$entry->id) ) {
+                                $DumpToScreen = 1;
+                            }
+                        } else {    // All categories
+                            if ( $currentcategory != $entry->CID ) {
+                                $currentcategory = $entry->CID;
+                                   if ( $glossary->displayformat == 0 ) {
+                                       if ( $DumpedDefinitions > 0) {
+                                           echo "</table></center><p>";
+                                       }
+                                       echo "\n<center><TABLE BORDER=0 CELLSPACING=0 width=95% valign=top cellpadding=10><tr><td align=center BGCOLOR=\"$THEME->cellheading2\">";
+                                   }
+                                echo "<b>$entry->name</b>";
+                            }
+
+                               if ( $glossary->displayformat == 0 ) {
+                                   echo "\n</center></td></tr></TABLE></center>";
+                                   if ( $DumpedDefinitions > 0) {
+                                       echo "\n<center><TABLE BORDER=1 CELLSPACING=0 width=95% valign=top cellpadding=10>";
+                                       }
+                               }
+
+                            $DumpToScreen = 1;
+                        }
                     }
                 } else {
                     $DumpToScreen = 1;