Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/glossary/formats/fullwithoutauthor/fullwithoutauthor_format.php
Go to the documentation of this file.
00001 <?php
00002 
00003 function glossary_show_entry_fullwithoutauthor($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1, $aliases=true) {
00004     global $CFG, $USER;
00005 
00006 
00007     if ($entry) {
00008         echo '<table class="glossarypost fullwithoutauthor" cellspacing="0">';
00009         echo '<tr valign="top">';
00010 
00011         echo '<th class="entryheader">';
00012 
00013         echo '<div class="concept">';
00014         glossary_print_entry_concept($entry);
00015         echo '</div>';
00016 
00017         echo '<span class="time">('.get_string('lastedited').': '.
00018              userdate($entry->timemodified).')</span>';
00019         echo '</th>';
00020         echo '<td class="entryattachment">';
00021 
00022         glossary_print_entry_approval($cm, $entry, $mode);
00023         glossary_print_entry_attachment($entry, $cm, 'html', 'right');
00024         echo '</td>';
00025 
00026         echo '</tr>';
00027 
00028         echo '<tr valign="top">';
00029         echo '<td width="100%" colspan="2" class="entry">';
00030 
00031         glossary_print_entry_definition($entry, $glossary, $cm);
00032 
00033         echo '</td></tr>';
00034         echo '<tr valign="top"><td colspan="2" class="entrylowersection">';
00035         glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases);
00036 
00037         echo ' ';
00038         echo '</td></tr>';
00039         echo "</table>\n";
00040     } else {
00041         echo '<center>';
00042         print_string('noentry', 'glossary');
00043         echo '</center>';
00044     }
00045 }
00046 
00047 function glossary_print_entry_fullwithoutauthor($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1) {
00048 
00049     //The print view for this format is exactly the normal view, so we use it
00050 
00051     //Take out autolinking in definitions un print view
00052     $entry->definition = '<span class="nolink">'.$entry->definition.'</span>';
00053 
00054     //Call to view function (without icons, ratings and aliases) and return its result
00055     return glossary_show_entry_fullwithoutauthor($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);
00056 
00057 }
00058 
00059 
 All Data Structures Namespaces Files Functions Variables Enumerations