Exemple #1
0
 function init()
 {
     $user = JFactory::getUser();
     $this->userid = $user->get('id');
     $this->model = $this->getModel("admin_support");
     if (!FSS_Permission::auth("fss.handler", "com_fss.support_admin")) {
         return FSS_Admin_Helper::NoPerm();
     }
     $this->def_open = FSS_Ticket_Helper::GetStatusID('def_open');
     $this->ticket_view = FSS_Input::getCmd('tickets', $this->def_open);
     $this->count = SupportTickets::getTicketCount();
     FSS_Helper::StylesAndJS(array('calendar', 'base64'));
     if (Task_Helper::HandleTasks($this)) {
         return false;
     }
     return true;
 }
Exemple #2
0
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die;
require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'translate.php';
require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'support_tickets.php';
require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'support_source.php';
?>

<?php 
echo FSS_Helper::PageSubTitle("<a href='" . FSSRoute::_('index.php?option=com_fss&view=admin_support') . "'><img src='" . JURI::root(true) . "/components/com_fss/assets/images/support/support_24.png'>&nbsp;" . JText::_("SUPPORT_TICKETS") . "</a>", false);
?>

<ul>
	<?php 
FSS_Ticket_Helper::GetStatusList();
$counts = SupportTickets::getTicketCount();
FSS_Translate_Helper::Tr(FSS_Ticket_Helper::$status_list);
foreach (FSS_Ticket_Helper::$status_list as $status) {
    if ($status->def_archive) {
        continue;
    }
    if ($status->is_closed) {
        continue;
    }
    if (!array_key_exists($status->id, $counts)) {
        continue;
    }
    if ($counts[$status->id] < 1) {
        continue;
    }
    echo "<li>" . $status->title . ": <b>" . $counts[$status->id] . "</b> - <a href='" . FSSRoute::_('index.php?option=com_fss&view=admin_support&tickets=' . $status->id) . "'>" . JText::_("VIEW_NOW") . "</a></li>";
Exemple #3
0
    ?>
	<?php 
    if (FSS_Permission::CanModerate() && !$params->get('hide_moderate')) {
        ?>
		<h4><?php 
        echo JText::_("SUPPORT_TICKETS");
        ?>
</h4>
	<?php 
    }
    ?>
	
	<ul>	
		<?php 
    FSS_Ticket_Helper::GetStatusList();
    $counts = SupportTickets::getTicketCount(true, $tickets_user_only);
    FSS_Translate_Helper::Tr(FSS_Ticket_Helper::$status_list);
    foreach (FSS_Ticket_Helper::$status_list as $status) {
        //if (!$tickets_archived_status && $status->def_archive) continue;
        if (!$tickets_closed_status && $status->is_closed) {
            continue;
        }
        if (!array_key_exists($status->id, $counts)) {
            continue;
        }
        if ($counts[$status->id] < 1) {
            continue;
        }
        ?>
			<li class="fss_module_support_item">
				<a href="<?php