QoL 63: counts in menus, tabs, list headers and the list footer have a thousands separator, as the dashboard, reports and audit log already did

This commit is contained in:
johnnyq
2026-11-21 02:29:20 -05:00
parent 9a58e2b315
commit c094f97eed
51 changed files with 105 additions and 104 deletions

View File

@@ -230,6 +230,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u
- Client portal and emailed links: what a client sees after accepting or declining a quote, approving a task or sending a file reads the same from an emailed link as in the portal - Thank you - quote QUO-79 is accepted and our team has been told, rather than Quote Accepted. Card payment problems are in plain words - Card payments are not set up, rather than Stripe credentials missing. A link that isn't right, online payment that isn't available, or a payment that can't be confirmed shows the same page as a mistyped invoice link, rather than an Oops line on an empty page.
- Wording: a ticket task's approval picker says agent rather than technician, with the same blank choice as other pickers - - Select one - and - Select an agent - rather than Select... and - Select a user -. Pickers that fill in as you go read like the rest: changing a ticket's client offers - Select a contact - (or - No contacts -), a project with no client offers - Nobody -, and an asset detail or statement line with nothing picked shows - None - or - Not for a client - rather than a bare dash. The Tickets list's Billing filter starts at - Any -, record pages say Upload Files rather than Upload File(s), and Maintenance > Cron's log counts 1 problem rather than 1 problem(s).
- Screen readers: every window's close button is read out as Close, and the arrow beside a list's New button and the ⋮ menus on record pages as More actions, rather than as a button with no name or just More.
- Counts: the counts in menus, tabs, list headers and under every list - Showing 1 to 25 of 1,834 records - have a thousands separator, as the dashboard, reports and audit log already did.
### Bug Fixes

View File

@@ -162,8 +162,8 @@ $csrf = $_SESSION['csrf_token'];
</div>
</form>
<nav class="nav nav-pills itflow-asset-tabs mt-2">
<a class="nav-link <?= $show_archived ? '' : 'active' ?>" href="<?= escapeHtml($pill_url(false)) ?>"><i class="fas fa-fw <?= $config['icon'] ?> me-1"></i>Active <span class="badge rounded-pill ms-1"><?= $counts[0] ?></span></a>
<a class="nav-link <?= $show_archived ? 'active' : '' ?>" href="<?= escapeHtml($pill_url(true)) ?>" title="They stay on their records, but aren't offered for new ones"><i class="fas fa-fw fa-archive me-1"></i>Archived <span class="badge rounded-pill ms-1"><?= $counts[1] ?></span></a>
<a class="nav-link <?= $show_archived ? '' : 'active' ?>" href="<?= escapeHtml($pill_url(false)) ?>"><i class="fas fa-fw <?= $config['icon'] ?> me-1"></i>Active <span class="badge rounded-pill ms-1"><?= number_format(intval($counts[0])) ?></span></a>
<a class="nav-link <?= $show_archived ? 'active' : '' ?>" href="<?= escapeHtml($pill_url(true)) ?>" title="They stay on their records, but aren't offered for new ones"><i class="fas fa-fw fa-archive me-1"></i>Archived <span class="badge rounded-pill ms-1"><?= number_format(intval($counts[1])) ?></span></a>
</nav>
</div>

View File

@@ -20,7 +20,7 @@
<p>
Get Started
<?php if (!$nav_getting_started['finished']) { ?>
<span class="right badge rounded-pill text-light" title="Steps done or skipped"><?= $nav_getting_started['done'] ?>/<?= $nav_getting_started['total'] ?></span>
<span class="right badge rounded-pill text-light" title="Steps done or skipped"><?= number_format(intval($nav_getting_started['done'])) ?>/<?= $nav_getting_started['total'] ?></span>
<?php } ?>
</p>
</a>
@@ -158,7 +158,7 @@
Managed Instances
<?php $nav_managed_offline = managedOfflineCount(); ?>
<?php if ($nav_managed_offline) { ?>
<span class="right badge rounded-pill text-bg-danger" title="Not checking in" data-nav-managed-offline><?= $nav_managed_offline ?></span>
<span class="right badge rounded-pill text-bg-danger" title="Not checking in" data-nav-managed-offline><?= number_format(intval($nav_managed_offline)) ?></span>
<?php } ?>
</p>
</a>
@@ -188,7 +188,7 @@
Mail Queue
<?php $nav_mail_failed = mailQueueSummary()['failed_week']; ?>
<?php if ($nav_mail_failed) { ?>
<span class="right badge rounded-pill text-bg-danger" title="Failed to send in the last week" data-nav-mail-failed><?= $nav_mail_failed ?></span>
<span class="right badge rounded-pill text-bg-danger" title="Failed to send in the last week" data-nav-mail-failed><?= number_format(intval($nav_mail_failed)) ?></span>
<?php } ?>
</p>
</a>

View File

@@ -162,7 +162,7 @@ $devices_in = intval(mysqli_fetch_row(mysqli_query($mysqli, "SELECT COUNT(*) FRO
continue;
} ?>
<a class="nav-link text-nowrap <?= $show === $key ? 'active' : '' ?>" href="<?= escapeHtml($filter_url(['show' => $key === '' ? null : $key])) ?>" title="<?= escapeHtml($view['title']) ?>">
<i class="fas fa-fw <?= $view['icon'] ?> me-1"></i><?= escapeHtml($view['label']) ?> <span class="badge rounded-pill ms-1"><?= $view_counts[$key] ?></span>
<i class="fas fa-fw <?= $view['icon'] ?> me-1"></i><?= escapeHtml($view['label']) ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($view_counts[$key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -83,7 +83,7 @@ $signup_clients = $signup_ready ? portalSignupClients() : [];
<span class="text-secondary small me-auto">Shown at the top of the portal's home page - to every client, or one - between their start and end. For a banner your agents see instead, use <a href="agent_banners.php">Agent Banners</a>.</span>
<div class="btn-group btn-group-sm">
<a class="btn btn-outline-secondary<?= $show_archived ? '' : ' active' ?>" href="settings_client_portal.php">Current</a>
<a class="btn btn-outline-secondary<?= $show_archived ? ' active' : '' ?>" href="settings_client_portal.php?archived=1">Archived <span class="badge rounded-pill text-bg-secondary ms-1"><?= $archived_count ?></span></a>
<a class="btn btn-outline-secondary<?= $show_archived ? ' active' : '' ?>" href="settings_client_portal.php?archived=1">Archived <span class="badge rounded-pill text-bg-secondary ms-1"><?= number_format(intval($archived_count)) ?></span></a>
</div>
</div>
<div class="table-responsive-sm">

View File

@@ -358,9 +358,9 @@ if (!$config_module_enable_ticketing) {
<span class="me-auto">
<strong>Mail Queue</strong>
<span class="text-body-secondary">- <?= $mail_queue['last_sent'] ? 'last sent ' . escapeHtml(timeAgo($mail_queue['last_sent'])) : 'nothing sent yet' ?></span>
<?php if ($mail_queue['waiting']) { ?><span class="badge rounded-pill text-bg-primary ms-1"><?= $mail_queue['waiting'] ?> waiting</span><?php } ?>
<?php if ($mail_queue['retrying']) { ?><span class="badge rounded-pill text-bg-warning ms-1"><?= $mail_queue['retrying'] ?> retrying</span><?php } ?>
<?php if ($mail_queue['failed_day']) { ?><span class="badge rounded-pill text-bg-danger ms-1"><?= $mail_queue['failed_day'] ?> failed in the last day</span><?php } ?>
<?php if ($mail_queue['waiting']) { ?><span class="badge rounded-pill text-bg-primary ms-1"><?= number_format(intval($mail_queue['waiting'])) ?> waiting</span><?php } ?>
<?php if ($mail_queue['retrying']) { ?><span class="badge rounded-pill text-bg-warning ms-1"><?= number_format(intval($mail_queue['retrying'])) ?> retrying</span><?php } ?>
<?php if ($mail_queue['failed_day']) { ?><span class="badge rounded-pill text-bg-danger ms-1"><?= number_format(intval($mail_queue['failed_day'])) ?> failed in the last day</span><?php } ?>
</span>
<a class="btn btn-sm btn-outline-secondary" href="mail_queue.php<?= $mail_queue['failed_day'] ? '?show=failed' : '' ?>">Open the Mail Queue</a>
</div>

View File

@@ -302,7 +302,7 @@ $audit_url = function (array $query) use ($dates_query) {
<td class="text-end d-none d-sm-table-cell">
<?= number_format(intval($row['ips'])) ?>
<?php if (!empty($new_ips[$user_id])) { ?>
<div><span class="badge rounded-pill bg-warning-subtle text-warning-emphasis border border-warning-subtle fw-normal" title="First used to sign in in these dates" data-new-ips><?= $new_ips[$user_id] ?> new</span></div>
<div><span class="badge rounded-pill bg-warning-subtle text-warning-emphasis border border-warning-subtle fw-normal" title="First used to sign in in these dates" data-new-ips><?= number_format(intval($new_ips[$user_id])) ?> new</span></div>
<?php } ?>
</td>
<td class="d-none d-lg-table-cell small text-nowrap" title="<?= escapeHtml($row['last_seen']) ?>"><?= escapeHtml(timeAgo($row['last_seen'])) ?></td>

View File

@@ -282,7 +282,7 @@ $pill_url = function ($view) use ($on_days) {
<?php foreach ($views as $view_key => $view) {
if ($view_key === 'days') { ?><span class="vr mx-1 my-1"></span><?php } ?>
<a class="nav-link text-nowrap <?= $show === (string) $view_key ? 'active' : '' ?>" href="<?= escapeHtml($pill_url($view_key)) ?>" title="<?= escapeHtml($view['title']) ?>" data-sla-view="<?= $view_key ?>">
<i class="fas fa-fw <?= $view['icon'] ?> me-1"></i><?= $view['label'] ?> <span class="badge rounded-pill ms-1"><?= $view_counts[$view_key] ?></span>
<i class="fas fa-fw <?= $view['icon'] ?> me-1"></i><?= $view['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($view_counts[$view_key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -380,7 +380,7 @@ $csrf = $_SESSION['csrf_token'];
// The search and role narrow agents, and the search, client and sign-in narrow portal users - none follow to the other side
$view_filters = ($key === 'portal') === ($show === 'portal') ? [] : ['q' => null, 'role' => null, 'client' => null, 'access' => null, 'sort' => null, 'order' => null]; ?>
<a class="nav-link text-nowrap <?= $show === $key ? 'active' : '' ?>" href="<?= escapeHtml($filter_url(['show' => $key === '' || $show === $key ? null : $key] + $view_filters)) ?>" title="<?= escapeHtml($view['title']) ?>">
<i class="fas fa-fw <?= $view['icon'] ?> me-1"></i><?= $view['label'] ?> <span class="badge rounded-pill ms-1"><?= $view_counts[$key] ?></span>
<i class="fas fa-fw <?= $view['icon'] ?> me-1"></i><?= $view['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($view_counts[$key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -653,7 +653,7 @@ if (mysqli_num_rows($sql) == 0) {
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab['count'] ? '' : 'is-empty' ?>" id="asset-tab-<?= $tab_key ?>" data-bs-toggle="pill" data-bs-target="#asset-pane-<?= $tab_key ?>" data-asset-tab="<?= $tab_key ?>" type="button" role="tab">
<i class="fas fa-fw <?= $tab['icon'] ?> me-1 d-none d-xxl-inline"></i><?= $tab['label'] ?>
<span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
<?php if (!empty($tab['badge'])) { ?>
<span class="badge rounded-pill text-bg-danger" title="Open"><?= intval($tab['badge']) ?> open</span>
<?php } ?>

View File

@@ -257,14 +257,14 @@ $search_noun = $type_filter ? $asset_type_tabs[$type_filter]['label'] : 'assets'
<div class="card-header py-2 itflow-asset-tabs">
<nav class="nav nav-pills flex-nowrap overflow-auto">
<a class="nav-link text-nowrap <?= $type_filter === '' ? 'active' : '' ?>" href="?<?= $url_query_strings_sort ?>&type=">
All <span class="badge rounded-pill ms-1"><?= $tab_counts[''] ?></span>
All <span class="badge rounded-pill ms-1"><?= number_format(intval($tab_counts[''])) ?></span>
</a>
<?php foreach ($asset_type_tabs as $tab_key => $tab) {
if (!$tab_counts[$tab_key] && $type_filter !== $tab_key) {
continue;
} ?>
<a class="nav-link text-nowrap <?= $type_filter === $tab_key ? 'active' : '' ?>" href="?<?= $url_query_strings_sort ?>&type=<?= $tab_key ?>">
<i class="fas fa-fw <?= $tab['icon'] ?> me-1"></i><?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= $tab_counts[$tab_key] ?></span>
<i class="fas fa-fw <?= $tab['icon'] ?> me-1"></i><?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($tab_counts[$tab_key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -483,7 +483,7 @@ if (!$can_support) {
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab['count'] ? '' : 'is-empty' ?>" id="contact-tab-<?= $tab_key ?>" data-bs-toggle="pill" data-bs-target="#contact-pane-<?= $tab_key ?>" data-contact-tab="<?= $tab_key ?>" type="button" role="tab">
<i class="fas fa-fw <?= $tab['icon'] ?> me-1 d-none d-xxl-inline"></i><?= $tab['label'] ?>
<span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
<?php if (!empty($tab['badge'])) { ?>
<span class="badge rounded-pill text-bg-danger" title="Open"><?= intval($tab['badge']) ?> open</span>
<?php } ?>

View File

@@ -267,19 +267,19 @@ $search_title = $invites_view ? 'Email, name or client' : 'Name, title, email, p
<div class="card-header py-2 itflow-asset-tabs">
<nav class="nav nav-pills flex-nowrap overflow-auto">
<a class="nav-link text-nowrap <?= $role_filter === '' && !$invites_view ? 'active' : '' ?>" href="?<?= $url_query_strings_sort ?>&role=">
All <span class="badge rounded-pill ms-1"><?= $tab_counts[''] ?></span>
All <span class="badge rounded-pill ms-1"><?= number_format(intval($tab_counts[''])) ?></span>
</a>
<?php foreach ($contact_role_tabs as $tab_key => $tab) {
if (!$tab_counts[$tab_key] && $role_filter !== $tab_key) {
continue;
} ?>
<a class="nav-link text-nowrap <?= $role_filter === $tab_key ? 'active' : '' ?>" href="?<?= $url_query_strings_sort ?>&role=<?= $tab_key ?>">
<i class="fas fa-fw <?= $tab['icon'] ?> me-1"></i><?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= $tab_counts[$tab_key] ?></span>
<i class="fas fa-fw <?= $tab['icon'] ?> me-1"></i><?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($tab_counts[$tab_key])) ?></span>
</a>
<?php } ?>
<?php if ($show_invites_tab) { ?>
<a class="nav-link text-nowrap <?= $invites_view ? 'active' : '' ?>" href="?<?= $url_query_strings_sort ?>&role=invites" data-contacts-invites-tab>
<i class="fas fa-fw fa-paper-plane me-1"></i>Invites <span class="badge rounded-pill ms-1"><?= $invites_count ?></span>
<i class="fas fa-fw fa-paper-plane me-1"></i>Invites <span class="badge rounded-pill ms-1"><?= number_format(intval($invites_count)) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -374,10 +374,10 @@ $preview = []; // the grid's previewer payload
All<?php if ($type_filter !== 'due') { ?> <span class="badge rounded-pill ms-1"><?= $type_counts['file'] + $type_counts['document'] ?></span><?php } ?>
</a>
<a class="nav-link text-nowrap <?= $type_filter === 'document' ? 'active' : '' ?>" href="<?= escapeHtml(filesUrl(['type' => 'document'])) ?>">
<i class="fas fa-fw fa-file-alt me-1"></i>Documents<?php if ($type_filter !== 'due') { ?> <span class="badge rounded-pill ms-1"><?= $type_counts['document'] ?></span><?php } ?>
<i class="fas fa-fw fa-file-alt me-1"></i>Documents<?php if ($type_filter !== 'due') { ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($type_counts['document'])) ?></span><?php } ?>
</a>
<a class="nav-link text-nowrap <?= $type_filter === 'file' ? 'active' : '' ?>" href="<?= escapeHtml(filesUrl(['type' => 'file'])) ?>">
<i class="fas fa-fw fa-paperclip me-1"></i>Uploads<?php if ($type_filter !== 'due') { ?> <span class="badge rounded-pill ms-1"><?= $type_counts['file'] ?></span><?php } ?>
<i class="fas fa-fw fa-paperclip me-1"></i>Uploads<?php if ($type_filter !== 'due') { ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($type_counts['file'])) ?></span><?php } ?>
</a>
<?php if ($due_documents || $type_filter === 'due') { ?>
<a class="nav-link text-nowrap <?= $type_filter === 'due' ? 'active' : '' ?>" href="<?= escapeHtml(filesUrl(['type' => 'due'])) ?>" title="Documents due a review - from every folder">
@@ -494,7 +494,7 @@ $preview = []; // the grid's previewer payload
<span class="itflow-folder-toggle"></span>
<a class="itflow-folder-link" href="<?= escapeHtml(filesUrl(['folder_id' => 0, 'q' => ''])) ?>">
<i class="fas fa-fw fa-home me-2"></i><span class="text-truncate">Top level</span>
<?php if (!empty($folder_counts[0])) { ?><span class="badge rounded-pill ms-auto"><?= $folder_counts[0] ?></span><?php } ?>
<?php if (!empty($folder_counts[0])) { ?><span class="badge rounded-pill ms-auto"><?= number_format(intval($folder_counts[0])) ?></span><?php } ?>
</a>
</div>
</li>

View File

@@ -149,7 +149,7 @@ function searchResultBadge($badge) {
<div class="card-header py-2 d-flex align-items-center">
<h3 class="card-title mb-0 me-auto">
<i class="fas fa-fw fa-<?= $group_icon ?> me-2 text-secondary"></i><?= $group_label ?>
<span class="badge rounded-pill text-bg-secondary ms-1"><?= $group_total ?></span>
<span class="badge rounded-pill text-bg-secondary ms-1"><?= number_format(intval($group_total)) ?></span>
</h3>
<?php if ($search_group['list_url']) { ?>
<a class="small" href="<?= escapeHtml($search_group['list_url']) ?>">

View File

@@ -62,7 +62,7 @@ $num_vendors = $row['num'];
Contacts
<?php
if ($num_contacts > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_contacts ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_contacts)) ?></span>
<?php } ?>
</p>
</a>
@@ -74,7 +74,7 @@ $num_vendors = $row['num'];
Locations
<?php
if ($num_locations > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_locations ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_locations)) ?></span>
<?php } ?>
</p>
</a>
@@ -90,7 +90,7 @@ $num_vendors = $row['num'];
Assets
<?php
if ($num_assets > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_assets ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_assets)) ?></span>
<?php } ?>
</p>
</a>
@@ -103,7 +103,7 @@ $num_vendors = $row['num'];
Networks
<?php
if ($num_networks > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_networks ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_networks)) ?></span>
<?php } ?>
</p>
</a>
@@ -116,7 +116,7 @@ $num_vendors = $row['num'];
Racks
<?php
if ($num_racks > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_racks ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_racks)) ?></span>
<?php } ?>
</p>
</a>
@@ -132,7 +132,7 @@ $num_vendors = $row['num'];
Credentials
<?php
if ($num_credentials > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_credentials ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_credentials)) ?></span>
<?php } ?>
</p>
</a>
@@ -146,7 +146,7 @@ $num_vendors = $row['num'];
Certificates
<?php
if ($num_certificates > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_certificates ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_certificates)) ?></span>
<?php } ?>
</p>
</a>
@@ -158,7 +158,7 @@ $num_vendors = $row['num'];
Domains
<?php
if ($num_domains > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_domains ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_domains)) ?></span>
<?php } ?>
</p>
</a>
@@ -182,7 +182,7 @@ $num_vendors = $row['num'];
Licenses
<?php
if ($num_software > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_software ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_software)) ?></span>
<?php } ?>
</p>
</a>
@@ -196,7 +196,7 @@ $num_vendors = $row['num'];
Vendors
<?php
if ($num_vendors > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_vendors ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_vendors)) ?></span>
<?php } ?>
</p>
</a>
@@ -210,7 +210,7 @@ $num_vendors = $row['num'];
Services
<?php
if ($num_services > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_services ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_services)) ?></span>
<?php } ?>
</p>
</a>

View File

@@ -105,7 +105,7 @@
Contacts
<?php
if ($num_contacts > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_contacts ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_contacts)) ?></span>
<?php } ?>
</p>
</a>
@@ -118,7 +118,7 @@
Locations
<?php
if ($num_locations > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_locations ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_locations)) ?></span>
<?php } ?>
</p>
</a>
@@ -131,7 +131,7 @@
Vendors
<?php
if ($num_vendors > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_vendors ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_vendors)) ?></span>
<?php } ?>
</p>
</a>
@@ -145,7 +145,7 @@
Calendar
<?php
if ($num_calendar_events > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_calendar_events ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_calendar_events)) ?></span>
<?php } ?>
</p>
</a>
@@ -183,7 +183,7 @@
Recurring Tickets
<?php
if ($num_recurring_tickets) { ?>
<span class="right badge rounded-pill text-light"><?= $num_recurring_tickets ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_recurring_tickets)) ?></span>
<?php } ?>
</p>
@@ -196,7 +196,7 @@
<p>
Projects
<?php if ($num_active_projects) { ?>
<span class="right badge rounded-pill text-light" title="Open Projects"><?= $num_active_projects ?></span>
<span class="right badge rounded-pill text-light" title="Open Projects"><?= number_format(intval($num_active_projects)) ?></span>
<?php } ?>
</p>
</a>
@@ -216,7 +216,7 @@
Assets
<?php
if ($num_assets > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_assets ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_assets)) ?></span>
<?php } ?>
</p>
</a>
@@ -229,7 +229,7 @@
Networks
<?php
if ($num_networks > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_networks ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_networks)) ?></span>
<?php } ?>
</p>
</a>
@@ -242,7 +242,7 @@
Racks
<?php
if ($num_racks > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_racks ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_racks)) ?></span>
<?php } ?>
</p>
</a>
@@ -258,7 +258,7 @@
Credentials
<?php
if ($num_credentials > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_credentials ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_credentials)) ?></span>
<?php } ?>
</p>
</a>
@@ -325,7 +325,7 @@
Services
<?php
if ($num_services > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_services ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_services)) ?></span>
<?php } ?>
</p>
</a>
@@ -341,7 +341,7 @@
Files
<?php
if ($num_files > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_files ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_files)) ?></span>
<?php } ?>
</p>
</a>
@@ -362,7 +362,7 @@
Quotes
<?php
if ($num_quotes > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_quotes ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_quotes)) ?></span>
<?php } ?>
</p>
</a>
@@ -402,7 +402,7 @@
Recurring Invoices
<?php
if ($num_recurring_invoices) { ?>
<span class="right badge rounded-pill text-light"><?= $num_recurring_invoices ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_recurring_invoices)) ?></span>
<?php } ?>
</p>
</a>
@@ -430,7 +430,7 @@
Income
<?php
if ($num_income > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_income ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_income)) ?></span>
<?php } ?>
</p>
</a>
@@ -445,7 +445,7 @@
Trips
<?php
if ($num_trips > 0) { ?>
<span class="right badge rounded-pill text-light"><?= $num_trips ?></span>
<span class="right badge rounded-pill text-light"><?= number_format(intval($num_trips)) ?></span>
<?php } ?>
</p>
</a>

View File

@@ -59,7 +59,7 @@
<p>
Clients
<?php if ($num_active_clients) { ?>
<span class="right badge rounded-pill text-light" title="Active Clients"><?= $num_active_clients ?></span>
<span class="right badge rounded-pill text-light" title="Active Clients"><?= number_format(intval($num_active_clients)) ?></span>
<?php } ?>
</p>
</a>
@@ -104,7 +104,7 @@
<p>
Tickets
<?php if ($num_active_tickets) { ?>
<span class="right badge rounded-pill text-light" title="Open Tickets"><?= $num_active_tickets ?></span>
<span class="right badge rounded-pill text-light" title="Open Tickets"><?= number_format(intval($num_active_tickets)) ?></span>
<?php } ?>
</p>
</a>
@@ -125,7 +125,7 @@
Texts
<?php $nav_texts_waiting = smsInboxWaiting(); ?>
<?php if ($nav_texts_waiting) { ?>
<span class="right badge rounded-pill text-bg-warning" title="Texts waiting for someone - unmatched, and codes just in" data-nav-texts-waiting><?= $nav_texts_waiting ?></span>
<span class="right badge rounded-pill text-bg-warning" title="Texts waiting for someone - unmatched, and codes just in" data-nav-texts-waiting><?= number_format(intval($nav_texts_waiting)) ?></span>
<?php } ?>
</p>
</a>
@@ -137,7 +137,7 @@
<p>
Recurring Tickets
<?php if ($num_recurring_tickets) { ?>
<span class="right badge rounded-pill text-light" title="Active Recurring Tickets"><?= $num_recurring_tickets ?></span>
<span class="right badge rounded-pill text-light" title="Active Recurring Tickets"><?= number_format(intval($num_recurring_tickets)) ?></span>
<?php } ?>
</p>
</a>
@@ -148,7 +148,7 @@
<p>
Projects
<?php if ($num_active_projects) { ?>
<span class="right badge rounded-pill text-light" title="Open Projects"><?= $num_active_projects ?></span>
<span class="right badge rounded-pill text-light" title="Open Projects"><?= number_format(intval($num_active_projects)) ?></span>
<?php } ?>
</p>
</a>
@@ -166,7 +166,7 @@
<p>
Quotes
<?php if ($num_open_quotes) { ?>
<span class="right badge rounded-pill text-light" title="Active Quotes"><?= $num_open_quotes ?></span>
<span class="right badge rounded-pill text-light" title="Active Quotes"><?= number_format(intval($num_open_quotes)) ?></span>
<?php } ?>
</p>
</a>
@@ -177,7 +177,7 @@
<p>
Invoices
<?php if ($num_open_invoices) { ?>
<span class="right badge rounded-pill text-light" title="Open Invoices"><?= $num_open_invoices ?></span>
<span class="right badge rounded-pill text-light" title="Open Invoices"><?= number_format(intval($num_open_invoices)) ?></span>
<?php } ?>
</p>
</a>
@@ -209,7 +209,7 @@
<p>
Recurring Invoices
<?php if ($num_recurring_invoices) { ?>
<span class="right badge rounded-pill text-light" title="Active Recurring Invoices"><?= $num_recurring_invoices ?></span>
<span class="right badge rounded-pill text-light" title="Active Recurring Invoices"><?= number_format(intval($num_recurring_invoices)) ?></span>
<?php } ?>
</p>
</a>

View File

@@ -414,10 +414,10 @@ echo agentBannersHtml($client_id);
<?php if ($hardware) { ?>
<div class="card mb-3">
<div class="card-header d-flex align-items-center">
<h3 class="card-title mb-0 me-auto"><i class="fas fa-fw fa-laptop text-secondary me-2"></i>Hardware <span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis fw-normal ms-1"><?= $hardware_units ?></span></h3>
<h3 class="card-title mb-0 me-auto"><i class="fas fa-fw fa-laptop text-secondary me-2"></i>Hardware <span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis fw-normal ms-1"><?= number_format(intval($hardware_units)) ?></span></h3>
<?php if ($can_add_assets) { ?>
<button type="button" class="btn btn-sm btn-outline-primary ajax-modal" data-modal-size="xl" data-modal-url="modals/invoice/invoice_assets.php?invoice_id=<?= $invoice_id ?>">
<i class="fas fa-plus me-1"></i>Add to Assets <span class="badge rounded-pill text-bg-primary ms-1" title="Not on their assets yet"><?= $hardware_to_add ?></span>
<i class="fas fa-plus me-1"></i>Add to Assets <span class="badge rounded-pill text-bg-primary ms-1" title="Not on their assets yet"><?= number_format(intval($hardware_to_add)) ?></span>
</button>
<?php } ?>
</div>
@@ -434,7 +434,7 @@ echo agentBannersHtml($client_id);
<?php if ($line['units'] && $line_done >= $line['units']) { ?>
<span class="badge rounded-pill bg-success-subtle text-success-emphasis fw-normal text-nowrap"><i class="fas fa-check me-1"></i>On assets</span>
<?php } elseif ($status !== 'Cancelled' && $line['units']) { ?>
<span class="badge rounded-pill bg-warning-subtle text-warning-emphasis fw-normal text-nowrap" title="On the client's assets"><?= $line_done ?> of <?= $line['units'] ?></span>
<span class="badge rounded-pill bg-warning-subtle text-warning-emphasis fw-normal text-nowrap" title="On the client's assets"><?= number_format(intval($line_done)) ?> of <?= $line['units'] ?></span>
<?php } ?>
</div>
<?php if ($line['assets']) { ?>
@@ -471,7 +471,7 @@ echo agentBannersHtml($client_id);
<h3 class="card-title mb-0 me-auto"><i class="fas fa-fw fa-life-ring text-secondary me-2"></i>Tickets <span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis fw-normal ms-1"><?= count($tickets) ?></span></h3>
<?php if ($unbilled_tickets) { ?>
<button type="button" class="btn btn-sm btn-outline-primary ajax-modal" data-modal-url="modals/invoice/invoice_add_ticket.php?invoice_id=<?= $invoice_id ?>">
<i class="fas fa-plus me-1"></i>Add <span class="badge rounded-pill text-bg-primary ms-1" title="Unbilled"><?= $unbilled_tickets ?></span>
<i class="fas fa-plus me-1"></i>Add <span class="badge rounded-pill text-bg-primary ms-1" title="Unbilled"><?= number_format(intval($unbilled_tickets)) ?></span>
</button>
<?php } ?>
</div>
@@ -507,7 +507,7 @@ echo agentBannersHtml($client_id);
<h3 class="card-title mb-0 me-auto"><i class="fas fa-fw fa-shopping-cart text-secondary me-2"></i>Expenses <span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis fw-normal ms-1"><?= count($billed_expenses) ?></span></h3>
<?php if ($unbilled_expenses) { ?>
<button type="button" class="btn btn-sm btn-outline-primary ajax-modal" data-modal-size="lg" data-modal-url="modals/invoice/invoice_add_expenses.php?invoice_id=<?= $invoice_id ?>">
<i class="fas fa-plus me-1"></i>Add <span class="badge rounded-pill text-bg-primary ms-1" title="To bill"><?= $unbilled_expenses ?></span>
<i class="fas fa-plus me-1"></i>Add <span class="badge rounded-pill text-bg-primary ms-1" title="To bill"><?= number_format(intval($unbilled_expenses)) ?></span>
</button>
<?php } ?>
</div>
@@ -554,7 +554,7 @@ echo agentBannersHtml($client_id);
<h3 class="card-title mb-0 me-auto"><i class="fas fa-fw fa-route text-secondary me-2"></i>Travel <span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis fw-normal ms-1"><?= count($billed_trips) ?></span></h3>
<?php if ($unbilled_trips) { ?>
<button type="button" class="btn btn-sm btn-outline-primary ajax-modal" data-modal-size="lg" data-modal-url="modals/invoice/invoice_add_trips.php?invoice_id=<?= $invoice_id ?>">
<i class="fas fa-plus me-1"></i>Add <span class="badge rounded-pill text-bg-primary ms-1" title="To bill"><?= $unbilled_trips ?></span>
<i class="fas fa-plus me-1"></i>Add <span class="badge rounded-pill text-bg-primary ms-1" title="To bill"><?= number_format(intval($unbilled_trips)) ?></span>
</button>
<?php } ?>
</div>

View File

@@ -127,7 +127,7 @@ $csrf = $_SESSION['csrf_token'];
<?php if ($search_misses) { ?>
<!-- What readers searched for and didn't find (modals/kb/kb_search_misses.php) -->
<button type="button" class="btn btn-outline-light ajax-modal" data-modal-size="lg" data-modal-url="modals/kb/kb_search_misses.php" title="What readers searched Help and the help center for, and didn't find - in the last <?= KB_SEARCH_MISS_DAYS ?> days">
<i class="fas fa-search-minus"></i><span class="d-none d-lg-inline ms-2">Not Found</span><span class="badge rounded-pill text-bg-warning ms-2"><?= $search_misses ?></span>
<i class="fas fa-search-minus"></i><span class="d-none d-lg-inline ms-2">Not Found</span><span class="badge rounded-pill text-bg-warning ms-2"><?= number_format(intval($search_misses)) ?></span>
</button>
<?php } ?>
<div class="btn-group">

View File

@@ -324,7 +324,7 @@ $page_title = $row['kb_article_title'];
<div class="card mb-3" id="kbArticleFeedback">
<div class="card-header">
<h3 class="card-title mb-0"><i class="fas fa-fw fa-thumbs-down me-2 text-body-secondary"></i>Feedback
<?php if ($feedback_counts['open']) { ?><span class="badge rounded-pill text-bg-warning ms-1" title="Not dealt with yet"><?= $feedback_counts['open'] ?></span><?php } ?>
<?php if ($feedback_counts['open']) { ?><span class="badge rounded-pill text-bg-warning ms-1" title="Not dealt with yet"><?= number_format(intval($feedback_counts['open'])) ?></span><?php } ?>
</h3>
<?php if ($can_edit && $feedback_counts['open'] > 1) { ?>
<div class="card-tools">

View File

@@ -325,7 +325,7 @@ if (!$license || ($client_url && intval($license['software_client_id']) !== intv
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab['count'] ? '' : 'is-empty' ?>" id="license-tab-<?= $tab_key ?>" data-bs-toggle="pill" data-bs-target="#license-pane-<?= $tab_key ?>" data-license-tab="<?= $tab_key ?>" type="button" role="tab">
<i class="fas fa-fw <?= $tab['icon'] ?> me-1 d-none d-xxl-inline"></i><?= $tab['label'] ?>
<span class="badge rounded-pill ms-1"><?= $tab['count'] ?><?= $tab_key === 'seats' && $seats['total'] ? ' / ' . $seats['total'] : '' ?></span>
<span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?><?= $tab_key === 'seats' && $seats['total'] ? ' / ' . $seats['total'] : '' ?></span>
</button>
</li>
<?php } ?>

View File

@@ -373,7 +373,7 @@ if (!$location || ($client_url && intval($location['location_client_id']) !== in
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab['count'] ? '' : 'is-empty' ?>" id="location-tab-<?= $tab_key ?>" data-bs-toggle="pill" data-bs-target="#location-pane-<?= $tab_key ?>" data-location-tab="<?= $tab_key ?>" type="button" role="tab">
<i class="fas fa-fw <?= $tab['icon'] ?> me-1 d-none d-xxl-inline"></i><?= $tab['label'] ?>
<span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
<?php if (!empty($tab['badge'])) { ?>
<span class="badge rounded-pill text-bg-danger" title="Open"><?= intval($tab['badge']) ?> open</span>
<?php } ?>

View File

@@ -319,7 +319,7 @@ ob_start();
<?php foreach ($quick_tabs as $tab_key => $tab) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab_key === $first_tab ? 'active' : '' ?>" data-bs-toggle="pill" data-bs-target="#asset-quick-<?= $asset_id ?>-<?= $tab_key ?>" data-asset-quick-tab="<?= $tab_key ?>" type="button" role="tab">
<?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
<?php if (!empty($tab['badge'])) { ?><span class="badge rounded-pill text-bg-danger" title="Open"><?= intval($tab['badge']) ?> open</span><?php } ?>
</button>
</li>

View File

@@ -153,7 +153,7 @@ ob_start();
$type_id = 'seatType' . substr(md5($asset_type), 0, 8); ?>
<input type="checkbox" class="btn-check" name="seat_types[]" value="<?= escapeHtml($asset_type) ?>" id="<?= $type_id ?>" autocomplete="off" data-seat-input
<?= $seat_source === 'assets' && in_array($asset_type, $seat_filter['types'] ?? [], true) ? 'checked' : '' ?>>
<label class="btn btn-sm btn-outline-secondary" for="<?= $type_id ?>"><i class="fas fa-fw fa-<?= getAssetIcon($asset_type) ?> me-1"></i><?= escapeHtml($asset_type) ?> <span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis ms-1"><?= $asset_count ?></span></label>
<label class="btn btn-sm btn-outline-secondary" for="<?= $type_id ?>"><i class="fas fa-fw fa-<?= getAssetIcon($asset_type) ?> me-1"></i><?= escapeHtml($asset_type) ?> <span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis ms-1"><?= number_format(intval($asset_count)) ?></span></label>
<?php } ?>
<?php if (!$seat_options['asset_types']) { ?>
<span class="small text-body-secondary">The client has no devices yet.</span>
@@ -178,7 +178,7 @@ ob_start();
$type_id = 'seatManagedType' . substr(md5($asset_type), 0, 8); ?>
<input type="checkbox" class="btn-check" name="seat_types[]" value="<?= escapeHtml($asset_type) ?>" id="<?= $type_id ?>" autocomplete="off" data-seat-input
<?= $seat_source === 'managed' && in_array($asset_type, $seat_filter['types'] ?? [], true) ? 'checked' : '' ?>>
<label class="btn btn-sm btn-outline-secondary" for="<?= $type_id ?>"><i class="fas fa-fw fa-<?= getAssetIcon($asset_type) ?> me-1"></i><?= escapeHtml($asset_type) ?> <span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis ms-1"><?= $asset_count ?></span></label>
<label class="btn btn-sm btn-outline-secondary" for="<?= $type_id ?>"><i class="fas fa-fw fa-<?= getAssetIcon($asset_type) ?> me-1"></i><?= escapeHtml($asset_type) ?> <span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis ms-1"><?= number_format(intval($asset_count)) ?></span></label>
<?php } ?>
<?php if (!$seat_options['managed_types']) { ?>
<span class="small text-body-secondary">None of the client's devices are in your RMM yet - link the client on its RMM provider's Clients page.</span>

View File

@@ -235,7 +235,7 @@ ob_start();
<?php foreach ($quick_tabs as $tab_key => $tab) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab_key === $first_tab ? 'active' : '' ?>" data-bs-toggle="pill" data-bs-target="#contact-quick-<?= $contact_id ?>-<?= $tab_key ?>" data-contact-quick-tab="<?= $tab_key ?>" type="button" role="tab">
<?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
<?php if (!empty($tab['badge'])) { ?><span class="badge rounded-pill text-bg-danger" title="Open"><?= intval($tab['badge']) ?> open</span><?php } ?>
</button>
</li>

View File

@@ -144,7 +144,7 @@ ob_start();
<?php foreach ($quick_tabs as $tab_key => $tab) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab_key === $first_tab ? 'active' : '' ?>" data-bs-toggle="pill" data-bs-target="#<?= $quick_id ?>-<?= $tab_key ?>" data-location-quick-tab="<?= $tab_key ?>" type="button" role="tab">
<?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
</button>
</li>
<?php } ?>

View File

@@ -76,7 +76,7 @@ ob_start();
<?php if ($software_archived) { ?><span class="badge rounded-pill text-bg-secondary fw-normal fs-6">Archived</span><?php } ?>
<span class="fs-6"><?= $renewal && $renewal['state'] !== 'active' ? softwareRenewalPill($renewal) : '' ?></span>
<?php if ($seats['state'] === 'over') { ?>
<span class="badge rounded-pill bg-danger-subtle text-danger-emphasis border border-danger-subtle fw-normal fs-6"><?= $seats['over'] ?> over seats</span>
<span class="badge rounded-pill bg-danger-subtle text-danger-emphasis border border-danger-subtle fw-normal fs-6"><?= number_format(intval($seats['over'])) ?> over seats</span>
<?php } ?>
</h5>
<div class="small text-body-secondary d-flex flex-wrap column-gap-3 mt-1">
@@ -167,7 +167,7 @@ ob_start();
<?php foreach ($quick_tabs as $tab_key => $tab) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab_key === $first_tab ? 'active' : '' ?>" data-bs-toggle="pill" data-bs-target="#<?= $quick_id ?>-<?= $tab_key ?>" data-license-quick-tab="<?= $tab_key ?>" type="button" role="tab">
<?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
</button>
</li>
<?php } ?>

View File

@@ -199,7 +199,7 @@ ob_start();
<?php foreach ($quick_tabs as $tab_key => $tab) { ?>
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab_key === $first_tab ? 'active' : '' ?>" data-bs-toggle="pill" data-bs-target="#<?= $quick_id ?>-<?= $tab_key ?>" data-vendor-quick-tab="<?= $tab_key ?>" type="button" role="tab">
<?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<?= $tab['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
</button>
</li>
<?php } ?>

View File

@@ -93,7 +93,7 @@ ob_start();
<i class="fas fa-fw <?= $labels[$key]['icon'] ?> text-secondary"></i>
<span class="flex-grow-1"><?= $labels[$key]['label'] ?></span>
<span class="small text-body-secondary text-truncate" style="max-width: 50%;" title="What the template says"><?= vendorTemplateValueHtml($key, $template, 'template') ?></span>
<span class="badge rounded-pill bg-warning-subtle text-warning-emphasis border border-warning-subtle fw-normal"><?= $count ?> differ<?= $count === 1 ? 's' : '' ?></span>
<span class="badge rounded-pill bg-warning-subtle text-warning-emphasis border border-warning-subtle fw-normal"><?= number_format(intval($count)) ?> differ<?= $count === 1 ? 's' : '' ?></span>
</label>
<?php } ?>
</div>

View File

@@ -321,7 +321,7 @@ if (!$network || ($client_url && intval($network['network_client_id']) !== intva
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab['count'] ? '' : 'is-empty' ?>" id="network-tab-<?= $tab_key ?>" data-bs-toggle="pill" data-bs-target="#network-pane-<?= $tab_key ?>" data-network-tab="<?= $tab_key ?>" type="button" role="tab">
<i class="fas fa-fw <?= $tab['icon'] ?> me-1"></i><?= $tab['label'] ?>
<span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
</button>
</li>
<?php } ?>

View File

@@ -272,7 +272,7 @@ $csrf = $_SESSION['csrf_token'];
<!-- The types, counted over what the filters above leave - then starred and archived -->
<nav class="nav nav-pills itflow-asset-tabs mt-2 flex-nowrap overflow-auto">
<a class="nav-link text-nowrap <?= $show === '' && !$type_filter ? 'active' : '' ?>" href="<?= escapeHtml($filter_url(['show' => null, 'type' => null])) ?>">
<i class="fas fa-fw fa-network-wired me-1"></i>Active <span class="badge rounded-pill ms-1"><?= $view_counts[''] ?></span>
<i class="fas fa-fw fa-network-wired me-1"></i>Active <span class="badge rounded-pill ms-1"><?= number_format(intval($view_counts[''])) ?></span>
</a>
<?php foreach (NETWORK_TYPES as $type => [$icon]) {
if (empty($type_counts[$type]) && $type_filter !== $type) {
@@ -285,7 +285,7 @@ $csrf = $_SESSION['csrf_token'];
<span class="vr mx-1 my-1"></span>
<?php foreach (['starred', 'archived'] as $key) { ?>
<a class="nav-link text-nowrap <?= $show === $key ? 'active' : '' ?>" href="<?= escapeHtml($filter_url(['show' => $show === $key ? null : $key])) ?>">
<i class="fas fa-fw <?= $shows[$key]['icon'] ?> me-1"></i><?= $shows[$key]['label'] ?> <span class="badge rounded-pill ms-1"><?= $view_counts[$key] ?></span>
<i class="fas fa-fw <?= $shows[$key]['icon'] ?> me-1"></i><?= $shows[$key]['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($view_counts[$key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -405,7 +405,7 @@ if (!$product) {
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab['count'] ? '' : 'is-empty' ?>" id="product-tab-<?= $tab_key ?>" data-bs-toggle="pill" data-bs-target="#product-pane-<?= $tab_key ?>" data-product-tab="<?= $tab_key ?>" type="button" role="tab">
<i class="fas fa-fw <?= $tab['icon'] ?> me-1 d-none d-xxl-inline"></i><?= $tab['label'] ?>
<span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
</button>
</li>
<?php } ?>

View File

@@ -353,7 +353,7 @@ echo agentBannersHtml($project_client_id);
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab['count'] ? '' : 'is-empty' ?>" id="project-tab-<?= $tab_key ?>" data-bs-toggle="pill" data-bs-target="#project-pane-<?= $tab_key ?>" data-project-tab="<?= $tab_key ?>" type="button" role="tab">
<i class="fas fa-fw <?= $tab['icon'] ?> me-1"></i><?= $tab['label'] ?>
<span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
<?php if (!empty($tab['badge'])) { ?>
<span class="badge rounded-pill text-bg-danger" title="Open"><?= intval($tab['badge']) ?> open</span>
<?php } ?>

View File

@@ -388,7 +388,7 @@ echo agentBannersHtml($client_id);
<div class="card mb-3">
<div class="card-header d-flex align-items-center">
<h3 class="card-title mb-0 me-auto"><i class="fas fa-fw fa-file-invoice-dollar text-secondary me-2"></i>Invoices made <span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis fw-normal ms-1"><?= $generated_count ?></span></h3>
<h3 class="card-title mb-0 me-auto"><i class="fas fa-fw fa-file-invoice-dollar text-secondary me-2"></i>Invoices made <span class="badge rounded-pill bg-secondary-subtle text-secondary-emphasis fw-normal ms-1"><?= number_format(intval($generated_count)) ?></span></h3>
<?php if ($generated_count > count($generated)) { ?>
<a class="small" href="invoices.php?client_id=<?= $client_id ?>&recurring_invoice_id=<?= $recurring_invoice_id ?>">All</a>
<?php } ?>

View File

@@ -239,7 +239,7 @@ while ($license_type_row = mysqli_fetch_row($sql_license_types)) {
<div class="card-header py-2 itflow-asset-tabs">
<nav class="nav nav-pills flex-nowrap overflow-auto">
<a class="nav-link text-nowrap <?= $status === '' ? 'active' : '' ?>" href="?<?= $url_query_strings_sort ?>&status=">
All <span class="badge rounded-pill ms-1"><?= $tab_counts[''] ?></span>
All <span class="badge rounded-pill ms-1"><?= number_format(intval($tab_counts[''])) ?></span>
</a>
<?php foreach ($status_filters as $status_key => $status_filter) {
if (!$tab_counts[$status_key] && $status !== $status_key) {
@@ -247,7 +247,7 @@ while ($license_type_row = mysqli_fetch_row($sql_license_types)) {
}
$tab_tone = ['expired' => 'danger', 'over' => 'danger', 'renewing' => 'warning'][$status_key] ?? ''; ?>
<a class="nav-link text-nowrap <?= $status === $status_key ? 'active' : '' ?>" href="?<?= $url_query_strings_sort ?>&status=<?= $status_key ?>" title="<?= $status_filter['title'] ?>">
<i class="fas fa-fw <?= $status_filter['icon'] ?> me-1 <?= $tab_tone && $status !== $status_key ? "text-$tab_tone" : '' ?>"></i><?= $status_filter['label'] ?> <span class="badge rounded-pill ms-1"><?= $tab_counts[$status_key] ?></span>
<i class="fas fa-fw <?= $status_filter['icon'] ?> me-1 <?= $tab_tone && $status !== $status_key ? "text-$tab_tone" : '' ?>"></i><?= $status_filter['label'] ?> <span class="badge rounded-pill ms-1"><?= number_format(intval($tab_counts[$status_key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -1656,7 +1656,7 @@ if (isset($_GET['ticket_id'])) {
<?php if ($show_trips && ($ticket_trip_count || $ticket_onsite)) { ?>
<div class="card mb-3 itflow-ticket-trips">
<div class="card-header px-3 py-2">
<h5 class="card-title mt-1"><i class="fas fa-fw fa-route me-2"></i>Trips<?php if ($ticket_trip_count) { ?> <span class="badge rounded-pill text-bg-secondary ms-1"><?= $ticket_trip_count ?></span><?php } ?></h5>
<h5 class="card-title mt-1"><i class="fas fa-fw fa-route me-2"></i>Trips<?php if ($ticket_trip_count) { ?> <span class="badge rounded-pill text-bg-secondary ms-1"><?= number_format(intval($ticket_trip_count)) ?></span><?php } ?></h5>
<div class="card-tools">
<a class="btn btn-tool ajax-modal" href="#" data-modal-size="lg" data-modal-url="modals/trip/trip_add.php?ticket_id=<?= $ticket_id ?>" title="Log a trip"><i class="fas fa-plus"></i></a>
</div>

View File

@@ -368,7 +368,7 @@ $is_card = $account && $account['type'] === 3;
<?php foreach ($shows as $key => $s) { ?>
<a class="nav-link text-nowrap <?= $show === $key ? 'active' : '' ?>" href="<?= escapeHtml($filter_url(['show' => $key])) ?>">
<?php if (!empty($s['icon'])) { ?><i class="fas fa-fw <?= $s['icon'] ?> me-1"></i><?php } ?><?= $s['label'] ?>
<span class="badge rounded-pill ms-1"><?= $counts[$key] ?></span>
<span class="badge rounded-pill ms-1"><?= number_format(intval($counts[$key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -497,7 +497,7 @@ if (!$vendor || (isset($_GET['client_id']) && $vendor_client_id !== intval($clie
<li class="nav-item" role="presentation">
<button class="nav-link text-nowrap <?= $tab['count'] ? '' : 'is-empty' ?>" id="vendor-tab-<?= $tab_key ?>" data-bs-toggle="pill" data-bs-target="#vendor-pane-<?= $tab_key ?>" data-vendor-tab="<?= $tab_key ?>" type="button" role="tab">
<i class="fas fa-fw <?= $tab['icon'] ?> me-1 d-none d-xxl-inline"></i><?= $tab['label'] ?>
<span class="badge rounded-pill ms-1"><?= $tab['count'] ?></span>
<span class="badge rounded-pill ms-1"><?= number_format(intval($tab['count'])) ?></span>
<?php if (!empty($tab['badge'])) { ?>
<span class="badge rounded-pill text-bg-danger" title="Open"><?= intval($tab['badge']) ?> open</span>
<?php } ?>

View File

@@ -71,7 +71,7 @@ function activityUrl(array $changes) {
<nav class="itflow-portal-tabs" aria-label="Kinds of activity">
<?php foreach ($tabs as $key => $info) { ?>
<a class="<?= $tab === $key ? 'active' : '' ?>" href="<?= escapeHtml(activityUrl(['tab' => $key !== 'all' ? $key : null])) ?>"><i class="fas <?= $info['icon'] ?>"></i><?= $info['label'] ?> <span class="badge rounded-pill"><?= $counts[$key] ?></span></a>
<a class="<?= $tab === $key ? 'active' : '' ?>" href="<?= escapeHtml(activityUrl(['tab' => $key !== 'all' ? $key : null])) ?>"><i class="fas <?= $info['icon'] ?>"></i><?= $info['label'] ?> <span class="badge rounded-pill"><?= number_format(intval($counts[$key])) ?></span></a>
<?php } ?>
</nav>

View File

@@ -81,7 +81,7 @@ function assetsUrl(array $changes) {
} ?>
<a class="<?= $key === $tab ? 'active' : '' ?>" href="<?= escapeHtml(assetsUrl(['tab' => $key, 'page' => null])) ?>">
<i class="fas <?= $group['icon'] ?>"></i><?= escapeHtml($group['label']) ?>
<span class="badge rounded-pill"><?= $counts[$key] ?></span>
<span class="badge rounded-pill"><?= number_format(intval($counts[$key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -72,7 +72,7 @@ function contractsUrl(array $changes) {
<?php foreach ($tabs as $key => $t) { ?>
<a class="<?= $key === $tab ? 'active' : '' ?><?= $key === 'waiting' && $counts['waiting'] ? ' itflow-portal-tab-alert' : '' ?>" href="<?= escapeHtml(contractsUrl(['tab' => $key, 'page' => null])) ?>">
<i class="fas <?= $t['icon'] ?>"></i><?= escapeHtml($t['label']) ?>
<span class="badge rounded-pill"><?= $counts[$key] ?></span>
<span class="badge rounded-pill"><?= number_format(intval($counts[$key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -80,9 +80,9 @@ function documentsUrl(array $changes) {
<?php if (count($folders) > 1) { ?>
<nav class="itflow-portal-tabs" aria-label="Folders">
<a class="<?= $folder === null ? 'active' : '' ?>" href="<?= escapeHtml(documentsUrl(['folder' => null, 'page' => null])) ?>"><i class="fas fa-list"></i>All <span class="badge rounded-pill"><?= $all_count ?></span></a>
<a class="<?= $folder === null ? 'active' : '' ?>" href="<?= escapeHtml(documentsUrl(['folder' => null, 'page' => null])) ?>"><i class="fas fa-list"></i>All <span class="badge rounded-pill"><?= number_format(intval($all_count)) ?></span></a>
<?php foreach ($folders as $id => $f) { ?>
<a class="<?= $folder === $id ? 'active' : '' ?>" href="<?= escapeHtml(documentsUrl(['folder' => $id, 'page' => null])) ?>"><i class="fas <?= $id ? 'fa-folder' : 'fa-file' ?>"></i><?= escapeHtml($f['name']) ?> <span class="badge rounded-pill"><?= $f['count'] ?></span></a>
<a class="<?= $folder === $id ? 'active' : '' ?>" href="<?= escapeHtml(documentsUrl(['folder' => $id, 'page' => null])) ?>"><i class="fas <?= $id ? 'fa-folder' : 'fa-file' ?>"></i><?= escapeHtml($f['name']) ?> <span class="badge rounded-pill"><?= number_format(intval($f['count'])) ?></span></a>
<?php } ?>
</nav>
<?php } ?>

View File

@@ -51,8 +51,8 @@ function domainsState($expiry) {
</div>
<nav class="itflow-portal-tabs" aria-label="Domains and certificates">
<a class="<?= $tab === 'domains' ? 'active' : '' ?>" href="domains.php"><i class="fas fa-globe"></i>Domains <span class="badge rounded-pill"><?= $counts['domains'] ?></span></a>
<a class="<?= $tab === 'certificates' ? 'active' : '' ?>" href="domains.php?tab=certificates"><i class="fas fa-lock"></i>Certificates <span class="badge rounded-pill"><?= $counts['certificates'] ?></span></a>
<a class="<?= $tab === 'domains' ? 'active' : '' ?>" href="domains.php"><i class="fas fa-globe"></i>Domains <span class="badge rounded-pill"><?= number_format(intval($counts['domains'])) ?></span></a>
<a class="<?= $tab === 'certificates' ? 'active' : '' ?>" href="domains.php?tab=certificates"><i class="fas fa-lock"></i>Certificates <span class="badge rounded-pill"><?= number_format(intval($counts['certificates'])) ?></span></a>
</nav>
<section class="itflow-portal-panel">

View File

@@ -101,7 +101,7 @@ function invoicesUrl(array $changes) {
<?php foreach ($tabs as $key => $t) { ?>
<a class="<?= $key === $tab ? 'active' : '' ?><?= $key === 'open' && $counts['open'] && $late > 0 ? ' itflow-portal-tab-alert' : '' ?>" href="<?= escapeHtml(invoicesUrl(['tab' => $key, 'page' => null])) ?>">
<i class="fas <?= $t['icon'] ?>"></i><?= escapeHtml($t['label']) ?>
<span class="badge rounded-pill"><?= $counts[$key] ?></span>
<span class="badge rounded-pill"><?= number_format(intval($counts[$key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -86,9 +86,9 @@ function kbPortalUrl(array $changes) {
<?php if (count($categories) > 1) { ?>
<nav class="itflow-portal-tabs" aria-label="Categories">
<a class="<?= $category === null ? 'active' : '' ?>" href="<?= escapeHtml(kbPortalUrl(['category' => null, 'page' => null])) ?>"><i class="fas fa-list"></i>All <span class="badge rounded-pill"><?= $all_count ?></span></a>
<a class="<?= $category === null ? 'active' : '' ?>" href="<?= escapeHtml(kbPortalUrl(['category' => null, 'page' => null])) ?>"><i class="fas fa-list"></i>All <span class="badge rounded-pill"><?= number_format(intval($all_count)) ?></span></a>
<?php foreach ($categories as $id => $c) { ?>
<a class="<?= $category === $id ? 'active' : '' ?>" href="<?= escapeHtml(kbPortalUrl(['category' => $id, 'page' => null])) ?>"><i class="fas fa-<?= $c['icon'] ?>"></i><?= escapeHtml($c['name']) ?> <span class="badge rounded-pill"><?= $c['count'] ?></span></a>
<a class="<?= $category === $id ? 'active' : '' ?>" href="<?= escapeHtml(kbPortalUrl(['category' => $id, 'page' => null])) ?>"><i class="fas fa-<?= $c['icon'] ?>"></i><?= escapeHtml($c['name']) ?> <span class="badge rounded-pill"><?= number_format(intval($c['count'])) ?></span></a>
<?php } ?>
</nav>
<?php } ?>

View File

@@ -68,7 +68,7 @@ function licensesUrl(array $changes) {
<?php foreach ($tabs as $key => $t) { ?>
<a class="<?= $key === $tab ? 'active' : '' ?><?= $key !== 'all' && $counts[$key] ? ' itflow-portal-tab-alert' : '' ?>" href="<?= escapeHtml(licensesUrl(['tab' => $key])) ?>">
<i class="fas <?= $t['icon'] ?>"></i><?= escapeHtml($t['label']) ?>
<span class="badge rounded-pill"><?= $counts[$key] ?></span>
<span class="badge rounded-pill"><?= number_format(intval($counts[$key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -72,7 +72,7 @@ function quotesUrl(array $changes) {
<?php foreach ($tabs as $key => $t) { ?>
<a class="<?= $key === $tab ? 'active' : '' ?><?= $key === 'waiting' && $counts['waiting'] ? ' itflow-portal-tab-alert' : '' ?>" href="<?= escapeHtml(quotesUrl(['tab' => $key, 'page' => null])) ?>">
<i class="fas <?= $t['icon'] ?>"></i><?= escapeHtml($t['label']) ?>
<span class="badge rounded-pill"><?= $counts[$key] ?></span>
<span class="badge rounded-pill"><?= number_format(intval($counts[$key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -111,7 +111,7 @@ $found = array_sum(array_column($sections, 'total'));
} ?>
<section class="itflow-portal-panel mb-4" data-search-section="<?= $key ?>">
<div class="itflow-portal-panel-head">
<h2><i class="fas <?= $section['icon'] ?>"></i><?= $section['label'] ?> <span class="badge rounded-pill text-bg-secondary ms-1"><?= $section['total'] ?></span></h2>
<h2><i class="fas <?= $section['icon'] ?>"></i><?= $section['label'] ?> <span class="badge rounded-pill text-bg-secondary ms-1"><?= number_format(intval($section['total'])) ?></span></h2>
<?php if ($section['total'] > count($section['rows'])) { ?>
<a class="small" href="<?= escapeHtml($section['all']) ?>">See all <?= $section['total'] ?></a>
<?php } ?>

View File

@@ -96,7 +96,7 @@ $empty_titles = [
<?php foreach ($tabs as $key => $t) { ?>
<a class="<?= $key === $tab ? 'active' : '' ?><?= $key === 'you' && $counts['you'] ? ' itflow-portal-tab-alert' : '' ?>" href="<?= escapeHtml(ticketsUrl(['tab' => $key, 'page' => null])) ?>">
<i class="fas <?= $t['icon'] ?>"></i><?= escapeHtml($t['label']) ?>
<span class="badge rounded-pill"><?= $counts[$key] ?></span>
<span class="badge rounded-pill"><?= number_format(intval($counts[$key])) ?></span>
</a>
<?php } ?>
</nav>

View File

@@ -62,7 +62,7 @@ if ($total_found_rows > 5) {
<div class="col col-sm">
<p class="text-center mb-0">
Showing <strong><?= $start ?></strong> to <strong><?= $end ?></strong> of <strong><?= $total_found_rows ?></strong> records
Showing <strong><?= number_format($start) ?></strong> to <strong><?= number_format($end) ?></strong> of <strong><?= number_format(intval($total_found_rows)) ?></strong> records
</p>
</div>
<div class="col-12 col-xl-auto">