Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
assignticket.php000064400000004246151160316270007755 0ustar00<?php
/**
* @version 4.3.0
* @package Joomla
* @subpackage Helpdesk Pro
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2013 - 2021 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Uri\Uri;
use OSSolution\HelpdeskPro\Site\Helper\Database as
HelpdeskproHelperDatabase;
use OSSolution\HelpdeskPro\Site\Helper\Helper as HelpdeskproHelper;
defined('_JEXEC') or die;
class plgHelpdeskProAssignticket extends CMSPlugin
{
public function onViewTicket($row)
{
HTMLHelper::_('behavior.core');
$config = HelpdeskproHelper::getConfig();
$rowUsers =
HelpdeskproHelperDatabase::getAllStaffs($config->staff_group_id);
$user = JFactory::getUser();
$document = JFactory::getDocument();
$document->addScript(Uri::root(true) .
'/media/com_helpdeskpro/js/plug_helpdeskpro_assignticket.js');
$document->addScriptOptions('ticket_id', $row->id);
$document->addScriptOptions('hpdBaseUri', Uri::base(true));
Text::script('HDP_ASSIGN_TICKET_SUCCESS');
$displayField = $config->get('staff_display_field',
'username') ?: 'username';
if (count($rowUsers) &&
$user->authorise('helpdeskpro.assignticket',
'com_helpdeskpro'))
{
ob_start();
?>
<tr>
<th colspan="2"><?php echo
Text::_('HDP_ASSIGN_TICKET_TO_STAFF'); ?></th>
</tr>
<?php
?>
<tr>
<td colspan="2">
<?php
$options = array();
$options[] = HTMLHelper::_('select.option', 0,
Text::_('HDP_SELECT_STAFF'), 'id', $displayField);
$options = array_merge($options, $rowUsers);
echo HTMLHelper::_('select.genericlist', $options,
'user_id', 'class="chosen"', 'id',
$displayField, $row->staff_id);
?>
<input type="button" id="ajaxButton"
value="<?php echo Text::_('HDP_ASSIGN') ?>"
class="btn btn-primary">
<img style="display: none;"
class="ajax-loading" alt=""
src="<?php echo Uri::root(true) .
'/plugins/helpdeskpro/assignticket/loading.gif';
?>"><br>
</td>
</tr>
<?php
return ob_get_clean();
}
return null;
}
} assignticket.xml000064400000001404151160316270007757 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension version="1.6.0" type="plugin"
group="helpdeskpro" method="upgrade">
<name>Helpdesk Pro - Assign Ticket</name>
<author>Tuan Pham Ngoc</author>
<creationDate>October 2012</creationDate>
<copyright>Ossolution Team</copyright>
<license>http://www.gnu.org/licenses/gpl-2.0.html
GNU/GPL</license>
<authorEmail>contact@joomdonation.com</authorEmail>
<authorUrl>www.joomdonation.com</authorUrl>
<version>4.3.0</version>
<description>This plugin display list of staffs and allow
admin/manage asssign one of the staff to the current
ticket.</description>
<files>
<filename
plugin="assignticket">assignticket.php</filename>
<filename
plugin="assignticket">loading.gif</filename>
</files>
</extension>
loading.gif000064400000000624151160316270006654
0ustar00GIF89a+�����q����q!�Created with
ajaxload.info!�
!�NETSCAPE2.0,+2��˖���
�V�˅�6�XY�f'}ޚ��g-Iׇ�.�ij�>�� 2L!�
,+=�
ac���Ǭ|�a��d���ʡJCJp,�kͱ��$�eoX�}��N��,bRǯ!�
,+=���0ac��j[�o�
�y�y��Ԡ�����Lc6�����R���5�0�G���,bR��!�
,+@��˖�ؘ��~���eL�4�GQ*t'Ů���6�������dC]��+Jv�E�`"��;