Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/glossary/formats/continuous/continuous_format.php
Go to the documentation of this file.
00001 <?php
00002 
00003 function glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $aliases=false) {
00004 
00005     global $USER;
00006 
00007     echo '<table class="glossarypost continuous" cellspacing="0">';
00008     echo '<tr valign="top">';
00009     echo '<td class="entry">';
00010     glossary_print_entry_approval($cm, $entry, $mode);
00011     glossary_print_entry_attachment($entry, $cm, 'html', 'right');
00012     echo '<div class="concept">';
00013     glossary_print_entry_concept($entry);
00014     echo '</div> ';
00015     glossary_print_entry_definition($entry, $glossary, $cm);
00016     $entry->alias = '';
00017     echo '</td></tr>';
00018 
00019     echo '<tr valign="top"><td class="entrylowersection">';
00020     glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases);
00021     echo '</td>';
00022     echo '</tr>';
00023     echo "</table>\n";
00024 }
00025 
00026 function glossary_print_entry_continuous($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1) {
00027 
00028     //The print view for this format is exactly the normal view, so we use it
00029 
00030     //Take out autolinking in definitions un print view
00031     $entry->definition = '<span class="nolink">'.$entry->definition.'</span>';
00032 
00033     //Call to view function (without icons, ratings and aliases) and return its result
00034     glossary_show_entry_continuous($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);
00035 
00036 }
00037 
00038 
 All Data Structures Namespaces Files Functions Variables Enumerations