</div>
                                                            <?php 
    if (count($attachments)) {
        echo '<span>';
        _e('Attachments:');
        foreach ($attachments as $attachment) {
            ?>

                                                                    <a href="<?php 
            echo module_ticket::link_open_attachment($ticket_id, $attachment['ticket_message_attachment_id']);
            ?>
"><?php 
            echo htmlspecialchars($attachment['file_name']);
            ?>
 (<?php 
            echo file_exists('includes/plugin_ticket/attachments/' . $attachment['ticket_message_attachment_id']) ? frndlyfilesize(filesize('includes/plugin_ticket/attachments/' . $attachment['ticket_message_attachment_id'])) : _l('File Not Found');
            ?>
)</a>
                                                                    <?php 
        }
        echo '</span>';
    }
    ?>

                                                    </div>
                                                    <div class="ticket_message_text">
                                                        <?php 
    /*//echo nl2br(htmlspecialchars($ticket_message['content'])); ?>
                                                            <?php
                                                            $ticket_message['content'] = preg_replace("#<br[^>]*>#",'',$ticket_message['content']);
                                                            switch(module_config::c('ticket_utf8_method',1)){
                                                        </div>
                                                            <?php 
    if (count($attachments)) {
        echo '<span>';
        _e('Attachments:');
        foreach ($attachments as $attachment) {
            ?>

                                                                    <a href="<?php 
            echo module_ticket::link_open_attachment($ticket_id, $attachment['ticket_message_attachment_id']);
            ?>
" class="attachment_link"><?php 
            echo htmlspecialchars($attachment['file_name']);
            ?>
 (<?php 
            echo frndlyfilesize(filesize('includes/plugin_ticket/attachments/' . $attachment['ticket_message_attachment_id']));
            ?>
)</a>
                                                                    <?php 
        }
        echo '</span>';
    }
    ?>

                                                    </div>
                                                    <div class="ticket_message_text">
                                                        <?php 
    // copied to ticket.php in autoresponder:
    // todo: move this out to a function in ticket.php
    // todo: put the utf8_encode / decode as an option for people who have troubles with it.
    /*if(preg_match('#<br[^>]*>#i',$ticket_message['content'])){