[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 <?php 2 3 function glossary_show_entry_faq($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1, $aliases=true) { 4 global $USER; 5 if ( $entry ) { 6 7 echo '<table class="glossarypost faq" cellspacing="0">'; 8 9 echo '<tr valign="top">'; 10 echo '<th class="entryheader">'; 11 $entry->course = $course->id; 12 13 echo '<div class="concept">' . get_string('question','glossary') . ': '; 14 glossary_print_entry_concept($entry); 15 echo '</div>'; 16 17 echo '<span class="time">('.get_string('lastedited').': '. 18 userdate($entry->timemodified).')</span>'; 19 echo '</th>'; 20 echo '<td class="entryattachment">'; 21 22 glossary_print_entry_approval($cm, $entry, $mode); 23 echo '</td>'; 24 25 echo '</tr>'; 26 27 echo "\n<tr>"; 28 echo '<td colspan="2" class="entry">'; 29 echo '<b>'.get_string('answer','glossary').':</b> '; 30 31 glossary_print_entry_definition($entry, $glossary, $cm); 32 glossary_print_entry_attachment($entry, $cm, 'html'); 33 34 echo '</td></tr>'; 35 echo '<tr valign="top"><td colspan="3" class="entrylowersection">'; 36 glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $aliases); 37 echo '</td></tr></table>'; 38 39 } else { 40 echo '<div style="text-align:center">'; 41 print_string('noentry', 'glossary'); 42 echo '</div>'; 43 } 44 } 45 46 function glossary_print_entry_faq($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1) { 47 48 //The print view for this format is exactly the normal view, so we use it 49 50 //Take out autolinking in definitions un print view 51 $entry->definition = '<span class="nolink">'.$entry->definition.'</span>'; 52 53 //Call to view function (without icons, ratings and aliases) and return its result 54 return glossary_show_entry_faq($course, $cm, $glossary, $entry, $mode, $hook, false, false, false); 55 56 } 57 58
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |