diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index c7549cb5..79d58367 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -1056,6 +1056,134 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); ?> +
+
+

+ +

+
+ +
+
+
+ 0): + $first = true; + while ($note = hesk_dbFetchAssoc($res)): + if (!$first) { + echo '
'; + } else { + $first = false; + } + ?> +
+
+

+ + -

+
' : ''; + + $att = explode(',', substr($note['attachments'], 0, -1)); + $num = count($att); + foreach ($att as $myatt) { + list($att_id, $att_name) = explode('#', $myatt); + + // Can edit and delete note (attachments)? + if ($can_del_notes || $note['who'] == $_SESSION['id']) { + // If this is the last attachment and no message, show "delete ticket" link + if ($num == 1 && strlen($note['message']) == 0) { + echo ' + + '; + } // Show "delete attachment" link + else { + echo ' + + '; + } + } + + echo ' + + + + ' . $att_name . '
+ '; + } + } + ?> +
+
+ + + +   + + + + +
+
+ +
+ + + +
+ + + + @@ -1142,164 +1305,14 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
-
- - -
-
-
-
-

- - -

-
' : ''; - - $att = explode(',', substr($note['attachments'], 0, -1)); - $num = count($att); - foreach ($att as $myatt) { - list($att_id, $att_name) = explode('#', $myatt); - - // Can edit and delete note (attachments)? - if ($can_del_notes || $note['who'] == $_SESSION['id']) { - // If this is the last attachment and no message, show "delete ticket" link - if ($num == 1 && strlen($note['message']) == 0) { - echo ' - - '; - } // Show "delete attachment" link - else { - echo ' - - '; - } - } - - echo ' - - - - ' . $att_name . '
- '; - } - } - ?> -
-
- - - -
-
-
-
- -
-
- : - -   - - -
-
-
-
-
- -
-
-
-
-
- -
-
-
- - - - -
-
-
-
- -
-
-
- - ' . $article['subject'] . '
'; - } - - // Loop through the IDs to preserve the order they were suggested in - $articles = explode(',', $ticket['articles']); - foreach ($articles as $article) { - if (isset($suggested[$article])) { - $suggested_list .= $suggested[$article]; - } - } - - // Finally print suggested articles - if (strlen($suggested_list)) { - $suggested_list = '
' . $hesklang['taws'] . '
' . $suggested_list . ' '; - echo $_SESSION['show_suggested'] ? $suggested_list : '' . $hesklang['sska'] . ''; - } - } - ?> -
-
-
tbody > tr > td > i { + color: #ddd; + text-shadow: 2px 2px #ccc; +} + +.attachment-table > tbody > tr > td { + vertical-align: middle; +} + +.attachment-table > tbody > tr > td > span > img { + max-height: 80px; + max-width: 80px; + cursor: pointer; +} + +.note { + border-bottom: solid 1px #000; +} + +.fileinput-button { + width: 100%; + border-top-left-radius: 0; + border-top-right-radius: 0; + margin-top: -2px; +} + +.file-row p.name { + overflow: hidden; + text-overflow: ellipsis; } \ No newline at end of file diff --git a/inc/view_attachment_functions.inc.php b/inc/view_attachment_functions.inc.php index d2d82586..a65c00e6 100644 --- a/inc/view_attachment_functions.inc.php +++ b/inc/view_attachment_functions.inc.php @@ -14,7 +14,6 @@ function mfh_listAttachments($attachments = '', $reply = 0, $is_staff) } /* List attachments */ - echo '

' . $hesklang['attachments'] . ':


'; $att = explode(',', substr($attachments, 0, -1)); echo '
'; echo '';