<table align="center" class="generalbox" width="70%">
 <tr>
   <th colspan="2"><?php echo $t->name ?></th>
 </tr>
 <tr><td class="generalboxcontent">
   <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 align="right"><a href="'.$t->linkeditprofile->url.'">'.$t->linkeditprofile->text.'</a>...</p>';
          }
        ?>
      </td>
    </tr>
    <tr>
      <td colspan="2" align="left">
        <?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 ', ';
                  }
              }
          }
          ?>
      </td>
    </tr>
    <tr>
      <td colspan="2" align="right">
        <?php 
          if (!empty($t->linkfullprofile)) {
              echo '<p align="right"><a href="'.$t->linkfullprofile->url.'">'.$t->linkfullprofile->text.'</a>...</p>';
          }
        ?>
      </td>
    </tr>
   </table>
   </td>
   </tr>
  </table>
<br />
