function loadPDC() { $this->products = SupportHelper::getProducts(); $this->departments = SupportHelper::getDepartments(); $this->categories = SupportHelper::getCategories(); $prods = array(); $prods[] = JHTML::_('select.option', '0', JText::_("SELECT_PRODUCT"), 'id', 'title'); $prods = array_merge($prods, $this->products); $this->products_select = JHTML::_('select.genericlist', $prods, 'prodid', 'class="input-medium" size="1" onchange="document.mainform.submit( );"', 'id', 'title', $this->prodid); $depts = array(); $depts[] = JHTML::_('select.option', '0', JText::_("SELECT_DEPARTMENT"), 'id', 'title'); $depts = array_merge($depts, $this->departments); $this->departments_select = JHTML::_('select.genericlist', $depts, 'deptid', 'class="input-medium" size="1" onchange="document.mainform.submit( );"', 'id', 'title', $this->deptid); $cats = array(); $cats[] = JHTML::_('select.option', '0', JText::_("SELECT_CATEGORY"), 'id', 'title'); $cats = array_merge($cats, $this->categories); $this->categories_select = JHTML::_('select.genericlist', $cats, 'catid', 'class="input-medium" size="1" onchange="document.mainform.submit( );"', 'id', 'title', $this->catid); $modes = array(); $modes[] = JHTML::_('select.option', '0', JText::_("VIEW_TICKETS"), 'id', 'title'); $modes[] = JHTML::_('select.option', '1', JText::_("ASSIGN_TICKETS"), 'id', 'title'); $this->mode_select = JHTML::_('select.genericlist', $modes, 'mode', 'class="input-medium" size="1" onchange="document.mainform.submit( );"', 'id', 'title', $this->mode); $this->statuss = SupportHelper::getStatuss(); FSS_Translate_Helper::Tr($this->statuss); $this->status_select = JHTML::_('select.genericlist', $this->statuss, 'status', 'class="input-medium hide" size="1" onchange="document.mainform.submit( );" id="cur_status"', 'id', 'title', $this->status); $this->status_obj = FSS_Ticket_Helper::GetStatusByID($this->status); FSS_Translate_Helper::TrSingle($this->status_obj); }
?> <th><?php echo JText::_("LAST_UPDATE"); ?> </th> <td> <?php echo FSS_Helper::TicketTime($this->ticket->lastupdate, FSS_DATETIME_MID); ?> </td> <?php FSS_Table::ColEnd(); ?> <?php $st = FSS_Ticket_Helper::GetStatusByID($this->ticket->ticket_status_id); if ($st->is_closed && strtotime($this->ticket->closed) > 0) { FSS_Table::ColStart(); ?> <th><?php echo JText::_("CLOSED"); ?> </th> <td> <?php echo FSS_Helper::TicketTime($this->ticket->closed, FSS_DATETIME_MID); ?> </td> <?php FSS_Table::ColEnd(); }
if (FSS_Settings::get('glossary_support')) { require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'glossary.php'; } if (!FSS_Settings::get('user_hide_all_details')) { ?> <?php echo FSS_Helper::PageSubTitle("MESSAGES"); } ?> <?php FSS_Helper::HelpText("support_user_view_mes_header"); ?> <?php $st = FSS_Ticket_Helper::GetStatusByID($this->ticket['sid']); ?> <?php if ((!$st->is_closed || FSS_Settings::get('support_user_can_reopen')) && $this->ticket['can_edit'] && $this->ticket['merged'] == 0 && !$this->readonly) { ?> <p> <?php if (FSS_Settings::get('support_actions_as_buttons')) { ?> <button class="btn btn-default ticketrefresh pull-right" href='<?php echo FSSRoute::_('&view=ticket&what=messages&ticketid=' . $this->ticket['id']); // FIX LINK ?> '>
static function GetStatusByID($id) { FSS_Ticket_Helper::GetStatusList(); if ($id == "open") { $ids = FSS_Ticket_Helper::GetStatusIDs("def_open"); if (count($ids) > 0) { return FSS_Ticket_Helper::GetStatusByID($ids[0]); } } foreach (FSS_Ticket_Helper::$status_list as $status) { if ($status->id == $id) { return $status; } } return null; }
function OutputHeader() { if (empty($this->parser)) { $this->parser = new FSSParser(); } if (empty($this->db_time)) { $this->getDBTime(); } $this->getCustomFields(); /*if ($this->layoutpreview) { $this->parser->Load('preview',1); } else {*/ $this->parser->Load(FSS_Settings::get('support_user_template'), 1); //} $this->parser->multiuser = $this->multiuser; /*$this->parser->ticket_view = $this->ticket_view; $this->parser->customfields = $this->customfields;*/ FSSParserTicket::forUser($this->parser, null); //$this->parser->ParserPopulateUserTicket($this->parser,null); $this->cst = FSS_Ticket_Helper::GetStatusByID($this->ticket_view); if ($this->cst) { if ($this->cst->is_closed) { $this->parser->SetVar('view', 'closed'); } if ($this->cst->def_archive) { $this->parser->SetVar('view', 'archived'); } } echo $this->parser->Parse(); }
<?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; if ($this->ticket_view == "open") { $cst = null; } else { $cst = FSS_Ticket_Helper::GetStatusByID($this->ticket_view); } FSS_Translate_Helper::TrSingle($cst); $tabs = FSS_Ticket_Helper::GetStatuss("own_tab"); FSS_Translate_Helper::Tr($tabs); ?> <ul class="nav nav-tabs"> <?php if (FSS_Input::getString('search') != "") { ?> <li class="active"> <a href='#' onclick="return false;"> Search </a> </li> <?php }
function setupParserView() { $this->parser->SetVar('view', $this->ticket_view); $this->cst = FSS_Ticket_Helper::GetStatusByID($this->ticket_view); if ($this->cst) { if ($this->cst->is_closed) { $this->parser->SetVar('view', 'closed'); } if ($this->cst->def_archive) { $this->parser->SetVar('view', 'archived'); } } // set up merge // if we are merging, then need to display a message at top of list about whats going on, with a cancel button if ($this->merge) { $this->parser->SetVar('merge', 1); } }