📄 faq_format.php
字号:
<?php // $Id: faq_format.php,v 1.12.4.2 2007/11/09 14:35:07 nfreear Exp $function glossary_show_entry_faq($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1, $ratings=NULL, $aliases=true) { global $USER; $return = false; if ( $entry ) { echo '<table class="glossarypost faq" cellspacing="0">'; echo '<tr valign="top">'; echo '<th class="entryheader">'; $entry->course = $course->id; echo '<div class="concept">' . get_string('question','glossary') . ': '; glossary_print_entry_concept($entry); echo '</div>'; echo '<span class="time">('.get_string('lastedited').': '. userdate($entry->timemodified).')</span>'; echo '</th>'; echo '<td class="entryattachment">'; glossary_print_entry_approval($cm, $entry, $mode); glossary_print_entry_attachment($entry,'html','right'); echo '</td>'; echo '</tr>'; echo "\n<tr>"; echo '<td colspan="2" class="entry">'; echo '<b>'.get_string('answer','glossary').':</b> '; glossary_print_entry_definition($entry); echo '</td></tr>'; echo '<tr valign="top"><td colspan="3" class="entrylowersection">'; $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $ratings, $aliases); echo '</td></tr></table>'; } else { echo '<div style="text-align:center">'; print_string('noentry', 'glossary'); echo '</div>'; } return $return;}function glossary_print_entry_faq($course, $cm, $glossary, $entry, $mode='', $hook='', $printicons=1, $ratings=NULL) { //The print view for this format is exactly the normal view, so we use it //Take out autolinking in definitions un print view $entry->definition = '<span class="nolink">'.$entry->definition.'</span>'; //Call to view function (without icons, ratings and aliases) and return its result return glossary_show_entry_faq($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);}?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -