PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
osta
/
old
/
include
/
staff
/
templates
<html> <head> <style type="text/css"> @page { header: html_def; footer: html_def; margin: 15mm; margin-top: 30mm; margin-bottom: 22mm; } .logo { max-width: 220px; max-height: 71px; width: auto; height: auto; margin: 0; } #ticket_thread .message, #ticket_thread .response, #ticket_thread .note { margin-top:10px; border:1px solid #aaa; border-bottom:2px solid #aaa; } #ticket_thread .header { text-align:left; border-bottom:1px solid #aaa; padding:3px; width: 100%; table-layout: fixed; } #ticket_thread .message .header { background:#C3D9FF; } #ticket_thread .response .header { background:#FFE0B3; } #ticket_thread .note .header { background:#FFE; } #ticket_thread .info { padding:5px; background: snow; border-top: 0.3mm solid #ccc; } table.meta-data { width: 100%; } table.custom-data { margin-top: 10px; } table.custom-data th { width: 25%; } table.custom-data th, table.meta-data th { text-align: right; background-color: #ddd; padding: 3px 8px; } table.meta-data td { padding: 3px 8px; } .faded { color:#666; } .pull-left { float: left; } .pull-right { float: right; } .flush-right { text-align: right; } .flush-left { text-align: left; } .ltr { direction: ltr; unicode-bidi: embed; } .headline { border-bottom: 2px solid black; font-weight: bold; } div.hr { border-top: 0.2mm solid #bbb; margin: 0.5mm 0; font-size: 0.0001em; } .thread-entry, .thread-body { page-break-inside: avoid; } img.avatar { vertical-align: middle; padding-right: 2px; max-height: 20px; width: auto; } .thread-event { margin: 10px; padding: 10px; border-radius: 10px; background-color: rgba(224,224,224,0.2); } <?php include ROOT_DIR . 'css/thread.css'; ?> </style> </head> <body> <htmlpageheader name="def" style="display:none"> <?php require_once $_SERVER['DOCUMENT_ROOT'] . ROOT_PATH . "/osta/php/functions.php"; $custom_logo = pdf_logo(get_config()); if ( !is_null($custom_logo)) echo $custom_logo; else if ($logo = $cfg->getClientLogo()) { ?> <img src="cid:<?php echo $logo->getKey(); ?>" class="logo"/> <?php } else { ?> <img src="<?php echo INCLUDE_DIR . 'fpdf/print-logo.png'; ?>" class="logo"/> <?php } ?> <div class="hr"> </div> <table><tr> <td class="flush-left"><?php echo (string) $ost->company; ?></td> <td class="flush-right"><?php echo Format::daydatetime(Misc::gmtime()); ?></td> </tr></table> </htmlpageheader> <htmlpagefooter name="def" style="display:none"> <div class="hr"> </div> <table width="100%"><tr><td class="flush-left"> Ticket #<?php echo $ticket->getNumber(); ?> printed by <?php echo $thisstaff->getUserName(); ?> on <?php echo Format::daydatetime(Misc::gmtime()); ?> </td> <td class="flush-right"> Page {PAGENO} </td> </tr></table> </htmlpagefooter> <div> </div> <!-- Ticket metadata --> <h1>Ticket #<?php echo $ticket->getNumber(); ?></h1> <table class="meta-data" cellpadding="0" cellspacing="0"> <tbody> <tr> <th><?php echo __('Status'); ?></th> <td><?php echo $ticket->getStatus(); ?></td> <th><?php echo __('Name'); ?></th> <td><?php echo $ticket->getOwner()->getName(); ?></td> </tr> <tr> <th><?php echo __('Priority'); ?></th> <td><?php echo $ticket->getPriority(); ?></td> <th><?php echo __('Email'); ?></th> <td><?php echo $ticket->getEmail(); ?></td> </tr> <tr> <th><?php echo __('Department'); ?></th> <td><?php echo $ticket->getDept(); ?></td> <th><?php echo __('Phone'); ?></th> <td><?php echo $ticket->getPhoneNumber(); ?></td> </tr> <tr> <th><?php echo __('Create Date'); ?></th> <td><?php echo Format::datetime($ticket->getCreateDate()); ?></td> <th><?php echo __('Source'); ?></th> <td><?php echo $ticket->getSource(); ?></td> </tr> </tbody> <tbody> <tr><td colspan="4" class="spacer"> </td></tr> </tbody> <tbody> <tr> <th><?php echo __('Assigned To'); ?></th> <td><?php echo $ticket->getAssigned(); ?></td> <th><?php echo __('Help Topic'); ?></th> <td><?php echo $ticket->getHelpTopic(); ?></td> </tr> <tr> <th><?php echo __('SLA Plan'); ?></th> <td><?php if ($sla = $ticket->getSLA()) echo $sla->getName(); ?></td> <th><?php echo __('Last Response'); ?></th> <td><?php echo Format::datetime($ticket->getLastResponseDate()); ?></td> </tr> <tr> <th><?php echo __('Due Date'); ?></th> <td><?php echo Format::datetime($ticket->getEstDueDate()); ?></td> <th><?php echo __('Last Message'); ?></th> <td><?php echo Format::datetime($ticket->getLastMessageDate()); ?></td> </tr> </tbody> </table> <!-- Custom Data --> <?php foreach (DynamicFormEntry::forTicket($ticket->getId()) as $form) { // Skip core fields shown earlier in the ticket view $answers = $form->getAnswers()->exclude(Q::any(array( 'field__flags__hasbit' => DynamicFormField::FLAG_EXT_STORED, 'field__name__in' => array('subject', 'priority') ))); if (count($answers) == 0) continue; ?> <table class="custom-data" cellspacing="0" cellpadding="4" width="100%" border="0"> <tr><td colspan="2" class="headline flush-left"><?php echo $form->getTitle(); ?></th></tr> <?php foreach($answers as $a) { if (!($v = $a->display())) continue; ?> <tr> <th><?php echo $a->getField()->get('label'); ?>:</th> <td><?php echo $v; ?></td> </tr> <?php } ?> </table> <?php $idx++; } ?> <!-- Ticket Thread --> <h2><?php echo $ticket->getSubject(); ?></h2> <div id="ticket_thread"> <?php $events = null; $types = array('M', 'R'); if ($this->includenotes) $types[] = 'N'; $thread = $ticket->getThread(); $entries = $ticket->getThreadEntries($types); if ($this->includeevents) { $events = $thread->getEvents(); $sort = 'id'; if ($options['sort'] && !strcasecmp($options['sort'], 'DESC')) $sort = '-id'; $cmp = function ($a, $b) use ($sort) { return ($sort == 'id') ? ($a < $b) : $a > $b; }; $events = $events->order_by($sort); $eventCount = count($events); $events = new IteratorIterator($events->getIterator()); $events->rewind(); $event = $events->current(); } if ($entries->exists(true)) { $sortedEntries = ThreadEntry::sortEntries($entries, $ticket); foreach ($sortedEntries as $entry) { // TODO: Consider adding a date boundary to indicate significant // changes in dates between thread items. if ($this->includeevents) { while ($event && $cmp($event->timestamp, $entry->created)) { $event->render(ThreadEvent::MODE_STAFF); $events->next(); $event = $events->current(); } } $threadTypes=array('M'=>'message','R'=>'response', 'N'=>'note'); ?> <div class="thread-entry <?php echo $threadTypes[$entry->type]; ?>"> <table class="header" style="width:100%"><tr><td> <span><?php echo Format::datetime($entry->created);?></span> <span style="padding:0 1em" class="faded title"><?php echo Format::truncate($entry->title, 100); ?></span> </td> <td class="flush-right faded title" style="white-space:no-wrap"> <?php echo Format::htmlchars($entry->getName()); ?></span> </td> </tr></table> <div class="thread-body"> <div><?php echo $entry->getBody()->display('pdf'); ?></div> <?php if ($entry->has_attachments && ($files = $entry->attachments)) { ?> <div class="info"> <?php foreach ($files as $A) { ?> <div> <span><?php echo Format::htmlchars($A->file->name); ?></span> <span class="faded">(<?php echo Format::file_size($A->file->size); ?>)</span> </div> <?php } ?> </div> <?php } ?> </div> </div> <?php } } // Emit all other events while ($event) { $event->render(ThreadEvent::MODE_STAFF); $events->next(); $event = $events->current(); } ?> </div> </body> </html>
[+]
..
[-] queue-export.tmpl.php
[edit]
[-] queue-preview.tmpl.php
[edit]
[-] queue-column-condition.tmpl.php
[edit]
[-] queue-sorting-add.tmpl.php
[edit]
[-] refer.tmpl.php
[edit]
[-] form-manage.tmpl.php
[edit]
[-] confirm.tmpl.php
[edit]
[-] queue-column-condition-prop.tmpl.php
[edit]
[-] user-lookup.tmpl.php
[edit]
[-] thread-entry.tmpl.php
[edit]
[-] quick-add-role.tmpl.php
[edit]
[-] simple-form.tmpl.php
[edit]
[-] sequence-manage.tmpl.php
[edit]
[-] reset-agent-permissions.tmpl.php
[edit]
[-] email-basicauth.tmpl.php
[edit]
[-] user-register.tmpl.php
[edit]
[-] thread-entry-edit.tmpl.php
[edit]
[-] queue-savedsearches-nav.tmpl.php
[edit]
[-] assign.tmpl.php
[edit]
[-] user-delete.tmpl.php
[edit]
[-] tickets.tmpl.php
[edit]
[-] export.tmpl.php
[edit]
[-] ticket-status.tmpl.php
[edit]
[-] merge-tickets.tmpl.php
[edit]
[-] notes.tmpl.php
[edit]
[-] queue-column-add.tmpl.php
[edit]
[-] user-import.tmpl.php
[edit]
[-] queue-fields.tmpl.php
[edit]
[-] dynamic-form-simple.tmpl.php
[edit]
[-] queue-quickfilter.tmpl.php
[edit]
[-] merge-preview.tmpl.php
[edit]
[-] field-edit.tmpl.php
[edit]
[-] org.tmpl.php
[edit]
[-] list-import.tmpl.php
[edit]
[-] thread-event.tmpl.php
[edit]
[-] tickets-actions.tmpl.php
[edit]
[-] queue-column-edit.tmpl.php
[edit]
[-] status-options.tmpl.php
[edit]
[-] navigation.tmpl.php
[edit]
[-] field-view.tmpl.php
[edit]
[-] tasks-queue-sort.tmpl.php
[edit]
[-] ticket-preview.tmpl.php
[edit]
[-] list-items.tmpl.php
[edit]
[-] thread-entries.tmpl.php
[edit]
[-] queue-tickets.tmpl.php
[edit]
[-] list-item-properties.tmpl.php
[edit]
[-] email-smtp.tmpl.php
[edit]
[-] release.tmpl.php
[edit]
[-] advanced-search.tmpl.php
[edit]
[-] schedule-holidays.tmpl.php
[edit]
[-] delete.tmpl.php
[edit]
[-] plugin-instance-modal.tmpl.php
[edit]
[-] thread-entry-view.tmpl.php
[edit]
[-] list-item-row.tmpl.php
[edit]
[-] faq-print.tmpl.php
[edit]
[-] sub-navigation.tmpl.php
[edit]
[-] plugin-instances.tmpl.php
[edit]
[-] collaborators.tmpl.php
[edit]
[-] list-item-preview.tmpl.php
[edit]
[-] task-edit.tmpl.php
[edit]
[-] set-password.tmpl.php
[edit]
[-] users.tmpl.php
[edit]
[-] queue-sort.tmpl.php
[edit]
[-] dynamic-field-config.tmpl.php
[edit]
[-] thread-email-recipients.tmpl.php
[edit]
[-] task-print.tmpl.php
[edit]
[-] org-delete.tmpl.php
[edit]
[-] 2fas.tmpl.php
[edit]
[-] advanced-search-criteria.tmpl.php
[edit]
[-] mark-as.tmpl.php
[edit]
[-] queue-subnavigation.tmpl.php
[edit]
[-] user-account.tmpl.php
[edit]
[-] queue-sorting.tmpl.php
[edit]
[-] advanced-search-field.tmpl.php
[edit]
[-] schedule-diagnostic.tmpl.php
[edit]
[-] schedule-entry.tmpl.php
[edit]
[-] inline-form.tmpl.php
[edit]
[-] task-view.tmpl.php
[edit]
[-] dynamic-form.tmpl.php
[edit]
[-] queue-navigation.tmpl.php
[edit]
[-] quick-add.tmpl.php
[edit]
[-] note.tmpl.php
[edit]
[-] thread-email-headers.tmpl.php
[edit]
[-] queue-sorting-edit.tmpl.php
[edit]
[-] queue-columns.tmpl.php
[edit]
[-] email-oauth2auth.tmpl.php
[edit]
[-] org-lookup.tmpl.php
[edit]
[-] user.tmpl.php
[edit]
[-] thread-entries-preview.tmpl.php
[edit]
[-] dynamic-form-fields-view.tmpl.php
[edit]
[-] savedqueue-settings.tmpl.php
[edit]
[-] tasks-actions.tmpl.php
[edit]
[-] thread-entry-resend.tmpl.php
[edit]
[-] plugin-instance.tmpl.php
[edit]
[-] content-manage.tmpl.php
[edit]
[-] timezone.tmpl.php
[edit]
[-] schedule-add.tmpl.php
[edit]
[-] task-status.tmpl.php
[edit]
[-] email-mailbox.tmpl.php
[edit]
[-] transfer.tmpl.php
[edit]
[-] collaborators-preview.tmpl.php
[edit]
[-] task.tmpl.php
[edit]
[-] org-profile.tmpl.php
[edit]
[-] queue-column.tmpl.php
[edit]
[-] schedule-entries.tmpl.php
[edit]
[-] task-preview.tmpl.php
[edit]
[-] ticket-print.tmpl.php
[edit]