mirror of
https://github.com/itflow-org/itflow
synced 2026-03-03 04:14:54 +00:00
Updated the UI for downloading and displaying ticket attachments under ticket replies
This commit is contained in:
@@ -359,7 +359,6 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
while ($row = mysqli_fetch_array($sql_ticket_replies)) {
|
while ($row = mysqli_fetch_array($sql_ticket_replies)) {
|
||||||
$ticket_reply_id = intval($row['ticket_reply_id']);
|
$ticket_reply_id = intval($row['ticket_reply_id']);
|
||||||
$ticket_reply = $purifier->purify($row['ticket_reply']);
|
$ticket_reply = $purifier->purify($row['ticket_reply']);
|
||||||
//$ticket_reply = $row['ticket_reply'];
|
|
||||||
$ticket_reply_type = nullable_htmlentities($row['ticket_reply_type']);
|
$ticket_reply_type = nullable_htmlentities($row['ticket_reply_type']);
|
||||||
$ticket_reply_created_at = nullable_htmlentities($row['ticket_reply_created_at']);
|
$ticket_reply_created_at = nullable_htmlentities($row['ticket_reply_created_at']);
|
||||||
$ticket_reply_updated_at = nullable_htmlentities($row['ticket_reply_updated_at']);
|
$ticket_reply_updated_at = nullable_htmlentities($row['ticket_reply_updated_at']);
|
||||||
@@ -443,7 +442,7 @@ if (isset($_GET['ticket_id'])) {
|
|||||||
while ($ticket_attachment = mysqli_fetch_array($sql_ticket_reply_attachments)) {
|
while ($ticket_attachment = mysqli_fetch_array($sql_ticket_reply_attachments)) {
|
||||||
$name = nullable_htmlentities($ticket_attachment['ticket_attachment_name']);
|
$name = nullable_htmlentities($ticket_attachment['ticket_attachment_name']);
|
||||||
$ref_name = nullable_htmlentities($ticket_attachment['ticket_attachment_reference_name']);
|
$ref_name = nullable_htmlentities($ticket_attachment['ticket_attachment_reference_name']);
|
||||||
echo "<a target='_blank' href='uploads/tickets/$ticket_id/$ref_name'>$name</a><br>";
|
echo "<hr><i class='fas fa-fw fa-paperclip text-secondary mr-2'></i><a target='_blank' href='uploads/tickets/$ticket_id/$ref_name'>$name</a><div class='mt-1'><i class='fas fa-fw fa-download text-secondary mr-2'></i><a href='uploads/tickets/$ticket_id/$ref_name' download='$name'>Download</a></div>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
<input type="hidden" name="client" value="<?php echo $client_id; ?>">
|
<input type="hidden" name="client" value="<?php echo $client_id; ?>">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Contact <strong class="text-danger">*</strong></label>
|
<label>Contact</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
<div class="tab-pane fade" id="pills-contacts<?php echo $ticket_id; ?>">
|
<div class="tab-pane fade" id="pills-contacts<?php echo $ticket_id; ?>">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Client Contact</label>
|
<label>Contact</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-user"></i></span>
|
||||||
|
|||||||
Reference in New Issue
Block a user