mirror of
https://github.com/itflow-org/itflow
synced 2026-09-15 03:05:14 +00:00
Css fixes
This commit is contained in:
@@ -87,8 +87,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
|
||||
?>
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<div class="card">
|
||||
<div class="card-header bg-dark py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-redo-alt me-2"></i>Recurring Tickets</h3>
|
||||
<?php if (lookupUserPermission("module_support") >= 2) { ?>
|
||||
<div class='card-tools'>
|
||||
@@ -99,22 +99,22 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<div class="card-header py-3">
|
||||
|
||||
<form autocomplete="off">
|
||||
<?php if ($client_url) { ?>
|
||||
<input type="hidden" name="client_id" value="<?= $client_id ?>">
|
||||
<?php } ?>
|
||||
<div class="row">
|
||||
<div class="row g-2 align-items-center">
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="input-group mb-3 mb-md-0">
|
||||
<div class="input-group">
|
||||
<input type="search" class="form-control" name="q" value="<?php if (isset($q)) { echo stripslashes(escapeHtml($q)); } ?>" placeholder="Search Recurring Tickets">
|
||||
<button class="btn btn-dark"><i class="fa fa-search"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<div class="mb-3">
|
||||
<div>
|
||||
<select class="form-select select2" name="category" onchange="this.form.submit()">
|
||||
<option value="">- All Categories -</option>
|
||||
|
||||
@@ -133,7 +133,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<div class="mb-3">
|
||||
<div>
|
||||
<select class="form-select select2" name="assigned_agent" onchange="this.form.submit()">
|
||||
<option value="">- All Agents -</option>
|
||||
|
||||
@@ -152,7 +152,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-2">
|
||||
<div class="mb-3">
|
||||
<div>
|
||||
<select class="form-select select2" name="billable" onchange="this.form.submit()">
|
||||
<option value="">- Billable Status -</option>
|
||||
<option <?php if ($billable_filter == 1) { echo "selected"; } ?> value="1">Billable</option>
|
||||
@@ -212,171 +212,170 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
<div class="table-responsive">
|
||||
<div class="table-responsive">
|
||||
|
||||
<form id="bulkActions" action="post.php" method="post">
|
||||
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||
<form id="bulkActions" action="post.php" method="post">
|
||||
<input type="hidden" name="csrf_token" value="<?= $_SESSION['csrf_token'] ?>">
|
||||
|
||||
<table class="table table-striped table-borderless table-hover mb-0">
|
||||
<thead class="<?php if (!$num_rows[0]) { echo "d-none"; } ?> text-nowrap">
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
</div>
|
||||
</td>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=recurring_ticket_next_run&order=<?= $disp ?>">
|
||||
Next Run Date <?php if ($sort == 'recurring_ticket_next_run') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=recurring_ticket_subject&order=<?= $disp ?>">
|
||||
Subject <?php if ($sort == 'recurring_ticket_subject') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=category_name&order=<?= $disp ?>">
|
||||
Category <?php if ($sort == 'category_name') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=recurring_ticket_priority&order=<?= $disp ?>">
|
||||
Priority <?php if ($sort == 'recurring_ticket_priority') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=recurring_ticket_frequency&order=<?= $disp ?>">
|
||||
Frequency <?php if ($sort == 'recurring_ticket_frequency') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=recurring_ticket_billable&order=<?= $disp ?>">
|
||||
Billable <?php if ($sort == 'recurring_ticket_billable') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=user_name&order=<?= $disp ?>">
|
||||
Agent <?php if ($sort == 'user_name') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
|
||||
<?php if (!$client_url) { ?>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=client_name&order=<?= $disp ?>">
|
||||
Client <?php if ($sort == 'client_name') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<?php } ?>
|
||||
<?php if (lookupUserPermission("module_support") >= 2) { ?>
|
||||
<th class="text-center">Action</th>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
|
||||
while ($row = mysqli_fetch_assoc($sql)) {
|
||||
$recurring_ticket_id = intval($row['recurring_ticket_id']);
|
||||
$recurring_ticket_client_id = intval($row['client_id']);
|
||||
$recurring_ticket_subject = escapeHtml($row['recurring_ticket_subject']);
|
||||
$recurring_ticket_priority = escapeHtml($row['recurring_ticket_priority']);
|
||||
$recurring_ticket_frequency = escapeHtml($row['recurring_ticket_frequency']);
|
||||
$recurring_ticket_next_run = escapeHtml($row['recurring_ticket_next_run']);
|
||||
$recurring_ticket_billable = intval($row['recurring_ticket_billable']);
|
||||
if ($recurring_ticket_billable) {
|
||||
$recurring_ticket_billable_display = "<i class='fas fa-fw fa-check text-success'></i>";
|
||||
} else {
|
||||
$recurring_ticket_billable_display = "-";
|
||||
}
|
||||
$recurring_ticket_category = escapeHtml($row['category_name']) ?: '-';
|
||||
$recurring_ticket_client_name = escapeHtml($row['client_name']);
|
||||
$assigned_to = escapeHtml($row['user_name']) ?: '-';
|
||||
$recurring_ticket_template_name = escapeHtml($row['ticket_template_name']);
|
||||
$recurring_ticket_task_count = intval($row['recurring_ticket_task_count']);
|
||||
?>
|
||||
|
||||
<table class="table table-striped table-borderless table-hover">
|
||||
<thead class="<?php if (!$num_rows[0]) { echo "d-none"; } ?> text-nowrap">
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" id="selectAllCheckbox" type="checkbox" onclick="checkAll(this)">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="recurring_ticket_ids[]" value="<?= $recurring_ticket_id ?>">
|
||||
</div>
|
||||
</td>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=recurring_ticket_next_run&order=<?= $disp ?>">
|
||||
Next Run Date <?php if ($sort == 'recurring_ticket_next_run') { echo $order_icon; } ?>
|
||||
<td class="text-bold"><?= $recurring_ticket_next_run ?></td>
|
||||
<td>
|
||||
<a class="ajax-modal" href="#"
|
||||
data-modal-size="lg"
|
||||
data-modal-url="modals/recurring_ticket/recurring_ticket_edit.php?id=<?= $recurring_ticket_id ?>">
|
||||
<?= $recurring_ticket_subject ?>
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=recurring_ticket_subject&order=<?= $disp ?>">
|
||||
Subject <?php if ($sort == 'recurring_ticket_subject') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=category_name&order=<?= $disp ?>">
|
||||
Category <?php if ($sort == 'category_name') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=recurring_ticket_priority&order=<?= $disp ?>">
|
||||
Priority <?php if ($sort == 'recurring_ticket_priority') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=recurring_ticket_frequency&order=<?= $disp ?>">
|
||||
Frequency <?php if ($sort == 'recurring_ticket_frequency') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<th class="text-center">
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=recurring_ticket_billable&order=<?= $disp ?>">
|
||||
Billable <?php if ($sort == 'recurring_ticket_billable') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=user_name&order=<?= $disp ?>">
|
||||
Agent <?php if ($sort == 'user_name') { echo $order_icon; } ?>
|
||||
</a>
|
||||
</th>
|
||||
|
||||
<?php if ($recurring_ticket_template_name) { ?>
|
||||
<span title="Template: <?= $recurring_ticket_template_name ?>"
|
||||
<i class='fas fa-puzzle-piece text-secondary ms-1'></i>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<?php if ($recurring_ticket_task_count) { ?>
|
||||
<span title="Adds <?= $recurring_ticket_task_count ?> Tasks">
|
||||
<i class="fas fa-fw fa-tasks me-1"></i><?= $recurring_ticket_task_count ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td><?= $recurring_ticket_category ?></td>
|
||||
<td><?= $recurring_ticket_priority ?></td>
|
||||
<td><?= $recurring_ticket_frequency ?></td>
|
||||
<td class="text-center"><?= $recurring_ticket_billable_display ?></td>
|
||||
<td><?= $assigned_to ?></td>
|
||||
<?php if (!$client_url) { ?>
|
||||
<th>
|
||||
<a class="text-secondary" href="?<?= $url_query_strings_sort ?>&sort=client_name&order=<?= $disp ?>">
|
||||
Client <?php if ($sort == 'client_name') { echo $order_icon; } ?>
|
||||
</a>
|
||||
<th><a href="recurring_tickets.php?client_id=<?= $recurring_ticket_client_id ?>"><?= $recurring_ticket_client_name ?></a>
|
||||
</th>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (lookupUserPermission("module_support") >= 2) { ?>
|
||||
<th class="text-center">Action</th>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
|
||||
while ($row = mysqli_fetch_assoc($sql)) {
|
||||
$recurring_ticket_id = intval($row['recurring_ticket_id']);
|
||||
$recurring_ticket_client_id = intval($row['client_id']);
|
||||
$recurring_ticket_subject = escapeHtml($row['recurring_ticket_subject']);
|
||||
$recurring_ticket_priority = escapeHtml($row['recurring_ticket_priority']);
|
||||
$recurring_ticket_frequency = escapeHtml($row['recurring_ticket_frequency']);
|
||||
$recurring_ticket_next_run = escapeHtml($row['recurring_ticket_next_run']);
|
||||
$recurring_ticket_billable = intval($row['recurring_ticket_billable']);
|
||||
if ($recurring_ticket_billable) {
|
||||
$recurring_ticket_billable_display = "<i class='fas fa-fw fa-check text-success'></i>";
|
||||
} else {
|
||||
$recurring_ticket_billable_display = "-";
|
||||
}
|
||||
$recurring_ticket_category = escapeHtml($row['category_name']) ?: '-';
|
||||
$recurring_ticket_client_name = escapeHtml($row['client_name']);
|
||||
$assigned_to = escapeHtml($row['user_name']) ?: '-';
|
||||
$recurring_ticket_template_name = escapeHtml($row['ticket_template_name']);
|
||||
$recurring_ticket_task_count = intval($row['recurring_ticket_task_count']);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="checkbox-column">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input bulk-select" type="checkbox" name="recurring_ticket_ids[]" value="<?= $recurring_ticket_id ?>">
|
||||
<td>
|
||||
<div class="dropdown dropstart text-center">
|
||||
<button class="btn btn-secondary btn-sm" type="button" data-bs-toggle="dropdown">
|
||||
<i class="fas fa-ellipsis-h"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-size="lg"
|
||||
data-modal-url="modals/recurring_ticket/recurring_ticket_edit.php?id=<?= $recurring_ticket_id ?>">
|
||||
<i class="fas fa-fw fa-edit me-2"></i>Edit
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="post.php?force_recurring_ticket=<?= $recurring_ticket_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
|
||||
<i class="fa fa-fw fa-paper-plane text-secondary me-2"></i>Force Reoccur
|
||||
</a>
|
||||
<?php if (lookupUserPermission("module_support") == 3) { ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?delete_recurring_ticket=<?= $recurring_ticket_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-bold"><?= $recurring_ticket_next_run ?></td>
|
||||
<td>
|
||||
<a class="ajax-modal" href="#"
|
||||
data-modal-size="lg"
|
||||
data-modal-url="modals/recurring_ticket/recurring_ticket_edit.php?id=<?= $recurring_ticket_id ?>">
|
||||
<?= $recurring_ticket_subject ?>
|
||||
</a>
|
||||
<?php if ($recurring_ticket_template_name) { ?>
|
||||
<span title="Template: <?= $recurring_ticket_template_name ?>"
|
||||
<i class='fas fa-puzzle-piece text-secondary ms-1'></i>
|
||||
</span>
|
||||
<?php } ?>
|
||||
<?php if ($recurring_ticket_task_count) { ?>
|
||||
<span title="Adds <?= $recurring_ticket_task_count ?> Tasks">
|
||||
<i class="fas fa-fw fa-tasks me-1"></i><?= $recurring_ticket_task_count ?>
|
||||
</span>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td><?= $recurring_ticket_category ?></td>
|
||||
<td><?= $recurring_ticket_priority ?></td>
|
||||
<td><?= $recurring_ticket_frequency ?></td>
|
||||
<td class="text-center"><?= $recurring_ticket_billable_display ?></td>
|
||||
<td><?= $assigned_to ?></td>
|
||||
<?php if (!$client_url) { ?>
|
||||
<th><a href="recurring_tickets.php?client_id=<?= $recurring_ticket_client_id ?>"><?= $recurring_ticket_client_name ?></a>
|
||||
</th>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (lookupUserPermission("module_support") >= 2) { ?>
|
||||
<td>
|
||||
<div class="dropdown dropstart text-center">
|
||||
<button class="btn btn-secondary btn-sm" type="button" data-bs-toggle="dropdown">
|
||||
<i class="fas fa-ellipsis-h"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a class="dropdown-item ajax-modal" href="#"
|
||||
data-modal-size="lg"
|
||||
data-modal-url="modals/recurring_ticket/recurring_ticket_edit.php?id=<?= $recurring_ticket_id ?>">
|
||||
<i class="fas fa-fw fa-edit me-2"></i>Edit
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item" href="post.php?force_recurring_ticket=<?= $recurring_ticket_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
|
||||
<i class="fa fa-fw fa-paper-plane text-secondary me-2"></i>Force Reoccur
|
||||
</a>
|
||||
<?php if (lookupUserPermission("module_support") == 3) { ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-danger text-bold confirm-link" href="post.php?delete_recurring_ticket=<?= $recurring_ticket_id ?>&csrf_token=<?= $_SESSION['csrf_token'] ?>">
|
||||
<i class="fas fa-fw fa-trash me-2"></i>Delete
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</table>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<?php require_once '../includes/filter_footer.php';
|
||||
?>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<?php require_once '../includes/filter_footer.php';
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<script src="../js/bulk_actions.js"></script>
|
||||
|
||||
Reference in New Issue
Block a user