PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
osta
/
old
/
include
/
staff
/
templates
<?php // Display errors if any foreach ($form->errors(true) ?: array() as $message) echo sprintf('<div class="error-banner">%s</div>', Format::htmlchars($message)); // Current search fields. $info = $search->getSearchFields($form) ?: array(); if (($search instanceof SavedQueue) && !$search->checkOwnership($thisstaff)) { $matches = $search->getSupplementalMatches(); // Uneditable core criteria for the queue echo '<div class="faded">'. nl2br(Format::htmlchars($search->describeCriteria())). '</div><br>'; // Show any supplemental filters if ($matches) { ?> <div id="ticket-flags" style="padding:5px; border-top: 1px dotted #777;"> <strong><i class="icon-caret-down"></i> <?php echo __('Supplemental Filters'); ?></strong> </div> <?php } } else { $matches = $search->getSupportedMatches(); } foreach (array_keys($info) as $F) { ?><input type="hidden" name="fields[]" value="<?php echo $F; ?>"/><?php } $has_errors = !!$form->errors(); $inbody = false; $already_listed = []; $first_field = true; foreach ($form->getFields() as $name=>$field) { @list($name, $sub) = explode('+', $field->get('name'), 2); $already_listed[$name] = 1; if ($sub === 'search') { if (!$first_field) { echo '</div></div>'; } echo '<div class="adv-search-field-container">'; $inbody = false; $first_field = false; } elseif (!$first_field && !$inbody) { echo sprintf('<div class="adv-search-field-body %s">', !$has_errors && isset($info[$name]) && $info[$name]['active'] ? 'hidden' : ''); $inbody = true; } ?> <fieldset id="field<?php echo $field->getWidget()->id; ?>" <?php $class = array(); if (!$field->isVisible()) $class[] = "hidden"; if ($sub === 'method') $class[] = "adv-search-method"; elseif ($sub === 'search') $class[] = "adv-search-field"; elseif ($field->get('__searchval__')) $class[] = "adv-search-val"; if ($class) echo 'class="'.implode(' ', $class).'"'; ?>> <?php echo $field->render(); ?> <?php if (!$has_errors && $sub === 'search' && isset($info[$name]) && $info[$name]['active']) { ?> <span style="padding-left: 5px"> <a href="#" data-name="<?php echo Format::htmlchars($name); ?>" onclick="javascript: var $this = $(this), name = $this.data('name'), expanded = $this.data('expanded') || false; $this.closest('.adv-search-field-container').find('.adv-search-field-body').slideDown('fast'); $this.find('span.faded').hide(); $this.find('i').removeClass('icon-caret-right').addClass('icon-caret-down'); return false; "><i class="icon-caret-right"></i> <span class="faded"><?php echo $search->describeField($info[$name]); ?></span> </a> </span> <?php } ?> <?php foreach ($field->errors() as $E) { ?><div class="error"><?php echo $E; ?></div><?php } ?> </fieldset> <?php if ($name[0] == ':' && substr($name, -7) == '+search') { list($N,) = explode('+', $name, 2); ?> <input type="hidden" name="fields[]" value="<?php echo $N; ?>"/> <?php } } if (!$first_field) echo '</div></div>'; if ($matches && is_array($matches)) { ?> <div id="extra-fields"></div> <hr/> <i class="icon-plus-sign"></i> <select id="search-add-new-field" name="new-field" style="max-width: 300px;"> <option value="">— <?php echo __('Add Other Field'); ?> —</option> <?php foreach ($matches as $path => $F) { # Skip fields already listed above the drop-down if (isset($already_listed[$path])) continue; list($label, $field) = $F; ?> <option value="<?php echo $path; ?>" <?php if (isset($state[$path])) echo 'disabled="disabled"'; ?>><?php echo $label; ?></option> <?php } ?> </select> <script> $(function() { $('#search-add-new-field').on('change', function() { var that=this; $.ajax({ url: 'ajax.php/tickets/search/field/'+$(this).val(), type: 'get', dataType: 'json', success: function(json) { if (!json.success) return false; $(that).find(':selected').prop('disabled', true); $(that).find('option:eq("")').prop('selected', true); $('#extra-fields').append($(json.html)); } }); }); }); </script> <?php } ?>
[+]
..
[-] 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]