mirror of
https://github.com/itflow-org/itflow
synced 2026-09-22 14:41:17 +00:00
Add ps-3 to table columns that don't have a checkbox and made sure all table listings conform
This commit is contained in:
@@ -6,10 +6,12 @@ $order = "ASC";
|
|||||||
|
|
||||||
require_once "includes/inc_all_admin.php";
|
require_once "includes/inc_all_admin.php";
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli, "SELECT ai_model_id, ai_model_name, ai_model_prompt, ai_model_use_case, ai_provider_id,
|
$sql = mysqli_query($mysqli, "SELECT SQL_CALC_FOUND_ROWS ai_model_id, ai_model_name, ai_model_prompt, ai_model_use_case, ai_provider_id,
|
||||||
ai_provider_name FROM ai_models LEFT JOIN ai_providers ON ai_model_ai_provider_id = ai_provider_id ORDER BY $sort $order");
|
ai_provider_name FROM ai_models LEFT JOIN ai_providers ON ai_model_ai_provider_id = ai_provider_id
|
||||||
|
WHERE ai_model_name LIKE '%$q%' OR ai_provider_name LIKE '%$q%'
|
||||||
|
ORDER BY $sort $order LIMIT $record_from, $record_to");
|
||||||
|
|
||||||
$num_rows = mysqli_num_rows($sql);
|
$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -23,19 +25,31 @@ $num_rows = mysqli_num_rows($sql);
|
|||||||
<li class="breadcrumb-item active">AI Models</li>
|
<li class="breadcrumb-item active">AI Models</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card">
|
||||||
<div class="card-header py-2">
|
<div class="card-header bg-dark py-2">
|
||||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-robot me-2"></i>AI Models</h3>
|
<h3 class="card-title mt-2"><i class="fas fa-fw fa-robot me-2"></i>AI Models</h3>
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/ai/ai_model_add.php"><i class="fas fa-plus me-2"></i>Add Model</button>
|
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/ai/ai_model_add.php"><i class="fas fa-plus me-2"></i>Add Model</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-header py-3">
|
||||||
|
<form autocomplete="off">
|
||||||
|
<div class="row g-2 align-items-center">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search AI Models">
|
||||||
|
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="table-responsive-sm">
|
<div class="table-responsive-sm">
|
||||||
<table class="table table-striped table-borderless table-hover">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=ai_model_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=ai_model_name&order=<?= $disp ?>">
|
||||||
Model <?php if ($sort == 'ai_model_name') { echo $order_icon; } ?>
|
Model <?php if ($sort == 'ai_model_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -69,7 +83,7 @@ $num_rows = mysqli_num_rows($sql);
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark text-bold ajax-modal" href="#"
|
<a class="text-dark text-bold ajax-modal" href="#"
|
||||||
data-modal-url="modals/ai/ai_model_edit.php?id=<?= $model_id ?>">
|
data-modal-url="modals/ai/ai_model_edit.php?id=<?= $model_id ?>">
|
||||||
<?= $model_name ?>
|
<?= $model_name ?>
|
||||||
@@ -101,17 +115,12 @@ $num_rows = mysqli_num_rows($sql);
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num_rows == 0) {
|
|
||||||
echo "<h3 class='text-secondary mt-3' style='text-align: center'>No Records Here</h3>";
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<?php require_once "../includes/filter_footer.php"; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -6,25 +6,39 @@ $order = "ASC";
|
|||||||
|
|
||||||
require_once "includes/inc_all_admin.php";
|
require_once "includes/inc_all_admin.php";
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli, "SELECT ai_provider_api_key, ai_provider_api_url, ai_provider_id, ai_provider_name FROM ai_providers ORDER BY $sort $order");
|
$sql = mysqli_query($mysqli, "SELECT SQL_CALC_FOUND_ROWS ai_provider_api_key, ai_provider_api_url, ai_provider_id, ai_provider_name FROM ai_providers
|
||||||
|
WHERE ai_provider_name LIKE '%$q%' OR ai_provider_api_url LIKE '%$q%'
|
||||||
|
ORDER BY $sort $order LIMIT $record_from, $record_to");
|
||||||
|
|
||||||
$num_rows = mysqli_num_rows($sql);
|
$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card">
|
||||||
<div class="card-header py-2">
|
<div class="card-header bg-dark py-2">
|
||||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-robot me-2"></i>AI Providers</h3>
|
<h3 class="card-title mt-2"><i class="fas fa-fw fa-robot me-2"></i>AI Providers</h3>
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/ai/ai_provider_add.php"><i class="fas fa-plus me-2"></i>Add Provider</button>
|
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/ai/ai_provider_add.php"><i class="fas fa-plus me-2"></i>Add Provider</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-header py-3">
|
||||||
|
<form autocomplete="off">
|
||||||
|
<div class="row g-2 align-items-center">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search AI Providers">
|
||||||
|
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="table-responsive-sm">
|
<div class="table-responsive-sm">
|
||||||
<table class="table table-striped table-borderless table-hover">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=ai_provider_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=ai_provider_name&order=<?= $disp ?>">
|
||||||
Provider <?php if ($sort == 'ai_provider_name') { echo $order_icon; } ?>
|
Provider <?php if ($sort == 'ai_provider_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -59,7 +73,7 @@ $num_rows = mysqli_num_rows($sql);
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark text-bold ajax-modal" href="#"
|
<a class="text-dark text-bold ajax-modal" href="#"
|
||||||
data-modal-url="modals/ai/ai_provider_edit.php?id=<?= $provider_id ?>">
|
data-modal-url="modals/ai/ai_provider_edit.php?id=<?= $provider_id ?>">
|
||||||
<?= $provider_name ?>
|
<?= $provider_name ?>
|
||||||
@@ -92,17 +106,12 @@ $num_rows = mysqli_num_rows($sql);
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num_rows == 0) {
|
|
||||||
echo "<h3 class='text-secondary mt-3' style='text-align: center'>No Records Here</h3>";
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<?php require_once "../includes/filter_footer.php"; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="pe-0">
|
<td class="pe-0 ps-3">
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input class="form-check-input" type="checkbox" onclick="checkAll(this)">
|
<input class="form-check-input" type="checkbox" onclick="checkAll(this)">
|
||||||
</div>
|
</div>
|
||||||
@@ -117,7 +117,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="pe-0">
|
<td class="pe-0 ps-3">
|
||||||
<div class="form-check">
|
<div class="form-check">
|
||||||
<input class="form-check-input bulk-select" type="checkbox" name="api_key_ids[]" value="<?= $api_key_id ?>">
|
<input class="form-check-input bulk-select" type="checkbox" name="api_key_ids[]" value="<?= $api_key_id ?>">
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-sm table-striped table-borderless table-hover mb-0">
|
<table class="table table-sm table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=app_log_created_at&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=app_log_created_at&order=<?= $disp ?>">
|
||||||
Timestamp <?php if ($sort == 'app_log_created_at') { echo $order_icon; } ?>
|
Timestamp <?php if ($sort == 'app_log_created_at') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -149,7 +149,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="font-monospace"><?= $log_created_at ?></td>
|
<td class="font-monospace ps-3"><?= $log_created_at ?></td>
|
||||||
<td><?= $log_type ?></td>
|
<td><?= $log_type ?></td>
|
||||||
<td><?= $log_category ?></td>
|
<td><?= $log_category ?></td>
|
||||||
<td><?= $log_details ?></td>
|
<td><?= $log_details ?></td>
|
||||||
|
|||||||
@@ -185,7 +185,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-sm table-striped table-borderless table-hover mb-0">
|
<table class="table table-sm table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=log_created_at&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=log_created_at&order=<?= $disp ?>">
|
||||||
Timestamp <?php if ($sort == 'log_created_at') { echo $order_icon; } ?>
|
Timestamp <?php if ($sort == 'log_created_at') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -261,7 +261,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="font-monospace"><?= $log_created_at ?></td>
|
<td class="font-monospace ps-3"><?= $log_created_at ?></td>
|
||||||
<td><?= $user_name_display ?></td>
|
<td><?= $user_name_display ?></td>
|
||||||
<?php if(empty($client)) { ?>
|
<?php if(empty($client)) { ?>
|
||||||
<td><?= $client_name_display ?></td>
|
<td><?= $client_name_display ?></td>
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=canned_response_name&order=<?= $disp ?>">
|
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=canned_response_name&order=<?= $disp ?>">
|
||||||
Response <?php if ($sort == 'canned_response_name') { echo $order_icon; } ?>
|
Response <?php if ($sort == 'canned_response_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -84,7 +84,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<i class="fa fa-fw fa-2x fa-comment-dots me-3"></i>
|
<i class="fa fa-fw fa-2x fa-comment-dots me-3"></i>
|
||||||
<div class="flex-grow-1">
|
<div class="flex-grow-1">
|
||||||
|
|||||||
@@ -207,11 +207,11 @@ $archive_toggle_url = '?' . http_build_query($archive_toggle_query);
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<?php require_once "../includes/filter_footer.php"; ?>
|
<?php require_once "../includes/filter_footer.php"; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "../includes/footer.php";
|
require_once "../includes/footer.php";
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ require_once "includes/inc_all_admin.php";
|
|||||||
$sql = mysqli_query(
|
$sql = mysqli_query(
|
||||||
$mysqli,
|
$mysqli,
|
||||||
"SELECT SQL_CALC_FOUND_ROWS * FROM contract_templates
|
"SELECT SQL_CALC_FOUND_ROWS * FROM contract_templates
|
||||||
WHERE contract_template_name LIKE '%$q%' OR contract_template_type LIKE '%$q%' OR contract_template_name LIKE '%$q%'
|
WHERE contract_template_name LIKE '%$q%' OR contract_template_type LIKE '%$q%'
|
||||||
|
OR contract_template_description LIKE '%$q%'
|
||||||
ORDER BY $sort $order LIMIT $record_from, $record_to"
|
ORDER BY $sort $order LIMIT $record_from, $record_to"
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -41,17 +42,53 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Template Name</th>
|
<th class="ps-3">
|
||||||
<th>Type</th>
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=contract_template_name&order=<?= $disp ?>">
|
||||||
<th>Update Frequency</th>
|
Template Name <?php if ($sort == 'contract_template_name') { echo $order_icon; } ?>
|
||||||
|
</a>
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=contract_template_type&order=<?= $disp ?>">
|
||||||
|
Type <?php if ($sort == 'contract_template_type') { echo $order_icon; } ?>
|
||||||
|
</a>
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=contract_template_renewal_frequency&order=<?= $disp ?>">
|
||||||
|
Update Frequency <?php if ($sort == 'contract_template_renewal_frequency') { echo $order_icon; } ?>
|
||||||
|
</a>
|
||||||
|
</th>
|
||||||
<th>SLA (L/M/H Response)</th>
|
<th>SLA (L/M/H Response)</th>
|
||||||
<th>SLA (L/M/H Resolution)</th>
|
<th>SLA (L/M/H Resolution)</th>
|
||||||
<th>Hourly Rate</th>
|
<th>
|
||||||
<th>After Hours Rate</th>
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=contract_template_rate_standard&order=<?= $disp ?>">
|
||||||
<th>Support Hours</th>
|
Hourly Rate <?php if ($sort == 'contract_template_rate_standard') { echo $order_icon; } ?>
|
||||||
<th>Net Terms</th>
|
</a>
|
||||||
<th>Created</th>
|
</th>
|
||||||
<th>Updated</th>
|
<th>
|
||||||
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=contract_template_rate_after_hours&order=<?= $disp ?>">
|
||||||
|
After Hours Rate <?php if ($sort == 'contract_template_rate_after_hours') { echo $order_icon; } ?>
|
||||||
|
</a>
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=contract_template_support_hours&order=<?= $disp ?>">
|
||||||
|
Support Hours <?php if ($sort == 'contract_template_support_hours') { echo $order_icon; } ?>
|
||||||
|
</a>
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=contract_template_net_terms&order=<?= $disp ?>">
|
||||||
|
Net Terms <?php if ($sort == 'contract_template_net_terms') { echo $order_icon; } ?>
|
||||||
|
</a>
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=contract_template_created_at&order=<?= $disp ?>">
|
||||||
|
Created <?php if ($sort == 'contract_template_created_at') { echo $order_icon; } ?>
|
||||||
|
</a>
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=contract_template_updated_at&order=<?= $disp ?>">
|
||||||
|
Updated <?php if ($sort == 'contract_template_updated_at') { echo $order_icon; } ?>
|
||||||
|
</a>
|
||||||
|
</th>
|
||||||
<th class="text-center">Action</th>
|
<th class="text-center">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -76,8 +113,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
$updated = escapeHtml($row['contract_template_updated_at']);
|
$updated = escapeHtml($row['contract_template_updated_at']);
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-bold" href="contract_template_details.php?contract_template_id=<?= $id ?>">
|
<a class="text-bold ajax-modal" href="#"
|
||||||
|
data-modal-size="xl"
|
||||||
|
data-modal-url="modals/contract_template/contract_template_edit.php?id=<?= $id ?>">
|
||||||
<i class="fas fa-fw fa-file-alt text-dark"></i> <?= $name ?>
|
<i class="fas fa-fw fa-file-alt text-dark"></i> <?= $name ?>
|
||||||
</a>
|
</a>
|
||||||
<div class="mt-1 text-secondary"><?= escapeHtml($row['contract_template_description']) ?></div>
|
<div class="mt-1 text-secondary"><?= escapeHtml($row['contract_template_description']) ?></div>
|
||||||
@@ -114,7 +153,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
|
||||||
</div>
|
</div>
|
||||||
<?php require_once "../includes/filter_footer.php"; ?>
|
<?php require_once "../includes/filter_footer.php"; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -18,34 +18,32 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card">
|
||||||
<div class="card-header py-2">
|
<div class="card-header bg-dark py-2">
|
||||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-external-link-alt me-2"></i>Custom Links</h3>
|
<h3 class="card-title mt-2"><i class="fas fa-fw fa-external-link-alt me-2"></i>Custom Links</h3>
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/custom_link/custom_link_add.php"><i class="fas fa-plus me-2"></i>New Link</button>
|
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/custom_link/custom_link_add.php"><i class="fas fa-plus me-2"></i>New Link</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-header py-3">
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-4 mb-2">
|
|
||||||
<form autocomplete="off">
|
<form autocomplete="off">
|
||||||
|
<div class="row g-2 align-items-center">
|
||||||
|
<div class="col-md-4">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search Links">
|
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search Links">
|
||||||
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
|
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-8">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
<div class="table-responsive-sm">
|
<div class="table-responsive-sm">
|
||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=custom_link_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=custom_link_name&order=<?= $disp ?>">
|
||||||
Name <?php if ($sort == 'custom_link_name') { echo $order_icon; } ?>
|
Name <?php if ($sort == 'custom_link_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -103,7 +101,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="ajax-modal" href="#"
|
<a class="ajax-modal" href="#"
|
||||||
data-modal-url="modals/custom_link/custom_link_edit.php?id=<?= $custom_link_id ?>">
|
data-modal-url="modals/custom_link/custom_link_edit.php?id=<?= $custom_link_id ?>">
|
||||||
<i class="fa fa-fw fa-<?= $custom_link_icon ?> me-2"></i><?= $custom_link_name ?>
|
<i class="fa fa-fw fa-<?= $custom_link_icon ?> me-2"></i><?= $custom_link_name ?>
|
||||||
@@ -138,9 +136,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<?php require_once "../includes/filter_footer.php";
|
<?php require_once "../includes/filter_footer.php"; ?>
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=document_template_name&order=<?= $disp ?>">
|
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=document_template_name&order=<?= $disp ?>">
|
||||||
Template Name <?php if ($sort == 'document_template_name') { echo $order_icon; } ?>
|
Template Name <?php if ($sort == 'document_template_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark ajax-modal" href="#"
|
<a class="text-dark ajax-modal" href="#"
|
||||||
data-modal-size="xl"
|
data-modal-size="xl"
|
||||||
data-modal-url="modals/document_template/document_template_edit.php?id=<?= $document_template_id ?>">
|
data-modal-url="modals/document_template/document_template_edit.php?id=<?= $document_template_id ?>">
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=module_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=module_name&order=<?= $disp ?>">
|
||||||
Module <?php if ($sort == 'module_name') { echo $order_icon; } ?>
|
Module <?php if ($sort == 'module_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -62,7 +62,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a href="#" <?php if ($module_id > 6) { ?> class="ajax-modal" data-modal-url="modals/modules/module_edit.php?id=<?= $module_id ?>" <?php } ?>>
|
<a href="#" <?php if ($module_id > 6) { ?> class="ajax-modal" data-modal-url="modals/modules/module_edit.php?id=<?= $module_id ?>" <?php } ?>>
|
||||||
<strong class="text-dark"><?= $module_name ?></strong>
|
<strong class="text-dark"><?= $module_name ?></strong>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -6,26 +6,40 @@ $order = "ASC";
|
|||||||
|
|
||||||
require_once "includes/inc_all_admin.php";
|
require_once "includes/inc_all_admin.php";
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli, "SELECT payment_method_created_at, payment_method_description, payment_method_id,
|
$sql = mysqli_query($mysqli, "SELECT SQL_CALC_FOUND_ROWS payment_method_created_at, payment_method_description, payment_method_id,
|
||||||
payment_method_name FROM payment_methods ORDER BY $sort $order");
|
payment_method_name FROM payment_methods
|
||||||
|
WHERE payment_method_name LIKE '%$q%' OR payment_method_description LIKE '%$q%'
|
||||||
|
ORDER BY $sort $order LIMIT $record_from, $record_to");
|
||||||
|
|
||||||
$num_rows = mysqli_num_rows($sql);
|
$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card">
|
||||||
<div class="card-header py-2">
|
<div class="card-header bg-dark py-2">
|
||||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-credit-card me-2"></i>Payment Methods</h3>
|
<h3 class="card-title mt-2"><i class="fas fa-fw fa-credit-card me-2"></i>Payment Methods</h3>
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/payment_method/payment_method_add.php"><i class="fas fa-plus me-2"></i>Add Payment Method</button>
|
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/payment_method/payment_method_add.php"><i class="fas fa-plus me-2"></i>Add Payment Method</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-header py-3">
|
||||||
|
<form autocomplete="off">
|
||||||
|
<div class="row g-2 align-items-center">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search Payment Methods">
|
||||||
|
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="table-responsive-sm">
|
<div class="table-responsive-sm">
|
||||||
<table class="table table-striped table-borderless table-hover">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=payment_method_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=payment_method_name&order=<?= $disp ?>">
|
||||||
Method <?php if ($sort == 'payment_method_name') { echo $order_icon; } ?>
|
Method <?php if ($sort == 'payment_method_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -54,7 +68,7 @@ $num_rows = mysqli_num_rows($sql);
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark text-bold ajax-modal" href="#"
|
<a class="text-dark text-bold ajax-modal" href="#"
|
||||||
data-modal-url="modals/payment_method/payment_method_edit.php?id=<?= $payment_method_id ?>">
|
data-modal-url="modals/payment_method/payment_method_edit.php?id=<?= $payment_method_id ?>">
|
||||||
<?= $payment_method_name ?>
|
<?= $payment_method_name ?>
|
||||||
@@ -85,17 +99,12 @@ $num_rows = mysqli_num_rows($sql);
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num_rows == 0) {
|
|
||||||
echo "<h3 class='text-secondary mt-3' style='text-align: center'>No Records Here</h3>";
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<?php require_once "../includes/filter_footer.php"; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -6,31 +6,44 @@ $order = "ASC";
|
|||||||
|
|
||||||
require_once "includes/inc_all_admin.php";
|
require_once "includes/inc_all_admin.php";
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli, "SELECT account_name, category_name, payment_provider_description, payment_provider_id,
|
$sql = mysqli_query($mysqli, "SELECT SQL_CALC_FOUND_ROWS account_name, category_name, payment_provider_description, payment_provider_id,
|
||||||
payment_provider_name, payment_provider_threshold, vendor_name FROM payment_providers
|
payment_provider_name, payment_provider_threshold, vendor_name FROM payment_providers
|
||||||
LEFT JOIN accounts ON payment_provider_account = account_id
|
LEFT JOIN accounts ON payment_provider_account = account_id
|
||||||
LEFT JOIN vendors ON payment_provider_expense_vendor = vendor_id
|
LEFT JOIN vendors ON payment_provider_expense_vendor = vendor_id
|
||||||
LEFT JOIN categories ON payment_provider_expense_category = category_id
|
LEFT JOIN categories ON payment_provider_expense_category = category_id
|
||||||
ORDER BY $sort $order"
|
WHERE payment_provider_name LIKE '%$q%' OR payment_provider_description LIKE '%$q%'
|
||||||
|
ORDER BY $sort $order LIMIT $record_from, $record_to"
|
||||||
);
|
);
|
||||||
|
|
||||||
$num_rows = mysqli_num_rows($sql);
|
$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card">
|
||||||
<div class="card-header py-2">
|
<div class="card-header bg-dark py-2">
|
||||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-credit-card me-2"></i>Payment Providers</h3>
|
<h3 class="card-title mt-2"><i class="fas fa-fw fa-credit-card me-2"></i>Payment Providers</h3>
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/payment_provider/payment_provider_add.php"><i class="fas fa-plus me-2"></i>Add Provider</button>
|
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/payment_provider/payment_provider_add.php"><i class="fas fa-plus me-2"></i>Add Provider</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-header py-3">
|
||||||
|
<form autocomplete="off">
|
||||||
|
<div class="row g-2 align-items-center">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search Payment Providers">
|
||||||
|
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="table-responsive-sm">
|
<div class="table-responsive-sm">
|
||||||
<table class="table table-striped table-borderless table-hover">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=payment_provider_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=payment_provider_name&order=<?= $disp ?>">
|
||||||
Provider <?php if ($sort == 'payment_provider_name') { echo $order_icon; } ?>
|
Provider <?php if ($sort == 'payment_provider_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -83,7 +96,7 @@ $num_rows = mysqli_num_rows($sql);
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark text-bold ajax-modal" href="#"
|
<a class="text-dark text-bold ajax-modal" href="#"
|
||||||
data-modal-url="modals/payment_provider/payment_provider_edit.php?id=<?= $provider_id ?>">
|
data-modal-url="modals/payment_provider/payment_provider_edit.php?id=<?= $provider_id ?>">
|
||||||
<?= $provider_name ?>
|
<?= $provider_name ?>
|
||||||
@@ -125,17 +138,12 @@ $num_rows = mysqli_num_rows($sql);
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num_rows == 0) {
|
|
||||||
echo "<h3 class='text-secondary mt-3' style='text-align: center'>No Records Here</h3>";
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<?php require_once "../includes/filter_footer.php"; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if($num_rows[0] == 0){ echo "d-none"; } ?>">
|
<thead class="text-dark <?php if($num_rows[0] == 0){ echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=project_template_name&order=<?= $disp ?>">
|
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=project_template_name&order=<?= $disp ?>">
|
||||||
Template <?php if ($sort == 'project_template_name') { echo $order_icon; } ?>
|
Template <?php if ($sort == 'project_template_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -85,7 +85,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark" href="project_template.php?project_template_id=<?= $project_template_id ?>">
|
<a class="text-dark" href="project_template.php?project_template_id=<?= $project_template_id ?>">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<i class="fa fa-fw fa-2x fa-project-diagram me-3"></i>
|
<i class="fa fa-fw fa-2x fa-project-diagram me-3"></i>
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=role_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=role_name&order=<?= $disp ?>">
|
||||||
Role <?php if ($sort == 'role_name') { echo $order_icon; } ?>
|
Role <?php if ($sort == 'role_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -91,7 +91,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="<?php if ($role_id !== 3) { ?> ajax-modal" data-modal-url="modals/role/role_edit.php?id=<?= $role_id ?>" <?php } ?> href="#">
|
<a class="<?php if ($role_id !== 3) { ?> ajax-modal" data-modal-url="modals/role/role_edit.php?id=<?= $role_id ?>" <?php } ?> href="#">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<i class="fas fa-fw fa-2x fa-user-shield text-dark me-2"></i>
|
<i class="fas fa-fw fa-2x fa-user-shield text-dark me-2"></i>
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ $sql = mysqli_query($mysqli, "
|
|||||||
OR payment_provider_client LIKE '%$q%'
|
OR payment_provider_client LIKE '%$q%'
|
||||||
OR saved_payment_provider_method LIKE '%$q%'
|
OR saved_payment_provider_method LIKE '%$q%'
|
||||||
ORDER BY $sort $order
|
ORDER BY $sort $order
|
||||||
|
LIMIT $record_from, $record_to
|
||||||
");
|
");
|
||||||
|
|
||||||
$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||||
@@ -65,7 +66,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if (!$num_rows[0]) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if (!$num_rows[0]) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=client_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=client_name&order=<?= $disp ?>">
|
||||||
Client <?php if ($sort == 'client_name') { echo $order_icon; } ?>
|
Client <?php if ($sort == 'client_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -115,7 +116,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<?= $client_name ?>
|
<?= $client_name ?>
|
||||||
<br>
|
<br>
|
||||||
<small class="text-secondary">ID: <?= $client_id ?></small>
|
<small class="text-secondary">ID: <?= $client_id ?></small>
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th><a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=custom_field_label&order=<?= $disp ?>">Label</a></th>
|
<th class="ps-3"><a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=custom_field_label&order=<?= $disp ?>">Label</a></th>
|
||||||
<th><a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=custom_field_type&order=<?= $disp ?>">Type</a></th>
|
<th><a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=custom_field_type&order=<?= $disp ?>">Type</a></th>
|
||||||
<th class="text-center">Action</th>
|
<th class="text-center">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -73,7 +73,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><a class="text-dark" href="#" data-bs-toggle="modal" data-bs-target="#editCustomFieldModal<?= $custom_field_id ?>"><?= $custom_field_label ?></a></td>
|
<td class="ps-3"><a class="text-dark" href="#" data-bs-toggle="modal" data-bs-target="#editCustomFieldModal<?= $custom_field_id ?>"><?= $custom_field_label ?></a></td>
|
||||||
<td><?= $custom_field_type ?></td>
|
<td><?= $custom_field_type ?></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="dropdown dropstart text-center">
|
<div class="dropdown dropstart text-center">
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if($num_rows[0] == 0){ echo "d-none"; } ?>">
|
<thead class="text-dark <?php if($num_rows[0] == 0){ echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=software_template_name&order=<?= $disp ?>">
|
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=software_template_name&order=<?= $disp ?>">
|
||||||
Template <?php if ($sort == 'software_template_name') { echo $order_icon; } ?>
|
Template <?php if ($sort == 'software_template_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -79,7 +79,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark ajax-modal" href="#" data-modal-url="modals/software_template/software_template_edit.php?id=<?= $software_template_id ?>">
|
<a class="text-dark ajax-modal" href="#" data-modal-url="modals/software_template/software_template_edit.php?id=<?= $software_template_id ?>">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<i class="fa fa-fw fa-2x fa-cube me-3"></i>
|
<i class="fa fa-fw fa-2x fa-cube me-3"></i>
|
||||||
|
|||||||
@@ -153,11 +153,11 @@ while ($row = mysqli_fetch_assoc($sql_tag_type_counts)) {
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<?php require_once "../includes/filter_footer.php"; ?>
|
<?php require_once "../includes/filter_footer.php"; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|||||||
@@ -8,28 +8,40 @@ require_once "includes/inc_all_admin.php";
|
|||||||
|
|
||||||
$sql = mysqli_query(
|
$sql = mysqli_query(
|
||||||
$mysqli,
|
$mysqli,
|
||||||
"SELECT tax_id, tax_name, tax_percent FROM taxes
|
"SELECT SQL_CALC_FOUND_ROWS tax_id, tax_name, tax_percent FROM taxes
|
||||||
WHERE tax_archived_at IS NULL
|
WHERE tax_archived_at IS NULL AND tax_name LIKE '%$q%'
|
||||||
ORDER BY $sort $order"
|
ORDER BY $sort $order LIMIT $record_from, $record_to"
|
||||||
);
|
);
|
||||||
|
|
||||||
$num_rows = mysqli_num_rows($sql);
|
$num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card">
|
||||||
<div class="card-header py-2">
|
<div class="card-header bg-dark py-2">
|
||||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-balance-scale me-2"></i>Tax Rates</h3>
|
<h3 class="card-title mt-2"><i class="fas fa-fw fa-balance-scale me-2"></i>Tax Rates</h3>
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/tax/tax_add.php"><i class="fas fa-plus me-2"></i>New Tax Rate</button>
|
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/tax/tax_add.php"><i class="fas fa-plus me-2"></i>New Tax Rate</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-header py-3">
|
||||||
|
<form autocomplete="off">
|
||||||
|
<div class="row g-2 align-items-center">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<div class="input-group">
|
||||||
|
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search Tax Rates">
|
||||||
|
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="table-responsive-sm">
|
<div class="table-responsive-sm">
|
||||||
<table class="table table-striped table-borderless table-hover">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=tax_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=tax_name&order=<?= $disp ?>">
|
||||||
Name <?php if ($sort == 'tax_name') { echo $order_icon; } ?>
|
Name <?php if ($sort == 'tax_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -52,7 +64,7 @@ $num_rows = mysqli_num_rows($sql);
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark text-bold ajax-modal" href="#"
|
<a class="text-dark text-bold ajax-modal" href="#"
|
||||||
data-modal-url="modals/tax/tax_edit.php?id=<?= $tax_id ?>">
|
data-modal-url="modals/tax/tax_edit.php?id=<?= $tax_id ?>">
|
||||||
<?= $tax_name ?>
|
<?= $tax_name ?>
|
||||||
@@ -82,17 +94,12 @@ $num_rows = mysqli_num_rows($sql);
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($num_rows == 0) {
|
|
||||||
echo "<h3 class='text-secondary mt-3' style='text-align: center'>No Records Here</h3>";
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<?php require_once "../includes/filter_footer.php"; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
@@ -18,34 +18,32 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card">
|
||||||
<div class="card-header py-2">
|
<div class="card-header bg-dark py-2">
|
||||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-info-circle me-2"></i>Tickets Statuses</h3>
|
<h3 class="card-title mt-2"><i class="fas fa-fw fa-info-circle me-2"></i>Tickets Statuses</h3>
|
||||||
<div class="card-tools">
|
<div class="card-tools">
|
||||||
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/ticket_status/ticket_status_add.php"><i class="fas fa-plus me-2"></i>New Ticket Status</button>
|
<button type="button" class="btn btn-primary ajax-modal" data-modal-url="modals/ticket_status/ticket_status_add.php"><i class="fas fa-plus me-2"></i>New Ticket Status</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-header py-3">
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-4 mb-2">
|
|
||||||
<form autocomplete="off">
|
<form autocomplete="off">
|
||||||
|
<div class="row g-2 align-items-center">
|
||||||
|
<div class="col-md-4">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search Ticket Statuses">
|
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search Ticket Statuses">
|
||||||
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
|
<button class="btn btn-primary"><i class="fa fa-search"></i></button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-8">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
<div class="table-responsive-sm">
|
<div class="table-responsive-sm">
|
||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=ticket_status_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=ticket_status_name&order=<?= $disp ?>">
|
||||||
Name <?php if ($sort == 'ticket_status_name') { echo $order_icon; } ?>
|
Name <?php if ($sort == 'ticket_status_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -81,7 +79,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a href="#"
|
<a href="#"
|
||||||
<?php if ( $ticket_status_id > 5 ) { ?>
|
<?php if ( $ticket_status_id > 5 ) { ?>
|
||||||
class="ajax-modal" data-modal-url="modals/ticket_status/ticket_status_edit.php?id=<?= $ticket_status_id ?>"
|
class="ajax-modal" data-modal-url="modals/ticket_status/ticket_status_edit.php?id=<?= $ticket_status_id ?>"
|
||||||
@@ -133,7 +131,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
<?php require_once "../includes/filter_footer.php"; ?>
|
<?php require_once "../includes/filter_footer.php"; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "../includes/footer.php";
|
require_once "../includes/footer.php";
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=ticket_template_name&order=<?= $disp ?>">
|
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=ticket_template_name&order=<?= $disp ?>">
|
||||||
Template <?php if ($sort == 'ticket_template_name') { echo $order_icon; } ?>
|
Template <?php if ($sort == 'ticket_template_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -77,7 +77,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark">
|
<a class="text-dark">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<i class="fa fa-fw fa-2x fa-life-ring me-3"></i>
|
<i class="fa fa-fw fa-2x fa-life-ring me-3"></i>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=vendor_template_name&order=<?= $disp ?>">
|
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=vendor_template_name&order=<?= $disp ?>">
|
||||||
Vendor <?php if ($sort == 'vendor_template_name') { echo $order_icon; } ?>
|
Vendor <?php if ($sort == 'vendor_template_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -92,7 +92,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark ajax-modal" href="#"
|
<a class="text-dark ajax-modal" href="#"
|
||||||
data-modal-url="modals/vendor_template/vendor_template_edit.php?id=<?= $vendor_template_id ?>">
|
data-modal-url="modals/vendor_template/vendor_template_edit.php?id=<?= $vendor_template_id ?>">
|
||||||
<i class="fa fa-fw fa-building text-secondary me-2"></i><?= $vendor_template_name ?>
|
<i class="fa fa-fw fa-building text-secondary me-2"></i><?= $vendor_template_name ?>
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=account_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=account_name&order=<?= $disp ?>">
|
||||||
Name <?php if ($sort == 'account_name') { echo $order_icon; } ?>
|
Name <?php if ($sort == 'account_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -80,7 +80,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark ajax-modal" href="#"
|
<a class="text-dark ajax-modal" href="#"
|
||||||
data-modal-url="modals/account/account_edit.php?id=<?= $account_id ?>">
|
data-modal-url="modals/account/account_edit.php?id=<?= $account_id ?>">
|
||||||
<?= $account_name ?>
|
<?= $account_name ?>
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="card card-dark">
|
<div class="card">
|
||||||
<div class="card-header py-2">
|
<div class="card-header bg-dark py-2">
|
||||||
<h3 class="card-title mt-2">
|
<h3 class="card-title mt-2">
|
||||||
<i class="fas fa-fw fa-bell me-2"></i><?php if($dismissed_filter) { echo "Dismissed "; } ?>Notifications
|
<i class="fas fa-fw fa-bell me-2"></i><?php if($dismissed_filter) { echo "Dismissed "; } ?>Notifications
|
||||||
</h3>
|
</h3>
|
||||||
@@ -46,12 +46,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
|
||||||
<form class="mb-4" autocomplete="off">
|
<div class="card-header py-3">
|
||||||
|
<form autocomplete="off">
|
||||||
<?php if ($dismissed_filter) { ?>
|
<?php if ($dismissed_filter) { ?>
|
||||||
<input type="hidden" name="dismissed" value="">
|
<input type="hidden" name="dismissed" value="">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<div class="row">
|
<div class="row g-2 align-items-end">
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search <?php if($dismissed_filter) { echo "Dismissed "; } ?>Notifications">
|
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search <?php if($dismissed_filter) { echo "Dismissed "; } ?>Notifications">
|
||||||
@@ -81,11 +82,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="table-responsive-sm">
|
<div class="table-responsive-sm">
|
||||||
<table class="table table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="<?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=notification_timestamp&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=notification_timestamp&order=<?= $disp ?>">
|
||||||
Timestamp <?php if ($sort == 'notification_timestamp') { echo $order_icon; } ?>
|
Timestamp <?php if ($sort == 'notification_timestamp') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -133,7 +136,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="font-monospace"><?= $notification_timestamp ?></td>
|
<td class="font-monospace ps-3"><?= $notification_timestamp ?></td>
|
||||||
<td><?= $notification_type ?></td>
|
<td><?= $notification_type ?></td>
|
||||||
<td><?= $notification ?></td>
|
<td><?= $notification ?></td>
|
||||||
<?php if($dismissed_filter) { ?>
|
<?php if($dismissed_filter) { ?>
|
||||||
@@ -151,7 +154,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
<?php require_once "../includes/filter_footer.php"; ?>
|
<?php require_once "../includes/filter_footer.php"; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-hover table-borderless mb-0">
|
<table class="table table-striped table-hover table-borderless mb-0">
|
||||||
<thead class="<?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
<thead class="<?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=project_number&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=project_number&order=<?= $disp ?>">
|
||||||
Number <?php if ($sort == 'project_number') { echo $order_icon; } ?>
|
Number <?php if ($sort == 'project_number') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -215,7 +215,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark" href="project.php?<?= $client_url ?>project_id=<?= $project_id ?>">
|
<a class="text-dark" href="project.php?<?= $client_url ?>project_id=<?= $project_id ?>">
|
||||||
<?= "$project_prefix$project_number" ?>
|
<?= "$project_prefix$project_number" ?>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=quote_number&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=quote_number&order=<?= $disp ?>">
|
||||||
Number <?php if ($sort == 'quote_number') { echo $order_icon; } ?>
|
Number <?php if ($sort == 'quote_number') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -187,7 +187,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-bold">
|
<td class="text-bold ps-3">
|
||||||
<a href="quote.php?client_id=<?= $client_id ?>"e_id=<?= $quote_id ?>">
|
<a href="quote.php?client_id=<?= $client_id ?>"e_id=<?= $quote_id ?>">
|
||||||
<?= "$quote_prefix$quote_number" ?>
|
<?= "$quote_prefix$quote_number" ?>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=recurring_expense_next_date&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=recurring_expense_next_date&order=<?= $disp ?>">
|
||||||
Next Date <?php if ($sort == 'recurring_expense_next_date') { echo $order_icon; } ?>
|
Next Date <?php if ($sort == 'recurring_expense_next_date') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -164,7 +164,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark ajax-modal" href="#"
|
<a class="text-dark ajax-modal" href="#"
|
||||||
data-modal-size = "lg"
|
data-modal-size = "lg"
|
||||||
data-modal-url = "modals/recurring_expense/recurring_expense_edit.php?id=<?= $recurring_expense_id ?>">
|
data-modal-url = "modals/recurring_expense/recurring_expense_edit.php?id=<?= $recurring_expense_id ?>">
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=recurring_invoice_number&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=recurring_invoice_number&order=<?= $disp ?>">
|
||||||
Number <?php if ($sort == 'recurring_invoice_number') { echo $order_icon; } ?>
|
Number <?php if ($sort == 'recurring_invoice_number') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -208,7 +208,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-bold">
|
<td class="text-bold ps-3">
|
||||||
<a href="recurring_invoice.php?client_id=<?= $client_id ?>&recurring_invoice_id=<?= $recurring_invoice_id ?>">
|
<a href="recurring_invoice.php?client_id=<?= $client_id ?>&recurring_invoice_id=<?= $recurring_invoice_id ?>">
|
||||||
<?= "$recurring_invoice_prefix$recurring_invoice_number" ?>
|
<?= "$recurring_invoice_prefix$recurring_invoice_number" ?>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="<?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="<?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=service_name&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=service_name&order=<?= $disp ?>">
|
||||||
Name <?php if ($sort == 'service_name') { echo $order_icon; } ?>
|
Name <?php if ($sort == 'service_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -165,7 +165,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<!-- Name/Category/Updated/Importance from DB -->
|
<!-- Name/Category/Updated/Importance from DB -->
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark ajax-modal" href="#"
|
<a class="text-dark ajax-modal" href="#"
|
||||||
data-modal-size="xl"
|
data-modal-size="xl"
|
||||||
data-modal-url="modals/service/service.php?id=<?= $service_id ?>">
|
data-modal-url="modals/service/service.php?id=<?= $service_id ?>">
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-borderless table-hover mb-0">
|
<table class="table table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=software_name&order=<?= $disp ?>">
|
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=software_name&order=<?= $disp ?>">
|
||||||
Software <?php if ($sort == 'software_name') { echo $order_icon; } ?>
|
Software <?php if ($sort == 'software_name') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -296,7 +296,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr class="<?= $tr_class ?>">
|
<tr class="<?= $tr_class ?>">
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark ajax-modal" href="#" data-modal-url="modals/software/software_edit.php?id=<?= $software_id ?>">
|
<a class="text-dark ajax-modal" href="#" data-modal-url="modals/software/software_edit.php?id=<?= $software_id ?>">
|
||||||
<div class="d-flex">
|
<div class="d-flex">
|
||||||
<i class="fa fa-fw fa-2x fa-cube me-3"></i>
|
<i class="fa fa-fw fa-2x fa-cube me-3"></i>
|
||||||
|
|||||||
@@ -415,7 +415,7 @@ if ($account_filter) {
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=transaction_date&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=transaction_date&order=<?= $disp ?>">
|
||||||
Date <?php if ($sort == 'transaction_date') { echo $order_icon; } ?>
|
Date <?php if ($sort == 'transaction_date') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -506,7 +506,7 @@ if ($account_filter) {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<?php if ($transaction_type == 'Payment') { ?>
|
<?php if ($transaction_type == 'Payment') { ?>
|
||||||
<a class="text-bold" href="invoice.php?invoice_id=<?= $transaction_invoice_id ?>">
|
<a class="text-bold" href="invoice.php?invoice_id=<?= $transaction_invoice_id ?>">
|
||||||
<?= $transaction_date ?>
|
<?= $transaction_date ?>
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?> text-nowrap">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=transfer_date&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=transfer_date&order=<?= $disp ?>">
|
||||||
Date <?php if ($sort == 'transfer_date') { echo $order_icon; } ?>
|
Date <?php if ($sort == 'transfer_date') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -202,7 +202,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark ajax-modal" href="#"
|
<a class="text-dark ajax-modal" href="#"
|
||||||
data-modal-url = "modals/transfer/transfer_edit.php?id=<?= $transfer_id ?>">
|
data-modal-url = "modals/transfer/transfer_edit.php?id=<?= $transfer_id ?>">
|
||||||
<?= $transfer_date ?>
|
<?= $transfer_date ?>
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<table class="table table-striped table-borderless table-hover mb-0">
|
<table class="table table-striped table-borderless table-hover mb-0">
|
||||||
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
<thead class="text-dark <?php if ($num_rows[0] == 0) { echo "d-none"; } ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th class="ps-3">
|
||||||
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=trip_date&order=<?= $disp ?>">
|
<a class="text-dark" href="?<?= $url_query_strings_sort ?>&sort=trip_date&order=<?= $disp ?>">
|
||||||
Date <?php if ($sort == 'trip_date') { echo $order_icon; } ?>
|
Date <?php if ($sort == 'trip_date') { echo $order_icon; } ?>
|
||||||
</a>
|
</a>
|
||||||
@@ -164,7 +164,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td class="ps-3">
|
||||||
<a class="text-dark ajax-modal" href="#"
|
<a class="text-dark ajax-modal" href="#"
|
||||||
data-modal-url="modals/trip/trip_edit.php?<?= $client_url ?>&id=<?= $trip_id ?>">
|
data-modal-url="modals/trip/trip_edit.php?<?= $client_url ?>&id=<?= $trip_id ?>">
|
||||||
<?= $trip_date ?>
|
<?= $trip_date ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user