Beispiel #1
0
     $class = 'owner';
 }
 if (!isset($_GET['zugangscode']) && $ressource->uid == $uid) {
     $class = 'owner';
 }
 echo "<tr class='" . $class . "'><td>" . $name . "</td>";
 // termine zu ressourcen anzeigen
 foreach ($coodle_termine->result as $termin) {
     $checked = '';
     $disabled = '';
     if ($coodle_termine->checkTermin($termin->coodle_termin_id, $ressource->coodle_ressource_id)) {
         $checked = 'checked';
     }
     $coodle_help = new coodle();
     if (isset($_GET['zugangscode'])) {
         $coodle_help->getRessourceFromUser($coodle_id, '', $_GET['zugangscode']);
         if ($ressource->coodle_ressource_id != $coodle_help->coodle_ressource_id) {
             $disabled = 'disabled';
         }
     } else {
         $coodle_help->getRessourceFromUser($coodle_id, $uid);
         if ($ressource->coodle_ressource_id != $coodle_help->coodle_ressource_id) {
             $disabled = 'disabled';
         }
     }
     if ($abgeschlossen) {
         $disabled = 'disabled';
     }
     echo "<td align='center'><input type='checkbox' " . $checked . " " . $disabled . " name='check_" . $ressource->coodle_ressource_id . "_" . $termin->coodle_termin_id . "'></td>";
 }
 if ($ersteller) {