Spade

Mini Shell

Directory:~$ /home/lmsyaran/www/khsh/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/www/khsh/views.tar

api/index.html000064400000000054151170267300007313
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>api/submitbutton.js000064400000001515151170267300010416
0ustar00/**
 * @package    Joomla.Component.Builder
 *
 * @created    30th April, 2015
 * @author     Llewellyn van der Merwe <https://dev.vdm.io>
 * @git        Joomla Component Builder
<https://git.vdm.dev/joomla/Component-Builder>
 * @copyright  Copyright (C) 2015 Vast Development Method. All rights
reserved.
 * @license    GNU General Public License version 2 or later; see
LICENSE.txt
 */

Joomla.submitbutton = function(task)
{
	if (task == ''){
		return false;
	} else {
		var action = task.split('.');
		if (action[1] == 'cancel' || action[1] == 'close' ||
document.formvalidator.isValid(document.getElementById("adminForm"))){
			Joomla.submitform(task, document.getElementById("adminForm"));
			return true;
		} else {
			alert(Joomla.JText._('api, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}api/tmpl/default.php000064400000001333151170267300010430 0ustar00<?php
/**
 * @package    Joomla.Component.Builder
 *
 * @created    30th April, 2015
 * @author     Llewellyn van der Merwe <https://dev.vdm.io>
 * @git        Joomla Component Builder
<https://git.vdm.dev/joomla/Component-Builder>
 * @copyright  Copyright (C) 2015 Vast Development Method. All rights
reserved.
 * @license    GNU General Public License version 2 or later; see
LICENSE.txt
 */

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\HTML\HTMLHelper as Html;
?>

<div class="uk-alert uk-alert-danger" data-uk-alert>
    <h2><?php echo
Text::_('COM_COMPONENTBUILDER_ERROR'); ?></h2>
</div>
api/tmpl/index.html000064400000000054151170267300010267
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>api/view.html.php000064400000007321151170267300007750
0ustar00<?php
/**
 * @package    Joomla.Component.Builder
 *
 * @created    30th April, 2015
 * @author     Llewellyn van der Merwe <https://dev.vdm.io>
 * @git        Joomla Component Builder
<https://git.vdm.dev/joomla/Component-Builder>
 * @copyright  Copyright (C) 2015 Vast Development Method. All rights
reserved.
 * @license    GNU General Public License version 2 or later; see
LICENSE.txt
 */

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\FileLayout;
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Toolbar\ToolbarHelper;
use VDM\Joomla\Utilities\StringHelper;

/**
 * Componentbuilder Html View class for the Api
 */
class ComponentbuilderViewApi extends HtmlView
{
	// Overwriting JView display method
	function display($tpl = null)
	{
		// get combined params of both component and menu
		$this->app = Factory::getApplication();
		$this->params = $this->app->getParams();
		$this->menu = $this->app->getMenu()->getActive();
		// get the user object
		$this->user = Factory::getUser();
		// Initialise variables.
		$this->item = $this->get('Item');
				// do not load the display
				jexit('Access Denied!');

		// Set the toolbar
		$this->addToolBar();

		// Set the html view document stuff
		$this->_prepareDocument();

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			throw new \Exception(implode(PHP_EOL, $errors), 500);
		}

		parent::display($tpl);
	}

	/**
	 * Prepares the document
	 */
	protected function _prepareDocument()
	{

		// Only load jQuery if needed. (default is true)
		if ($this->params->get('add_jquery_framework', 1) == 1)
		{
			Html::_('jquery.framework');
		}
		// Load the header checker class.
		require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php'
);
		// Initialize the header checker.
		$HeaderCheck = new componentbuilderHeaderCheck();

		// Load uikit options.
		$uikit = $this->params->get('uikit_load');
		// Set script size.
		$size = $this->params->get('uikit_min');
		// Set css style.
		$style = $this->params->get('uikit_style');

		// The uikit css.
		if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1)
&& $uikit != 2 && $uikit != 3)
		{
			Html::_('stylesheet',
'media/com_componentbuilder/uikit-v2/css/uikit'.$style.$size.'.css',
['version' => 'auto']);
		}
		// The uikit js.
		if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1)
&& $uikit != 2 && $uikit != 3)
		{
			Html::_('script',
'media/com_componentbuilder/uikit-v2/js/uikit'.$size.'.js',
['version' => 'auto']);
		}
		// add the document default css file
		Html::_('stylesheet',
'components/com_componentbuilder/assets/css/api.css',
['version' => 'auto']);
	}

	/**
	 * Setting the toolbar
	 */
	protected function addToolBar()
	{

		// set help url for this view if found
		$this->help_url = ComponentbuilderHelper::getHelpUrl('api');
		if (StringHelper::check($this->help_url))
		{
			ToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER',
false, $this->help_url);
		}
		// now initiate the toolbar
		$this->toolbar = Toolbar::getInstance();
	}

	/**
	 * Escapes a value for output in a view script.
	 *
	 * @param   mixed  $var  The output to escape.
	 *
	 * @return  mixed  The escaped value.
	 */
	public function escape($var, $sorten = false, $length = 40)
	{
		// use the helper htmlEscape method instead.
		return StringHelper::html($var, $this->_charset, $sorten, $length);
	}

	/**
	 * Get the Document (helper method toward Joomla 4 and 5)
	 */
	public function getDocument()
	{
		$this->document ??= JFactory::getDocument();

		return $this->document;
	}
}
index.html000064400000000054151170267300006542 0ustar00<html><body
bgcolor="#FFFFFF"></body></html>mailto/tmpl/default.php000064400000003335151171424540011152
0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_mailto
 *
 * @copyright   (C) 2006 Open Source Matters, Inc.
<https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('behavior.core');
JHtml::_('behavior.keepalive');

?>
<div id="mailto-window">
	<h2>
		<?php echo JText::_('COM_MAILTO_EMAIL_TO_A_FRIEND'); ?>
	</h2>
	<div class="mailto-close">
		<a href="javascript: void window.close()"
title="<?php echo JText::_('COM_MAILTO_CLOSE_WINDOW');
?>">
			<span>
				<?php echo JText::_('COM_MAILTO_CLOSE_WINDOW'); ?>
			</span>
		</a>
	</div>
	<form action="<?php echo
JRoute::_('index.php?option=com_mailto&task=send');
?>" method="post" class="form-validate
form-horizontal well">
		<fieldset>
			<?php foreach ($this->form->getFieldset('') as
$field) : ?>
				<?php if (!$field->hidden) : ?>
					<?php echo $field->renderField(); ?>
				<?php endif; ?>
			<?php endforeach; ?>
			<div class="control-group">
				<div class="controls">
					<button type="submit" class="btn btn-primary
validate">
						<?php echo JText::_('COM_MAILTO_SEND'); ?>
					</button>
					<button type="button" class="button"
onclick="window.close();return false;">
						<?php echo JText::_('COM_MAILTO_CANCEL'); ?>
					</button>
				</div>
			</div>
		</fieldset>
		<input type="hidden" name="layout"
value="<?php echo htmlspecialchars($this->getLayout(),
ENT_COMPAT, 'UTF-8'); ?>" />
		<input type="hidden" name="option"
value="com_mailto" />
		<input type="hidden" name="task"
value="send" />
		<input type="hidden" name="tmpl"
value="component" />
		<input type="hidden" name="link"
value="<?php echo $this->link; ?>" />
		<?php echo JHtml::_('form.token'); ?>
	</form>
</div>
mailto/view.html.php000064400000001464151171424540010470 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_mailto
 *
 * @copyright   (C) 2006 Open Source Matters, Inc.
<https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Class for Mail.
 *
 * @since  1.5
 */
class MailtoViewMailto extends JViewLegacy
{
	/**
	 * Execute and display a template script.
	 *
	 * @param   string  $tpl  The name of the template file to parse;
automatically searches through the template paths.
	 *
	 * @return  mixed  A string if successful, otherwise an Error object.
	 *
	 * @since   1.5
	 */
	public function display($tpl = null)
	{
		$this->form = $this->get('Form');
		$this->link =
urldecode(JFactory::getApplication()->input->get('link',
'', 'BASE64'));

		return parent::display($tpl);
	}
}
sent/tmpl/default.php000064400000001101151171424540010623 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_mailto
 *
 * @copyright   (C) 2006 Open Source Matters, Inc.
<https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

?>
<div style="padding: 10px;">
	<div style="text-align:right">
		<a href="javascript: void window.close()">
			<?php echo JText::_('COM_MAILTO_CLOSE_WINDOW'); ?>
<?php echo JHtml::_('image', 'mailto/close-x.png',
null, null, true); ?>
		</a>
	</div>
	<h2>
		<?php echo JText::_('COM_MAILTO_EMAIL_SENT'); ?>
	</h2>
</div>
sent/view.html.php000064400000000544151171424550010153 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_mailto
 *
 * @copyright   (C) 2006 Open Source Matters, Inc.
<https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Class for email sent view.
 *
 * @since  1.5
 */
class MailtoViewSent extends JViewLegacy
{
}
course/submitbutton.js000064400000002743151171425030011146
0ustar00/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		submitbutton.js
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

Joomla.submitbutton = function(task)
{
	if (task == ''){
		return false;
	} else { 
		var action = task.split('.');
		if (action[1] == 'cancel' || action[1] == 'close' ||
document.formvalidator.isValid(document.getElementById("adminForm"))){
			Joomla.submitform(task, document.getElementById("adminForm"));
			return true;
		} else {
			alert(Joomla.JText._('course, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}course/tmpl/edit.php000064400000013126151171425030010460 0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		edit.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');
JHtml::_('formbehavior.chosen', 'select');
JHtml::_('behavior.keepalive');
JHtml::_('behavior.tabstate');
JHtml::_('behavior.calendar');
?>
<div class="moojla-course">
<?php echo $this->toolbar->render(); ?>
<form action="<?php echo
JRoute::_('index.php?option=com_moojla&layout=edit&id='.
(int) $this->item->id . $this->referral); ?>"
method="post" name="adminForm" id="adminForm"
class="form-validate" enctype="multipart/form-data">

	<?php echo JLayoutHelper::render('course.details_above',
$this); ?>
<div class="form-horizontal">

	<?php echo JHtml::_('bootstrap.startTabSet',
'courseTab', array('active' =>
'details')); ?>

	<?php echo JHtml::_('bootstrap.addTab',
'courseTab', 'details',
JText::_('COM_MOOJLA_COURSE_DETAILS', true)); ?>
		<div class="row-fluid form-horizontal-desktop">
			<div class="span6">
				<?php echo JLayoutHelper::render('course.details_left',
$this); ?>
			</div>
			<div class="span6">
				<?php echo JLayoutHelper::render('course.details_right',
$this); ?>
			</div>
		</div>
	<?php echo JHtml::_('bootstrap.endTab'); ?>

	<?php echo JHtml::_('bootstrap.addTab',
'courseTab', 'templates',
JText::_('COM_MOOJLA_COURSE_TEMPLATES', true)); ?>
		<div class="row-fluid form-horizontal-desktop">
			<div class="span6">
				<?php echo JLayoutHelper::render('course.templates_left',
$this); ?>
			</div>
			<div class="span6">
				<?php echo JLayoutHelper::render('course.templates_right',
$this); ?>
			</div>
		</div>
	<?php echo JHtml::_('bootstrap.endTab'); ?>

	<?php echo JHtml::_('bootstrap.addTab',
'courseTab', 'moodle_access',
JText::_('COM_MOOJLA_COURSE_MOODLE_ACCESS', true)); ?>
		<div class="row-fluid form-horizontal-desktop">
			<div class="span6">
				<?php echo
JLayoutHelper::render('course.moodle_access_left', $this); ?>
			</div>
			<div class="span6">
				<?php echo
JLayoutHelper::render('course.moodle_access_right', $this); ?>
			</div>
		</div>
	<?php echo JHtml::_('bootstrap.endTab'); ?>

	<?php echo JHtml::_('bootstrap.addTab',
'courseTab', 'video',
JText::_('COM_MOOJLA_COURSE_VIDEO', true)); ?>
		<div class="row-fluid form-horizontal-desktop">
			<div class="span12">
				<?php echo JLayoutHelper::render('course.video_left',
$this); ?>
			</div>
		</div>
	<?php echo JHtml::_('bootstrap.endTab'); ?>

	<?php echo JHtml::_('bootstrap.addTab',
'courseTab', 'audio',
JText::_('COM_MOOJLA_COURSE_AUDIO', true)); ?>
		<div class="row-fluid form-horizontal-desktop">
			<div class="span12">
				<?php echo JLayoutHelper::render('course.audio_left',
$this); ?>
			</div>
		</div>
	<?php echo JHtml::_('bootstrap.endTab'); ?>

	<?php $this->ignore_fieldsets =
array('details','metadata','vdmmetadata','accesscontrol');
?>
	<?php $this->tab_name = 'courseTab'; ?>
	<?php echo JLayoutHelper::render('joomla.edit.params',
$this); ?>

	<?php if ($this->canDo->get('core.edit.created_by') ||
$this->canDo->get('core.edit.created') ||
$this->canDo->get('core.edit.state') ||
($this->canDo->get('course.delete') &&
$this->canDo->get('core.edit.state'))) : ?>
	<?php echo JHtml::_('bootstrap.addTab',
'courseTab', 'publishing',
JText::_('COM_MOOJLA_COURSE_PUBLISHING', true)); ?>
		<div class="row-fluid form-horizontal-desktop">
			<div class="span6">
				<?php echo JLayoutHelper::render('course.publishing',
$this); ?>
			</div>
			<div class="span6">
				<?php echo JLayoutHelper::render('course.metadata',
$this); ?>
			</div>
		</div>
	<?php echo JHtml::_('bootstrap.endTab'); ?>
	<?php endif; ?>

	<?php if ($this->canDo->get('core.admin')) : ?>
	<?php echo JHtml::_('bootstrap.addTab',
'courseTab', 'permissions',
JText::_('COM_MOOJLA_COURSE_PERMISSION', true)); ?>
		<div class="row-fluid form-horizontal-desktop">
			<div class="span12">
				<fieldset class="adminform">
					<div class="adminformlist">
					<?php foreach
($this->form->getFieldset('accesscontrol') as $field):
?>
						<div>
							<?php echo $field->label; echo $field->input;?>
						</div>
						<div class="clearfix"></div>
					<?php endforeach; ?>
					</div>
				</fieldset>
			</div>
		</div>
	<?php echo JHtml::_('bootstrap.endTab'); ?>
	<?php endif; ?>

	<?php echo JHtml::_('bootstrap.endTabSet'); ?>

	<div>
		<input type="hidden" name="task"
value="course.edit" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
</div>
</form>
</div>
<style>
    .nav-tabs > li > a
    {
        display: block !important;
    }
    .control-label .hasTooltip, .control-label .hasPopover {
        display: inline-block !important;
    }
</style>course/tmpl/edit.xml000064400000000343151171425030010466
0ustar00<?xml version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_MOOJLA_MENU_COURSE_TITLE"
option="COM_MOOJLA_MENU_COURSE_OPTION">
		<message>
			<![CDATA[COM_MOOJLA_MENU_COURSE_DESC]]>
		</message>
	</layout>
</metadata>course/tmpl/index.html000064400000000054151171425030011013
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>course/view.html.php000064400000017074151171425030010502
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		view.html.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

/**
 * Course View class
 */
class MoojlaViewCourse extends JViewLegacy
{
	/**
	 * display method of View
	 * @return void
	 */
	public function display($tpl = null)
	{
		// set params
		$this->params = JComponentHelper::getParams('com_moojla');
		// Assign the variables
		$this->form = $this->get('Form');
		$this->item = $this->get('Item');
		$this->script = $this->get('Script');
		$this->state = $this->get('State');
		// get action permissions
		$this->canDo = MoojlaHelper::getActions('course',
$this->item);
		// get input
		$jinput = JFactory::getApplication()->input;
		$this->ref = $jinput->get('ref', 0, 'word');
		$this->refid = $jinput->get('refid', 0, 'int');
		$return = $jinput->get('return', null, 'base64');
		// set the referral string
		$this->referral = '';
		if ($this->refid && $this->ref)
		{
			// return to the item that referred to this item
			$this->referral = '&ref=' . (string)$this->ref .
'&refid=' . (int)$this->refid;
		}
		elseif($this->ref)
		{
			// return to the list view that referred to this item
			$this->referral = '&ref=' . (string)$this->ref;
		}
		// check return value
		if (!is_null($return))
		{
			// add the return value
			$this->referral .= '&return=' . (string)$return;
		}

		// Set the toolbar
		$this->addToolBar();
		
		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			throw new Exception(implode("\n", $errors), 500);
		}

		// Display the template
		parent::display($tpl);

		// Set the document
		$this->setDocument();
	}


	/**
	 * Setting the toolbar
	 */
	protected function addToolBar()
	{JFactory::getApplication()->input->set('hidemainmenu',
true);
		$user = JFactory::getUser();
		$userId	= $user->id;
		$isNew = $this->item->id == 0;

		JToolbarHelper::title( JText::_($isNew ?
'COM_MOOJLA_COURSE_NEW' : 'COM_MOOJLA_COURSE_EDIT'),
'pencil-2 article-add');
		// Built the actions for new and existing records.
		if (MoojlaHelper::checkString($this->referral))
		{
			if ($this->canDo->get('course.create') &&
$isNew)
			{
				// We can create the record.
				JToolBarHelper::save('course.save',
'JTOOLBAR_SAVE');
			}
			elseif ($this->canDo->get('course.edit'))
			{
				// We can save the record.
				JToolBarHelper::save('course.save',
'JTOOLBAR_SAVE');
			}
			if ($isNew)
			{
				// Do not creat but cancel.
				JToolBarHelper::cancel('course.cancel',
'JTOOLBAR_CANCEL');
			}
			else
			{
				// We can close it.
				JToolBarHelper::cancel('course.cancel',
'JTOOLBAR_CLOSE');
			}
		}
		else
		{
			if ($isNew)
			{
				// For new records, check the create permission.
				if ($this->canDo->get('course.create'))
				{
					JToolBarHelper::apply('course.apply',
'JTOOLBAR_APPLY');
					JToolBarHelper::save('course.save',
'JTOOLBAR_SAVE');
					JToolBarHelper::custom('course.save2new',
'save-new.png', 'save-new_f2.png',
'JTOOLBAR_SAVE_AND_NEW', false);
				};
				JToolBarHelper::cancel('course.cancel',
'JTOOLBAR_CANCEL');
			}
			else
			{
				if ($this->canDo->get('course.edit'))
				{
					// We can save the new record
					JToolBarHelper::apply('course.apply',
'JTOOLBAR_APPLY');
					JToolBarHelper::save('course.save',
'JTOOLBAR_SAVE');
					// We can save this record, but check the create permission to see
					// if we can return to make a new one.
					if ($this->canDo->get('course.create'))
					{
						JToolBarHelper::custom('course.save2new',
'save-new.png', 'save-new_f2.png',
'JTOOLBAR_SAVE_AND_NEW', false);
					}
				}
				$canVersion = ($this->canDo->get('core.version')
&& $this->canDo->get('course.version'));
				if ($this->state->params->get('save_history', 1)
&& $this->canDo->get('course.edit') &&
$canVersion)
				{
					JToolbarHelper::versions('com_moojla.course',
$this->item->id);
				}
				if ($this->canDo->get('course.create'))
				{
					JToolBarHelper::custom('course.save2copy',
'save-copy.png', 'save-copy_f2.png',
'JTOOLBAR_SAVE_AS_COPY', false);
				}
				JToolBarHelper::cancel('course.cancel',
'JTOOLBAR_CLOSE');
			}
		}
		JToolbarHelper::divider();
		// set help url for this view if found
		$help_url = MoojlaHelper::getHelpUrl('course');
		if (MoojlaHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_MOOJLA_HELP_MANAGER', false,
$help_url);
		}
		// now initiate the toolbar
		$this->toolbar = JToolbar::getInstance();
	}

	/**
	 * Escapes a value for output in a view script.
	 *
	 * @param   mixed  $var  The output to escape.
	 *
	 * @return  mixed  The escaped value.
	 */
	public function escape($var)
	{
		if(strlen($var) > 30)
		{
    			// use the helper htmlEscape method instead and shorten the string
			return MoojlaHelper::htmlEscape($var, $this->_charset, true, 30);
		}
		// use the helper htmlEscape method instead.
		return MoojlaHelper::htmlEscape($var, $this->_charset);
	}

	/**
	 * Method to set up the document properties
	 *
	 * @return void
	 */
	protected function setDocument()
	{
		$isNew = ($this->item->id < 1);
		if (!isset($this->document))
		{
			$this->document = JFactory::getDocument();
		}
		$this->document->setTitle(JText::_($isNew ?
'COM_MOOJLA_COURSE_NEW' : 'COM_MOOJLA_COURSE_EDIT'));
		// only add the ISIS template css & js if needed (default is 1 =
true)
		// you can override this in the global component options
		// just add a (radio yes/no field) with a name called add_isis_template
		// to your components config area
		if ($this->params->get('add_isis_template', 1))
		{
			// we need this to fix the form display (TODO)
			$this->document->addStyleSheet(JURI::root() .
"administrator/templates/isis/css/template.css",
(MoojlaHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
			$this->document->addScript(JURI::root() .
"administrator/templates/isis/js/template.js",
(MoojlaHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') :
'text/javascript');
		}
		// the default style of this view
		$this->document->addStyleSheet(JURI::root()."components/com_moojla/assets/css/course.css",
(MoojlaHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
		// Add Ajax Token
		$this->document->addScriptDeclaration("var token =
'".JSession::getFormToken()."';");
		// default javascript of this view
		$this->document->addScript(JURI::root(). $this->script,
(MoojlaHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') :
'text/javascript');
		$this->document->addScript(JURI::root().
"components/com_moojla/views/course/submitbutton.js",
(MoojlaHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') :
'text/javascript'); 
		JText::script('view not acceptable. Error');
	}
}
coursedetail/index.html000064400000000054151171425040011223
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>coursedetail/submitbutton.js000064400000002751151171425040012331
0ustar00/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		submitbutton.js
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

Joomla.submitbutton = function(task)
{
	if (task == ''){
		return false;
	} else { 
		var action = task.split('.');
		if (action[1] == 'cancel' || action[1] == 'close' ||
document.formvalidator.isValid(document.getElementById("adminForm"))){
			Joomla.submitform(task, document.getElementById("adminForm"));
			return true;
		} else {
			alert(Joomla.JText._('coursedetail, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}coursedetail/tmpl/default.php000064400000005727151171425040012353
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');


?>
<?php echo $this->toolbar->render(); ?>

<!--[JCBGUI.site_view.default.38.$$$$]-->
<?php 
//farhad shahbazi
$this->document->setTitle($this->course->fullname);
?>
<?php // echo JLayoutHelper::render('default',
$this->item); ?>
<?php // echo JLayoutHelper::render('lmskarandefault',
$this->course); ?>
<?php // echo JLayoutHelper::render('favorite',
$this->course); ?>
<?php // echo JLayoutHelper::render('rate', $this->course);
?>
<?php // echo JLayoutHelper::render('rate', $this->course);
?>
<?php
// echo $this->loadTemplate('teachers');
?>


<?php $ref =& $this;?>
<?php
$this->courseEventDispacher->trigger("onCoursePrepare",
array(&$ref));?>

<!------------------------------------>
<?php
  $document = JFactory::getDocument();
 
$document->addStyleSheet('/components/com_moojla/layouts/layouts_faranesh/css/layouts_faranesh.css');
 
$document->addScript('/components/com_moojla/layouts/layouts_faranesh/js/main.js');
  ?>
<?php
$this->courseEventDispacher->trigger("onTopOfCoursePage",
array($this));?>
<div class ="lmskaran_course_single">
  <?php
$this->courseEventDispacher->trigger("onBeforeSidebar",
array($this));?>
  <?php echo $this->loadTemplate("sidebar"); ?>
  <?php
$this->courseEventDispacher->trigger("onAfterSidebar",
array($this));?>
  <?php
$this->courseEventDispacher->trigger("onBeforeCourse",
array($this));?>
  <?php echo $this->loadTemplate("course"); ?>
  <?php
$this->courseEventDispacher->trigger("onAfterCourse",
array($this));?>
</div>
<?php echo $this->loadTemplate("video_modal");?>
<?php
$this->courseEventDispacher->trigger("onBottomOfCoursePage",
array($this));?>
<!------------------------------------>



<?php
JPluginHelper::importPlugin("moojlaevents");
$dispatcher = JEventDispatcher::getInstance();
$results	= $dispatcher->trigger("onAfterMoojlaCourseDisplay",
array($this->course));
?>
<!--[/JCBGUI$$$$]-->

coursedetail/tmpl/default.xml000064400000000365151171425040012355
0ustar00<?xml version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_MOOJLA_MENU_COURSEDETAIL_TITLE"
option="COM_MOOJLA_MENU_COURSEDETAIL_OPTION">
		<message>
			<![CDATA[COM_MOOJLA_MENU_COURSEDETAIL_DESC]]>
		</message>
	</layout>
</metadata>coursedetail/tmpl/default_course.php000064400000004200151171425040013714
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_course.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.7.$$$$]-->
<?php require_once JPATH_ADMINISTRATOR .
'/components/com_moojla/models/course.php';
  $course_model = new MoojlaModelCourse;
  $table = $course_model->getTable();
  $table->load($this->course->id);
?>
<div class="lmskaran_course_main">
  <?php
$this->courseEventDispacher->trigger("onBeforeCouresImage",
array('com_moojla.coursedetail', $table, $this))?>
  <?php echo $this->loadTemplate('course_image');?>
  <?php
$this->courseEventDispacher->trigger("onAfterCouresImage",
array('com_moojla.coursedetail', $table, $this))?>
  <?php
$this->courseEventDispacher->trigger("onBeforeSections",
array('com_moojla.coursedetail', $table, $this))?>
  <?php if($this->course->format ==
"singleactivity"):?>
  	<?php echo $this->loadTemplate('singlesection');?>
  <?php else:?>
  	<?php echo $this->loadTemplate('sections');?>
  <?php endif;?>
  <?php
$this->courseEventDispacher->trigger("onAfterSections",
array('com_moojla.coursedetail', $table, $this))?>
</div><!--[/JCBGUI$$$$]-->

coursedetail/tmpl/default_courseinfo.php000064400000006541151171425040014602
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_courseinfo.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.11.$$$$]-->
<?php require_once JPATH_ADMINISTRATOR .
'/components/com_moojla/models/course.php';
  $course_model = new MoojlaModelCourse;
  $table = $course_model->getTable();
  $table->load($this->course->id);
?>
<div class="lmskaran_course_section_sidebar">
  <div class="lmskaran_course_inner_parent">
    <h3><?php echo $this->course->fullname;
?></h3>			
    <div class="lmskaran_information_course">
      <?php
$this->courseEventDispacher->trigger("onBeforeCustomFields",
array('com_moojla.coursedetail', $table, $this)); ?>
      <?php echo $this->loadTemplate("custom_fields");
?>
      <?php
$this->courseEventDispacher->trigger("onAfterCustomFields",
array('com_moojla.coursedetail', $table, $this)); ?>
    </div>
  </div>
  <?php
$this->courseEventDispacher->trigger("onBeforeCourseButton",
array('com_moojla.coursedetail', $table, $this)); ?>
  <div class="lmskaran_button_registration">
    <div class="lmskaran_reg_download">
      <?php JLoader::register('MoojlaHelper',
JPATH_ADMINISTRATOR.'/components/com_moojla/helpers/moojla.php');
      $btn = MoojlaHelper::newActionButton($this->course,
$this->course->enrolState, null, '',
$this->moodle_url);
			if($btn[0])
				echo $btn[1];
	  ?>
      <?php if(!$this->course->enrolState): ?>
        <?php if ($this->course->cost == 0): ?>
					<?php if ($btn[0]): ?>
						<span class="lmskaran_course_price_cost"><span
class="lmskaran_toman">رایگان</span></span>
					<?php else: ?>
						<span class="Registration-by-administrator"><span
class="lmskaran_toman">ثبت نام توسط مدیر
دوره</span></span>
					<?php endif; ?>
        <?php else: ?>
        	<span class="lmskaran_course_price_cost"><?php
echo $this->course->cost; ?></span>
        <?php endif; ?>
      <?php endif; ?>
    </div>
  </div>
  <div style="display: flex; justify-content:
space-between">
    <?php echo JLayoutHelper::render('favorite',
['course'=>$this->course,
'favorite'=>$this->course->favorite,
'params'=>$this->params]); ?>
    <?php echo JLayoutHelper::render('rate', $this); ?>
  </div>
  <?php
$this->courseEventDispacher->trigger("onAfterCourseButton",
array('com_moojla.coursedetail', $table, $this)); ?>
</div>
<!--[/JCBGUI$$$$]-->

coursedetail/tmpl/default_course_image.php000064400000003232151171425040015062
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_course_image.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.9.$$$$]-->
<div class="lmskaran_course_image" style="display:
flex;justify-content: center;align-items: center;">
  <?php if ($this->course->summary_files == null):?>
    <div class="lmskaran_no_image">
      <div class="lmskaran_position_text_no_image">
        <span class="lmskaran_text_no_image">تصویر
موجود نمی باشد</span>
      </div>
    </div>
  <?php else: ?>
    <img src="<?php echo $this->course->summary_files;
?>" alt="" />
  <?php endif; ?>
</div>
<!--[/JCBGUI$$$$]-->

coursedetail/tmpl/default_custom_fields.php000064400000003472151171425050015267
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_custom_fields.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.12.$$$$]-->
<?php if(count($this->item->fieldMapper) > 0):?>
  <div class="lmskaran_titles">اطلاعات
دوره</div>
  <?php foreach($this->item->fieldMapper as $index =>
$map):?>
      <?php if($map['value']):?>
        <div class="lmskaran_course_field">
          <div class="d-flex">
            <img src="<?php echo $map['img'];
?>" />
              <div class="lmskaran_desck"><?php echo
$map['title']; ?></div>
              <div style="padding: 0px 5px;">:</div>
          </div>
        <div class="lmskaran_value"><?php echo
$map['value']; ?></div>
        </div>
      <?php endif;?>
  <?php endforeach;?>
<?php endif;?><!--[/JCBGUI$$$$]-->

coursedetail/tmpl/default_sections.php000064400000020253151171425050014252
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_sections.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.8.$$$$]-->
<div class="uk-container uk-container-center
lmskaran_course_tab">
    <div>
      <div class="lmskaran_summary_course">
        <?php echo $this->course->summary; ?>
      </div>
      <ul uk-accordion="multiple: true">
        <?php if(is_array($this->course->sections)): ?>
          <?php foreach ($this->course->sections as $section_key
=> $section_value): ?>
            <?php if($section_value->section != 0 ||
!empty($section_value->modules)): ?>
              <li class="">
                <a class="uk-accordion-title"
href="#"><?php echo $section_value->name;
?></a>
                <div class="uk-accordion-content
lmskaran_accordion_content">
                  <p><?php echo $section_value->summary;
?></p>
                  <?php if(property_exists($section_value,
'availableflag')):?>
                    <?php if($section_value->availableflag ==
0):?>
                      <?php echo ""; ?>
                    <?php elseif($section_value->availableflag ==
1):?>
                      <?php echo property_exists($section_value,
'availabilityinfo')? $section_value->availabilityinfo :
''; ?>
                    <?php elseif($section_value->availableflag ==
2):?>
                      <?php // echo
JText::_('COM_MOOJLA_ENROLMENT_REQUIRED')?>
                    <?php elseif($section_value->availableflag ==
3):?>
                      <?php // echo
JText::_('COM_MOOJLA_ENROLMENT_REQUIRED') .
'<br>';
                        echo property_exists($section_value,
'availabilityinfo')? $section_value->availabilityinfo :
''; ?>
                    <?php endif;?>
                  <?php endif;?>
                  <?php foreach ($section_value->modules as
$module_key => $module_value): ?>
									
                    <?php 
                      $downloadurl = '#';
                      $hasfile = false;
                      if($module_value->availableflag == 0 &&
!empty($module_value->content))
                      {
												if(property_exists($module_value->content[0],
'mimetype'))
												{
                          $mimetype =
substr($module_value->content[0]->mimetype, 0, 5);
                          $downloadurl =
$module_value->content[0]->fileurl;
                          if($mimetype == 'video' &&
$this->course->videodownload == 1)
                          {
                            $downloadurl = '#';
                            // $module_value->availableflag = 1;
                            $module_value->availableclass =
'availablity-enroled-notvisible';
                          }
                          if($mimetype == 'audio' &&
$this->course->audiodownload == 1)
                          {
                            $downloadurl = '#';
                            // $module_value->availableflag = 1;
                            $module_value->availableclass =
'availablity-enroled-notvisible';
                          }
                          $hasfile = true;
												}
                      }
                    ?>
    
                    <!-- <div
class="lmskaran-sections-in-accordion-counters"> -->
										<?php if($module_value->availableflag != 1 ||
property_exists($module_value, 'availabilityinfo')):?>
                    <div
class="lmskaran-sections-in-accordion">
                      <!-- <div
class="lmskaran-course-download"> -->
                      <div
class="lmskaran-info_course_file_counters">
                        <?php if($module_value->availableflag ==
1):?>
														<?php if(property_exists($module_value,
'availabilityinfo')):?>
															<div class="lmskaran_counters_section_course
lock-course"></div>
														<?php endif;?>
                          <?php elseif($module_value->availableflag
== 3):?>
                            <div
class="lmskaran_counters_section_course
lock-course"></div>
                        <?php endif;?>
                        <div
class="lmskaran-info_course_file">
													
                            <?php if($module_value->availableflag ==
0):?>
                              <div class="lmskaran-file-course
t-1"><?php echo '<img
src="'.$module_value->modicon.'" style="width:
32px;"> '; ?> 
                                <?php echo $module_value->name;
?>
                              </div>	
                            <?php elseif($module_value->availableflag
== 1):?>
															<?php //dump($module_value,
'$module_value');?>
															<?php if(property_exists($module_value,
'availabilityinfo')):?>
																<p class="lmskaran-info_course_file
warning-registered-course">
																	<?php echo $module_value->availabilityinfo;?>
																	<div class="lmskaran-file-course
t-2"><?php echo '<img
src="'.$module_value->modicon.'" style="width:
32px;"> '; ?> 
																	<?php echo "دسترسی محدود شده
است.برای راهنمایی بیشتر با پشتیبانی درس
ارتباط بگیرید." ?>
																</p>	
                              </div>	
															<?php else:?>
															<?php endif;?>
                              
                            <?php elseif($module_value->availableflag
== 2):?>
															<p class="lmskaran-info_course_file
warning-registered-course">
																<?php echo
JText::_('COM_MOOJLA_ENROLMENT_REQUIRED') ?>
															</p>
                              <div class="lmskaran-file-course
t-3"><?php echo '<img
src="'.$module_value->modicon.'" style="width:
32px;"> '; ?> 
                                <?php echo $module_value->name;
?>
                              </div>	
                            <?php elseif($module_value->availableflag
== 3):?>
															<p class="lmskaran-info_course_file
warning-registered-course">
																<?php echo
JText::_('COM_MOOJLA_ENROLMENT_REQUIRED') .
'<br>';
																//echo property_exists($module_value,
'availabilityinfo')? $module_value->availabilityinfo :
''; ?>
																<div class="lmskaran-file-course
need-to-register"><?php echo '<img
src="'.$module_value->modicon.'" style="width:
32px;"> '; ?> 
															</p>
                                <?php echo $module_value->name;
?>
                              </div>	
                            <?php endif;?>
                        </div>
                      </div>											
                      <?php if(isset($module_value->content[0])
&& $module_value->content[0]->fileurl &&
$hasfile):?>
                        <div class="lmskaran-download-course
<?php echo $module_value->availableclass; ?>"
style="z-index:1;"><a href="<?php echo
$downloadurl;?>"><i class="fas
fa-download"></i></a>
                        </div>
                      <?php endif;?>
                    <!-- </div> -->
                    </div>
										<?php endif;?>
                    <!-- </div> -->
      
                  <?php endforeach; ?>
                </div>
              </li>
            <?php endif; ?>
          <?php endforeach; ?>
        <?php endif; ?>
      </ul>
    </div>
</div><!--[/JCBGUI$$$$]-->

coursedetail/tmpl/default_sidebar.php000064400000004003151171425050014027
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_sidebar.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.13.$$$$]-->
<div id="mahdi" class="lmskaran_course_sidebar">
  <?php require_once JPATH_ADMINISTRATOR .
'/components/com_moojla/models/course.php';
    $course_model = new MoojlaModelCourse;
    $table = $course_model->getTable();
    $table->load($this->course->id);
  ?>
  <?php
$this->courseEventDispacher->trigger("onBeforeCourseInfo",
array('com_moojla.coursedetail', $table, $this))?>
  <?php echo $this->loadTemplate("courseinfo");?>
  <?php
$this->courseEventDispacher->trigger("onAfterCourseInfo",
array('com_moojla.coursedetail', $table, $this))?>
  <?php
$this->courseEventDispacher->trigger("onBeforeTeachers",
array('com_moojla.coursedetail', $table, $this))?>
  <?php echo $this->loadTemplate("teachers");?>
  <?php
$this->courseEventDispacher->trigger("onAfterTeachers",
array('com_moojla.coursedetail', $table, $this))?>
</div>
<!--[/JCBGUI$$$$]-->

coursedetail/tmpl/default_singlesection.php000064400000007606151171425050015300
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_singlesection.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.10.$$$$]-->
<div class="uk-container uk-container-center
lmskaran_course_tab">
  <div>
    <div class="lmskaran_summary_course">
      <?php //echo $this->course->summary; ?>
    </div>
    <div class="lmskaran-file-course">
      <div class="single-section">
        <?php
        $module_value = $this->course->sections[0]->modules[0];
        $downloadurl = '#';
        $hasfile = false;
        if($module_value->availableflag == 0 &&
!empty($module_value->content))
        {
          if(property_exists($module_value->content[0],
'mimetype'))
          {
            $mimetype = substr($module_value->content[0]->mimetype,
0, 5);
            $downloadurl = $module_value->content[0]->fileurl;
            if($mimetype == 'video' &&
$this->course->videodownload == 1)
            {
              $downloadurl = '#';
              // $module_value->availableflag = 1;
              $module_value->availableclass =
'availablity-enroled-notvisible';
            }
            if($mimetype == 'audio' &&
$this->course->audiodownload == 1)
            {
              $downloadurl = '#';
              // $module_value->availableflag = 1;
              $module_value->availableclass =
'availablity-enroled-notvisible';
            }
            $hasfile = true;
          }
        }
        ?>
        <h3><?php echo $module_value->name ?></h3>
        <!-- <p>برای ورود به آزمون ابتدا
داخل سایت <span><a href="#">ثبت نام
کنید</a></span> و سپس بر روی <span>دکمه
زیر کلیک کنید</span>.</p> -->
        <?php if(property_exists($this->course->sections[0],
'availableflag')):?>
          <?php if($this->course->sections[0]->availableflag ==
0):?>
            <?php echo '';?>
          <?php
elseif($this->course->sections[0]->availableflag == 1):?>
          	<?php echo property_exists($section_value,
'availabilityinfo')? $section_value->availabilityinfo :
''; ?>
          <?php
elseif($this->course->sections[0]->availableflag == 2):?>
          	<?php echo
JText::_('COM_MOOJLA_ENROLMENT_REQUIRED')?>
          <?php
elseif($this->course->sections[0]->availableflag == 3):?>
          	<?php echo
JText::_('COM_MOOJLA_ENROLMENT_REQUIRED') .
'<br>';
  			echo property_exists($section_value, 'availabilityinfo')?
$section_value->availabilityinfo : ''; ?>
          <?php endif;?>
        <?php endif;?>
        <?php if(isset($module_value->content[0]) &&
$module_value->content[0]->fileurl && $hasfile):?>
          <div class="lmskaran-download-course <?php echo
$module_value->availableclass; ?>"><a href="<?php
echo $downloadurl;?>"><i class="fas
fa-download"></i></a>
          </div>
        <?php endif;?>
      </div>
    </div>	
  </div>
</div><!--[/JCBGUI$$$$]-->

coursedetail/tmpl/default_teachers.php000064400000004665151171425050014232
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_teachers.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.14.$$$$]-->
<?php require_once JPATH_ADMINISTRATOR .
'/components/com_moojla/models/course.php';
  $course_model = new MoojlaModelCourse;
  $table = $course_model->getTable();
  $table->load($this->course->id);
?>
<?php foreach($this->teachersFromMoodle as $teacher): ?>
  <div class="lmskaran_course_section_sidebar">
     <div class="lmskaran_author_info_parent">
        <a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=teacherdetail&id='
. $teacher['mid'], false); ?>"
class="lmskaran_teacher_name">
          <div class="lmskaran_picture_teacher">
            <img src="<?php echo
$teacher['userimage']; ?>" alt="" />
          </div>
          <?php echo $teacher['name']?>
        </a>
        <?php
$this->courseEventDispacher->trigger("onAfterTeacherName",
array('com_moojla.coursedetail', $table, $teacher))?>
        <div class="lmskaran_about_author">
          <div class="lmskaran_titles"><?=
JText::_('COM_MOOJLA_ABOUT_THE_TEACHER') ?></div>
          <p class="lmskaran_info_about_author"><?php
echo isset($teacher['cv']) ? $teacher['cv'] :
''; ?></p>
        </div>
        <?php
$this->courseEventDispacher->trigger("onAfterTeacherInfo",
array('com_moojla.coursedetail', $table, $teacher))?>
     </div>
  </div>
<?php endforeach; ?>
<!--[/JCBGUI$$$$]-->

coursedetail/tmpl/default_video_modal.php000064400000016636151171425050014717
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_video_modal.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.15.$$$$]-->
<div class="container">
  <!-- Modal -->
  <div class="modal fade" id="video-modal"
role="dialog">
    <div class="modal-dialog">
      <!-- Modal content-->
      <div class="modal-content">
        <div class="modal-body">
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-default
close-video" onclick="pauseAudio()"
data-dismiss="modal">بستن ویدیو</button>
        </div>
      </div>
    </div>
  </div>  
</div>

<script>
  jQuery(document).ready(function ($)
  {
    var videoAttr = {'loop': true, 'playsinline': true,
class: 'renderedvideo'};
    var imgMP4s = Array.prototype.map.call(
    $('img[src*=".mp4"]'),
    function(img){
      var src = img.src;
      img.src = null;

      img.addEventListener('error', function(e){
        // console.log('MP4 in image not supported. Replacing with
video', e); 
        var video = document.createElement('video');

        for (var key in videoAttr) { video.setAttribute(key,
videoAttr[key]); }

        for (
            var imgAttr = img.attributes, 
            len = imgAttr.length,
            i = 0; 
            i < len; 
            i++
        ) { 
            video.setAttribute(imgAttr[i].name,  imgAttr[i].value); 
        }
        // img.parentNode.insertAdjacentHTML('beforeend',
'<div
class="lmskaran_dark_video_before_hover"></div>');
      
        img.parentNode.insertAdjacentHTML('beforeend',
'<div id="overlay"><div class="play-video
video-launch video-play-button"
><span></span></div></div>');
        img.parentNode.insertBefore(video, img);
        img.parentNode.removeChild(img);
        video.muted = 'muted';
        modalbody = $('.modal-body');
        modalbody.html('');
        video = $("video.renderedvideo");
        videocloned = video.clone();
        videocloned.appendTo(modalbody);
        videocloned.attr('id', 'modalvideobody')
        videocloned = document.getElementById('modalvideobody');
        videocloned.muted = false;
        videocloned.controls = true;
        video.wrap("<a href='#'
id='lmskaran_modal_video_course' data-toggle='modal'
data-target='#video-modal'></a>");
        video.on("mouseover", function(event) {
          this.play();
          $("#overlay").hide();
        }).on('mouseout', function(event) {
          this.pause();
          $("#overlay").show();
        });
        var overlay = document.getElementById('overlay');
      });

      img.src = src;
    });
      
      
    window.onclick = function(event) {
      target = event.target;
      cList = target.classList;
      
      if(cList.contains('modal-backdrop') ||
cList.contains('close-video')) {
        modalback =
document.getElementsByClassName('modal-backdrop')[0];
        modalback.hidden = true;
      }
      else if(cList.contains('moojla-login-modal') ){
        moojlamodal = document.getElementById('moojla-modal')
        moojlamodal.setAttribute('style',
'display:"none";')
      }
    }
  });

  function pauseAudio() { 
    videocloned.pause();
    body = jQuery('body');
    body.removeClass('modal-open');
  } 

</script>
<style>

#lmskaran_modal_video_course{
	width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lmskaran_modal_video_course video{
	width:100%;
	height:100%;
	filter: brightness(0.4);
	transition: 0.5s;
}

#lmskaran_modal_video_course:hover video{
	filter: brightness(1);
}


#overlay {
  position: absolute; 
  color: #FFF; 
  text-align: center;
  font-size: 20px;
  width: inherit;
  padding: 10px 0;
  z-index: 2;
}

video.renderedvideo {
  z-index: 1;
}

div.modal {
	background: none;
	border: none;
	box-shadow: none;
	-webkit-box-shadow: none;
}

#modalvideobody {
	width: 100%;
	/* height: fit-content; */
	margin: 0 auto;
}


div.modal{
	left:0;
	width:100%;
	margin-left:unset;
}


.modal-dialog {
    max-width: 1000px;
}


div.modal.fade.in {
    padding-top:5%;
	top:0px;
}



.modal-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
	
}


.modal-footer button.btn.btn-default.close-video {
    padding: 10px 20px;
    font-size: 1.1rem;
    background: linear-gradient( 45deg, red, #810000);
    color: white;
	margin: unset;
}


.video-play-button {
	position: relative;
	z-index: 10;
	box-sizing: content-box;
	display: block;
	width: 32px;
	height: 44px;
	margin: 40px auto 20px auto;
	border-radius: 50%;
	box-shadow: 0 0px 30px rgba(22 8 91 / 42%);
	border: 1px solid black;
}

  .video-play-button:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
  }
  
  .video-play-button:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    transition: all 200ms;
    transition: all 0.55s cubic-bezier(0.645, 0.045, 0.355, 1);
  }
  

    .video-play-button:after {
      background: white;
      transition: all 0.55s cubic-bezier(0.645, 0.045, 0.355, 1);
    }
	
    .video-play-button span {
      border-left: 32px solid white;
    }
  
  .video-play-button img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
  }
  
  .video-play-button span {
    display: block;
    position: relative;
	left: 3px;
    z-index: 3;
    width: 0;
    height: 0;
    transform: scale(0.8);
    border-left: 32px solid black;
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
    transition: all 0.55s cubic-bezier(0.645, 0.045, 0.355, 1);
  }
  
@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}

</style>
<!--[/JCBGUI$$$$]-->

coursedetail/tmpl/index.html000064400000000054151171425050012200
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>coursedetail/view.html.php000064400000061000151171425050011653
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		view.html.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

/**
 * Moojla View class for the Coursedetail
 */
class MoojlaViewCoursedetail extends JViewLegacy
{
	// Overwriting JView display method
	function display($tpl = null)
	{		
		// get combined params of both component and menu
		$this->app = JFactory::getApplication();
		$this->params = $this->app->getParams();
		$this->menu = $this->app->getMenu()->getActive();
		// get the user object
		$this->user = JFactory::getUser();
		// Initialise variables.
		$this->item = $this->get('Item');
		
		/***[JCBGUI.site_view.php_jview_display.38.$$$$]***/
		$params = JComponentHelper::getParams('com_moojla');
		
		if($this->item->templatestyle == 0)
		{
		  $templateStyleId =
trim($params->get('course_templatestyle'));
		}
		else
		{
		  $templateStyleId = $this->item->templatestyle;
		}
		$app = JFactory::getApplication();
		JTable::addIncludePath(JPATH_ADMINISTRATOR .
'/components/com_templates/tables');
		$tmplStyle = JTable::getInstance('Style',
'TemplatesTable');
		$tmplStyle->load($templateStyleId);
		
		if (!empty($tmplStyle->template)){
		  $app->setTemplate($tmplStyle->template, $tmplStyle->params);
		}
		
		
		$this->course = new stdClass();
		if($this->item)
		  $this->course = clone($this->item);
		$user = JFactory::getUser();
		
		$this->enrolState = false;
		$db = JFactory::getDbo();
		$query = $db->getQuery(true);
		$query->select($db->quoteName('mid'));
		$query->from($db->quoteName('#__moojla_user_map'));
		$query->where($db->quoteName('jid') . ' = ' .
$db->quote($user->id));
		$db->setQuery($query);
		$this->moodleuserid = $db->loadResult();
		
		if($this->moodleuserid)
		{
		  $db = JFactory::getDbo();
		  $query = $db->getQuery(true);
		  $query->select($db->quoteName('id'));
		  $query->from($db->quoteName('#__moojla_enrolment'));
		  $query->where($db->quoteName('moojlacourse') . ' =
' . $db->quote($this->course->remoteid));
		  $query->where($db->quoteName('jid') . ' = ' .
$db->quote($user->id));
		  $query->where($db->quoteName('published') . ' =
1');
		  $db->setQuery($query);
		  $is_enrolled = $db->loadResult();
		  if($is_enrolled)
		    $this->enrolState = true;
		}
		unset($this->course->remoteidCourseidSectionB);
		$this->course->sections =
$this->item->remoteidCourseidSectionB;
		if(is_object($this->item->remoteidCourseidSectionB))
		{
		  if(property_exists($this->item->remoteidCourseidSectionB,
'exception'))
		  {
		   
$this->app->enqueueMessage(JText::_($this->item->remoteidCourseidSectionB->message));
		    $this->app->redirect('index.php');
		  }
		}
		if($this->item->remoteidCourseidSectionB)
		{
		  foreach($this->item->remoteidCourseidSectionB as $sindex =>
$section)
		  {
		    $this->course->sections[$sindex] = clone $section;
		    $this->course->sections[$sindex]->modules =
$section->section_idModule_section_idModuleC;
		   
unset($this->course->sections[$sindex]->section_idModule_section_idModuleC);
		    if($section->section_idModule_section_idModuleC)
		    {
		      if($this->course->availabilityinfolink == 2)
		        $availabilityinfolink =
$params->get('availabilityinfolink', 0);
		      else
		        $availabilityinfolink =
$this->course->availabilityinfolink;
		      
		      if(property_exists($section, "availabilityinfo")
&& !$availabilityinfolink)
		      {
		        $HTMLText = $section->availabilityinfo;
		        $ClearText = html_entity_decode(strip_tags($HTMLText));
		        $ClearText = preg_replace( "/\n\s+/", "\n",
$ClearText);
		        $ClearText = preg_replace( "/\s+/", " ",
$ClearText);
		        $this->course->sections[$sindex]->availabilityinfo =
$ClearText;
		      }
		
		      $availableflag = -1;
		      $availableclass = -1;
		      if($this->enrolState)
		      {
		        if($section->uservisible)
		        {
		          $availableflag = 0;
		          $availableclass = 'availablity-enroled-visible';
		        }
		        else
		        {
		          $availableflag = 1;
		          $availableclass = 'availablity-enroled-notvisible';
		        }
		      }
		      else
		      {
		        if($section->uservisible)
		        {
		          $availableflag = 2;
		          $availableclass = 'availablity-notenroled-visible';
		        }
		        else
		        {
		          if(!$this->course->guest)
		          {
		            $availableclass =
'availablity-notenroled-notvisible';
		            $availableflag = 3;
		          }
		          else
		          {
		            $availableflag = 1;
		            $availableclass =
'availablity-notenroled-visible';
		          }
		        }
		      }
		
		      $this->course->sections[$sindex]->availableflag =
$availableflag;
		      $this->course->sections[$sindex]->availableclass =
$availableclass;
		
		      foreach($section->section_idModule_section_idModuleC as $mindex
=> $module)
		      {
		        $this->course->sections[$sindex]->modules[$mindex] =
clone $module;
		        $moodleskyroommods =
$this->params->get('moodleskyroommods');
		        $directentery =
$this->params->get('directentry');
		        if(is_array($moodleskyroommods) &&
in_array($module->modname, $moodleskyroommods) && $directentery
== 1)
		        {
		          $module->url =
str_replace("view.php","joinroom.php",$module->url);
		        }
		
		        if($module->modname == "label")
		        {
		          $show_label_contents=
trim($this->params->get('show_label_contents'));
		          if(!$show_label_contents)
		          {
		           
$this->course->sections[$sindex]->modules[$mindex]->description
= JText::_('COM_MOOJLA_ACCESSING_TO_THIS_LABEL_IS_DENIED');
		          }
		         
$this->course->sections[$sindex]->modules[$mindex]->name =
$this->course->sections[$sindex]->modules[$mindex]->description;
		        }
		
		        $availableflag = -1;
		        $availableclass = -1;
		        if($this->enrolState)
		        {
		          if($module->uservisible)
		          {
		            $availableflag = 0;
		            $availableclass = 'availablity-enroled-visible';
		          }
		          else
		          {
		            $availableflag = 1;
		            $availableclass =
'availablity-enroled-notvisible';
		          }
		        }
		        else
		        {
		          if($module->uservisible)
		          {
		            $availableflag = 2;
		            $availableclass =
'availablity-notenroled-visible';
		          }
		          else
		          {
		            if(!$this->course->guest)
		            {
		              $availableclass =
'availablity-notenroled-notvisible';
		              $availableflag = 3;
		            }
		            else
		            {
		              $availableflag = 0;
		              $availableclass =
'availablity-notenroled-visible';
		            }
		          }
		        }
		        
		        if($section->section == 0)
		        {
		          $availableflag = 0;
		          $availableclass = 'availablity-notenroled-visible';
		        }
		        
		       
$this->course->sections[$sindex]->modules[$mindex]->availableflag
= $availableflag;
		       
$this->course->sections[$sindex]->modules[$mindex]->availableclass
= $availableclass;
		
		        if(property_exists($module, "availabilityinfo")
&& !$availabilityinfolink)
		        {
		          $HTMLText = $module->availabilityinfo;
		          $ClearText = html_entity_decode(strip_tags($HTMLText));
		          $ClearText = preg_replace( "/\n\s+/", "\n",
$ClearText);
		          $ClearText = preg_replace( "/\s+/", " ",
$ClearText);
		         
$this->course->sections[$sindex]->modules[$mindex]->availabilityinfo
= $ClearText;
		        }
		
		        $finalurl = str_replace('/webservice/pluginfile.php/',
'/auth/moojla/pluginfile_moojla.php/', $module->url);
		        $finalurl = str_replace('/pluginfile.php/',
'/auth/moojla/pluginfile_moojla.php/', $finalurl);
		       
$this->course->sections[$sindex]->modules[$mindex]->url =
$finalurl;
		
		        if(($module->uservisible && $module->url &&
$this->enrolState) || $this->course->guest)
		        {
		          if($module->modname == "page")
		          {
		            $pmod =
current($module->module_idContents_module_idContentD);
		            $purl = $src =
str_replace('/webservice/pluginfile.php/',
'/auth/moojla/pluginfile_moojla.php/', $pmod->fileurl);
		            $purl = $src = str_replace('?forcedownload=1',
'', $purl);
		            $page_course = $this->course;
		            $page_section = $section;
		            $pagetype = $params->get('pagetype');
		            if($pagetype == 0) {
		              $header_arr = [$page_course->cat_name,
$page_course->shortname, $page_section->name];
		              $pageheader = implode(' > ', $header_arr) ;
		
		              $dataObj = array(
		                "wsfunction"			=>
"moojla_get_pages_by_courses",
		                "moodlewsrestformat"	=> "json",
		                "courseid"			=>
$this->course->remoteid,
		                "pageid"			=> $module->module_id,
		              );
		
		              $pageresult =
current(json_decode(MoojlaHelper::sendRequestToMoodle($dataObj)->response));
		
		              $pagecontent = current($pageresult)->content;
		              $pagefooter = "";
		              $modid = $module->module_id;
		              $btntitle = $module->name;
		             
$this->course->sections[$sindex]->modules[$mindex]->name =
MoojlaHelper::pageModal($btntitle,$this->course->remoteid, $modid,
$pageheader, $pagecontent, $pagefooter);
		            }
		            else
		            {
		              $description = $module->description;
		             
$this->course->sections[$sindex]->modules[$mindex]->name =
'<a href="'.$module->url.'"
onclick="' . $module->onclick . '"
>'.$module->name.'</a><div
class="moduledescription"
>'.$description.'</div>';
		            }
		
		          }
		          else if($module->modname == "customcert")
		          {
		            $cert_download = $params->get('cert_download');
		            if($cert_download == 1) {
		              $module->url .= '&downloadown=1';
		            }
		            $description = $module->description;
		           
$this->course->sections[$sindex]->modules[$mindex]->name =
'<a href="'.$module->url.'"
onclick="' . $module->onclick . '"
>'.$module->name.'</a><div
class="moduledescription"
>'.$description.'</div>';
		          }
		          else if($module->modname == "resource")
		          {
		            $rmod =
current($module->module_idContents_module_idContentD);
		            $mimetype = substr($rmod->mimetype, 0, 5);
		            $rmod =
current($module->module_idContents_module_idContentD);
		            $videotype = trim($params->get('videotype',
1));
		            $src = str_replace('/webservice/pluginfile.php/',
'/auth/moojla/pluginfile_moojla.php/', $rmod->fileurl);
		           
$module->module_idContents_module_idContentD[0]->fileurl = $src;
		            $options = array(
		              "src"			=>	$src,
		              "id"			=>	$module->module_id,
		              "name"		=>	$module->name,
		              "onclick"		=>	$module->onclick,
		              "mimetype"	=>	$mimetype,
		              "course"		=> $this->item
		            );
		
		
		           
$this->course->sections[$sindex]->modules[$mindex]->name =
MoojlaHelper::fileActionButton($options, $videotype);
		          }
		          else
		          {
		            $description = $module->description;
		           
$this->course->sections[$sindex]->modules[$mindex]->name =
'<a href="'.$module->url.'"
onclick="' . $module->onclick . '"
>'.$module->name.'</a><div
class="moduledescription"
>'.$description.'</div>';
		            if(is_array($moodleskyroommods) &&
in_array($module->modname, $moodleskyroommods))
		            {
		             
$this->course->sections[$sindex]->modules[$mindex]->name =
'<div class="class-online">' .
$this->course->sections[$sindex]->modules[$mindex]->name .
'</div>';
		            }
		          }
		        }
		
		       
unset($this->course->sections[$sindex]->modules[$mindex]->module_idContents_module_idContentD);
		        if($module->module_idContents_module_idContentD)
		        {
		          foreach($module->module_idContents_module_idContentD as
$cindex => $content)
		          {
		           
$this->course->sections[$sindex]->modules[$mindex]->content[$cindex]
= clone $content;
		          }
		        }
		        else
		        {
		         
$this->course->sections[$sindex]->modules[$mindex]->content =
array();
		        }
		
		      }
		    }
		    else
		    {
		      $this->course->sections[$sindex]->modules = array();
		    }
		  }
		}
		/*
		                      $this->course->sections =
($this->course->sections ? $this->course->sections : array());
		                      foreach($this->course->sections as $sindex
=> $section){
		                        if(!$section)
		                          $this->course->sections[$sindex] =
array();
		                      }*/
		
		
		
		$teachers = $this->course->teachers;
		$teachers = trim($teachers, '"');
		
		$this->teachers = json_decode($teachers);
		JLoader::register('MoojlaHelper',
JPATH_ADMINISTRATOR.'/components/com_moojla/helpers/moojla.php');
		$this->teachersFromMoodle = array();
		$dataObj = array(
		  "wsfunction"			=> "moojla_user_get_users",
		  "moodlewsrestformat"	=> "json",
		  "criteria"			=> array()
		);
		
		$db = JFactory::getDbo();
		$query = $db->getQuery(true);
		$query->select('*');
		$query->from($db->quoteName('#__moojla_enrolment',
'e'));
		$query->join('INNER',
$db->quoteName('#__users', 'u') . ' ON ' .
$db->quoteName('e.jid') . ' = ' .
$db->quoteName('u.id'));
		$query->join('INNER',
$db->quoteName('#__moojla_user_map', 'um') . '
ON ' . $db->quoteName('e.jid') . ' = ' .
$db->quoteName('um.jid'));
		$query->where($db->quoteName('e.moojlacourse') . ' =
 ' . $db->quote($this->course->remoteid));
		$query->where($db->quoteName('e.role') . ' = 3
');
		$query->where($db->quoteName('e.published') . ' = 1
');
		$db->setQuery($query);
		$this->teachersFromMoodle = $db->loadAssocList();
		
		$db = JFactory::getDbo();
		$query = $db->getQuery(true);
		$query->select($db->quoteName(array('muserfields',
'juserfields')));
		$query->from($db->quoteName('#__moojla_user_field_map'));
		$query->where($db->quoteName('iscv') . ' = 1
');
		$query->where($db->quoteName('published') . ' = 1
');
		$db->setQuery($query);
		$cv_field = $db->loadAssocList();
		
		if(is_array($cv_field))
		  $cv_field = current($cv_field);
		
		if($cv_field)
		{
		  foreach($this->teachersFromMoodle as $tindex => $teacher)
		  {
		    $prefix = substr($cv_field['juserfields'], 0, 2);
		    switch($prefix)
		    {
		      case 'sj':
		        $thisuser = JFactory::getUser($teacher['jid']);
		        $field = substr($cv_field['juserfields'], 3);
		        $cv = $thisuser->$field;
		        break;
		      case 'jf':
		        $db = JFactory::getDbo();
		        $query = $db->getQuery(true);
		        $query
		          ->select('fv.value')
		          ->from($db->quoteName('#__fields',
'f'))
		          ->join('INNER',
$db->quoteName('#__fields_values', 'fv') . ' ON
' . $db->quoteName('f.id') . ' = ' .
$db->quoteName('fv.field_id'))
		          ->where($db->quoteName('fv.item_id') . ' =
' . $db->quote($teacher['jid']));
		        $db->setQuery($query);
		        $cv = $db->loadResult();
		        break;
		      case 'cb':
		        $field = substr($cv_field['juserfields'], 3);
		        $db = JFactory::getDbo();
		        $query = $db->getQuery(true);
		        $query->select($db->quoteName($field));
		        $query->from($db->quoteName('#__comprofiler'));
		        $query->where($db->quoteName('user_id') . '
= ' . $db->quote($teacher['jid']));
		        $db->setQuery($query);
		        $cv = $db->loadResult();
		        break;
		    }
		    if(isset($cv))
		      $this->teachersFromMoodle[$tindex]['cv'] = $cv;
		  }
		}
		
		$this->course_button_lable = "";
		$this->entermethod = 2;
		if($this->enrolState)
		{
		  $this->course_button_lable = "ورود به درس";
		  $this->entermethod = 0;
		}
		elseif($this->course->guest)
		{
		  $this->course_button_lable = "ثبت نام در درس
(رایگان)";
		  $this->entermethod = 1;
		}
		elseif($this->course->self_enrolment)
		{
		  $this->course_button_lable = "ثبت نام در درس";
		  $this->entermethod = 2;
		}
		elseif($this->course->cost != 0)
		{
		  $this->course_button_lable = "خرید درس";
		  $this->entermethod = 3;
		}
		else{
		  $this->course_button_lable = "بدون اجازه ی ثبت
نام یا ورود";
		  $this->entermethod = 4;
		}
		$params = JComponentHelper::getParams('com_moojla');
		$loginurl = trim($params->get('loginurl'));
		$loginurl = ($loginurl != "" ? $loginurl :
JRoute::_("index.php?option=com_users&task=login&tmpl=component"));
		$registrationurl = trim($params->get('registrationurl'));
		$registrationurl = ($registrationurl != "" ? $registrationurl :
JRoute::_("index.php?option=com_users&view=registration&tmpl=component"));
		$modalLoginHtml
=MoojlaHelper::createButton($this->course_button_lable,
$this->item->id, $loginurl, $registrationurl);
		
		$this->redirect_url = "/";
		$moodle_url= trim($this->params->get('moodle_url'));
		$this->moodle_url = $moodle_url;
		$this->htmlButton = "";
		if(!$user->id)
		{
		  $this->htmlButton = $modalLoginHtml ;
		}
		else
		{
		  switch($this->entermethod)
		  {
		    case 0:
		      $this->redirect_url =
$moodle_url."course/view.php?id=".$this->course->remoteid;
		      break;
		    case 1:
		      $this->redirect_url .=
"index.php?option=com_moojla&task=coursedetail.enrol&itemid="
. $this->item->id;
		      break;
		    case 2:
		      $this->redirect_url .=
"index.php?option=com_moojla&task=coursedetail.enrol&itemid="
. $this->item->id;
		      break;
		    case 3:
		      $db = JFactory::getDbo();
		      $query = $db->getQuery(true);
		      $query->select($db->quoteName('product_id'));
		     
$query->from($db->quoteName('#__hikashop_product'));
		      $query->where($db->quoteName('product_code') .
' = ' . $db->quote($this->item->remoteid));
		      $db->setQuery($query);
		      $product_id = $db->loadResult();
		      // shop_integration
		      $shop_integration =
trim($params->get('shop_integration'));
		      if($shop_integration == "0")
		      {
		        $this->redirect_url .=
"index.php?option=com_moojla&view=coursedetail&id=".$this->item->id;
		       
$this->app->enqueueMessage(JText::_('MOOJLA_NO_SHOP_INTEGRATION_SELECTED'));
// translate need
		      }
		      else if($shop_integration == 'hk') // hikashop
		      {
		        $this->redirect_url .=
"index.php?option=com_hikashop&ctrl=product&task=show&cid="
. $product_id; 
		      }
		      break;
		    case 4:
		      $this->redirect_url .= "index.php"; // todo after for
course selling
		      break;
		  }
		  $this->htmlButton = "<input type='button'
onclick=\"window.location.href='".JRoute::_($this->redirect_url,
false)."'\"
value='".$this->course_button_lable."'>";
		}
		
		$this->course->favorite=$this->get('favorite');
		$rate= $this->get('rate');
		$this->course->rate =$rate['rate'];
		$this->course->average =$rate['average'];
		$this->document->addScriptOptions('rate'
,!empty($this->course->rate)?$this->course->rate:0);
		
		$this->course->params =$this->params;
		
		if($this->item->useglobalvideo == 1)
		  $this->course->videodownload =
$params->get('preventdownload', 0);
		else
		  $this->course->videodownload =
$this->item->preventdownload;
		
		if($this->item->useglobalaudio == 1)
		  $this->course->audiodownload =
$params->get('preventdownloadaudio', 0);
		else
		  $this->course->audiodownload =
$this->item->preventdownloadaudio;
		
		
		JPluginHelper::importPlugin("content");
		JPluginHelper::importPlugin("moojlacourse");
		$this->courseEventDispacher = JEventDispatcher::getInstance();
		
		$this->course->htmlButton = $this->htmlButton;
		$this->course->teachersFromMoodle = $this->teachersFromMoodle;
		$this->course->enrolState = $this->enrolState;
		
		$course_layout = $params->get('course_detail_layout', -1);
		$layout = 'default';
		if(property_exists($this->item, 'layout') &&
$this->item->layout && $this->item->layout != -1)
		{
		  $layout = explode('.', $this->item->layout)[0];
		}
		else
		{
		  if($course_layout != -1)
		  {
		    $layout = explode('.', $course_layout)[0];
		  }
		}
		$this->setLayout($layout);
		/***[/JCBGUI$$$$]***/
		

		// Set the toolbar
		$this->addToolBar();

		// set the document
		$this->_prepareDocument();

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			throw new Exception(implode(PHP_EOL, $errors), 500);
		}

		parent::display($tpl);
	}

	/**
	 * Prepares the document
	 */
	protected function _prepareDocument()
	{

		// always make sure jquery is loaded.
		JHtml::_('jquery.framework');
		// Load the header checker class.
		require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php'
);
		// Initialize the header checker.
		$HeaderCheck = new moojlaHeaderCheck;

		// always load these files.
		$this->document->addScript(JURI::root(true) .
"/media/com_moojla/pusher/js/pusher.min.js",
(MoojlaHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");

		// Add View JavaScript File
		$this->document->addScript(JURI::root(true) .
"/components/com_moojla/assets/js/coursedetail.js",
(MoojlaHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		
		/***[JCBGUI.site_view.php_document.38.$$$$]***/
		$this->document->addScriptOptions('token',
JSession::getFormToken());
		$this->getModel()->updateHits($this->item->id);
		/***[/JCBGUI$$$$]***/
		 
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_moojla/assets/css/coursedetail.css',
(MoojlaHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
		// Set the Custom JS script to view
		$this->document->addScriptDeclaration("
			
			/***[JCBGUI.site_view.js_document.38.$$$$]***/
			jQuery(document).ready(function($){
			  $('#regtabbtn').click(function(){
			   
$('#regtabbtn').addClass('active_tab_login_registration');
			   
$('#logintabbtn').removeClass('active_tab_login_registration');
			   
$('#moojla-reg-modal-content').addClass('show_content');
			   
$('#moojla-login-modal-content').removeClass('show_content');
			  })
			
			
			
			
			  $('#logintabbtn').click(function(){
			   
$('#logintabbtn').addClass('active_tab_login_registration');
			   
$('#regtabbtn').removeClass('active_tab_login_registration');
			   
$('#moojla-login-modal-content').addClass('show_content');
			   
$('#moojla-reg-modal-content').removeClass('show_content');
			  })  
			
			})
			
			/***[/JCBGUI$$$$]***/
			
		");
	}

	/**
	 * Setting the toolbar
	 */
	protected function addToolBar()
	{

		// set help url for this view if found
		$help_url = MoojlaHelper::getHelpUrl('coursedetail');
		if (MoojlaHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_MOOJLA_HELP_MANAGER', false,
$help_url);
		}
		// now initiate the toolbar
		$this->toolbar = JToolbar::getInstance();
	}

	/**
	 * Escapes a value for output in a view script.
	 *
	 * @param   mixed  $var  The output to escape.
	 *
	 * @return  mixed  The escaped value.
	 */
	public function escape($var, $sorten = false, $length = 40)
	{
		// use the helper htmlEscape method instead.
		return MoojlaHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
courselist/index.html000064400000000054151171425060010736
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>courselist/tmpl/default.php000064400000003652151171425060012061
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');


?>
<form action="<?php echo
JRoute::_('index.php?option=com_moojla'); ?>"
method="post" name="adminForm"
id="adminForm">
<?php echo $this->toolbar->render(); ?>
<!--[JCBGUI.site_view.default.40.$$$$]-->
<?php echo $this->loadTemplate('coursecards');
?><!--[/JCBGUI$$$$]-->


<?php if (isset($this->items) && isset($this->pagination)
&& isset($this->pagination->pagesTotal) &&
$this->pagination->pagesTotal > 1): ?>
	<div class="pagination">
		<?php if
($this->params->def('show_pagination_results', 1)) : ?>
			<p class="counter pull-right"> <?php echo
$this->pagination->getPagesCounter(); ?> <?php echo
$this->pagination->getLimitBox(); ?></p>
		<?php endif; ?>
		<?php echo $this->pagination->getPagesLinks(); ?>
	</div>
<?php endif; ?>
<input type="hidden" name="task" value=""
/>
<?php echo JHtml::_('form.token'); ?>
</form>
courselist/tmpl/default.xml000064400000003077151171425060012073
0ustar00<?xml version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_MOOJLA_MENU_COURSELIST_TITLE"
option="COM_MOOJLA_MENU_COURSELIST_OPTION">
		<message>
			<![CDATA[COM_MOOJLA_MENU_COURSELIST_DESC]]>
		</message>
	</layout>
	<!-- Adding page parameters -->
	<fields name="params">
		<fieldset name="basic" label="COM_MOOJLA"
			addrulepath="/administrator/components/com_moojla/models/rules"
			addfieldpath="/administrator/components/com_moojla/models/fields">
		<!--  Mycourses Field. Type: Radio. (joomla) -->
	<field type="radio"
               name="mycourses"
               label="COM_MOOJLA_CONFIG_MYCOURSES_LABEL"
              
description="COM_MOOJLA_CONFIG_MYCOURSES_DESCRIPTION"
               class="btn-group btn-group-yesno"
               default="0"
               readonly="false"
               disabled="false"
               >
                <!-- Option Set.-->
                <option
value="1">COM_MOOJLA_CONFIG_YES</option>
                <option
value="0">COM_MOOJLA_CONFIG_NO</option>
        </field>			
		<!--  Moodle_course_category Field. Type: Moodlecoursecategories.
(custom) -->
	<field type="moodlecoursecategories"
               name="moodle_course_category"
              
label="COM_MOOJLA_CONFIG_MOODLE_COURSE_CATEGORY_LABEL"
              
description="COM_MOOJLA_CONFIG_MOODLE_COURSE_CATEGORY_DESCRIPTION"
               class="list_class"
               multiple="false"
               default=""
               required="false"
               showon="mycourses:0"
               button="false"
                />
		</fieldset>
	</fields>
</metadata>courselist/tmpl/default_coursecards.php000064400000002732151171425060014454
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_coursecards.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.4.$$$$]-->
<div class="card-columns">
<?php foreach ($this->items as $item): ?>

<div class="card">
  <img class="card-img-top" src="<?php echo
$item->summary_files; ?>" alt="Card image cap">
  <div class="card-body"> <?php echo $item->fullname;
?> </div>
</div>

<?php endforeach; ?>
</div><!--[/JCBGUI$$$$]-->

courselist/tmpl/index.html000064400000000054151171425060011712
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>courselist/view.html.php000064400000007077151171425060011403
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		view.html.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

/**
 * Moojla View class for the Courselist
 */
class MoojlaViewCourselist extends JViewLegacy
{
	// Overwriting JView display method
	function display($tpl = null)
	{		
		// get combined params of both component and menu
		$this->app = JFactory::getApplication();
		$this->params = $this->app->getParams();
		$this->menu = $this->app->getMenu()->getActive();
		// get the user object
		$this->user = JFactory::getUser();
		// Initialise variables.
		$this->items = $this->get('Items');
		$this->pagination = $this->get('Pagination');

		// Set the toolbar
		$this->addToolBar();

		// set the document
		$this->_prepareDocument();

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			throw new Exception(implode(PHP_EOL, $errors), 500);
		}

		parent::display($tpl);
	}

	/**
	 * Prepares the document
	 */
	protected function _prepareDocument()
	{

		// always make sure jquery is loaded.
		JHtml::_('jquery.framework');
		// Load the header checker class.
		require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php'
);
		// Initialize the header checker.
		$HeaderCheck = new moojlaHeaderCheck;

		// always load these files.
		$this->document->addScript(JURI::root(true) .
"/media/com_moojla/bootstrap-v4/js/bootstrap.min.js",
(MoojlaHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		$this->document->addStyleSheet(JURI::root(true) .
"/media/com_moojla/bootstrap-v4/css/bootstrap.min.css",
(MoojlaHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") : "text/css");
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_moojla/assets/css/courselist.css',
(MoojlaHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
	}

	/**
	 * Setting the toolbar
	 */
	protected function addToolBar()
	{
		
		// set help url for this view if found
		$help_url = MoojlaHelper::getHelpUrl('courselist');
		if (MoojlaHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_MOOJLA_HELP_MANAGER', false,
$help_url);
		}
		// now initiate the toolbar
		$this->toolbar = JToolbar::getInstance();
	}

	/**
	 * Escapes a value for output in a view script.
	 *
	 * @param   mixed  $var  The output to escape.
	 *
	 * @return  mixed  The escaped value.
	 */
	public function escape($var, $sorten = false, $length = 40)
	{
		// use the helper htmlEscape method instead.
		return MoojlaHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
courses/index.html000064400000000054151171425060010225
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>courses/tmpl/default.php000064400000003114151171425060011341
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');


?>
<?php echo $this->toolbar->render(); ?>

<!--[JCBGUI.site_view.default.42.$$$$]-->
<section id="courses">
    <div class="container">
        <div class="row">
            <?php
            ob_start();
            include
JPATH_SITE.'/components/com_moojla/views/course_search/tmpl/'.$this->tmpl;
            $output = ob_get_contents();
            ob_end_clean();
             echo $output;
            ?>
        </div>
    </div>
</section><!--[/JCBGUI$$$$]-->

courses/tmpl/default.xml000064400000000346151171425060011356
0ustar00<?xml version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_MOOJLA_MENU_COURSES_TITLE"
option="COM_MOOJLA_MENU_COURSES_OPTION">
		<message>
			<![CDATA[COM_MOOJLA_MENU_COURSES_DESC]]>
		</message>
	</layout>
</metadata>courses/tmpl/index.html000064400000000054151171425070011202
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>courses/view.html.php000064400000010503151171425070010657
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		view.html.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

/**
 * Moojla View class for the Courses
 */
class MoojlaViewCourses extends JViewLegacy
{
	// Overwriting JView display method
	function display($tpl = null)
	{		
		// get combined params of both component and menu
		$this->app = JFactory::getApplication();
		$this->params = $this->app->getParams();
		$this->menu = $this->app->getMenu()->getActive();
		// get the user object
		$this->user = JFactory::getUser();
		// Initialise variables.
		$this->items = $this->get('Items');
		
		/***[JCBGUI.site_view.php_jview_display.42.$$$$]***/
		require_once
JPATH_ADMINISTRATOR.'/components/com_moojla/models/course.php';
		$mmc= new MoojlaModelCourse;
		$this->table= $mmc->getTable();
		
		\JPluginHelper::importPlugin('moojlacourse');
		$this->dispatcher = JEventDispatcher::getInstance();
		
		$this->courses= $this->items;
		MoojlaHelper::calculate_price_from($this->courses);
		$tmpl =
JComponentHelper::getParams('com_moojla')->get('course_search_tmpl',
'default_card.php');
		$this->tmpl= $tmpl;/***[/JCBGUI$$$$]***/
		

		// Set the toolbar
		$this->addToolBar();

		// set the document
		$this->_prepareDocument();

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			throw new Exception(implode(PHP_EOL, $errors), 500);
		}

		parent::display($tpl);
	}

	/**
	 * Prepares the document
	 */
	protected function _prepareDocument()
	{

		// always make sure jquery is loaded.
		JHtml::_('jquery.framework');
		// Load the header checker class.
		require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php'
);
		// Initialize the header checker.
		$HeaderCheck = new moojlaHeaderCheck;

		// always load these files.
		$this->document->addScript(JURI::root(true) .
"/media/com_moojla/pusher/js/pusher.min.js",
(MoojlaHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		// load the meta description
		if ($this->params->get('menu-meta_description'))
		{
			$this->document->setDescription($this->params->get('menu-meta_description'));
		}
		// load the key words if set
		if ($this->params->get('menu-meta_keywords'))
		{
			$this->document->setMetadata('keywords',
$this->params->get('menu-meta_keywords'));
		}
		// check the robot params
		if ($this->params->get('robots'))
		{
			$this->document->setMetadata('robots',
$this->params->get('robots'));
		}
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_moojla/assets/css/courses.css',
(MoojlaHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
	}

	/**
	 * Setting the toolbar
	 */
	protected function addToolBar()
	{
		
		// set help url for this view if found
		$help_url = MoojlaHelper::getHelpUrl('courses');
		if (MoojlaHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_MOOJLA_HELP_MANAGER', false,
$help_url);
		}
		// now initiate the toolbar
		$this->toolbar = JToolbar::getInstance();
	}

	/**
	 * Escapes a value for output in a view script.
	 *
	 * @param   mixed  $var  The output to escape.
	 *
	 * @return  mixed  The escaped value.
	 */
	public function escape($var, $sorten = false, $length = 40)
	{
		// use the helper htmlEscape method instead.
		return MoojlaHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
course_search/assets/images/no-image.jpg000064400000037661151171425070014356
0ustar00�PNG


IHDR�^sQ�	pHYs��
OiCCPPhotoshop ICC profilexڝSgTS�=���BK���KoR
RB���&*!	J�!��Q�EEȠ�����Q,�
��!��������{�kּ�����>�����H3Q5��B������.@�
$p�d!s�#�~<<+"��x��M��0���B�\���t�8K�@z�B�@F���&S�`�cb�P-`'������{[�!��
e�Dh;��V�EX0fK�9�-0IWfH�����0Q��){`�##x��F�W<�+��*x��<�$9E�[-qWW.(�I+6aa�@.�y�2�4�������x����6��_-��"bb��ϫp@�t~�,/��;�m��%�h^�u��f�@����W�p�~<<E���������J�B[a�W}�g�_�W�l�~<�����$�2]�G�����L�ϒ	�b��G�����"�Ib�X*�Qq�D���2�"�B�)�%�d��,�>�5�j>{�-�]c�K'Xt���o��(�h���w��?�G�%�fI�q^D$.Tʳ?�D��*�A�,����`6�B$��BB
d�r`)��B(�Ͱ*`/�@4�Qh��p.�U�=p�a��(��	A�a!ڈb�X#����!�H�$
ɈQ"K�5H1R�T
UH�=r9�\F��;�2����G1���Q=��C��7�F��dt1�����r�=�6��Ыhڏ>C�0��3�l0.��B�8,	�c˱"����V����cϱw�E�	6wB
aAHXLXN�H�
$4�	7	�Q�'"��K�&���b21�XH,#��/{�C�7$�C2'��I��T��F�nR#�,��4H#���dk�9�,
+ȅ����3��!�[
�b@q��S�(R�jJ��4�e�2AU��Rݨ�T5�ZB���R�Q��4u�9̓IK�����hh�i��t�ݕN��W���G���w
��Ljg(�gw��L�Ӌ�T071���oUX*�*|��
�J�&�*/T����ުU�U�T��^S}�FU3S�	Ԗ�U��P�SSg�;���g�oT?�~Y��Y�L�OC�Q��_��
c�x,!k
��u�5�&���|v*�����=���9C3J3W�R�f?�q��tN	�(���~���)�)�4L�1e\k����X�H�Q�G�6����E�Y��A�J'\'Gg����S�Sݧ
�M=:��.�k���Dw�n��^��Lo��y��}/�T�m���GX�$��<�5qo</���QC]�@C�a�a�ᄑ��<��F�F�i�\�$�m�mƣ&&!&KM�M�RM��)�;L;L���͢�֙5�=1�2��כ߷`ZxZ,����eI��Z�Yn�Z9Y�XUZ]�F���%ֻ�����N�N���gð�ɶ�����ۮ�m�}agbg�Ů��}�}��=
���Z~s�r:V:ޚΜ�?}���/gX���3��)�i�S��Ggg�s�󈋉K��.�>.���Ƚ�Jt�q]�z�������ۯ�6�i�ܟ�4�)�Y3s���C�Q��?��0k߬~OCO�g��#/c/�W�װ��w��a�>�>r��>�<7�2�Y_�7��ȷ�O�o�_��C#�d�z����%g��A�[��z|!��?:�e����A���AA�����!h�쐭!��Α�i�P~���a�a��~'���W�?�p�X�1�5w��Cs�D�D�Dޛg1O9�-J5*>�.j<�7�4�?�.fY��X�XIlK9.*�6nl�������{�/�]py�����.,:�@L�N8��A*��%�w%�
y��g"/�6ш�C\*N�H*Mz�쑼5y$�3�,幄'���L
Lݛ:��v
m2=:�1����qB�!M��g�g�fvˬe����n��/��k���Y-
�B��TZ(�*�geWf�͉�9���+��̳�ې7����ᒶ��KW-X潬j9�<qy�
�+�V�<���*m�O��W��~�&zMk�^�ʂ��k�U
�}����]OX/Yߵa���>������(�x��oʿ�ܔ���Ĺd�f�f���-�[����n
�ڴ
�V��E�/��(ۻ��C���<��e����;?T�T�T�T6��ݵa�n��{��4���[���>ɾ�UUM�f�e�I���?�����m]�Nmq����#�׹���=TR��+�G�����w-
6
U����#pDy��	�
:�v�{���vg/jB��F�S��[b[�O�>����z�G��4<YyJ�T�i��ӓg�ό���}~.��`ۢ�{�c��jo�t��E���;�;�\�t���W�W��:_m�t�<���Oǻ�����\k��z��{f���7���y���՞9=ݽ�zo�����~r'��˻�w'O�_�@�A�C݇�?[�����j�w����G�������C���ˆ
��8>99�?r��C�d�&����ˮ/~�����јѡ�򗓿m|�����������x31^�V��w�w��O�|
(�h���S�������c3-�
cHRMz%������u0�`:�o�_�F4�IDATx���Is[י��ý�	��YS*����:�M�7^y��O�
��\�j/��݉<H�L���<ߋ��9R�DJ���U�J�)����3��	������@���@�@:
���t@���@:: ��tt@����@:
� ��t@�@���@�@:
���t@����@: �
��t@�@���@�@:
���t@���J�����'�/F��F�:p�AB'�`0
�A�7�M���jooO{{{j�Z
�y��W�VK������/	v�M�~��B���~�I�jU�H�IR�TR0�ӧO5	t�Me>��Q"��h4"�q���	r�9�r�@:�����:��D�"t�3s�@�:pKG��x\�TJ�XL��s�A
�Eu:��*�@�`�@
�l6�'O�h~~^�~���ϦB��_�h4�.:pׅB!���H$�`0H����h822�|N�á���<ϓ��0��yK(�,q�n��\�@
`K�8� ����~��`ֺ�#��

���@����*�qE"��a
��}.@��n��H�`P��*�^��X,�T*��n�����+�PO$J����r�f��$��>�h��Z>\�a�A�Z-�J%��y���\.��nk0���XL�tZ�RIKKK�f�J$r���
�\�@
�P($������x�B�fӎ��ĩ�^����P��o�/��B�t�@tW)
I��ݮ~��G�����
�Bg�6
���z��?��n��/��Bsss��}��W�����j�Zz��^�z�Z��d2i��h�z0T8V��W����?���h�h4�x<�P(D'8�;\�j���e0��y������l6511�@
p�R4ӏ=�L���issSkkkj��r�7@���PH�P�N{<���~��g���I����P�x\����ת�����\c���Ѩ��6#�X,�P(t�C����絽���ph��?��b��j���W�^����5��.yDnF��jU�ZM�z]�~ߖhE"�b19�sk���A
U*��eu�]9�s!�iS�������)=x�@�ᐑ:@�W3b5���~���~�ڮ%��^+++���~���9
�[R&��ժ:��"��]7����h4T�����3���Ţ���{�����F#u�]mll��n�ѣGz��B��:�έYc7#��h�J��V�eod.r�C�����&A��3�
�����~�Ao޼Q��W*�:F��H�NGo߾��ԋ���D"�<���H�Z-�z=[�~�<�S�ףl
8��Ktӻ|}}]����Sn�}�K�b��\�U�Z���w��[���L}�?���y`���9hd}}]���r]����fD{xx���-��e9�s+v��F�#�x�y����5��x����qE��K�].S�E��
�5U.�����j��x<~�Q�	�7o�(��_��_o�	c�Ǒ�y�2��/t}>��h�V��}��ie�YE"{�+=�A��!�qT����/��V��+����Ѩj��666������i���*�]�ɤ}�<g4)����<��y�vvv������Yݿ_rǞg�S�
Ёτ9.�͛7�v��D"Z�^O/_������Ϊ�j�z
P:�V,���374�dR�d��f.Li�$5�M��emmm)�JiaaA��������8�F��A���P(�V��B��F�aG��
7s����VVV499�`0x�wv��655�t:��pxa��@@��P���������~�0���n��y�:��
���鴦��477�l6k����}��}�88:p��廻���ܴ#ȏ
��h�^����-e2���^J�]�]������433c��?�椛�X,���%e�Y����P���j6�*�J
�B�f�*
���S&�Q<W,�����u�v�r.(�%�P((����0�pX�XL������=�B�&�}_333��o�@
p!��\�����쥞�f���
Z*�R<W���/����N��_���~�I�b�>���u0B��x�KZ�\V�׳]�>��^����P�V�F��S��+�LjyyY�BAo߾U��R"�8���L��/������_��T�c¼έVKo߾���&&&477�\.���i��q{��i�KЃ@n3�6k޵Z�B˵�����666���C�����L;��i����W(���=�܌�Ow�|�W��W0��ꪾ��K�r9��~ѻ����>����}���P�VK�jU�RI�rY�|^����d2�d2������Z;@��`��vww��t�F/�{�b1��m���kaaA�d�F_�@
 ��
����l���j:ʝ���b��2����_�E<P��}���0�Bv�c0���?g|��v��h���P���J��ZYY��ꪲ��;eoﻙt�l8��n�T*��n+�_�)c�N����dnE]��&SSS���7-..�������`0P8~g���e>�4??�/��B���J$�t:�R>��533���I����h(��N}
����666����X,f�����m�!�)}��4�����:L%
i0��۷J�R���U�۽�#��`
�u�N�m/���U5�M5�Mu:;}�F�H$�L&5==���)%�I
�Cy�w)�f�?33�?��v��No�Z
�B�D"v)��x��n�Z��=�\.+��*��hff�>��``�(}�\3�uU(�N�O-�:n4�qmnn�
X�e����8���<x�f��J��z�.���H$499�L&cg&�����p�X,���I{���ޞvwwuxxh7���x3�~�4�y�����q߾}��o�jrrRZ^^V&�Q$�뺶�m���@�X0����]�.#t�ͦj��z�ީ��nb���?��njjJ�l�^����n���y
�Z-�F#E"=|�P�=R�Z������tpp
��l�F����t�~_o޼��Ɔ�������C����Cxh-���2k�&h�I]���lv����kvvV�P�V�6��4��݁6�؂����\����*���Ţ�岊Ţ:����\׵}����sj6�������R�����m�~��������\��RQ�Z��MN�HD�RIo߾���̭
tj㿿I�5���BJ�R�f�v��T*�X,�M��v[�n�~�i�Ҙ���g��mU*I����Ţr��2���ɤb���!Ϩ:p��>�����j�j�<��^�>�l6U,��v/�c�U_˛���H�,s$�Ie2��7�Q�V���BA�^�H�ߓ��i�o�^O���z��R��VVV��Fsss�>
ЁKa�B!
�CU�U5�M�q�*�z=�E4-���7�u�@@�HD�����Ғ����txx�v��P(t��x��~8���\.��j1���P�}_���j6��rd�IǑ�yz��2��R�ԕ�YW��wc�/�A;-�N��N�5;;�j��r��Z��Z�f7۽o3�����<OJ�ӌ�A��ɬ]�j55�M���X,v%?�q
�����W12�~<�?�1��f��L���u{�N�PP��:r3t�͂y����l��@.1�;��*�ʅz�p��}_�ZM�v�R�Ռ�����/`�=~&���A2�=���d������uxx�n�k�ڏz8V"�P"����@�8�?�p�N�����eH(R�P�����/�Ϲ�"6��mllh_�~ߞ��崺�j�|������a{n.������۷'��x��T*���U�R)�Â@�b�n6����#)�!/
)��+��hyy�,rQ̔z�T�O?��_~�E�ZM����5�M-//kjj�n��ǻ^��dfRL�[s]O{����h��/�,y�>��u��j*���v���>�@8V��қ7o���+MMM)��<O��������_귿�-o�Sn��~��gU*�S�
�ᰒɤ���᰺�.��q�q.p>�v[�f��׎����޾}+��D.dd)�ڣ~ccC���?���I�
��h4��O?����j���X�=��kggǖ8���)����f9@��ȴm��j4�x�Ѩ��F3�z�a��R�h{{[�r�#:��G�����m�R�T�����������W$��Y���^Ϟ�v���y�������Zw�\7�\��n����=u�:G��nW�BA�j՞R���nNv�t:v�<�~�?��5���?�قx<nG���.x�qtxx�����VD��ae2e2��m���:pف
�T�VU�V�Ʊ�bFɒ����J��H$�I7�@@�nWv�y�n"���֖��׿�R��
|�+�qT�V���{d�0䦦��N���������j4����>B7�������>�1#�H$�V����m��u{��yO��W>����ϵ��i����mdj�+��=^w<���|��h4����,m|�I�r�8��~��j���mw��I*�����z��]�?ox:����M�~�Z�l�yC,�j0h}}���?�s������Ӟ���_\\T*���y�c#t�?�G���z�ލ{|fjwkk�����y��Ţ
��m��Ԝ%�������o*
�7�&�*F榻��Ύ�ժb��;��C���t:���	��a�ɀ@�b�>�j��yލہ캮J��^�~-���T���C��aE"���hoo�B�Y(R�T���(��+*����y����}�j�o�|�W2���Ғm��%3k��j��M{|��X,jmmM�FC�h�L#{ӧ����*�R�nF��HD��H{{{������i�]
uS�vxx�Z�vj�7��N�u��}���T
��5t�,w��\-���}��M���@
��Q�XL�?��H�q��u���i_��)�H\�:�xYۛ7o4��ŔN�
������;;;����N�5==�N��t;�W��fS������e�7o�hggG�x�nn3��]�XL�^Oo޼�?�
��.�\�X,�B���ϟ�\.+�ɒ6�q�n�O
��p��`���)MNN~�u�`�\��`�n��z�nܸ�7�|^�PH��innN�D��1��^O�BA[[[z��Z���ѨB�Х��:�#�󴷷�`0��O�jyyY�n�N�~7��{��j�j��oPZ\\���-]t�
�}5�Mu�]
��f���v����v��G�iaa������r����mmoo����i��ܘe:эF#����nr�d��m��A�X,�7��Q.����:���@�W�lr�t:���x	�Mbj��_�������˗v#��y�z6�/s�����D"���M�F#���������f��Ţ��pR�Z&�Q2��3.���K��CڴCm6���n��	��p�N�c������ݮ�Jv����������S��T*���S�f��X,�T*��I��s��=%	6:p���j�T�T���yC}|7�	KSn~!j��{��^�|�h4�/��R��j0ܺ�lSvV��T�T������VVV�DN-i���a��t�h4l���<�p]!~�u57/_�ԫW��m�8�|���Ɔ���="����R����
#t�Ua��U�ݶe_��ُP(�V���o�j}}�֪ߖ�ws��y���Q��ygӤٌ��d433s+�m@�w�h4R��W��U���C��F�E�?����-y�wa���w�]�J%�j5
�wfqF��<�S.�����!�^A�W92�~��4���d��觟~��ޞ�~��3"��^�\�������qMOOkjj�@ǥ`Sp���?����y��]u�"vwwW�DBJ�R�����6�OZ�7#���MLL�dF�u��F��:��|ߧf�
���曛������j�nte��gJ͍�s�}_�@@���J����@�+Лͦz�ޝ�;~��qu:���ٓ�L����t�;88P�Ry�z,�����<��E�\��ˌ�:�Α�/\��
�����{㮻Y"����m�j�K����Ѩ&''�H$.�W>@����%���n⑩w����W�^immM�XL�p��T�:��������T*����#����O(�=|߷�Δ�Վ�M��|>�p8�D"���)��{��L�Z�XT�^�`0��(��}MNNjyyY�@��s0B�+T|�W��f��F��p�֨���W�R��k��뺪�j��ܴ'ܝ4�vG����f���t;���&��)kL�^}����~����=MOO+�H(�L��kH�u�j������p��r�`0P
P6�U:���\�?�p����v��XC��P������5���^�PH�`�JC���z=U�U��uE"����
�BZ]]������@�K0���t:����Ҋ�.{��������533�p8|��n:�����֜��	�F�ZXXP:�V����\s
V*��o~�v��&8[��2�̕nT�F6���uxx(�q�iz3��D499�X,FC"�uz(�����4��7h�n�K�����h��`�B��Z�v�M�����VWW��8":p��y�f��
q7��W��8��~����C��u��b���}%�I���(�~�nf�;�F0��l6����n�{b#I�F�J��J�R��qeX��3�܅�a��m�����	tS���٬���Y��7M(R��V�TR�^�k��á������~����S��WMݑ�?w�_�{Ĵ����'����F�������Z�/t�>��Q4��;�L�_d9[
��8:<<T>�?�{��}9����)%	^�U��ժ^�~�B���pH���PH���h\H��ٛ^��r��z��x<���x��X,���%�Ia�\U�KR�^�����r��G}@��p�PP�Z}�$�iyyY�X�R5�U�F��p�{������F�qb��p8��j�d���/:p�ڸ{.*LG�������n��i�;��y�������p-����~�=����X,)U;~�fgg���j����u�Nຮ����N�kẮ�٬�٬�.0B.iΈ	��B�V��������t�9�|vvVL��@.�������h��<.$I�ZM�n��`7��vU�TT�V�L&���Ʒ{��irr��t�
�C�A%	MMM�q�S���q%��SG�fj���@�r����F����d2�^����\$��������9
�;1�~Yk���r�`0P4=��h4R0�`0��ժb��=|e��1�izzZ�X̎�Y��\p��AE�Q���w>�o�K�q�,增�p8��y��M

���y{��|>�Z��X,���t:���ս{��.��
Ё���A4�n��n�����������솯�`�Y���8�<O�BA�z�ԦC�~_�tZ+++
�4��\E��f�`����
�����\������t��}MOO��9�]���j���o߾�:�b1e2�R)u:F�
���p8��8�����䤪ժ�Ţ�ݮ\ו�瞎���T>�W,��ܜ�ݻ���Y����Ϫ5n(R����Ύ=A��1�4==���I����3f�~&����2����洰��R��F��F��v�m��<�$��i�ZU
P�RQ�R��̌&&&�N��J��D$�:�l:��5f���j�kj�#��,I,//+����<:�����yv�|bbB���
�*�������Ύ������uv�u�D4���v���k���/�f�ZXX��Ғ�٬"��]�\w)�C�����U(�s=���"��fgg�N��n�y��@�q���phk�#���߿�{���hhooO���v:�q��kπ?)�͟��a;��}_���V*�R.����fff캲�ywf��uxx�R��p8l��5�á"�����l�@����	�`0(�q��ǕH$477g�ϫժJ��Z��]��'�>M=�`0���t:�t:j�Z:<<T:���Ąfff4==�x<.IGJ��o>nK�K�v�3瞛�5���*��޽{������1S��)*�J)��jeeE�z]�BA���*�j��6�M7=3r?>Z7�o~F�ٴ]�R����絴��t:�x<�H$"�q�,�m�,�m�y�Z=u�a8*�HhiiI���}ހ
�\,��^O�^O��H��jeeE��˪�j��߷��=ϳS��	0���7������M�b1�����Ç���?R�v[=
��<���������"�L*��*�H(��<��A�����t:�h4�\.�J��b��r��B��f��p8lK�>�Y���p�N����U�U�3~aaAsssJ&��&�v�3U�nW;;;�t:�F#�����9����Ns��J�C;}
�l���̌r��
�R��f��v��N���hdK�Nwz&����L&U*�T(�N��N��H$�Dl׻�`pcF��X,�^�ۥ���7���533���y������ȗ�e�(��l�nv��A�j5[�vpp�^�g7Ι��y«��Yo~����m��r���u]�H$������O����p8|��s��?��?��_��j�&#t���b7�й����U---��l����5�M�b����3�����nȋ�b�����Ғfff�L&��v�u�kZ���￳AP���N8V6�U*�bT��bFޣ�H�PH�XL���i���i-..�T*�V��V��&*�MfN
w��^��lڙ���Ce2;�o6��6�&�/;���t:*�˪��J�R�L����H$�(�N��<�<
��<&xM'�`0�X,���U=x�N�������P�n׮)��}�����i�*I�^O������T"���‚�ݻ���iE�Q�B!��e��B���S�R9��!(�kqqQ�X�@��v���gj����VWWu��}�Z-���j{{[����t:r]�֟�i�c�������D�Z���~�Չn4)�}moo��h(��7�u�XL����D"v�δ;t��x
z(�a�8��������e��\���h<�:?��4�1�Z�T�N�\.���Y�b��d\T�����}��ü��h~~^+++
�Ô��@p������C_�����l6U*�499�B��^��N��^�g˿��r���7&<�ժ�á�ɤ�Ţ����d�L&���F�3�R��8�:���l6O��������$�M������7��`PZ^^V������D��t��y_�P_k�����֖�Ѩ������C-,,ؑ����R����M�Q菉���%����0B���2#e�u������Y���X,�)�������7-i���Ţj��^�z���){��t|��?R�>�PH�z]���'֝�����&''9�:���LǛ�z4��Ą2���٬r��r���DW���l6m��insR`��of�ͦ�á��*������J�499�t:�X,fw��6��g̯�A3���c�
�B��Xa���m��o,�F�J�Rv:���@[[[��߷�e�Ƹ����G��p؎����-}3ì��jzzZ�Tʆ�9I�Q�f:�����cd�M@<W.�S*�R��f�:��3�����Bv�z��V�X��ޞ-s�̝�B���Ѩ�Y�bQ�RI��jvvV+++���Q&�Q0���C9�c������}�����){�a�gm|�۔���q%�I�^*�T.�U*��h4$���G�����~��V��n�{�Է��YMOO+�۲3�3��l*���{��&&&����h4�F8�0��o��j~~��7
f
��:�����m*c���G��?^��y�������'�u��崼����Ie�YI���Z��{G�ZZZ��8���@���t�i&c�laaAKKK�6|kkK[[[�l����'�0HGK�$�X,�X,�q���(�N�\.�i���b1e2%	;Uܚc�
�:C�4�1g�w:��uU*��e�o=*�	�����G�Q9�cw��7�1����fgg���N<�_0B�0;��A/�HD�T�n��V����R�PP��R�ղ����}�o�PH��n�m���I��ZXX���m3�pΑ���`0���Y�r9��m
�}�V���GJ�̴����O�b廮k�=o�Z�(
��F���ҷ��Ye�Y=~�X�jU���z���j��\�=҉�<�k3ڟ��U2��L
:\t����溮��2��&''��d477�R�d�������ҷ��{
P��S4�Ç�J�8�:\�h��<��nnnN���j��������Q>�W�ղ�r�~�v�;m��L&����H$B��@��fF��w����n��B����mmm��j�����q�V��,'�:\�݄��ўL&�8���VVVT.�uxx����j5IR$����nW���ZZZ�$��@��u�x':�q433���y�;~jjJ�bQ�VK�^O�nW����jjjJ������A��u;��M�u:~aaA�nW�bQ�����޶ǧ��i�R)5
j�A��Me�Ƅ�a���(�N�����j�Z�������M-�_�u��P($�um�Y�kޜ�0B��<r����G"�F#�:�f�j�]�@���@�@:
���t@���@:: ��tt@����@:
�
������f���N�rY����S=y�D������J�\��W_}�\.�E��i���m�Kҋ/�y����yޑ�
��
�����r]�z\2������ϵ���:���ѣGZYY�����ӧO��f%I�lV�?���|mmM�}���<o�J�r�<�2�\mmm��;�g�|�t�����;S�O�<�����֖����H2����Çz��э�N�|^ϟ?W�ٴ���ӧ��}���tpp����VVVνd����#�\���_M��@���'y��م��y���r�ꫯ�Y�N�~��;��SG�/^��˗/�5_���w����:n�Ёs(��g�>>*��0?)���M��Mq��ŧ�p����$}��wv�Y=}���M�������Lԡ���l?�=ztd�ׇBxmmMү�����?��5�����>>r���{��ښ�?n��?��ԩ��ϟ)9K&�z��r�ܑ
/��Z[[;��Y���z����ͦ}�_}�թ��8i���իSgBƯ��yZ[[���Y={�L��٩�f��o��V_��G�?�s��`|�6��	�'O�	ҋ*�Z[[;�٬����\���=~�q��c�ӟ��?��OGv��,�ţG��<���{{��~��:�!�yG���P���P?im��ÇG�~|T��?�f�������������S߉D❯���<�����o�\ַ�~K��@�b�o�rR�j��z��H�<{��ĩ����?��̚���o�����
q�߀��I����;�m������C�?o<$WVV>i�2�M�/^��QS�q��l�M�M�x�9�Z�K
�Q�x_����8�Fg����C�l><>+1���o8�y�x�E��@���`�/t����u|G��G�޻�xp��vz������mmm�J�N��M�����\��p������w���˗G�a|��8S&v�{�������;#��ϟ��<=y�DkkkGn��[�\.	�d2y����=���q]W�l�>^���E�lV���2kr�kuڟ��y��/����G^�l6�:��|>�
M��Џ?>2�.��*�˧N������'�<����Z�I�k���?��&�?��??*0ob��q>|gTn^��^��\˓F��3�Uj8�x��ǔ;��|_��\.w!����믿֓'O����Mk{����~���h6�}��7�~_��#t�󫯾ҋ/>������Ǐp�ɓ'�f�Z__���1�]�_���|�R���W�n�����Ϟ=��ܜ^�z�Qk��d��ϴ�5����z���h	s����(�"�r9{J�\�7��)5;O�Ys�p�v�w�F��%|[[[���j}p��o�����k�d��Nj�r�ft[.���I���j�^��Y���G��ÜMh�����;�x�ӫ^�>>��˔�Oӟ�L�J�r�~L|V�
�qg��o����jf`�绮{�O��f�GB�,G˞��l]�2���̍�iXYYa���^�xq��*˄�y��k�?�@���������w�9m�A9��5t�zkkkZ__?�s����/^����fC���<O�}���.~��əK�̹��QI&�7����<z�H�f�lR[^^~�1s펏�?~|��f�����w��u�nmm��?�
Ё���_��3}m6�}ggy��<�Y�t�2]���~_�|����#�kkkg�ߝL&���_VӽϞ=S�ٴ7U���y��=zt�M����Y��E�
8����ϟ�
Ё�B�,VVV��ٳw��}�z��HϺ�Ͽ��q�ϟ?����u���Z-p�FŬ߃@N�p��}Rd��S�YM�/3%���b�ceeEvS�ӧO�	���P���Ǐ+�����M��5�ꫯ���C�iDm�ގ7m9�
].����ܵׄ?{���?�6��������.wt@����@:
� ��t@�@���@�@:
���t@���@:: ��tt@����@:
� ��t@���@:: ��tt@����@:
� ��t@�@���@�@:
���t@����X'y��
7IEND�B`�course_search/index.html000064400000000054151171425070011370
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>course_search/tmpl/default.php000064400000030274151171425070012513
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');


?>
<?php echo $this->toolbar->render(); ?>

<!--[JCBGUI.site_view.default.41.$$$$]-->
<section id="search" style="direction: rtl; text-align:
right">
    <div class="">
        <div class="row">
            <?php

            $coursesClass= $this->items['showsearchsidebar'] ?
'col-md-8' : 'col-md-12';
            
            ?>
            <?php if($this->items['showsearchsidebar']):
?>

                <div class="col-md-4">
                    <div class="card mb-3"
id="filterItems" style="display:none">
                        <div class="card-header"
style="display:flex; justify-content:
space-between;background:#dfcec6">
                            <span> فیلترهای اعمال
شده</span>
                            <span style="cursor:pointer"
class="deleteFilterItems">
                   حذف
                   <svg xmlns="http://www.w3.org/2000/svg"
width="16" height="16" fill="currentColor"
class="bi bi-x"
                        viewBox="0 0 16 16">
<path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0
0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646
2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1
0-.708z"/>
</svg>
               </span>
                        </div>
                        <div class="card-body">
                        </div>
                    </div>
                    <form action="">
                         <select name="jform[sort]"
id="sort"  class="form-control mb-3">
                            <option
value="remoteid__desc">جدید ترین</option>
                            <option
value="remoteid__asc">قدیمی ترین</option>
                            <option
value="hits__desc">بیشترین بازدید</option>
                            <option
value="hits__asc">کمترین بازدید</option>
                        </select>
                        <?php if(in_array('text',
$this->items['widget'])): ?>

                            <div class="card mb-3">
                                <div class="card-header">
                                    جستجو کنید ...
                                </div>
                                <div class="card-body"
style="display:flex">
                    <span class="searchIcon filter"
name="text">
                        <svg
xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor"
                             class="bi bi-search" viewBox="0
0 16 16">
  <path d="M11.742 10.344a6.5 6.5 0 1 0-1.397
1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0
1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0
5.5 5.5 0 0 1 11 0z"/>
</svg>
                    </span>
                                    <input name="jform[text]"
data-id="textFilterItem" type="text"
class="form-control"
                                           placeholder="نام درس
خود را بنویسید ..." required>
                                </div>
                            </div>

                        <?php endif; ?>
                        <?php if(in_array('teacher',
$this->items['widget'])): ?>
                            <div class="card card-body
mb-3">

                                <p>
                                    <button class="btn
btn-primary" type="button" data-collapse="true"
data-target="#enrolment" data-dropdown="true">
                                        استاد مورد نظر
                                    </button>
                                </p>
                                <div id="enrolment"
style="display: none">
                                    <?php foreach
($this->items['teacher'] as $teacher): ?>

                                        <div class="form-check
mt-2">
                                            <input
name="jform[mid][]" data-id="mid-<?= $teacher->mid
?>"
                                                  
class="form-check-input filter" type="checkbox"
value="<?= $teacher->mid ?>"
                                                   id="mid-<?=
$teacher->mid ?>">
                                            <label
class="form-check-label mr-4"  for="mid-<?=
$teacher->mid ?>">
                                                <?= $teacher->name
?>
                                            </label>
                                        </div>

                                    <?php endforeach; ?>
                                </div>

                            </div>
                        <?php endif; ?>

                        <?php if(in_array('category',
$this->items['widget'])): ?>
                            <div class="card card-body
mb-3">

                                <p>
                                    <button class="btn
btn-primary" type="button" data-collapse="true"
data-target="#category" data-dropdown="true">
                                        مجموعه مورد نظر
                                    </button>
                                </p>
                                <div id="category"
style="display: none">
                                    <?php foreach
($this->items['category'] as $category): ?>

                                        <div class="form-check
mt-2">
                                            <input
name="jform[category][]" data-id="category-<?=
$category->catid; ?>"
                                                  
class="form-check-input filter" type="checkbox"
value="<?= $category->catid; ?>"
                                                   id="category-<?=
$category->catid; ?>">
                                            <label
class="form-check-label mr-4" for="category-<?=
$category->catid; ?>">
                                                <?= $category->title;
?>
                                            </label>
                                        </div>

                                    <?php endforeach; ?>
                                </div>

                            </div>
                        <?php endif; ?>

                        <?php if(in_array('tag',
$this->items['widget'])): ?>
                            <div class="card card-body
mb-3">

                                <p>
                                    <button class="btn
btn-primary" type="button" data-target="#tag"
data-collapse="true" data-dropdown="true">
                                        تگ مورد نظر
                                    </button>
                                </p>
                                <div style="display: none"
id="tag">

                                    <?php foreach
($this->items['tag'] as $tag): ?>

                                        <div class="form-check
mt-2">
                                            <input
name="jform[tag][]" data-id="tag-<?= $tag->tagid
?>"
                                                  
class="form-check-input filter" type="checkbox"
value="<?= $tag->tagid ?>"
                                                   id="tag-<?=
$tag->tagid ?>"
                                            >
                                            <label
class="form-check-label mr-4" for="tag-<?= $tag->tagid
?>">
                                                <?= $tag->tagname
?>
                                            </label>
                                        </div>

                                    <?php endforeach; ?>
                                </div>

                            </div>
                        <?php endif; ?>

                        <?php if(in_array('price',
$this->items['widget'])): ?>
                            <div class="card card-body
mb-3">
                                <p>
                                    <button class="btn
btn-primary" type="button" data-collapse="true"
data-target="#range" data-dropdown="true">
                                        محدوده قیمت مورد
نظر
                                    </button>
                                </p>
                                <div id="range"
style="display: none">
                                    <div class="rangeslider"
style="direction:ltr; text-align: left;">
                                        <input
name="jform[minRange]" class="min"
type="range" min="0"
                                               max="<?=
isset($this->items[0]->maxCost) ? $this->items[0]->maxCost :
100 ?>"
                                               value="0"/>
                                        <input
name="jform[maxRange]" class="max"
type="range" min="0"
                                               max="<?=
isset($this->items[0]->maxCost) ? $this->items[0]->maxCost :
100 ?>"
                                               value="<?=
isset($this->items[0]->maxCost) ? $this->items[0]->maxCost :
100 ?>"/>
                                        <span class="range_min
light left">0</span>
                                        <span class="range_max
light right"><?= isset($this->items[0]->maxCost) ?
$this->items[0]->maxCost : 100 ?></span>
                                    </div>
                                    <div>
                                        <input type="button"
class="btn btn-info filter" name="rangeBtn"
value="اعمال">
                                    </div>
                                </div>
                            </div>
                        <?php endif; ?>

                        <?php
if($this->items['searchinmycourse']): ?>
                            <div class="card card-body
mb-3">
                                <div class="form-check">

                                    <input type="checkbox"
name="jform[searchinmycourse]" id="searchinmycourse"
class="form-check-input filter" value="1">
                                    <label class="form-check-label
mr-4" >
                                        جست و جو تنها در درس
های من
                                    </label>
                                </div>
                            </div>
                        <?php endif; ?>

                        <input type="hidden"
id="token" name="<?= JSession::getFormToken();
?>" value="1">
                    </form>
                </div>
             <?php else: ?>
                 <form action="">
                    <input type="hidden" id="token"
name="<?= JSession::getFormToken(); ?>"
value="1">
                </form>
            <?php endif; ?>
            <div class="<?= $coursesClass ?>"
id="courses">
                <div class="row">
                    <?php
                    $this->setLayout($this->tmpl);
                    echo $this->loadTemplate();
                    ?>
                </div>
                <div style="text-align: center">
                    <button class="btn btn-primary"
id="more">نمایش موارد بیشتر</button>
                </div>
            </div>
        </div>
    </div>
</section>

<?php 
// echo $this->loadTemplate('card');
// echo $this->loadTemplate('card_mahdi');
?><!--[/JCBGUI$$$$]-->

course_search/tmpl/default.xml000064400000015603151171425070012523
0ustar00<?xml version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_MOOJLA_MENU_COURSE_SEARCH_TITLE"
option="COM_MOOJLA_MENU_COURSE_SEARCH_OPTION">
		<message>
			<![CDATA[COM_MOOJLA_MENU_COURSE_SEARCH_DESC]]>
		</message>
	</layout>
	<!-- Adding page parameters -->
	<fields name="params">
		<fieldset name="basic" label="COM_MOOJLA"
			addrulepath="/administrator/components/com_moojla/models/rules"
			addfieldpath="/administrator/components/com_moojla/models/fields">
		<!--  Showmycourse Field. Type: Radio. (joomla) -->
	<field type="radio"
               name="showmycourse"
               label="COM_MOOJLA_CONFIG_SHOWMYCOURSE_LABEL"
              
description="COM_MOOJLA_CONFIG_SHOWMYCOURSE_DESCRIPTION"
               class="btn-group btn-group-yesno"
               default="0"
               readonly="false"
               disabled="false"
               >
                <!-- Option Set.-->
                <option
value="1">COM_MOOJLA_CONFIG_YES</option>
                <option
value="0">COM_MOOJLA_CONFIG_NO</option>
        </field>			
		<!--  Showsearchsidebar Field. Type: Radio. (joomla) -->
	<field type="radio"
               name="showsearchsidebar"
               label="COM_MOOJLA_CONFIG_SHOWSEARCHSIDEBAR_LABEL"
              
description="COM_MOOJLA_CONFIG_SHOWSEARCHSIDEBAR_DESCRIPTION"
               class="btn-group btn-group-yesno"
               default="1"
               readonly="false"
               disabled="false"
               >
                <!-- Option Set.-->
                <option
value="1">COM_MOOJLA_CONFIG_YES</option>
                <option
value="0">COM_MOOJLA_CONFIG_NO</option>
        </field>			
		<!--  Searchinmycourse Field. Type: Radio. (joomla) -->
	<field type="radio"
               name="searchinmycourse"
               label="COM_MOOJLA_CONFIG_SEARCHINMYCOURSE_LABEL"
              
description="COM_MOOJLA_CONFIG_SEARCHINMYCOURSE_DESCRIPTION"
               class="btn-group btn-group-yesno"
               default="1"
               readonly="false"
               disabled="false"
               >
                <!-- Option Set.-->
                <option
value="1">COM_MOOJLA_CONFIG_YES</option>
                <option
value="0">COM_MOOJLA_CONFIG_NO</option>
        </field>			
		<!--  Widget Field. Type: List. (joomla) -->
	<field type="list"
               name="widget"
               label="COM_MOOJLA_CONFIG_WIDGET_LABEL"
               description="COM_MOOJLA_CONFIG_WIDGET_DESCRIPTION"
               class="list_class"
               multiple="true"
               default=""
               >
                <!-- Option Set.-->
                <option
value="category">COM_MOOJLA_CONFIG_CATEGORY</option>
                <option
value="tag">COM_MOOJLA_CONFIG_TAG</option>
                <option
value="teacher">COM_MOOJLA_CONFIG_TEACHER</option>
                <option
value="price">COM_MOOJLA_CONFIG_PRICE</option>
                <option
value="text">COM_MOOJLA_CONFIG_TEXT</option>
        </field>			
		<!--  Category_widget Field. Type: List. (joomla) -->
	<field type="list"
               name="category_widget"
               label="COM_MOOJLA_CONFIG_CATEGORY_WIDGET_LABEL"
               class="list_class"
               multiple="false"
               default=""
               >
                <!-- Option Set.-->
                <option
value="all">COM_MOOJLA_CONFIG_ALL</option>
                <option
value="include">COM_MOOJLA_CONFIG_INCLUDE</option>
                <option
value="exclude">COM_MOOJLA_CONFIG_EXCLUDE</option>
        </field>			
		<!--  Category Field. Type: Mcategory. (custom) -->
	<field type="mcategory"
               name="category"
               label="COM_MOOJLA_CONFIG_CATEGORY_LABEL"
               class="list_class"
               multiple="true"
               default=""
               showon="category_widget:include,exclude"
                />			
		<!--  Tag_widget Field. Type: List. (joomla) -->
	<field type="list"
               name="tag_widget"
               label="COM_MOOJLA_CONFIG_TAG_WIDGET_LABEL"
               class="list_class"
               default=""
               >
                <!-- Option Set.-->
                <option
value="all">COM_MOOJLA_CONFIG_ALL</option>
                <option
value="include">COM_MOOJLA_CONFIG_INCLUDE</option>
                <option
value="exclude">COM_MOOJLA_CONFIG_EXCLUDE</option>
        </field>			
		<!--  Tag Field. Type: Mtag. (custom) -->
	<field type="mtag"
               name="tag"
               label="COM_MOOJLA_CONFIG_TAG_LABEL"
               class="list_class"
               multiple="true"
               default=""
               showon="tag_widget:include,exclude" />			
		<!--  Teacher_widget Field. Type: List. (joomla) -->
	<field type="list"
               name="teacher_widget"
               label="COM_MOOJLA_CONFIG_TEACHER_WIDGET_LABEL"
               class="list_class"
               default=""
               >
                <!-- Option Set.-->
                <option
value="all">COM_MOOJLA_CONFIG_ALL</option>
                <option
value="include">COM_MOOJLA_CONFIG_INCLUDE</option>
                <option
value="exclude">COM_MOOJLA_CONFIG_EXCLUDE</option>
        </field>			
		<!--  Teacher Field. Type: Mteacher. (custom) -->
	<field type="mteacher"
               name="teacher"
               label="COM_MOOJLA_CONFIG_TEACHER_LABEL"
               class="list_class"
               multiple="true"
               default=""
               showon="teacher_widget:include,exclude" />			
		<!--  Course_search_tmpl Field. Type: Filelist. (joomla) -->
	<field type="filelist"
               name="course_search_tmpl"
               label="COM_MOOJLA_CONFIG_COURSE_SEARCH_TMPL_LABEL"
              
directory="components/com_moojla/views/course_search/tmpl"
               default=""
              
description="COM_MOOJLA_CONFIG_COURSE_SEARCH_TMPL_DESCRIPTION"
               exclude="default\.php|\.(xml|html)$"
               hide_none="true" />			
		<!--  Number_of_results Field. Type: Number. (joomla) -->
	<field type="number"
               name="number_of_results"
               label="COM_MOOJLA_CONFIG_NUMBER_OF_RESULTS_LABEL"
               default="12"
              
description="COM_MOOJLA_CONFIG_NUMBER_OF_RESULTS_DESCRIPTION"
               class="text_area"
               min="1"
               max="60"
               step="5"
                />			
		<!--  Cs_display_cost Field. Type: Radio. (joomla) -->
	<field type="radio"
               name="cs_display_cost"
               label="COM_MOOJLA_CONFIG_CS_DISPLAY_COST_LABEL"
              
description="COM_MOOJLA_CONFIG_CS_DISPLAY_COST_DESCRIPTION"
               class="btn-group btn-group-yesno"
               default="1"
               readonly="false"
               disabled="false"
               >
                <!-- Option Set.-->
                <option
value="1">COM_MOOJLA_CONFIG_YES</option>
                <option
value="0">COM_MOOJLA_CONFIG_NO</option>
        </field>
		</fieldset>
	</fields>
</metadata>course_search/tmpl/default_card.php000064400000010031151171425070013471
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_card.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.5.$$$$]-->
<?php
JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR .
'/components/com_fields/helpers/fields.php');
?>
<?php if(empty($this->courses)): ?>
    <div class="col-md-12">
        <p style="text-align: center"><?=
JText::_('COM_MOOJLA_NO_COURSE_FOUND');?></p>
    </div>
<?php endif; ?>
<?php foreach($this->courses as $course):?>
    <div class="col-md-4 mb-2">
        <div class="card" style="height: 98%">
            <div class="card-header">
                <a href="<?=
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
                    <img style="width: 100%" src="<?=
$course->summary_files; ?>" alt="">
                </a>
            </div>
            <div class="card-body">
                <ul class="list-group list-group-flush"
style="padding: 0;">
                    <li style="padding: 10px 0;"
class="list-group-item">
                        <span>نام کوتاه : </span>
                        <span>
                            <a href="<?=
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>"><?= $course->shortname; ?></a>
                        </span>
                    </li>
                  	<?php
if($this->items['cs_display_cost']): ?>
                       <li style="padding: 10px 0;"
class="list-group-item">
                          <span>هزینه : </span>
                          <span><?= $course->cost;
?></span>
                      </li>
					<?php endif; ?>
                 
                    <li style="padding: 10px 0;"
class="list-group-item">
                        <span>مجموعه : </span>
                        <span><?= $course->cat_name;
?></span>
                    </li>

                    <?php $fields =
FieldsHelper::getFields('com_moojla.course', $course, true);
?>
                    <?php foreach($fields as $field):

                        $custom_field=
FieldsHelper::render($field->context, 'field.render',
array('field' => $field));
                    ?>
                    <?php
if($field->params->get('display') != 0): ?>
                        <?php if($custom_field): ?>
                            <li style="padding: 10px 0;"
class="list-group-item">
                                <?= $custom_field; ?>
                            </li>
                        <?php endif; ?>
                    <?php endif; ?>
                    <?php endforeach; ?>
                  
                    <?php
                    $this->table->load($course->id);
                   
$this->dispatcher->trigger('onAfterCourseSearchCard',
array('com_moojla.course_search', $this->table, $course));
                    ?>
                  
                </ul>
            </div>
        </div>
    </div>  
<?php endforeach; ?>

<style>
    img{
        width: 100%;

    }
</style><!--[/JCBGUI$$$$]-->

course_search/tmpl/default_card_mahdi.php000064400000013306151171425070014643
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_card_mahdi.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.18.$$$$]-->
<?php

require_once
JPATH_SITE.'/components/com_moojla/helpers/moojla.php';
JFactory::getDocument()->addScript(JURI::root(true) .
"/components/com_moojla/assets/js/course_search.js",
(MoojlaHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
JFactory::getDocument()->addStyleSheet(JURI::root(true)
.'/components/com_moojla/assets/css/course_search.css',
(MoojlaHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');

	if (!function_exists('escape_text'))
    {
        function escape_text($text){
            $text2= preg_replace("/<.*?>/", "",
$text);
            $result = mb_substr($text2, 0, 200,'UTF-8');
            return $result.'...';
        }
    }

?>

<?php if(empty($this->courses)): ?>
    <div class="col-md-12">
        <p style="text-align: center"><?=
JText::_('COM_MOOJLA_NO_COURSE_FOUND');?></p>
    </div>
<?php endif; ?>

<?php foreach($this->courses as $course): ?>

    <div class="col-md-4 pl-1 pr-1 mb-2 min-w">
		<div class="lmskaran--course-search-card">
		
			<div class="sliding-card">
				<div class="element-center">
					<?php if(!$course->summary == null):?>
					<h3 class="description-course-title">درباره
درس :</h3>
					<div class="description-course"><?php echo
escape_text($course->summary); ?></div>
					<?php else:?>
					<h3 class="description-course-title">درباره
درس :</h3>
					<div class="description-course"><span>این
درس توضیحات ندارد</span></div>
					<?php endif;?>
				</div>
			</div>
			
			<div class="sliding-card-rating">
					<?php
						$this->table->load($course->id);
						$this->dispatcher->trigger('onAfterCourseSearchCard',
array('com_moojla.course_search', $this->table, $course));
					?>
			</div>
		
			<div class="head-lmskaran--course-search-card">
			<div class="pack-buttons">
				<div class="button-show-sliding">
					<div class="bars-top"></div>
					<div class="bars-center"></div>
					<div class="bars-bottom"></div>
				</div>
				<div class="button-show-item-rating">امتیاز
دهی</div>
			</div>
			<?php echo JLayoutHelper::render('favorite',
['course'=>$course]); ?>
			</div>
			<div class="image-lmskaran--course-search-card">
				<div class="round-image-lmskaran--course-search-card">
					<a href="<?=
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
						<?php if(!$course->summary_files == null):?>
							<img style="width: 100%" src="<?=
$course->summary_files; ?>" alt="">
						<?php else:?>
							<img style="width: 100%"
src="/components/com_moojla/views/course_search/assets/images/no-image.jpg"
alt="">
						<?php endif;?>
					</a>
				</div>
			</div>
			<div class="main-lmskaran--course-search-card">
				<div
class="main-lmskaran--course-search-card-content">
					<h3>                
						<a href="<?=
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>"><?= $course->shortname; ?>
						</a>
					</h3>
					<?php
						$a=JRoute::_('index.php?option=com_moojla&view=courses&cid='.$course->catid.'&id='.$course->catid);
					?>
					<a href="<?= $a; ?>">
					
						<span class="cat-name"><?= $course->cat_name;
?></span>
					</a>
                  <ul>
                    <?php $fields =
FieldsHelper::getFields('com_moojla.course', $course, true);
?>
                    <?php foreach($fields as $field):

                        $custom_field=
FieldsHelper::render($field->context, 'field.render',
array('field' => $field));
                    ?>
                    <?php
if($field->params->get('display') != 0): ?>
                        <?php if($custom_field): ?>
                            <li style="padding: 10px 0;"
class="list-group-item">
                                <?= $custom_field; ?>
                            </li>
                        <?php endif; ?>
                    <?php endif; ?>
                    <?php endforeach; ?>
                    </ul>
					<?php if($this->items['cs_display_cost']): ?>
                        <div class="costCourse"><span
style="color:#9e9e9e;"> هزینه :&nbsp
</span><span class="font-size-cost"><?=
$course->cost; ?></span></div>
					<?php endif; ?>				</div>
				<div class="button-course">
					<a href="<?=
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='.$course->remoteid);
?>">
					<span class="button-GoToCourse">رفتن به
درس</span>
					</a>
				</div>
			</div>
		</div>
    </div>
<?php endforeach; ?>
<!--[/JCBGUI$$$$]-->

course_search/tmpl/index.html000064400000000054151171425070012344
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>course_search/view.html.php000064400000011332151171425070012022
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		view.html.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

/**
 * Moojla View class for the Course_search
 */
class MoojlaViewCourse_search extends JViewLegacy
{
	// Overwriting JView display method
	function display($tpl = null)
	{		
		// get combined params of both component and menu
		$this->app = JFactory::getApplication();
		$this->params = $this->app->getParams();
		$this->menu = $this->app->getMenu()->getActive();
		// get the user object
		$this->user = JFactory::getUser();
		// Initialise variables.
		$this->items = $this->get('Items');
		
		/***[JCBGUI.site_view.php_jview_display.41.$$$$]***/
		require_once
JPATH_ADMINISTRATOR.'/components/com_moojla/models/course.php';
		$mmc= new MoojlaModelCourse;
		$this->table= $mmc->getTable();
		
		\JPluginHelper::importPlugin('moojlacourse');
		$this->dispatcher = JEventDispatcher::getInstance();
		
		$this->courses = $this->items['courses'];
		
		MoojlaHelper::calculate_price_from($this->courses);
		$menuTmpl=
$this->menu->getParams()->get('course_search_tmpl');
		if (!$menuTmpl)
		{
		  $tmpl=
JComponentHelper::getParams('com_moojla')->get('course_search_tmpl');
		  $tmpl= ($tmpl==  -1 || !$tmpl)? 'default_card': 
preg_replace('/\.php$/','',$tmpl);
		}
		else
		{
		  $tmpl= $menuTmpl;
		  $tmpl=  preg_replace('/\.php$/','',$tmpl);
		}
		$this->tmpl= $tmpl;
		$this->setLayout('default');/***[/JCBGUI$$$$]***/
		

		// Set the toolbar
		$this->addToolBar();

		// set the document
		$this->_prepareDocument();

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			throw new Exception(implode(PHP_EOL, $errors), 500);
		}

		parent::display($tpl);
	}

	/**
	 * Prepares the document
	 */
	protected function _prepareDocument()
	{

		// always make sure jquery is loaded.
		JHtml::_('jquery.framework');
		// Load the header checker class.
		require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php'
);
		// Initialize the header checker.
		$HeaderCheck = new moojlaHeaderCheck;

		// always load these files.
		$this->document->addScript(JURI::root(true) .
"/media/com_moojla/pusher/js/pusher.min.js",
(MoojlaHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");

		// Add View JavaScript File
		$this->document->addScript(JURI::root(true) .
"/components/com_moojla/assets/js/course_search.js",
(MoojlaHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		
		/***[JCBGUI.site_view.php_document.41.$$$$]***/
		$menuid =
$this->app->getMenu()->getActive()->get('id');
		$this->document->addScriptOptions('menuid', $menuid);
		
		$maxCost = isset($this->items[0]->maxCost)?
$this->items[0]->maxCost: 100;
		$this->document->addScriptOptions('maxCost',$maxCost);
		/***[/JCBGUI$$$$]***/
		
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_moojla/assets/css/course_search.css',
(MoojlaHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
	}

	/**
	 * Setting the toolbar
	 */
	protected function addToolBar()
	{
		
		// set help url for this view if found
		$help_url = MoojlaHelper::getHelpUrl('course_search');
		if (MoojlaHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_MOOJLA_HELP_MANAGER', false,
$help_url);
		}
		// now initiate the toolbar
		$this->toolbar = JToolbar::getInstance();
	}

	/**
	 * Escapes a value for output in a view script.
	 *
	 * @param   mixed  $var  The output to escape.
	 *
	 * @return  mixed  The escaped value.
	 */
	public function escape($var, $sorten = false, $length = 40)
	{
		// use the helper htmlEscape method instead.
		return MoojlaHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
teacherdetail/index.html000064400000000054151171425070011341
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>teacherdetail/tmpl/default.php000064400000004017151171425070012460
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');


?>
<?php echo $this->toolbar->render(); ?>

<!--[JCBGUI.site_view.default.39.$$$$]-->
<?php //echo JLayoutHelper::render('teacherdefault',
$this->courses); ?>
<?php $displayData = $this->courses;
$displayData->item = $this->item;
$this->document->setTitle($this->item->users_name);
?>
<?php
   $document = JFactory::getDocument();
  
$document->addStyleSheet('/components/com_moojla/layouts/layouts_faranesh/css/layout_teacher_faranesh/layout_teacher_faranesh.css');
?>
<div class="lmskaran_teacher_page">
	<?php echo $this->loadTemplate("teacher_sidebar"); ?>
	<?php echo $this->loadTemplate("teacher_courses"); ?>
	
</div>

<?php
  //this trigger usually use for comment on the teacher page 
  \JPluginHelper::importPlugin('moojlauser');
  $dispatcher = \JEventDispatcher::getInstance();
 
$dispatcher->trigger('onafterteacher',array('com_moojla.teacherdetail',
array(), $this->item));
?><!--[/JCBGUI$$$$]-->

teacherdetail/tmpl/default.xml000064400000000370151171425070012467
0ustar00<?xml version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_MOOJLA_MENU_TEACHERDETAIL_TITLE"
option="COM_MOOJLA_MENU_TEACHERDETAIL_OPTION">
		<message>
			<![CDATA[COM_MOOJLA_MENU_TEACHERDETAIL_DESC]]>
		</message>
	</layout>
</metadata>teacherdetail/tmpl/default_teacher_courses.php000064400000007137151171425070015724
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_teacher_courses.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.17.$$$$]-->
<div class="lmskaran_teacher-course">
	<div class="lmskaran_course_section_grid">
		<?php foreach($this->courses->courses as $index => $course):
?> 
			<div class="lmskaran_courses__single">
				<div class="lmskaran_courses__single--image">
				<!-- <div
class="lmskaran_post_status">تخصصی</div> -->
					<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='
. $course->remoteid, false); ?>">
					<div></div>
					<img class="lmskaran_image_course" src="<?php
echo $course->imgurl; ?>" alt=""
onerror="this.style.opacity='0'" />
					</a>
				</div>
				<div class="lmskaran_courses__single--inner">
				<div class="lmskaran_courses__single--title">
					<h5>
						<a href="<?php echo
JRoute::_('index.php?option=com_moojla&view=coursedetail&id='
. $course->remoteid, false); ?>"><?php echo
$course->fullname; ?></a>
					</h5>
				</div>
				<div class="lmskaran_courses__single--meta">
					<div class="lmskaran_course__single--info_author">
						<?php if(!$this->item->userimage==null):	?>
							<img src="<?php echo $this->item->userimage;
?>" alt="">
						<?php else:?>
							<img
src="/components/com_moojla/layouts/layouts_faranesh/layout_teacher_faranesh/image/default-teacher-profile.png"
alt="">
						<?php endif;?>
						<div
class="lmskaran_course__single--info_author__login">
							<a href="#" ><?php echo
$this->item->users_name; ?></a>
						</div>
					</div>
				</div>
				</div>
				<div class="lmskaran_courses__single--outer">
					<div class="lmskaran_teacher-course-cat-name"><?php
echo($this->courses->courses[0]->cat_name)?></div>
					<div class="lmskaran_lay-static-favorite">
						<?php 
						echo JLayoutHelper::render('favorite',
['course'=>$course],
JPATH_SITE.'/components/com_moojla/layouts'); ?>
					</div>

					<div class="lmskaran_button_registration">
						<div class="lmskaran_reg_download">
							<?php JLoader::register('MoojlaHelper',
JPATH_ADMINISTRATOR.'/components/com_moojla/helpers/moojla.php');
							$price =
MoojlaHelper::getCurrentPriceByProductCode($course->remoteid); ?>
							<?php if (!$price): ?>
								<span class="lmskaran_course_price_cost"><span
class="lmskaran_toman">رایگان</span></span>
							<?php else: ?>
								<span class="lmskaran_course_price_cost"><?php
echo $price ?></span>
							<?php endif; ?>
						</div>
					</div>
				</div>
			</div>
		<?php endforeach; ?>
	</div>
</div> <!--[/JCBGUI$$$$]-->

teacherdetail/tmpl/default_teacher_sidebar.php000064400000015131151171425070015643
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		default_teacher_sidebar.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

?>

<!--[JCBGUI.template.template.16.$$$$]-->
<div class="lmskaran_teacher_sidebar">
	<div class="lmskaran_user_side">
		<div class="lmskaran_anniversary">
			<svg aria-hidden="true" focusable="false"
data-prefix="fal" data-icon="birthday-cake"
role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512" class="svg-inline--fa fa-birthday-cake
fa-w-14 fa-7x">
				 <path fill="currentColor" d="M96 96c-17.75
0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128
0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32
40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32
56s-14.25 40-32 40zm48
160h-32V112h-32v144h-96V112h-32v144h-96V112H80v144H48c-26.5 0-48 21.5-48
48v208h448V304c0-26.5-21.5-48-48-48zm16 224H32v-72.043C48.222 398.478
55.928 384 74.75 384c27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32
28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 18.488 0 26.245
14.475 42.5 23.955V480zm0-112.374C406.374 359.752 394.783 352 373.5
352c-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218
32-74.5 32-28.148 0-31.202-32-74.75-32-21.463 0-33.101 7.774-42.75
15.658V304c0-8.822 7.178-16 16-16h352c8.822 0 16 7.178 16 16v63.626z"
class=""></path>
			</svg>
			<span>4 ماه</span>
		</div>
		<div class="lmskaran_user_avatar">
			<?php if(!$this->item->userimage==null):	?>
				<img src="<?php echo $this->item->userimage;
?>" class="avatar photo">
			<?php else:?>
				<img
src="/components/com_moojla/layouts/layouts_faranesh/layout_teacher_faranesh/image/large-teacher-profile.png"
alt="">
			<?php endif;?>
		</div>
		<div class="lmskaran_author_info">
			<h3><?php echo $this->item->users_name; ?></h3>
		</div>
		<div class="lmskaran_activity_portions lmskaran_icons">
			<span class="lmskaran_author_title">فعالیت
مدرس</span>
			<div class="lmskaran_activity">
				<div class="lmskaran_activitys">
					<svg aria-hidden="true" focusable="false"
data-prefix="fal" data-icon="comments-alt"
role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 576 512" class="svg-inline--fa fa-comments-alt
fa-w-18 fa-5x">
						 <path fill="currentColor" d="M512
160h-96V64c0-35.3-28.7-64-64-64H64C28.7 0 0 28.7 0 64v160c0 35.3 28.7 64 64
64h32v52c0 7.1 5.8 12 12 12 2.4 0 4.9-.7 7.1-2.4l76.9-43.5V384c0 35.3 28.7
64 64 64h96l108.9 61.6c2.2 1.6 4.7 2.4 7.1 2.4 6.2 0 12-4.9
12-12v-52h32c35.3 0 64-28.7 64-64V224c0-35.3-28.7-64-64-64zM64 256c-17.6
0-32-14.4-32-32V64c0-17.6 14.4-32 32-32h288c17.6 0 32 14.4 32 32v160c0
17.6-14.4 32-32 32H215.6l-7.3 4.2-80.3 45.4V256zm480 128c0 17.6-14.4 32-32
32h-64v49.6l-80.2-45.4-7.3-4.2H256c-17.6 0-32-14.4-32-32v-96h128c35.3 0
64-28.7 64-64v-32h96c17.6 0 32 14.4 32 32z"
class=""></path>
					</svg>
					<div class="lmskaran_desc">نقد و
بررسی</div>
					<div class="lmskaran_value">0</div>
				</div>
				<div class="lmskaran_activitys">
					<svg aria-hidden="true" focusable="false"
data-prefix="fal" data-icon="star" role="img"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576
512" class="svg-inline--fa fa-star fa-w-18 fa-5x">
						 <path fill="currentColor" d="M528.1 171.5L382
150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 150.2 47.9 171.5c-26.2
3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288
439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5
8.5-50.8-17.7-54.6zM405.8 317.9l27.8 162L288 403.5 142.5 480l27.8-162L52.5
203.1l162.7-23.6L288 32l72.8 147.5 162.7 23.6-117.7 114.8z"
class=""></path>
					</svg>
					<div class="lmskaran_desc">میانگین
امتیاز</div>
					<div class="lmskaran_value">0</div>
				</div>
				<div class="lmskaran_activitys">
					<svg aria-hidden="true" focusable="false"
data-prefix="fal" data-icon="books"
role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 576 512" class="svg-inline--fa fa-books fa-w-18
fa-5x">
						 <path fill="currentColor" d="M575.33 456.43L399
8.02C397.28 3.1 392.61 0 387.65 0c-3.01 0-4.97 1.03-11.49 3.31-6.46
2.26-9.82 8.24-6.27 18.38-16.46 9.69-59.15 24.09-75.5
26.42-1.33-3.78-1.97-6.62-6.4-9.23V32c0-17.67-14.33-32-32-32h-96c-5.96
0-11.22 2.07-16 4.9C139.22 2.07 133.96 0 128 0H32C14.33 0 0 14.33 0
32v448c0 17.67 14.33 32 32 32h96c5.96 0 11.22-2.07 16-4.9 4.78 2.84 10.04
4.9 16 4.9h96c17.67 0 32-14.33 32-32V118.88l151.43 385.1c1.73 4.92 6.4 8.02
11.35 8.02 3 0 4.96-1.03 11.49-3.31 6.44-2.25 9.83-8.23 6.27-18.38
16.46-9.69 59.15-24.09 75.5-26.42 3.65 10.4 10.13 12.65 16.38
10.46l7.55-2.64c6.23-2.19 9.54-9.07 7.36-15.28zM128
480H32v-64h96v64zm0-96H32V128h96v256zm0-288H32V32h96v64zm128
384h-96v-64h96v64zm0-96h-96V128h96v256zm0-288h-96V32h96v64zm203.15
367.54L303.79 74.88c25.22-4.74 64.01-20.33 75.5-26.42l155.36 388.65c-25.23
4.75-64.01 20.33-75.5 26.43z" class=""></path>
					</svg>
					<div class="lmskaran_desc">تعداد
دوره‌ها</div>
					<div class="lmskaran_value"><?php echo
count($this->courses->courses);?></div>
				</div>
			</div>
		</div>
		<?php
		JPluginHelper::importPlugin("moojlauser");
		$dispatcher = JEventDispatcher::getInstance();
		$table = null;
		$dispatcher->trigger("moojlaCBPms",
array('com_moojla.teacherdetail', $table, $this));
		?>
		<br />
		<div class="lmskaran_activity_portions lmskaran_about">
			<span class="lmskaran_author_title">درباره
مدرس</span>
			<span class="lmskaran_author_description"><?php echo
$this->item->cv?></span>
		</div>
		<?php $dispatcher->trigger("onafterteacherinfo",
array('com_moojla.teacherdetail', $table, $this));?>
	</div>
</div><!--[/JCBGUI$$$$]-->

teacherdetail/tmpl/index.html000064400000000054151171425070012315
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>teacherdetail/view.html.php000064400000007162151171425070012001
0ustar00<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				Lmskaran 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.77
	@build			6th April, 2022
	@created		22nd July, 2020
	@package		Moojla
	@subpackage		view.html.php
	@author			Lmskaran <http://Lmskaran.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

/------------------------------------------------------------------------------------------------------*/

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

/**
 * Moojla View class for the Teacherdetail
 */
class MoojlaViewTeacherdetail extends JViewLegacy
{
	// Overwriting JView display method
	function display($tpl = null)
	{		
		// get combined params of both component and menu
		$this->app = JFactory::getApplication();
		$this->params = $this->app->getParams();
		$this->menu = $this->app->getMenu()->getActive();
		// get the user object
		$this->user = JFactory::getUser();
		// Initialise variables.
		$this->item = $this->get('Item');
		$this->courses = $this->get('Courses');
		
		/***[JCBGUI.site_view.php_jview_display.39.$$$$]***/
		$teacher_layout =
$this->params->get('teacher_detail_layout', -1);
		$layout = 'default';
		if(property_exists($this->item, 'layout') &&
$this->item->layout && $this->item->layout != -1)
		{
		  $layout = explode('.', $this->item->layout)[0];
		}
		else
		{
		  if($teacher_layout != -1)
		  {
		    $layout = explode('.', $teacher_layout)[0];
		  }
		}
		$this->setLayout($layout);
		/***[/JCBGUI$$$$]***/
		

		// Set the toolbar
		$this->addToolBar();

		// set the document
		$this->_prepareDocument();

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			throw new Exception(implode(PHP_EOL, $errors), 500);
		}

		parent::display($tpl);
	}

	/**
	 * Prepares the document
	 */
	protected function _prepareDocument()
	{

		// always make sure jquery is loaded.
		JHtml::_('jquery.framework');
		// Load the header checker class.
		require_once( JPATH_COMPONENT_SITE.'/helpers/headercheck.php'
);
		// Initialize the header checker.
		$HeaderCheck = new moojlaHeaderCheck; 
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_moojla/assets/css/teacherdetail.css',
(MoojlaHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
	}

	/**
	 * Setting the toolbar
	 */
	protected function addToolBar()
	{

		// set help url for this view if found
		$help_url = MoojlaHelper::getHelpUrl('teacherdetail');
		if (MoojlaHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_MOOJLA_HELP_MANAGER', false,
$help_url);
		}
		// now initiate the toolbar
		$this->toolbar = JToolbar::getInstance();
	}

	/**
	 * Escapes a value for output in a view script.
	 *
	 * @param   mixed  $var  The output to escape.
	 *
	 * @return  mixed  The escaped value.
	 */
	public function escape($var, $sorten = false, $length = 40)
	{
		// use the helper htmlEscape method instead.
		return MoojlaHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
article/index.html000064400000000054151200755430010165
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>article/tmpl/default.php000064400000001151151200755430011300
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

if ($this->params->get('show_page_heading', 1))
{
	?>
	<h1><?php echo !empty($this->article->name) ?
$this->escape($this->article->name) :
$this->escape($this->params->get('page_heading'));
?></h1>
	<?php
}

echo RSTicketsProHelper::getConfig('kb_load_plugin') ?
JHtml::_('content.prepare', $this->article->text) :
$this->article->text;article/tmpl/default.xml000064400000000777151200755430011326
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="RST_KB_ARTICLE_DEFAULT_LAYOUT">
		<message>
			<![CDATA[RST_KB_ARTICLE_MENU_DESC]]>
		</message>
	</layout>
	<config>
		<fields name="request">
			<fieldset name="request"
addfieldpath="/administrator/components/com_rsticketspro/models/fields">
				<field name="cid" type="kbarticle"
default="" label="RST_KB_SELECT_ARTICLE"
description="RST_KB_SELECT_ARTICLE" required="true"
/>
			</fieldset>
		</fields>
	</config>
</metadata>
article/tmpl/index.html000064400000000054151200755430011141
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>article/view.html.php000064400000004106151200755430010620
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewArticle extends JViewLegacy
{
	public function display($tpl = null)
	{
		$this->params	=
JFactory::getApplication()->getParams('com_rsticketspro');;
		$this->article	= $this->get('article');
		
		if (!$this->article->id || !$this->article->published ||
(!RSTicketsProHelper::isStaff() && $this->article->private))
		{
			throw new Exception(JText::_('RST_CANNOT_VIEW_ARTICLE'));
		}
		
		$this->prepareDocument();

		parent::display($tpl);
	}
	
	protected function prepareDocument()
	{
		// Title
		$this->document->setTitle($this->article->name);
		
		// Add meta information from article
		if (!empty($this->article->meta_description))
		{
			$this->document->setMetaData('description',
$this->article->meta_description);
		}
		if (!empty($this->article->meta_keywords))
		{
			$this->document->setMetaData('keywords',
$this->article->meta_keywords);
		}
		
		// Get active menu item
		$active = JFactory::getApplication()->getMenu()->getActive();
		// If it's an article menu item, menu parameteres overwrite article
meta.
		if ($active && strpos($active->link,
'&view=article&id='))
		{
			// Description
			if ($this->params->get('menu-meta_description'))
			{
				$this->document->setDescription($this->params->get('menu-meta_description'));
			}
			// Keywords
			if ($this->params->get('menu-meta_keywords'))
			{
				$this->document->setMetadata('keywords',
$this->params->get('menu-meta_keywords'));
			}
			// Robots
			if ($this->params->get('robots'))
			{
				$this->document->setMetadata('robots',
$this->params->get('robots'));
			}
		}
		
		// Pathway
		if ($path = $this->get('path'))
		{
			$pathway = JFactory::getApplication()->getPathway();
			foreach ($path as $item)
			{
				$pathway->addItem($item->name, $item->link);
			}
		}
	}
}article/view.json.php000064400000001744151200755430010632
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewArticle extends JViewLegacy
{
	protected $item;
	
	public function display($tpl = null)
	{
		// set the JSON headers
		header('Content-Type: application/json; charset=utf-8');
		
		$this->item	= $this->get('article');

		if (!$this->item->id || !$this->item->published ||
(!RSTicketsProHelper::isStaff() && $this->item->private))
		{
			throw new Exception(JText::_('RST_CANNOT_VIEW_ARTICLE'));
		}
		
		if (!RSTicketsProHelper::getConfig('allow_rich_editor'))
		{
			$this->item->text = strip_tags($this->item->text);
		}
		
		// display the result
		echo json_encode(array('text' => $this->item->text));
		
		// end application
		JFactory::getApplication()->close();
	}
}dashboard/index.html000064400000000054151200755430010471
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>dashboard/tmpl/default.php000064400000014246151200755430011615
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JHtml::_('stylesheet',
'com_rsticketspro/awesomplete.css', array('relative'
=> true, 'version' => 'auto'));
JHtml::_('script',
'com_rsticketspro/awesomplete.min.js', array('relative'
=> true, 'version' => 'auto'));
JHtml::_('script', 'com_rsticketspro/dashboard.js',
array('relative' => true, 'version' =>
'auto'));

if ($this->params->get('show_page_heading', 1))
{
	?>
	<h1><?php echo
$this->escape($this->params->get('page_heading',
$this->params->get('page_title'))); ?></h1>
	<?php
}

echo JText::_(RSTicketsProHelper::getConfig('global_message'));
?>
<form method="post" action="<?php echo
$this->search_link; ?>">
	<div id="rsticketspro_dashboard_search">
		<div class="btn-group">
			<input type="text" placeholder="<?php echo
$this->escape(JText::_('RST_SEARCH_HELPDESK')); ?>"
class="form-control input-xlarge" name="search"
autocomplete="off" id="rsticketspro_searchinp" />
			<button type="submit" class="btn
btn-primary"><i id="rstickets_search_icon"
class="icon-search"></i><?php echo
JHtml::_('image', 'com_rsticketspro/loading.gif',
'', array('id' => 'rsticketspro_loading',
'style' => 'display:none;'), true);
?></button>
		</div>
	</div>

	<div class="rst_dashboard_items">
		<div class="rst_dashboard_item">
			<h1><i class="rsticketsproicon-mail"></i>
<a href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=submit');
?>"><?php echo JText::_('RST_SUBMIT_TICKET');
?></a></h1>
			<div class="caption">
				<p><?php echo
JText::_($this->params->get('submit_ticket_desc'));
?></p>
			</div>
		</div>
		<div class="rst_dashboard_item">
			<h1><i
class="rsticketsproicon-clipboard"></i> <a
href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=tickets');
?>"><?php echo JText::_('RST_VIEW_TICKETS');
?></a></h1>
			<div class="caption">
				<p><?php echo
JText::_($this->params->get('view_tickets_desc'));
?></p>
			</div>
		</div>
		<div class="rst_dashboard_item">
			<h1><i
class="rsticketsproicon-search-circled"></i> <a
href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=search');
?>"><?php echo JText::_('RST_SEARCH_TICKETS');
?></a></h1>
			<div class="caption">
				<p><?php echo
JText::_($this->params->get('search_tickets_desc'));
?></p>
			</div>
		</div>
	</div>
	<div class="clearfix"></div>

	<?php
	if ($this->params->get('show_kb', 1))
	{
		?>
		<div id="rsticketspro_dashboard_knowledgebase">
			<div>
				<h3><?php echo JText::_('RST_KNOWLEDGEBASE');
?></h3>

				<?php
				if (count($this->categories))
				{
					$parts = array_chunk($this->categories, 3);
					foreach ($parts as $part)
					{
						?>
						<div class="rst_dashboard_kb_row">
							<?php
							foreach($part as $category)
							{
								if ($category->thumb)
								{
									$thumb = JHtml::_('image',
'components/com_rsticketspro/assets/thumbs/small/'.$category->thumb,
$category->name, array(), false);
								}
								else
								{
									$thumb = JHtml::_('image',
'com_rsticketspro/kb-icon.png', $category->name, array(),
true);
								}
								?>
								<div class="rst_dashboard_kb_item">
									<strong>
										<?php echo $thumb; ?>
										<a href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=knowledgebase&cid='.$category->id.':'.JFilterOutput::stringURLSafe($category->name),
true, $this->kb_itemid); ?>"><?php echo
$this->escape($category->name); ?>
										</a>
									</strong>
									<?php
									if ($category->description)
									{
										?>
										<div><?php echo $category->description;
?></div>
										<?php
									}
									?>
								</div>
								<?php
							}
							?>
						</div>
						<div class="clearfix"></div>
						<?php
					}
				}
				else
				{
					?>
					<div class="rst_dashboard_center well well-small">
						<p><?php echo JText::_('RST_NO_KB_CATEGORIES');
?></p>
					</div>
					<?php
				}
				?>
			</div>
		</div>
		<?php
	}

	if ($this->params->get('show_tickets', 1))
	{
		?>
		<div id="rsticketspro_dashboard_tickets"
class="row-fluid">
			<div class="span12">
				<h3><?php echo JText::_('RST_MY_TICKETS');
?></h3>
				<?php
				if ($this->user->get('guest'))
				{
					?>
					<div class="alert alert-info">
						<p><?php echo
JText::_('RST_YOU_HAVE_TO_BE_LOGGED_IN'); ?></p>
						<p><a class="btn btn-primary" href="<?php
echo $this->login_link; ?>"><i
class="icon-lock"></i> <?php echo
JText::_('RST_CLICK_HERE_TO_LOGIN'); ?></a></p>
					</div>
					<?php
				}
				else
				{
					if (count($this->tickets))
					{
						?>
						<table class="table table-striped table-hover
table-bordered">
							<thead>
							<tr>
								<th><?php echo JText::_('RST_TICKET_SUBJECT');
?></th>
								<th><?php echo JText::_('RST_TICKET_STATUS');
?></th>
							</tr>
							</thead>
							<tbody>
							<?php
							foreach ($this->tickets as $ticket)
							{
								$hasReply = isset($ticket->message);
								?>
								<tr>
									<td><?php if ($hasReply) { ?><strong><?php }
?><a href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=ticket&id='.$ticket->id.':'.JFilterOutput::stringURLSafe($ticket->subject));
?>"><?php echo $this->escape($ticket->subject);
?></a><?php if ($hasReply) { ?> (1)</strong><?php }
?></td>
									<td><?php echo
$this->escape(JText::_($ticket->status_name)); ?></td>
								</tr>
								<?php
							}
							?>
							</tbody>
						</table>
						<?php
					}
					else
					{
						?>
						<div class="alert alert-info">
							<p><?php echo JText::_('RST_NO_RECENT_ACTIVITY');
?></p>
						</div>
						<?php
					}
				}
				?>
			</div>
		</div>
		<?php
	}
	?>
</form>
<div class="clearfix"></div>

<input type="hidden" name="kb_itemid"
value="<?php echo $this->kb_itemid; ?>" />
<input type="hidden" name="curr_itemid"
value="<?php echo $this->itemid; ?>"
/>dashboard/tmpl/default.xml000064400000003262151200755430011622
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="RST_DASHBOARD_DEFAULT_LAYOUT">
		<message>
			<![CDATA[RST_DASHBOARD_DESC]]>
		</message>
	</layout>
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field filter="raw" name="submit_ticket_desc"
rows="7" cols="45" type="textarea"
translate_default="true"
default="RST_SUBMIT_TICKET_DEFAULTTEXT"
label="RST_SUBMIT_TICKET_SMALLTEXT"
description="RST_SUBMIT_TICKET_SMALLTEXT_DESC" />
				<field filter="raw" name="view_tickets_desc"
rows="7" cols="45" type="textarea"
translate_default="true"
default="RST_VIEW_TICKETS_DEFAULTTEXT"
label="RST_VIEW_TICKETS_SMALLTEXT"
description="RST_VIEW_TICKETS_SMALLTEXT_DESC" />
				<field filter="raw" name="search_tickets_desc"
rows="7" cols="45" type="textarea"
translate_default="true"
default="RST_SEARCH_TICKETS_DEFAULTTEXT"
label="RST_SEARCH_TICKETS_SMALLTEXT"
description="RST_SEARCH_TICKETS_SMALLTEXT_DESC" />
				<field name="kb_itemid" type="text"
default="" label="RST_DASHBOARD_KB_ITEMID"
description="RST_DASHBOARD_KB_ITEMID_DESC" />
				<field name="show_kb" type="list"
default="1" label="RST_SHOW_KB_DASHBOARD"
description="RST_SHOW_KB_DASHBOARD_DESC">
					<option value="1">JYES</option>
					<option value="0">JNO</option>
				</field>
				<field name="show_tickets" type="list"
default="1" label="RST_SHOW_TICKETS_DASHBOARD"
description="RST_SHOW_TICKETS_DASHBOARD_DESC">
					<option value="1">JYES</option>
					<option value="0">JNO</option>
				</field>
				<field name="tickets_limit" type="text"
default="3" label="RST_DASHBOARD_TICKETS_LIMIT"
description="RST_DASHBOARD_TICKETS_LIMIT_DESC" />
			</fieldset>
		</fields>
	</config>
</metadata>dashboard/tmpl/index.html000064400000000054151200755430011445
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>dashboard/view.html.php000064400000003324151200755430011125
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewDashboard extends JViewLegacy
{
	public function display($tpl = null)
	{
		$this->params		=
JFactory::getApplication()->getParams('com_rsticketspro');
		$this->user			= JFactory::getUser();
		$this->categories	= $this->get('categories');
		$this->tickets		= $this->get('tickets');
		$this->login_link	=
JRoute::_('index.php?option=com_users&view=login&return='
. base64_encode((string) JUri::getInstance()));
		$this->kb_itemid	= (int)
$this->params->get('kb_itemid');
		$this->search_link  =
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=knowledgebase'
. (empty($this->kb_itemid) ? '&layout=results' :
'&Itemid=' . $this->kb_itemid));
		$this->itemid       =
JFactory::getApplication()->input->getInt('Itemid',0);

		$this->prepareDocument();

		parent::display($tpl);
	}
	
	protected function prepareDocument()
	{
		// Description
		if ($this->params->get('menu-meta_description'))
		{
			$this->document->setDescription($this->params->get('menu-meta_description'));
		}

		// Keywords
		if ($this->params->get('menu-meta_keywords'))
		{
			$this->document->setMetadata('keywords',
$this->params->get('menu-meta_keywords'));
		}

		// Robots
		if ($this->params->get('robots'))
		{
			$this->document->setMetadata('robots',
$this->params->get('robots'));
		}
	}
	
	public function trim($string, $max = 255, $more='...')
	{
		return RSTicketsProHelper::shorten($string, $max, $more);
	}
}history/index.html000064400000000054151200755430010243
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>history/metadata.xml000064400000000130151200755430010543
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<view hidden="true" />
</metadata>history/tmpl/default.php000064400000003323151200755430011361
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.keepalive');

$listOrder 	=
$this->escape($this->state->get('list.ordering'));
$listDirn 	=
$this->escape($this->state->get('list.direction'));
?>
<form action="<?php echo
JRoute::_('index.php?option=com_rsticketspro&view=history&id='.$this->id.'&tmpl=component');
?>" method="post" name="adminForm"
id="adminForm">
	<table class="table table-striped">
		<thead>
		<tr>
			<th><?php echo JHtml::_('grid.sort',
'RST_HISTORY_DATE', 'date', $listDirn, $listOrder);
?></th>
			<th><?php echo JHtml::_('grid.sort',
'RST_HISTORY_IP', 'ip', $listDirn, $listOrder);
?></th>
			<th><?php echo JText::_('RST_HISTORY_ACTION');
?></th>
			<th><?php echo JText::_('RST_HISTORY_VIEWED');
?></th>
		</tr>
		</thead>
		<tbody>
		<?php
		foreach ($this->items as $item)
		{
			?>
			<tr>
				<td width="1%" nowrap="nowrap"><?php echo
$this->showDate($item->date); ?></td>
				<td width="1%" nowrap="nowrap"><?php echo
$this->escape($item->ip); ?></td>
				<td width="1%" nowrap="nowrap"><?php echo
JText::_('RST_HISTORY_ACTION_'.$item->type); ?></td>
				<td><?php echo
$this->escape($this->showUser($item->user_id)); ?></td>
			</tr>
			<?php
		}
		?>
		</tbody>
	</table>
	<?php echo $this->pagination->getListFooter(); ?>

	<?php echo JHtml::_( 'form.token' ); ?>
	<input type="hidden" name="filter_order"
value="<?php echo $listOrder; ?>" />
	<input type="hidden" name="filter_order_Dir"
value="<?php echo $listDirn; ?>" />
</form>history/tmpl/index.html000064400000000054151200755430011217
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>history/view.html.php000064400000000554151200755430010701
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');
require_once
JPATH_ADMINISTRATOR.'/components/com_rsticketspro/views/history/view.html.php';kbresults/index.html000064400000000054151200755430010560
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>kbresults/metadata.xml000064400000000130151200755430011060
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<view hidden="true" />
</metadata>kbresults/tmpl/default.php000064400000000420151200755430011671
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');
kbresults/tmpl/index.html000064400000000054151200755430011534
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>kbresults/view.json.php000064400000002211151200755430011213
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewKbresults extends JViewLegacy
{
	public function display($tpl = null)
	{
		// set the JSON headers
		header('Content-Type: application/json; charset=utf-8');
		
		$this->items = $this->get('Items');

		// Set the kb_itemid
		$kb_itemid =
JFactory::getApplication()->input->getInt('kb_itemid',0);

		// parse the results
		$results = array();
		$urls = array();
		foreach ($this->items as $item)
		{
			$results[] = array(
				'label' => $item->name,
				'value' => $item->id
			);
			$urls[$item->id] =
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=article&cid='.$item->id.':'.JFilterOutput::stringURLSafe($item->name),false,
$kb_itemid);
		}
		
		// display the results
		echo json_encode(array(
			'list' => $results,
			'urls' => $urls
		));
		
		// end application
		JFactory::getApplication()->close();
	}
}knowledgebase/index.html000064400000000054151200755430011354
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>knowledgebase/tmpl/default.php000064400000013463151200755430012500
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

if (!empty($this->category->name))
{
	?>
	<h1><?php echo $this->escape($this->category->name);
?></h1>
	<?php
}
else
{
	?>
	<h1><?php echo
$this->escape($this->params->get('page_heading',
$this->params->get('page_title'))); ?></h1>
	<?php
}

if ($this->params->def('show_description', 1))
{
	echo $this->category->description;
}

if (count($this->categories))
{
	?>
	<div class="rst_categories">
	<?php
	foreach ($this->categories as $category)
	{
		if ($category->thumb)
		{
			$thumb = JHtml::_('image',
'components/com_rsticketspro/assets/thumbs/small/'.$category->thumb,
$category->name, array(), false);
		}
		else
		{
			$thumb = JHtml::_('image',
'com_rsticketspro/kb-icon.png', $category->name, array(),
true);
		}
		?>
		<div class="well well-small">
			<strong><?php echo $thumb; ?> <a href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=knowledgebase&cid='.$category->id.':'.JFilterOutput::stringURLSafe($category->name));
?>"><?php echo $this->escape($category->name);
?></a></strong>
			<?php
			if ($this->params->def('show_description', 1) &&
$category->description)
			{
				?>
				<div><?php echo $category->description; ?></div>
				<?php
			}
			?>
		</div>
		<?php
	}
	?>
	</div>
	<?php
}
?>

<form action="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=knowledgebase'.($this->cid
?
'&cid='.$this->cid.':'.JFilterOutput::stringURLSafe($this->category->name)
: '')); ?>" method="post"
name="adminForm" id="adminForm">
	<?php
	if ($this->params->get('filter', 1) ||
$this->is_filter_active ||
$this->params->get('show_pagination_limit', 1))
	{
		?>
		<fieldset class="com-rsticketspro-kb-filter">
			<?php
			if ($this->params->get('filter', 1) ||
$this->is_filter_active)
			{
				?>
				<div class="btn-group pull-left float-left">
					<label class="filter-search-lbl element-invisible"
for="filter-search">
						<?php echo
JText::_('RST_FILTER').'&#160;'; ?>
					</label>
					<input type="text" class="form-control"
name="search" id="filter-search" value="<?php
echo $this->escape($this->filter_word); ?>"
title="<?php echo JText::_('RST_FILTER'); ?>"
placeholder="<?php echo JText::_('RST_FILTER');
?>" />
					<button type="submit" class="btn
btn-primary"><?php echo JText::_('RST_SEARCH');
?></button>
					<?php
					if (strlen($this->filter_word))
					{
						?>
						<button type="button" class="btn btn-danger"
onclick="document.getElementById('filter-search').value='';
this.form.submit();"><?php echo JText::_('RST_CLEAR');
?></button>
						<?php
					}
					?>
				</div>
				<?php
			}

			if ($this->params->get('show_pagination_limit', 1))
			{
				?>
				<div class="btn-group pull-right float-right">
					<label for="limit"
class="element-invisible">
						<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
					</label>
					<?php echo $this->pagination->getLimitBox(); ?>
				</div>
				<?php
			}
			?>
			<div class="clearfix"></div>
		</fieldset>
		<?php
	}

	if (empty($this->items))
	{
		?>
		<div class="alert alert-info">
			<span class="fa fa-info-circle"
aria-hidden="true"></span><span
class="sr-only"><?php echo JText::_('INFO');
?></span>
			<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
		</div>
		<?php
	}
	else
	{
		?>
		<table class="table table-striped table-bordered
table-hover">
			<?php
			if ($this->params->get('show_headings', 1))
			{
				?>
				<thead>
					<tr>
						<th nowrap="nowrap" style="width:
1%;"><?php echo JText::_('#'); ?></th>
						<th><?php echo JHtml::_('grid.sort',
'RST_KB_ARTICLE_NAME', 'name', $this->sortOrder,
$this->sortColumn); ?></th>
						<?php
						if ($this->params->get('show_hits', 0))
						{
							?>
							<th nowrap="nowrap" style="width:
1%;"><?php echo JHtml::_('grid.sort',
'RST_KB_ARTICLE_HITS', 'hits', $this->sortOrder,
$this->sortColumn); ?></th>
							<?php
						}
						?>
					</tr>
				</thead>
				<?php
			}
			?>
			<tbody>
			<?php
			foreach ($this->items as $i => $item)
			{
				?>
				<tr>
					<td nowrap="nowrap" style="width: 1%;">
						<?php echo $this->pagination->getRowOffset($i); ?>
					</td>
					<td>
						<a href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=article&cid='.$item->id.':'.JFilterOutput::stringURLSafe($item->name));
?>">
							<?php echo $item->name != '' ? $item->name :
JText::_('RST_NO_TITLE'); ?>
						</a>
						<?php
						if ($this->isHot($item->hits))
						{
							?>
							<em class="rst_hot"><?php echo
JText::_('RST_HOT'); ?></em>
							<?php
						}
						?>
					</td>
					<?php
					if ($this->params->get('show_hits', 0))
					{
						?>
						<td nowrap="nowrap" style="width: 1%;">
							<span class="badge badge-info"><?php echo
$item->hits; ?></span>
						</td>
						<?php
					}
					?>
				</tr>
				<?php
			}
			?>
			</tbody>
		</table>
		<?php
		if ($this->params->get('show_pagination', 1))
		{
			?>
			<div class="pagination<?php echo
$this->escape($this->params->get('pageclass_sfx'));
?>">
				<?php echo $this->pagination->getPagesLinks(); ?>
			</div>
			<?php
		}
	}
	?>

	<?php echo JHtml::_('form.token'); ?>
	<input type="hidden" name="option"
value="com_rsticketspro" />
	<input type="hidden" name="task" value=""
/>
	<input type="hidden" name="cid"
value="<?php echo $this->cid; ?>" />
	<input type="hidden" name="filter_order"
value="<?php echo $this->sortColumn; ?>" />
	<input type="hidden" name="filter_order_Dir"
value="<?php echo $this->sortOrder; ?>" />
</form>knowledgebase/tmpl/default.xml000064400000004660151200755430012510
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="RST_KB_DEFAULT_LAYOUT">
		<message>
			<![CDATA[RST_KNOWLEDGEBASE_MENU_DESC]]>
		</message>
	</layout>
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field name="order_by" type="list"
default="1" label="RST_KB_CONTENT_ORDER_BY"
description="RST_KB_CONTENT_ORDER_BY_DESC">
					<option value="ordering">RST_DEFAULT</option>
					<option value="hits">RST_KB_HITS</option>
					<option value="created">RST_KB_CREATED</option>
					<option
value="modified">RST_KB_MODIFIED</option>
					<option
value="name">RST_KB_ARTICLE_NAME</option>
				</field>
				<field name="order_dir" type="list"
default="ASC" label="RST_KB_CONTENT_ORDER_DIR"
description="RST_KB_CONTENT_ORDER_DIR_DESC">
					<option value="ASC">RST_ASC</option>
					<option value="DESC">RST_DESC</option>
				</field>
				<field name="show_description" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_KB_CATEGORY_DESCRIPTION"
description="RST_KB_CATEGORY_DESCRIPTION_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="filter" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_FILTER" description="RST_FILTER_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_headings" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_SHOW_HEADINGS"
description="RST_SHOW_HEADINGS_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_hits" type="radio"
class="btn-group btn-group-yesno" default="0"
label="RST_SHOW_HITS"
description="RST_SHOW_HITS_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_pagination" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_SHOW_PAGINATION"
description="RST_SHOW_PAGINATION_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_pagination_limit" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_SHOW_PAGINATION_LIMIT"
description="RST_SHOW_PAGINATION_LIMIT_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
			</fieldset>
		</fields>
	</config>
</metadata>knowledgebase/tmpl/index.html000064400000000054151200755430012330
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>knowledgebase/tmpl/results.php000064400000004547151200755430012560
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');
?>

<h1><?php echo JText::sprintf('RST_KB_RESULTS_FOR',
$this->escape($this->word)); ?></h1>

<?php
if (empty($this->items))
{
	?>
	<div class="alert alert-info">
		<span class="fa fa-info-circle"
aria-hidden="true"></span><span
class="sr-only"><?php echo JText::_('INFO');
?></span>
		<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
	</div>
	<?php
}
else
{
?>
	<table class="table table-striped table-bordered
table-hover">
	<?php
	if ($this->params->get('show_headings', 1))
	{
		?>
		<thead>
			<tr>
				<th nowrap="nowrap" style="width:
1%;"><?php echo JText::_('#'); ?></th>
				<th><?php echo JText::_('RST_KB_ARTICLE_NAME');
?></th>
				<th><?php echo JText::_('RST_KB_CATEGORY_NAME');
?></th>
			</tr>
		</thead>
		<?php
	}
	?>
	<tbody>
		<?php
		foreach ($this->items as $i => $item)
		{
			?>
			<tr>
				<td nowrap="nowrap" style="width: 1%;">
					<?php echo $this->pagination->getRowOffset($i); ?>
				</td>
				<td>
					<a href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=article&cid='.$item->id.':'.JFilterOutput::stringURLSafe($item->name));
?>">
						<?php echo $item->name != '' ? $item->name :
JText::_('RST_NO_TITLE'); ?>
					</a>
					<?php
					if ($this->isHot($item->hits))
					{
						?>
						<em class="rst_hot"><?php echo
JText::_('RST_HOT'); ?></em>
						<?php
					}
					?>
				</td>
				<td>
					<?php
					if ($item->category_id)
					{
						?>
						<a href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=knowledgebase&cid='.$item->category_id.':'.JFilterOutput::stringURLSafe($item->category_name));
?>"><?php echo $this->escape($item->category_name);
?></a>
						<?php
					}
					else
					{
						echo JText::_('RST_KB_NO_CATEGORY');
					}
					?>
				</td>
			</tr>
			<?php
		}
		?>
	</tbody>
	</table>
	<?php
	if ($this->params->get('show_pagination', 1))
	{
		?>
		<div class="pagination<?php echo
$this->escape($this->params->get('pageclass_sfx'));
?>">
			<?php echo $this->pagination->getPagesLinks(); ?>
		</div>
		<?php
	}
}knowledgebase/tmpl/results.xml000064400000000132151200755430012553
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<layout hidden="true" />
</metadata>knowledgebase/view.html.php000064400000005067151200755430012016
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewKnowledgebase extends JViewLegacy
{
	protected $hot_hits = 0;
	
	public function display($tpl = null)
	{
		$mainframe		= JFactory::getApplication();
		$this->params	=
$mainframe->getParams('com_rsticketspro');
		$layout			= $this->getLayout();
		
		if ($layout == 'results')
		{
			$this->items		= $this->get('results');
			$this->pagination	= $this->get('resultspagination');
			$this->word			= $this->get('resultsword');
		}
		else
		{
			$this->categories		= $this->get('categories');
			$this->items			= $this->get('content');
			$this->pagination		= $this->get('contentpagination');
			$this->sortColumn		= $this->get('sortcolumn');
			$this->sortOrder		= $this->get('sortorder');
			$this->filter_word		= $this->get('filterword');
			$this->category			= $this->get('category');
			$this->cid				= $mainframe->input->getInt('cid',0);
			$this->is_filter_active = (strlen($this->filter_word) > 0);
		}

		$this->prepareDocument();

		parent::display($tpl);
	}
	
	protected function prepareDocument()
	{
		// Description
		if ($this->params->get('menu-meta_description'))
		{
			$this->document->setDescription($this->params->get('menu-meta_description'));
		}
		
		// Keywords
		if ($this->params->get('menu-meta_keywords'))
		{
			$this->document->setMetadata('keywords',
$this->params->get('menu-meta_keywords'));
		}
		
		// Robots
		if ($this->params->get('robots'))
		{
			$this->document->setMetadata('robots',
$this->params->get('robots'));
		}
		
		// Add meta information from category, if one has been requested
		if (!empty($this->category))
		{
			if (!empty($this->category->meta_description))
			{
				$this->document->setMetaData('description',
$this->category->meta_description);
			}
			if (!empty($this->category->meta_keywords))
			{
				$this->document->setMetaData('keywords',
$this->category->meta_keywords);
			}
		}
		
		// Pathway
		if ($path = $this->get('path'))
		{
			$pathway = JFactory::getApplication()->getPathway();

			foreach ($path as $item)
			{
				$pathway->addItem($item->name, $item->link);
			}
		}
	}
	
	public function isHot($hits)
	{
		if (empty($this->hot_hits))
		{
			$this->hot_hits =
RSTicketsProHelper::getConfig('kb_hot_hits');
		}
		
		return $hits >= $this->hot_hits;
	}
}note/index.html000064400000000054151200755430007507
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>note/metadata.xml000064400000000130151200755430010007
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<view hidden="true" />
</metadata>note/tmpl/edit.php000064400000002473151200755430010133
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidator');

// Load JavaScript message titles
JText::script('ERROR');
JText::script('WARNING');
JText::script('NOTICE');
JText::script('MESSAGE');
?>
<form action="<?php echo
JRoute::_('index.php?option=com_rsticketspro&view=note&tmpl=component&layout=edit&id='.(int)
$this->item->id.'&ticket_id='.$this->ticket_id);
?>" method="post" name="adminForm"
id="adminForm" class="form-validate">
	<div class="rst_button_spacer">
		<button type="button" class="btn btn-success"
onclick="Joomla.submitbutton('note.apply');"><i
class="icon-apply icon-white"></i> <?php echo
JText::_('JAPPLY'); ?></button>
		<button type="button" class="btn btn-danger"
onclick="Joomla.submitbutton('note.cancel');"><i
class="icon-cancel"></i> <?php echo
JText::_('JCANCEL'); ?></button>
	</div>
	<?php
	foreach ($this->form->getFieldsets() as $fieldset)
	{
		echo $this->form->renderFieldset($fieldset->name);
	}
	?>

	<?php echo JHtml::_('form.token'); ?>
	<input type="hidden" name="task" value=""
/>
</form>note/tmpl/index.html000064400000000054151200755430010463
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>note/view.html.php000064400000000553151200755430010144
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

require_once
JPATH_ADMINISTRATOR.'/components/com_rsticketspro/views/note/view.html.php';notes/index.html000064400000000054151200755430007672
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>notes/metadata.xml000064400000000130151200755430010172
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<view hidden="true" />
</metadata>notes/tmpl/default.php000064400000007332151200755430011014
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.keepalive');

$listOrder 	=
$this->escape($this->state->get('list.ordering'));
$listDirn 	=
$this->escape($this->state->get('list.direction'));

JText::script('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST');
JText::script('RST_DELETE_TICKET_NOTE_CONFIRM');
?>

<form action="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=notes&ticket_id='.$this->id.'&tmpl=component');
?>" method="post" name="adminForm"
id="adminForm">
	<div class="rst_button_spacer">
	<?php
	if ($this->permissions->add_note)
	{
		?>
		<button type="button" class="btn btn-success"
onclick="Joomla.submitbutton('note.add');"><i
class="icon-plus"></i> <?php echo
JText::_('RST_TICKET_ADD_NOTE'); ?></button>
		<?php
	}
	if ($this->permissions->delete_note ||
$this->permissions->delete_note_staff)
	{
		?>
		<button type="button" class="btn btn-danger"
onclick="if (document.adminForm.boxchecked.value === '0') {
alert(Joomla.JText._('JLIB_HTML_PLEASE_MAKE_A_SELECTION_FROM_THE_LIST'));
} else { if
(confirm(Joomla.JText._('RST_DELETE_TICKET_NOTE_CONFIRM'))) {
Joomla.submitbutton('notes.delete'); } }"><i
class="icon-delete"></i> <?php echo
JText::_('RST_TICKET_DELETE_NOTE'); ?></button>
		<?php
	}
	?>
	</div>
	<?php
	if (empty($this->items))
	{
		?>
		<div class="alert alert-info">
			<span class="fa fa-info-circle"
aria-hidden="true"></span><span
class="sr-only"><?php echo JText::_('INFO');
?></span>
			<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
		</div>
		<?php
	}
	else
	{
		?>
		<table class="table table-striped table-condensed">
			<thead>
			<tr>
				<th width="1%" nowrap="nowrap"><?php echo
JHtml::_('grid.checkall'); ?></th>
				<th><?php echo JHtml::_('grid.sort',
'RST_HISTORY_DATE', 'date', $listDirn, $listOrder);
?></th>
				<th><?php echo JText::_('RST_NOTES_USER');
?></th>
				<th><?php echo JText::_('RST_TICKET_NOTE');
?></th>
			</tr>
			</thead>
			<tbody>
			<?php
			foreach ($this->items as $i => $item)
			{
				$canDelete = ($this->permissions->delete_note &&
$item->user_id == $this->userId) ||
($this->permissions->delete_note_staff && $item->user_id
!= $this->userId);
				$canEdit   = ($this->permissions->update_note &&
$item->user_id == $this->userId) ||
($this->permissions->update_note_staff && $item->user_id
!= $this->userId);
				?>
				<tr>
					<td width="1%" nowrap="nowrap"><?php echo
JHtml::_('grid.id', $i, $item->id, !$canDelete);
?></td>
					<td width="1%" nowrap="nowrap"><?php echo
$this->showDate($item->date); ?></td>
					<td width="1%" nowrap="nowrap"><?php echo
$this->escape($this->showUser($item->user_id)); ?></td>
					<td>
						<p><?php echo nl2br($this->escape($item->text));
?></p>
						<?php
						if ($canEdit)
						{
							?>
							<p><a class="btn btn-secondary btn-mini btn-sm"
href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=note.edit&tmpl=component&ticket_id='.$this->id.'&id='.(int)
$item->id); ?>"><?php echo
JText::_('RST_TICKET_EDIT_NOTE'); ?></a></p>
							<?php
						}
						?>
					</td>
				</tr>
				<?php
			}
			?>
			</tbody>
		</table>
		<?php
		echo $this->pagination->getListFooter();
	}

	echo JHtml::_( 'form.token' );
	?>
	<input type="hidden" name="boxchecked"
value="0" />
	<input type="hidden" name="task" value=""
/>
	<input type="hidden" name="filter_order"
value="<?php echo $listOrder; ?>" />
	<input type="hidden" name="filter_order_Dir"
value="<?php echo $listDirn; ?>" />
</form>notes/tmpl/index.html000064400000000054151200755440010647
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>notes/view.html.php000064400000000552151200755440010327
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');
require_once
JPATH_ADMINISTRATOR.'/components/com_rsticketspro/views/notes/view.html.php';predefinedsearch/index.html000064400000000054151200755440012036
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>predefinedsearch/metadata.xml000064400000000130151200755440012336
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<view hidden="true" />
</metadata>predefinedsearch/tmpl/edit.php000064400000007417151200755440012465
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidator');

// Load JavaScript message titles
JText::script('ERROR');
JText::script('WARNING');
JText::script('NOTICE');
JText::script('MESSAGE');
?>
<form action="<?php echo
JRoute::_('index.php?option=com_rsticketspro&view=predefinedsearch&layout=edit&id='.(int)
$this->item->id); ?>" method="post"
name="adminForm" id="adminForm"
class="form-validate">
	<?php
	foreach ($this->form->getFieldsets() as $fieldset)
	{
		echo $this->form->renderFieldset($fieldset->name);
	}

	if (isset($this->item->params['search']))
	{
		$input = strlen($this->item->params['search']) ?
$this->escape($this->item->params['search']) :
'<em>' . JText::_('RST_NONE_SUPPLIED') .
'</em>';
		$this->showField(JText::_('RST_SEARCH_TEXT'), $input);
	}

	if (isset($this->item->params['customer']))
	{
		$input = strlen($this->item->params['customer']) ?
$this->escape($this->item->params['customer']) :
'<em>' . JText::_('RST_NONE_SUPPLIED') .
'</em>';
		$this->showField(JText::_('RST_SEARCH_CUSTOMER'), $input);
	}

	if (isset($this->item->params['staff']))
	{
		if (strlen($this->item->params['staff']))
		{
			if ((string) $this->item->params['staff'] ===
'0')
			{
				$input = '<em>' . JText::_('RST_UNASSIGNED')
. '</em>';
			}
			else
			{
				$input =
$this->escape($this->item->params['staff']);
			}
		}
		else
		{
			$input = '<em>' .
JText::_('RST_NONE_SUPPLIED') . '</em>';
		}
		$this->showField(JText::_('RST_SEARCH_STAFF'), $input);
	}

	if (isset($this->item->params['department_id']))
	{
		$departments =
$this->getDepartments($this->item->params['department_id']);
		$input = $departments ? $this->escape(implode(', ',
$departments)) : '<em>' .
JText::_('RST_NONE_SUPPLIED') . '</em>';
		$this->showField(JText::_('RST_SEARCH_DEPARTMENTS'),
$input);
	}

	if (isset($this->item->params['priority_id']))
	{
		$priorities =
$this->getPriorities($this->item->params['priority_id']);
		$input = $priorities ? $this->escape(implode(', ',
$priorities)) : '<em>' .
JText::_('RST_NONE_SUPPLIED') . '</em>';
		$this->showField(JText::_('RST_SEARCH_PRIORITIES'),
$input);
	}

	if (isset($this->item->params['status_id']))
	{
		$statuses =
$this->getStatuses($this->item->params['status_id']);
		$input = $statuses ? $this->escape(implode(', ', $statuses))
: '<em>' . JText::_('RST_NONE_SUPPLIED') .
'</em>';
		$this->showField(JText::_('RST_SEARCH_STATUSES'), $input);
	}

	if (isset($this->item->params['flagged']))
	{
		$input = $this->item->params['flagged'] ?
JText::_('JYES') : JText::_('JNO');
		$this->showField(JText::_('RST_SEARCH_FLAGGED'), $input);
	}

	if (!empty($this->item->params['ordering']))
	{
		$input =
JText::_('RST_TICKET_'.$this->item->params['ordering']);
		if (!empty($this->item->params['direction']))
		{
			$input .= ' ' .
($this->item->params['direction'] == 'asc' ?
JText::_('JGLOBAL_ORDER_ASCENDING') :
JText::_('JGLOBAL_ORDER_DESCENDING'));
		}
		$this->showField(JText::_('JFIELD_ORDERING_LABEL'),
$input);
	}
	?>
	
	<div class="form-actions">
		<button type="button"
onclick="Joomla.submitbutton('predefinedsearch.save');"
class="btn btn-primary"><?php echo
JText::_('RST_SAVE'); ?></button>
		<a href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=predefinedsearches');
?>" class="btn btn-secondary"><?php echo
JText::_('RST_BACK_TO_SEARCHES_LIST'); ?></a>
	</div>
	
	<div>
		<?php echo JHtml::_('form.token'); ?>
		<input type="hidden" name="task"
value="" />
	</div>
</form>predefinedsearch/tmpl/index.html000064400000000054151200755440013012
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>predefinedsearch/view.html.php000064400000007526151200755440012502
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewPredefinedsearch extends JViewLegacy
{	
	public function display($tpl = null)
	{
		$this->canAccess();
		
		$this->params		=
JFactory::getApplication()->getParams('com_rsticketspro');
		$this->form			= $this->get('Form');
		$this->item			= $this->get('Item');
		
		$this->prepareDocument();

		parent::display($tpl);
	}
	
	protected function prepareDocument()
	{
		// Description
		if ($this->params->get('menu-meta_description'))
		{
			$this->document->setDescription($this->params->get('menu-meta_description'));
		}

		// Keywords
		if ($this->params->get('menu-meta_keywords'))
		{
			$this->document->setMetadata('keywords',
$this->params->get('menu-meta_keywords'));
		}

		// Robots
		if ($this->params->get('robots'))
		{
			$this->document->setMetadata('robots',
$this->params->get('robots'));
		}
	}
	
	protected function canAccess()
	{
		$app = JFactory::getApplication();
		
		if (JFactory::getUser()->get('guest'))
		{
			$link = base64_encode((string) JUri::getInstance());
			$app->redirect(RSTicketsProHelper::route('index.php?option=com_users&view=login&return='.$link,
false));
		}
		
		if (!RSTicketsProHelper::isStaff())
		{
		   
$app->enqueueMessage(JText::_('RST_CUSTOMER_CANNOT_VIEW_SEARCHES'),
'warning');
			$app->redirect(RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=tickets',
false));
		}
	}

	protected function getDepartments($ids)
	{
		$db 	 = JFactory::getDbo();
		$results = array();

		if (!is_array($ids))
		{
			$ids = (array) $ids;
		}

		if (!$ids)
		{
			return $results;
		}

		$filtered_ids = array();
		foreach ($ids as $id)
		{
			$filtered_ids[] = $db->q($id);
		}

		// Load departments
		$query = $db->getQuery(true);
		$query->select($db->qn('name'))
			->from($db->qn('#__rsticketspro_departments'))
			->where($db->qn('id') . ' IN
('.implode(',', $filtered_ids).')');

		if ($results = $db->setQuery($query)->loadColumn())
		{
			foreach ($results as $k => $result)
			{
				$results[$k] = JText::_($result);
			}
		}

		return $results;
	}

	protected function getPriorities($ids)
	{
		$db 	 = JFactory::getDbo();
		$results = array();

		if (!is_array($ids))
		{
			$ids = (array) $ids;
		}

		if (!$ids)
		{
			return $results;
		}

		$filtered_ids = array();
		foreach ($ids as $id)
		{
			$filtered_ids[] = $db->q($id);
		}

		// Load priorities
		$query = $db->getQuery(true);
		$query->select($db->qn('name'))
			->from($db->qn('#__rsticketspro_priorities'))
			->where($db->qn('id') . ' IN
('.implode(',', $filtered_ids).')');

		if ($results = $db->setQuery($query)->loadColumn())
		{
			foreach ($results as $k => $result)
			{
				$results[$k] = JText::_($result);
			}
		}

		return $results;
	}

	protected function getStatuses($ids)
	{
		$db 	 = JFactory::getDbo();
		$results = array();

		if (!is_array($ids))
		{
			$ids = (array) $ids;
		}

		if (!$ids)
		{
			return $results;
		}

		$filtered_ids = array();
		foreach ($ids as $id)
		{
			$filtered_ids[] = $db->q($id);
		}

		// Load statuses
		$query = $db->getQuery(true);
		$query->select($db->qn('name'))
			->from($db->qn('#__rsticketspro_statuses'))
			->where($db->qn('id') . ' IN
('.implode(',', $filtered_ids).')');

		if ($results = $db->setQuery($query)->loadColumn())
		{
			foreach ($results as $k => $result)
			{
				$results[$k] = JText::_($result);
			}
		}

		return $results;
	}

	protected function showField($label, $desc)
	{
		echo '<p><strong>' . $label .
'</strong><br>' . $desc . '</p>';
	}
}predefinedsearches/index.html000064400000000054151200755440012366
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>predefinedsearches/metadata.xml000064400000000261151200755440012673
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<view title="RST_MANAGE_SEARCHES">
		<message>
			<![CDATA[RST_SIGNATURE_MENU_DESC]]>
		</message>
	</view>
</metadata>predefinedsearches/tmpl/default.php000064400000007175151200755440013515
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access'); 

JHtml::_('behavior.keepalive');
JHtml::_('script',
'com_rsticketspro/predefinedsearches.js',
array('relative' => true, 'version' =>
'auto'));

JText::script('RST_DELETE_SEARCH_CONFIRM');

$listOrder 	=
$this->escape($this->state->get('list.ordering'));
$listDirn 	=
$this->escape($this->state->get('list.direction'));

$saveOrderingUrl =
'index.php?option=com_rsticketspro&task=predefinedsearches.saveOrderAjax&tmpl=component';

if (!empty($this->items))
{
	JHtml::_('sortablelist.sortable', 'articleList',
'adminForm', strtolower($listDirn), $saveOrderingUrl);
}

if ($this->params->get('show_page_heading', 1))
{
	?>
	<h1><?php echo
$this->escape($this->params->get('page_heading',
$this->params->get('page_title'))); ?></h1>
	<?php
}
?>

<p>
	<button type="button" class="btn btn-danger"
disabled="disabled" id="rst_delete_btn"
onclick="if
(confirm(Joomla.JText._('RST_DELETE_SEARCH_CONFIRM')))
Joomla.submitbutton('predefinedsearches.delete');"><?php
echo JText::_('RST_DELETE'); ?></button>
</p>
<form action="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=predefinedsearches');
?>" method="post" id="adminForm"
name="adminForm">
	<?php
	if (empty($this->items))
	{
		?>
		<div class="alert alert-info">
			<span class="fa fa-info-circle"
aria-hidden="true"></span><span
class="sr-only"><?php echo JText::_('INFO');
?></span>
			<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
		</div>
		<?php
	}
	else
	{
		?>
		<table class="table table-striped table-bordered
table-hover" id="articleList">
			<thead>
				<tr>
					<th width="1%" nowrap="nowrap"><?php echo
JHtml::_('grid.checkall'); ?></th>
					<th><?php echo JText::_('RST_SEARCH_NAME');
?></th>
					<th class="center" align="center"><?php
echo JText::_('RST_DEFAULT_SEARCH_SHORT'); ?></th>
					<th width="1%" class="nowrap
center"><?php echo JHtml::_('searchtools.sort',
'', 'ordering', $listDirn, $listOrder, null,
'asc', 'JGRID_HEADING_ORDERING',
'icon-menu-2'); ?></th>
				</tr>
			</thead>
			<tbody class="js-draggable" data-url="<?php echo
$saveOrderingUrl; ?>" data-direction="<?php echo
strtolower($listDirn); ?>" data-nested="false">
				<?php
				foreach ($this->items as $i => $item)
				{
					?>
					<tr data-draggable-group="1">
						<td class="center" align="center">
							<?php echo JHtml::_('grid.id', $i, $item->id);
?>
						</td>
						<td>
							<a href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&task=predefinedsearch.edit&id='.$item->id);
?>">
								<?php echo !empty($item->name) ?
$this->escape($item->name) :
'<em>'.JText::_('RST_NO_TITLE').'</em>';
?>
							</a>
						</td>
						<td class="center" align="center"
style="width: 1%" nowrap="nowrap"><?php echo
$item->default ? JText::_('JYES') : JText::_('JNO');
?></td>
						<td class="order center">
							<span class="sortable-handler"><i
class="icon-menu"></i></span>
							<input type="text" style="display:none"
name="order[]" size="5" value="<?php echo
$item->ordering; ?>" class="width-20 text-area-order"
/>
						</td>
					</tr>
					<?php
				}
				?>
			</tbody>
		</table>

		<div class="pagination"><?php echo
$this->pagination->getPagesLinks(); ?></div>
		<?php
	}
	?>

	<?php echo JHtml::_('form.token'); ?>
	<input type="hidden" name="boxchecked"
value="0" />
	<input type="hidden" name="task" value=""
/>
</form>predefinedsearches/tmpl/default.xml000064400000000305151200755440013512
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="RST_SEARCHES_DEFAULT_LAYOUT">
		<message>
			<![CDATA[RST_MANAGE_SEARCHES_MENU_DESC]]>
		</message>
	</layout>
</metadata>
predefinedsearches/tmpl/index.html000064400000000054151200755440013342
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>predefinedsearches/view.html.php000064400000003577151200755440013034
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewPredefinedsearches extends JViewLegacy
{	
	public function display($tpl = null)
	{
		$this->canAccess();
		
		$app				= JFactory::getApplication();
		$this->params		= $app->getParams('com_rsticketspro');
		$this->items 		= $this->get('Items');
		$this->state 		= $this->get('State');
		$this->pagination 	= $this->get('Pagination');

		$app->getPathway()->addItem(JText::_('RST_MANAGE_SEARCHES'),
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=predefinedsearches'));

		$this->prepareDocument();

		parent::display($tpl);
	}
	
	protected function prepareDocument()
	{
		// Description
		if ($this->params->get('menu-meta_description'))
		{
			$this->document->setDescription($this->params->get('menu-meta_description'));
		}

		// Keywords
		if ($this->params->get('menu-meta_keywords'))
		{
			$this->document->setMetadata('keywords',
$this->params->get('menu-meta_keywords'));
		}

		// Robots
		if ($this->params->get('robots'))
		{
			$this->document->setMetadata('robots',
$this->params->get('robots'));
		}
	}
	
	protected function canAccess()
	{
		$app = JFactory::getApplication();
		
		if (JFactory::getUser()->get('guest'))
		{
			$link = base64_encode((string) JUri::getInstance());
			$app->redirect(RSTicketsProHelper::route('index.php?option=com_users&view=login&return='.$link,
false));
		}
		
		if (!RSTicketsProHelper::isStaff())
		{
		   
$app->enqueueMessage(JText::_('RST_CUSTOMER_CANNOT_VIEW_SEARCHES'),
'warning');
			$app->redirect(RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=tickets',
false));
		}
	}
}removedata/index.html000064400000000054151200755440010672
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>removedata/tmpl/default.php000064400000003202151200755440012004
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.keepalive');
?>

<?php if ($this->params->get('show_page_heading', 1)) {
?>
	<h1><?php echo
$this->escape($this->params->get('page_heading',
$this->params->get('page_title'))); ?></h1>
<?php } ?>

<?php echo $this->globalMessage; ?>

<form id="rsticketspro_removedata_form" action="<?php
echo
JRoute::_('index.php?option=com_rsticketspro&view=removedata');
?>" method="post" name="removeDataForm">
	<div id="rsticketspro_remove_data_and_close_account">
		<div class="alert alert-warning">
			<?php if ($this->anonymise_joomla_data) { ?>
			<p><?php echo
JText::_('COM_RSTICKETSPRO_REMOVE_DATA_AND_CLOSE_ACCOUNT_SURE_NO_LOGIN');
?></p>
			<?php } else { ?>
			<p><?php echo
JText::_('COM_RSTICKETSPRO_REMOVE_DATA_AND_CLOSE_ACCOUNT_SURE');
?></p>
			<?php } ?>
			<p><strong><?php echo
JText::_('COM_RSTICKETSPRO_REMOVE_DATA_AND_CLOSE_ACCOUNT_SURE_CONT');
?></strong></p>
			<p><button type="button"
onclick="RSTicketsPro.requestRemoveData(this);" class="btn
btn-danger"><?php echo
JText::sprintf('COM_RSTICKETSPRO_YES_SEND_ME_A_LINK',
$this->email); ?></button></>
		</div>
	</div>
	<div class="text-center">
	<button type="button" class="btn btn-danger"
onclick="RSTicketsPro.removeData(this);"><?php echo
JText::_('COM_RSTICKETSPRO_REMOVE_DATA_AND_CLOSE_ACCOUNT');
?></button>
	</div>
	
	<?php if ($this->show_footer) echo $this->footer; ?>
</form>removedata/tmpl/default.xml000064400000000304151200755440012015
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="RST_REMOVE_DATA_DEFAULT_LAYOUT">
		<message>
			<![CDATA[RST_REMOVE_DATA_MENU_DESC]]>
		</message>
	</layout>
</metadata>
removedata/tmpl/index.html000064400000000054151200755440011646
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>removedata/tmpl/success.php000064400000001214151200755440012031
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2018 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

$this->app->enqueueMessage(JText::_('COM_RSTICKETSPRO_DATA_HAS_BEEN_SUCCESSFULLY_ANONYMISED'));
?>

<?php if ($this->params->get('show_page_heading', 1)) {
?>
	<h1><?php echo
$this->escape($this->params->get('page_heading',
$this->params->get('page_title'))); ?></h1>
<?php } ?>

<?php echo $this->globalMessage; ?>

<?php if ($this->show_footer) echo $this->footer;
?>removedata/view.html.php000064400000003753151200755440011334
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2018 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewRemovedata extends JViewLegacy
{
	public function display($tpl = null)
    {
        $user       = JFactory::getUser();
        $this->app	= JFactory::getApplication();

        // not logged in?
        if (strtolower($this->getLayout()) == 'default'
&& !$user->get('id'))
        {
            $link = base64_encode((string) JUri::getInstance());
           
$this->app->redirect(JRoute::_('index.php?option=com_users&view=login&return='.$link,
false));
        }

        $this->globalMessage	        =
JText::_(RSTicketsProHelper::getConfig('global_message'));

        $this->params			        =
$this->app->getParams('com_rsticketspro');
        $this->show_footer		        =
RSTicketsProHelper::getConfig('rsticketspro_link');
        $this->footer			        = RSTicketsProHelper::getFooter();
        $this->allow_self_anonymisation =
RSTicketsProHelper::getConfig('allow_self_anonymisation')
&& !$user->authorise('core.admin');
        $this->anonymise_joomla_data    =
RSTicketsProHelper::getConfig('anonymise_joomla_data');
        $this->email                    = $user->email;

		$this->prepareDocument();

		parent::display($tpl);
	}

    protected function prepareDocument()
    {
        // Description
        if ($desc =
$this->params->get('menu-meta_description'))
        {
            $this->document->setDescription($desc);
        }
        // Keywords
        if ($keywords =
$this->params->get('menu-meta_keywords'))
        {
            $this->document->setMetadata('keywords',
$keywords);
        }
        // Robots
        if ($robots = $this->params->get('robots'))
        {
            $this->document->setMetadata('robots',
$robots);
        }
    }
}search/index.html000064400000000054151200755440010010
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>search/tmpl/default.php000064400000003210151200755440011121
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.keepalive');

if ($this->params->get('show_page_heading', 1))
{
	?>
	<h1><?php echo
$this->escape($this->params->get('page_heading',
$this->params->get('page_title'))); ?></h1>
	<?php
}

echo $this->globalMessage;
?>

<form id="rsticketspro_form" action="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=tickets'.$this->itemid);
?>" method="post" name="searchForm">
	<?php
	foreach ($this->form->getFieldsets() as $fieldset)
	{
		echo $this->form->renderFieldset($fieldset->name);
	}
	?>
	
	<div class="form-actions">
		<button type="submit" class="btn
btn-primary"><?php echo JText::_('RST_SEARCH');
?></button>
		<?php
		if (!$this->advanced)
		{
			?>
			<a class="btn btn-secondary" href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=search&advanced=true');
?>"><?php echo
JText::_('RST_OPEN_ADVANCED_SEARCH'); ?></a>
			<?php
		}
		?>
	</div>

	<?php
	if ($this->show_footer)
	{
		echo $this->footer;
	}

	if (!$this->advanced)
	{
		?>
		<input type="hidden" name="customer"
id="customer" value="" />
		<input type="hidden" name="staff"
id="staff" value="" />
		<input type="hidden" name="status_id"
id="status_id" value="" />
		<?php
	}
	?>
	<input type="hidden" name="option"
value="com_rsticketspro" />
	<input type="hidden" name="task"
value="search" />
</form>search/tmpl/default.xml000064400000001057151200755440011141
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="RST_SEARCH_DEFAULT_LAYOUT">
		<message>
			<![CDATA[RST_SEARCH_TICKETS_MENU_DESC]]>
		</message>
	</layout>
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field name="staff_itemid" type="text"
default="" label="RST_STAFF_ITEMID"
description="RST_STAFF_ITEMID_DESC"></field>
				<field name="customer_itemid" type="text"
default="" label="RST_CUSTOMER_ITEMID"
description="RST_CUSTOMER_ITEMID_DESC"></field>
			</fieldset>
		</fields>
	</config>
</metadata>
search/tmpl/index.html000064400000000054151200755440010764
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>search/view.html.php000064400000002743151200755440010450
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');


class RsticketsproViewSearch extends JViewLegacy
{
	public function display($tpl = null) {
		
		$this->globalMessage	=
JText::_(RSTicketsProHelper::getConfig('global_message'));
		$this->form				= $this->get('Form');
		$this->params			=
JFactory::getApplication()->getParams('com_rsticketspro');
		$this->advanced         = $this->get('Advanced');
		$this->show_footer		=
RSTicketsProHelper::getConfig('rsticketspro_link');
		$this->footer			= RSTicketsProHelper::getFooter();
		$this->is_staff			= RSTicketsProHelper::isStaff();
		$this->permissions		= RSTicketsProHelper::getCurrentPermissions();
		$this->itemid			= $this->get('itemid');
		
		$this->prepareDocument();

		parent::display($tpl);
	}

	protected function prepareDocument()
	{
		// Description
		if ($this->params->get('menu-meta_description'))
		{
			$this->document->setDescription($this->params->get('menu-meta_description'));
		}

		// Keywords
		if ($this->params->get('menu-meta_keywords'))
		{
			$this->document->setMetadata('keywords',
$this->params->get('menu-meta_keywords'));
		}

		// Robots
		if ($this->params->get('robots'))
		{
			$this->document->setMetadata('robots',
$this->params->get('robots'));
		}
	}
}signature/index.html000064400000000054151200755440010544
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>signature/tmpl/default.php000064400000002330151200755440011657
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.keepalive');

if ($this->params->get('show_page_heading', 1))
{
	?>
	<h1><?php echo
$this->escape($this->params->get('page_heading',
$this->params->get('page_title'))); ?></h1>
<?php
}

echo JText::_(RSTicketsProHelper::getConfig('global_message'));
?>

<form id="rsticketspro_form" action="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=signature');
?>" method="post" name="signatureForm">
	<?php
	foreach ($this->form->getFieldsets() as $fieldset)
	{
		echo $this->form->renderFieldset($fieldset->name);
	}
	?>
	
	<div class="form-actions">
		<button type="submit" class="btn
btn-primary"><?php echo JText::_('RST_UPDATE');
?></button>
	</div>

	<?php
	if ($this->show_footer)
	{
		echo $this->footer;
	}
	?>
	
	<?php echo JHtml::_('form.token'); ?>
	<input type="hidden" name="option"
value="com_rsticketspro" />
	<input type="hidden" name="task"
value="signature.save" />
</form>signature/tmpl/default.xml000064400000000300151200755440011663
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="RST_SIGNATURE_DEFAULT_LAYOUT">
		<message>
			<![CDATA[RST_SIGNATURE_MENU_DESC]]>
		</message>
	</layout>
</metadata>
signature/tmpl/index.html000064400000000054151200755440011520
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>signature/view.html.php000064400000004204151200755440011176
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewSignature extends JViewLegacy
{
	public function display($tpl = null)
	{
		$this->canAccess();
		
		$this->form			= $this->get('Form');
		$this->params		=
JFactory::getApplication()->getParams('com_rsticketspro');
		$this->show_footer	=
RSTicketsProHelper::getConfig('rsticketspro_link');
		$this->footer		= RSTicketsProHelper::getFooter();
		
		$this->prepareDocument();

		parent::display($tpl);
	}
	
	protected function prepareDocument()
	{
		// Description
		if ($this->params->get('menu-meta_description'))
		{
			$this->document->setDescription($this->params->get('menu-meta_description'));
		}

		// Keywords
		if ($this->params->get('menu-meta_keywords'))
		{
			$this->document->setMetadata('keywords',
$this->params->get('menu-meta_keywords'));
		}

		// Robots
		if ($this->params->get('robots'))
		{
			$this->document->setMetadata('robots',
$this->params->get('robots'));
		}
	}
	
	protected function canAccess()
	{
		$app	= JFactory::getApplication();
		$user	= JFactory::getUser();
		
		if ($user->get('guest'))
		{
			$app->redirect(JRoute::_('index.php?option=com_users&view=login&return='
. base64_encode((string) JUri::getInstance()), false));
		}
		
		if (!RSTicketsProHelper::isStaff())
		{
           
$app->enqueueMessage(JText::_('RST_CANNOT_CHANGE_SIGNATURE'),
'warning');
			$app->redirect(RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=tickets',
false));
		}
		
		if (!$this->get('isAssigned'))
		{
           
$app->enqueueMessage(JText::_('RST_CANNOT_CHANGE_SIGNATURE_MUST_BE_STAFF'),
'warning');
            $referer =
$app->input->server->get('HTTP_REFERER', '',
'raw');

			if (empty($referer))
			{
				$app->redirect(RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=tickets',
false));
			}
			else
			{
				$app->redirect($referer);
			}
		}
	}
}submit/index.html000064400000000054151200755440010046
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>submit/tmpl/default.php000064400000010064151200755440011164
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.keepalive');

JText::script('RST_MAX_UPLOAD_FILES_REACHED');
JText::script('RST_TICKET_ATTACHMENTS');
JText::script('RST_TICKET_ATTACHMENTS_REQUIRED');

$script = '';
foreach ($this->departments as $department)
{
	$upload = $department->upload ? 'true' : 'false';
	$uploadRequired = $department->upload_ticket_required ?
'true' : 'false';
	$uploadMessage = json_encode($department->upload_message);
	$uploadMessageMaxFiles =
json_encode($department->upload_message_max_files);
	$uploadMessageMaxSize =
json_encode($department->upload_message_max_size);

	$script .= "RSTicketsPro.departments[{$department->id}] = {
	id: {$department->id},
	priority: {$department->priority_id},
	uploads: {
		allowed: {$upload},
        required: {$uploadRequired},
		message: {$uploadMessage},
        message_max_files: {$uploadMessageMaxFiles},
        message_max_size: $uploadMessageMaxSize,
		max: {$department->upload_files}
	}
};";
}
$script .= "window.addEventListener('DOMContentLoaded',
function() { RSTicketsPro.changeDepartment() });";

JFactory::getDocument()->addScriptDeclaration($script);

if ($this->params->get('show_page_heading'))
{
	?>
	<h1><?php echo
$this->escape($this->params->get('page_heading'));
?></h1>
	<?php
}
?>
<div class="com-rsticketspro-submit-ticket<?php echo
$this->escape($this->params->get('pageclass_sfx'));
?>">
<?php
echo $this->globalMessage;
echo $this->submitMessage;
?>
<form action="<?php echo
JRoute::_('index.php?option=com_rsticketspro&view=submit');
?>" method="post" name="adminForm"
id="adminForm" enctype="multipart/form-data"
class="form-horizontal">
<?php
// only staff members with enough permissions
// can select existing users from the database
if ($this->canChangeSubmitType)
{
	echo
$this->form->getField('submit_type')->renderField();
	echo
$this->form->getField('customer_id')->renderField(array('class'
=> 'rst_customer_id_container'));
}
echo
$this->form->getField('email')->renderField(array('class'
=> 'rst_email_container'));
echo
$this->form->getField('name')->renderField(array('class'
=> 'rst_name_container'));

if (!$this->canChangeSubmitType &&
!$this->user->get('id') &&
RSTicketsProHelper::getConfig('allow_password_change'))
{
	echo
$this->form->getField('password')->renderField(array('class'
=> 'rst_password_container'));
}

// alternative email
if ($this->showAltEmail)
{
	echo
$this->form->getField('alternative_email')->renderField(array('class'
=> 'rst_alt_email_container'));
}

// department
echo
$this->form->getField('department_id')->renderField(array('class'
=> 'rst_department_id_container'));

// append the custom fields after the department
foreach ($this->customFields as $customField)
{
	echo $customField;
}

// subject
echo
$this->form->getField('subject')->renderField(array('class'
=> 'rst_subject_container'));

// message
echo
$this->form->getField('message')->renderField(array('class'
=> 'rst_message_container'));

// priority
echo
$this->form->getField('priority_id')->renderField(array('class'
=> 'rst_priority_id_container'));

// prepend the upload message
echo '<div
id="rst_files_message_container"></div>';

// files
echo
$this->form->getField('files')->renderField(array('class'
=> 'rst_files_container'));

// captcha
if ($this->hasCaptcha)
{
	echo
$this->form->getField('captcha')->renderField(array('class'
=> 'rst_captcha_container'));
}

if ($this->hasConsent)
{
	echo
$this->form->getField('consent')->renderField(array('class'
=> 'rst_consent_container'));
}
?>
	<div>
		<button type="button" class="btn btn-success"
onclick="Joomla.submitbutton('submit.save'); this.disabled =
true;"><?php echo JText::_('RST_SUBMIT');
?></button>
	</div>

	<?php echo JHtml::_('form.token'); ?>
	<input type="hidden" name="task" value=""
/>
</form>
</div>submit/tmpl/default.xml000064400000001273151200755440011177
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="RST_SUBMIT_TICKETS_LAYOUT">
		<message>
			<![CDATA[RST_SUBMIT_TICKETS_MENU_DESC]]>
		</message>
	</layout>
	<config>
		<fields name="params"
addfieldpath="/administrator/components/com_rsticketspro/models/fields">
			<fieldset name="basic">
				<field name="department_id" type="departments"
please="true" default="0"
label="RST_DEPARTMENT_ID"
description="RST_DEPARTMENT_ID_DESC" />
				<field name="message" type="textarea"
filter="raw" rows="12" cols="50"
default="" label="COM_RSTICKETSPRO_DEFAULT_MESSAGE"
description="COM_RSTICKETSPRO_DEFAULT_MESSAGE_DESC" />
			</fieldset>
		</fields>
	</config>
</metadata>
submit/tmpl/index.html000064400000000054151200755440011022
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>submit/view.html.php000064400000006435151200755440010510
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewSubmit extends JViewLegacy
{
	public function display($tpl = null)
	{
		$app = JFactory::getApplication();

		if (!$this->canView())
		{
			$app->enqueueMessage(JText::_('RST_CANNOT_SUBMIT_TICKET'),
'warning');
			$app->redirect(RSTicketsProHelper::route('index.php?option=com_users&view=login&return='
. base64_encode((string) JUri::getInstance()), false));
		}

		$this->globalMessage       =
JText::_(RSTicketsProHelper::getConfig('global_message'));
		$this->submitMessage       =
JText::_(RSTicketsProHelper::getConfig('submit_message'));
		$this->form                = $this->get('Form');
		$this->departments         = $this->get('Departments');
		$this->customFields        = $this->get('CustomFields');
		$this->user                = JFactory::getUser();
		$this->permissions         = $this->get('Permissions');
		$this->isStaff             = RSTicketsProHelper::isStaff();
		$this->canChangeSubmitType = $this->isStaff &&
$this->permissions &&
($this->permissions->add_ticket_customers ||
$this->permissions->add_ticket_staff);
		$this->hasCaptcha          = $this->get('HasCaptcha');
		$this->captchaType		   =
RSTicketsProHelper::getConfig('captcha_enabled');
		$this->hasConsent		   =
RSTicketsProHelper::getConfig('forms_consent');
		$this->showAltEmail        =
RSTicketsProHelper::getConfig('show_alternative_email');
		$this->params              = $app->getParams();

		$this->prepareDocument();

		parent::display($tpl);
	}

	protected function prepareDocument()
	{
		$app   = JFactory::getApplication();
		$menus = $app->getMenu();
		$title = null;

		// Because the application sets a default page title,
		// we need to get it from the menu item itself
		$menu = $menus->getActive();
		if ($menu)
		{
			$this->params->def('page_heading',
$this->params->get('page_title', $menu->title));
		}
		else
		{
			$this->params->def('page_heading',
JText::_('RST_ADD_NEW_TICKET'));
		}

		$title = $this->params->get('page_title', '');
		if (empty($title))
		{
			$title = $app->get('sitename');
		}
		elseif ($app->get('sitename_pagetitles', 0) == 1)
		{
			$title = JText::sprintf('JPAGETITLE',
$app->get('sitename'), $title);
		}
		elseif ($app->get('sitename_pagetitles', 0) == 2)
		{
			$title = JText::sprintf('JPAGETITLE', $title,
$app->get('sitename'));
		}
		$this->document->setTitle($title);

		if ($this->params->get('menu-meta_description'))
		{
			$this->document->setDescription($this->params->get('menu-meta_description'));
		}

		if ($this->params->get('menu-meta_keywords'))
		{
			$this->document->setMetadata('keywords',
$this->params->get('menu-meta_keywords'));
		}

		if ($this->params->get('robots'))
		{
			$this->document->setMetadata('robots',
$this->params->get('robots'));
		}
	}

	protected function canView()
	{
		$canAddTickets =
RSTicketsProHelper::getConfig('rsticketspro_add_tickets');
		$guest         = JFactory::getUser()->get('guest');

		if (!$canAddTickets && $guest)
		{
			return false;
		}

		return true;
	}
}ticket/index.html000064400000000054151200755440010026
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>ticket/metadata.xml000064400000000130151200755440010326
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<view hidden="true" />
</metadata>ticket/tmpl/default.php000064400000005436151200755440011153
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidator');

// Load JavaScript message titles
JText::script('ERROR');
JText::script('WARNING');
JText::script('NOTICE');
JText::script('MESSAGE');
JText::script('COM_RSTICKETSPRO_TIME_BUTTON_CONFIRM_START');

if ($this->globalMessage)
{
	?>
	<div class="<?php echo RsticketsproAdapterGrid::row();
?>" id="ticket-global-message">
		<?php echo $this->globalMessage; ?>
	</div>
	<?php
}
?>
<form action="<?php echo
JRoute::_('index.php?option=com_rsticketspro&view=ticket');
?>" method="post" name="adminForm"
id="adminForm" enctype="multipart/form-data"
autocomplete="off">
	<?php
	if ($this->ticketView == 'plain' || $this->isPrint)
	{
		?>
		<div class="<?php echo RsticketsproAdapterGrid::row();
?>">
			<div class="<?php echo RsticketsproAdapterGrid::column(7);
?>" id="ticket-left-column">
				<?php
				$this->plain->addTitle(JText::_('RST_MESSAGES'),
'messages');
				$this->plain->addContent($this->loadTemplate('messages'));
				$this->plain->render();

				$this->plain->remove(0);
				?>
			</div>
			<div class="<?php echo RsticketsproAdapterGrid::column(5);
?>" id="ticket-right-column">
				<?php
				foreach ($this->ticketSections as $layout => $title)
				{
					if ($layout == 'messages' || ($layout ==
'custom_fields' && empty($this->ticket->fields)))
					{
						continue;
					}

					// add the title
					$this->plain->addTitle($title, $layout);

					$content = $this->loadTemplate($layout);

					// add the content
					$this->plain->addContent($content);
				}

				// allow plugins to inject content here
				RSTicketsProHelper::trigger('onAfterTicketInformation',
array($this->ticket, $this->plain));

				// render the plain view
				$this->plain->render();
				?>
			</div>
		</div>
		<?php
	}
	else
	{
		foreach ($this->ticketSections as $layout => $title)
		{
			if (empty($this->ticket->fields) && $layout ==
'custom_fields')
			{
				continue;
			}

			$this->handler->addTitle($title, $layout);
			$this->handler->addContent($this->loadTemplate($layout));
		}

		RSTicketsProHelper::trigger('onAfterTicketInformation',
array($this->ticket, $this->handler));

		$this->handler->render();
	}

	echo JHtml::_('form.token');
	?>
	<input type="hidden" name="id" value="<?php
echo $this->ticket->id; ?>" />
	<input type="hidden" name="cid"
value="<?php echo $this->ticket->id; ?>" />
	<input type="hidden" name="task" value=""
/>
	<input type="hidden" name="option"
value="com_rsticketspro" />
</form>ticket/tmpl/default_custom_fields.php000064400000001245151200755440014065
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

foreach ($this->ticket->fields as $field)
{
	echo RSTicketsProHelper::showCustomField($field, array(),
!empty($this->permissions->update_ticket_custom_fields));
}

if (!empty($this->permissions->update_ticket_custom_fields))
{
	?>
	<p><button type="button"
onclick="Joomla.submitbutton('ticket.updatefields')"
class="btn btn-primary"><?php echo
JText::_('RST_UPDATE'); ?></button></p>
	<?php
}ticket/tmpl/default_history.php000064400000002554151200755440012732
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

if ($this->otherTickets)
{
	?>
	<table class="table table-striped">
		<thead>
		<tr>
			<th><?php echo JText::_('RST_TICKET_CODE'); ?>
<?php echo JText::_('RST_TICKET_SUBJECT'); ?></th>
			<th><?php echo JText::_('RST_TICKET_STATUS');
?></th>
			<th><?php echo JText::_('RST_TICKET_REPLIES');
?></th>
			<th><?php echo JText::_('RST_TICKET_DATE');
?></th>
		</tr>
		</thead>
		<tbody>
		<?php
		foreach ($this->otherTickets as $ticket)
		{
			?>
			<tr>
				<td><a href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&view=ticket&id='
. $ticket->id); ?>" title="<?php echo
$this->escape($ticket->subject); ?>">[<?php echo
$this->escape($ticket->code); ?>] <?php echo
$this->escape($ticket->subject); ?></a></td>
				<td><?php echo JText::_($ticket->status_name);
?></td>
				<td><?php echo
JText::sprintf('RST_TICKET_REPLIES_NUM', $ticket->replies);
?></td>
				<td><?php echo JHtml::_('date', $ticket->date,
$this->dateFormat); ?></td>
			</tr>
			<?php
		}
		?>
		</tbody>
	</table>
	<?php
}
else
{
	?>
	<p><?php echo JText::_('RST_NO_TICKET_HISTORY');
?></p>
	<?php
}ticket/tmpl/default_info.php000064400000002515151200755440012161
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

echo '<div class="form-horizontal">';

// subject
echo $this->form->getField('subject')->renderField();

// department
echo
$this->form->getField('department_id')->renderField();
echo '<input type="hidden"
name="hidden_department_id" value="' .
$this->escape(JText::_($this->ticket->department->name)) .
'">';

// date
echo $this->form->getField('date')->renderField();

// status
echo $this->form->getField('status_id')->renderField();

// code
echo $this->form->getField('code')->renderField();

// priority
echo
$this->form->getField('priority_id')->renderField();

// staff
echo $this->form->getField('staff_id')->renderField();

// customer
echo
$this->form->getField('customer_id')->renderField();

// alternative email
if ($this->showAltEmail)
{
	echo
$this->form->getField('alternative_email')->renderField();
}

if (!empty($this->permissions->update_ticket))
{
	?>
	<button type="button"
onclick="Joomla.submitbutton('ticket.updateinfo')"
class="btn btn-primary"><?php echo
JText::_('RST_UPDATE'); ?></button>
	<?php
}

echo
'</div>';ticket/tmpl/default_messages.php000064400000014210151200755440013030
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

if (!$this->isPrint)
{
	echo $this->loadTemplate('reply');
}
?>
	<h3 class="rst_heading"><?php echo
JText::_('RST_CONVERSATION'); ?></h3>
	<div class="row-fluid com-rsticketspro-has-top-margin"
id="ticket-buttons">
		<?php
		if (!$this->isPrint)
		{
			if ($this->canViewHistory)
			{
				echo
RSTicketsProHelper::renderModal('rsticketsproHistoryModal',
array(
					'title' =>
JText::_('RST_TICKET_VIEW_HISTORY'),
					'url' 	=>
JRoute::_('index.php?option=com_rsticketspro&view=history&id='.$this->ticket->id.'&tmpl=component',
false),
					'height' => 400,
					'backdrop' => 'static'));
				?>
				<a href="#" class="btn btn-secondary"
onclick="<?php echo
RSTicketsProHelper::openModal('rsticketsproHistoryModal');
?>"><i class="icon-calendar"></i> <?php
echo JText::_('RST_TICKET_VIEW_HISTORY'); ?></a>
				<?php
			}
			if ($this->canViewNotes)
			{
				echo
RSTicketsProHelper::renderModal('rsticketsproNotesModal', array(
					'title'    =>
JText::_('RST_TICKET_VIEW_NOTES'),
					'url' 	   =>
JRoute::_('index.php?option=com_rsticketspro&view=notes&ticket_id='.$this->ticket->id.'&tmpl=component',
false),
					'height'   => 400,
					'backdrop' => 'static'));
				?>
				<a href="#" class="btn btn-secondary"
onclick="<?php echo
RSTicketsProHelper::openModal('rsticketsproNotesModal');
?>"><i class="icon-file"></i> <?php
echo $this->ticket->notes ?
JText::sprintf('RST_TICKET_VIEW_NOTES_NO',
$this->ticket->notes) : JText::_('RST_TICKET_VIEW_NOTES');
?></a>
				<?php
			}
			?>
			<a href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&view=ticket&id='.$this->ticket->id.'&tmpl=component&print=1');
?>" class="btn btn-secondary"
onclick="window.open(this.href,'printWindow','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=400,height=600,directories=no,location=no');
return false;"><i class="icon-print"></i>
<?php echo JText::_('RST_TICKET_PRINT'); ?></a>
			<?php
			if ($this->ticket->status_id == RST_STATUS_CLOSED &&
$this->canOpenTicket)
			{
				?>
				<a href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=ticket.reopen&id='.$this->ticket->id);
?>" class="btn btn-success"><i
class="icon-ok"></i> <?php echo
JText::_('RST_TICKET_OPEN'); ?></a>
				<?php
			}
			elseif ($this->ticket->status_id != RST_STATUS_CLOSED &&
$this->canCloseTicket)
			{
				?>
				<a href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=ticket.close&id='.$this->ticket->id);
?>" class="btn btn-danger"><i
class="icon-lock"></i> <?php echo
JText::_('RST_TICKET_CLOSE'); ?></a>
				<?php
			}
		}
		else
		{
			?>
			<a href="javascript:void(0)"
onclick="window.print();" class="btn
btn-primary"><i class="icon-print"></i>
<?php echo JText::_('RST_TICKET_PRINT'); ?></a>
			<?php
		}
		?>
	</div>
<?php
foreach ($this->ticketMessages as $message)
{
	$user = $message->user_id != '-1' ?
JFactory::getUser($message->user_id) : null;
	$submitter = $message->submitted_by_staff != '0' ?
JFactory::getUser($message->submitted_by_staff) : null;
	?>
	<div class="media com-rsticketspro-message<?php echo
is_null($user) ? ' alert alert-info' :
(RSTicketsProHelper::isStaff($message->user_id) ? '
com-rsticketspro-msg-staff': '
com-rsticketspro-msg-customer'); ?>">
		<?php
		if (!is_null($user))
		{
			?>
			<span class="pull-left">
				<img class="img-polaroid media-object
com-rsticketspro-avatar" src="<?php echo
$this->getAvatar($message->user_id); ?>" />
			</span>
			<?php
		}
		?>
		<div class="media-body">
			<?php
			if (!is_null($user))
			{
				if ($this->showEmailLink)
				{
					$text = JHtml::_('link', 'mailto:' .
$this->escape($user->email),
$this->escape($user->{$this->userField}));
				}
				else
				{
					$text = $this->escape($user->{$this->userField});
				}

				?>
				<h4 class="media-heading"><?php echo $text;
?><?php echo $submitter ? ' ' .
JText::sprintf('RST_TICKET_SUBMITTED_BY', $submitter->name) :
''; ?></h4>
				<?php
			}
			?>
			<p><small><i class="icon-clock"></i>
<?php echo $this->showDate($message->date);
?></small></p>
			<blockquote class="com-rsticketspro-has-overflow">
				<?php echo RSTicketsProHelper::showMessage($message); ?>
			</blockquote>
			<?php
			if (!empty($message->files))
			{
				?>
				<ul>
					<?php
					foreach ($message->files as $file)
					{
						?>
						<li><i class="icon-file"></i> <a
href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=ticket.downloadfile&id='.$file->id);
?>"><?php echo
JText::sprintf('RST_TICKET_FILE_DOWNLOADS_SMALL',
$this->escape($file->filename), $file->downloads);
?></a></li>
						<?php
					}
					?>
				</ul>
				<?php
			}
			if (!$this->isPrint && !is_null($user))
			{
				?>
				<div>
					<?php
					if ($this->canEditMessage($message))
					{
						echo
RSTicketsProHelper::renderModal('rsticketsproMessageModal' .
$message->id, array(
							'title'    =>
JText::_('RST_TICKET_EDIT_MESSAGE'),
							'url' 	   =>
JRoute::_('index.php?option=com_rsticketspro&task=ticketmessage.edit&id='.$message->id.'&tmpl=component',
false),
							'height'   => 400,
							'backdrop' => 'static'));
						?>
						<a class="btn btn-secondary" onclick="<?php echo
RSTicketsProHelper::openModal('rsticketsproMessageModal' .
$message->id); ?>" href="#"><i
class="icon-edit"></i> <?php echo
JText::_('RST_TICKET_EDIT_MESSAGE'); ?></a>
						<?php
					}
					if ($this->canDeleteMessage($message))
					{
						?>
						<a class="btn btn-danger" onclick="return
confirm(Joomla.JText._('RST_DELETE_TICKET_MESSAGE_CONFIRM'));"
href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=ticketmessages.delete&cid='.$message->id
. '&ticket_id=' . $message->ticket_id . '&'
. JSession::getFormToken() . '=1'); ?>"><i
class="icon-delete"></i> <?php echo
JText::_('RST_TICKET_DELETE_MESSAGE'); ?></a>
						<?php
					}
					?>
				</div>
				<?php
			}
			?>
		</div>
	</div>
	<?php
}
ticket/tmpl/default_reply.php000064400000006611151200755440012362
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JText::script('RST_TICKET_FEEDBACK_SENT');

$showReply = $this->form->getValue('message');

if ($this->ticket->status_id == RST_STATUS_CLOSED)
{
	?>
	<p><strong><?php echo
JText::_('RST_TICKET_REPLIES_CLOSED');
?></strong></p>
	<?php
	if ($this->allowVoting && (($this->isStaff &&
$this->ticket->feedback) || !$this->isStaff))
	{
		$ratyParams = array(
			'path' => str_replace('star-on.png',
'', JHtml::_('image',
'com_rsticketspro/raty/star-on.png', '', array(), true,
1)),
			'score' => $this->ticket->feedback ?
$this->ticket->feedback : null,
			'readOnly' => $this->isStaff ||
$this->ticket->feedback,
			'hints' => array(
				JText::_('RST_FEEDBACK_1'),
				JText::_('RST_FEEDBACK_2'),
				JText::_('RST_FEEDBACK_3'),
				JText::_('RST_FEEDBACK_4'),
				JText::_('RST_FEEDBACK_5')
			)
		);

		$script = 'RSTicketsPro.initRaty(' . json_encode($ratyParams) .
')';

		JFactory::getDocument()->addScriptDeclaration($script);
		?>
		<p id="com-rsticketspro-rated-message"><?php echo
JText::_($this->ticket->feedback ? ($this->isStaff ?
'RST_TICKET_FEEDBACK_SENT_STAFF' :
'RST_TICKET_FEEDBACK_SENT') : 'RST_TICKET_FEEDBACK');
?></p>
		<div id="star"></div>
		<?php
	}
}
else
{
	if ($this->canReply)
	{
		if (!$showReply)
		{
			?>
			<p><button type="button" class="btn btn-primary
btn-large" id="com-rsticketspro-reply-button"
onclick="RSTicketsPro.showReply(this);"><?php echo
JText::_('RST_TICKET_REPLY'); ?></button></p>
			<?php
		}
		?>
		<div id="com-rsticketspro-reply-box" <?php if
(!$showReply) { ?>class="hidden"<?php } ?>>
			<h3 class="rst_heading"><?php echo
JText::_('RST_REPLY_TO_TICKET'); ?></h3>
			<?php
			if ($this->isStaff &&
RSTicketsProHelper::getConfig('show_reply_as_customer'))
			{
				echo
$this->form->getField('reply_as_customer')->renderField();
			}

			if ($this->isStaff && $this->showSearch)
			{
				echo
$this->form->getField('search')->renderField();
			}

			echo
$this->form->getField('message')->renderField();

			if ($this->isStaff && $this->showSignature)
			{
				echo
$this->form->getField('use_signature')->renderField();

				echo '<p><small><a
href="'.JRoute::_('index.php?option=com_rsticketspro&view=signature').'">'.JText::_('RST_EDIT_SIGNATURE').'</a></small></p>';
			}

			if ($this->canUpload)
			{
				$script = "RSTicketsPro.getDepartment = function() { return { id:
{$this->ticket->department_id}, uploads: { max:
{$this->department->upload_files} } }; }";
				JFactory::getDocument()->addScriptDeclaration($script);

				// prepend the upload message
				echo '<div id="rst_files_message_container">'
. $this->department->upload_message . ' ' .
$this->department->upload_message_max_files . ' ' .
$this->department->upload_message_max_size .
'</div>';
				echo
$this->form->getField('files')->renderField(array('class'
=> 'rst_files_container'));
			}

			if ($this->hasConsent)
			{
				echo
$this->form->getField('consent')->renderField();
			}
			?>
			<p><button type="button"
onclick="Joomla.submitbutton('ticket.reply')"
class="btn btn-primary"><?php echo
JText::_('RST_TICKET_SUBMIT'); ?></button></p>

			<hr />
		</div>
		<?php
	}
}ticket/tmpl/default_submitter.php000064400000002477151200755440013253
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access'); ?>
<div>
	<p><span title="<?php echo
RSTicketsProHelper::tooltipText(JText::_('RST_TICKET_USER_AGENT'));
?>" class="<?php echo
RSTicketsProHelper::tooltipClass();?>"><i
class="icon-cogs icon-rscogs"></i> <?php echo
$this->escape($this->ticket->agent); ?></span></p>
	<p><span title="<?php echo
RSTicketsProHelper::tooltipText(JText::_('RST_TICKET_REFERER'));
?>" class="<?php echo
RSTicketsProHelper::tooltipClass();?>"><i
class="icon-refresh icon-rsrefresh"></i> <?php echo
$this->escape($this->ticket->referer);
?></span></p>
	<p><span title="<?php echo
RSTicketsProHelper::tooltipText(JText::_('RST_TICKET_IP'));
?>" class="<?php echo
RSTicketsProHelper::tooltipClass();?>"><i
class="icon-broadcast icon-rsbroadcast"></i> <?php
echo $this->escape($this->ticket->ip);
?></span></p>
	<p><span title="<?php echo
RSTicketsProHelper::tooltipText(JText::_('RST_TICKET_LOGGED'));
?>" class="<?php echo
RSTicketsProHelper::tooltipClass();?>"><i
class="icon-user icon-rsuser"></i> <?php echo
$this->ticket->logged ? JText::_('JYES') :
JText::_('JNO'); ?></span></p>
</div>ticket/tmpl/default_time.php000064400000011306151200755440012162
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JText::script('COM_RSTICKETSPRO_ARE_YOU_SURE_YOU_WANT_TO_CLEAR_TIME_TRACKING');
JText::script('COM_RSTICKETSPRO_ARE_YOU_SURE_YOU_WANT_TO_DELETE_TIME_TRACKING_RECORD');

if ($this->timeSpentTracking)
{
	if ($this->useTimeCounter)
	{
		?>
		<div class="<?php echo RsticketsproAdapterGrid::row();
?>" id="rst-timer">
			<div class="<?php echo RsticketsproAdapterGrid::column(12);
?>">
				<?php
				if ($this->ticketTimeState)
				{
					?>
					<div id="timer">
						<div class="clock-wrapper">
							<span class="hours">00</span>
							<span class="dots">:</span>
							<span class="minutes">00</span>
							<span class="dots">:</span>
							<span class="seconds">00</span>
						</div>
					</div>
					<?php
				}
				?>
			</div>
		</div>
		<?php
	}

	if ($this->useTimeCounter || (!empty($this->ticketIntervals)
&& $this->canDeleteTimeHistory))
	{
		?>
		<p>
			<?php
			if ($this->useTimeCounter)
			{
				?>
				<a href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=ticket.toggleTime&id='.$this->ticket->id.'&tstate='.($this->ticketTimeState
== 1 ? 0 : 1)); ?>"<?php echo ($this->ticketTimeState == 0 ?
' onclick="return
confirm(Joomla.JText._(\'COM_RSTICKETSPRO_TIME_BUTTON_CONFIRM_START\'));"'
: '');?> class="btn btn-<?php echo
($this->ticketTimeState ? 'danger' :
'success');?>"><?php echo
JText::_('COM_RSTICKETSPRO_TIME_BUTTON'.($this->ticketTimeState
? '_STOP' : '_START'));?></a>
				<?php
			}

			if (!empty($this->ticketIntervals) &&
$this->canDeleteTimeHistory)
			{
				?>
				<a href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=ticket.clearTimeTracking&id='.$this->ticket->id);
?>" class="btn btn-danger" onclick="return
confirm(Joomla.JText._('COM_RSTICKETSPRO_ARE_YOU_SURE_YOU_WANT_TO_CLEAR_TIME_TRACKING'));"><?php
echo
JText::_('COM_RSTICKETSPRO_TIME_TRACKING_HISTORY_CLEAR');?></a>
				<?php
			}
			?>
		</p>
		<?php
	}

	if (!empty($this->ticketIntervals))
	{
		?>
		<table class="table table-bordered table-condensed
table-hover">
			<thead>
			<tr>
				<th><?php echo
JText::_('COM_RSTICKETSPRO_TIME_TRACKING_HISTORY_START');?></th>
				<th><?php echo
JText::_('COM_RSTICKETSPRO_TIME_TRACKING_HISTORY_END');?></th>
				<th><?php echo
JText::_('COM_RSTICKETSPRO_TIME_TRACKING_HISTORY_DURATION');?></th>
				<th><?php echo
JText::_('COM_RSTICKETSPRO_TIME_TRACKING_HISTORY_STAFF_MEMBER');?></th>
				<th>&nbsp;</th>
			</tr>
			</thead>
			<tbody>
			<?php
			$total = 0;
			foreach ($this->ticketIntervals as $interval)
			{
				$is_running = $interval->end == '0000-00-00 00:00:00';
				$total += $interval->duration;
				?>
				<tr class="<?php echo ($is_running ? 'error' :
'success');?>">
					<td>
						<?php echo $this->showDate($interval->start);?>
					</td>
					<td>
						<?php echo ($is_running ?
JText::_('COM_RSTICKETSPRO_TIME_TRACKING_HISTORY_TRACKING') :
$this->showDate($interval->end));?>
					</td>
					<td>
						<?php echo $this->showTotal($interval->duration);?>
					</td>
					<td>
						<?php echo !empty($interval->staff_member) ?
$interval->staff_member : ''; ?>
					</td>
					<td class="center">
						<?php
						if ($interval->can_delete && !$is_running)
						{
							?>
							<a href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=ticket.clearTimeTrackingEntry&ticket_id='.$this->ticket->id.'&entry='.$interval->id);
?>" onclick="return
confirm(Joomla.JText._('COM_RSTICKETSPRO_ARE_YOU_SURE_YOU_WANT_TO_DELETE_TIME_TRACKING_RECORD'));"
class="btn btn-small btn-danger" ><?php echo
JText::_('COM_RSTICKETSPRO_TIME_TRACKING_HISTORY_RECORD_DELETE');
?></a>
							<?php
						}
						?>
					</td>
				</tr>
				<?php
			}
			?>
			</tbody>
			<tfoot>
			<tr>
				<td colspan="2"><?php echo
JText::_('COM_RSTICKETSPRO_TIME_TRACKING_TOTAL');
?></td>
				<td colspan="3"><?php echo
$this->showTotal($total); ?></td>
			</tr>
			</tfoot>
		</table>
		<?php
	}
	else
	{
		?>
		<div class="alert alert-warning"><?php echo
JText::_('COM_RSTICKETSPRO_TIME_TRACKING_NO_HISTORY_ENTRIES');
?></div>
		<?php
	}
}

if ($this->timeSpentInput)
{
	$this->form->setFieldAttribute('time_spent',
'description',
JText::_('RST_TIME_UNIT_'.RSTicketsProHelper::getConfig('time_spent_unit')));
	echo
$this->form->getField('time_spent')->renderField();
	?>
	<button type="button"
onclick="Joomla.submitbutton('ticket.savetimespent')"
class="btn btn-primary"><?php echo
JText::_('RST_UPDATE'); ?></button>
	<?php
}ticket/tmpl/index.html000064400000000054151200755450011003
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>ticket/view.html.php000064400000000555151200755450010466
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

require_once
JPATH_ADMINISTRATOR.'/components/com_rsticketspro/views/ticket/view.html.php';ticketmessage/index.html000064400000000054151200755450011374
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>ticketmessage/metadata.xml000064400000000130151200755450011674
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<view hidden="true" />
</metadata>ticketmessage/tmpl/default.php000064400000002154151200755450012513
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidator');

// Load JavaScript message titles
JText::script('ERROR');
JText::script('WARNING');
JText::script('NOTICE');
JText::script('MESSAGE');
?>
<form action="<?php echo
JRoute::_('index.php?option=com_rsticketspro&view=ticketmessage&tmpl=component&layout=edit&id='
. (int) $this->item->id); ?>" method="post"
name="adminForm" id="adminForm"
class="form-validate form-vertical">
	<button type="button" class="btn btn-success"
onclick="Joomla.submitbutton('ticketmessage.apply');"><i
class="icon-apply icon-white"></i> <?php echo
JText::_('JAPPLY'); ?></button>
	<?php
	foreach ($this->form->getFieldsets() as $fieldset)
	{
		echo $this->form->renderFieldset($fieldset->name);
	}
	?>

	<?php echo JHtml::_('form.token'); ?>
	<input type="hidden" name="task" value=""
/>
</form>ticketmessage/tmpl/index.html000064400000000054151200755450012350
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>ticketmessage/view.html.php000064400000000564151200755450012033
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

require_once
JPATH_ADMINISTRATOR.'/components/com_rsticketspro/views/ticketmessage/view.html.php';tickets/index.html000064400000000054151200755450010212
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>tickets/tmpl/default.php000064400000031212151200755450011326
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

JHtml::_('behavior.keepalive');

if ($this->isStaff)
{
	JHtml::_('script', 'com_rsticketspro/tickets.js',
array('relative' => true, 'version' =>
'auto'));
}

JText::script('RST_DELETE_TICKETS_CONFIRM');
JText::script('RST_DELETE_TICKET_CONFIRM');

$listOrder 	=
$this->escape($this->state->get('list.ordering'));
$listDirn 	=
$this->escape($this->state->get('list.direction'));

$script = array();
$script[] = 'Joomla.submitbutton = function(task) {';

if (!empty($this->permissions->delete_ticket))
{
	$script[] = "if
(document.getElementById('bulk_delete').value == '1'
&&
!confirm(Joomla.JText._('RST_DELETE_TICKETS_CONFIRM'))) {";
	$script[] = 'return false;';
	$script[] = '}';
}

if (!empty($this->permissions->export_tickets))
{
	$script[] = "RSTicketsPro.exportCSV.totalItems =
{$this->totalItems};";
	$script[] = "if (task === 'tickets.exportcsv') {";
	$script[] = "RSTicketsPro.exportCSV.setCSV(0, '');";
	$script[] = "return false;";
	$script[] = "}";

	JHtml::_('script', 'com_rsticketspro/export.js',
array('relative' => true, 'version' =>
'auto'));
}

$script[] = "Joomla.submitform(task,
document.getElementById('adminForm'));";
$script[] = "}";

JFactory::getDocument()->addScriptDeclaration(implode("\n",
$script));

if ($this->params->get('show_page_heading', 1))
{
	?><h1><?php echo
$this->escape($this->params->get('page_heading',
$this->params->get('page_title'))); ?></h1>
<?php
}

echo $this->globalMessage;

if ($this->isSearching || ($this->isStaff &&
$this->hasSearches))
{
	?>
	<div class="well well-small">
		<p>
			<?php
			if ($this->isSearching)
			{
				if ($this->isStaff)
				{
					?>
					<a href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=predefinedsearch.add');
?>" class="btn btn-success rst_search"><?php echo
JText::_('RST_SAVE_SEARCH'); ?></a>
					<?php
				}
				?>
				<a href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=resetsearch');
?>" class="btn btn-danger"><?php echo
JText::_('RST_RESET_SEARCH'); ?></a>
				<?php
			}
			if ($this->isStaff && $this->hasSearches)
			{
				?>
				<a href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&view=predefinedsearches');
?>" class="btn btn-secondary
rst_manage_searches"><?php echo
JText::_('RST_MANAGE_SEARCHES'); ?></a>
				|
				<?php
				foreach ($this->searches as $search)
				{
					if (!$search->current)
					{
						?>
						<a href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=predefinedsearch.perform&id='.$search->id);
?>" class="btn btn-secondary btn-mini btn-sm <?php echo
RSTicketsProHelper::tooltipClass();?>" title="<?php echo
RSTicketsProHelper::tooltipText(JText::sprintf('RST_SEARCH_CLICK_DESC',
$this->escape($search->name))); ?>"><?php echo
$this->escape($search->name); ?></a>
						<?php
					}
					else
					{
						echo $this->escape($search->name);
					}
				}
			}
			?>
		</p>
	</div>
	<?php
}
?>
<div class="clearfix"></div>

<form action="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=tickets');
?>" method="post" name="adminForm"
id="adminForm">
	<?php if ($this->isStaff &&
!empty($this->permissions->export_tickets)) { ?>
		<div class="com-rsticketspro-progress"
id="com-rsticketspro-export-progress"
style="display:none">
			<div class="com-rsticketspro-bar" style="width:
0%;">0%</div>
		</div>
		<p>
			<button type="button" class="btn btn-success"
onclick="Joomla.submitbutton('tickets.exportcsv');"><?php
echo JText::_('COM_RSTICKETSPRO_EXPORT');?></button>
		</p>
	<?php } ?>
<?php if ($this->isStaff) { ?>
	<div id="bulk_actions" style="display: none;">
		<p><strong><?php echo
JText::_('RST_BULK_ACTIONS'); ?></strong></p>
		<?php
		if ($this->permissions->move_ticket)
		{
			echo '<div>' .
$this->bulkForm->getField('bulk_department_id')->input .
'</div>';
		}
		if ($this->permissions->assign_tickets)
		{
			echo '<div>' .
$this->bulkForm->getField('bulk_staff_id')->input .
'</div>';
		}
		if ($this->permissions->update_ticket)
		{
			echo '<div>' .
$this->bulkForm->getField('bulk_priority_id')->input .
'</div>';
		}
		if ($this->permissions->change_ticket_status)
		{
			echo '<div>' .
$this->bulkForm->getField('bulk_status_id')->input .
'</div>';
		}
		if ($this->autocloseEnabled)
		{
			echo '<div>' .
$this->bulkForm->getField('bulk_notify')->input .
'</div>';
		}
		if ($this->permissions->delete_ticket)
		{
			echo '<div>' .
$this->bulkForm->getField('bulk_delete')->input .
'</div>';
		}
		?>

		<p>
			<button type="button" id="rst_update_button"
class="btn btn-primary"
onclick="Joomla.submitbutton('ticket.bulkupdate');"><?php
echo JText::_('RST_UPDATE'); ?></button>
		</p>
	</div>
<?php } ?>

<table class="adminlist table table-striped table-condensed
table-hover">
<?php
if ($this->params->get('show_headings', 1))
{
	?>
	<thead>
		<tr>
		<?php
		if ($this->params->get('show_offset', 1))
		{
			?>
			<th id="rst_head_item_no" width="1%"
class="hidden-phone hidden-tablet"><?php echo
JText::_('#'); ?></th>
			<?php
		}
		
		if ($this->isStaff)
		{
			?>
			<th id="rst_head_check_all" class="center"
width="1%">
				<?php echo JHtml::_('grid.checkall'); ?>
			</th>
			<?php
		}
			
		if ($this->params->get('show_date', 1))
		{
			?>
			<th id="rst_head_date" nowrap="nowrap"
class="center hidden-phone">
				<?php echo JHtml::_('grid.sort',
'RST_TICKET_DATE', 'date', $listDirn, $listOrder,
'none'); ?>
			</th>
			<?php
		}
		
		if ($this->params->get('show_last_reply', 1))
		{
			?>
			<th id="rst_head_last_reply" nowrap="nowrap"
class="center hidden-phone hidden-tablet">
				<?php echo JHtml::_('grid.sort',
'RST_TICKET_LAST_REPLY', 'last_reply', $listDirn,
$listOrder, 'none'); ?>
			</th>
			<?php
		}
			
		if ($this->isStaff)
		{
			?>
			<th id="rst_head_flag" nowrap="nowrap"
width="1%" class="center hidden-phone
hidden-tablet">
				<?php echo JText::_('RST_FLAGGED'); ?>
			</th>
			<?php
			if ($this->permissions->delete_ticket)
			{
				?>
				<th id="rst_head_delete" nowrap="nowrap"
class="center" width="5%">
					<?php echo JText::_('RST_DELETE'); ?>
				</th>
			<?php
			}
		}
		?>
			<th id="rst_head_ticket_code" nowrap="nowrap"
class="center">
			<?php
			if ($this->params->get('show_code', 1))
			{
				echo JHtml::_('grid.sort', 'RST_TICKET_CODE',
'code', $listDirn, $listOrder, 'none');
			}

			echo JHtml::_('grid.sort', 'RST_TICKET_SUBJECT',
'subject', $listDirn, $listOrder, 'none');
			?>
			</th>
			
			<?php
			if ($this->params->get('show_customer', 1))
			{
				?>
				<th id="rst_head_customer" nowrap="nowrap"
class="center">
					<?php echo JHtml::_('grid.sort',
'RST_TICKET_CUSTOMER', 'customer', $listDirn,
$listOrder, 'none'); ?>
				</th>
				<?php
			}

			if ($this->params->get('show_priority', 1))
			{
				?>
				<th id="rst_head_priority" nowrap="nowrap"
width="1%" class="center hidden-phone">
					<?php echo JHtml::_('grid.sort',
'RST_TICKET_PRIORITY', 'priority', $listDirn,
$listOrder, 'none'); ?>
				</th>
				<?php
			}
			
			if ($this->params->get('show_status', 1))
			{
				?>
				<th id="rst_head_status" nowrap="nowrap"
width="1%" class="center hidden-phone">
					<?php echo JHtml::_('grid.sort',
'RST_TICKET_STATUS', 'status', $listDirn, $listOrder,
'none'); ?>
				</th>
				<?php
			}
			
			if ($this->params->get('show_staff', 1))
			{
				?>
				<th id="rst_head_sort" nowrap="nowrap"
class="center hidden-phone hidden-tablet">
					<?php echo JHtml::_('grid.sort',
'RST_TICKET_STAFF', 'staff', $listDirn, $listOrder,
'none'); ?>
				</th>
				<?php
			}

			if ($this->params->get('show_time_spent', 0) &&
RSTicketsProHelper::getConfig('enable_time_spent'))
			{
				?>
				<th id="rst_head_sort" nowrap="nowrap"
class="center hidden-phone hidden-tablet">
					<?php echo JHtml::_('grid.sort',
'RST_TIME_SPENT', 'time_spent', $listDirn, $listOrder,
'none'); ?>
				</th>
				<?php
			}
			?>
		</tr>
	</thead>
	<?php
}
?>
	<tbody>
		<?php
		foreach ($this->items as $i => $item)
		{
			?>
			<tr class="rst_priority_color_<?php echo
$item->priority_id; ?>">
				<?php if ($this->params->get('show_offset', 1)) {
?>
				<td width="1%" class="rst_cell_item_no center
hidden-phone hidden-tablet"><?php echo
$this->pagination->getRowOffset($i); ?></td>
				<?php } ?>

				<?php if ($this->isStaff) { ?>
				<td class="rst_cell_checkbox center"><?php echo
JHtml::_('grid.id', $i, $item->id); ?></td>
				<?php } ?>

				<?php if ($this->params->get('show_date', 1)) {
?>
				<td class="rst_cell_date center hidden-phone"><?php
echo $this->escape($this->showDate($item->date));
?></td>
				<?php } ?>

				<?php if ($this->params->get('show_last_reply', 1))
{ ?>
				<td class="rst_cell_last_reply center hidden-phone
hidden-tablet"><?php echo
$this->escape($this->showDate($item->last_reply));
?></td>
				<?php } ?>

				<?php if ($this->isStaff) { ?>
				<td class="rst_cell_flag center hidden-phone
hidden-tablet"><button type="button" class="btn
btn-small btn-sm <?php echo $item->flagged ? 'rst_flagged'
: 'rst_not_flagged'; ?>"
onclick="RSTicketsPro.flagTicket('index.php', this,
'<?php echo $item->id; ?>');"><i
class="rsticketsproicon-star"></i></button></td>

				<?php if ($this->permissions->delete_ticket) { ?>
				<td class="rst_cell_delete_ticket center">
					<a class="btn btn-small btn-sm btn-danger
rst_button_delete_ticket <?php echo
RSTicketsProHelper::tooltipClass();?>" title="<?php echo
RSTicketsProHelper::tooltipText(JText::_('RST_TICKET_DELETE_DESC'));
?>" href="<?php echo
JRoute::_('index.php?option=com_rsticketspro&task=ticket.delete&cid='
. $item->id); ?>" onclick="return
confirm(Joomla.JText._('RST_DELETE_TICKET_CONFIRM'));">&#10006;</a>
				</td>
				<?php } ?>

				<?php } ?>

				<td class="rst_cell_subject">
					<?php if ($item->has_files) { ?>
						<i class="rsticketsproicon-attach"></i>
					<?php } ?>
					<?php if ($this->params->get('show_code', 1)) {
?>
					<a href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=ticket&id='.$item->id.':'.JFilterOutput::stringURLSafe($item->subject));
?>"><?php echo $item->code; ?></a>
					<?php if ($this->params->get('show_replies', 1)) {
?>
						(<?php echo $item->replies; ?>)
					<?php } ?>
					<br />
					<?php } ?>
					<a href="<?php echo
RSTicketsProHelper::route('index.php?option=com_rsticketspro&view=ticket&id='.$item->id.':'.JFilterOutput::stringURLSafe($item->subject));
?>"><?php echo $this->escape($item->subject);
?></a>
					<?php if (!$this->params->get('show_code', 1)
&& $this->params->get('show_replies', 1)) { ?>
					(<?php echo $item->replies; ?>)
					<?php } ?>
					<?php echo $this->notify($item); ?>
				</td>

				<?php if ($this->params->get('show_customer', 1)) {
?>
				<td class="rst_cell_customer center"><?php echo
$this->escape($item->customer); ?></td>
				<?php } ?>

				<?php if ($this->params->get('show_priority', 1)) {
?>
				<td class="center rst_priority_cell
hidden-phone"><?php echo JText::_($item->priority);
?></td>
				<?php } ?>

				<?php if ($this->params->get('show_status', 1)) {
?>
				<td class="rst_cell_status center
hidden-phone"><?php echo JText::_($item->status);
?></td>
				<?php } ?>

				<?php if ($this->params->get('show_staff', 1)) {
?>
				<td class="rst_cell_assigned center hidden-phone
hidden-tablet"><?php echo $item->staff_id ?
$this->escape($item->staff) :
'<em>'.JText::_('RST_UNASSIGNED').'</em>';
?></td>
				<?php } ?>

				<?php if ($this->params->get('show_time_spent', 0)
&& RSTicketsProHelper::getConfig('enable_time_spent')) {
?>
				<td class="center hidden-phone hidden-tablet"><?php
echo $this->showTotal($item->time_spent); ?></td>
				<?php } ?>
			</tr>
		<?php
		}
		?>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="11" class="center">
				<div class="pagination"><?php echo
$this->pagination->getPagesLinks(); ?></div>
				<?php echo $this->pagination->getPagesCounter(); ?>
			</td>
		</tr>
	</tfoot>
</table>

<?php
if ($this->showFooter)
{
	echo $this->footer;
}
?>

<input type="hidden" name="boxchecked"
value="0" />
<input type="hidden" name="filter_order"
value="<?php echo $this->escape($listOrder); ?>" />
<input type="hidden" name="filter_order_Dir"
value="<?php echo $this->escape($listDirn); ?>" />
<input type="hidden" name="limitstart"
value="<?php echo $this->escape($this->limitstart);
?>" />
<input type="hidden" name="task" value=""
/>
</form>tickets/tmpl/default.xml000064400000011445151200755450011345
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="RST_TICKETS_DEFAULT_LAYOUT">
		<message>
			<![CDATA[RST_TICKETS_MENU_DESC]]>
		</message>
	</layout>
	
	<config>
		<fields name="params">
			<fieldset name="basic"
addfieldpath="/administrator/components/com_rsticketspro/models/fields">
				<field name="show_filter" type="list"
default="" label="RST_FILTER"
description="RST_FILTER">
					<option value="">RST_NO_FILTER</option>
					<option
value="show_unassigned">RST_FILTER_UNASSIGNED</option>
					<option
value="show_submitted">RST_FILTER_SUBMITTED</option>
					<option
value="show_assigned">RST_FILTER_ASSIGNED</option>
					<option
value="show_both">RST_FILTER_BOTH</option>
				</field>
				
				<field name="default_priority" type="priorities"
default="" multiple="multiple"
label="RST_PRIORITY" description="RST_PRIORITY" />
				<field name="default_status" type="statuses"
default="" multiple="multiple"
label="RST_STATUS" description="RST_STATUS" />
				
				<field name="@spacer" type="spacer"
default="" label="" description="" />
				<field name="show_headings" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_TABLE_HEADINGS"
description="RST_TABLE_HEADINGS_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="orderby" type="list"
default="" label="RST_ORDER"
description="RST_ORDER_DESC">
					<option value="date">RST_TICKET_DATE</option>
					<option
value="last_reply">RST_TICKET_LAST_REPLY</option>
					<option
value="flagged">RST_TICKET_FLAGGED</option>
					<option value="code">RST_TICKET_CODE</option>
					<option
value="subject">RST_TICKET_SUBJECT</option>
					<option
value="customer">RST_TICKET_CUSTOMER</option>
					<option
value="priority">RST_TICKET_PRIORITY</option>
					<option
value="status">RST_TICKET_STATUS</option>
					<option value="staff">RST_TICKET_STAFF</option>
					<option
value="time_spent">RST_TIME_SPENT</option>
				</field>
				<field name="direction" type="list"
default="desc" label="RST_DIRECTION"
description="RST_DIRECTION_DESC">
					<option value="asc">RST_ASC</option>
					<option value="desc">RST_DESC</option>
				</field>
			</fieldset>
			<fieldset name="advanced">
				<field name="show_offset" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_TICKET_OFFSET"
description="RST_SHOW_HIDE_COLUMN_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_date" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_TICKET_DATE"
description="RST_SHOW_HIDE_COLUMN_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_last_reply" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_TICKET_LAST_REPLY"
description="RST_SHOW_HIDE_COLUMN_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_code" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_TICKET_CODE"
description="RST_SHOW_HIDE_COLUMN_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_replies" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_TICKET_REPLIES"
description="RST_SHOW_HIDE_COLUMN_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_customer" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_TICKET_CUSTOMER"
description="RST_SHOW_HIDE_COLUMN_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_priority" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_TICKET_PRIORITY"
description="RST_SHOW_HIDE_COLUMN_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_status" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_TICKET_STATUS"
description="RST_SHOW_HIDE_COLUMN_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_staff" type="radio"
class="btn-group btn-group-yesno" default="1"
label="RST_TICKET_STAFF"
description="RST_SHOW_HIDE_COLUMN_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
				<field name="show_time_spent" type="radio"
class="btn-group btn-group-yesno" default="0"
label="RST_TIME_SPENT"
description="RST_SHOW_HIDE_COLUMN_DESC">
					<option value="1">RST_SHOW</option>
					<option value="0">RST_HIDE</option>
				</field>
			</fieldset>
		</fields>
	</config>
	
</metadata>tickets/tmpl/index.html000064400000000054151200755450011166
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>tickets/view.html.php000064400000006757151200755450010663
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

class RsticketsproViewTickets extends JViewLegacy
{
	public function display($tpl = null)
	{
		$this->canAccess();

		$this->bulkForm         = $this->get('BulkForm');
		$this->params           =
JFactory::getApplication()->getParams('com_rsticketspro');
		$this->globalMessage    =
JText::_(RSTicketsProHelper::getConfig('global_message'));
		$this->dateFormat 	    =
RSTicketsProHelper::getConfig('date_format');
		$this->autocloseEnabled =
RSTicketsProHelper::getConfig('autoclose_enabled');
		$this->permissions 	    = $this->get('permissions');
		$this->isStaff		    = RSTicketsProHelper::isStaff();
		$this->items 		    = $this->get('Items');
		$this->limitstart	    = $this->get('start');
		$this->pagination 	    = $this->get('Pagination');
		$this->state 		    = $this->get('State');
		$this->totalItems 	    = $this->get('TotalItems');
		$this->isSearching      = $this->get('isSearching');
		$this->showFooter       =
RSTicketsProHelper::getConfig('rsticketspro_link');
		$this->footer	        = RSTicketsProHelper::getFooter();
		$this->searches 	    = $this->get('searches');
		$this->hasSearches 	    = !empty($this->searches);
		$this->predefinedSearch =
$this->get('predefinedsearch');

		$this->setMetadata();
		$this->setPriorityColors();
		
		parent::display($tpl);
	}
	
	protected function setMetadata()
	{
		// Description
		if ($this->params->get('menu-meta_description'))
		{
			$this->document->setDescription($this->params->get('menu-meta_description'));
		}
		// Keywords
		if ($this->params->get('menu-meta_keywords'))
		{
			$this->document->setMetadata('keywords',
$this->params->get('menu-meta_keywords'));
		}
		// Robots
		if ($this->params->get('robots'))
		{
			$this->document->setMetadata('robots',
$this->params->get('robots'));
		}
	}
	
	protected function setPriorityColors()
	{
		if ($priorities = $this->get('Priorities'))
		{
			$css      = '';
			$colorize =
RSTicketsProHelper::getConfig('color_whole_ticket');
			$class 	  = $colorize ? '' :
'.rst_priority_cell';			
			foreach ($priorities as $priority)
			{
				if ($priority->bg_color)
				{
					$css .= 'table.adminlist
tr.rst_priority_color_'.$priority->id.' td'.$class.'
{ background-color: '.$this->escape($priority->bg_color).'
!important; }'."\n";
				}
				if ($priority->fg_color)
				{
					$css .= 'table.adminlist
tr.rst_priority_color_'.$priority->id.'
td'.$class.','."\n";
					$css .= 'table.adminlist
tr.rst_priority_color_'.$priority->id.' td
a'.$class.' { color:
'.$this->escape($priority->fg_color).' !important;
}'."\n";
				}
			}
			
			if ($css)
			{
				JFactory::getDocument()->addStyleDeclaration($css);
			}
		}
	}
	
	protected function canAccess()
	{
		if (JFactory::getUser()->get('guest'))
		{
			JFactory::getApplication()->redirect(RSTicketsProHelper::route('index.php?option=com_users&view=login&return='
. base64_encode((string) JUri::getInstance()), false));
		}
	}
	
	protected function showDate($date)
	{
		return JHtml::_('date', $date, $this->dateFormat);
	}

	public function showTotal($duration)
	{
		return RSTicketsProHelper::showTotal($duration, true);
	}
	
	public function notify($ticket)
	{
		return RSTicketsProHelper::showNotifyIcon($ticket);
	}
}users/index.html000064400000000054151200755450007705
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>users/metadata.xml000064400000000130151200755450010205
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
	<view hidden="true" />
</metadata>users/tmpl/index.html000064400000000054151200755450010661
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>users/tmpl/modal.php000064400000005636151200755450010504
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die;

$listOrder =
$this->escape($this->state->get('list.ordering'));
$listDirn  =
$this->escape($this->state->get('list.direction'));

JHtml::_('script', 'com_rsticketspro/users.js',
array('relative' => true, 'version' =>
'auto'));
?>
<form action="<?php echo
JRoute::_('index.php?option=com_rsticketspro&view=users&layout=modal&tmpl=component&field='
. $this->escape($this->field)); ?>" method="post"
name="adminForm" id="adminForm">
	<?php
	echo JLayoutHelper::render('joomla.searchtools.default',
array('view' => $this));

	if (empty($this->items))
	{
		?>
		<div class="alert alert-info">
			<span class="fa fa-info-circle"
aria-hidden="true"></span><span
class="sr-only"><?php echo JText::_('INFO');
?></span>
			<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
		</div>
		<?php
	}
	else
	{
		?>
		<table class="table table-striped table-condensed">
			<thead>
			<tr>
				<th><?php echo JHtml::_('searchtools.sort',
'RST_NAME', 'name', $listDirn, $listOrder);
?></th>
				<th nowrap width="25%"><?php echo
JHtml::_('searchtools.sort', 'JGLOBAL_USERNAME',
'username', $listDirn, $listOrder); ?></th>
				<th nowrap width="25%"><?php echo
JHtml::_('searchtools.sort', 'JGLOBAL_EMAIL',
'email', $listDirn, $listOrder); ?></th>
				<th nowrap width="1%"><?php echo
JHtml::_('searchtools.sort', 'JGRID_HEADING_ID',
'id', $listDirn, $listOrder); ?></th>
			</tr>
			</thead>
			<tbody>
			<?php
			foreach ($this->items as $item)
			{
				$alt_email = RSTicketsProHelper::getAlternativeEmail($item->id);
				?>
				<tr>
					<td><?php echo $this->escape($item->name);
?></td>
					<td><a class="pointer button-select"
href="javascript:void(0);" data-user-value="<?php echo
$item->id; ?>" data-user-name="<?php echo
$this->escape($item->name); ?>"
data-user-field="<?php echo
$this->escape($this->field);?>" data-alt-email="<?php
echo $this->escape($alt_email); ?>"
onclick="RSTicketsProSelectUser(this);"><?php echo
$this->escape($item->username); ?></a></td>
					<td><a class="pointer button-select"
href="javascript:void(0);" data-user-value="<?php echo
$item->id; ?>" data-user-name="<?php echo
$this->escape($item->name); ?>"
data-user-field="<?php echo
$this->escape($this->field);?>" data-alt-email="<?php
echo $this->escape($alt_email); ?>"
onclick="RSTicketsProSelectUser(this);"><?php echo
$this->escape($item->email); ?></a></td>
					<td><?php echo $item->id; ?></td>
				</tr>
				<?php
			}
			?>
			</tbody>
		</table>
		<?php
		echo $this->pagination->getListFooter();
	}

	echo JHtml::_('form.token');
	?>
	<input type="hidden" name="task" value=""
/>
	<input type="hidden" name="field"
value="<?php echo $this->escape($this->field); ?>"
/>
</form>users/view.html.php000064400000000556151200755450010345
0ustar00<?php
/**
 * @package    RSTickets! Pro
 *
 * @copyright  (c) 2010 - 2016 RSJoomla!
 * @link       https://www.rsjoomla.com
 * @license    GNU General Public License
http://www.gnu.org/licenses/gpl-3.0.en.html
 */

defined('_JEXEC') or die('Restricted access');

require_once JPATH_ADMINISTRATOR .
'/components/com_rsticketspro/views/users/view.html.php';