mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 11:24:52 +00:00
Added Ticket Status badge colors
This commit is contained in:
@@ -76,7 +76,7 @@ $total_pages = ceil($total_found_rows / 10);
|
|||||||
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_subject&o=<?php echo $disp; ?>">Subject</a></th>
|
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_subject&o=<?php echo $disp; ?>">Subject</a></th>
|
||||||
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_created_at&o=<?php echo $disp; ?>">Date Opened</a></th>
|
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_created_at&o=<?php echo $disp; ?>">Date Opened</a></th>
|
||||||
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_status&o=<?php echo $disp; ?>">Status</a></th>
|
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_status&o=<?php echo $disp; ?>">Status</a></th>
|
||||||
<th><a class="text-dark" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_priority&o=<?php echo $disp; ?>">Priority</a></th>
|
<th><a class="text-secondary" href="?<?php echo $url_query_strings_sb; ?>&sb=ticket_priority&o=<?php echo $disp; ?>">Priority</a></th>
|
||||||
<th class="text-center">Action</th>
|
<th class="text-center">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -104,6 +104,16 @@ $total_pages = ceil($total_found_rows / 10);
|
|||||||
$ticket_badge_color = "info";
|
$ticket_badge_color = "info";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($ticket_priority == "High"){
|
||||||
|
$ticket_priority_display = "<span class='p-2 badge badge-danger'>$ticket_priority</span>";
|
||||||
|
}elseif($ticket_priority == "Medium"){
|
||||||
|
$ticket_priority_display = "<span class='p-2 badge badge-warning'>$ticket_priority</span>";
|
||||||
|
}elseif($ticket_priority == "Low"){
|
||||||
|
$ticket_priority_display = "<span class='p-2 badge badge-info'>$ticket_priority</span>";
|
||||||
|
}else{
|
||||||
|
$ticket_priority_display = "-";
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
@@ -115,7 +125,7 @@ $total_pages = ceil($total_found_rows / 10);
|
|||||||
<?php echo $ticket_status; ?>
|
<?php echo $ticket_status; ?>
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td><?php echo $ticket_priority; ?></td>
|
<td><?php echo $ticket_priority_display; ?></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="dropdown dropleft text-center">
|
<div class="dropdown dropleft text-center">
|
||||||
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
|
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
|
||||||
|
|||||||
2
post.php
2
post.php
@@ -767,7 +767,7 @@ if(isset($_POST['edit_ticket'])){
|
|||||||
$priority = strip_tags(mysqli_real_escape_string($mysqli,$_POST['priority']));
|
$priority = strip_tags(mysqli_real_escape_string($mysqli,$_POST['priority']));
|
||||||
$details = mysqli_real_escape_string($mysqli,$_POST['details']);
|
$details = mysqli_real_escape_string($mysqli,$_POST['details']);
|
||||||
|
|
||||||
mysqli_query($mysqli,"UPDATE tickets SET ticket_subject = '$subject', ticket_priority = '$priority', ticket_details = '$details' ticket_updated_at = NOW() WHERE ticket_id = $ticket_id AND company_id = $session_company_id");
|
mysqli_query($mysqli,"UPDATE tickets SET ticket_subject = '$subject', ticket_priority = '$priority', ticket_details = '$details', ticket_updated_at = NOW() WHERE ticket_id = $ticket_id AND company_id = $session_company_id");
|
||||||
|
|
||||||
//Logging
|
//Logging
|
||||||
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Ticket', log_action = 'Modified', log_description = '$subject', log_created_at = NOW(), company_id = $session_company_id, user_id = $session_user_id");
|
mysqli_query($mysqli,"INSERT INTO logs SET log_type = 'Ticket', log_action = 'Modified', log_description = '$subject', log_created_at = NOW(), company_id = $session_company_id, user_id = $session_user_id");
|
||||||
|
|||||||
12
ticket.php
12
ticket.php
@@ -54,6 +54,16 @@ if(isset($_GET['ticket_id'])){
|
|||||||
$ticket_badge_color = "secondary";
|
$ticket_badge_color = "secondary";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($ticket_priority == "High"){
|
||||||
|
$ticket_priority_display = "<span class='p-2 badge badge-danger'>$ticket_priority</span>";
|
||||||
|
}elseif($ticket_priority == "Medium"){
|
||||||
|
$ticket_priority_display = "<span class='p-2 badge badge-warning'>$ticket_priority</span>";
|
||||||
|
}elseif($ticket_priority == "Low"){
|
||||||
|
$ticket_priority_display = "<span class='p-2 badge badge-info'>$ticket_priority</span>";
|
||||||
|
}else{
|
||||||
|
$ticket_priority_display = "-";
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- Breadcrumbs-->
|
<!-- Breadcrumbs-->
|
||||||
@@ -169,7 +179,7 @@ if(isset($_GET['ticket_id'])){
|
|||||||
|
|
||||||
<div class="card card-body mb-3">
|
<div class="card card-body mb-3">
|
||||||
<h4 class="text-secondary">Details</h4>
|
<h4 class="text-secondary">Details</h4>
|
||||||
<div class="ml-1"><i class="fa fa-fw fa-thermometer-half text-secondary mr-2 mb-2"></i> <?php echo $ticket_priority; ?></div>
|
<div class="ml-1"><i class="fa fa-fw fa-thermometer-half text-secondary mr-2 mb-2"></i> <?php echo $ticket_priority_display; ?></div>
|
||||||
<div class="ml-1"><i class="fa fa-fw fa-user text-secondary mr-2 mb-2"></i> <?php echo $name; ?></div>
|
<div class="ml-1"><i class="fa fa-fw fa-user text-secondary mr-2 mb-2"></i> <?php echo $name; ?></div>
|
||||||
<div class="ml-1"><i class="fa fa-fw fa-clock text-secondary mr-2 mb-2"></i> <?php echo $ticket_created_at; ?></div>
|
<div class="ml-1"><i class="fa fa-fw fa-clock text-secondary mr-2 mb-2"></i> <?php echo $ticket_created_at; ?></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
12
tickets.php
12
tickets.php
@@ -126,6 +126,16 @@
|
|||||||
$ticket_badge_color = "info";
|
$ticket_badge_color = "info";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($ticket_priority == "High"){
|
||||||
|
$ticket_priority_display = "<span class='p-2 badge badge-danger'>$ticket_priority</span>";
|
||||||
|
}elseif($ticket_priority == "Medium"){
|
||||||
|
$ticket_priority_display = "<span class='p-2 badge badge-warning'>$ticket_priority</span>";
|
||||||
|
}elseif($ticket_priority == "Low"){
|
||||||
|
$ticket_priority_display = "<span class='p-2 badge badge-info'>$ticket_priority</span>";
|
||||||
|
}else{
|
||||||
|
$ticket_priority_display = "-";
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
@@ -139,7 +149,7 @@
|
|||||||
<td><a href="client.php?client_id=<?php echo $client_id; ?>&tab=tickets"><?php echo $client_name; ?></a></td>
|
<td><a href="client.php?client_id=<?php echo $client_id; ?>&tab=tickets"><?php echo $client_name; ?></a></td>
|
||||||
<td><?php echo $ticket_subject; ?></td>
|
<td><?php echo $ticket_subject; ?></td>
|
||||||
<td>Never</td>
|
<td>Never</td>
|
||||||
<td><?php echo $ticket_priority; ?></td>
|
<td><?php echo $ticket_priority_display; ?></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="dropdown dropleft text-center">
|
<div class="dropdown dropleft text-center">
|
||||||
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
|
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
|
||||||
|
|||||||
Reference in New Issue
Block a user