PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
ticketing-old
/
include
/
staff
/
templates
<?php // Tasks' mass actions based on logged in agent $actions = array(); if ($agent->hasPerm(Task::PERM_CLOSE, false)) { if (isset($options['status'])) { $status = $options['status']; if (strpos($status, 'closed') !== false) { $actions += array( 'reopen' => array( 'icon' => 'icon-undo', 'action' => __('Reopen') )); } if (strpos($status, 'open') !== false) { $actions += array( 'close' => array( 'icon' => 'icon-ok-circle', 'action' => __('Close') )); } } } if ($agent->hasPerm(Task::PERM_ASSIGN, false)) { $actions += array( 'claim' => array( 'icon' => 'icon-user', 'action' => __('Claim') )); $actions += array( 'assign/agents' => array( 'icon' => 'icon-user', 'action' => __('Assign to Agent') )); $actions += array( 'assign/teams' => array( 'icon' => 'icon-group', 'action' => __('Assign to Team') )); } if ($agent->hasPerm(Task::PERM_TRANSFER, false)) { $actions += array( 'transfer' => array( 'icon' => 'icon-share', 'action' => __('Transfer') )); } if ($agent->hasPerm(Task::PERM_DELETE, false)) { $actions += array( 'delete' => array( 'class' => 'danger', 'icon' => 'icon-trash', 'action' => __('Delete') )); } if ($actions && isset($options['status'])) { $more = $options['morelabel'] ?: __('More'); ?> <span class="action-button" data-dropdown="#action-dropdown-moreoptions"> <i class="icon-caret-down pull-right"></i> <a class="tasks-action" href="#moreoptions"><i class="icon-reorder"></i> <?php echo $more; ?></a> </span> <div id="action-dropdown-moreoptions" class="action-dropdown anchor-right"> <ul> <?php foreach ($actions as $a => $action) { ?> <li <?php if ($action['class']) echo sprintf("class='%s'", $action['class']); ?> > <a class="no-pjax tasks-action" <?php if ($action['dialog']) echo sprintf("data-dialog-config='%s'", $action['dialog']); if ($action['redirect']) echo sprintf("data-redirect='%s'", $action['redirect']); ?> href="<?php echo sprintf('#tasks/mass/%s', $a); ?>" ><i class="icon-fixed-width <?php echo $action['icon'] ?: 'icon-tag'; ?>"></i> <?php echo $action['action']; ?></a> </li> <?php } ?> </ul> </div> <?php } else { // Mass Claim/Assignment if ($agent->hasPerm(Task::PERM_ASSIGN, false)) {?> <span class="action-button" data-placement="bottom" data-dropdown="#action-dropdown-assign" data-toggle="tooltip" title=" <?php echo __('Assign'); ?>"> <i class="icon-caret-down pull-right"></i> <a class="tasks-action" id="tasks-assign" href="#tasks/mass/assign"><i class="icon-user"></i></a> </span> <div id="action-dropdown-assign" class="action-dropdown anchor-right"> <ul> <li><a class="no-pjax tasks-action" href="#tasks/mass/claim"><i class="icon-chevron-sign-down"></i> <?php echo __('Claim'); ?></a> <li><a class="no-pjax tasks-action" href="#tasks/mass/assign/agents"><i class="icon-user"></i> <?php echo __('Agent'); ?></a> <li><a class="no-pjax tasks-action" href="#tasks/mass/assign/teams"><i class="icon-group"></i> <?php echo __('Team'); ?></a> </ul> </div> <?php } // Mass Transfer if ($agent->hasPerm(Task::PERM_TRANSFER, false)) {?> <span class="action-button"> <a class="tasks-action" id="tasks-transfer" data-placement="bottom" data-toggle="tooltip" title="<?php echo __('Transfer'); ?>" href="#tasks/mass/transfer"><i class="icon-share"></i></a> </span> <?php } // Mass Delete if ($agent->hasPerm(Task::PERM_DELETE, false)) {?> <span class="red button action-button"> <a class="tasks-action" id="tasks-delete" data-placement="bottom" data-toggle="tooltip" title="<?php echo __('Delete'); ?>" href="#tasks/mass/delete"><i class="icon-trash"></i></a> </span> <?php } } ?> <script type="text/javascript"> $(function() { $(document).off('.tasks-actions'); $(document).on('click.tasks-actions', 'a.tasks-action', function(e) { e.preventDefault(); var $form = $('form#tasks'); var count = checkbox_checker($form, 1); if (count) { var tids = $('.ckb:checked', $form).map(function() { return this.value; }).get(); var url = 'ajax.php/' +$(this).attr('href').substr(1) +'?count='+count +'&tids='+tids.join(',') +'&_uid='+new Date().getTime(); var $redirect = $(this).data('redirect'); $.dialog(url, [201], function (xhr) { $.pjax.defaults.timeout = 30000; if (!!$redirect) $.pjax({url: $redirect, container:'#pjax-container'}); else <?php if (isset($options['callback_url'])) echo sprintf("$.pjax({url: '%s', container: '%s', push: false});", $options['callback_url'], @$options['container'] ?: '#pjax-container' ); else echo sprintf("$.pjax.reload('%s');", @$options['container'] ?: '#pjax-container'); ?> }); } return false; }); }); </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]