mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
Add functionality to edit scheduled tickets. Small other fixes
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<?php
|
||||
//include("config.php");
|
||||
include("header.php");
|
||||
|
||||
//Paging
|
||||
@@ -29,8 +28,9 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
||||
<tr>
|
||||
<th><a class="text-dark">Client</a></th>
|
||||
<th><a class="text-dark">Subject</a></th>
|
||||
<th><a class="text-dark">Frequency</a></th>
|
||||
<th><a class="text-dark">Priority</a></th>
|
||||
<th><a class="text-dark">Frequency</a></th>
|
||||
<th><a class="text-dark">Next Run Date</a></th>
|
||||
|
||||
<th class="text-center">Action</th>
|
||||
</tr>
|
||||
@@ -40,6 +40,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
||||
|
||||
while($row = mysqli_fetch_array($sql)){
|
||||
$scheduled_ticket_id = $row['scheduled_ticket_id'];
|
||||
$scheduled_ticket_client_id = $row['client_id'];
|
||||
$scheduled_ticket_category = $row['scheduled_ticket_category'];
|
||||
$scheduled_ticket_subject = $row['scheduled_ticket_subject'];
|
||||
$scheduled_ticket_details = $row['scheduled_ticket_details'];
|
||||
@@ -55,8 +56,9 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
||||
<tr>
|
||||
<td><a> <?php echo $scheduled_ticket_client_name ?></a></td>
|
||||
<td><a> <?php echo $scheduled_ticket_subject ?></a></td>
|
||||
<td><a> <?php echo $scheduled_ticket_frequency ?></a></td>
|
||||
<td><a> <?php echo $scheduled_ticket_priority ?></a></td>
|
||||
<td><a> <?php echo $scheduled_ticket_frequency ?></a></td>
|
||||
<td><a> <?php echo $scheduled_ticket_next_run ?></a></td>
|
||||
|
||||
<td>
|
||||
<div class="dropdown dropleft text-center">
|
||||
@@ -64,7 +66,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
||||
<i class="fas fa-ellipsis-h"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<!--<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editScheduledTicketModal<?php echo $scheduled_ticket_id; ?>">Edit</a>-->
|
||||
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editScheduledTicketModal<?php echo $scheduled_ticket_id; ?>">Edit</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a class="dropdown-item text-danger" href="post.php?delete_scheduled_ticket=<?php echo $scheduled_ticket_id; ?>">Delete</a>
|
||||
</div>
|
||||
@@ -73,6 +75,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
include("scheduled_tickets_edit_modal.php");
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -85,5 +88,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
||||
|
||||
<?php
|
||||
|
||||
//include(".php");
|
||||
include("footer.php");
|
||||
Reference in New Issue
Block a user