⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fullwithauthor_format.php

📁 很棒的在线教学系统
💻 PHP
字号:
<?php  // $Id: fullwithauthor_format.php,v 1.17.4.2 2008/02/13 17:01:42 skodak Exp $function glossary_show_entry_fullwithauthor($course, $cm, $glossary, $entry, $mode="", $hook="", $printicons=1, $ratings=NULL, $aliases=true) {    global $CFG, $USER;    $user = get_record('user', 'id', $entry->userid);    $strby = get_string('writtenby', 'glossary');    $return = false;    if ($entry) {        echo '<table class="glossarypost fullwithauthor" cellspacing="0">';        echo '<tr valign="top">';                echo '<td class="picture">';        print_user_picture($user, $course->id, $user->picture);        echo '</td>';                echo '<th class="entryheader">';        echo '<div class="concept">';        glossary_print_entry_concept($entry);        echo '</div>';        $fullname = fullname($user);        $by = new object();        $by->name = '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$course->id.'">'.$fullname.'</a>';        $by->date = userdate($entry->timemodified);        echo '<span class="author">'.get_string('bynameondate', 'forum', $by).'</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 '<tr valign="top">';        echo '<td class="left">&nbsp;</td>';        echo '<td colspan="2" class="entry">';        glossary_print_entry_definition($entry);        echo '</td></tr>';        echo '<tr valign="top">';        echo '<td class="left">&nbsp;</td>';        echo '<td colspan="2" class="entrylowersection">';                $return = glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook, $printicons, $ratings, $aliases);        echo ' ';        echo '</td></tr>';        echo "</table>\n";    } else {        echo '<div style="text-align:center">';        print_string('noentry', 'glossary');        echo '</div>';    }    return $return;}function glossary_print_entry_fullwithauthor($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_fullwithauthor($course, $cm, $glossary, $entry, $mode, $hook, false, false, false);}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -