mirror of
https://github.com/moodle/moodle.git
synced 2025-01-20 23:18:43 +01:00
Removed old glossary formats.
Part of the new formats plugin structure. See Bug 936 (http://moodle.org/bugs/bug.php?op=show&bugid=936)
This commit is contained in:
parent
63adb00c22
commit
eaa9a06849
@ -1,40 +0,0 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
function glossary_print_entry_by_format($course, $cm, $glossary, $entry,$currentview="",$cat="") {
|
||||
global $THEME, $USER;
|
||||
|
||||
$colour = $THEME->cellheading2;
|
||||
|
||||
echo "\n<table border=1 cellspacing=0 width=95% valign=top cellpadding=10>";
|
||||
|
||||
echo "\n<tr>";
|
||||
echo "<td width=100% bgcolor=\"$colour\">";
|
||||
if ($entry->attachment) {
|
||||
$entry->course = $course->id;
|
||||
echo "<table border=0 align=right><tr><td>";
|
||||
echo glossary_print_attachments($entry, "html");
|
||||
echo "</td></tr></table>";
|
||||
}
|
||||
echo "<b>$entry->concept</b><br>";
|
||||
if ($entry) {
|
||||
echo " <font size=1>".get_string("lastedited").": ".userdate($entry->timemodified)."</font>";
|
||||
}
|
||||
echo "</tr>";
|
||||
|
||||
echo "\n<tr><td width=100% bgcolor=\"$THEME->cellcontent\">";
|
||||
if ($entry) {
|
||||
glossary_print_entry_definition($entry);
|
||||
glossary_print_entry_icons($course, $cm, $glossary, $entry, $currentview, $cat);
|
||||
|
||||
} else {
|
||||
echo "<center>";
|
||||
print_string("noentry", "glossary");
|
||||
echo "</center>";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
|
||||
echo "</table>\n";
|
||||
|
||||
}
|
||||
|
||||
?>
|
@ -1,54 +0,0 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
function glossary_print_entry_by_format($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
|
||||
global $THEME, $CFG, $USER;
|
||||
|
||||
$colour = $THEME->cellheading2;
|
||||
|
||||
$user = get_record("user", "id", $entry->userid);
|
||||
$strby = get_string("writtenby", "glossary");
|
||||
|
||||
echo "\n<br /><table border=0 width=95% cellspacing=0 valign=top cellpadding=3 class=forumpost align=center>";
|
||||
|
||||
echo "\n<tr>";
|
||||
echo "\n<td bgcolor=\"$colour\" width=35 valign=top class=\"forumpostpicture\">";
|
||||
$return = false;
|
||||
if ($entry) {
|
||||
print_user_picture($user->id, $course->id, $user->picture);
|
||||
|
||||
echo "</td>";
|
||||
echo "<td valign=\"top\" width=100% bgcolor=\"$THEME->cellheading\" class=\"forumpostheader\">";
|
||||
|
||||
glossary_print_entry_approval($cm, $entry, $mode);
|
||||
glossary_print_entry_attachment($entry,"html","right");
|
||||
|
||||
echo "<b>";
|
||||
glossary_print_entry_concept($entry);
|
||||
echo "</b><br />";
|
||||
|
||||
echo "<font size=\"2\">$strby " . fullname($user, isteacher($course->id)) . "</font>";
|
||||
echo " <font size=1>(".get_string("lastedited").": ".
|
||||
userdate($entry->timemodified).")</font>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "\n<tr>";
|
||||
echo "\n<td bgcolor=\"$colour\" width=35 valign=top class=\"forumpostside\"> </td>";
|
||||
echo "\n<td width=100% bgcolor=\"$THEME->cellcontent\" class=\"forumpostmessage\">";
|
||||
|
||||
glossary_print_entry_definition($entry);
|
||||
glossary_print_entry_lower_section($course, $cm, $glossary, $entry,$mode,$hook,$printicons);
|
||||
echo ' ';
|
||||
$return = glossary_print_entry_ratings($course, $entry, $ratings);
|
||||
|
||||
} else {
|
||||
echo "<center>";
|
||||
print_string("noentry", "glossary");
|
||||
echo "</center>";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
|
||||
echo "</table>\n";
|
||||
return $return;
|
||||
}
|
||||
|
||||
?>
|
@ -1,60 +0,0 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
function glossary_print_entry_by_format($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
|
||||
global $THEME, $CFG, $USER;
|
||||
|
||||
$colour = $THEME->cellheading2;
|
||||
|
||||
$user = get_record("user", "id", $entry->userid);
|
||||
$strby = get_string("writtenby", "glossary");
|
||||
|
||||
echo "\n<br /><table border=0 width=95% cellspacing=0 valign=top cellpadding=3 class=forumpost align=center>";
|
||||
|
||||
echo "\n<tr>";
|
||||
echo "\n<td bgcolor=\"$colour\" width=35 valign=top class=\"forumpostpicture\">";
|
||||
$return = false;
|
||||
if ($entry) {
|
||||
print_user_picture($user->id, $course->id, $user->picture);
|
||||
echo "</td>";
|
||||
echo "<td align=\"top\" width=100% bgcolor=\"$THEME->cellheading\" class=\"forumpostheader\">";
|
||||
glossary_print_entry_approval($cm, $entry, $mode);
|
||||
echo "<b>";
|
||||
glossary_print_entry_concept($entry);
|
||||
echo "</b><br />";
|
||||
echo "<font size=\"2\">$strby " . fullname($user, isteacher($course->id)) . "</font>";
|
||||
echo " <font size=1>(".get_string("lastedited").": ".
|
||||
userdate($entry->timemodified).")</font>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "\n<tr>";
|
||||
echo "\n<td bgcolor=\"$colour\" width=35 valign=top class=\"forumpostside\"> </td>";
|
||||
echo "\n<td width=100% align=\"top\" bgcolor=\"$THEME->cellcontent\" class=\"forumpostmessage\">";
|
||||
|
||||
if ($entry->attachment) {
|
||||
$entry->course = $course->id;
|
||||
if (strlen($entry->definition)%2) {
|
||||
$align = "right";
|
||||
} else {
|
||||
$align = "left";
|
||||
}
|
||||
glossary_print_entry_attachment($entry,"",$align);
|
||||
}
|
||||
glossary_print_entry_definition($entry);
|
||||
|
||||
glossary_print_entry_lower_section($course, $cm, $glossary, $entry,$mode,$hook,$printicons);
|
||||
echo ' ';
|
||||
$return = glossary_print_entry_ratings($course, $entry, $ratings);
|
||||
|
||||
} else {
|
||||
echo "<center>";
|
||||
print_string("noentry", "glossary");
|
||||
echo "</center>";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
|
||||
echo "</table>\n";
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
?>
|
@ -1,38 +0,0 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
function glossary_print_entry_by_format($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
|
||||
global $THEME, $USER;
|
||||
$return = false;
|
||||
if ( $entry ) {
|
||||
$colour = $THEME->cellheading2;
|
||||
|
||||
echo '<br /><table border=0 cellspacing=0 width=95% valign=top cellpadding=10 class=forumpost>';
|
||||
|
||||
echo '<tr>';
|
||||
echo "<td width=100% bgcolor=\"$colour\">";
|
||||
$entry->course = $course->id;
|
||||
glossary_print_entry_approval($cm, $entry, $mode);
|
||||
glossary_print_entry_attachment($entry,"html","right");
|
||||
|
||||
echo '<b>' . get_string("question","glossary") . ':</b> ';
|
||||
glossary_print_entry_concept($entry) . '<br>';
|
||||
echo ' <font size=1>' . get_string("lastedited").': '.userdate($entry->timemodified) . '</font></tr>';
|
||||
echo "<tr><td width=100% bgcolor=\"$THEME->cellcontent\">";
|
||||
echo '<b>' . get_string("answer","glossary") . ':</b> ';
|
||||
glossary_print_entry_definition($entry);
|
||||
|
||||
|
||||
glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook,$printicons);
|
||||
echo ' ';
|
||||
$return = glossary_print_entry_ratings($course, $entry, $ratings);
|
||||
echo '</td></tr></table>';
|
||||
|
||||
} else {
|
||||
echo '<center>';
|
||||
print_string("noentry", "glossary");
|
||||
echo '</center>';
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
?>
|
@ -1,38 +0,0 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
function glossary_print_entry_by_format($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
|
||||
global $THEME, $USER;
|
||||
|
||||
$colour = $THEME->cellheading2;
|
||||
$return = false;
|
||||
|
||||
echo "\n<br /><table border=0 width=95% cellspacing=0 valign=top cellpadding=3 class=forumpost align=center>";
|
||||
|
||||
echo "\n<tr>";
|
||||
echo "<td width=100% bgcolor=\"$THEME->cellheading\">";
|
||||
glossary_print_entry_approval($cm, $entry, $mode);
|
||||
if ($entry) {
|
||||
glossary_print_entry_attachment($entry,"html","right");
|
||||
echo "<b>";
|
||||
glossary_print_entry_concept($entry);
|
||||
echo "</b><br />";
|
||||
echo "<font size=1>".get_string("lastedited").": ".userdate($entry->timemodified)."</font>";
|
||||
echo "</tr>";
|
||||
echo "\n<tr><td width=100% bgcolor=\"$THEME->cellcontent\">";
|
||||
|
||||
glossary_print_entry_definition($entry);
|
||||
glossary_print_entry_lower_section($course, $cm, $glossary, $entry, $mode, $hook,$printicons);
|
||||
echo ' ';
|
||||
$return = glossary_print_entry_ratings($course, $entry, $ratings);
|
||||
} else {
|
||||
echo "<center>";
|
||||
print_string("noentry", "glossary");
|
||||
echo "</center>";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
|
||||
echo "</table>\n";
|
||||
return $return;
|
||||
}
|
||||
|
||||
?>
|
@ -1,34 +0,0 @@
|
||||
<?PHP // $Id$
|
||||
|
||||
function glossary_print_entry_by_format($course, $cm, $glossary, $entry, $mode="",$hook="",$printicons=1,$ratings=NULL) {
|
||||
global $THEME, $USER;
|
||||
|
||||
$colour = "#FFFFFF";
|
||||
$return = false;
|
||||
|
||||
echo "\n<table class=\"generalbox\" border=0 cellspacing=0 width=95% valign=top cellpadding=10>";
|
||||
|
||||
echo "\n<tr>";
|
||||
echo "<td width=100% bgcolor=\"$colour\">";
|
||||
if ($entry) {
|
||||
echo "<b><a href=\"showentry.php?courseid=$course->id\&eid=$entry->id\&displayformat=5\" target=\"_blank\" onClick=\"return openpopup('/mod/glossary/showentry.php?courseid=$course->id\&eid=$entry->id\&displayformat=5', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);\">";
|
||||
|
||||
glossary_print_entry_concept($entry);
|
||||
echo '</a></b> ';
|
||||
if ( $return = glossary_print_entry_commentslink($course, $cm, $glossary, $entry,$mode,$hook, 'html') ) {
|
||||
echo "<font size=-1>($return)</font>";
|
||||
}
|
||||
|
||||
echo '<br />';
|
||||
} else {
|
||||
echo "<center>";
|
||||
print_string("noentry", "glossary");
|
||||
echo "</center>";
|
||||
}
|
||||
echo "</td></tr>";
|
||||
|
||||
echo "</table>\n";
|
||||
return $return;
|
||||
}
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user