<?php
  $moduletitles ['edit'] = "Stammdaten";
  $moduletitles ['family'] = "Familie";
  $moduletitles ['addpoints'] = "Punkte vergeben";
  $moduletitles ['addbonus'] = "Pr&auml;mie vergeben";
  $moduletitles ['account'] = "Konto";
  $moduletitles ['log'] = "Logeintr&auml;ge";
  $moduletitles ['delete'] = "L&ouml;schen";
  $modules = array_keys($moduletitles);
  $client = new user('',$userId);
  $client->konto = new konto($client->userId);
  $numBewegungen = count($client->konto->kontoBewegungen);
  $client->writeaddress($loggedIn->windowslogin,$loggedIn->name, $loggedIn->email);
?>

<table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse">
  <tr>
    <td>
      <table border="0" cellspacing="0" cellpadding="4" style="border-collapse: collapse">
        <tr>
<?php
  foreach ($modules as $mymodule)
  {
      $class="menutab";
      if ($mymodule == $action)
          $class="menutabactive";
?>
          <td class="<?=$class?>"><a href="<?=$_SERVER['PHP_SELF'] .
          "?module=$module&action=$mymodule&userId=$userId"?>"><?=$moduletitles[$mymodule]?></a></td>
<?php
  }
  ?>
          <td><?if (!$client->checklegalage()){ ?><img src="/grafik/button_u18.gif" alt="U18" /><? } ?></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
  <td class="menutabactive">
    Teilnehmer: <strong><?=$client->vorname?> <?=$client->name?></strong><br><br>
    <hr>
