mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
51 lines
1.5 KiB
HTML
51 lines
1.5 KiB
HTML
<table align="center" class="generalbox" width="70%">
|
|
<tr>
|
|
<th colspan="2"><?php echo $t->name ?></th>
|
|
</tr>
|
|
<tr><td class="generalboxcontent" bgcolor="<?php echo $THEME->cellcontent ?>">
|
|
<table width="100%">
|
|
<tr>
|
|
<td valign="top" width="120">
|
|
<p><?php echo $t->picture ?></p>
|
|
</td>
|
|
<td>
|
|
<p><?php echo $t->description ?></p>
|
|
<?php
|
|
if (!empty($t->linkeditprofile)) {
|
|
echo '<p style="font-size: small" align="right"><a href="'.$t->linkeditprofile->url.'">'.$t->linkeditprofile->text.'</a>...</p>';
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
<tr bgcolor="<?php echo $THEME->cellcontent ?>">
|
|
<td colspan="2" align="left">
|
|
<p style="font-size: x-small"><?php
|
|
if ($t->users) {
|
|
$countusers = count($t->users);
|
|
foreach ($t->users as $user) {
|
|
echo "<a href=\"$CFG->wwwroot/user/view.php?id=$user->id&course=$t->courseid\">$user->fullname</a>";
|
|
$countusers--;
|
|
if ($countusers) {
|
|
echo ', ';
|
|
}
|
|
}
|
|
}
|
|
?>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr bgcolor="<?php echo $THEME->cellcontent ?>">
|
|
<td colspan="2" align="right">
|
|
<?php
|
|
if (!empty($t->linkfullprofile)) {
|
|
echo '<p style="font-size: small" align="right"><a href="'.$t->linkfullprofile->url.'">'.$t->linkfullprofile->text.'</a>...</p>';
|
|
}
|
|
?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br />
|