'; echo '
'; echo '' . $lang['srv_survey_archives_tracking_history'] . ''; // Izvoz v Excel echo '

'.$lang['srv_survey_archives_tracking_last_changes'].'

'; //echo '
'; //echo '
'; - wrapperja za scroll na mobilnem echo '
'; echo '
'; echo ''; // Prva vrstica echo ''; echo ' '; echo ' '; echo ' '; echo ' '; echo ''; // Vrstice s podatki $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 ''; echo ' '; echo ' '; echo ' '; echo ' '; echo ''; } echo '
' . $lang['date'] . 'IPGETPOST
' . datetime($row['datetime']) . '
' . $row['ip'] . '
' . $row['get'] . '
' . $row['post'] . '
'; echo '
'; echo '
'; //- wrapperja za scroll na mobilnem echo '
'; echo ''; } public function csvExport() { global $global_user_id; define('delimiter', ';'); $podatki = 'datetime' . delimiter; //$podatki .= 'uid' . delimiter; $podatki .= 'ip' . delimiter; //$podatki .= 'status' . delimiter; $podatki .= 'parameter' . delimiter; $podatki .= 'value' . delimiter; $podatki .= 'parameter' . delimiter; $podatki .= 'value' . delimiter; $podatki .= "\n"; $sql = sisplet_query("SELECT * FROM user_tracking WHERE user = '$global_user_id' ORDER BY datetime DESC"); while ($row = mysqli_fetch_array($sql)) { $sqlu = sisplet_query("SELECT name, surname, id FROM users WHERE id = '$row[user]'"); $rowu = mysqli_fetch_array($sqlu); $podatki .= '' . datetime($row['datetime']) . delimiter; //$podatki .= '' . $rowu['id'] . delimiter; $podatki .= '' . $row['ip'] . delimiter; //$podatki .= '' . $row['status'] . delimiter; foreach (explode(',', $row['get']) AS $value) { $value = explode(':', $value); $podatki .= trim($value[0]) . delimiter; $podatki .= trim($value[1]) . delimiter; } $podatki .= "\n"; } $ime = str_replace('-', '_', $_GET['a']); return Export::init()->csv('Spremembe_' . $ime, $podatki); } }