mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
show nicer numberformat for total qsos and show also number of users
This commit is contained in:
@@ -41,6 +41,7 @@ class Debug extends CI_Controller
|
||||
$data['stations'] = $this->Stations->all();
|
||||
|
||||
$data['qso_total'] = $this->Debug_model->count_all_qso();
|
||||
$data['users_total'] = $this->Debug_model->count_users();
|
||||
$data['available_languages'] = $this->config->item('languages');
|
||||
|
||||
$data['qsos_with_no_station_id'] = $this->Logbook_model->check_for_station_id();
|
||||
|
||||
@@ -161,6 +161,12 @@ class Debug_model extends CI_Model
|
||||
return $query->row()->total;
|
||||
}
|
||||
|
||||
function count_users() {
|
||||
$sql = 'SELECT COUNT(*) AS total FROM users;';
|
||||
$query = $this->db->query($sql);
|
||||
return $query->row()->total;
|
||||
}
|
||||
|
||||
function getMigrationVersion() {
|
||||
$this->db->select_max('version');
|
||||
$query = $this->db->get('migrations');
|
||||
|
||||
@@ -70,7 +70,11 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= __("Total QSO on this instance"); ?></td>
|
||||
<td><?php echo $qso_total . ' QSOs'; ?></td>
|
||||
<td><?php echo number_format($qso_total, 0, '.', '\'') . ' QSOs'; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?= __("Total User"); ?></td>
|
||||
<td><?php echo $users_total . ' User'; ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user