File: groups-summary.html

package info (click to toggle)
moodle 1.4.4.dfsg.1-3sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 57,876 kB
  • ctags: 29,496
  • sloc: php: 271,617; sql: 5,084; xml: 702; perl: 638; sh: 403; java: 283; makefile: 42; pascal: 21
file content (50 lines) | stat: -rw-r--r-- 1,578 bytes parent folder | download
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 />