mirror of https://github.com/itflow-org/itflow
Merge pull request #422 from wrongecho/misc
Allow client to close ticket from portal
This commit is contained in:
commit
f89902caa3
|
|
@ -89,7 +89,7 @@ $total_tickets = $row['total_tickets'];
|
||||||
<?php
|
<?php
|
||||||
while($ticket = mysqli_fetch_array($contact_tickets)){
|
while($ticket = mysqli_fetch_array($contact_tickets)){
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td> <a href='ticket.php?id=$ticket[ticket_id]'> $ticket[ticket_number]</a></td>";
|
echo "<td> <a href='ticket.php?id=$ticket[ticket_id]'> $ticket[ticket_prefix]$ticket[ticket_number]</a></td>";
|
||||||
echo "<td> <a href='ticket.php?id=$ticket[ticket_id]'> $ticket[ticket_subject]</a></td>";
|
echo "<td> <a href='ticket.php?id=$ticket[ticket_id]'> $ticket[ticket_subject]</a></td>";
|
||||||
echo "<td>$ticket[ticket_status]</td>";
|
echo "<td>$ticket[ticket_status]</td>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
|
|
|
||||||
|
|
@ -23,34 +23,16 @@ if(isset($_GET['id']) && intval($_GET['id'])) {
|
||||||
|
|
||||||
<nav class="navbar navbar-dark bg-dark">
|
<nav class="navbar navbar-dark bg-dark">
|
||||||
|
|
||||||
<i class="fas fa-fw fa-ticket-alt text-secondary"></i> <a class="navbar-brand" href="#">Ticket number # <?php echo $ticket['ticket_prefix'], $ticket['ticket_number'] ?></a>
|
<i class="fas fa-fw fa-ticket-alt text-secondary"></i> <a class="navbar-brand">Ticket <?php echo $ticket['ticket_prefix'], $ticket['ticket_number'] ?></a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<span class="navbar-text">
|
<span class="navbar-text">
|
||||||
<?php
|
<?php
|
||||||
if($ticket_status !== "Closed"){
|
if($ticket_status !== "Closed"){ ?>
|
||||||
?>
|
<button class="btn btn-sm btn-outline-success my-2 my-sm-0 form-inline my-2 my-lg-0" type="submit"><a href="portal_post.php?close_ticket=<?php echo $ticket_id; ?>"><i class="fas fa-fw fa-check text-secondary text-success"></i> Close ticket</a></button>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
<button class="btn btn-sm btn-outline-success my-2 my-sm-0 form-inline my-2 my-lg-0" type="submit"><a href="post.php?close_ticket=<?php echo $ticket_id; ?>"><i class="fas fa-fw fa-check text-secondary text-success"></i> Close ticket</a></button>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
|
|
@ -66,9 +48,6 @@ if(isset($_GET['id']) && intval($_GET['id'])) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Either show the reply comments box, ticket smiley feedback, or thanks for feedback -->
|
<!-- Either show the reply comments box, ticket smiley feedback, or thanks for feedback -->
|
||||||
|
|
||||||
|
|
@ -170,7 +149,6 @@ if(isset($_GET['id']) && intval($_GET['id'])) {
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ $all_tickets = mysqli_query($mysqli, "SELECT * FROM tickets LEFT JOIN contacts O
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<th scope="col">#</th>
|
||||||
<th scope="col">Subject</th>
|
<th scope="col">Subject</th>
|
||||||
<th scope="col">Contact</th>
|
<th scope="col">Contact</th>
|
||||||
<th scope="col">Status</th>
|
<th scope="col">Status</th>
|
||||||
|
|
@ -56,6 +57,7 @@ $all_tickets = mysqli_query($mysqli, "SELECT * FROM tickets LEFT JOIN contacts O
|
||||||
<?php
|
<?php
|
||||||
while($ticket = mysqli_fetch_array($all_tickets)){
|
while($ticket = mysqli_fetch_array($all_tickets)){
|
||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
|
echo "<td> <a href='ticket.php?id=$ticket[ticket_id]'> $ticket[ticket_prefix]$ticket[ticket_id]</a></td>";
|
||||||
echo "<td> <a href='ticket.php?id=$ticket[ticket_id]'> $ticket[ticket_subject]</a></td>";
|
echo "<td> <a href='ticket.php?id=$ticket[ticket_id]'> $ticket[ticket_subject]</a></td>";
|
||||||
echo "<td>$ticket[contact_name]</td>";
|
echo "<td>$ticket[contact_name]</td>";
|
||||||
echo "<td>$ticket[ticket_status]</td>";
|
echo "<td>$ticket[ticket_status]</td>";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue