forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgroups-summary.html
50 lines (50 loc) · 1.54 KB
/
groups-summary.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<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 />