PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
ticketing-old
/
include
/
staff
/
templates
<?php $qname = $queue->getName() ?: __('Tickets Export'); // Session cache $cache = $_SESSION['Export:Q'.$queue->getId()]; if (isset($cache['filename'])) $filename = $cache['filename']; else $filename = trim(sprintf('%s Tickets - %s.csv', Format::htmlchars($queue->getName() ?: ''), date('Ymd'))); if (isset($cache['delimiter'])) $delimiter = $cache['delimiter']; else $delimiter = Internationalization::getCSVDelimiter(); $fields = $queue->getExportFields(false) ?: array(); if (isset($cache['fields']) && $fields) $fields = array_intersect_key($fields, array_flip($cache['fields'])); $action = isset($info['action']) ? $info['action'] : '#tickets/export/'.$queue->getId(); ?> <div id="tickets-export"> <h3 class="drag-handle"><?php echo Format::htmlchars($qname); ?></h3> <a class="close" href=""><i class="icon-remove-circle"></i></a> <hr/> <?php if (isset($errors['err'])) { ?> <div id="msg_error" class="error-banner"><?php echo Format::htmlchars($errors['err']); ?></div> <?php } ?> <form action="<?php echo $action; ?>" method="post" name="queue-export" id="queue-export"> <div style="overflow-y: auto; height:400px; margin-bottom:5px;"> <table class="table"> <tbody> <tr class="header"> <td><small><i class="icon-caret-down"></i> <?php echo sprintf('%s <strong class="faded">( <span id="fields-count">%d</span> %s )</strong>', __('Check columns to export'), count($fields), __('selected')); ?> </small></td> </tr> </tbody> <tbody class="sortable-rows" id="fields"> <?php foreach (array_merge($fields, CustomQueue::getExportableFields()) as $path => $label) { echo sprintf('<tr style="display: table-row;"> <td><i class="faded-more icon-sort"></i> <label><input type="checkbox" name="fields[]" value="%s" %s> <span>%s</span></label><td></tr>', $path, isset($fields[$path]) ? 'checked="checked"' : '', @$fields[$path] ?: $label); } ?> </tbody> </table> </div> <?php if ($queue->isSaved()) { ?> <div id="save-changes" class="hidden" style="padding-top:5px; border-top: 1px dotted #ddd;"> <span><i class="icon-bell-alt" style="color:red;"></i> <label><input type="checkbox" name='save-changes' > Save export preference changes</label> </span> </div> <?php } ?> <div style="margin-top:10px;"><small><a href="#" id="more"><i class="icon-caret-right"></i> <?php echo __('Advanced CSV Options'); ?></a></small></div> <div id="more-options" class="hidden" style="padding:5px; border-top: 1px dotted #777;"> <div><span class="faded" style="width:60px;"><?php echo __('Filename'); ?>: </span><input name="filename" type="text" size="40" value="<?php echo Format::htmlchars($filename); ?>"></div> <div><span class="faded" style="width:60px;"><?php echo __('Delimiter'); ?>: </span><input name="csv-delimiter" type="text" maxlength="1" size=10 value="<?php echo $delimiter; ?>" placeholder=", (Comma)" maxlength="1" /></div> </div> <p class="full-width"> <span class="buttons pull-left"> <input type="reset" id="reset" value="<?php echo __('Reset'); ?>"> <input type="button" name="cancel" class="close" value="<?php echo __('Cancel'); ?>"> </span> <span class="buttons pull-right"> <input type="submit" value="<?php echo __('Export'); ?>"> </span> </p> </form> </div> <div class="clear"></div> <script> +function() { // Return a helper with preserved width of cells var fixHelper = function(e, ui) { ui.children().each(function() { $(this).width($(this).width()); }); return ui; }; // Sortable tables for dynamic forms objects $('.sortable-rows').sortable({ 'helper': fixHelper, 'cursor': 'move', 'stop': function(e, ui) { $('div#save-changes').fadeIn(); } }); $('#more').click(function() { var more = $(this); $('#more-options').slideToggle('fast', function(){ if ($(this).is(":hidden")) more.find('i').removeClass('icon-caret-down').addClass('icon-caret-right'); else more.find('i').removeClass('icon-caret-right').addClass('icon-caret-down'); }); return false; }); $(document).on('change', 'tbody#fields input:checkbox', function (e) { var f = $(this).closest('form'); var count = $("input[name='fields[]']:checked", f).length; $('div#save-changes', f).fadeIn(); $('span#fields-count', f).html(count); }); $(document).on('click', 'input#reset', function(e) { var f = $(this).closest('form'); $('input.save-changes', f).prop('checked', false); $('span#fields-count', f).html(<?php echo count($fields); ?>); $('div#save-changes', f).hide(); }); }(); </script>
[+]
..
[-] 2fas.tmpl.php
[edit]
[-] advanced-search-criteria.tmpl.php
[edit]
[-] advanced-search-field.tmpl.php
[edit]
[-] advanced-search.tmpl.php
[edit]
[-] assign.tmpl.php
[edit]
[-] collaborators-preview.tmpl.php
[edit]
[-] collaborators.tmpl.php
[edit]
[-] confirm.tmpl.php
[edit]
[-] content-manage.tmpl.php
[edit]
[-] delete.tmpl.php
[edit]
[-] dynamic-field-config.tmpl.php
[edit]
[-] dynamic-form-fields-view.tmpl.php
[edit]
[-] dynamic-form-simple.tmpl.php
[edit]
[-] dynamic-form.tmpl.php
[edit]
[-] email-basicauth.tmpl.php
[edit]
[-] email-mailbox.tmpl.php
[edit]
[-] email-oauth2auth.tmpl.php
[edit]
[-] email-smtp.tmpl.php
[edit]
[-] export.tmpl.php
[edit]
[-] faq-print.tmpl.php
[edit]
[-] field-edit.tmpl.php
[edit]
[-] field-view.tmpl.php
[edit]
[-] form-manage.tmpl.php
[edit]
[-] inline-form.tmpl.php
[edit]
[-] list-import.tmpl.php
[edit]
[-] list-item-preview.tmpl.php
[edit]
[-] list-item-properties.tmpl.php
[edit]
[-] list-item-row.tmpl.php
[edit]
[-] list-items.tmpl.php
[edit]
[-] mark-as.tmpl.php
[edit]
[-] merge-preview.tmpl.php
[edit]
[-] merge-tickets.tmpl.php
[edit]
[-] navigation.tmpl.php
[edit]
[-] note.tmpl.php
[edit]
[-] notes.tmpl.php
[edit]
[-] org-delete.tmpl.php
[edit]
[-] org-lookup.tmpl.php
[edit]
[-] org-profile.tmpl.php
[edit]
[-] org.tmpl.php
[edit]
[-] plugin-instance-modal.tmpl.php
[edit]
[-] plugin-instance.tmpl.php
[edit]
[-] plugin-instances.tmpl.php
[edit]
[-] queue-column-add.tmpl.php
[edit]
[-] queue-column-condition-prop.tmpl.php
[edit]
[-] queue-column-condition.tmpl.php
[edit]
[-] queue-column-edit.tmpl.php
[edit]
[-] queue-column.tmpl.php
[edit]
[-] queue-columns.tmpl.php
[edit]
[-] queue-export.tmpl.php
[edit]
[-] queue-fields.tmpl.php
[edit]
[-] queue-navigation.tmpl.php
[edit]
[-] queue-preview.tmpl.php
[edit]
[-] queue-quickfilter.tmpl.php
[edit]
[-] queue-savedsearches-nav.tmpl.php
[edit]
[-] queue-sort.tmpl.php
[edit]
[-] queue-sorting-add.tmpl.php
[edit]
[-] queue-sorting-edit.tmpl.php
[edit]
[-] queue-sorting.tmpl.php
[edit]
[-] queue-subnavigation.tmpl.php
[edit]
[-] queue-tickets.tmpl.php
[edit]
[-] quick-add-role.tmpl.php
[edit]
[-] quick-add.tmpl.php
[edit]
[-] refer.tmpl.php
[edit]
[-] release.tmpl.php
[edit]
[-] reset-agent-permissions.tmpl.php
[edit]
[-] savedqueue-settings.tmpl.php
[edit]
[-] schedule-add.tmpl.php
[edit]
[-] schedule-diagnostic.tmpl.php
[edit]
[-] schedule-entries.tmpl.php
[edit]
[-] schedule-entry.tmpl.php
[edit]
[-] schedule-holidays.tmpl.php
[edit]
[-] sequence-manage.tmpl.php
[edit]
[-] set-password.tmpl.php
[edit]
[-] simple-form.tmpl.php
[edit]
[-] status-options.tmpl.php
[edit]
[-] sub-navigation.tmpl.php
[edit]
[-] task-edit.tmpl.php
[edit]
[-] task-preview.tmpl.php
[edit]
[-] task-print.tmpl.php
[edit]
[-] task-status.tmpl.php
[edit]
[-] task-view.tmpl.php
[edit]
[-] task.tmpl.php
[edit]
[-] tasks-actions.tmpl.php
[edit]
[-] tasks-queue-sort.tmpl.php
[edit]
[-] thread-email-headers.tmpl.php
[edit]
[-] thread-email-recipients.tmpl.php
[edit]
[-] thread-entries-preview.tmpl.php
[edit]
[-] thread-entries.tmpl.php
[edit]
[-] thread-entry-edit.tmpl.php
[edit]
[-] thread-entry-resend.tmpl.php
[edit]
[-] thread-entry-view.tmpl.php
[edit]
[-] thread-entry.tmpl.php
[edit]
[-] thread-event.tmpl.php
[edit]
[-] ticket-preview.tmpl.php
[edit]
[-] ticket-print.tmpl.php
[edit]
[-] ticket-status.tmpl.php
[edit]
[-] tickets-actions.tmpl.php
[edit]
[-] tickets.tmpl.php
[edit]
[-] timezone.tmpl.php
[edit]
[-] transfer.tmpl.php
[edit]
[-] user-account.tmpl.php
[edit]
[-] user-delete.tmpl.php
[edit]
[-] user-import.tmpl.php
[edit]
[-] user-lookup.tmpl.php
[edit]
[-] user.tmpl.php
[edit]
[-] user-register.tmpl.php
[edit]
[-] users.tmpl.php
[edit]