mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Use session value for dashboard last qso count on map, qso list and ux hint
This commit is contained in:
@@ -114,7 +114,10 @@ class Dashboard extends CI_Controller {
|
||||
$data['qrz_sent_today'] = $QSLStatsBreakdownArray['QRZ_Sent_today'];
|
||||
$data['qrz_rcvd_today'] = $QSLStatsBreakdownArray['QRZ_Received_today'];
|
||||
|
||||
$data['last_qsos_list'] = $this->logbook_model->get_last_qsos('18', $logbooks_locations_array);
|
||||
$data['last_qsos_list'] = $this->logbook_model->get_last_qsos(
|
||||
$this->session->userdata('dashboard_last_qso_count'),
|
||||
$logbooks_locations_array,
|
||||
);
|
||||
|
||||
$data['vucc'] = $this->vucc->fetchVuccSummary();
|
||||
$data['vuccSAT'] = $this->vucc->fetchVuccSummary('SAT');
|
||||
|
||||
@@ -214,7 +214,7 @@ function getDistance($distance) {
|
||||
<div class="col-sm-8">
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover border-top">
|
||||
<table class="table table-striped table-hover border-top mb-2">
|
||||
|
||||
<thead>
|
||||
<tr class="titles">
|
||||
@@ -270,6 +270,9 @@ function getDistance($distance) {
|
||||
<?php $i++; } } ?>
|
||||
</table>
|
||||
</div>
|
||||
<small class="mb-3 me-2" style="float: right;">
|
||||
<?= sprintf(__("Max. %d previous contacts are shown"), $this->session->userdata('dashboard_last_qso_count')) ?>
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-4">
|
||||
|
||||
@@ -830,7 +830,9 @@ function showActivatorsMap(call, count, grids) {
|
||||
<?php } else { ?>
|
||||
var grid = "No";
|
||||
<?php } ?>
|
||||
initmap(grid,'map',{'dataPost':{'nb_qso':'18'}});
|
||||
|
||||
<?php printf("var dashboard_qso_count = '%d';", $this->session->userdata('dashboard_last_qso_count')) ?>
|
||||
initmap(grid,'map',{'dataPost':{'nb_qso': dashboard_qso_count}});
|
||||
|
||||
<?php if ($is_first_login ?? false) : ?>
|
||||
$('#firstLoginWizardModal').modal('show');
|
||||
|
||||
Reference in New Issue
Block a user