Prikaz samo zadnjih 25 sprememb pri "moj profil"

This commit is contained in:
pero1203 2021-02-25 07:41:32 +01:00
parent f046a24d46
commit 3207a0daec

View File

@ -43,7 +43,7 @@ class UserTrackingClass
echo '<legend>' . $lang['srv_survey_archives_tracking'] . '</legend>';
// Izvoz v Excel
echo '<p><a href="ajax.php?a=user_tracking&d=download">Download Excel</a></p>';
echo '<p>Zadnjih 25 sprememb (za vpogled v vse spremembe prenesite <a href="ajax.php?a=user_tracking&d=download" class="bold">Excel datoteko</a>)</p>';
echo '<table id="tracking">';
@ -51,26 +51,19 @@ class UserTrackingClass
// Prva vrstica
echo '<tr>';
echo ' <th>' . $lang['date'] . '</th>';
//echo ' <th>User</th>';
echo ' <th class="center">IP</th>';
//echo ' <th class="center">Podstran</th>';
echo ' <th>GET</th>';
echo ' <th>POST</th>';
echo '</tr>';
// Vrstice s podatki
$sql = sisplet_query("SELECT * FROM user_tracking WHERE user = '$global_user_id' ORDER BY datetime DESC");
//$sqlu = sisplet_query("SELECT name, surname FROM users WHERE id = '$global_user_id'");
//$rowu = mysqli_fetch_array($sqlu);
$sql = sisplet_query("SELECT * FROM user_tracking WHERE user = '$global_user_id' ORDER BY datetime DESC LIMIT 25");
while ($row = mysqli_fetch_array($sql)) {
echo '<tr>';
echo ' <td>' . datetime($row['datetime']) . '</td>';
//echo ' <td>' . $rowu['name'] . ' ' . $rowu['surname'] . '</td>';
echo ' <td class="center">' . $row['ip'] . '</td>';
//echo ' <td class="center">' . $statuses[$row['status']] . '</td>';
echo ' <td>' . $row['get'] . '</td>';
echo ' <td>' . $row['post'] . '</td>';