Exemple #1
0
<?php

/**
 * @package Freestyle Joomla
 * @author Freestyle Joomla
 * @copyright (C) 2013 Freestyle Joomla
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die;
$alltags = SupportHelper::getTags();
?>

<?php 
foreach ($alltags as $tag) {
    ?>
	<li>
		<a href='#' onclick="tag_add(jQuery(this).text());return false;"><?php 
    echo $tag->tag;
    ?>
</a>
	</li>
<?php 
}
?>

<?php 
if (count($alltags) > 0) {
    ?>
	<li class="divider"></li>
<?php 
}
Exemple #2
0
 function displayTicketList()
 {
     $this->getDBTime();
     // load in data for search forms
     $this->handlers = SupportUsers::getHandlers(false, false);
     $this->products = SupportHelper::getProducts();
     $this->statuss = SupportHelper::getStatuss();
     $this->departments = SupportHelper::getDepartments();
     $this->categories = SupportHelper::getCategories();
     $this->priorities = SupportHelper::getPriorities();
     $this->ticketgroups = SupportHelper::getTicketGroups();
     $this->taglist = SupportHelper::getTags();
     // load extra data for the list of tickets we have
     $this->ticket_list->loadTags();
     $this->ticket_list->loadAttachments();
     $this->ticket_list->loadGroups();
     $this->ticket_list->loadLockedUsers();
     $this->ticket_list->loadCustomFields();
     if (FSS_Settings::get('support_show_msg_counts')) {
         $this->ticket_list->loadMessageCounts();
     }
     // load in custom fields
     $this->customfields = FSSCF::GetAllCustomFields(true);
     // set the list of tickets to this->tickets
     $this->tickets = $this->ticket_list->tickets;
     $session = JFactory::getSession();
     $preview = FSS_Input::getInt('preview');
     if ($preview == -1) {
         $preview = "";
         $session->clear('preview');
     }
     if ($preview == 1 || $session->Get('preview') == 1) {
         $this->enablePreview();
     }
     if ($this->refresh == 2) {
         include $this->snippet(JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'views' . DS . 'admin_support' . DS . 'snippet' . DS . '_ticket_list.php');
         return;
     } elseif ($this->refresh) {
         ob_start();
         include $this->snippet(JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'views' . DS . 'admin_support' . DS . 'snippet' . DS . '_ticket_list.php');
         $contents = ob_get_clean();
         $output = array();
         $output['count'] = $this->count;
         $output['tickets'] = $contents;
         header("Content-Type: application/json");
         echo json_encode($output);
         return;
     }
     return $this->_display();
 }