?> </th> <th><?php echo $message['email']; ?> </th> </tr> </thead> <tbody> <?php while ($row = mysqli_fetch_array($result)) { echo "<tr>"; echo "<td><a href=\"viewuser.php?id=" . $row['userid'] . "\">" . $row['lastname'] . " " . $row['firstname'] . "</a></td>"; echo "<td><a href=\"viewgroup.php?id=" . $row['groupid'] . "\">" . getGroupInfoByID($row['groupid'], 'groupname') . "</a></td>"; echo "<td>" . $row['description'] . "</td>"; echo "<td>" . getNumberOfOpenTasks($row['userid']) . "</td>"; echo "<td>" . getNumberOfClosedTasks($row['userid']) . "</td>"; echo "<td><a href=\"mailto:" . $row['email'] . "\">" . $row['email'] . "</a></td>"; echo "</tr>"; } ?> </tbody> </table> </div> </div> <?php if (UserCan('create_user')) { ?> <div class="tab-pane" id="newuser"> <form role="form" action="users.php" method="POST"> <div class="form-group smallform">
echo "<td>" . Datum($row['recuruntil']) . "</td>"; echo "</tr>"; } } } ?> </tbody> </table> </div> <?php } ?> <?php $userresult = mysqli_query($con, "SELECT `userid`, `firstname`, `lastname` FROM `users` WHERE `userid` != " . $_SESSION['userid'] . " ORDER BY `lastname`"); while ($userrow = mysqli_fetch_array($userresult)) { if (getNumberOfOpenTasks($userrow['userid']) >= 1 && !userHasOnlyPrivateTasks($userrow['userid'])) { ?> <h2 class="sub-header"><?php echo $userrow['lastname'] . " " . $userrow['firstname']; ?> </h2> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th><?php echo $message['taskname']; ?> </th> <th><?php echo $message['project'];