Added Import for Large CSV
This commit is contained in:
@@ -81,7 +81,8 @@ class User_Summary extends TCPDF {
|
||||
}
|
||||
|
||||
$usernotes = (new Notes())->getAllNotes($this->user_serial);
|
||||
$subscriptions = (new Subscriptions())->getUsersSubscriptions($this->user_serial);
|
||||
$subscriptions = (new Subscriptions())->getUsersActiveSubscriptions($this->user_serial);
|
||||
$userloginactivity = (new Users())->getLoginActivity($user->record->user_name);
|
||||
|
||||
// Set report defaults
|
||||
|
||||
@@ -167,11 +168,57 @@ class User_Summary extends TCPDF {
|
||||
|
||||
$this->RoundedRect(10, 23, 190, $this->GetY() - 21, 1.50, "1111");
|
||||
|
||||
// --------------
|
||||
// Login Activity
|
||||
// --------------
|
||||
|
||||
$this->Ln(7);
|
||||
|
||||
$this->SetFont("Calibri", "B", 12);
|
||||
$this->Cell(0, 0, "Login Activity", 0, 1, "L", false, "", 3);
|
||||
$this->Ln(3);
|
||||
$this->SetFont("Calibri", "B", 10);
|
||||
|
||||
$this->Cell(30, 0, "Date", "B", 0, "L", false, "", 3);
|
||||
$this->Cell(20, 0, "IP Address", "B", 0, "L", false, "", 3);
|
||||
|
||||
$this->SetFont("Calibri", "", 10);
|
||||
|
||||
$this->Ln(6);
|
||||
|
||||
if ($userloginactivity->count() == 0) {
|
||||
|
||||
$this->Cell(0, 0, "No Login Activity...", 0, 1, "L", false, "", 3);
|
||||
} else {
|
||||
|
||||
foreach ($userloginactivity as $userlogin) {
|
||||
|
||||
$this->Cell(30, 0, $userlogin->journal_timestamp_verbose, 0, 0, "L", false, "", 3);
|
||||
$this->Cell(20, 0, $userlogin->journal_ip, 0, 0, "L", false, "", 3);
|
||||
|
||||
$this->Ln(4);
|
||||
|
||||
if ($this->GetY() > 265) {
|
||||
|
||||
$this->AddPage("P", "LETTER");
|
||||
|
||||
$this->SetFont("Calibri", "B", 10);
|
||||
|
||||
$this->Cell(30, 0, "Date", "B", 0, "L", false, "", 3);
|
||||
$this->Cell(20, 0, "Origin", "B", 0, "L", false, "", 3);
|
||||
|
||||
$this->SetFont("Calibri", "", 10);
|
||||
|
||||
$this->Ln(6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -----
|
||||
// Notes
|
||||
// -----
|
||||
|
||||
$this->Ln(7);
|
||||
$this->Ln(5);
|
||||
|
||||
$this->SetFont("Calibri", "B", 12);
|
||||
$this->Cell(0, 0, "Notes", 0, 1, "L", false, "", 3);
|
||||
@@ -282,7 +329,7 @@ class User_Summary extends TCPDF {
|
||||
$this->setCellPaddings(0, 0, 0, 0);
|
||||
$this->setCellMargins(2, 0, 0, 0);
|
||||
|
||||
$this->ImageSVG('images/dec-logo.svg', 10, 0, 25, 25);
|
||||
$this->Image('images/dec-international-logo.png', 10, 7, 25, 10);
|
||||
|
||||
$this->SetFont("Calibri", "B", 16);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user