PATH:
home
/
centosnipponia
/
public_html
/
ticketing.nipponia.com
/
include
/
staff
<div> <div class="pull-right"> <a href="queues.php?t=tickets&a=add" class="green button action-button"><i class="icon-plus-sign"></i> <?php echo __('Add New Queue');?></a> <span class="action-button" data-dropdown="#action-dropdown-more"> <i class="icon-caret-down pull-right"></i> <span ><i class="icon-cog"></i> <?php echo __('More');?></span> </span> <div id="action-dropdown-more" class="action-dropdown anchor-right"> <ul id="actions"> <li> <a class="queue-action no-pjax" data-action="enable" href="#queues.php"> <i class="icon-ok-sign icon-fixed-width"></i> <?php echo __( 'Enable'); ?> </a> </li> <li> <a class="queue-action no-pjax" data-action="disable" href="#queues.php"> <i class="icon-ban-circle icon-fixed-width"></i> <?php echo __( 'Disable'); ?> </a> </li> <li class="danger"> <a class="queue-action no-pjax" data-action="delete" href="#queues.php"> <i class="icon-trash icon-fixed-width"></i> <?php echo __( 'Delete'); ?> </a> </li> </ul> </div> </div> <input type="hidden" name="do" value="mass_process" /> <h3><?php echo __('Ticket Queues');?></h3> </div> <div class="clear"></div> <?php csrf_token(); ?> <table class="list" border="0" cellspacing="1" cellpadding="0" width="940"> <thead> <tr> <th width="3%"> </th> <th colspan="5" width="47%"><?php echo __('Name');?></th> <th width="12%"><?php echo __('Creator');?></th> <th width="8%"><?php echo __('Status');?></th> <th width="10%" nowrap><?php echo __('Created');?></th> </tr> </thead> <tbody class="sortable-rows" data-sort="qsort"> <?php $all_queues = CustomQueue::queues()->getIterator(); $emitLevel = function($queues, $level=0) use ($all_queues, &$emitLevel) { $queues->sort(function($a) { return $a->sort; }); foreach ($queues as $q) { ?> <tr> <?php if ($level) { ?> <td colspan="<?php echo max(1, $level); ?>"></td> <?php } ?> <!--osta--> <td align="center"> <p class="checkbox"><input type="checkbox" class="mass checkbox" name="qids[]" value="<?php echo $q->id; ?>" <?php echo $sel ? 'checked="checked" ' : ''; ?> <?php echo $default?'disabled="disabled" ':''; ?>><label></label></p> </td> <td width="63%" colspan="<?php echo max(1, 5-$level); ?>"><a href="queues.php?id=<?php echo $q->getId(); ?>"><?php echo Format::htmlchars($q->getFullName()); ?></a> <i class="faded-more pull-right icon-sort"></i></td> <td><?php echo Format::htmlchars($q->staff ? $q->staff->getName() : __('SYSTEM')); ?></td> <td><?php echo Format::htmlchars($q->getStatus()); ?></td> <td><?php echo Format::date($q->created); ?></td> </tr> <?php $children = $all_queues->findAll(array('parent_id' => $q->id)); if (count($children)) { $emitLevel($children, $level+1); } } }; $emitLevel($all_queues->findAll(array('parent_id' => 0))); ?> </tbody> </table> <script> $(function() { var goBaby = function(action) { var ids = [], that = this, $form = $(this).closest('form'); $('input:checkbox.mass:checked', $form).each(function() { ids.push($(this).val()); }); if (ids.length) { $.confirm(__('You sure?')).then(function(promise) { if (promise === false) return false; $.each(ids, function() { $form.append($('<input type="hidden" name="ids[]">').val(this)); }); $form.append($('<input type="hidden" name="a" />') .val($(that).data('action'))); $form.append($('<input type="hidden" name="count" />') .val(ids.length)); $form.attr('action', action); // I don't know why, but submitting the form doesn't work... $form.find('[type=submit]').trigger('click'); }); } else { $.sysAlert(__('Oops'), __('You need to select at least one item')); } }; $(document).on('click', 'a.queue-action', function(e) { e.preventDefault(); goBaby.call(this, $(this).attr('href').substr(1)); return false; }); }); </script>
[+]
..
[-] faq-categories.inc.php
[edit]
[-] settings-autoresp.inc.php
[edit]
[-] login.header.php
[edit]
[-] ticket-tasks.inc.php
[edit]
[-] task-view.inc.php
[edit]
[-] staff.inc.php
[edit]
[-] index.php
[edit]
[-] dynamic-list.inc.php
[edit]
[-] settings-tickets.inc.php
[edit]
[-] page.inc.php
[edit]
[-] emails.inc.php
[edit]
[-] dynamic-forms.inc.php
[edit]
[-] cannedresponses.inc.php
[edit]
[-] settings-system.inc.php
[edit]
[-] categories.inc.php
[edit]
[-] faq.inc.php
[edit]
[-] user-view.inc.php
[edit]
[-] plugin-instance.inc.php
[edit]
[-] plugin-add.inc.php
[edit]
[-] login.tpl.php
[edit]
[-] department.inc.php
[edit]
[-] syslogs.inc.php
[edit]
[-] template.inc.php
[edit]
[-] category.inc.php
[edit]
[-] ticket-relations.inc.php
[edit]
[-] header.inc.php
[edit]
[-] schedule.inc.php
[edit]
[-] faq-view.inc.php
[edit]
[-] settings-alerts.inc.php
[edit]
[-] settings-users.inc.php
[edit]
[-] pages.inc.php
[edit]
[-] slaplans.inc.php
[edit]
[-] team.inc.php
[edit]
[-] helptopics.inc.php
[edit]
[-] role.inc.php
[edit]
[-] settings-pages.inc.php
[edit]
[-] users.inc.php
[edit]
[-] faq-category.inc.php
[edit]
[-] orgs.inc.php
[edit]
[-] pwreset.sent.php
[edit]
[-] settings-agents.inc.php
[edit]
[-] settings-emails.inc.php
[edit]
[+]
osta
[-] templates.inc.php
[edit]
[-] theme.inc.php
[edit]
[-] helptopic.inc.php
[edit]
[-] profile.inc.php
[edit]
[-] email.inc.php
[edit]
[-] ticket-open.inc.php
[edit]
[-] roles.inc.php
[edit]
[-] ticket-view.inc.php
[edit]
[-] schedules.inc.php
[edit]
[-] departments.inc.php
[edit]
[-] pwreset.login.php
[edit]
[-] filter.inc.php
[edit]
[-] queues-ticket.inc.php
[edit]
[-] plugin.inc.php
[edit]
[-] slaplan.inc.php
[edit]
[-] filters.inc.php
[edit]
[-] dashboard.inc.php
[edit]
[-] pwreset.php
[edit]
[-] tpl.inc.php
[edit]
[-] cannedresponse.inc.php
[edit]
[-] dynamic-form.inc.php
[edit]
[-] teams.inc.php
[edit]
[-] dynamic-lists.inc.php
[edit]
[-] tasks.inc.php
[edit]
[-] banrule.inc.php
[edit]
[-] ticket-edit.inc.php
[edit]
[-] settings-kb.inc.php
[edit]
[-] plugins.inc.php
[edit]
[-] directory.inc.php
[edit]
[-] apikeys.inc.php
[edit]
[-] org-view.inc.php
[edit]
[-] system.inc.php
[edit]
[+]
templates
[-] staffmembers.inc.php
[edit]
[-] banlist.inc.php
[edit]
[-] footer.inc.php
[edit]
[-] settings-tasks.inc.php
[edit]
[-] apikey.inc.php
[edit]
[-] queue.inc.php
[edit]
[-] .htaccess.disabled
[edit]