function preview() { $this->ticketid = FSS_Input::getInt('ticketid'); $this->sigid = FSS_Input::getInt('sigid'); $ticket = new SupportTicket(); $ticket->load($this->ticketid); $ticket->loadAll(); $this->ticket = $ticket; $this->signature = SupportCanned::AppendSig($this->sigid, $this->ticket); include $this->view->snippet(JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'views' . DS . 'admin_support' . DS . 'snippet' . DS . '_signature_preview.php'); return true; }
function display($tpl = NULL) { $this->ticket_ids = FSS_Input::getString("ticketids"); $this->ticket_ids = explode(":", trim($this->ticket_ids)); $this->tickets = array(); foreach ($this->ticket_ids as $ticketid) { $ticket = new SupportTicket(); if ($ticket->load($ticketid)) { $ticket->loadAll(); $this->tickets[] = $ticket; } } $this->print = FSS_Input::getCmd('print'); $this->_display(); }