echo '<td>' . __('<b>%d</b> insgesamt', $sql3['replies']) . '</td>'; echo '<td>' . __('<b>%d</b> schnelle', $sql3['fastReplies']) . '</td>'; echo '<td>' . __('<b>%d</b> Stimmen erhalten', $sql3['thanksReceived']) . '</td>'; echo '</tr>'; $counter++; } ?> </tbody> </table> <?php $myRequests1 = "SELECT id, title FROM " . $prefix . "supportRequests WHERE author = '" . $cookie_id . "' ORDER BY id DESC LIMIT 0, 5"; $myRequests2 = mysql_query($myRequests1); if (mysql_num_rows($myRequests2) > 0) { echo '<h1>' . _('Meine letzten Anfragen') . '</h1><ul>'; while ($myRequests3 = mysql_fetch_assoc($myRequests2)) { echo '<li><a href="/supportRequest.php?id=' . id2secure($myRequests3['id']) . '">' . $myRequests3['title'] . '</a></li>'; } echo '</ul>'; } } else { ?> <h1><?php echo _('Support'); ?> </h1> <p><?php echo _('Du musst angemeldet sein, um diese Seite aufrufen zu können!'); ?> </p> <?php }
echo $comments3['text']; } if ($comments3['likes'] > 0 && $comments3['deleted'] == 0) { echo '<br /><strong>' . __('%d Manager finden diesen Kommentar gut', $comments3['likes']) . '</strong>'; } $baseURL = '/supportRequest.php?id=' . id2secure($requestID) . '&'; if ($_SESSION['status'] == 'Admin' or $_SESSION['status'] == 'Helfer') { echo '<br /> <br /><a class="button" href="' . $baseURL . 'delCom=' . id2secure($comments3['id']) . '" onclick="return confirm(\'' . _('Bist Du sicher?') . '\'">' . _('Kommentar löschen') . '</a>'; if ($comments3['userID'] != $cookie_id) { echo ' <a class="button" href="#" onclick="voteComment(\'' . id2secure($requestID) . '\', \'' . id2secure($comments3['id']) . '\', this); return false;">' . _('Guter Kommentar!') . '</a>'; } } else { if ($comments3['userID'] == $cookie_id) { echo '<br /> <br /><a class="button" href="' . $baseURL . 'delCom=' . id2secure($comments3['id']) . '" onclick="return confirm(\'' . _('Bist Du sicher?') . '\'">' . _('Kommentar löschen') . '</a>'; } else { echo '<br /> <br /><a class="button" href="#" onclick="voteComment(\'' . id2secure($requestID) . '\', \'' . id2secure($comments3['id']) . '\', this); return false;">' . _('Guter Kommentar!') . '</a>'; } } echo '</p>'; $commentsCounter++; } } ?> <script type="text/javascript" src="/js/jquery.min.js"></script> <script type="text/javascript"> function voteComment(requestID, commentID, linkElement) { if (typeof(linkElement) !== 'undefined') { var responseSpan = document.createElement('span'); responseSpan.style.marginLeft = '10px'; responseSpan.style.marginRight = '10px'; responseSpan.innerHTML = '<img src="/images/loading_14.gif" width="14" alt="Wird gesendet ..." /> <?php