Update Font, Migrated away from JQUERY dependent libs: toastr to bootstrap5 toasts, daterangepicker to flatpickr, select2 to Tom Select, InputMask to IMask

This commit is contained in:
johnnyq
2026-08-14 17:08:40 -04:00
parent 0fe6d51bdb
commit dc6b191eed
377 changed files with 1783 additions and 3769 deletions

View File

@@ -307,7 +307,7 @@ if (isset($_GET['asset_id'])) {
<?php if ($asset_favorite) { ?><i class="fas fa-fw text-warning fa-star" title="Favorite"></i><?php } ?>
</h4>
<?php if ($asset_photo) { ?>
<img class="img-fluid img-circle p-3" alt="asset_photo" src="<?= "../uploads/clients/$client_id/$asset_photo"; ?>">
<img class="img-fluid rounded-circle p-3" alt="asset_photo" src="<?= "../uploads/clients/$client_id/$asset_photo"; ?>">
<?php } ?>
<?php if ($asset_description) { ?>
<div class="text-secondary"><?= $asset_description; ?></div>
@@ -656,7 +656,7 @@ if (isset($_GET['asset_id'])) {
<h3 class="card-title"><i class="fa fa-fw fa-key me-2"></i>Credentials</h3>
</div>
<div class="card-body">
<div class="table-responsive-sm-sm">
<div class="table-responsive-sm">
<table class="table table-striped table-borderless table-hover">
<thead>
<tr>

View File

@@ -258,7 +258,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php if ($client_url) { ?>
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select class="form-control select2" name="location" onchange="this.form.submit()">
<select class="form-select select2" name="location" onchange="this.form.submit()">
<option value="">- All Locations -</option>
<?php
@@ -284,7 +284,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php } else { ?>
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select class="form-control select2" name="client" onchange="this.form.submit()">
<select class="form-select select2" name="client" onchange="this.form.submit()">
<option value="" <?php if ($client == "") { echo "selected"; } ?>>- All Clients -</option>
<?php
@@ -311,7 +311,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php } ?>
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select onchange="this.form.submit()" class="form-control select2" name="tags[]" data-placeholder="- Select Tags -" multiple>
<select onchange="this.form.submit()" class="form-select select2" name="tags[]" data-placeholder="- Select Tags -" multiple>
<?php
$sql_tags_filter = mysqli_query($mysqli, "
@@ -336,7 +336,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
</div>
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select class="form-control select2" name="expire_days" onchange="this.form.submit()">
<select class="form-select select2" name="expire_days" onchange="this.form.submit()">
<option value="" <?php if ($expire_days == "") { echo "selected"; } ?>>- Expiring In -</option>
<option value="expired" <?php if ($expire_days === "expired") { echo "selected"; } ?>>Expired</option>
<option value="7" <?php if ($expire_days === 7) { echo "selected"; } ?>>7 Days</option>
@@ -349,7 +349,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
</div>
<div class="col-md-2">
<div class="mb-3">
<select onchange="this.form.submit()" class="form-control select2" name="show_column[]" data-placeholder="- Show Additional Columns -" multiple>
<select onchange="this.form.submit()" class="form-select select2" name="show_column[]" data-placeholder="- Show Additional Columns -" multiple>
<option
<?php if (isset($_GET['show_column']) && is_array($_GET['show_column']) && in_array('Mac_Address', $_GET['show_column'])) { echo 'selected'; } ?>>Mac_Address
</option>

View File

@@ -113,7 +113,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php if (!$client_url) { ?>
<div class="col-md-2">
<div class="input-group">
<select class="form-control select2" name="client" onchange="this.form.submit()">
<select class="form-select select2" name="client" onchange="this.form.submit()">
<option value="" <?php if ($client == "") { echo "selected"; } ?>>- All Clients -</option>
<?php
@@ -141,7 +141,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select class="form-control select2" name="expire_days" onchange="this.form.submit()">
<select class="form-select select2" name="expire_days" onchange="this.form.submit()">
<option value="" <?php if ($expire_days == "") { echo "selected"; } ?>>- Expiring In -</option>
<option value="expired" <?php if ($expire_days === "expired") { echo "selected"; } ?>>Expired</option>
<option value="7" <?php if ($expire_days === 7) { echo "selected"; } ?>>7 Days</option>

View File

@@ -265,7 +265,7 @@ $sql_asset_retired = mysqli_query(
<div class="d-flex">
<?php if ($contact_photo) { ?>
<span class="fa-stack fa-2x me-2 text-center">
<img class="img-size-50 img-circle" src="<?= "../uploads/clients/$client_id/$contact_photo" ?>">
<img class="img-size-50 rounded-circle" src="<?= "../uploads/clients/$client_id/$contact_photo" ?>">
</span>
<?php } else { ?>
<span class="fa-stack fa-2x me-2">

View File

@@ -225,7 +225,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="col-md-3">
<div class="mb-3">
<label>Tag</label>
<select onchange="this.form.submit()" class="form-control select2" name="tags[]" data-placeholder="- Select Tags -" multiple>
<select onchange="this.form.submit()" class="form-select select2" name="tags[]" data-placeholder="- Select Tags -" multiple>
<?php
$sql_tags_filter = mysqli_query($mysqli, "
SELECT tags.tag_id, tags.tag_name
@@ -248,7 +248,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="col-sm-2">
<div class="mb-3">
<label>Industry</label>
<select class="form-control select2" name="industry" onchange="this.form.submit()">
<select class="form-select select2" name="industry" onchange="this.form.submit()">
<option value="">- All Industries -</option>
<?php
@@ -267,7 +267,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="col-sm-2">
<div class="mb-3">
<label>Referral</label>
<select class="form-control select2" name="referral" onchange="this.form.submit()">
<select class="form-select select2" name="referral" onchange="this.form.submit()">
<option value="">- All Referrals -</option>
<?php

View File

@@ -217,7 +217,7 @@ if (isset($_GET['contact_id'])) {
<div class="text-center">
<?php if ($contact_photo) { ?>
<img class="img-fluid img-circle p-3" alt="contact_photo" src="<?= "../uploads/clients/$client_id/$contact_photo" ?>">
<img class="img-fluid rounded-circle p-3" alt="contact_photo" src="<?= "../uploads/clients/$client_id/$contact_photo" ?>">
<?php } else { ?>
<span class="fa-stack fa-4x">
<i class="fa fa-circle fa-stack-2x text-secondary"></i>
@@ -245,7 +245,7 @@ if (isset($_GET['contact_id'])) {
<div class="ms-4">x<?= $contact_extension ?></div>
<?php }
if ($contact_mobile) { ?>
<div class="mt-l"><i class="fa fa-fw fa-mobile-alt text-secondary me-2"></i><a href="tel:<?= $contact_mobile ?>"><?= $contact_mobile ?></a></div>
<div class="mt-1"><i class="fa fa-fw fa-mobile-alt text-secondary me-2"></i><a href="tel:<?= $contact_mobile ?>"><?= $contact_mobile ?></a></div>
<?php }
if ($contact_pin) { ?>
<div class="mt-2"><i class="fa fa-fw fa-key text-secondary me-2"></i><?= $contact_pin ?></div>

View File

@@ -129,7 +129,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="col-md-3">
<div class="input-group mb-3 mb-md-0">
<select onchange="this.form.submit()" class="form-control select2" name="tags[]" data-placeholder="- Select Tags -" multiple>
<select onchange="this.form.submit()" class="form-select select2" name="tags[]" data-placeholder="- Select Tags -" multiple>
<?php
$sql_tags_filter = mysqli_query($mysqli, "
@@ -156,7 +156,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php if ($client_url) { ?>
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select class="form-control select2" name="location" onchange="this.form.submit()">
<select class="form-select select2" name="location" onchange="this.form.submit()">
<option value="">- All Locations -</option>
<?php
@@ -182,7 +182,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php } else { ?>
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select class="form-control select2" name="client" onchange="this.form.submit()">
<select class="form-select select2" name="client" onchange="this.form.submit()">
<option value="" <?php if ($client == "") { echo "selected"; } ?>>- All Clients -</option>
<?php
@@ -473,7 +473,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="d-flex">
<?php if ($contact_photo) { ?>
<span class="fa-stack fa-2x me-3 text-center">
<img class="img-size-50 img-circle" src="<?= "../uploads/clients/$client_id/$contact_photo" ?>">
<img class="img-size-50 rounded-circle" src="<?= "../uploads/clients/$client_id/$contact_photo" ?>">
</span>
<?php } else { ?>
<span class="fa-stack fa-2x me-3">

View File

@@ -146,7 +146,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="col-md-3">
<div class="input-group mb-3 mb-md-0">
<select onchange="this.form.submit()" class="form-control select2" name="tags[]" data-placeholder="- Select Tags -" multiple>
<select onchange="this.form.submit()" class="form-select select2" name="tags[]" data-placeholder="- Select Tags -" multiple>
<?php
$sql_tags_filter = mysqli_query($mysqli, "
@@ -173,7 +173,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php if ($client_url) { ?>
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select class="form-control select2" name="location" onchange="this.form.submit()">
<select class="form-select select2" name="location" onchange="this.form.submit()">
<option value="">- All Asset Locations -</option>
<?php
@@ -193,7 +193,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php } else { ?>
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select class="form-control select2" name="client" onchange="this.form.submit()">
<select class="form-select select2" name="client" onchange="this.form.submit()">
<option value="" <?php if ($client == "") { echo "selected"; } ?>>- All Clients -</option>
<?php

View File

@@ -31,7 +31,7 @@ echo getUserAgent();
<div class="mb-3">
<label>Minimal</label>
<select class="form-control select2 select2-hidden-accessible" style="width: 100%;" data-select2-id="1" tabindex="-1" aria-hidden="true">
<select class="form-select select2 select2-hidden-accessible" style="width: 100%;" data-select2-id="1" tabindex="-1" aria-hidden="true">
<option selected="selected" data-select2-id="3">Alabama</option>
<option data-select2-id="35">Alaska</option>
<option data-select2-id="36">California</option>
@@ -66,6 +66,6 @@ $date_time = date('Y-m-d H:i:s');
echo "Current Date and Time: <strong>$date_time</strong>";
?>
<script>toastr.success('Have Fun Wozz!!')</script>
<script>itflowToast('Have Fun Wozz!!');</script>
<?php require_once "../../includes/footer.php";

View File

@@ -46,12 +46,12 @@ $sql_years_select = mysqli_query($mysqli, "
</style>
<div class="card card-body">
<form class="form-inline">
<form class="d-flex align-items-center gap-2">
<input type="hidden" name="enable_financial" value="0">
<input type="hidden" name="enable_technical" value="0">
<label for="year" class="me-sm-2">Select Year:</label>
<select id="year" onchange="this.form.submit()" class="form-control me-sm-3 col-sm-2 mb-3 mb-sm-0" name="year">
<select id="year" onchange="this.form.submit()" class="form-select me-sm-3 col-sm-2 mb-3 mb-sm-0" name="year">
<?php while ($row = mysqli_fetch_assoc($sql_years_select)) {
$year_select = $row['all_years'];
if (empty($year_select)) {

View File

@@ -123,7 +123,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php if (!$client_url) { ?>
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select class="form-control select2" name="client" onchange="this.form.submit()">
<select class="form-select select2" name="client" onchange="this.form.submit()">
<option value="" <?php if ($client == "") { echo "selected"; } ?>>- All Clients -</option>
<?php
@@ -151,7 +151,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select class="form-control select2" name="expire_days" onchange="this.form.submit()">
<select class="form-select select2" name="expire_days" onchange="this.form.submit()">
<option value="" <?php if ($expire_days == "") { echo "selected"; } ?>>- Expiring In -</option>
<option value="expired" <?php if ($expire_days === "expired") { echo "selected"; } ?>>Expired</option>
<option value="7" <?php if ($expire_days === 7) { echo "selected"; } ?>>7 Days</option>

View File

@@ -141,7 +141,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="col-sm-2">
<div class="mb-3">
<label>Vendor</label>
<select class="form-control select2" name="vendor" onchange="this.form.submit()">
<select class="form-select select2" name="vendor" onchange="this.form.submit()">
<option value="">- All Vendors -</option>
<?php
@@ -162,7 +162,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="col-sm-2">
<div class="mb-3">
<label>Category</label>
<select class="form-control select2" name="category" onchange="this.form.submit()">
<select class="form-select select2" name="category" onchange="this.form.submit()">
<option value="">- All Categories -</option>
<?php
@@ -182,7 +182,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="col-sm-2">
<div class="mb-3">
<label>Account</label>
<select class="form-control select2" name="account" onchange="this.form.submit()">
<select class="form-select select2" name="account" onchange="this.form.submit()">
<option value="">- All Accounts -</option>
<?php

View File

@@ -38,7 +38,7 @@ while ($row = mysqli_fetch_assoc($sql_ticket_template_tasks)) {
<label>Template</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-cube"></i></span>
<select class="form-control select2" id="ticket_template_select" name="ticket_template_id">
<select class="form-select select2" id="ticket_template_select" name="ticket_template_id">
<option value="0">- No Template -</option>
<?php
$sql_ticket_templates = mysqli_query(

View File

@@ -202,7 +202,7 @@ $summary_total_income = floatval($row['total_income']);
</div>
<div class="col-md-2">
<div class="input-group mb-3 mb-sm-0">
<select class="form-control select2" name="type" onchange="this.form.submit()">
<select class="form-select select2" name="type" onchange="this.form.submit()">
<option value="">- All Types -</option>
<?php foreach ($income_types_array as $income_type_option) { ?>
<option <?php if ($type_filter == $income_type_option) { echo "selected"; } ?>><?= $income_type_option ?></option>
@@ -212,7 +212,7 @@ $summary_total_income = floatval($row['total_income']);
</div>
<div class="col-md-2">
<div class="input-group mb-3 mb-sm-0">
<select class="form-control select2" name="category" onchange="this.form.submit()">
<select class="form-select select2" name="category" onchange="this.form.submit()">
<option value="">- All Categories -</option>
<?php
@@ -235,7 +235,7 @@ $summary_total_income = floatval($row['total_income']);
</div>
<div class="col-md-2">
<div class="input-group mb-3 mb-sm-0">
<select class="form-control select2" name="account" onchange="this.form.submit()">
<select class="form-select select2" name="account" onchange="this.form.submit()">
<option value="">- All Accounts -</option>
<?php
@@ -258,7 +258,7 @@ $summary_total_income = floatval($row['total_income']);
<div class="col-md-2">
<div class="input-group">
<select class="form-control select2" name="method" onchange="this.form.submit()">
<select class="form-select select2" name="method" onchange="this.form.submit()">
<option value="">- All Payment Methods -</option>
<?php

View File

@@ -475,7 +475,7 @@ if (isset($_GET['invoice_id'])) {
<input type="text" class="form-control" inputmode="decimal" pattern="-?[0-9]*\.?[0-9]{0,2}" style="text-align: right;" id="price" name="price" placeholder="Price (<?= $invoice_currency_code ?>)">
</td>
<td>
<select class="form-control select2" name="tax_id" id="tax" required>
<select class="form-select select2" name="tax_id" id="tax" required>
<option value="0">No Tax</option>
<?php
$taxes_sql = mysqli_query($mysqli, "SELECT tax_id, tax_name, tax_percent FROM taxes WHERE tax_archived_at IS NULL ORDER BY tax_name ASC");

View File

@@ -201,7 +201,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
</div>
<div class="col-sm-3">
<div class="mb-3 mb-md-0">
<select class="form-control select2" name="category" onchange="this.form.submit()">
<select class="form-select select2" name="category" onchange="this.form.submit()">
<option value="">- All Categories -</option>
<?php

View File

@@ -13,12 +13,10 @@ function populateShareModal(client_id, item_type, item_ref_id) {
document.getElementById("div_share_link_form").hidden = false;
document.getElementById("div_share_link_generate").hidden = false;
$(document).ready(function() {
$('#share_email').select2({
tags: true,
placeholder: 'Select or type a value',
allowClear: true
});
initTomSelect(document.getElementById('share_email'), {
create: true,
placeholder: 'Select or type a value',
allowEmptyOption: true
});
}

View File

@@ -32,9 +32,7 @@ $(document).ready(function() {
}
// Refresh Select2
if ($.fn.select2) {
$contactSelect.trigger('change.select2');
}
refreshTomSelect($contactSelect[0]);
},
error: function(xhr, status, error) {
console.error('AJAX Error:', error);

View File

@@ -27,7 +27,7 @@
}
// Listener for client selection. Populate select lists when a client is selected
$(clientSelectDropdown).on('select2:select', function (e) {
$(clientSelectDropdown).on('change', function (e) {
let client_id = $(this).find(':selected').val();
// Update the dependent dropdown lists
@@ -77,7 +77,7 @@
dropdown.innerHTML = '';
// A multi-select keeps showing its old selections until select2 is told the value changed
$(dropdown).val(null).trigger('change.select2');
clearTomSelect(dropdown instanceof Element ? dropdown : $(dropdown)[0]);
if (placeholderLabel !== null) {
dropdown[dropdown.length] = new Option(placeholderLabel, placeholderValue);
@@ -89,7 +89,7 @@
// Redraws a select2 component after its options have been replaced
function refreshDropdown(dropdown) {
if (dropdown) {
$(dropdown).trigger('change.select2');
refreshTomSelect(dropdown instanceof Element ? dropdown : $(dropdown)[0]);
}
}

View File

@@ -116,7 +116,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<div class="col-md-3">
<div class="input-group mb-3 mb-md-0">
<select onchange="this.form.submit()" class="form-control select2" name="tags[]" data-placeholder="- Select Tags -" multiple>
<select onchange="this.form.submit()" class="form-select select2" name="tags[]" data-placeholder="- Select Tags -" multiple>
<?php
$sql_tags_filter = mysqli_query($mysqli, "
SELECT tags.tag_id, tags.tag_name, tag_type
@@ -143,7 +143,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<?php } else { ?>
<div class="col-md-2">
<div class="input-group mb-3 mb-md-0">
<select class="form-control select2" name="client" onchange="this.form.submit()">
<select class="form-select select2" name="client" onchange="this.form.submit()">
<option value="" <?php if ($client == "") { echo "selected"; } ?>>- All Clients -</option>
<?php

View File

@@ -34,7 +34,7 @@ ob_start();
<label>Currency <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-money-bill"></i></span>
<select class="form-control select2" name="currency_code" required>
<select class="form-select select2" name="currency_code" required>
<option value="">- Currency -</option>
<?php foreach ($currencies_array as $currency_code => $currency_name) { ?>
<option <?php if ($session_company_currency == $currency_code) { echo "selected"; } ?> value="<?= $currency_code ?>"><?= "$currency_code - $currency_name" ?></option>

View File

@@ -339,7 +339,7 @@ ob_start();
<?php if ($asset_favorite) { ?><i class="fas fa-fw text-warning fa-star" title="Favorite"></i><?php } ?>
</h3>
<?php if ($asset_photo) { ?>
<img class="img-fluid img-circle p-3" alt="asset_photo" src="<?= "../uploads/clients/$client_id/$asset_photo" ?>">
<img class="img-fluid rounded-circle p-3" alt="asset_photo" src="<?= "../uploads/clients/$client_id/$asset_photo" ?>">
<?php } ?>
<?php if ($asset_description) { ?>
<div class="text-secondary"><?= $asset_description ?></div>
@@ -537,7 +537,7 @@ ob_start();
<?php if (lookupUserPermission('module_credential') && ($credential_count)) { ?>
<div class="tab-pane fade" id="pills-asset-credentials">
<div class="table-responsive-sm-sm">
<div class="table-responsive-sm">
<table class="table table-sm table-striped table-borderless table-hover">
<thead>
<tr>

View File

@@ -77,7 +77,7 @@ ob_start();
<label>Client <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client_id" required>
<select class="form-select select2" name="client_id" required>
<option value="">- Select Client -</option>
<?php
@@ -97,7 +97,7 @@ ob_start();
<label>Type <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
<select class="form-control select2" name="type" required>
<select class="form-select select2" name="type" required>
<option value="">- Select Type -</option>
<?php foreach($asset_types_array as $asset_type => $asset_icon) { ?>
<option><?= $asset_type ?></option>
@@ -113,7 +113,7 @@ ob_start();
<input type="text" class="form-control" name="name" placeholder="e.g. SRV-DC01" maxlength="200" required autofocus>
<div class="input-group-text">
<label class="star-toggle mb-0" title="Favorite">
<input type="checkbox" name="favorite" value="1"><i class="far fa-star"></i>
<input class="form-check-input" type="checkbox" name="favorite" value="1"><i class="far fa-star"></i>
</label>
</div>
</div>
@@ -173,7 +173,7 @@ ob_start();
<label>Location</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
<select class="form-control select2" name="location">
<select class="form-select select2" name="location">
<option value="">- Select Location -</option>
<?php
@@ -202,7 +202,7 @@ ob_start();
<label>Assign To</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user-check"></i></span>
<select class="form-control select2" name="contact">
<select class="form-select select2" name="contact">
<option value="">- Select Contact -</option>
<?php
@@ -228,7 +228,7 @@ ob_start();
<label>Status</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-circle"></i></span>
<select class="form-control select2" name="status">
<select class="form-select select2" name="status">
<option value="">- Select Status -</option>
<?php
$sql_interface_types_select = mysqli_query($mysqli, "
@@ -254,7 +254,7 @@ ob_start();
<label>Network</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-network-wired"></i></span>
<select class="form-control select2" name="network">
<select class="form-select select2" name="network">
<option value="">- Select Network -</option>
<?php
@@ -278,7 +278,7 @@ ob_start();
<span class="input-group-text"><i class="fa fa-fw fa-ethernet"></i></span>
<input type="text" class="form-control font-monospace" name="ip" placeholder="e.g. 192.168.1.10" maxlength="200" data-inputmask="'alias': 'ip'" data-mask>
<div class="input-group-text">
<input type="checkbox" name="dhcp" value="1">
<input class="form-check-input" type="checkbox" name="dhcp" value="1">
</div>
</div>
</div>
@@ -341,7 +341,7 @@ ob_start();
<label>Vendor</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
<select class="form-control select2" name="vendor">
<select class="form-select select2" name="vendor">
<option value="">- Select Vendor -</option>
<?php
@@ -430,7 +430,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="Add some tags" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="Add some tags" multiple>
<?php
while ($row = mysqli_fetch_assoc($sql_tags_select)) {

View File

@@ -40,7 +40,7 @@ ob_start();
<label>Priority <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-thermometer-half"></i></span>
<select class="form-control select2" name="bulk_priority" required>
<select class="form-select select2" name="bulk_priority" required>
<option>Low</option>
<option>Medium</option>
<option>High</option>
@@ -55,7 +55,7 @@ ob_start();
<label>Category</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
<select class="form-control select2" name="bulk_category">
<select class="form-select select2" name="bulk_category">
<option value="0">- Not Categorized -</option>
<?php
$sql_categories = mysqli_query($mysqli, "SELECT category_id, category_name FROM categories WHERE category_type = 'Ticket' AND category_archived_at IS NULL ORDER BY category_name ASC");
@@ -78,7 +78,7 @@ ob_start();
<label>Assign to</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user-check"></i></span>
<select class="form-control select2" name="bulk_assigned_to">
<select class="form-select select2" name="bulk_assigned_to">
<option value="0">Not Assigned</option>
<?php
@@ -100,7 +100,7 @@ ob_start();
<label>Project</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-project-diagram"></i></span>
<select class="form-control select2" name="bulk_project">
<select class="form-select select2" name="bulk_project">
<option value="0">- None -</option>
<?php

View File

@@ -29,7 +29,7 @@ ob_start();
<label>Contact</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="bulk_contact_id">
<select class="form-select select2" name="bulk_contact_id">
<option value="">- Contact -</option>
<?php

View File

@@ -30,7 +30,7 @@ ob_start();
<label>Location</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-map-marker-alt"></i></span>
<select class="form-control select2" name="bulk_location_id">
<select class="form-select select2" name="bulk_location_id">
<option value="">- Location -</option>
<?php

View File

@@ -30,7 +30,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="Add some tags" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="Add some tags" multiple>
<?php
$sql_tags_select = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 5 ORDER BY tag_name ASC");

View File

@@ -24,7 +24,7 @@ ob_start();
<label>Status</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-circle"></i></span>
<select class="form-control select2" name="bulk_status">
<select class="form-select select2" name="bulk_status">
<option value="">- Select Status -</option>
<?php
$sql_interface_types_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<label>Client <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-users"></i></span>
<select class="form-control select2" name="bulk_client_id">
<select class="form-select select2" name="bulk_client_id">
<option value="">- Select Client -</option>
<?php
$clients_sql = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients WHERE client_archived_at IS NULL $client_select_query");

View File

@@ -95,7 +95,7 @@ ob_start();
<label>Type <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
<select class="form-control select2" name="type" required>
<select class="form-select select2" name="type" required>
<?php foreach($asset_types_array as $asset_type_select => $asset_icon_select) { ?>
<option <?php if ($asset_type_select == $asset_type) { echo "selected"; } ?>><?= $asset_type_select ?></option>
<?php } ?>
@@ -164,7 +164,7 @@ ob_start();
<label>Location</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
<select class="form-control select2" name="location">
<select class="form-select select2" name="location">
<option value="">- Select Location -</option>
<?php
@@ -192,7 +192,7 @@ ob_start();
<label>Assign To</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user-check"></i></span>
<select class="form-control select2" name="contact">
<select class="form-select select2" name="contact">
<option value="">- Select Contact -</option>
<?php
@@ -212,7 +212,7 @@ ob_start();
<label>Status</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-circle"></i></span>
<select class="form-control select2" name="status">
<select class="form-select select2" name="status">
<option value="">- Select Status -</option>
<?php
$sql_interface_types_select = mysqli_query($mysqli, "
@@ -240,7 +240,7 @@ ob_start();
<label>Network</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-network-wired"></i></span>
<select class="form-control select2" name="network">
<select class="form-select select2" name="network">
<option value="">- Select Network -</option>
<?php
@@ -264,7 +264,7 @@ ob_start();
<span class="input-group-text"><i class="fa fa-fw fa-ethernet"></i></span>
<input type="text" class="form-control font-monospace" name="ip" placeholder="192.168.10.250" maxlength="200" data-inputmask="'alias': 'ip'" data-mask>
<div class="input-group-text">
<input type="checkbox" name="dhcp" value="1" <?php if($asset_ip == 'DHCP'){ echo "checked"; } ?>>
<input class="form-check-input" type="checkbox" name="dhcp" value="1" <?php if($asset_ip == 'DHCP'){ echo "checked"; } ?>>
</div>
</div>
</div>
@@ -317,7 +317,7 @@ ob_start();
<label>Vendor</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
<select class="form-control select2" name="vendor">
<select class="form-select select2" name="vendor">
<option value="">- Select Vendor -</option>
<?php

View File

@@ -113,7 +113,7 @@ ob_start();
<label>Type <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
<select class="form-control select2" name="type" required>
<select class="form-select select2" name="type" required>
<?php foreach($asset_types_array as $asset_type_select => $asset_icon_select) { ?>
<option <?php if ($asset_type_select == $asset_type) { echo "selected"; } ?>><?= $asset_type_select ?></option>
<?php } ?>
@@ -128,7 +128,7 @@ ob_start();
<input type="text" class="form-control" name="name" placeholder="Asset name or asset tag" maxlength="200" value="<?= $asset_name ?>" required>
<div class="input-group-text">
<label class="star-toggle mb-0" title="Favorite">
<input type="checkbox"
<input class="form-check-input" type="checkbox"
name="favorite"
value="1"
<?php if($asset_favorite) { echo 'checked'; } ?>>
@@ -191,7 +191,7 @@ ob_start();
<label>Location</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
<select class="form-control select2" name="location">
<select class="form-select select2" name="location">
<option value="">- Select Location -</option>
<?php
@@ -225,7 +225,7 @@ ob_start();
<label>Assign To</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user-check"></i></span>
<select class="form-control select2" name="contact">
<select class="form-select select2" name="contact">
<option value="">- Select Contact -</option>
<?php
@@ -253,7 +253,7 @@ ob_start();
<label>Status</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-circle"></i></span>
<select class="form-control select2" name="status">
<select class="form-select select2" name="status">
<option value="">- Select Status -</option>
<?php
$sql_interface_types_select = mysqli_query($mysqli, "
@@ -281,7 +281,7 @@ ob_start();
<label>Network</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-network-wired"></i></span>
<select class="form-control select2" name="network">
<select class="form-select select2" name="network">
<option value="">- Select Network -</option>
<?php
@@ -311,7 +311,7 @@ ob_start();
<span class="input-group-text"><i class="fa fa-fw fa-ethernet"></i></span>
<input type="text" class="form-control font-monospace" name="ip" value="<?= $asset_ip ?>" placeholder="192.168.10.250" data-inputmask="'alias': 'ip'" maxlength="200" data-mask>
<div class="input-group-text">
<input type="checkbox" name="dhcp" value="1" <?php if($asset_ip == 'DHCP'){ echo "checked"; } ?>>
<input class="form-check-input" type="checkbox" name="dhcp" value="1" <?php if($asset_ip == 'DHCP'){ echo "checked"; } ?>>
</div>
</div>
</div>
@@ -371,7 +371,7 @@ ob_start();
<label>Vendor</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
<select class="form-control select2" name="vendor">
<select class="form-select select2" name="vendor">
<option value="">- Select Vendor -</option>
<?php
@@ -452,7 +452,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="Add some tags" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="Add some tags" multiple>
<?php
$sql_tags_select = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 5 ORDER BY tag_name ASC");

View File

@@ -63,7 +63,7 @@ ob_start();
<label>Type</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-desktop"></i></span>
<select class="form-control select2" name="type">
<select class="form-select select2" name="type">
<option value="">- All Types -</option>
<option <?php if ($type_filter === 'workstation') { echo "selected"; } ?> value="workstation">Workstations</option>
<option <?php if ($type_filter === 'server') { echo "selected"; } ?> value="server">Servers</option>
@@ -79,7 +79,7 @@ ob_start();
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client">
<select class="form-select select2" name="client">
<option value="">- All Clients -</option>
<?php
$sql_clients_filter = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients WHERE EXISTS (SELECT 1 FROM assets WHERE asset_client_id = client_id) ORDER BY client_name ASC");
@@ -101,7 +101,7 @@ ob_start();
<label>Location</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-map-marker-alt"></i></span>
<select class="form-control select2" name="location">
<select class="form-select select2" name="location">
<option value="">- All Locations -</option>
<?php
$sql_locations_filter = mysqli_query($mysqli, "SELECT location_id, location_name FROM locations WHERE location_client_id = $client_id AND location_archived_at IS NULL ORDER BY location_name ASC");
@@ -122,7 +122,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="- All Tags -" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="- All Tags -" multiple>
<?php
$sql_tags_filter = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 5 ORDER BY tag_name ASC");
while ($row = mysqli_fetch_assoc($sql_tags_filter)) {
@@ -141,7 +141,7 @@ ob_start();
<label>Warranty Expiring In</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-hourglass-half"></i></span>
<select class="form-control select2" name="expire_days">
<select class="form-select select2" name="expire_days">
<option value="">- Any -</option>
<option <?php if ($expire_filter === 'expired') { echo "selected"; } ?> value="expired">Expired</option>
<?php foreach ([7, 30, 45, 60, 90] as $expire_option) { ?>
@@ -155,7 +155,7 @@ ob_start();
<label>Archived</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-archive"></i></span>
<select class="form-control select2" name="archived">
<select class="form-select select2" name="archived">
<option <?php if (!$archived_filter) { echo "selected"; } ?> value="0">Active only</option>
<option <?php if ($archived_filter) { echo "selected"; } ?> value="1">Archived only</option>
</select>

View File

@@ -44,7 +44,7 @@ ob_start();
<span class="input-group-text"><i class="fa fa-fw fa-ethernet"></i></span>
<input type="text" class="form-control" name="name" placeholder="Interface name or port number" maxlength="200" required>
<div class="input-group-text">
<input type="checkbox" name="primary_interface" value="1" title="Mark Interface as primary">
<input class="form-check-input" type="checkbox" name="primary_interface" value="1" title="Mark Interface as primary">
</div>
</div>
</div>
@@ -54,7 +54,7 @@ ob_start();
<label for="network">Interface Type</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-plug"></i></span>
<select class="form-control select2" name="type">
<select class="form-select select2" name="type">
<option value="">- Select Type -</option>
<?php
$sql_interface_types_select = mysqli_query($mysqli, "
@@ -96,7 +96,7 @@ ob_start();
<label>Network</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-network-wired"></i></span>
<select class="form-control select2" name="network">
<select class="form-select select2" name="network">
<option value="">- Select Network -</option>
<?php
$sql_network_select = mysqli_query($mysqli, "SELECT network, network_id, network_name FROM networks WHERE network_archived_at IS NULL AND network_client_id = $client_id ORDER BY network_name ASC");
@@ -120,7 +120,7 @@ ob_start();
<span class="input-group-text"><i class="fa fa-fw fa-ethernet"></i></span>
<input type="text" class="form-control font-monospace" name="ip" placeholder="e.g. 192.168.1.10" data-inputmask="'alias': 'ip'" maxlength="200" data-mask>
<div class="input-group-text">
<input type="checkbox" name="dhcp" value="1" title="Check to mark address as DHCP controlled">
<input class="form-check-input" type="checkbox" name="dhcp" value="1" title="Check to mark address as DHCP controlled">
</div>
</div>
</div>
@@ -164,7 +164,7 @@ ob_start();
<label>Connected to</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-plug"></i></span>
<select class="form-control select2" name="connected_to">
<select class="form-select select2" name="connected_to">
<option value="">- Select Asset and Interface -</option>
<?php
$sql_interfaces_select = mysqli_query($mysqli, "

View File

@@ -26,7 +26,7 @@ ob_start();
<label>Network</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-network-wired"></i></span>
<select class="form-control select2" name="bulk_network">
<select class="form-select select2" name="bulk_network">
<option value="">- Select a Network -</option>
<?php
$sql_network_select = mysqli_query($mysqli, "

View File

@@ -27,7 +27,7 @@ ob_start();
<label for="network">Interface Type</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-plug"></i></span>
<select class="form-control select2" name="bulk_type">
<select class="form-select select2" name="bulk_type">
<option value="">- Select Type -</option>
<?php
$sql_interface_types_select = mysqli_query($mysqli, "

View File

@@ -95,7 +95,7 @@ ob_start();
required
>
<div class="input-group-text">
<input type="checkbox" name="primary_interface" value="1" <?php if($interface_primary) { echo "checked"; } ?> title="Mark Interface as primary">
<input class="form-check-input" type="checkbox" name="primary_interface" value="1" <?php if($interface_primary) { echo "checked"; } ?> title="Mark Interface as primary">
</div>
</div>
</div>
@@ -121,7 +121,7 @@ ob_start();
<label for="network">Interface Type</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-plug"></i></span>
<select class="form-control select2" name="type">
<select class="form-select select2" name="type">
<option value="">- Select Type -</option>
<?php
$sql_interface_types_select = mysqli_query($mysqli, "
@@ -151,7 +151,7 @@ ob_start();
<label>Network</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-network-wired"></i></span>
<select class="form-control select2" name="network">
<select class="form-select select2" name="network">
<option value="">- Select Network -</option>
<?php
$sql_network_select = mysqli_query($mysqli, "
@@ -190,7 +190,7 @@ ob_start();
data-mask
>
<div class="input-group-text">
<input
<input class="form-check-input"
type="checkbox"
name="dhcp"
value="1"
@@ -258,7 +258,7 @@ ob_start();
<label>Connected to</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-plug"></i></span>
<select class="form-control select2" name="connected_to">
<select class="form-select select2" name="connected_to">
<option value="">- Select Asset and Interface -</option>
<?php
$sql_interfaces_select = mysqli_query($mysqli, "

View File

@@ -35,7 +35,7 @@
<label for="network">Interface Type</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-plug"></i></span>
<select class="form-control select2" name="type">
<select class="form-select select2" name="type">
<option value="">- Select Type -</option>
<?php
$sql_interface_types_select = mysqli_query($mysqli, "
@@ -67,7 +67,7 @@
<label for="network">Network Assignment</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-network-wired"></i></span>
<select id="network" class="form-control select2" name="network">
<select id="network" class="form-select select2" name="network">
<option value="">- Select Network -</option>
<?php
$sql_network_select = mysqli_query($mysqli, "SELECT network_id, network_name, network FROM networks WHERE network_archived_at IS NULL AND network_client_id = $client_id ORDER BY network_name ASC");

View File

@@ -33,7 +33,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-key"></i></span>
<select class="form-control select2" name="credential_id">
<select class="form-select select2" name="credential_id">
<option value="">- Select a Credential -</option>
<?php
$sql_credentials_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-folder"></i></span>
<select class="form-control select2" name="document_id">
<select class="form-select select2" name="document_id">
<option value="">- Select a Document -</option>
<?php
$sql_documents_select = mysqli_query($mysqli, "

View File

@@ -33,7 +33,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paperclip"></i></span>
<select class="form-control select2" name="file_id">
<select class="form-select select2" name="file_id">
<option value="">- Select a File -</option>
<?php
$sql_files_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-stream"></i></span>
<select class="form-control select2" name="service_id">
<select class="form-select select2" name="service_id">
<option value="">- Select a Service -</option>
<?php
$sql_services_select = mysqli_query($mysqli, "

View File

@@ -32,7 +32,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-cube"></i></span>
<select class="form-control select2" name="software_id">
<select class="form-select select2" name="software_id">
<option value="">- Select a Device Software License -</option>
<?php
$sql_software_select = mysqli_query($mysqli, "

View File

@@ -32,7 +32,7 @@ ob_start();
<label>Type</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-comment"></i></span>
<select class="form-control select2" name="type">
<select class="form-select select2" name="type">
<?php
$sql_asset_note_types_select = mysqli_query($mysqli, "
SELECT category_name FROM categories

View File

@@ -31,7 +31,7 @@
<label>Calendar <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
<select class="form-control select2" name="calendar" required>
<select class="form-select select2" name="calendar" required>
<option value="">- Calendar -</option>
<?php
@@ -105,7 +105,7 @@
<label>Repeat</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-recycle"></i></span>
<select class="form-control select2" name="repeat">
<select class="form-select select2" name="repeat">
<option value="">Never</option>
<option>Day</option>
<option>Week</option>
@@ -143,7 +143,7 @@
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client_id">
<select class="form-select select2" name="client_id">
<option value="">- Client -</option>
<?php

View File

@@ -72,7 +72,7 @@ ob_start();
<label>Calendar <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-calendar"></i></span>
<select class="form-control select2" name="calendar" required>
<select class="form-select select2" name="calendar" required>
<?php
$sql_calendars_select = mysqli_query($mysqli, "SELECT calendar_color, calendar_id, calendar_name FROM calendars ORDER BY calendar_name ASC");
@@ -150,7 +150,7 @@ ob_start();
<label>Repeat</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-recycle"></i></span>
<select class="form-control select2" name="repeat">
<select class="form-select select2" name="repeat">
<option <?php if (empty($event_repeat)) { echo "selected"; } ?> value="">Never</option>
<option <?php if ($event_repeat == "Day") { echo "selected"; } ?>>Day</option>
<option <?php if ($event_repeat == "Week") { echo "selected"; } ?>>Week</option>
@@ -189,7 +189,7 @@ ob_start();
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client">
<select class="form-select select2" name="client">
<option value="">- Client -</option>
<?php

View File

@@ -42,7 +42,7 @@ ob_start();
<label>Client <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client_id" required>
<select class="form-select select2" name="client_id" required>
<option value="">- Select Client -</option>
<?php
@@ -80,7 +80,7 @@ ob_start();
<label>Domain</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-globe"></i></span>
<select class="form-control select2" name="domain_id">
<select class="form-select select2" name="domain_id">
<option value="">- Domain -</option>
<?php
$domains_sql = mysqli_query($mysqli, "SELECT domain_id, domain_name FROM domains WHERE domain_archived_at IS NULL AND domain_client_id = $client_id ORDER BY domain_name ASC");

View File

@@ -82,7 +82,7 @@ ob_start();
<label>Domain</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-globe"></i></span>
<select class="form-control select2" name="domain_id">
<select class="form-select select2" name="domain_id">
<option value="">- Select Domain -</option>
<?php
$domains_sql = mysqli_query($mysqli, "SELECT domain_id, domain_name FROM domains WHERE domain_client_id = $client_id");

View File

@@ -55,7 +55,7 @@ ob_start();
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client">
<select class="form-select select2" name="client">
<option value="">- All Clients -</option>
<?php
$sql_clients_filter = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients WHERE EXISTS (SELECT 1 FROM certificates WHERE certificate_client_id = client_id) ORDER BY client_name ASC");
@@ -76,7 +76,7 @@ ob_start();
<label>Expiring In</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-hourglass-half"></i></span>
<select class="form-control select2" name="expire_days">
<select class="form-select select2" name="expire_days">
<option value="">- Any -</option>
<option <?php if ($expire_filter === 'expired') { echo "selected"; } ?> value="expired">Expired</option>
<?php foreach ([7, 30, 45, 60, 90] as $expire_option) { ?>
@@ -90,7 +90,7 @@ ob_start();
<label>Archived</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-archive"></i></span>
<select class="form-control select2" name="archived">
<select class="form-select select2" name="archived">
<option <?php if (!$archived_filter) { echo "selected"; } ?> value="0">Active only</option>
<option <?php if ($archived_filter) { echo "selected"; } ?> value="1">Archived only</option>
</select>

View File

@@ -64,7 +64,7 @@ ob_start();
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<input type="text" class="form-control" name="name" id="client_name" placeholder="Name or Company" maxlength="200" onfocusout="checkClientDuplicate()" required autofocus>
<div class="input-group-text">
<input type="checkbox" name="lead" value="1" <?php if($leads_filter == 1){ echo "checked"; } ?>>
<input class="form-check-input" type="checkbox" name="lead" value="1" <?php if($leads_filter == 1){ echo "checked"; } ?>>
</div>
</div>
<div class="mt-2">
@@ -92,7 +92,7 @@ ob_start();
<label>Referral</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-link"></i></span>
<select class="form-control select2" data-tags="true" name="referral">
<select class="form-select select2" data-tags="true" name="referral">
<option value="">- Select Referral -</option>
<?php
@@ -121,7 +121,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="- Select Tags -"multiple>
<select class="form-select select2" name="tags[]" data-placeholder="- Select Tags -"multiple>
<?php
while ($row = mysqli_fetch_assoc($sql_tags_select)) {
@@ -179,7 +179,7 @@ ob_start();
<label>Country</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-globe-americas"></i></span>
<select class="form-control select2" name="country">
<select class="form-select select2" name="country">
<option value="">- Select Country -</option>
<?php foreach($countries_array as $country_name) { ?>
<option <?php if ($session_company_country == $country_name) { echo "selected"; } ?> ><?= $country_name ?></option>
@@ -297,7 +297,7 @@ ob_start();
<label>Payment Terms</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
<select class="form-control select2" name="net_terms">
<select class="form-select select2" name="net_terms">
<?php foreach($net_terms_array as $net_term_value => $net_term_name) { ?>
<option <?php if ($config_default_net_terms == $net_term_value) { echo "selected"; } ?> value="<?= $net_term_value ?>"><?= $net_term_name ?></option>
<?php } ?>
@@ -337,7 +337,7 @@ ob_start();
<?php foreach (['Low', 'Medium', 'High', 'Urgent'] as $sla_priority) { ?>
<div class="col-3">
<small class="text-secondary"><?= $sla_priority ?></small>
<select class="form-control" name="client_sla_<?= strtolower($sla_priority) ?>">
<select class="form-select" name="client_sla_<?= strtolower($sla_priority) ?>">
<option value="default">Default</option>
<option value="0">None</option>
<?php foreach ($sla_options as $sla_option_id => $sla_option_name) { ?>

View File

@@ -38,7 +38,7 @@ ob_start();
<label>Priority <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-thermometer-half"></i></span>
<select class="form-control select2" name="bulk_priority" required>
<select class="form-select select2" name="bulk_priority" required>
<option>Low</option>
<option>Medium</option>
<option>High</option>
@@ -53,7 +53,7 @@ ob_start();
<label>Category</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-layer-group"></i></span>
<select class="form-control select2" name="bulk_category">
<select class="form-select select2" name="bulk_category">
<option value="0">- Not Categorized -</option>
<?php
$sql_categories = mysqli_query($mysqli, "SELECT category_id, category_name FROM categories WHERE category_type = 'Ticket' AND category_archived_at IS NULL");
@@ -79,7 +79,7 @@ ob_start();
<label>Assign to</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user-check"></i></span>
<select class="form-control select2" name="bulk_assigned_to">
<select class="form-select select2" name="bulk_assigned_to">
<option value="0">Not Assigned</option>
<?php
@@ -104,7 +104,7 @@ ob_start();
<label>Project</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-project-diagram"></i></span>
<select class="form-control select2" name="bulk_project">
<select class="form-select select2" name="bulk_project">
<option value="0">- None -</option>
<?php

View File

@@ -31,7 +31,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="bulk_tags[]" data-placeholder="Add some tags" multiple>
<select class="form-select select2" name="bulk_tags[]" data-placeholder="Add some tags" multiple>
<?php
$sql_tags_select = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 1 ORDER BY tag_name ASC");

View File

@@ -36,7 +36,7 @@ ob_start();
<label>Invoice Net Terms</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
<select class="form-control select2" name="net_terms">
<select class="form-select select2" name="net_terms">
<option value="">- Net Terms -</option>
<?php foreach ($net_terms_array as $net_term_value => $net_term_name) { ?>
<option value="<?= $net_term_value ?>">

View File

@@ -24,7 +24,7 @@ ob_start();
<label>Referral</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-link"></i></span>
<select class="form-control select2" name="bulk_referral">
<select class="form-select select2" name="bulk_referral">
<option value="">- Select a Referral -</option>
<?php
$referral_sql = mysqli_query($mysqli, "SELECT category_name FROM categories WHERE category_type = 'Referral' AND category_archived_at IS NULL ORDER BY category_name ASC");

View File

@@ -25,7 +25,7 @@ ob_start();
<div class="row g-2">
<div class="mb-3 col-sm-6">
<select type="text" class="form-control select2" name="mail_from">
<select type="text" class="form-select select2" name="mail_from">
<option value="<?= escapeHtml($config_mail_from_email) ?>">
<?= escapeHtml("$config_mail_from_name - $config_mail_from_email") ?></option>
<option value="<?= escapeHtml($config_invoice_from_email) ?>">

View File

@@ -21,7 +21,7 @@
<label>Type<strong class="text-danger ms-2">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-th-list"></i></span>
<select class="form-control select2" name="type" required>
<select class="form-select select2" name="type" required>
<option value="0">- Select Credit Type -</option>
<option value="manual">Manual</option>
<option value="prepaid">Prepaid</option>
@@ -54,7 +54,7 @@
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client" required>
<select class="form-select select2" name="client" required>
<option value="0">- Client (Optional) -</option>
<?php

View File

@@ -92,7 +92,7 @@ ob_start();
<input type="text" class="form-control" name="name" placeholder="Name or Company" maxlength="200"
value="<?= $client_name ?>" required>
<div class="input-group-text">
<input type="checkbox" name="lead" value="1" <?php if($client_is_lead == 1){ echo "checked"; } ?>>
<input class="form-check-input" type="checkbox" name="lead" value="1" <?php if($client_is_lead == 1){ echo "checked"; } ?>>
</div>
</div>
</div>
@@ -118,7 +118,7 @@ ob_start();
<label>Referral</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-link"></i></span>
<select class="form-control select2" data-tags="true" name="referral">
<select class="form-select select2" data-tags="true" name="referral">
<option value="">- Select Referral -</option>
<?php
@@ -156,7 +156,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="Add some tags" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="Add some tags" multiple>
<?php
$sql_tags_select = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 1 ORDER BY tag_name ASC");
@@ -195,7 +195,7 @@ ob_start();
<label>Invoice Net Terms</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-calendar"></i></span>
<select class="form-control select2" name="net_terms">
<select class="form-select select2" name="net_terms">
<option value="">- Net Terms -</option>
<?php foreach ($net_terms_array as $net_term_value => $net_term_name) { ?>
<option <?php if ($net_term_value == $client_net_terms) {
@@ -242,7 +242,7 @@ ob_start();
<?php foreach (['Low', 'Medium', 'High', 'Urgent'] as $sla_priority) { $sla_current = $client_sla_assignments[$sla_priority] ?? 'default'; ?>
<div class="col-3">
<small class="text-secondary"><?= $sla_priority ?></small>
<select class="form-control" name="client_sla_<?= strtolower($sla_priority) ?>">
<select class="form-select" name="client_sla_<?= strtolower($sla_priority) ?>">
<option value="default" <?php if ($sla_current === 'default') { echo "selected"; } ?>>Default</option>
<option value="0" <?php if ($sla_current === 0) { echo "selected"; } ?>>None</option>
<?php foreach ($sla_options as $sla_option_id => $sla_option_name) { ?>

View File

@@ -63,7 +63,7 @@ ob_start();
<label>Showing</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user-friends"></i></span>
<select class="form-control select2" name="leads">
<select class="form-select select2" name="leads">
<option value="">- Clients -</option>
<option <?php if ($leads_filter === '1') { echo "selected"; } ?> value="1">Leads</option>
</select>
@@ -74,7 +74,7 @@ ob_start();
<label>Industry</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-industry"></i></span>
<select class="form-control select2" name="industry">
<select class="form-select select2" name="industry">
<option value="">- All Industries -</option>
<?php
$sql_industry_filter = mysqli_query($mysqli, "SELECT DISTINCT client_type FROM clients WHERE client_type != '' ORDER BY client_type ASC");
@@ -93,7 +93,7 @@ ob_start();
<label>Referral</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-share-alt"></i></span>
<select class="form-control select2" name="referral">
<select class="form-select select2" name="referral">
<option value="">- All Referrals -</option>
<?php
$sql_referral_filter = mysqli_query($mysqli, "SELECT DISTINCT client_referral FROM clients WHERE client_referral != '' ORDER BY client_referral ASC");
@@ -112,7 +112,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="- All Tags -" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="- All Tags -" multiple>
<?php
$sql_tags_filter = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 1 ORDER BY tag_name ASC");
while ($row = mysqli_fetch_assoc($sql_tags_filter)) {
@@ -147,7 +147,7 @@ ob_start();
<label>Archived</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-archive"></i></span>
<select class="form-control select2" name="archived">
<select class="form-select select2" name="archived">
<option <?php if (!$archived_filter) { echo "selected"; } ?> value="0">Active only</option>
<option <?php if ($archived_filter) { echo "selected"; } ?> value="1">Archived only</option>
</select>

View File

@@ -215,7 +215,7 @@ ob_start();
<h5 class="modal-title">
<div class="d-flex">
<?php if ($contact_photo) { ?>
<img class="img-thumbnail img-circle img-size-50 me-1" src="<?= "../uploads/clients/$client_id/$contact_photo" ?>">
<img class="img-thumbnail rounded-circle img-size-50 me-1" src="<?= "../uploads/clients/$client_id/$contact_photo" ?>">
<?php } else { ?>
<span class="fa-stack">
<i class="fa fa-circle fa-stack-2x text-secondary"></i>
@@ -266,7 +266,7 @@ ob_start();
<div class="mt-1">
<i class="fas fa-fw fa-envelope text-secondary me-1"></i>
<a href="mailto:<?= $contact_email ?>"><?= $contact_email ?></a>
<button type="button" class="btn btn-xs btn-link p-0 ms-1 clipboardjs" data-clipboard-text="<?= $contact_email ?>">
<button type="button" class="btn btn-sm btn-link p-0 ms-1 clipboardjs" data-clipboard-text="<?= $contact_email ?>">
<i class="far fa-copy text-secondary"></i>
</button>
</div>
@@ -342,7 +342,7 @@ ob_start();
<!-- Left sticky nav -->
<div class="col-12 col-md-3 pe-md-3 mb-3 mb-md-0">
<div class="sticky-top">
<div class="nav nav-pills nav-sidebar flex-column" role="tablist" aria-orientation="vertical">
<div class="nav nav-pills sidebar-menu flex-column" role="tablist" aria-orientation="vertical">
<?php if ($asset_count) { ?>
<a class="nav-link <?= ($first_tab === "assets") ? "active" : "" ?>"

View File

@@ -54,7 +54,7 @@ ob_start();
<label>Client <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client_id" required>
<select class="form-select select2" name="client_id" required>
<option value="">- Select Client -</option>
<?php
@@ -76,7 +76,7 @@ ob_start();
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<input type="text" class="form-control" name="name" placeholder="Full Name" maxlength="200" required autofocus>
<div class="input-group-text">
<input type="checkbox" name="contact_primary" value="1">
<input class="form-check-input" type="checkbox" name="contact_primary" value="1">
</div>
</div>
</div>
@@ -144,7 +144,7 @@ ob_start();
<label>Location</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-map-marker-alt"></i></span>
<select class="form-control select2" name="location">
<select class="form-select select2" name="location">
<option value="">- Select Location -</option>
<?php
@@ -186,7 +186,7 @@ ob_start();
<label>Client Portal</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user-circle"></i></span>
<select class="form-control select2 authMethod" name="auth_method">
<select class="form-select select2 authMethod" name="auth_method">
<option value="">- No Access -</option>
<option value="local">Using Set Password</option>
<option value="azure">Using Azure Credentials</option>
@@ -253,7 +253,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="Add some tags" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="Add some tags" multiple>
<?php
while ($row = mysqli_fetch_assoc($sql_tags_select)) {

View File

@@ -28,7 +28,7 @@ ob_start();
<label>Location</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-map-marker-alt"></i></span>
<select class="form-control select2" name="bulk_location_id">
<select class="form-select select2" name="bulk_location_id">
<option value="">- Select Location -</option>
<?php

View File

@@ -30,7 +30,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="bulk_tags[]" data-placeholder="Add some tags" multiple>
<select class="form-select select2" name="bulk_tags[]" data-placeholder="Add some tags" multiple>
<?php
$sql_tags_select = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 3 ORDER BY tag_name ASC");

View File

@@ -23,7 +23,7 @@ ob_start();
<div class="row g-2">
<div class="mb-3 col-sm-6">
<select type="text" class="form-control select2" name="mail_from">
<select type="text" class="form-select select2" name="mail_from">
<option value="<?= escapeHtml($config_mail_from_email) ?>">
<?= escapeHtml("$config_mail_from_name - $config_mail_from_email") ?></option>
<option value="<?= escapeHtml($config_invoice_from_email) ?>">

View File

@@ -92,7 +92,7 @@ ob_start();
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<input type="text" class="form-control" name="name" placeholder="Full Name" maxlength="200" value="<?= $contact_name ?>" required>
<div class="input-group-text">
<input type="checkbox" name="contact_primary" value="1" <?php if ($contact_primary == 1) { echo "checked"; } ?>>
<input class="form-check-input" type="checkbox" name="contact_primary" value="1" <?php if ($contact_primary == 1) { echo "checked"; } ?>>
</div>
</div>
</div>
@@ -156,7 +156,7 @@ ob_start();
<label>Location</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-map-marker-alt"></i></span>
<select class="form-control select2" name="location">
<select class="form-select select2" name="location">
<option value="">- Select Location -</option>
<?php
@@ -198,7 +198,7 @@ ob_start();
<label>Client Portal</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user-circle"></i></span>
<select class="form-control select2 authMethod" name="auth_method">
<select class="form-select select2 authMethod" name="auth_method">
<option value="">- No Access -</option>
<option value="local" <?php if ($auth_method == "local") { echo "selected"; } ?>>Using Set Password</option>
<option value="azure" <?php if ($auth_method == "azure") { echo "selected"; } ?>>Using Azure Credentials</option>
@@ -289,7 +289,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="Add some tags" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="Add some tags" multiple>
<?php
$sql_tags_select = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 3 ORDER BY tag_name ASC");

View File

@@ -58,7 +58,7 @@ ob_start();
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client">
<select class="form-select select2" name="client">
<option value="">- All Clients -</option>
<?php
$sql_clients_filter = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients WHERE EXISTS (SELECT 1 FROM contacts WHERE contact_client_id = client_id) ORDER BY client_name ASC");
@@ -80,7 +80,7 @@ ob_start();
<label>Location</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-map-marker-alt"></i></span>
<select class="form-control select2" name="location">
<select class="form-select select2" name="location">
<option value="">- All Locations -</option>
<?php
$sql_locations_filter = mysqli_query($mysqli, "SELECT location_id, location_name FROM locations WHERE location_client_id = $client_id AND location_archived_at IS NULL ORDER BY location_name ASC");
@@ -101,7 +101,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="- All Tags -" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="- All Tags -" multiple>
<?php
$sql_tags_filter = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 3 ORDER BY tag_name ASC");
while ($row = mysqli_fetch_assoc($sql_tags_filter)) {
@@ -120,7 +120,7 @@ ob_start();
<label>Archived</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-archive"></i></span>
<select class="form-control select2" name="archived">
<select class="form-select select2" name="archived">
<option <?php if (!$archived_filter) { echo "selected"; } ?> value="0">Active only</option>
<option <?php if ($archived_filter) { echo "selected"; } ?> value="1">Archived only</option>
</select>

View File

@@ -24,7 +24,7 @@
<label>Welcome Letter</label>
<div class="input-group">
<span class="input-group-text"><i class="fas fa-fw fa-envelope-open-text"></i></span>
<select class="form-control select2" name="welcome_letter">
<select class="form-select select2" name="welcome_letter">
<option value="1">- Select One -</option>
<option value="2">Standard</option>
<option value="3">Big Wig</option>

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-desktop"></i></span>
<select class="form-control select2" name="asset_id">
<select class="form-select select2" name="asset_id">
<option value="">- Select an Asset -</option>
<?php
$sql_assets_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-key"></i></span>
<select class="form-control select2" name="credential_id">
<select class="form-select select2" name="credential_id">
<option value="">- Select a Credential -</option>
<?php
$sql_credentials_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-folder"></i></span>
<select class="form-control select2" name="document_id">
<select class="form-select select2" name="document_id">
<option value="">- Select a Document -</option>
<?php
$sql_documents_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paperclip"></i></span>
<select class="form-control select2" name="file_id">
<select class="form-select select2" name="file_id">
<option value="">- Select a File -</option>
<?php
$sql_files_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-stream"></i></span>
<select class="form-control select2" name="service_id">
<select class="form-select select2" name="service_id">
<option value="">- Select a Service -</option>
<?php
$sql_services_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-cube"></i></span>
<select class="form-control select2" name="software_id">
<select class="form-select select2" name="software_id">
<option value="">- Select a User Software License -</option>
<?php
$sql_software_select = mysqli_query($mysqli, "

View File

@@ -32,7 +32,7 @@ ob_start();
<label>Type</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-comment"></i></span>
<select class="form-control select2" name="type">
<select class="form-select select2" name="type">
<?php
$sql_contact_note_types_select = mysqli_query($mysqli, "
SELECT category_name FROM categories

View File

@@ -46,7 +46,7 @@ ob_start();
<label>Client <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client_id" required>
<select class="form-select select2" name="client_id" required>
<option value="">- Select Client -</option>
<?php
@@ -70,7 +70,7 @@ ob_start();
<input type="text" class="form-control" name="name" placeholder="Name of Login" maxlength="200" required autofocus>
<div class="input-group-text">
<label class="star-toggle mb-0" title="Favorite">
<input type="checkbox" name="favorite" value="1"><i class="far fa-star"></i>
<input class="form-check-input" type="checkbox" name="favorite" value="1"><i class="far fa-star"></i>
</label>
</div>
</div>
@@ -135,7 +135,7 @@ ob_start();
<label>Contact</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="contact">
<select class="form-select select2" name="contact">
<option value="">- Select Contact -</option>
<?php
@@ -160,7 +160,7 @@ ob_start();
<label>Asset</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
<select class="form-control select2" name="asset">
<select class="form-select select2" name="asset">
<option value="">- Select Asset -</option>
<?php
@@ -198,7 +198,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="Add some tags" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="Add some tags" multiple>
<?php
$sql_tags_select = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 4 ORDER BY tag_name ASC");

View File

@@ -29,7 +29,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="bulk_tags[]" data-placeholder="Add some tags" multiple>
<select class="form-select select2" name="bulk_tags[]" data-placeholder="Add some tags" multiple>
<?php
$sql_tags_select = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 4 ORDER BY tag_name ASC");

View File

@@ -80,7 +80,7 @@ ob_start();
<input type="text" class="form-control" name="name" placeholder="Name of Credential" maxlength="200" value="<?= $credential_name ?>" required>
<div class="input-group-text">
<label class="star-toggle mb-0" title="Favorite">
<input type="checkbox"
<input class="form-check-input" type="checkbox"
name="favorite"
value="1"
<?php if($credential_favorite) { echo 'checked'; } ?>>
@@ -154,7 +154,7 @@ ob_start();
<label>Contact</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="contact">
<select class="form-select select2" name="contact">
<option value="">- Select Contact -</option>
<?php
@@ -173,7 +173,7 @@ ob_start();
<label>Asset</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tag"></i></span>
<select class="form-control select2" name="asset">
<select class="form-select select2" name="asset">
<option value="0">- Select Asset -</option>
<?php
@@ -208,7 +208,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="Add some tags" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="Add some tags" multiple>
<?php
$sql_tags_select = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 4 ORDER BY tag_name ASC");

View File

@@ -55,7 +55,7 @@ ob_start();
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client">
<select class="form-select select2" name="client">
<option value="">- All Clients -</option>
<?php
$sql_clients_filter = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients WHERE EXISTS (SELECT 1 FROM credentials WHERE credential_client_id = client_id) ORDER BY client_name ASC");
@@ -76,7 +76,7 @@ ob_start();
<label>Tags</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-tags"></i></span>
<select class="form-control select2" name="tags[]" data-placeholder="- All Tags -" multiple>
<select class="form-select select2" name="tags[]" data-placeholder="- All Tags -" multiple>
<?php
$sql_tags_filter = mysqli_query($mysqli, "SELECT tag_id, tag_name FROM tags WHERE tag_type = 4 ORDER BY tag_name ASC");
while ($row = mysqli_fetch_assoc($sql_tags_filter)) {
@@ -95,7 +95,7 @@ ob_start();
<label>Archived</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-archive"></i></span>
<select class="form-control select2" name="archived">
<select class="form-select select2" name="archived">
<option <?php if (!$archived_filter) { echo "selected"; } ?> value="0">Active only</option>
<option <?php if ($archived_filter) { echo "selected"; } ?> value="1">Archived only</option>
</select>

View File

@@ -33,7 +33,7 @@ ob_start();
<label>Select Folder</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-folder"></i></span>
<select class="form-control select2" name="folder">
<select class="form-select select2" name="folder">
<option value="0">/</option>
<?php
// Start displaying folder options from the root (parent_folder = 0)

View File

@@ -13,7 +13,7 @@
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paperclip"></i></span>
<select class="form-control select2" name="file_id">
<select class="form-select select2" name="file_id">
<option value="">- Select a File -</option>
<?php
$sql_files_select = mysqli_query($mysqli, "SELECT file_id, file_name, folder_name FROM files

View File

@@ -28,7 +28,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-puzzle-piece"></i></span>
<select class="form-control" name="document_template_id" required>
<select class="form-select" name="document_template_id" required>
<option value="">- Select Template -</option>
<?php
$sql_document_templates = mysqli_query($mysqli, "SELECT document_template_id, document_template_name FROM document_templates WHERE document_template_archived_at IS NULL ORDER BY document_template_name ASC");
@@ -64,7 +64,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-folder"></i></span>
<select class="form-control" name="folder">
<select class="form-select" name="folder">
<option value="0">/</option>
<?php
$sql_folders = mysqli_query($mysqli, "SELECT folder_id, folder_name FROM folders WHERE folder_client_id = $client_id ORDER BY folder_name ASC");

View File

@@ -30,7 +30,7 @@ ob_start();
<label>Target Folder</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-folder"></i></span>
<select class="form-control select2" name="bulk_folder_id">
<select class="form-select select2" name="bulk_folder_id">
<option value="0">/</option>
<?php
// Fetch all folders for the client

View File

@@ -36,7 +36,7 @@ ob_start();
<p>Should this document be visible in the portal to client contacts with the 'Technical' role?</p>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-eye"></i></span>
<select class="form-control" name="document_visible">
<select class="form-select" name="document_visible">
<option <?php if ($document_client_visible == 1) { echo "selected"; } ?> value="1">Yes</option>
<option <?php if ($document_client_visible == 0) { echo "selected"; } ?> value="0">No</option>
</select>

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-desktop"></i></span>
<select class="form-control select2" name="asset_id">
<select class="form-select select2" name="asset_id">
<option value="">- Select an Asset -</option>
<?php
$sql_assets_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="contact_id">
<select class="form-select select2" name="contact_id">
<option value="">- Select a Contact -</option>
<?php
$sql_contacts_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-paperclip"></i></span>
<select class="form-control select2" name="file_id">
<select class="form-select select2" name="file_id">
<option value="">- Select a File -</option>
<?php
$sql_files_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-box-open"></i></span>
<select class="form-control select2" name="software_id">
<select class="form-select select2" name="software_id">
<option value="">- Select a License -</option>
<?php
$sql_software_select = mysqli_query($mysqli, "

View File

@@ -31,7 +31,7 @@ ob_start();
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
<select class="form-control select2" name="vendor_id">
<select class="form-select select2" name="vendor_id">
<option value="">- Select a Vendor -</option>
<?php
$sql_vendors_select = mysqli_query($mysqli, "

View File

@@ -32,7 +32,7 @@ ob_start();
<label>Move Document to</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-folder"></i></span>
<select class="form-control select2" name="folder">
<select class="form-select select2" name="folder">
<option value="0">/</option>
<?php
// Fetch all folders for the client

View File

@@ -40,7 +40,7 @@ ob_start();
<label>Client <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client_id" required>
<select class="form-select select2" name="client_id" required>
<option value="">- Select Client -</option>
<?php
@@ -81,7 +81,7 @@ ob_start();
<label>Registrar</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-server"></i></span>
<select class="form-control select2" name="registrar">
<select class="form-select select2" name="registrar">
<option value="">- Vendor -</option>
<?php
@@ -100,7 +100,7 @@ ob_start();
<label>Webhost</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-server"></i></span>
<select class="form-control select2" name="webhost">
<select class="form-select select2" name="webhost">
<option value="">- Vendor -</option>
<?php
@@ -119,7 +119,7 @@ ob_start();
<label>DNS Host</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-server"></i></span>
<select class="form-control select2" name="dnshost">
<select class="form-select select2" name="dnshost">
<option value="">- Vendor -</option>
<?php
@@ -138,7 +138,7 @@ ob_start();
<label>Mail Host</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
<select class="form-control select2" name="mailhost">
<select class="form-select select2" name="mailhost">
<option value="">- Vendor -</option>
<?php

View File

@@ -89,7 +89,7 @@ ob_start();
<label>Domain Registrar</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-server"></i></span>
<select class="form-control select2" name="registrar">
<select class="form-select select2" name="registrar">
<option value="">- Select Vendor -</option>
<?php
$vendor_sql = mysqli_query($mysqli, "SELECT vendor_id, vendor_name FROM vendors WHERE vendor_client_id = $client_id AND vendor_archived_at IS NULL ORDER BY vendor_name ASC");
@@ -109,7 +109,7 @@ ob_start();
<label>Webhost</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-server"></i></span>
<select class="form-control select2" name="webhost">
<select class="form-select select2" name="webhost">
<option value="">- Select Vendor -</option>
<?php
$vendor_sql = mysqli_query($mysqli, "SELECT vendor_id, vendor_name FROM vendors WHERE vendor_client_id = $client_id AND vendor_archived_at IS NULL ORDER BY vendor_name ASC");
@@ -129,7 +129,7 @@ ob_start();
<label>DNS Host</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-server"></i></span>
<select class="form-control select2" name="dnshost">
<select class="form-select select2" name="dnshost">
<option value="">- Select Vendor -</option>
<?php
$vendor_sql = mysqli_query($mysqli, "SELECT vendor_id, vendor_name FROM vendors WHERE vendor_client_id = $client_id AND vendor_archived_at IS NULL ORDER BY vendor_name ASC");
@@ -149,7 +149,7 @@ ob_start();
<label>Mail Host</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-envelope"></i></span>
<select class="form-control select2" name="mailhost">
<select class="form-select select2" name="mailhost">
<option value="">- Select Vendor -</option>
<?php
$vendor_sql = mysqli_query($mysqli, "SELECT vendor_id, vendor_name FROM vendors WHERE vendor_client_id = $client_id AND vendor_archived_at IS NULL ORDER BY vendor_name ASC");

View File

@@ -55,7 +55,7 @@ ob_start();
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client">
<select class="form-select select2" name="client">
<option value="">- All Clients -</option>
<?php
$sql_clients_filter = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients WHERE EXISTS (SELECT 1 FROM domains WHERE domain_client_id = client_id) ORDER BY client_name ASC");
@@ -76,7 +76,7 @@ ob_start();
<label>Expiring In</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-hourglass-half"></i></span>
<select class="form-control select2" name="expire_days">
<select class="form-select select2" name="expire_days">
<option value="">- Any -</option>
<option <?php if ($expire_filter === 'expired') { echo "selected"; } ?> value="expired">Expired</option>
<?php foreach ([7, 30, 45, 60, 90] as $expire_option) { ?>
@@ -90,7 +90,7 @@ ob_start();
<label>Archived</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-archive"></i></span>
<select class="form-control select2" name="archived">
<select class="form-select select2" name="archived">
<option <?php if (!$archived_filter) { echo "selected"; } ?> value="0">Active only</option>
<option <?php if ($archived_filter) { echo "selected"; } ?> value="1">Archived only</option>
</select>

View File

@@ -38,7 +38,7 @@ ob_start();
<label>Account <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-piggy-bank"></i></span>
<select class="form-control select2" name="account" required>
<select class="form-select select2" name="account" required>
<option value="">- Select an Account -</option>
<?php
@@ -76,7 +76,7 @@ ob_start();
<label>Vendor <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
<select class="form-control select2" name="vendor" required>
<select class="form-select select2" name="vendor" required>
<option value="">- Select a Vendor -</option>
<?php
@@ -115,7 +115,7 @@ ob_start();
<label>Category <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-list"></i></span>
<select class="form-control select2" name="category" required>
<select class="form-select select2" name="category" required>
<option value="">- Select a Category -</option>
<?php
@@ -145,7 +145,7 @@ ob_start();
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client_id" required>
<select class="form-select select2" name="client_id" required>
<option value="0">- Select a Client (Optional) -</option>
<?php

View File

@@ -24,7 +24,7 @@ ob_start();
<label>Account <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-piggy-bank"></i></span>
<select class="form-control select2" name="bulk_account_id">
<select class="form-select select2" name="bulk_account_id">
<?php
$sql = mysqli_query($mysqli, "SELECT account_id, account_name, opening_balance FROM accounts WHERE account_archived_at IS NULL ORDER BY account_name ASC");

View File

@@ -29,7 +29,7 @@ ob_start();
<label>Category <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-list"></i></span>
<select class="form-control select2" name="bulk_category_id" data-placeholder="- Select a Category -" required>
<select class="form-select select2" name="bulk_category_id" data-placeholder="- Select a Category -" required>
<option></option>
<?php

View File

@@ -28,7 +28,7 @@ ob_start();
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="bulk_client_id">
<select class="form-select select2" name="bulk_client_id">
<option value="0">- No Client -</option>
<?php

View File

@@ -65,7 +65,7 @@ ob_start();
<label>Account <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-piggy-bank"></i></span>
<select class="form-control select2" name="account" required>
<select class="form-select select2" name="account" required>
<?php
$sql_accounts = mysqli_query($mysqli, "SELECT account_id, account_name, opening_balance FROM accounts WHERE account_archived_at IS NULL ORDER BY account_name ASC");
@@ -101,7 +101,7 @@ ob_start();
<label>Vendor <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
<select class="form-control select2" name="vendor" required>
<select class="form-select select2" name="vendor" required>
<?php
$sql_vendors = mysqli_query($mysqli, "SELECT vendor_id, vendor_name FROM vendors WHERE vendor_client_id = 0 ORDER BY vendor_name ASC");
@@ -139,7 +139,7 @@ ob_start();
<label>Category <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-list"></i></span>
<select class="form-control select2" name="category" required>
<select class="form-select select2" name="category" required>
<?php
$sql_categories = mysqli_query($mysqli, "SELECT category_id, category_name FROM categories WHERE category_type = 'Expense' ORDER BY category_name ASC");
@@ -164,7 +164,7 @@ ob_start();
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client_id">
<select class="form-select select2" name="client_id">
<option value="">- Select Client -</option>
<?php

View File

@@ -72,7 +72,7 @@ ob_start();
<label>Account <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-piggy-bank"></i></span>
<select class="form-control select2" name="account" required>
<select class="form-select select2" name="account" required>
<?php
$sql_accounts = mysqli_query($mysqli, "SELECT account_id, account_name, opening_balance, account_archived_at FROM accounts WHERE (account_archived_at > '$expense_created_at' OR account_archived_at IS NULL) ORDER BY account_archived_at ASC, account_name ASC");
@@ -115,7 +115,7 @@ ob_start();
<label>Vendor <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
<select class="form-control select2" name="vendor" required>
<select class="form-select select2" name="vendor" required>
<?php
$sql_select = mysqli_query($mysqli, "SELECT vendor_id, vendor_name FROM vendors WHERE vendor_client_id = 0 AND (vendor_archived_at > '$expense_created_at' OR vendor_archived_at IS NULL) ORDER BY vendor_name ASC");
@@ -154,7 +154,7 @@ ob_start();
<label>Category <strong class="text-danger">*</strong></label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-list"></i></span>
<select class="form-control select2" name="category" required>
<select class="form-select select2" name="category" required>
<?php
$sql_select = mysqli_query($mysqli, "SELECT category_id, category_name FROM categories WHERE category_type = 'Expense' AND (category_archived_at > '$expense_created_at' OR category_archived_at IS NULL) ORDER BY category_name ASC");
@@ -183,7 +183,7 @@ ob_start();
<label>Client</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
<select class="form-control select2" name="client_id">
<select class="form-select select2" name="client_id">
<option value="">- Select Client -</option>
<?php

View File

@@ -57,7 +57,7 @@ ob_start();
<label>Account</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-piggy-bank"></i></span>
<select class="form-control select2" name="account">
<select class="form-select select2" name="account">
<option value="">- All Accounts -</option>
<?php
$sql_account_filter = mysqli_query($mysqli, "SELECT account_id, account_name FROM accounts WHERE account_archived_at IS NULL ORDER BY account_name ASC");
@@ -77,7 +77,7 @@ ob_start();
<label>Vendor</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-building"></i></span>
<select class="form-control select2" name="vendor">
<select class="form-select select2" name="vendor">
<option value="">- All Vendors -</option>
<?php
$sql_vendor_filter = mysqli_query($mysqli, "SELECT vendor_id, vendor_name FROM vendors WHERE EXISTS (SELECT 1 FROM expenses WHERE expense_vendor_id = vendor_id) ORDER BY vendor_name ASC");
@@ -97,7 +97,7 @@ ob_start();
<label>Category</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-list"></i></span>
<select class="form-control select2" name="category">
<select class="form-select select2" name="category">
<option value="">- All Categories -</option>
<?php
$sql_category_filter = mysqli_query($mysqli, "SELECT category_id, category_name FROM categories WHERE category_type = 'Expense' ORDER BY category_name ASC");

View File

@@ -49,7 +49,7 @@ ob_start();
<label>Target Folder</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-folder"></i></span>
<select class="form-control select2" name="bulk_folder_id">
<select class="form-select select2" name="bulk_folder_id">
<option value="0">/</option>
<?php
// NOTE: folder_location is gone now, so just use folder_client_id

View File

@@ -13,7 +13,7 @@
<div class="mb-3">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-desktop"></i></span>
<select class="form-control select2" name="asset_id">
<select class="form-select select2" name="asset_id">
<option value="">- Select an Asset -</option>
<?php

View File

@@ -56,7 +56,7 @@ ob_start();
<label>Move File to</label>
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-folder"></i></span>
<select class="form-control select2" name="folder_id">
<select class="form-select select2" name="folder_id">
<option value="0">/</option>
<?php
// Fetch all folders for the client

Some files were not shown because too many files have changed in this diff Show More