Spade

Mini Shell

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

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

PK�t�[L��+��categories/tmpl/default.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
JHtml::_('behavior.caption');
JHtml::_('behavior.core');

// Add strings for translations in Javascript.
JText::script('JGLOBAL_EXPAND_CATEGORIES');
JText::script('JGLOBAL_COLLAPSE_CATEGORIES');

JFactory::getDocument()->addScriptDeclaration("
jQuery(function($) {
	$('.categories-list').find('[id^=category-btn-]').each(function(index,
btn) {
		var btn = $(btn);
		btn.on('click', function() {
			btn.find('span').toggleClass('icon-plus');
			btn.find('span').toggleClass('icon-minus');
			if (btn.attr('aria-label') ===
Joomla.JText._('JGLOBAL_EXPAND_CATEGORIES'))
			{
				btn.attr('aria-label',
Joomla.JText._('JGLOBAL_COLLAPSE_CATEGORIES'));
			} else {
				btn.attr('aria-label',
Joomla.JText._('JGLOBAL_EXPAND_CATEGORIES'));
			}
		});
	});
});");
?>
<div class="categories-list<?php echo $this->pageclass_sfx;
?>">
	<?php
		echo JLayoutHelper::render('joomla.content.categories_default',
$this);
		echo $this->loadTemplate('items');
	?>
</div>
PK�t�[qy$5M5Mcategories/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="COM_CONTACT_CATEGORIES_VIEW_DEFAULT_TITLE"
option="COM_CONTACT_CATEGORIES_VIEW_DEFAULT_OPTION">
		<help
			key = "JHELP_MENUS_MENU_ITEM_CONTACT_CATEGORIES"
		/>
		<message>
			<![CDATA[COM_CONTACT_CATEGORIES_VIEW_DEFAULT_DESC]]>
		</message>
	</layout>

	<!-- Add fields to the request variables for the layout. -->
	<fields name="request">
		<fieldset name="request"
		>
			<field
				name="id"
				type="category"
				label="JGLOBAL_FIELD_CATEGORIES_CHOOSE_CATEGORY_LABEL"
				description="JGLOBAL_FIELD_CATEGORIES_CHOOSE_CATEGORY_DESC"
				extension="com_contact"
				show_root="true"
				required="true"
			/>
		</fieldset>
	</fields>
	<fields name="params">
		<fieldset name="basic"
label="JGLOBAL_CATEGORIES_OPTIONS">
			<field
				name="show_base_description"
				type="list"
				label="JGLOBAL_FIELD_SHOW_BASE_DESCRIPTION_LABEL"
				description="JGLOBAL_FIELD_SHOW_BASE_DESCRIPTION_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="categories_description"
				type="textarea"
				label="JGLOBAL_FIELD_CATEGORIES_DESC_LABEL"
				description="JGLOBAL_FIELD_CATEGORIES_DESC_DESC"
				cols="25"
				rows="5"
			/>

			<field
				name="maxLevelcat"
				type="list"
				label="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_LABEL"
				description="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_DESC"
				useglobal="true"
				>
				<option value="-1">JALL</option>
				<option value="1">J1</option>
				<option value="2">J2</option>
				<option value="3">J3</option>
				<option value="4">J4</option>
				<option value="5">J5</option>
			</field>

			<field
				name="show_empty_categories_cat"
				type="list"
				label="JGLOBAL_SHOW_EMPTY_CATEGORIES_LABEL"
				description="COM_CONTACT_SHOW_EMPTY_CATEGORIES_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_subcat_desc_cat"
				type="list"
				label="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_LABEL"
				description="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_cat_items_cat"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_LABEL"
				description="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>
		</fieldset>
		<fieldset name="category"
label="JGLOBAL_CATEGORY_OPTIONS">
			<field
				name="spacer1"
				type="spacer"
				label="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL"
				class="text"
			/>

			<field
				name="show_category_title"
				type="list"
				label="JGLOBAL_SHOW_CATEGORY_TITLE"
				description="JGLOBAL_SHOW_CATEGORY_TITLE_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_description"
				type="list"
				label="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_LABEL"
				description="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_description_image"
				type="list"
				label="JGLOBAL_SHOW_CATEGORY_IMAGE_LABEL"
				description="JGLOBAL_SHOW_CATEGORY_IMAGE_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="maxLevel"
				type="list"
				label="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_LABEL"
				description="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_DESC"
				useglobal="true"
				>
				<option value="-1">JALL</option>
				<option value="0">JNONE</option>
				<option value="1">J1</option>
				<option value="2">J2</option>
				<option value="3">J3</option>
				<option value="4">J4</option>
				<option value="5">J5</option>
			</field>

			<field
				name="show_empty_categories"
				type="list"
				label="JGLOBAL_SHOW_EMPTY_CATEGORIES_LABEL"
				description="COM_CONTACT_SHOW_EMPTY_CATEGORIES_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_subcat_desc"
				type="list"
				label="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_LABEL"
				description="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_cat_items"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_LABEL"
				description="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>
		</fieldset>

		<fieldset name="advanced"
label="JGLOBAL_LIST_LAYOUT_OPTIONS">
			<field
				name="spacer2"
				type="spacer"
				label="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL"
				class="text"
			/>

			<field
				name="filter_field"
				type="list"
				label="JGLOBAL_FILTER_FIELD_LABEL"
				description="JGLOBAL_FILTER_FIELD_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_pagination_limit"
				type="list"
				label="JGLOBAL_DISPLAY_SELECT_LABEL"
				description="JGLOBAL_DISPLAY_SELECT_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_headings"
				type="list"
				label="JGLOBAL_SHOW_HEADINGS_LABEL"
				description="JGLOBAL_SHOW_HEADINGS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_position_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_POSITION_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_POSITION_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_email_headings"
				type="list"
				label="JGLOBAL_EMAIL"
				description="COM_CONTACT_FIELD_CONFIG_EMAIL_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_telephone_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_PHONE_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_PHONE_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_mobile_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_MOBILE_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_MOBILE_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_fax_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_FAX_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_FAX_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_suburb_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_SUBURB_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_SUBURB_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_state_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_STATE_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_STATE_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_country_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_COUNTRY_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_COUNTRY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_pagination"
				type="list"
				label="JGLOBAL_PAGINATION_LABEL"
				description="JGLOBAL_PAGINATION_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
				<option value="2">JGLOBAL_AUTO</option>
			</field>

			<field
				name="show_pagination_results"
				type="list"
				label="JGLOBAL_PAGINATION_RESULTS_LABEL"
				description="JGLOBAL_PAGINATION_RESULTS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>
		</fieldset>

		<fieldset name="contact"
label="COM_CONTACT_BASIC_OPTIONS_FIELDSET_LABEL">
			<field
				name="presentation_style"
				type="list"
				label="COM_CONTACT_FIELD_PRESENTATION_LABEL"
				description="COM_CONTACT_FIELD_PRESENTATION_DESC"
				useglobal="true"
				>
				<option
value="sliders">COM_CONTACT_FIELD_VALUE_SLIDERS</option>
				<option
value="tabs">COM_CONTACT_FIELD_VALUE_TABS</option>
				<option
value="plain">COM_CONTACT_FIELD_VALUE_PLAIN</option>
			</field>

			<field
				name="show_contact_category"
				type="list"
				label="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_LABEL"
				description="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="hide">JHIDE</option>
				<option
value="show_no_link">COM_CONTACT_FIELD_VALUE_NO_LINK</option>
				<option
value="show_with_link">COM_CONTACT_FIELD_VALUE_WITH_LINK</option>
			</field>

			<field
				name="show_contact_list"
				type="list"
				label="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_LABEL"
				description="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field 
				name="show_name"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_NAME_DESC"
				useglobal="true"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_tags"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL"
				description="COM_CONTACT_FIELD_SHOW_TAGS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_info"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_INFO_LABEL"
				description="COM_CONTACT_FIELD_SHOW_INFO_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_position"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_email"
				type="list"
				label="JGLOBAL_EMAIL"
				description="COM_CONTACT_FIELD_PARAMS_CONTACT_E_MAIL_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_street_address"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_suburb"
				type="list"
				description="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_DESC"
				label="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_LABEL"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_state"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_postcode"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_country"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_COUNTRY_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_telephone"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_TELEPHONE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_mobile"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_MOBILE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_fax"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_FAX_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_webpage"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_WEBPAGE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_image"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_IMAGE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="allow_vcard"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_VCARD_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_misc"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_MISC_INFO_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_MISC_INFO_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_articles"
				type="list"
				label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL"
				description="COM_CONTACT_FIELD_ARTICLES_SHOW_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="articles_display_num"
				type="list"
				label="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_LABEL"
				description="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_DESC"
				default=""
				useglobal="true"
				>
				<option
value="use_contact">COM_CONTACT_FIELD_VALUE_USE_CONTACT_SETTINGS</option>
				<option value="5">J5</option>
				<option value="10">J10</option>
				<option value="15">J15</option>
				<option value="20">J20</option>
				<option value="25">J25</option>
				<option value="30">J30</option>
				<option value="50">J50</option>
				<option value="75">J75</option>
				<option value="100">J100</option>
				<option value="150">J150</option>
				<option value="200">J200</option>
				<option value="250">J250</option>
				<option value="300">J300</option>
				<option value="0">JALL</option>
			</field>

			<field
				name="show_links"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL"
				description="COM_CONTACT_FIELD_SHOW_LINKS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="linka_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKA_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkb_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKB_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkc_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKC_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkd_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKD_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linke_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKE_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>
		</fieldset>
		<!-- Form options. -->
		<fieldset name="Contact_Form"
label="COM_CONTACT_MAIL_FIELDSET_LABEL">
			<field
				name="show_email_form"
				type="list"
				label="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_LABEL"
				description="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_email_copy"
				type="list"
				label="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_LABEL"
				description="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="validate_session"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JNO</option>
				<option value="1">JYES</option>
			</field>

			<field
				name="custom_reply"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JNO</option>
				<option value="1">JYES</option>
			</field>

			<field
				name="redirect"
				type="text"
				label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_REDIRECT_DESC"
				size="30"
				useglobal="true"
			/>
		</fieldset>

		<fieldset name="integration">

			<field
				name="show_feed_link"
				type="list"
				label="JGLOBAL_SHOW_FEED_LINK_LABEL"
				description="JGLOBAL_SHOW_FEED_LINK_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

		</fieldset>
	</fields>
</metadata>
PK�t�[vH�	�	!categories/tmpl/default_items.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::_('bootstrap.tooltip');

$class = ' class="first"';
if ($this->maxLevelcat != 0 &&
count($this->items[$this->parent->id]) > 0) :
?>
	<?php foreach ($this->items[$this->parent->id] as $id =>
$item) : ?>
		<?php
		if ($this->params->get('show_empty_categories_cat') ||
$item->numitems || count($item->getChildren())) :
			if (!isset($this->items[$this->parent->id][$id + 1]))
			{
				$class = ' class="last"';
			}
			?>
			<div <?php echo $class; ?> >
			<?php $class = ''; ?>
				<h3 class="page-header item-title">
					<a href="<?php echo
JRoute::_(ContactHelperRoute::getCategoryRoute($item->id,
$item->language)); ?>">
					<?php echo $this->escape($item->title); ?></a>
					<?php if ($this->params->get('show_cat_items_cat')
== 1) :?>
						<span class="badge badge-info tip hasTooltip"
title="<?php echo JHtml::_('tooltipText',
'COM_CONTACT_NUM_ITEMS'); ?>">
							<?php echo JText::_('COM_CONTACT_NUM_ITEMS');
?>&nbsp;
							<?php echo $item->numitems; ?>
						</span>
					<?php endif; ?>
					<?php if ($this->maxLevelcat > 1 &&
count($item->getChildren()) > 0) : ?>
						<a id="category-btn-<?php echo $item->id; ?>"
href="#category-<?php echo $item->id; ?>"
							data-toggle="collapse" data-toggle="button"
class="btn btn-mini pull-right" aria-label="<?php echo
JText::_('JGLOBAL_EXPAND_CATEGORIES'); ?>"><span
class="icon-plus"
aria-hidden="true"></span></a>
					<?php endif; ?>
				</h3>
				<?php if ($this->params->get('show_subcat_desc_cat')
== 1) : ?>
					<?php if ($item->description) : ?>
						<div class="category-desc">
							<?php echo JHtml::_('content.prepare',
$item->description, '', 'com_contact.categories');
?>
						</div>
					<?php endif; ?>
				<?php endif; ?>

				<?php if ($this->maxLevelcat > 1 &&
count($item->getChildren()) > 0) : ?>
					<div class="collapse fade" id="category-<?php
echo $item->id; ?>">
						<?php
						$this->items[$item->id] = $item->getChildren();
						$this->parent = $item;
						$this->maxLevelcat--;
						echo $this->loadTemplate('items');
						$this->parent = $item->getParent();
						$this->maxLevelcat++;
						?>
					</div>
				<?php endif; ?>
			</div>
		<?php endif; ?>
	<?php endforeach; ?><?php endif; ?>
PK�t�[y�
��categories/view.html.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Content categories view.
 *
 * @since  1.6
 */
class ContactViewCategories extends JViewCategories
{
	/**
	 * Language key for default page heading
	 *
	 * @var    string
	 * @since  3.2
	 */
	protected $pageHeading = 'COM_CONTACT_DEFAULT_PAGE_TITLE';

	/**
	 * @var    string  The name of the extension for the category
	 * @since  3.2
	 */
	protected $extension = 'com_contact';
}
PK�t�[U�ouucategory/tmpl/default.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

$this->subtemplatename = 'items';
echo JLayoutHelper::render('joomla.content.category_default',
$this);
PK�t�[)k��K�Kcategory/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="COM_CONTACT_CATEGORY_VIEW_DEFAULT_TITLE"
option="COM_CONTACT_CATEGORY_VIEW_DEFAULT_OPTION">
		<help
			key = "JHELP_MENUS_MENU_ITEM_CONTACT_CATEGORY"
		/>
		<message>
			<![CDATA[COM_CONTACT_CATEGORY_VIEW_DEFAULT_DESC]]>
		</message>
	</layout>

	<!-- Add fields to the request variables for the layout. -->
	<fields name="request"
		addfieldpath="/administrator/components/com_categories/models/fields"
	>
		<fieldset name="request"
			addfieldpath="/administrator/components/com_contact/models/fields"
		>
			<field
				name="id"
				type="modal_category"
				label="COM_CONTACT_FIELD_CATEGORY_LABEL"
				description="COM_CONTACT_FIELD_CATEGORY_DESC"
				extension="com_contact"
				required="true"
				select="true"
				new="true"
				edit="true"
				clear="true"
			/>
		</fieldset>
	</fields>


	<!-- Add fields to the parameters object for the layout. -->
	<fields name="params">
		<fieldset name="basic"
label="JGLOBAL_CATEGORY_OPTIONS">

			<field
				name="spacer1"
				type="spacer"
				label="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL"
				class="text"
			/>

			<field
				name="show_category_title"
				type="list"
				label="JGLOBAL_SHOW_CATEGORY_TITLE"
				description="JGLOBAL_SHOW_CATEGORY_TITLE_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_description"
				type="list"
				label="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_LABEL"
				description="JGLOBAL_SHOW_CATEGORY_DESCRIPTION_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_description_image"
				type="list"
				label="JGLOBAL_SHOW_CATEGORY_IMAGE_LABEL"
				description="JGLOBAL_SHOW_CATEGORY_IMAGE_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="maxLevel"
				type="list"
				label="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_LABEL"
				description="JGLOBAL_MAXIMUM_CATEGORY_LEVELS_DESC"
				useglobal="true"
				>
				<option value="-1">JALL</option>
				<option value="0">JNONE</option>
				<option value="1">J1</option>
				<option value="2">J2</option>
				<option value="3">J3</option>
				<option value="4">J4</option>
				<option value="5">J5</option>
			</field>

			<field
				name="show_empty_categories"
				type="list"
				label="JGLOBAL_SHOW_EMPTY_CATEGORIES_LABEL"
				description="COM_CONTACT_SHOW_EMPTY_CATEGORIES_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>


			<field
				name="show_subcat_desc"
				type="list"
				label="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_LABEL"
				description="JGLOBAL_SHOW_SUBCATEGORIES_DESCRIPTION_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_cat_items"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_LABEL"
				description="COM_CONTACT_FIELD_SHOW_CAT_ITEMS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>
		</fieldset>

		<fieldset name="advanced"
label="JGLOBAL_LIST_LAYOUT_OPTIONS">

			<field
				name="spacer2"
				type="spacer"
				label="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL"
				class="text"
			/>

			<field
				name="filter_field"
				type="list"
				label="JGLOBAL_FILTER_FIELD_LABEL"
				description="JGLOBAL_FILTER_FIELD_DESC"
				default=""
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_pagination_limit"
				type="list"
				label="JGLOBAL_DISPLAY_SELECT_LABEL"
				description="JGLOBAL_DISPLAY_SELECT_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_headings"
				type="list"
				label="JGLOBAL_SHOW_HEADINGS_LABEL"
				description="JGLOBAL_SHOW_HEADINGS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_image_heading"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_SHOW_IMAGE_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_SHOW_IMAGE_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_position_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_POSITION_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_POSITION_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_email_headings"
				type="list"
				label="JGLOBAL_EMAIL"
				description="COM_CONTACT_FIELD_CONFIG_EMAIL_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_telephone_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_PHONE_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_PHONE_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_mobile_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_MOBILE_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_MOBILE_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_fax_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_FAX_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_FAX_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_suburb_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_SUBURB_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_SUBURB_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_state_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_STATE_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_STATE_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_country_headings"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_COUNTRY_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_COUNTRY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_pagination"
				type="list"
				label="JGLOBAL_PAGINATION_LABEL"
				description="JGLOBAL_PAGINATION_DESC"
				useglobal="true"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
				<option value="2">JGLOBAL_AUTO</option>
			</field>

			<field
				name="show_pagination_results"
				type="list"
				label="JGLOBAL_PAGINATION_RESULTS_LABEL"
				description="JGLOBAL_PAGINATION_RESULTS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>

			</field>

			<field
				name="initial_sort"
				type="list"
				label="COM_CONTACT_FIELD_INITIAL_SORT_LABEL"
				description="COM_CONTACT_FIELD_INITIAL_SORT_DESC"
				useglobal="true"
				>
				<option
value="name">COM_CONTACT_FIELD_VALUE_NAME</option>
				<option
value="sortname">COM_CONTACT_FIELD_VALUE_SORT_NAME</option>
				<option
value="ordering">COM_CONTACT_FIELD_VALUE_ORDERING</option>
			</field>
		</fieldset>

		<fieldset name="contact"
label="COM_CONTACT_BASIC_OPTIONS_FIELDSET_LABEL"
			addfieldpath="/administrator/components/com_fields/models/fields">
			
			<field
				name="contact_layout"
				type="componentlayout"
				label="JGLOBAL_FIELD_LAYOUT_LABEL"
				description="JGLOBAL_FIELD_LAYOUT_DESC"
				menuitems="true"
				extension="com_contact"
				view="contact"
			/>
			
			<field
				name="presentation_style"
				type="list"
				label="COM_CONTACT_FIELD_PRESENTATION_LABEL"
				description="COM_CONTACT_FIELD_PRESENTATION_DESC"
				useglobal="true"
				>
				<option
value="sliders">COM_CONTACT_FIELD_VALUE_SLIDERS</option>
				<option
value="tabs">COM_CONTACT_FIELD_VALUE_TABS</option>
				<option
value="plain">COM_CONTACT_FIELD_VALUE_PLAIN</option>
			</field>

			<field
				name="show_contact_category"
				type="list"
				label="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_LABEL"
				description="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="hide">JHIDE</option>
				<option
value="show_no_link">COM_CONTACT_FIELD_VALUE_NO_LINK</option>
				<option
value="show_with_link">COM_CONTACT_FIELD_VALUE_WITH_LINK</option>
			</field>

			<field
				name="show_contact_list"
				type="list"
				label="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_LABEL"
				description="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field 
				name="show_name"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_NAME_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_tags"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL"
				description="COM_CONTACT_FIELD_SHOW_TAGS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_info"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_INFO_LABEL"
				description="COM_CONTACT_FIELD_SHOW_INFO_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_position"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>

			</field>

			<field
				name="show_email"
				type="list"
				label="JGLOBAL_EMAIL"
				description="COM_CONTACT_FIELD_PARAMS_CONTACT_E_MAIL_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_street_address"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_suburb"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_state"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_postcode"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_country"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_COUNTRY_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_telephone"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_TELEPHONE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_mobile"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_MOBILE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_fax"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_FAX_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_webpage"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_WEBPAGE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_image"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_IMAGE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="allow_vcard"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_VCARD_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_misc"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_MISC_INFO_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_MISC_INFO_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_articles"
				type="list"
				label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL"
				description="COM_CONTACT_FIELD_ARTICLES_SHOW_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="articles_display_num"
				type="list"
				label="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_LABEL"
				description="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_DESC"
				default=""
				useglobal="true"
				>
				<option
value="use_contact">COM_CONTACT_FIELD_VALUE_USE_CONTACT_SETTINGS</option>
				<option value="5">J5</option>
				<option value="10">J10</option>
				<option value="15">J15</option>
				<option value="20">J20</option>
				<option value="25">J25</option>
				<option value="30">J30</option>
				<option value="50">J50</option>
				<option value="75">J75</option>
				<option value="100">J100</option>
				<option value="150">J150</option>
				<option value="200">J200</option>
				<option value="250">J250</option>
				<option value="300">J300</option>
				<option value="0">JALL</option>
			</field>

			<field
				name="show_links"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL"
				description="COM_CONTACT_FIELD_SHOW_LINKS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_user_custom_fields"
				type="fieldgroups"
				label="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_LABEL"
				description="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_DESC"
				multiple="true"
				context="com_users.user"
				>
				<option value="-1">JALL</option>
			</field>

			<field
				name="linka_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKA_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkb_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKB_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkc_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKC_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkd_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKD_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linke_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKE_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>
		</fieldset>
		<!-- Form options. -->
		<fieldset name="Contact_Form"
label="COM_CONTACT_MAIL_FIELDSET_LABEL">

			<field
				name="show_email_form"
				type="list"
				label="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_LABEL"
				description="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_email_copy"
				type="list"
				label="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_LABEL"
				description="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="validate_session"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JNO</option>
				<option value="1">JYES</option>
			</field>

			<field
				name="custom_reply"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JNO</option>
				<option value="1">JYES</option>
			</field>

			<field
				name="redirect"
				type="text"
				label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_REDIRECT_DESC"
				size="30"
				useglobal="true"
			/>
		</fieldset>

		<fieldset name="integration">

			<field
				name="show_feed_link"
				type="list"
				label="JGLOBAL_Show_Feed_Link_Label"
				description="JGLOBAL_Show_Feed_Link_Desc"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

		</fieldset>
	</fields>
</metadata>
PK�t�[��"category/tmpl/default_children.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;
$class = ' class="first"';
if ($this->maxLevel != 0 &&
count($this->children[$this->category->id]) > 0) :
?>
<ul class="list-striped list-condensed">
<?php foreach ($this->children[$this->category->id] as $id
=> $child) : ?>
	<?php
	if ($this->params->get('show_empty_categories') ||
$child->numitems || count($child->getChildren())) :
		if (!isset($this->children[$this->category->id][$id + 1]))
		{
			$class = ' class="last"';
		}
	?>
	<li<?php echo $class; ?>>
		<?php $class = ''; ?>
			<h4 class="item-title">
				<a href="<?php echo
JRoute::_(ContactHelperRoute::getCategoryRoute($child->id));
?>">
				<?php echo $this->escape($child->title); ?>
				</a>

				<?php if ($this->params->get('show_cat_items') == 1)
: ?>
					<span class="badge badge-info pull-right"
title="<?php echo JText::_('COM_CONTACT_CAT_NUM');
?>"><?php echo $child->numitems; ?></span>
				<?php endif; ?>
			</h4>

			<?php if ($this->params->get('show_subcat_desc') ==
1) : ?>
				<?php if ($child->description) : ?>
					<div class="category-desc">
						<?php echo JHtml::_('content.prepare',
$child->description, '', 'com_contact.category');
?>
					</div>
				<?php endif; ?>
			<?php endif; ?>

			<?php if (count($child->getChildren()) > 0 ) :
				$this->children[$child->id] = $child->getChildren();
				$this->category = $child;
				$this->maxLevel--;
				echo $this->loadTemplate('children');
				$this->category = $child->getParent();
				$this->maxLevel++;
			endif; ?>
	</li>
	<?php endif; ?>
<?php endforeach; ?>
</ul>
<?php endif; ?>
PK�t�[%�U��category/tmpl/default_items.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

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

?>
<form action="<?php echo
htmlspecialchars(JUri::getInstance()->toString()); ?>"
method="post" name="adminForm"
id="adminForm">
	<?php if ($this->params->get('filter_field') ||
$this->params->get('show_pagination_limit')) : ?>
		<fieldset class="filters btn-toolbar">
			<?php if ($this->params->get('filter_field')) : ?>
				<div class="btn-group">
					<label class="filter-search-lbl element-invisible"
for="filter-search">
						<span class="label label-warning">
							<?php echo JText::_('JUNPUBLISHED'); ?>
						</span>
							<?php echo JText::_('COM_CONTACT_FILTER_LABEL') .
'&#160;'; ?>
					</label>
					<input
						type="text"
						name="filter-search"
						id="filter-search"
						value="<?php echo
$this->escape($this->state->get('list.filter'));
?>"
						class="inputbox"
						onchange="document.adminForm.submit();"
						title="<?php echo
JText::_('COM_CONTACT_FILTER_SEARCH_DESC'); ?>"
						placeholder="<?php echo
JText::_('COM_CONTACT_FILTER_SEARCH_DESC'); ?>"
					/>
				</div>
			<?php endif; ?>
			<?php if
($this->params->get('show_pagination_limit')) : ?>
				<div class="btn-group pull-right">
					<label for="limit"
class="element-invisible">
						<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>
					</label>
					<?php echo $this->pagination->getLimitBox(); ?>
				</div>
			<?php endif; ?>
		</fieldset>
	<?php endif; ?>
	<?php if (empty($this->items)) : ?>
		<p>
			<?php echo JText::_('COM_CONTACT_NO_CONTACTS'); ?>
		</p>
	<?php else : ?>
		<ul class="category row-striped">
			<?php foreach ($this->items as $i => $item) : ?>
				<?php if (in_array($item->access,
$this->user->getAuthorisedViewLevels())) : ?>
					<?php if ($this->items[$i]->published == 0) : ?>
						<li class="row-fluid system-unpublished cat-list-row<?php
echo $i % 2; ?>">
					<?php else : ?>
						<li class="row-fluid cat-list-row<?php echo $i % 2;
?>" >
					<?php endif; ?>
					<?php if ($this->params->get('show_image_heading'))
: ?>
						<?php $contactWidth = 7; ?>
						<div class="span2 col-md-2">
							<?php if ($this->items[$i]->image) : ?>
								<a href="<?php echo
JRoute::_(ContactHelperRoute::getContactRoute($item->slug,
$item->catid)); ?>">
									<?php echo JHtml::_(
										'image',
										$this->items[$i]->image,
										JText::_('COM_CONTACT_IMAGE_DETAILS'),
										array('class' => 'contact-thumbnail
img-thumbnail')
									); ?>
								</a>
							<?php endif; ?>
						</div>
					<?php else : ?>
						<?php $contactWidth = 9; ?>
					<?php endif; ?>
					<div class="list-title span<?php echo $contactWidth; ?>
col-md-<?php echo $contactWidth; ?>">
						<a href="<?php echo
JRoute::_(ContactHelperRoute::getContactRoute($item->slug,
$item->catid)); ?>">
							<?php echo $item->name; ?>
						</a>
						<?php if ($this->items[$i]->published == 0) : ?>
							<span class="label label-warning">
								<?php echo JText::_('JUNPUBLISHED'); ?>
							</span>
						<?php endif; ?>
						<?php echo $item->event->afterDisplayTitle; ?>
						<?php echo $item->event->beforeDisplayContent; ?>
						<?php if
($this->params->get('show_position_headings')) : ?>
							<?php echo $item->con_position; ?><br />
						<?php endif; ?>
						<?php if
($this->params->get('show_email_headings')) : ?>
							<?php echo $item->email_to; ?><br />
						<?php endif; ?>
						<?php $location = array(); ?>
						<?php if
($this->params->get('show_suburb_headings') &&
!empty($item->suburb)) : ?>
							<?php $location[] = $item->suburb; ?>
						<?php endif; ?>
						<?php if
($this->params->get('show_state_headings') &&
!empty($item->state)) : ?>
							<?php $location[] = $item->state; ?>
						<?php endif; ?>
						<?php if
($this->params->get('show_country_headings') &&
!empty($item->country)) : ?>
							<?php $location[] = $item->country; ?>
						<?php endif; ?>
						<?php echo implode(', ', $location); ?>
					</div>
					<div class="span3 col-md-3">
						<?php if
($this->params->get('show_telephone_headings') &&
!empty($item->telephone)) : ?>
							<?php echo
JText::sprintf('COM_CONTACT_TELEPHONE_NUMBER',
$item->telephone); ?><br />
						<?php endif; ?>
						<?php if
($this->params->get('show_mobile_headings') &&
!empty ($item->mobile)) : ?>
							<?php echo JText::sprintf('COM_CONTACT_MOBILE_NUMBER',
$item->mobile); ?><br />
						<?php endif; ?>
						<?php if ($this->params->get('show_fax_headings')
&& !empty($item->fax)) : ?>
							<?php echo JText::sprintf('COM_CONTACT_FAX_NUMBER',
$item->fax); ?><br />
						<?php endif; ?>
					</div>
					<?php echo $item->event->afterDisplayContent; ?>
				</li>
				<?php endif; ?>
			<?php endforeach; ?>
		</ul>
	<?php endif; ?>
	<?php if ($this->params->get('show_pagination', 2)) :
?>
		<div class="pagination">
			<?php if
($this->params->def('show_pagination_results', 1)) : ?>
				<p class="counter">
					<?php echo $this->pagination->getPagesCounter(); ?>
				</p>
			<?php endif; ?>
			<?php echo $this->pagination->getPagesLinks(); ?>
		</div>
	<?php endif; ?>
	<div>
		<input type="hidden" name="filter_order"
value="<?php echo
$this->escape($this->state->get('list.ordering'));
?>" />
		<input type="hidden" name="filter_order_Dir"
value="<?php echo
$this->escape($this->state->get('list.direction'));
?>" />
	</div>
</form>
PK�t�[u��;��category/view.feed.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * HTML View class for the Contact component
 *
 * @since  1.5
 */
class ContactViewCategory extends JViewCategoryfeed
{
	/**
	 * @var    string  The name of the view to link individual items to
	 * @since  3.2
	 */
	protected $viewName = 'contact';

	/**
	 * Method to reconcile non standard names from components to usage in this
class.
	 * Typically overridden in the component feed view class.
	 *
	 * @param   object  $item  The item for a feed, an element of the $items
array.
	 *
	 * @return  void
	 *
	 * @since   3.2
	 */
	protected function reconcileNames($item)
	{
		parent::reconcileNames($item);

		$item->description = $item->address;
	}
}
PK�t�[��u��category/view.html.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * HTML View class for the Contacts component
 *
 * @since  1.5
 */
class ContactViewCategory extends JViewCategory
{
	/**
	 * @var    string  The name of the extension for the category
	 * @since  3.2
	 */
	protected  $extension = 'com_contact';

	/**
	 * @var    string  Default title to use for page title
	 * @since  3.2
	 */
	protected  $defaultPageTitle = 'COM_CONTACT_DEFAULT_PAGE_TITLE';

	/**
	 * @var    string  The name of the view to link individual items to
	 * @since  3.2
	 */
	protected $viewName = 'contact';

	/**
	 * Run the standard Joomla plugins
	 *
	 * @var    bool
	 * @since  3.5
	 */
	protected $runPlugins = true;

	/**
	 * 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.
	 */
	public function display($tpl = null)
	{
		parent::commonCategoryDisplay();

		// Flag indicates to not add limitstart=0 to URL
		$this->pagination->hideEmptyLimitstart = true;

		// Prepare the data.
		// Compute the contact slug.
		foreach ($this->items as $item)
		{
			$item->slug = $item->alias ? ($item->id . ':' .
$item->alias) : $item->id;
			$temp       = $item->params;
			$item->params = clone $this->params;
			$item->params->merge($temp);

			if ($item->params->get('show_email_headings', 0) == 1)
			{
				$item->email_to = trim($item->email_to);

				if (!empty($item->email_to) &&
JMailHelper::isEmailAddress($item->email_to))
				{
					$item->email_to = JHtml::_('email.cloak',
$item->email_to);
				}
				else
				{
					$item->email_to = '';
				}
			}
		}

		return parent::display($tpl);
	}

	/**
	 * Prepares the document
	 *
	 * @return  void
	 */
	protected function prepareDocument()
	{
		parent::prepareDocument();

		$menu = $this->menu;
		$id = (int) @$menu->query['id'];

		if ($menu && (!isset($menu->query['option']) ||
$menu->query['option'] != $this->extension ||
$menu->query['view'] == $this->viewName
			|| $id != $this->category->id))
		{
			$path = array(array('title' =>
$this->category->title, 'link' => ''));
			$category = $this->category->getParent();

			while ((!isset($menu->query['option']) ||
$menu->query['option'] !== 'com_contact' ||
$menu->query['view'] === 'contact'
				|| $id != $category->id) && $category->id > 1)
			{
				$path[] = array('title' => $category->title,
'link' =>
ContactHelperRoute::getCategoryRoute($category->id));
				$category = $category->getParent();
			}

			$path = array_reverse($path);

			foreach ($path as $item)
			{
				$this->pathway->addItem($item['title'],
$item['link']);
			}
		}

		parent::addFeed();
	}
}
PK�t�[�[,D�)�)contact/tmpl/default.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

$tparams = $this->item->params;
?>

<div class="contact<?php echo $this->pageclass_sfx;
?>" itemscope itemtype="https://schema.org/Person">
	<?php if ($tparams->get('show_page_heading')) : ?>
		<h1>
			<?php echo
$this->escape($tparams->get('page_heading')); ?>
		</h1>
	<?php endif; ?>

	<?php if ($this->contact->name &&
$tparams->get('show_name')) : ?>
		<div class="page-header">
			<h2>
				<?php if ($this->item->published == 0) : ?>
					<span class="label label-warning"><?php echo
JText::_('JUNPUBLISHED'); ?></span>
				<?php endif; ?>
				<span class="contact-name"
itemprop="name"><?php echo $this->contact->name;
?></span>
			</h2>
		</div>
	<?php endif; ?>

	<?php $show_contact_category =
$tparams->get('show_contact_category'); ?>

	<?php if ($show_contact_category === 'show_no_link') : ?>
		<h3>
			<span class="contact-category"><?php echo
$this->contact->category_title; ?></span>
		</h3>
	<?php elseif ($show_contact_category === 'show_with_link') :
?>
		<?php $contactLink =
ContactHelperRoute::getCategoryRoute($this->contact->catid); ?>
		<h3>
			<span class="contact-category"><a href="<?php
echo $contactLink; ?>">
				<?php echo $this->escape($this->contact->category_title);
?></a>
			</span>
		</h3>
	<?php endif; ?>

	<?php echo $this->item->event->afterDisplayTitle; ?>

	<?php if ($tparams->get('show_contact_list') &&
count($this->contacts) > 1) : ?>
		<form action="#" method="get"
name="selectForm" id="selectForm">
			<label for="select_contact"><?php echo
JText::_('COM_CONTACT_SELECT_CONTACT'); ?></label>
			<?php echo JHtml::_('select.genericlist',
$this->contacts, 'select_contact',
'class="inputbox" onchange="document.location.href =
this.value"', 'link', 'name',
$this->contact->link); ?>
		</form>
	<?php endif; ?>

	<?php if ($tparams->get('show_tags', 1) &&
!empty($this->item->tags->itemTags)) : ?>
		<?php $this->item->tagLayout = new
JLayoutFile('joomla.content.tags'); ?>
		<?php echo
$this->item->tagLayout->render($this->item->tags->itemTags);
?>
	<?php endif; ?>

	<?php echo $this->item->event->beforeDisplayContent; ?>

	<?php $presentation_style =
$tparams->get('presentation_style'); ?>
	<?php $accordionStarted = false; ?>
	<?php $tabSetStarted = false; ?>

	<?php if ($this->params->get('show_info', 1)) : ?>
		<?php if ($presentation_style === 'sliders') : ?>
			<?php echo JHtml::_('bootstrap.startAccordion',
'slide-contact', array('active' =>
'basic-details')); ?>
			<?php $accordionStarted = true; ?>
			<?php echo JHtml::_('bootstrap.addSlide',
'slide-contact', JText::_('COM_CONTACT_DETAILS'),
'basic-details'); ?>
		<?php elseif ($presentation_style === 'tabs') : ?>
			<?php echo JHtml::_('bootstrap.startTabSet',
'myTab', array('active' =>
'basic-details')); ?>
			<?php $tabSetStarted = true; ?>
			<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'basic-details', JText::_('COM_CONTACT_DETAILS'));
?>
		<?php elseif ($presentation_style === 'plain') : ?>
			<?php echo '<h3>' .
JText::_('COM_CONTACT_DETAILS') . '</h3>'; ?>
		<?php endif; ?>

		<?php if ($this->contact->image &&
$tparams->get('show_image')) : ?>
			<div class="thumbnail pull-right">
				<?php echo JHtml::_('image', $this->contact->image,
htmlspecialchars($this->contact->name,  ENT_QUOTES,
'UTF-8'), array('itemprop' => 'image'));
?>
			</div>
		<?php endif; ?>

		<?php if ($this->contact->con_position &&
$tparams->get('show_position')) : ?>
			<dl class="contact-position dl-horizontal">
				<dt><?php echo JText::_('COM_CONTACT_POSITION');
?>:</dt>
				<dd itemprop="jobTitle">
					<?php echo $this->contact->con_position; ?>
				</dd>
			</dl>
		<?php endif; ?>

		<?php echo $this->loadTemplate('address'); ?>

		<?php if ($tparams->get('allow_vcard')) : ?>
			<?php echo JText::_('COM_CONTACT_DOWNLOAD_INFORMATION_AS');
?>
			<a href="<?php echo
JRoute::_('index.php?option=com_contact&amp;view=contact&amp;id='
. $this->contact->id . '&amp;format=vcf');
?>">
			<?php echo JText::_('COM_CONTACT_VCARD'); ?></a>
		<?php endif; ?>

		<?php if ($presentation_style === 'sliders') : ?>
			<?php echo JHtml::_('bootstrap.endSlide'); ?>
		<?php elseif ($presentation_style === 'tabs') : ?>
			<?php echo JHtml::_('bootstrap.endTab'); ?>
		<?php endif; ?>
	<?php endif; ?>

	<?php if ($tparams->get('show_email_form') &&
($this->contact->email_to || $this->contact->user_id)) : ?>
		<?php if ($presentation_style === 'sliders') : ?>
			<?php if (!$accordionStarted)
			{
				echo JHtml::_('bootstrap.startAccordion',
'slide-contact', array('active' =>
'display-form'));
				$accordionStarted = true;
			}
			?>
			<?php echo JHtml::_('bootstrap.addSlide',
'slide-contact', JText::_('COM_CONTACT_EMAIL_FORM'),
'display-form'); ?>
		<?php elseif ($presentation_style === 'tabs') : ?>
			<?php if (!$tabSetStarted)
			{
				echo JHtml::_('bootstrap.startTabSet', 'myTab',
array('active' => 'display-form'));
				$tabSetStarted = true;
			}
			?>
			<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'display-form', JText::_('COM_CONTACT_EMAIL_FORM'));
?>
		<?php elseif ($presentation_style === 'plain') : ?>
			<?php echo '<h3>' .
JText::_('COM_CONTACT_EMAIL_FORM') . '</h3>';
?>
		<?php endif; ?>

		<?php echo $this->loadTemplate('form'); ?>

		<?php if ($presentation_style === 'sliders') : ?>
			<?php echo JHtml::_('bootstrap.endSlide'); ?>
		<?php elseif ($presentation_style === 'tabs') : ?>
			<?php echo JHtml::_('bootstrap.endTab'); ?>
		<?php endif; ?>
	<?php endif; ?>

	<?php if ($tparams->get('show_links')) : ?>
		<?php if ($presentation_style === 'sliders') : ?>
			<?php if (!$accordionStarted) : ?>
				<?php echo JHtml::_('bootstrap.startAccordion',
'slide-contact', array('active' =>
'display-links')); ?>
				<?php $accordionStarted = true; ?>
			<?php endif; ?>
		<?php elseif ($presentation_style === 'tabs') : ?>
			<?php if (!$tabSetStarted) : ?>
				<?php echo JHtml::_('bootstrap.startTabSet',
'myTab', array('active' =>
'display-links')); ?>
				<?php $tabSetStarted = true; ?>
			<?php endif; ?>
		<?php endif; ?>
		<?php echo $this->loadTemplate('links'); ?>
	<?php endif; ?>

	<?php if ($tparams->get('show_articles') &&
$this->contact->user_id && $this->contact->articles) :
?>
		<?php if ($presentation_style === 'sliders') : ?>
			<?php if (!$accordionStarted)
			{
				echo JHtml::_('bootstrap.startAccordion',
'slide-contact', array('active' =>
'display-articles'));
				$accordionStarted = true;
			}
			?>
			<?php echo JHtml::_('bootstrap.addSlide',
'slide-contact', JText::_('JGLOBAL_ARTICLES'),
'display-articles'); ?>
		<?php elseif ($presentation_style === 'tabs') : ?>
			<?php if (!$tabSetStarted)
			{
				echo JHtml::_('bootstrap.startTabSet', 'myTab',
array('active' => 'display-articles'));
				$tabSetStarted = true;
			}
			?>
			<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'display-articles', JText::_('JGLOBAL_ARTICLES'));
?>
		<?php elseif ($presentation_style === 'plain') : ?>
			<?php echo '<h3>' .
JText::_('JGLOBAL_ARTICLES') . '</h3>'; ?>
		<?php endif; ?>

		<?php echo $this->loadTemplate('articles'); ?>

		<?php if ($presentation_style === 'sliders') : ?>
			<?php echo JHtml::_('bootstrap.endSlide'); ?>
		<?php elseif ($presentation_style === 'tabs') : ?>
			<?php echo JHtml::_('bootstrap.endTab'); ?>
		<?php endif; ?>
	<?php endif; ?>

	<?php if ($tparams->get('show_profile') &&
$this->contact->user_id &&
JPluginHelper::isEnabled('user', 'profile')) : ?>
		<?php if ($presentation_style === 'sliders') : ?>
			<?php if (!$accordionStarted)
			{
				echo JHtml::_('bootstrap.startAccordion',
'slide-contact', array('active' =>
'display-profile'));
				$accordionStarted = true;
			}
			?>
			<?php echo JHtml::_('bootstrap.addSlide',
'slide-contact', JText::_('COM_CONTACT_PROFILE'),
'display-profile'); ?>
		<?php elseif ($presentation_style === 'tabs') : ?>
			<?php if (!$tabSetStarted)
			{
				echo JHtml::_('bootstrap.startTabSet', 'myTab',
array('active' => 'display-profile'));
				$tabSetStarted = true;
			}
			?>
			<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'display-profile', JText::_('COM_CONTACT_PROFILE'));
?>
		<?php elseif ($presentation_style === 'plain') : ?>
			<?php echo '<h3>' .
JText::_('COM_CONTACT_PROFILE') . '</h3>'; ?>
		<?php endif; ?>

		<?php echo $this->loadTemplate('profile'); ?>

		<?php if ($presentation_style === 'sliders') : ?>
			<?php echo JHtml::_('bootstrap.endSlide'); ?>
		<?php elseif ($presentation_style === 'tabs') : ?>
			<?php echo JHtml::_('bootstrap.endTab'); ?>
		<?php endif; ?>
	<?php endif; ?>

	<?php if ($tparams->get('show_user_custom_fields')
&& $this->contactUser) : ?>
		<?php echo $this->loadTemplate('user_custom_fields');
?>
	<?php endif; ?>

	<?php if ($this->contact->misc &&
$tparams->get('show_misc')) : ?>
		<?php if ($presentation_style === 'sliders') : ?>
			<?php if (!$accordionStarted)
			{
				echo JHtml::_('bootstrap.startAccordion',
'slide-contact', array('active' =>
'display-misc'));
				$accordionStarted = true;
			}
			?>
			<?php echo JHtml::_('bootstrap.addSlide',
'slide-contact',
JText::_('COM_CONTACT_OTHER_INFORMATION'),
'display-misc'); ?>
		<?php elseif ($presentation_style === 'tabs') : ?>
			<?php if (!$tabSetStarted)
			{
				echo JHtml::_('bootstrap.startTabSet', 'myTab',
array('active' => 'display-misc'));
				$tabSetStarted = true;
			}
			?>
			<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'display-misc',
JText::_('COM_CONTACT_OTHER_INFORMATION')); ?>
		<?php elseif ($presentation_style === 'plain') : ?>
			<?php echo '<h3>' .
JText::_('COM_CONTACT_OTHER_INFORMATION') .
'</h3>'; ?>
		<?php endif; ?>

		<div class="contact-miscinfo">
			<dl class="dl-horizontal">
				<dt>
					<span class="<?php echo
$tparams->get('marker_class'); ?>">
					<?php echo $tparams->get('marker_misc'); ?>
					</span>
				</dt>
				<dd>
					<span class="contact-misc">
						<?php echo $this->contact->misc; ?>
					</span>
				</dd>
			</dl>
		</div>

		<?php if ($presentation_style === 'sliders') : ?>
			<?php echo JHtml::_('bootstrap.endSlide'); ?>
		<?php elseif ($presentation_style === 'tabs') : ?>
			<?php echo JHtml::_('bootstrap.endTab'); ?>
		<?php endif; ?>
	<?php endif; ?>

	<?php if ($accordionStarted) : ?>
		<?php echo JHtml::_('bootstrap.endAccordion'); ?>
	<?php elseif ($tabSetStarted) : ?>
		<?php echo JHtml::_('bootstrap.endTabSet'); ?>
	<?php endif; ?>

	<?php echo $this->item->event->afterDisplayContent; ?>
</div>
PK�t�[-!Y�00contact/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8"?>
<metadata>
	<layout title="COM_CONTACT_CONTACT_VIEW_DEFAULT_TITLE"
option="COM_CONTACT_CONTACT_VIEW_DEFAULT_OPTION">
		<help
			key = "JHELP_MENUS_MENU_ITEM_CONTACT_SINGLE_CONTACT"
		/>
		<message>
			<![CDATA[COM_CONTACT_CONTACT_VIEW_DEFAULT_DESC]]>
		</message>
	</layout>

	<!-- Add fields to the request variables for the layout. -->
	<fields name="request">
		<fieldset name="request"
			addfieldpath="/administrator/components/com_contact/models/fields"
		>
			<field
				name="id"
				type="modal_contact"
				label="COM_CONTACT_SELECT_CONTACT_LABEL"
				description="COM_CONTACT_SELECT_CONTACT_DESC"
				required="true"
				select="true"
				new="true"
				edit="true"
				clear="true"
			/>
		</fieldset>
	</fields>

	<!-- Add fields to the parameters object for the layout. -->
	<fields name="params">

		<!-- Basic options. -->
		<fieldset name="params"
			label="COM_CONTACT_BASIC_OPTIONS_FIELDSET_LABEL"
			addfieldpath="/administrator/components/com_fields/models/fields"
		>
			<field
				name="presentation_style"
				type="list"
				label="COM_CONTACT_FIELD_PRESENTATION_LABEL"
				description="COM_CONTACT_FIELD_PRESENTATION_DESC"
				useglobal="true"
				>
				<option
value="sliders">COM_CONTACT_FIELD_VALUE_SLIDERS</option>
				<option
value="tabs">COM_CONTACT_FIELD_VALUE_TABS</option>
				<option
value="plain">COM_CONTACT_FIELD_VALUE_PLAIN</option>
			</field>

			<field
				name="show_contact_category"
				type="list"
				label="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_LABEL"
				description="COM_CONTACT_FIELD_CONTACT_SHOW_CATEGORY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="hide">JHIDE</option>
				<option
value="show_no_link">COM_CONTACT_FIELD_VALUE_NO_LINK</option>
				<option
value="show_with_link">COM_CONTACT_FIELD_VALUE_WITH_LINK</option>
			</field>

			<field
				name="show_contact_list"
				type="list"
				label="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_LABEL"
				description="COM_CONTACT_FIELD_CONTACT_SHOW_LIST_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field 
				name="show_name"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_NAME_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_tags"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL"
				description="COM_CONTACT_FIELD_SHOW_TAGS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_info"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_INFO_LABEL"
				description="COM_CONTACT_FIELD_SHOW_INFO_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_position"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_email"
				type="list"
				label="JGLOBAL_EMAIL"
				description="COM_CONTACT_FIELD_PARAMS_CONTACT_E_MAIL_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="add_mailto_link"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_ADD_MAILTO_LINK_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_ADD_MAILTO_LINK_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="1">JYES</option>
				<option value="0">JNO</option>
			</field>

			<field
				name="show_street_address"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_suburb"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_state"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_postcode"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_country"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_COUNTRY_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_telephone"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_TELEPHONE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_mobile"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_MOBILE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_fax"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_FAX_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_webpage"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_WEBPAGE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_image"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_IMAGE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="allow_vcard"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_VCARD_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_misc"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_MISC_INFO_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_MISC_INFO_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_articles"
				type="list"
				label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL"
				description="COM_CONTACT_FIELD_ARTICLES_SHOW_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="articles_display_num"
				type="list"
				label="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_LABEL"
				description="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_DESC"
				default=""
				useglobal="true"
				>
				<option
value="use_contact">COM_CONTACT_FIELD_VALUE_USE_CONTACT_SETTINGS</option>
				<option value="5">J5</option>
				<option value="10">J10</option>
				<option value="15">J15</option>
				<option value="20">J20</option>
				<option value="25">J25</option>
				<option value="30">J30</option>
				<option value="50">J50</option>
				<option value="75">J75</option>
				<option value="100">J100</option>
				<option value="150">J150</option>
				<option value="200">J200</option>
				<option value="250">J250</option>
				<option value="300">J300</option>
				<option value="0">JALL</option>
			</field>

			<field
				name="show_profile"
				type="list"
				label="COM_CONTACT_FIELD_PROFILE_SHOW_LABEL"
				description="COM_CONTACT_FIELD_PROFILE_SHOW_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_user_custom_fields"
				type="fieldgroups"
				label="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_LABEL"
				description="COM_CONTACT_FIELD_USER_CUSTOM_FIELDS_SHOW_DESC"
				multiple="true"
				context="com_users.user"
				>
				<option value="-1">JALL</option>
			</field>

			<field
				name="show_links"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL"
				description="COM_CONTACT_FIELD_SHOW_LINKS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="linka_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKA_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkb_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKB_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkc_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKC_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkd_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKD_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linke_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKE_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>
		</fieldset>

		<!-- Form options. -->
		<fieldset name="Contact_Form"
			label="COM_CONTACT_MAIL_FIELDSET_LABEL"
		>

			<field
				name="show_email_form"
				type="list"
				label="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_LABEL"
				description="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_email_copy"
				type="list"
				label="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_LABEL"
				description="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="validate_session"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JNO</option>
				<option value="1">JYES</option>
			</field>

			<field
				name="custom_reply"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JNO</option>
				<option value="1">JYES</option>
			</field>

			<field
				name="redirect"
				type="text"
				label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_REDIRECT_DESC"
				size="30"
				useglobal="true"
			/>
		</fieldset>
	</fields>
</metadata>
PK�t�[(CG�]]
contact/tmpl/default_address.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Marker_class: Class based on the selection of text, none, or icons
 * jicon-text, jicon-none, jicon-icon
 */
?>
<dl class="contact-address dl-horizontal"
itemprop="address" itemscope
itemtype="https://schema.org/PostalAddress">
	<?php if (($this->params->get('address_check') > 0)
&&
		($this->contact->address || $this->contact->suburb  ||
$this->contact->state || $this->contact->country ||
$this->contact->postcode)) : ?>
		<dt>
			<span class="<?php echo
$this->params->get('marker_class'); ?>">
				<?php echo $this->params->get('marker_address');
?>
			</span>
		</dt>

		<?php if ($this->contact->address &&
$this->params->get('show_street_address')) : ?>
			<dd>
				<span class="contact-street"
itemprop="streetAddress">
					<?php echo nl2br($this->contact->address); ?>
					<br />
				</span>
			</dd>
		<?php endif; ?>

		<?php if ($this->contact->suburb &&
$this->params->get('show_suburb')) : ?>
			<dd>
				<span class="contact-suburb"
itemprop="addressLocality">
					<?php echo $this->contact->suburb; ?>
					<br />
				</span>
			</dd>
		<?php endif; ?>
		<?php if ($this->contact->state &&
$this->params->get('show_state')) : ?>
			<dd>
				<span class="contact-state"
itemprop="addressRegion">
					<?php echo $this->contact->state; ?>
					<br />
				</span>
			</dd>
		<?php endif; ?>
		<?php if ($this->contact->postcode &&
$this->params->get('show_postcode')) : ?>
			<dd>
				<span class="contact-postcode"
itemprop="postalCode">
					<?php echo $this->contact->postcode; ?>
					<br />
				</span>
			</dd>
		<?php endif; ?>
		<?php if ($this->contact->country &&
$this->params->get('show_country')) : ?>
		<dd>
			<span class="contact-country"
itemprop="addressCountry">
				<?php echo $this->contact->country; ?>
				<br />
			</span>
		</dd>
		<?php endif; ?>
	<?php endif; ?>

<?php if ($this->contact->email_to &&
$this->params->get('show_email')) : ?>
	<dt>
		<span class="<?php echo
$this->params->get('marker_class'); ?>"
itemprop="email">
			<?php echo nl2br($this->params->get('marker_email'));
?>
		</span>
	</dt>
	<dd>
		<span class="contact-emailto">
			<?php echo $this->contact->email_to; ?>
		</span>
	</dd>
<?php endif; ?>

<?php if ($this->contact->telephone &&
$this->params->get('show_telephone')) : ?>
	<dt>
		<span class="<?php echo
$this->params->get('marker_class'); ?>">
			<?php echo $this->params->get('marker_telephone');
?>
		</span>
	</dt>
	<dd>
		<span class="contact-telephone"
itemprop="telephone">
			<?php echo $this->contact->telephone; ?>
		</span>
	</dd>
<?php endif; ?>
<?php if ($this->contact->fax &&
$this->params->get('show_fax')) : ?>
	<dt>
		<span class="<?php echo
$this->params->get('marker_class'); ?>">
			<?php echo $this->params->get('marker_fax'); ?>
		</span>
	</dt>
	<dd>
		<span class="contact-fax" itemprop="faxNumber">
		<?php echo $this->contact->fax; ?>
		</span>
	</dd>
<?php endif; ?>
<?php if ($this->contact->mobile &&
$this->params->get('show_mobile')) : ?>
	<dt>
		<span class="<?php echo
$this->params->get('marker_class'); ?>">
			<?php echo $this->params->get('marker_mobile'); ?>
		</span>
	</dt>
	<dd>
		<span class="contact-mobile"
itemprop="telephone">
			<?php echo $this->contact->mobile; ?>
		</span>
	</dd>
<?php endif; ?>
<?php if ($this->contact->webpage &&
$this->params->get('show_webpage')) : ?>
	<dt>
		<span class="<?php echo
$this->params->get('marker_class'); ?>">
		</span>
	</dt>
	<dd>
		<span class="contact-webpage">
			<a href="<?php echo $this->contact->webpage;
?>" target="_blank" rel="noopener noreferrer"
itemprop="url">
			<?php echo JStringPunycode::urlToUTF8($this->contact->webpage);
?></a>
		</span>
	</dd>
<?php endif; ?>
</dl>
PK�t�[9�}..!contact/tmpl/default_articles.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

JLoader::register('ContentHelperRoute', JPATH_SITE .
'/components/com_content/helpers/route.php');

?>
<?php if ($this->params->get('show_articles')) : ?>
<div class="contact-articles">
	<ul class="nav nav-tabs nav-stacked">
		<?php foreach ($this->item->articles as $article) : ?>
			<li>
				<?php echo JHtml::_('link',
JRoute::_(ContentHelperRoute::getArticleRoute($article->slug,
$article->catid, $article->language)),
htmlspecialchars($article->title, ENT_COMPAT, 'UTF-8')); ?>
			</li>
		<?php endforeach; ?>
	</ul>
</div>
<?php endif; ?>
PK�t�[�C���contact/tmpl/default_form.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

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

?>
<div class="contact-form">
	<form id="contact-form" action="<?php echo
JRoute::_('index.php'); ?>" method="post"
class="form-validate form-horizontal well">
		<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
			<?php if ($fieldset->name === 'captcha' &&
!$this->captchaEnabled) : ?>
				<?php continue; ?>
			<?php endif; ?>
			<?php $fields = $this->form->getFieldset($fieldset->name);
?>
			<?php if (count($fields)) : ?>
				<fieldset>
					<?php if (isset($fieldset->label) && ($legend =
trim(JText::_($fieldset->label))) !== '') : ?>
						<legend><?php echo $legend; ?></legend>
					<?php endif; ?>
					<?php foreach ($fields as $field) : ?>
						<?php echo $field->renderField(); ?>
					<?php endforeach; ?>
				</fieldset>
			<?php endif; ?>
		<?php endforeach; ?>
		<div class="control-group">
			<div class="controls">
				<button class="btn btn-primary validate"
type="submit"><?php echo
JText::_('COM_CONTACT_CONTACT_SEND'); ?></button>
				<input type="hidden" name="option"
value="com_contact" />
				<input type="hidden" name="task"
value="contact.submit" />
				<input type="hidden" name="return"
value="<?php echo $this->return_page; ?>" />
				<input type="hidden" name="id"
value="<?php echo $this->contact->slug; ?>" />
				<?php echo JHtml::_('form.token'); ?>
			</div>
		</div>
	</form>
</div>
PK�t�[�\���contact/tmpl/default_links.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;
?>

<?php if ($this->params->get('presentation_style') ===
'sliders') : ?>
	<?php echo JHtml::_('bootstrap.addSlide',
'slide-contact', JText::_('COM_CONTACT_LINKS'),
'display-links'); ?>
<?php endif; ?>
<?php if ($this->params->get('presentation_style') ===
'tabs') : ?>
	<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'display-links', JText::_('COM_CONTACT_LINKS')); ?>
<?php endif; ?>
<?php if ($this->params->get('presentation_style') ===
'plain') : ?>
	<?php echo '<h3>' .
JText::_('COM_CONTACT_LINKS') . '</h3>'; ?>
<?php endif; ?>

<div class="contact-links">
	<ul class="nav nav-tabs nav-stacked">
		<?php
		// Letters 'a' to 'e'
		foreach (range('a', 'e') as $char) :
			$link = $this->contact->params->get('link' . $char);
			$label = $this->contact->params->get('link' . $char .
'_name');

			if (!$link) :
				continue;
			endif;

			// Add 'http://' if not present
			$link = (0 === strpos($link, 'http')) ? $link :
'http://' . $link;

			// If no label is present, take the link
			$label = $label ?: $link;
			?>
			<li>
				<a href="<?php echo $link; ?>"
itemprop="url">
					<?php echo $label; ?>
				</a>
			</li>
		<?php endforeach; ?>
	</ul>
</div>

<?php if ($this->params->get('presentation_style') ===
'sliders') : ?>
	<?php echo JHtml::_('bootstrap.endSlide'); ?>
<?php endif; ?>
<?php if ($this->params->get('presentation_style') ===
'tabs') : ?>
	<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>
PK�t�[��� bb
contact/tmpl/default_profile.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;
?>
<?php if (JPluginHelper::isEnabled('user',
'profile')) :
	$fields = $this->item->profile->getFieldset('profile');
?>
	<div class="contact-profile"
id="users-profile-custom">
		<dl class="dl-horizontal">
			<?php foreach ($fields as $profile) :
				if ($profile->value) :
					echo '<dt>' . $profile->label .
'</dt>';
					$profile->text = htmlspecialchars($profile->value, ENT_COMPAT,
'UTF-8');

					switch ($profile->id) :
						case 'profile_website':
							$v_http = substr($profile->value, 0, 4);

							if ($v_http === 'http') :
								echo '<dd><a href="' . $profile->text .
'">' . JStringPunycode::urlToUTF8($profile->text) .
'</a></dd>';
							else :
								echo '<dd><a href="http://' .
$profile->text . '">' .
JStringPunycode::urlToUTF8($profile->text) .
'</a></dd>';
							endif;
							break;

						case 'profile_dob':
							echo '<dd>' . JHtml::_('date',
$profile->text, JText::_('DATE_FORMAT_LC4'), false) .
'</dd>';
						break;

						default:
							echo '<dd>' . $profile->text .
'</dd>';
							break;
					endswitch;
				endif;
			endforeach; ?>
		</dl>
	</div>
<?php endif; ?>
PK�t�[P�e		+contact/tmpl/default_user_custom_fields.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

$params             = $this->item->params;
$presentation_style = $params->get('presentation_style');

$displayGroups      = $params->get('show_user_custom_fields');
$userFieldGroups    = array();
?>

<?php if (!$displayGroups || !$this->contactUser) : ?>
	<?php return; ?>
<?php endif; ?>

<?php foreach ($this->contactUser->jcfields as $field) : ?>
	<?php if (!in_array('-1', $displayGroups) &&
(!$field->group_id || !in_array($field->group_id, $displayGroups))) :
?>
		<?php continue; ?>
	<?php endif; ?>
	<?php if (!key_exists($field->group_title, $userFieldGroups)) :
?>
		<?php $userFieldGroups[$field->group_title] = array(); ?>
	<?php endif; ?>
	<?php $userFieldGroups[$field->group_title][] = $field; ?>
<?php endforeach; ?>

<?php foreach ($userFieldGroups as $groupTitle => $fields) : ?>
	<?php $id = JApplicationHelper::stringURLSafe($groupTitle); ?>
	<?php if ($presentation_style == 'sliders') : ?>
		<?php echo JHtml::_('bootstrap.addSlide',
'slide-contact', $groupTitle ?:
JText::_('COM_CONTACT_USER_FIELDS'), 'display-' . $id);
?>
	<?php elseif ($presentation_style == 'tabs') : ?>
		<?php echo JHtml::_('bootstrap.addTab', 'myTab',
'display-' . $id, $groupTitle ?:
JText::_('COM_CONTACT_USER_FIELDS')); ?>
	<?php elseif ($presentation_style == 'plain') : ?>
		<?php echo '<h3>' . ($groupTitle ?:
JText::_('COM_CONTACT_USER_FIELDS')) . '</h3>';
?>
	<?php endif; ?>

	<div class="contact-profile"
id="user-custom-fields-<?php echo $id; ?>">
		<dl class="dl-horizontal">
		<?php foreach ($fields as $field) : ?>
			<?php if (!$field->value) : ?>
				<?php continue; ?>
			<?php endif; ?>

			<?php if ($field->params->get('showlabel')) : ?>
				<?php echo '<dt>' . JText::_($field->label) .
'</dt>'; ?>
			<?php endif; ?>

			<?php echo '<dd>' . $field->value .
'</dd>'; ?>
		<?php endforeach; ?>
		</dl>
	</div>

	<?php if ($presentation_style == 'sliders') : ?>
		<?php echo JHtml::_('bootstrap.endSlide'); ?>
	<?php elseif ($presentation_style == 'tabs') : ?>
		<?php echo JHtml::_('bootstrap.endTab'); ?>
	<?php endif; ?>
<?php endforeach; ?>
PK�t�[��	a99contact/view.html.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * HTML Contact View class for the Contact component
 *
 * @since  1.5
 */
class ContactViewContact extends JViewLegacy
{
	/**
	 * The item model state
	 *
	 * @var    \Joomla\Registry\Registry
	 * @since  1.6
	 */
	protected $state;

	/**
	 * The form object for the contact item
	 *
	 * @var    JForm
	 * @since  1.6
	 */
	protected $form;

	/**
	 * The item object details
	 *
	 * @var    JObject
	 * @since  1.6
	 */
	protected $item;

	/**
	 * The page to return to on submission
	 *
	 * @var         string
	 * @since       1.6
	 * @deprecated  4.0  Variable not used
	 */
	protected $return_page;

	/**
	 * Should we show a captcha form for the submission of the contact
request?
	 *
	 * @var   bool
	 * @since 3.6.3
	 */
	protected $captchaEnabled = false;

	/**
	 * 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.
	 */
	public function display($tpl = null)
	{
		$app = JFactory::getApplication();
		$user = JFactory::getUser();

		$item = $this->get('Item');
		$state = $this->get('State');
		$contacts = array();

		// Get submitted values
		$data = $app->getUserState('com_contact.contact.data',
array());

		// Add catid for selecting custom fields
		$data['catid'] = $item->catid;

		$app->setUserState('com_contact.contact.data', $data);

		$this->form = $this->get('Form');

		$params = $state->get('params');

		$temp = clone $params;

		$active = $app->getMenu()->getActive();

		if ($active)
		{
			// If the current view is the active item and a contact view for this
contact, then the menu item params take priority
			if (strpos($active->link, 'view=contact') &&
strpos($active->link, '&id=' . (int) $item->id))
			{
				// $item->params are the contact params, $temp are the menu item
params
				// Merge so that the menu item params take priority
				$item->params->merge($temp);
			}
			else
			{
				// Current view is not a single contact, so the contact params take
priority here
				// Merge the menu item params with the contact params so that the
contact params take priority
				$temp->merge($item->params);
				$item->params = $temp;
			}
		}
		else
		{
			// Merge so that contact params take priority
			$temp->merge($item->params);
			$item->params = $temp;
		}

		// Collect extra contact information when this information is required
		if ($item &&
$item->params->get('show_contact_list'))
		{
			// Get Category Model data
			$categoryModel = JModelLegacy::getInstance('Category',
'ContactModel', array('ignore_request' => true));

			$categoryModel->setState('category.id', $item->catid);
			$categoryModel->setState('list.ordering',
'a.name');
			$categoryModel->setState('list.direction',
'asc');
			$categoryModel->setState('filter.published', 1);

			$contacts = $categoryModel->getItems();
		}

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			JError::raiseWarning(500, implode("\n", $errors));

			return false;
		}

		// Check if access is not public
		$groups = $user->getAuthorisedViewLevels();

		$return = '';

		if ((!in_array($item->access, $groups)) ||
(!in_array($item->category_access, $groups)))
		{
			$app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'),
'error');
			$app->setHeader('status', 403, true);

			return false;
		}

		$options['category_id'] = $item->catid;
		$options['order by']    = 'a.default_con DESC, a.ordering
ASC';

		/**
		 * Handle email cloaking
		 *
		 * Keep a copy of the raw email address so it can
		 * still be accessed in the layout if needed.
		 */
		$item->email_raw = $item->email_to;

		if ($item->email_to &&
$item->params->get('show_email'))
		{
			$item->email_to = JHtml::_('email.cloak',
$item->email_to, (bool)
$item->params->get('add_mailto_link', true));
		}

		if ($item->params->get('show_street_address') ||
$item->params->get('show_suburb') ||
$item->params->get('show_state')
			|| $item->params->get('show_postcode') ||
$item->params->get('show_country'))
		{
			if (!empty($item->address) || !empty($item->suburb) ||
!empty($item->state) || !empty($item->country) ||
!empty($item->postcode))
			{
				$item->params->set('address_check', 1);
			}
		}
		else
		{
			$item->params->set('address_check', 0);
		}

		// Manage the display mode for contact detail groups
		switch ($item->params->get('contact_icons'))
		{
			case 1 :
				// Text
				$item->params->set('marker_address',  
JText::_('COM_CONTACT_ADDRESS') . ': ');
				$item->params->set('marker_email',    
JText::_('JGLOBAL_EMAIL') . ': ');
				$item->params->set('marker_telephone',
JText::_('COM_CONTACT_TELEPHONE') . ': ');
				$item->params->set('marker_fax',      
JText::_('COM_CONTACT_FAX') . ': ');
				$item->params->set('marker_mobile',   
JText::_('COM_CONTACT_MOBILE') . ': ');
				$item->params->set('marker_misc',     
JText::_('COM_CONTACT_OTHER_INFORMATION') . ': ');
				$item->params->set('marker_class',    
'jicons-text');
				break;

			case 2 :
				// None
				$item->params->set('marker_address',   '');
				$item->params->set('marker_email',     '');
				$item->params->set('marker_telephone', '');
				$item->params->set('marker_mobile',    '');
				$item->params->set('marker_fax',       '');
				$item->params->set('marker_misc',      '');
				$item->params->set('marker_class',    
'jicons-none');
				break;

			default :
				if ($item->params->get('icon_address'))
				{
					$image1 = JHtml::_('image',
$item->params->get('icon_address',
'con_address.png'), JText::_('COM_CONTACT_ADDRESS') .
': ', null, false);
				}
				else
				{
					$image1 = JHtml::_(
						'image', 'contacts/' .
$item->params->get('icon_address',
'con_address.png'), JText::_('COM_CONTACT_ADDRESS') .
': ', null, true
					);
				}

				if ($item->params->get('icon_email'))
				{
					$image2 = JHtml::_('image',
$item->params->get('icon_email',
'emailButton.png'), JText::_('JGLOBAL_EMAIL') . ':
', null, false);
				}
				else
				{
					$image2 = JHtml::_('image', 'contacts/' .
$item->params->get('icon_email',
'emailButton.png'), JText::_('JGLOBAL_EMAIL') . ':
', null, true);
				}

				if ($item->params->get('icon_telephone'))
				{
					$image3 = JHtml::_('image',
$item->params->get('icon_telephone',
'con_tel.png'), JText::_('COM_CONTACT_TELEPHONE') .
': ', null, false);
				}
				else
				{
					$image3 = JHtml::_(
						'image', 'contacts/' .
$item->params->get('icon_telephone',
'con_tel.png'), JText::_('COM_CONTACT_TELEPHONE') .
': ', null, true
					);
				}

				if ($item->params->get('icon_fax'))
				{
					$image4 = JHtml::_('image',
$item->params->get('icon_fax', 'con_fax.png'),
JText::_('COM_CONTACT_FAX') . ': ', null, false);
				}
				else
				{
					$image4 = JHtml::_('image', 'contacts/' .
$item->params->get('icon_fax', 'con_fax.png'),
JText::_('COM_CONTACT_FAX') . ': ', null, true);
				}

				if ($item->params->get('icon_misc'))
				{
					$image5 = JHtml::_('image',
$item->params->get('icon_misc', 'con_info.png'),
JText::_('COM_CONTACT_OTHER_INFORMATION') . ': ', null,
false);
				}
				else
				{
					$image5 = JHtml::_(
						'image',
						'contacts/' .
$item->params->get('icon_misc', 'con_info.png'),
						JText::_('COM_CONTACT_OTHER_INFORMATION') . ': ',
null, true
					);
				}

				if ($item->params->get('icon_mobile'))
				{
					$image6 = JHtml::_('image',
$item->params->get('icon_mobile',
'con_mobile.png'), JText::_('COM_CONTACT_MOBILE') .
': ', null, false);
				}
				else
				{
					$image6 = JHtml::_(
						'image', 'contacts/' .
$item->params->get('icon_mobile',
'con_mobile.png'), JText::_('COM_CONTACT_MOBILE') .
': ', null, true
					);
				}

				$item->params->set('marker_address',   $image1);
				$item->params->set('marker_email',     $image2);
				$item->params->set('marker_telephone', $image3);
				$item->params->set('marker_fax',       $image4);
				$item->params->set('marker_misc',      $image5);
				$item->params->set('marker_mobile',    $image6);
				$item->params->set('marker_class',    
'jicons-icons');
				break;
		}

		// Add links to contacts
		if ($item->params->get('show_contact_list') &&
count($contacts) > 1)
		{
			foreach ($contacts as &$contact)
			{
				$contact->link =
JRoute::_(ContactHelperRoute::getContactRoute($contact->slug,
$contact->catid), false);
			}

			$item->link =
JRoute::_(ContactHelperRoute::getContactRoute($item->slug,
$item->catid), false);
		}

		// Process the content plugins
		JPluginHelper::importPlugin('content');

		$dispatcher	= JEventDispatcher::getInstance();

		$offset = $state->get('list.offset');

		// Fix for where some plugins require a text attribute
		$item->text = null;

		if (!empty($item->misc))
		{
			$item->text = $item->misc;
		}

		$dispatcher->trigger('onContentPrepare',
array('com_contact.contact', &$item, &$item->params,
$offset));

		// Store the events for later
		$item->event = new stdClass;

		$results = $dispatcher->trigger('onContentAfterTitle',
array('com_contact.contact', &$item, &$item->params,
$offset));
		$item->event->afterDisplayTitle = trim(implode("\n",
$results));

		$results = $dispatcher->trigger('onContentBeforeDisplay',
array('com_contact.contact', &$item, &$item->params,
$offset));
		$item->event->beforeDisplayContent = trim(implode("\n",
$results));

		$results = $dispatcher->trigger('onContentAfterDisplay',
array('com_contact.contact', &$item, &$item->params,
$offset));
		$item->event->afterDisplayContent = trim(implode("\n",
$results));

		if (!empty($item->text))
		{
			$item->misc = $item->text;
		}

		$contactUser = null;

		if ($item->params->get('show_user_custom_fields')
&& $item->user_id && $contactUser =
JFactory::getUser($item->user_id))
		{
			$contactUser->text = '';

			JEventDispatcher::getInstance()->trigger('onContentPrepare',
array ('com_users.user', &$contactUser,
&$item->params, 0));

			if (!isset($contactUser->jcfields))
			{
				$contactUser->jcfields = array();
			}
		}

		// Escape strings for HTML output
		$this->pageclass_sfx =
htmlspecialchars($item->params->get('pageclass_sfx'));

		$this->contact     = &$item;
		$this->params      = &$item->params;
		$this->return      = &$return;
		$this->state       = &$state;
		$this->item        = &$item;
		$this->user        = &$user;
		$this->contacts    = &$contacts;
		$this->contactUser = $contactUser;

		$item->tags = new JHelperTags;
		$item->tags->getItemTags('com_contact.contact',
$this->item->id);

		// Override the layout only if this is not the active menu item
		// If it is the active menu item, then the view and item id will match
		if ((!$active) || ((strpos($active->link, 'view=contact')
=== false) || (strpos($active->link, '&id=' . (string)
$this->item->id) === false)))
		{
			if (($layout = $item->params->get('contact_layout')))
			{
				$this->setLayout($layout);
			}
		}
		elseif (isset($active->query['layout']))
		{
			// We need to set the layout in case this is an alternative menu item
(with an alternative layout)
			$this->setLayout($active->query['layout']);
		}

		$model = $this->getModel();
		$model->hit();

		$captchaSet = $item->params->get('captcha',
JFactory::getApplication()->get('captcha', '0'));

		foreach (JPluginHelper::getPlugin('captcha') as $plugin)
		{
			if ($captchaSet === $plugin->name)
			{
				$this->captchaEnabled = true;
				break;
			}
		}

		$this->_prepareDocument();

		return parent::display($tpl);
	}

	/**
	 * Prepares the document
	 *
	 * @return  void
	 *
	 * @since   1.6
	 */
	protected function _prepareDocument()
	{
		$app     = JFactory::getApplication();
		$menus   = $app->getMenu();
		$pathway = $app->getPathway();
		$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::_('COM_CONTACT_DEFAULT_PAGE_TITLE'));
		}

		$title = $this->params->get('page_title', '');

		$id = (int) @$menu->query['id'];

		// If the menu item does not concern this contact
		if ($menu && (!isset($menu->query['option']) ||
$menu->query['option'] !== 'com_contact' ||
$menu->query['view'] !== 'contact'
			|| $id != $this->item->id))
		{
			// If this is not a single contact menu item, set the page title to the
contact title
			if ($this->item->name)
			{
				$title = $this->item->name;
			}

			$path = array(array('title' => $this->contact->name,
'link' => ''));
			$category =
JCategories::getInstance('Contact')->get($this->contact->catid);

			while ($category && (!isset($menu->query['option'])
|| $menu->query['option'] !== 'com_contact' ||
$menu->query['view'] === 'contact'
				|| $id != $category->id) && $category->id > 1)
			{
				$path[] = array('title' => $category->title,
'link' =>
ContactHelperRoute::getCategoryRoute($this->contact->catid));
				$category = $category->getParent();
			}

			$path = array_reverse($path);

			foreach ($path as $item)
			{
				$pathway->addItem($item['title'],
$item['link']);
			}
		}

		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'));
		}

		if (empty($title))
		{
			$title = $this->item->name;
		}

		$this->document->setTitle($title);

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

		if ($this->item->metakey)
		{
			$this->document->setMetadata('keywords',
$this->item->metakey);
		}
		elseif ($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'));
		}

		$mdata = $this->item->metadata->toArray();

		foreach ($mdata as $k => $v)
		{
			if ($v)
			{
				$this->document->setMetadata($k, $v);
			}
		}
	}
}
PK�t�[m
���contact/view.vcf.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * View to create a VCF for a contact item
 *
 * @since  1.6
 */
class ContactViewContact extends JViewLegacy
{
	/**
	 * The item model state
	 *
	 * @var         \Joomla\Registry\Registry
	 * @deprecated  4.0  Variable not used
	 */
	protected $state;

	/**
	 * The contact item
	 *
	 * @var   JObject
	 */
	protected $item;

	/**
	 * 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.
	 */
	public function display($tpl = null)
	{
		// Get model data.
		$item = $this->get('Item');

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			JError::raiseWarning(500, implode("\n", $errors));

			return false;
		}

		JFactory::getDocument()->setMimeEncoding('text/directory',
true);

		// Compute lastname, firstname and middlename
		$item->name = trim($item->name);

		// "Lastname, Firstname Midlename" format support
		// e.g. "de Gaulle, Charles"
		$namearray = explode(',', $item->name);

		if (count($namearray) > 1)
		{
			$lastname = $namearray[0];
			$card_name = $lastname;
			$name_and_midname = trim($namearray[1]);

			$firstname = '';

			if (!empty($name_and_midname))
			{
				$namearray = explode(' ', $name_and_midname);

				$firstname = $namearray[0];
				$middlename = (count($namearray) > 1) ? $namearray[1] :
'';
				$card_name = $firstname . ' ' . ($middlename ? $middlename .
' ' : '') . $card_name;
			}
		}
		// "Firstname Middlename Lastname" format support
		else
		{
			$namearray = explode(' ', $item->name);

			$middlename = (count($namearray) > 2) ? $namearray[1] : '';
			$firstname = array_shift($namearray);
			$lastname = count($namearray) ? end($namearray) : '';
			$card_name = $firstname . ($middlename ? ' ' . $middlename :
'') . ($lastname ? ' ' . $lastname : '');
		}

		$rev = date('c', strtotime($item->modified));

		JFactory::getApplication()->setHeader('Content-disposition',
'attachment; filename="' . $card_name .
'.vcf"', true);

		$vcard = array();
		$vcard[] .= 'BEGIN:VCARD';
		$vcard[] .= 'VERSION:3.0';
		$vcard[]  = 'N:' . $lastname . ';' . $firstname .
';' . $middlename;
		$vcard[]  = 'FN:' . $item->name;
		$vcard[]  = 'TITLE:' . $item->con_position;
		$vcard[]  = 'TEL;TYPE=WORK,VOICE:' . $item->telephone;
		$vcard[]  = 'TEL;TYPE=WORK,FAX:' . $item->fax;
		$vcard[]  = 'TEL;TYPE=WORK,MOBILE:' . $item->mobile;
		$vcard[]  = 'ADR;TYPE=WORK:;;' . $item->address .
';' . $item->suburb . ';' . $item->state .
';' . $item->postcode . ';' . $item->country;
		$vcard[]  = 'LABEL;TYPE=WORK:' . $item->address .
"\n" . $item->suburb . "\n" . $item->state .
"\n" . $item->postcode . "\n" . $item->country;
		$vcard[]  = 'EMAIL;TYPE=PREF,INTERNET:' . $item->email_to;
		$vcard[]  = 'URL:' . $item->webpage;
		$vcard[]  = 'REV:' . $rev . 'Z';
		$vcard[]  = 'END:VCARD';

		echo implode("\n", $vcard);
	}
}
PK�t�[]#�?zzfeatured/tmpl/default.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');

// If the page class is defined, add to class as suffix.
// It will be a separate class if the user starts it with a space
?>
<div class="blog-featured<?php echo $this->pageclass_sfx;
?>">
<?php if ($this->params->get('show_page_heading') != 0 )
: ?>
	<h1>
	<?php echo
$this->escape($this->params->get('page_heading')); ?>
	</h1>
<?php endif; ?>

<?php echo $this->loadTemplate('items'); ?>

<?php if ($this->params->def('show_pagination', 2) == 1 
|| ($this->params->get('show_pagination') == 2 &&
$this->pagination->pagesTotal > 1)) : ?>
	<div class="pagination">

		<?php if
($this->params->def('show_pagination_results', 1)) : ?>
			<p class="counter">
				<?php echo $this->pagination->getPagesCounter(); ?>
			</p>
		<?php endif; ?>

		<?php echo $this->pagination->getPagesLinks(); ?>
	</div>
<?php endif; ?>
</div>
PK�t�[hw�П4�4featured/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8"?>

<metadata>
	<layout title="COM_CONTACT_FEATURED_VIEW_DEFAULT_TITLE"
option="COM_CONTACT_FEATURED_VIEW_DEFAULT_OPTION">
		<help
			key = "JHELP_MENUS_MENU_ITEM_CONTACT_FEATURED"
		/>
		<message>
			<![CDATA[COM_CONTACT_FEATURED_VIEW_DEFAULT_DESC]]>
		</message>
	</layout>




	<!-- Add fields to the parameters object for the layout. -->
<fields name="params">
	<fieldset name="advanced"
label="JGLOBAL_LIST_LAYOUT_OPTIONS">

			<field
				name="spacer"
				type="spacer"
				label="JGLOBAL_SUBSLIDER_DRILL_CATEGORIES_LABEL"
				class="text"
			/>

			<field
				name="show_pagination_limit"
				type="list"
				label="JGLOBAL_DISPLAY_SELECT_LABEL"
				description="JGLOBAL_DISPLAY_SELECT_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_headings"
				type="list"
				label="JGLOBAL_SHOW_HEADINGS_LABEL"
				description="JGLOBAL_SHOW_HEADINGS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

		<field
			name="show_position_headings"
			type="list"
			label="COM_CONTACT_FIELD_CONFIG_POSITION_LABEL"
			description="COM_CONTACT_FIELD_CONFIG_POSITION_DESC"
			useglobal="true"
			>
			<option value="0">JHIDE</option>
			<option value="1">JSHOW</option>
		</field>

		<field
			name="show_email_headings"
			type="list"
			label="JGLOBAL_EMAIL"
			description="COM_CONTACT_FIELD_CONFIG_EMAIL_DESC"
			useglobal="true"
			>
			<option value="0">JHIDE</option>
			<option value="1">JSHOW</option>
		</field>

		<field
			name="show_telephone_headings"
			type="list"
			label="COM_CONTACT_FIELD_CONFIG_PHONE_LABEL"
			description="COM_CONTACT_FIELD_CONFIG_PHONE_DESC"
			useglobal="true"
			>
			<option value="0">JHIDE</option>
			<option value="1">JSHOW</option>
		</field>

		<field
			name="show_mobile_headings"
			type="list"
			label="COM_CONTACT_FIELD_CONFIG_MOBILE_LABEL"
			description="COM_CONTACT_FIELD_CONFIG_MOBILE_DESC"
			useglobal="true"
			>
			<option value="0">JHIDE</option>
			<option value="1">JSHOW</option>
		</field>

		<field
			name="show_fax_headings"
			type="list"
			label="COM_CONTACT_FIELD_CONFIG_FAX_LABEL"
			description="COM_CONTACT_FIELD_CONFIG_FAX_DESC"
			useglobal="true"
			>
			<option value="0">JHIDE</option>
			<option value="1">JSHOW</option>
		</field>

		<field
			name="show_suburb_headings"
			type="list"
			label="COM_CONTACT_FIELD_CONFIG_SUBURB_LABEL"
			description="COM_CONTACT_FIELD_CONFIG_SUBURB_DESC"
			useglobal="true"
			>
			<option value="0">JHIDE</option>
			<option value="1">JSHOW</option>
		</field>

		<field
			name="show_state_headings"
			type="list"
			label="COM_CONTACT_FIELD_CONFIG_STATE_LABEL"
			description="COM_CONTACT_FIELD_CONFIG_STATE_DESC"
			useglobal="true"
			>
			<option value="0">JHIDE</option>
			<option value="1">JSHOW</option>
		</field>

		<field
			name="show_country_headings"
			type="list"
			label="COM_CONTACT_FIELD_CONFIG_COUNTRY_LABEL"
			description="COM_CONTACT_FIELD_CONFIG_COUNTRY_DESC"
			useglobal="true"
			>
			<option value="0">JHIDE</option>
			<option value="1">JSHOW</option>
		</field>

		<field
			name="show_pagination"
			type="list"
			label="JGLOBAL_PAGINATION_LABEL"
			description="JGLOBAL_PAGINATION_DESC"
			useglobal="true"
			>
			<option value="0">JHIDE</option>
			<option value="1">JSHOW</option>
			<option value="2">JGLOBAL_AUTO</option>
		</field>

		<field
			name="show_pagination_results"
			type="list"
			label="JGLOBAL_PAGINATION_RESULTS_LABEL"
			description="JGLOBAL_PAGINATION_RESULTS_DESC"
			useglobal="true"
			>
			<option value="0">JHIDE</option>
			<option value="1">JSHOW</option>
		</field>

	</fieldset>

	<fieldset name="contact"
label="COM_CONTACT_FIELDSET_CONTACT_LABEL">

			<field
				name="presentation_style"
				type="list"
				label="COM_CONTACT_FIELD_PRESENTATION_LABEL"
				description="COM_CONTACT_FIELD_PRESENTATION_DESC"
				useglobal="true"
				>
				<option
value="sliders">COM_CONTACT_FIELD_VALUE_SLIDERS</option>
				<option
value="tabs">COM_CONTACT_FIELD_VALUE_TABS</option>
				<option
value="plain">COM_CONTACT_FIELD_VALUE_PLAIN</option>
			</field>

			<field
				name="show_tags"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_TAGS_LABEL"
				description="COM_CONTACT_FIELD_SHOW_TAGS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_info"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_INFO_LABEL"
				description="COM_CONTACT_FIELD_SHOW_INFO_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_name"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_NAME_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_NAME_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_position"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_CONTACT_POSITION_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>

			</field>

			<field
				name="show_email"
				type="list"
				label="JGLOBAL_EMAIL"
				description="COM_CONTACT_FIELD_PARAMS_CONTACT_E_MAIL_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_street_address"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_STREET_ADDRESS_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_suburb"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_TOWN-SUBURB_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_state"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_STATE-COUNTY_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_postcode"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_POST-ZIP_CODE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_country"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_COUNTRY_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_COUNTRY_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_telephone"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_TELEPHONE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_TELEPHONE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_mobile"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_MOBILE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_MOBILE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_fax"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_FAX_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_FAX_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_webpage"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_WEBPAGE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_WEBPAGE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_image"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_IMAGE_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_IMAGE_DESC"
				useglobal="true"
				showon="show_info:1"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="allow_vcard"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_VCARD_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_VCARD_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_misc"
				type="list"
				label="COM_CONTACT_FIELD_PARAMS_MISC_INFO_LABEL"
				description="COM_CONTACT_FIELD_PARAMS_MISC_INFO_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_articles"
				type="list"
				label="COM_CONTACT_FIELD_ARTICLES_SHOW_LABEL"
				description="COM_CONTACT_FIELD_ARTICLES_SHOW_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="articles_display_num"
				type="list"
				label="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_LABEL"
				description="COM_CONTACT_FIELD_ARTICLES_DISPLAY_NUM_DESC"
				default=""
				useglobal="true"
				>
				<option
value="use_contact">COM_CONTACT_FIELD_VALUE_USE_CONTACT_SETTINGS</option>
				<option value="5">J5</option>
				<option value="10">J10</option>
				<option value="15">J15</option>
				<option value="20">J20</option>
				<option value="25">J25</option>
				<option value="30">J30</option>
				<option value="50">J50</option>
				<option value="75">J75</option>
				<option value="100">J100</option>
				<option value="150">J150</option>
				<option value="200">J200</option>
				<option value="250">J250</option>
				<option value="300">J300</option>
				<option value="0">JALL</option>
			</field>

			<field
				name="show_links"
				type="list"
				label="COM_CONTACT_FIELD_SHOW_LINKS_LABEL"
				description="COM_CONTACT_FIELD_SHOW_LINKS_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="linka_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKA_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkb_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKB_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkc_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKC_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linkd_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKD_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>

			<field
				name="linke_name"
				type="text"
				label="COM_CONTACT_FIELD_LINKE_NAME_LABEL"
				description="COM_CONTACT_FIELD_LINK_NAME_DESC"
				size="30"
				useglobal="true"
			/>
	</fieldset>

	<fieldset name="Contact_Form"
label="COM_CONTACT_FIELDSET_CONTACTFORM_LABEL">

			<field
				name="show_email_form"
				type="list"
				label="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_LABEL"
				description="COM_CONTACT_FIELD_EMAIL_SHOW_FORM_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="show_email_copy"
				type="list"
				label="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_LABEL"
				description="COM_CONTACT_FIELD_EMAIL_EMAIL_COPY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JHIDE</option>
				<option value="1">JSHOW</option>
			</field>

			<field
				name="validate_session"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_SESSION_CHECK_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JNO</option>
				<option value="1">JYES</option>
			</field>

			<field
				name="custom_reply"
				type="list"
				label="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_CUSTOM_REPLY_DESC"
				useglobal="true"
				class="chzn-color"
				>
				<option value="0">JNO</option>
				<option value="1">JYES</option>
			</field>

			<field
				name="redirect"
				type="text"
				label="COM_CONTACT_FIELD_CONFIG_REDIRECT_LABEL"
				description="COM_CONTACT_FIELD_CONFIG_REDIRECT_DESC"
				size="30"
				useglobal="true"
			/>
	</fieldset>

</fields>
</metadata>
PK�t�[DJ1t��featured/tmpl/default_items.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;
JHtml::_('behavior.core');

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

?>

<?php if (empty($this->items)) : ?>
	<p> <?php echo JText::_('COM_CONTACT_NO_CONTACTS');
?>	 </p>
<?php else : ?>

<form action="<?php echo
htmlspecialchars(JUri::getInstance()->toString()); ?>"
method="post" name="adminForm"
id="adminForm">
	<fieldset class="filters">
	<legend class="hidelabeltxt"><?php echo
JText::_('JGLOBAL_FILTER_LABEL'); ?></legend>
	<?php if ($this->params->get('show_pagination_limit'))
: ?>
		<div class="display-limit">
			<?php echo JText::_('JGLOBAL_DISPLAY_NUM'); ?>&#160;
			<?php echo $this->pagination->getLimitBox(); ?>
		</div>
	<?php endif; ?>
	<input type="hidden" name="filter_order"
value="<?php echo $listOrder; ?>" />
		<input type="hidden" name="filter_order_Dir"
value="<?php echo $listDirn; ?>" />
	</fieldset>

	<table class="category">
		<?php if ($this->params->get('show_headings')) : ?>
		<thead><tr>
			<th class="item-num">
				<?php echo JText::_('JGLOBAL_NUM'); ?>
			</th>
			<th class="item-title">
				<?php echo JHtml::_('grid.sort',
'COM_CONTACT_CONTACT_EMAIL_NAME_LABEL', 'a.name',
$listDirn, $listOrder); ?>
			</th>
			<?php if
($this->params->get('show_position_headings')) : ?>
			<th class="item-position">
				<?php echo JHtml::_('grid.sort',
'COM_CONTACT_POSITION', 'a.con_position', $listDirn,
$listOrder); ?>
			</th>
			<?php endif; ?>
			<?php if ($this->params->get('show_email_headings'))
: ?>
			<th class="item-email">
				<?php echo JText::_('JGLOBAL_EMAIL'); ?>
			</th>
			<?php endif; ?>
			<?php if
($this->params->get('show_telephone_headings')) : ?>
			<th class="item-phone">
				<?php echo JText::_('COM_CONTACT_TELEPHONE'); ?>
			</th>
			<?php endif; ?>

			<?php if ($this->params->get('show_mobile_headings'))
: ?>
			<th class="item-phone">
				<?php echo JText::_('COM_CONTACT_MOBILE'); ?>
			</th>
			<?php endif; ?>

			<?php if ($this->params->get('show_fax_headings')) :
?>
			<th class="item-phone">
				<?php echo JText::_('COM_CONTACT_FAX'); ?>
			</th>
			<?php endif; ?>

			<?php if ($this->params->get('show_suburb_headings'))
: ?>
			<th class="item-suburb">
				<?php echo JHtml::_('grid.sort',
'COM_CONTACT_SUBURB', 'a.suburb', $listDirn,
$listOrder); ?>
			</th>
			<?php endif; ?>

			<?php if ($this->params->get('show_state_headings'))
: ?>
			<th class="item-state">
				<?php echo JHtml::_('grid.sort',
'COM_CONTACT_STATE', 'a.state', $listDirn, $listOrder);
?>
			</th>
			<?php endif; ?>

			<?php if
($this->params->get('show_country_headings')) : ?>
			<th class="item-state">
				<?php echo JHtml::_('grid.sort',
'COM_CONTACT_COUNTRY', 'a.country', $listDirn,
$listOrder); ?>
			</th>
			<?php endif; ?>

			</tr>
		</thead>
		<?php endif; ?>

		<tbody>
			<?php foreach ($this->items as $i => $item) : ?>
				<tr class="<?php echo ($i % 2) ? 'odd' :
'even'; ?>" itemscope
itemtype="https://schema.org/Person">
					<td class="item-num">
						<?php echo $i; ?>
					</td>

					<td class="item-title">
						<?php if ($this->items[$i]->published == 0) : ?>
							<span class="label label-warning"><?php echo
JText::_('JUNPUBLISHED'); ?></span>
						<?php endif; ?>
						<a href="<?php echo
JRoute::_(ContactHelperRoute::getContactRoute($item->slug,
$item->catid)); ?>" itemprop="url">
							<span itemprop="name"><?php echo $item->name;
?></span>
						</a>
					</td>

					<?php if
($this->params->get('show_position_headings')) : ?>
						<td class="item-position"
itemprop="jobTitle">
							<?php echo $item->con_position; ?>
						</td>
					<?php endif; ?>

					<?php if
($this->params->get('show_email_headings')) : ?>
						<td class="item-email" itemprop="email">
							<?php echo $item->email_to; ?>
						</td>
					<?php endif; ?>

					<?php if
($this->params->get('show_telephone_headings')) : ?>
						<td class="item-phone"
itemprop="telephone">
							<?php echo $item->telephone; ?>
						</td>
					<?php endif; ?>

					<?php if
($this->params->get('show_mobile_headings')) : ?>
						<td class="item-phone"
itemprop="telephone">
							<?php echo $item->mobile; ?>
						</td>
					<?php endif; ?>

					<?php if ($this->params->get('show_fax_headings'))
: ?>
						<td class="item-phone"
itemprop="faxNumber">
							<?php echo $item->fax; ?>
						</td>
					<?php endif; ?>

					<?php if
($this->params->get('show_suburb_headings')) : ?>
						<td class="item-suburb" itemprop="address"
itemscope itemtype="https://schema.org/PostalAddress">
							<span itemprop="addressLocality"><?php echo
$item->suburb; ?></span>
						</td>
					<?php endif; ?>

					<?php if
($this->params->get('show_state_headings')) : ?>
						<td class="item-state" itemprop="address"
itemscope itemtype="https://schema.org/PostalAddress">
							<span itemprop="addressRegion"><?php echo
$item->state; ?></span>
						</td>
					<?php endif; ?>

					<?php if
($this->params->get('show_country_headings')) : ?>
						<td class="item-state" itemprop="address"
itemscope itemtype="https://schema.org/PostalAddress">
							<span itemprop="addressCountry"><?php echo
$item->country; ?></span>
						</td>
					<?php endif; ?>
				</tr>
			<?php endforeach; ?>

		</tbody>
	</table>

</form>
<?php endif; ?>
PK�t�[�O�)��featured/view.html.phpnu�[���<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\Registry\Registry;

/**
 * Featured View class
 *
 * @since  1.6
 */
class ContactViewFeatured extends JViewLegacy
{
	/**
	 * The item model state
	 *
	 * @var    \Joomla\Registry\Registry
	 * @since  1.6.0
	 */
	protected $state;

	/**
	 * The item details
	 *
	 * @var    JObject
	 * @since  1.6.0
	 */
	protected $items;

	/**
	 * Who knows what this variable was intended for - but it's never
been used
	 *
	 * @var         array
	 * @since       1.6.0
	 * @deprecated  4.0  This variable has been null since 1.6.0-beta8
	 */
	protected $category;

	/**
	 * Who knows what this variable was intended for - but it's never
been used
	 *
	 * @var         JObject  Maybe.
	 * @since       1.6.0
	 * @deprecated  4.0  This variable has never been used ever
	 */
	protected $categories;

	/**
	 * The pagination object
	 *
	 * @var    JPagination
	 * @since  1.6.0
	 */
	protected $pagination;

	/**
	 * Method to display the view.
	 *
	 * @param   string  $tpl  The name of the template file to parse;
automatically searches through the template paths.
	 *
	 * @return  mixed  Exception on failure, void on success.
	 *
	 * @since   1.6
	 */
	public function display($tpl = null)
	{
		$app    = JFactory::getApplication();
		$params = $app->getParams();

		// Get some data from the models
		$state      = $this->get('State');
		$items      = $this->get('Items');
		$category   = $this->get('Category');
		$children   = $this->get('Children');
		$parent     = $this->get('Parent');
		$pagination = $this->get('Pagination');

		// Flag indicates to not add limitstart=0 to URL
		$pagination->hideEmptyLimitstart = true;

		// Check for errors.
		if (count($errors = $this->get('Errors')))
		{
			JError::raiseWarning(500, implode("\n", $errors));

			return false;
		}

		// Prepare the data.
		// Compute the contact slug.
		for ($i = 0, $n = count($items); $i < $n; $i++)
		{
			$item       = &$items[$i];
			$item->slug = $item->alias ? ($item->id . ':' .
$item->alias) : $item->id;
			$temp       = $item->params;
			$item->params = clone $params;
			$item->params->merge($temp);

			if ($item->params->get('show_email', 0) == 1)
			{
				$item->email_to = trim($item->email_to);

				if (!empty($item->email_to) &&
JMailHelper::isEmailAddress($item->email_to))
				{
					$item->email_to = JHtml::_('email.cloak',
$item->email_to);
				}
				else
				{
					$item->email_to = '';
				}
			}
		}

		// Escape strings for HTML output
		$this->pageclass_sfx =
htmlspecialchars($params->get('pageclass_sfx'), ENT_COMPAT,
'UTF-8');

		$maxLevel         = $params->get('maxLevel', -1);
		$this->maxLevel   = &$maxLevel;
		$this->state      = &$state;
		$this->items      = &$items;
		$this->category   = &$category;
		$this->children   = &$children;
		$this->params     = &$params;
		$this->parent     = &$parent;
		$this->pagination = &$pagination;

		$this->_prepareDocument();

		return parent::display($tpl);
	}

	/**
	 * Prepares the document
	 *
	 * @return  void
	 *
	 * @since   1.6
	 */
	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::_('COM_CONTACT_DEFAULT_PAGE_TITLE'));
		}

		$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'));
		}
	}
}
PK���[�#o,,api/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[����MMapi/submitbutton.jsnu�[���/**
 * @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;
		}
	}
}PK���[e
Z*��api/tmpl/default.phpnu�[���<?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>
PK���[�#o,,api/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK���[*8G;��api/view.html.phpnu�[���<?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;
	}
}
PK���[�#o,,
index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK�)�[\F����course/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 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;
		}
	}
}PK�)�[�J�aVVcourse/tmpl/edit.phpnu�[���<?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>PK�)�[��d��course/tmpl/edit.xmlnu�[���<?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>PK�)�[�#o,,course/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK�)�[Rg�9<<course/view.html.phpnu�[���<?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');
	}
}
PK�)�[�#o,,coursedetail/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK�)�[��/��coursedetail/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 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;
		}
	}
}PK�)�[Ԇ����coursedetail/tmpl/default.phpnu�[���<?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$$$$]-->

PK�)�[wd��coursedetail/tmpl/default.xmlnu�[���<?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>PK�)�[8�^1��$coursedetail/tmpl/default_course.phpnu�[���<?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$$$$]-->

PK�)�[�ɶa
a
(coursedetail/tmpl/default_courseinfo.phpnu�[���<?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$$$$]-->

PK�)�[.H�D��*coursedetail/tmpl/default_course_image.phpnu�[���<?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$$$$]-->

PK�)�[I?::+coursedetail/tmpl/default_custom_fields.phpnu�[���<?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$$$$]-->

PK�)�[|�8� �
&coursedetail/tmpl/default_sections.phpnu�[���<?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$$$$]-->

PK�)�[���%coursedetail/tmpl/default_sidebar.phpnu�[���<?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$$$$]-->

PK�)�[��/���+coursedetail/tmpl/default_singlesection.phpnu�[���<?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$$$$]-->

PK�)�[&ң(�	�	&coursedetail/tmpl/default_teachers.phpnu�[���<?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$$$$]-->

PK�)�[Kףƞ�)coursedetail/tmpl/default_video_modal.phpnu�[���<?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$$$$]-->

PK*�[�#o,,coursedetail/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK*�[F4]bbcoursedetail/view.html.phpnu�[���<?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);
	}
}
PK*�[�#o,,courselist/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK*�[��}x��courselist/tmpl/default.phpnu�[���<?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>
PK*�[�8O??courselist/tmpl/default.xmlnu�[���<?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>PK*�[�>��'courselist/tmpl/default_coursecards.phpnu�[���<?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$$$$]-->

PK*�[�#o,,courselist/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK*�[����??courselist/view.html.phpnu�[���<?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);
	}
}
PK*�[�#o,,courses/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK*�[d>LLcourses/tmpl/default.phpnu�[���<?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$$$$]-->

PK*�[�_J��courses/tmpl/default.xmlnu�[���<?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>PK*�[�#o,,courses/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK*�[jX�CCcourses/view.html.phpnu�[���<?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);
	}
}
PK*�[^�ֱ?�?(course_search/assets/images/no-image.jpgnu�[����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`�PK*�[�#o,,course_search/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK*�[#Qxd�0�0course_search/tmpl/default.phpnu�[���<?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$$$$]-->

PK*�[e<�z��course_search/tmpl/default.xmlnu�[���<?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>PK*�[�4�;#course_search/tmpl/default_card.phpnu�[���<?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$$$$]-->

PK*�[��l���)course_search/tmpl/default_card_mahdi.phpnu�[���<?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$$$$]-->

PK*�[�#o,,course_search/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK*�[=����course_search/view.html.phpnu�[���<?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);
	}
}
PK*�[�#o,,teacherdetail/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK*�[�e�$teacherdetail/tmpl/default.phpnu�[���<?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$$$$]-->

PK*�[<�U��teacherdetail/tmpl/default.xmlnu�[���<?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>PK*�[g��:__.teacherdetail/tmpl/default_teacher_courses.phpnu�[���<?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$$$$]-->

PK*�[g_YY.teacherdetail/tmpl/default_teacher_sidebar.phpnu�[���<?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$$$$]-->

PK*�[�#o,,teacherdetail/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PK*�[�J��rrteacherdetail/view.html.phpnu�[���<?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);
	}
}
PKBT�[�#o,,comment/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKBT�[秃���comment/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		submitbutton.js
	@author			farhad shahbazi <http://farhad.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._('comment, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}PKBT�[��u55comment/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.32.$$$$]-->
<section id="comment">
    <div class="row">
        <div class="col-md-4">

            <div class="card text-center">
                <div class="card-header">
                    <img style="width: 62px; height: 62px;
border-radius: 50%" src="<?php echo $this->item->image;
?>" alt="<?php echo $this->item->alt;
?>">
                </div>
                <div class="card-body">
                    <p class="card-text">لطفا نظر
خود را درباره دکتر</p>
                    <h5 class="card-title"><?php echo
$this->item->users_name; ?></h5>
                    <p
class="card-text">بنویسید</p>
                </div>
            </div>

        </div>
        <div class="col-md-8">
            <form action="" method="post"
id="adminForm">
                <div class="form-group">
                 <?=
$this->form->getLabel('text');?>
                 <?=
$this->form->getInput('text');?>
                </div>
                <div class="form-group">
                 <?=
$this->form->getLabel('rate');?>
                 <?=
$this->form->getInput('rate');?>
                </div>
                <input class="btn btn-primary"
type="submit" value="ثبت" >
                <?= JHtml::_('form.token');?>
                <input type="hidden" name="task"
value="comment.save">
            </form>

        </div>

    </div>

   
    <div class="modal fade" id="cmModal"
tabindex="-1" role="dialog"
aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
        <div class="modal-dialog modal-dialog-centered"
role="document">
            <div class="modal-content">
                <div class="modal-header
justify-content-center">

                    <svg xmlns="http://www.w3.org/2000/svg"
width="16" height="16" fill="currentColor"
class="bi bi-check2-circle" viewBox="0 0 16 16"
                         style="transform: scale(2.5); color:
#35e135" >
                        <path d="M2.5 8a5.5 5.5 0 0 1
8.25-4.764.5.5 0 0 0 .5-.866A6.5 6.5 0 1 0 14.5 8a.5.5 0 0 0-1 0 5.5 5.5 0
1 1-11 0z"/>
                        <path d="M15.354 3.354a.5.5 0 0
0-.708-.708L8 9.293 5.354 6.646a.5.5 0 1 0-.708.708l3 3a.5.5 0 0 0 .708
0l7-7z"/>
                    </svg>

                </div>
                <div class="modal-body">
                    نظر شما با موفقیت ثبت شد
                </div>
                <div class="modal-footer">
                    <a href="<?=
JRoute::_(JUri::root(),false);?>" class="btn
btn-primary">ادامه</a>
                </div>
            </div>
        </div>
    </div>

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

PKBT�[�Y���comment/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_COMMENT_TITLE"
option="COM_RESERVATION_MENU_COMMENT_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_COMMENT_DESC]]>
		</message>
	</layout>
</metadata>PKBT�[�#o,,comment/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKBT�[*I��VVcomment/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Comment
 */
class ReservationViewComment 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.32.$$$$]***/
				$this->form= \Joomla\CMS\Form\Form::getInstance("comment",
JPATH_COMPONENT_ADMINISTRATOR . "/models/forms/comment.xml",
array("control" => "jform"));
		$this->form->bind($this->app->getUserState('comment.data'));
		/***[/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 reservationHeaderCheck;

		// Add View JavaScript File
		$this->document->addScript(JURI::root(true) .
"/components/com_reservation/assets/js/comment.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		
		/***[JCBGUI.site_view.php_document.32.$$$$]***/
		$status= $this->app->getUserState('status',0);
		$this->document->addScriptOptions('status',$status);/***[/JCBGUI$$$$]***/
		 
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/comment.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('comment');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKCT�[�#o,,consultantitem/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKCT�[m
ӊ�/�/consultantitem/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.27.$$$$]-->
<section id="consultantItem">
    <div>
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a
href="index.php?option=com_reservation"><svg
xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi
bi-house-door" viewBox="0 0 16 16">
                            <path d="M8.354 1.146a.5.5 0 0 0-.708
0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4.5a.5.5 0 0 0
.5-.5v-4h2v4a.5.5 0 0 0 .5.5H14a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13
5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146zM2.5
14V7.707l5.5-5.5 5.5 5.5V14H10v-4a.5.5 0 0 0-.5-.5h-3a.5.5 0 0
0-.5.5v4H2.5z"/>
                        </svg></a></li>
                <li class="breadcrumb-item active"
aria-current="page"> مشاوران </li>
                <li class="breadcrumb-item active"
aria-current="page"> <?=  $this->item->users_name;
?> </li>
            </ol>
        </nav>
    </div>

    <div class="row">
        <div class="col-md-8">
            <div class="row">
                <div class="col-12">
                    <div class="card consultantCard"
data-uid="<?= $this->item->userid;?>">
                        <div class="card-header">
                            <span style="font-size:
11px;text-decoration: underline;float: left;color:#f3f3f3;cursor:
pointer">آموزش مشاوره گرفتن
آنلاین</span>
                        </div>
                        <div class="card-body">
                            <div class="block1">
                              <?php
                                  if ( ( ! file_exists( JPATH_SITE .
'/libraries/CBLib/CBLib/Core/CBLib.php' ) ) || ( ! file_exists(
JPATH_ADMINISTRATOR .
'/components/com_comprofiler/plugin.foundation.php' ) ) ) {
                                    // echo 'CB not installed';
                                    $imgurl = '';
                                  }
                                  else
                                  {
                                    include_once( JPATH_ADMINISTRATOR .
'/components/com_comprofiler/plugin.foundation.php' );
                                    
                                    cbimport( 'cb.html' );
                                    $joomlaid = $id;
                                    global $_CB_framework, $_PLUGINS,
$ueConfig;

                                    $cbUser =& CBuser::getInstance(
(int) $this->item->userid );
                                    $user = $cbUser->getUserData();
                                    $imgurl =
'/images/comprofiler/' . $user->avatar;
                                    // dump($this, 'this');
                                  }
                                ?>
                            
                            
                            
                                <img src="<?php echo $imgurl;
?>" alt="">
                            </div>
                            <div class="block2">
                                <ul>
                                    <li style="color: #004c72
"><h1><?= $this->item->users_name;
?></h1></li>
                                    <li><?= 
$this->item->categories_title; ?></li>
                                    <li>
                                          <?php
                                          $rate= 0;
                                          $cmCount=
count($this->item->comments);
                                          foreach
($this->item->comments as $c) {
                                              $rate += $c->rate;
                                              }
                                          $rate= ($rate/$cmCount)*25;
                                          ?>
                                          <span><?=
$rate;?>%</span>
                                          -
                                          <span>(<?= $cmCount;
?> نظر)</span>
                                      </li>
                                </ul>
                            </div>
                            <div class="block3">
                                <ul>
                                    <li>
                                        <span>نظام پزشکی :
</span>
                                        <span>  <?= 
$this->item->msn; ?></span>
                                    </li>
                                    <li>
                                        <span>تجربه :
</span>
                                        <span> <?= 
$this->item->experience; ?> سال</span>
                                    </li>
                                    <li>
                                        <span>تعداد مشاوره
: </span>
                                        <span>  <?= 
$this->item->sessionCount; ?> جلسه</span>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-6 mt-3">
                    <div class="card" style="height:
315px">
                        <div class="card-body"
style="display:flex;flex-direction: column;justify-content:
space-around">
                            <h5 style="font-size: 14px;font-weight:
600;" class="card-title">درباره من</h5>
                            <div style="height:75%">
                                <p style="color:#004c72"
class="card-text"> <?=  $this->item->introduction;
?></p>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-md-6 mt-3">
                    <div class="card"
style="height:315px">
                        <div class="card-body"
style="display:flex;flex-direction: column;justify-content:
space-around;">
                            <h5 style="font-size: 14px;font-weight:
600;" class="card-title">ویدئو معرفی
من</h5>
                            <div style="height:75%; display:flex;
flex-direction: column;justify-content:center;align-items:
center">
                                <img src="<?=
$this->baseurl;?>/templates/mytemp/assets/images/video-camera.svg"
alt="">
                                <p style="color:#ccc">در
حال آماده سازی</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card plans">
                <div class="card-body"
style="display:flex;flex-direction: column;justify-content:
space-around;">
                    <h5 style="font-size: 14px;font-weight:
600;" class="card-title">پلن های
مشاوره</h5>

                    <div style="height:75%; display:flex;
flex-direction: column;justify-content:center;align-items:
center">
                        <ul>
                            <?php foreach ($this->item->plans as
$plan): ?>

                                <li data-planid="<?=
$plan->id;?>">
                                    <div>
                                <span>
                                    <i><svg
xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi
bi-chat-left-text" viewBox="0 0 16 16">
  <path d="M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4.414A2 2 0 0 0 3
11.586l-2 2V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12.793a.5.5 0 0 0
.854.353l2.853-2.853A1 1 0 0 1 4.414 12H14a2 2 0 0 0 2-2V2a2 2 0 0
0-2-2H2z"/>
  <path d="M3 3.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0
1-.5-.5zM3 6a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9A.5.5 0 0 1 3 6zm0
2.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z"/>
</svg></i>
                                  <?php
                                    $plantype_map= [1=>
'گفتگوی تلفنی با مشاور', 2=>
'گفتگوی متنی با مشاور', 3=>
'گفتگوی ویدیویی با مشاور'];
                                    echo
$plantype_map[$plan->plantype];
                                    ?>
                                </span>
                                        <span style="font-size:
12px"><?= $plan->price;?></span>
                                    </div>
                                    <div>
                                <span>
                                    انتظار کمتر از 10 ساعت
                                </span>
                                        <span>
                                    + پایان توافقی گفتگو
                                </span>
                                        <span>
                                    + ‏3 ویژگی
                                </span>
                                    </div>
                                </li>

                            <?php endforeach; ?>
                        </ul>
                    </div>
                </div>
                <div class="card-footer text-center">
                    <a href="<?=
JRoute::_('index.php?option=com_reservation&view=firstqst&uid='.$this->item->userid.'&pid='.$this->item->plans[0]->id.'',false);?>"
id="startCo" class="btn btn-primary">شروع
مشاوره</a>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-8">
            <div class="comments mt-5">
                <div class="card-title">
                    نظرات کاربران
                </div>
                <div class="comment">
                   <?php foreach ($this->item->comments as
$comment): ?>
                       <div class="card mb-2">
                           <div class="card-header"
style="display:flex;justify-content: space-between">
                               <span><?=
$comment->name;?></span>
                               <span><?=
Joomla\CMS\HTML\HtmlHelper::date($comment->created, 'Y-m-d ---
H:i');?></span>
                           </div>
                           <div class="card-body"
style="display:flex;justify-content: start">
                               <div class="ml-5">
                                   <img
style="width:62px;height:62px;border-radius: 50%;border: 3px solid
#ccc;" src="<?= $comment->image;?>"
alt="">
                               </div>
                               <div>
                                   <p
class="card-text"><?= $comment->text;?></p>
                               </div>
                           </div>
                       </div>
                   <?php endforeach; ?>
                </div>
            </div>
        </div>
    </div>
</section><!--[/JCBGUI$$$$]-->

PKCT�[t}Lu

consultantitem/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_CONSULTANTITEM_TITLE"
option="COM_RESERVATION_MENU_CONSULTANTITEM_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_CONSULTANTITEM_DESC]]>
		</message>
	</layout>
</metadata>PKCT�[�#o,,consultantitem/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKCT�[��n$��consultantitem/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Consultantitem
 */
class ReservationViewConsultantitem 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');

		// 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 reservationHeaderCheck;

		// always load these files.
		$this->document->addStyleSheet(JURI::root(true) .
"/media/com_reservation/bootstraprtl/css/bootstrap.rtl.min.css",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") : "text/css");

		// Add View JavaScript File
		$this->document->addScript(JURI::root(true) .
"/components/com_reservation/assets/js/consultantitem.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript"); 
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/consultantitem.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('consultantitem');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKCT�[�#o,,consultantsignup/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKCT�[�`>��
consultantsignup/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		submitbutton.js
	@author			farhad shahbazi <http://farhad.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._('consultantsignup, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}PKCT�[��F��!consultantsignup/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.site_view.php_view.31.$$$$]***/
$getUserState=
JFactory::getApplication()->getUserState('consultant.data');
$name = isset($getUserState['name']) ?
$getUserState['name'] : '';/***[/JCBGUI$$$$]***/

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

<!--[JCBGUI.site_view.default.31.$$$$]-->
<div class="signUpForm mb-3">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <form action="<?=
JRoute::_('index.php?option=com_reservation&view=consultantSignUp',false)?>"
                id="adminForm" method="post">
                <div class="form-group">
                    <label>
                        <?=
JText::_('COM_RESERVATION_CONSULTANT_NAME_LABEL_SITE');?>
                    </label>
                    <input type="text"
class="form-control" name="jform[name]"
value="<?= $name;?>">
                </div>
                <div class="form-group">
                    <?php //echo
$this->form->renderField('msn');?>
                    <label>
                        <?=
JText::_('COM_RESERVATION_CONSULTANT_MSN_LABEL_SITE');?>
                    </label>
                    <?=
$this->form->getInput('msn');?>
                </div>
                <div class="form-group">
                    <label>
                        <?=
JText::_('COM_RESERVATION_CONSULTANT_NATIONALNUMBER_LABEL_SITE');?>
                    </label>
                    <?=
$this->form->getInput('nationalnumber');?>
                </div>
                <div class="form-group">
                    <input type="hidden"
name="jform[userid]" value="0"
class="form-control">
                </div>
                 <div class="form-group">
                     <label>
                         <?=
JText::_('COM_RESERVATION_CONSULTANT_CATID_LEVELONE_LABEL_SITE');?>
                     </label>
                    <select id="jform_catid_level1"
class="form-control">
                        <option>Default select</option>
                    </select>
                </div>
                <div class="form-group">
                    <select id="jform_catid"
name="jform[catid]" class="form-control">
        
                    </select>
                </div>
                <div class="form-group">
                    <?=
$this->form->renderField('capital');?>
                </div>
                <div class="form-group">
                    <label>
                        <?=
JText::_('COM_RESERVATION_CONSULTANT_PHONENUMBER_LABEL_SITE');?>
                    </label>
                    <?=
$this->form->getInput('phonenumber');?>
                </div>
                <div class="form-group">
                    <label>
                        <?=
JText::_('COM_RESERVATION_CONSULTANT_EXPERIENCE_LABEL_SITE');?>
                    </label>
                    <?=
$this->form->getInput('experience');?>
                </div>
                <div class="form-group">
                    <label>
                        <?=
JText::_('COM_RESERVATION_CONSULTANT_PASSWORD_LABEL_SITE');?>
                    </label>
                    <input type="password"
class="form-control" name="jform[password]"
required>
                </div>
                <div class="form-group">
                    <label>
                        <?=
JText::_('COM_RESERVATION_CONSULTANT_CAPTCHA_LABEL_SITE');?>
                    </label>
                    <input type="text"
class="form-control" name="jform[securityCode]">
                </div>
                <button type="submit" class="btn
btn-primary">ثبت نام</button>
                <input type="hidden" name="task"
value="consultantSignUp.signup">
                 <input type="hidden" name="<?=
JSession::getFormToken();?>" id="token">
            </form>
        </div>
    </div>
</div>



<!--<section id="logintokhorasan">-->
<!--    <div class="row justify-content-center">-->
<!--        <div class="col-md-6">-->
<!--            <form action="">-->
<!--                <div class="form-group">-->
<!--                    <label>نام
کاربری</label>-->
<!--                    <input type="text"
class="form-control" name="uname" id="uname"
value="tes1t">-->
<!--                </div>-->
<!--                <div class="form-group">-->
<!--                    <label>رمز
عبور</label>-->
<!--                    <input type="text"
class="form-control" name="pword" id="pword"
value="password">-->
<!--                </div>-->
<!--                <button type="submit"
id="atwh" class="btn
btn-primary">ورود</button>-->
<!--            </form>-->
<!--        </div>-->
<!--    </div>-->
<!--</section>-->
<!---->
<!---->
<!--<script>-->
<!--    jQuery(document).ready(function ($){-->
<!--        // document.cookie = "khorasan=John Doe;
domain=yaran.lmskaran.com"-->
<!--        // document.cookie = "lmsyaran=John Doe;
domain=lmsyaran.ir"-->
<!---->
<!--        $('#atwh').click(function (e){-->
<!---->
<!--            e.preventDefault();-->
<!--            var uname= $('#uname').val();-->
<!--            var pword= $('#pword').val();-->
<!--            // var url=
'https://yaran.lmskaran.com/administrator/components/com_moojla/testlogin2.php?username='+uname+'&password='+pword+'&forcecreate=1'-->
<!--            var url=
'https://yaran.lmskaran.com/administrator/components/com_moojla/loginAPI.php?username='+uname+'&password='+pword+'&forcecreate=1'-->
<!--            $.ajax({-->
<!--                url: url,-->
<!--                method: 'post',-->
<!--                data: {},-->
<!--                crossDomain:true,-->
<!--                dataType : 'json',-->
<!--                xhrFields: {-->
<!--                    withCredentials: true-->
<!--                },-->
<!--                // headers: {-->
<!--                //     'Content-Type':
'application/json',-->
<!--                //     "Accept":
'application/json',-->
<!--                // },-->
<!--                success: function (msg)-->
<!--                {-->
<!--                    alert('success: you logged in
yaran.lmskaran.com as '+uname);-->
<!--                },-->
<!--                error: function (msg)-->
<!--                {-->
<!--                    alert('error: you logged in
yaran.lmskaran.com as '+uname);-->
<!--                }-->
<!--            });-->
<!--        })-->
<!--    })-->
<!--</script>--><!--[/JCBGUI$$$$]-->

PKCT�[™��!consultantsignup/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_CONSULTANTSIGNUP_TITLE"
option="COM_RESERVATION_MENU_CONSULTANTSIGNUP_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_CONSULTANTSIGNUP_DESC]]>
		</message>
	</layout>
</metadata>PKCT�[�#o,,
consultantsignup/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKCT�[1����consultantsignup/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Consultantsignup
 */
class ReservationViewConsultantsignup 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.31.$$$$]***/
				$this->form=
\Joomla\CMS\Form\Form::getInstance("consultant",
JPATH_COMPONENT_ADMINISTRATOR . "/models/forms/consultant.xml",
array("control" => "jform"));
		$this->form->bind($this->app->getUserState('consultant.data'));
		/***[/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 reservationHeaderCheck;

		// Add View JavaScript File
		$this->document->addScript(JURI::root(true) .
"/components/com_reservation/assets/js/consultantsignup.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/consultantsignup.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('consultantsignup');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKDT�[�2���
consultant_plan/assets/style.cssnu�[���.table-lmsyaran{
	border-collapse: separate;
    border-spacing: 30px 20px;
	box-shadow: 0 0 15px 0 #d8d8d8;
    border-radius: 10px;
}

.table-lmsyaran thead th{
    /* display: inline-table; */
    /* justify-content: center; */
}

.table-lmsyaran th,
.table-lmsyaran td {
    text-align: center !important;
	border-top: unset !important;
}

.table-lmsyaran thead tr th{
    background: #ececec;
	border-radius: 5px;
}

.border-radius-lmsyaran {
    border-radius: 5px;
}

.button-modal-lmsyaran{
	width: 100%;
    padding: 12px 0;
}

@media only screen and (max-width:1024px){
	.table-lmsyaran{
		overflow-x: scroll;
		max-width: 820px;
		display: inline-block;
	}
}

PKDT�[�#o,,consultant_plan/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKDT�[͑Q��consultant_plan/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		submitbutton.js
	@author			farhad shahbazi <http://farhad.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._('consultant_plan, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}PKDT�[,]���3�3
consultant_plan/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.37.$$$$]-->

<form id='listviewform' method="post">
  <button type="button" class="btn btn-primary"
data-toggle="modal"
data-target="#exampleModalCenter">
    اضافه کردن پلن
  </button>
  <button type="button" class="btn btn-danger" >
    حذف کردن
  </button>
  <section>
    <div class="container">
      <div class="row">
        <table class="table table-lmsyaran">
          <thead>
            <tr>
              <td>
                <input type='checkbox'
id='plan-all?>'>
              </td>
              <th scope="col">
              <div class="mb-2">
                #
              </div>
                
              </th>
              <th scope="col">planType</th>
              <th scope="col">
              <div class="mb-2">
                <svg style="width:20px;"
aria-hidden="true" focusable="false"
data-prefix="fad" data-icon="clock"
role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512" class="svg-inline--fa fa-clock fa-w-16
fa-3x"><g class="fa-group"><path
fill="#aec7ff"
d="M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"
class="fa-secondary"></path><path
fill="#4e7ea8"
d="M348.49,321h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"
class="fa-primary"></path></g></svg>
              </div>
              زمان
              </th>
              <th scope="col">
              <div class="mb-2">
                <svg style="width:20px;"
aria-hidden="true" focusable="false"
data-prefix="fad" data-icon="coin" role="img"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512
512" class="svg-inline--fa fa-coin fa-w-16 fa-3x"><g
class="fa-group"><path fill="#e0a500" d="M0
208C0 128.44 114.67 64 256 64s256 64.44 256 144-114.67 144-256 144S0 287.56
0 208z" class="fa-secondary"></path><path
fill="#e2a600" d="M0 320c0 27.77 18 53.37 48
74.33V330c-18.85-12-35.4-25.36-48-40.38zm80 92.51c27.09 12.89 59.66 22.81
96 28.8V377c-35.39-6-67.81-15.88-96-29zM464 330v64.32c30.05-21 48-46.56
48-74.33v-30.36C499.4 304.65 482.85 318 464 330zM336 441.31c36.34-6
68.91-15.91 96-28.8V348c-28.19 13.12-60.61 23-96 29zM208 381.2v64.09c15.62
1.51 31.49 2.71 48 2.71s32.38-1.2 48-2.71V381.2a477.2 477.2 0 0 1-48 2.8
477.2 477.2 0 0 1-48-2.8z"
class="fa-primary"></path></g></svg>
              </div>
              قیمت
              </th>
              <th scope="col">
              <div class="mb-2">
                <svg style="width:16px;"
aria-hidden="true" focusable="false"
data-prefix="fad" data-icon="hourglass-half"
role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 384 512" class="svg-inline--fa
fa-hourglass-half fa-w-12 fa-3x"><g
class="fa-group"><path fill="#a2cffd"
d="M284.92 384H99.06A187.69 187.69 0 0 0 88 448h208a187.6 187.6 0 0
0-11.08-64zM192 208c40.83 0 75.86-33.2 92.92-80H99.08c17.06 46.8 52.1 80
92.92 80z" class="fa-secondary"></path><path
fill="#61aefd" d="M360 64a24 24 0 0 0 24-24V24a24 24 0 0
0-24-24H24A24 24 0 0 0 0 24v16a24 24 0 0 0 24 24c0 91 51 167.73 120.84
192C75 280.27 24 357 24 448a24 24 0 0 0-24 24v16a24 24 0 0 0 24 24h336a24
24 0 0 0 24-24v-16a24 24 0 0 0-24-24c0-91-51-167.73-120.84-192C309 231.73
360 155 360 64zm-64 384H88c0-77.46 46.2-144 104-144s104 66.52 104 144zM192
208c-57.79 0-104-66.52-104-144h208c0 77.46-46.2 144-104 144z"
class="fa-primary"></path></g></svg>
              </div>
              زمان انتظار
              </th>
              <th scope="col">
              <div class="mb-2">
                <svg style="width:20px;"
aria-hidden="true" focusable="false"
data-prefix="fad" data-icon="edit" role="img"
xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576
512" class="svg-inline--fa fa-edit fa-w-18 fa-3x"><g
class="fa-group"><path fill="#52b714"
d="M564.6 60.2l-48.8-48.8a39.11 39.11 0 0 0-55.2 0l-35.4 35.4a9.78
9.78 0 0 0 0 13.8l90.2 90.2a9.78 9.78 0 0 0 13.8 0l35.4-35.4a39.11 39.11 0
0 0 0-55.2zM427.5 297.6l-40 40a12.3 12.3 0 0 0-3.5
8.5v101.8H64v-320h229.8a12.3 12.3 0 0 0 8.5-3.5l40-40a12 12 0 0
0-8.5-20.5H48a48 48 0 0 0-48 48v352a48 48 0 0 0 48 48h352a48 48 0 0 0
48-48V306.1a12 12 0 0 0-20.5-8.5z"
class="fa-secondary"></path><path
fill="#a6cda6" d="M492.8 173.3a9.78 9.78 0 0 1 0 13.8L274.4
405.5l-92.8 10.3a19.45 19.45 0 0 1-21.5-21.5l10.3-92.8L388.8 83.1a9.78 9.78
0 0 1 13.8 0z"
class="fa-primary"></path></g></svg>
              </div>
              ویرایش
              </th>
              <th scope="col">
               <div class="mb-2">
                <svg style="width:20px;"
aria-hidden="true" focusable="false"
data-prefix="fad" data-icon="trash-alt"
role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512" class="svg-inline--fa fa-trash-alt
fa-w-14 fa-3x"><g class="fa-group"><path
fill="#ffada9" d="M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0
48-48V96H32zm272-288a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0
1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32
0z" class="fa-secondary"></path><path
fill="red" d="M432 32H312l-9.4-18.7A24 24 0 0 0 281.1
0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0
0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM128 160a16 16 0 0 0-16
16v224a16 16 0 0 0 32 0V176a16 16 0 0 0-16-16zm96 0a16 16 0 0 0-16
16v224a16 16 0 0 0 32 0V176a16 16 0 0 0-16-16zm96 0a16 16 0 0 0-16
16v224a16 16 0 0 0 32 0V176a16 16 0 0 0-16-16z"
class="fa-primary"></path></g></svg>
                </div>
                حذف
              </th>
            </tr>
            </thead>
            
            <tbody>
              <?php foreach($this->userplans as $row =>
$userplan):?>
              <tr id='row-<?php echo
$userplan->id;?>'>
                <td>
                  <input type='checkbox'
id='plan-<?php echo $userplan->id;?>'
name='jform[plans][plan-<?php echo $userplan->id;?>]'
value=1>
                </td>
                <?php
                switch($userplan->plantype)
                {
                  case 1:
                    $consultanttype =
JText::_('COM_RESERVATION_PLAN_TEL');
                    break;
                  case 2:
                    $consultanttype =
JText::_('COM_RESERVATION_PLAN_CHAT');
                    break;
                }
                ?>
                <td scope="row"><?php echo
$userplan->id;?></td>
                <td data-field="jform[plantypetext]"
data-identifier="name"><?php echo
$consultanttype;?></td>
                <td data-field="jform[time]"
data-identifier="name"><?php echo
$userplan->time;?></td>
                <td data-field="jform[price]"
data-identifier="name"><?php echo $userplan->price;?>
تومان</td>
                <td data-field="jform[waitingtime]"
data-identifier="name"><?php echo
$userplan->waitingtime;?></td>
                <td class="p-0">
                  <button type="button"
class="btn-success border-radius-lmsyaran button-modal-lmsyaran
edit" id='edit-<?php echo $userplan->id;?>'>
                  ویرایش
                  </button>
                </td>
                <td class="p-0">
                  <button type="submit" class="btn-danger
border-radius-lmsyaran delete border-radius-lmsyaran button-modal-lmsyaran
edit" data-toggle="modal"
data-target="#confirm-submit" name='jform[del-<?php echo
$userplan->id;?>]' value=1 id='del-<?php echo
$userplan->id;?>'>
                  حذف
                  </button>
                </td>
                <td data-field="jform[plantype]"
data-identifier="name" style="display:
none;"><?php echo $userplan->plantype?></td>
              </tr>
              <?php endforeach;?>
            </tbody>
          </table>
      </div>
    </div>
  </section>
  <input type="hidden" name="task"
value="consultant_plan.delete">
  <input type="hidden" name="jform[consultantid]"
value="<?= $this->item->coid;?>">
</form>


<!-- Modal 
<div class="modal fade" id="exampleModalCenter"
tabindex="-1" role="dialog"
aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
  <div class="modal-dialog modal-dialog-centered"
role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title"
id="exampleModalLongTitle">Modal title</h5>
        <button type="button" class="close"
data-dismiss="modal" aria-label="Close">
          <span
aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <div id="modal-content-edit"></div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-warning
text-white" data-dismiss="modal">بستن</button>
        <button type="button" class="btn
btn-success">ذخیره</button>
      </div>
    </div>
  </div>
</div>
-->


<div class="modal fade" id="confirm-submit"
tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true"
style="height: auto;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                حذف پلن
            </div>
            <div class="modal-body">
                آیا برای حذف این پلن مطمئن
هستید؟
            </div>

            <div class="modal-footer">
                <button type="button" class="btn
btn-default" data-dismiss="modal">لغو</button>
                <a href="#" id="submit"
class="btn btn-success success">تایید</a>
            </div>
        </div>
    </div>
</div>


<section>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <form id="adminForm"
method="post">
                    <div class="form-group">
                        <label>
                            <?=
JText::_('COM_RESERVATION_PLAN_TYPE'); // Plan type?>
                        </label>
                        <?=
$this->form->getInput('plantype');?>
                    </div>
                    <div class="form-group">
                        <label>
                            <?=
JText::_('COM_RESERVATION_TIME'); // Time?>
                        </label>
                        <?=
$this->form->getInput('time');?>
                    </div>
                    <div class="form-group">
                        <label>
                            <?=
JText::_('COM_RESERVATION_WAITING_TIME'); // Waiting time?>
                        </label>
                        <?=
$this->form->getInput('waitingtime');?>
                    </div>
                    <div class="form-group">
                        <label>
                            <?=
JText::_('COM_RESERVATION_PRICE'); // Price?>
                        </label>
                        <?=
$this->form->getInput('price');?>
                    </div>
                    <button type="submit"
id="submitdata" class="btn btn-primary"
onclick="Joomla.submitbutton('consultant_plan.save')">افزودن</button>
                    <?= JHtml::_('form.token');?>
                    <!-- <input type="hidden"
name="task" value=""> -->
                  	<input type="hidden" name="task"
value="consultant_plan.save">
                  	<input type="hidden"
name="jform[planid]" value=""
id="planid">
                    <input type="hidden"
name="jform[consultantid]" value="<?=
$this->item->coid;?>">
                </form>
            </div>
        </div>
    </div>
</section>

<!--COM_RESERVATION_CONSULTANT_PLAN_PLANTYPE_LABEL SITE-->
<!--COM_RESERVATION_CONSULTANT_PLAN_TIME_LABEL SITE-->
<!--COM_RESERVATION_CONSULTANT_PLAN_WAITINGTIME_LABEL SITE-->
<!--COM_RESERVATION_CONSULTANT_PLAN_PRICE_LABEL
SITE--><!--[/JCBGUI$$$$]-->

PKDT�[��~


consultant_plan/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_CONSULTANT_PLAN_TITLE"
option="COM_RESERVATION_MENU_CONSULTANT_PLAN_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_CONSULTANT_PLAN_DESC]]>
		</message>
	</layout>
</metadata>PKDT�[�#o,,consultant_plan/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKDT�[=����consultant_plan/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Consultant_plan
 */
class ReservationViewConsultant_plan 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->userplans = $this->get('UserPlans');
		
		/***[JCBGUI.site_view.php_jview_display.37.$$$$]***/
		$this->form= \Joomla\CMS\Form\Form::getInstance("plan",
JPATH_COMPONENT_ADMINISTRATOR . "/models/forms/plan.xml",
array("control" => "jform"));
		$this->form->bind($this->app->getUserState('plan.data'));/***[/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 reservationHeaderCheck;

		// always load these files.
		$this->document->addStyleSheet(JURI::root(true) .
"/media/com_reservation/bootstrapv45/css/bootstrap.min.css",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") : "text/css");
		$this->document->addScript(JURI::root(true) .
"/media/com_reservation/bootstrapv45/js/bootstrap.bundle.min.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");

		// Add View JavaScript File
		$this->document->addScript(JURI::root(true) .
"/components/com_reservation/assets/js/consultant_plan.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript"); 
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/consultant_plan.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('consultant_plan');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKDT�[�#o,,doctor/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKDT�[V��
ccdoctor/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.35.$$$$]-->
<section id="doctor">
    <div class="row">
        <div class="col-md-12">
            <div class="card">
                <div class="card-header">
                    Featured
                </div>
                <div class="card-body">
                    <div class="row">
                        <div class="col-md-6 justify-content-center
justify-content-md-center" style="display: flex">
                            <div>
                                <img style="width: 62px;height:
62px;border-radius: 50%;border: 3px solid #ccc" src="<?=
$this->item->image ?>" alt="">
                            </div>
                            <div class="mr-2">
                                <p class="card-title"
style="color: #004c72"> <?= $this->item->users_name
?> </p>
                                <p  style=" font-size:
14px"> <?= $this->item->categories_title ?> </p>
                            </div>
                        </div>
                        <div class="col-md-6 flex-column
flex-md-row align-items-center justify-content-between"
style="display: flex; border-right: 1px solid #ccc;">
                            <div>
                                <p>
                                    <span style="color:#9f7878;
font-size: 14px">شماره نظام پزشکی: </span>
                                    <span style=" font-size:
15px"><?= $this->item->msn;?></span>
                                </p>
                            </div>
                            <div>
                                <a class="btn btn-success"
href="#">نوبت دهی آنلاین</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="row mt-2">
        <div class="col-md-4">
            <div class="card">
                <div class="card-header">
                    اطلاعات تماس
                </div>
                <div class="card-body">
                    <ul style="list-style: none">
                        <li>
                            <span style="color: #9f7878">
                                <svg style="color: red"
xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi
bi-geo-alt" viewBox="0 0 16 16">
  <path d="M12.166 8.94c-.524 1.062-1.234 2.12-1.96 3.07A31.493
31.493 0 0 1 8 14.58a31.481 31.481 0 0
1-2.206-2.57c-.726-.95-1.436-2.008-1.96-3.07C3.304 7.867 3 6.862 3 6a5 5 0
0 1 10 0c0 .862-.305 1.867-.834 2.94zM8 16s6-5.686 6-10A6 6 0 0 0 2 6c0
4.314 6 10 6 10z"/>
  <path d="M8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 1a3 3 0 1 0 0-6 3 3
0 0 0 0 6z"/>
</svg>
                                آدرس :
                            </span>
                            <p class="card-title"
style="font-size: 14px">
                                <?= $this->item->address;?>
                            </p>
                        </li>
                        <li>
                            <span style="color: #9f7878">
                                <svg sty color="#49a6aa"
xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi
bi-telephone" viewBox="0 0 16 16">
  <path d="M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605
2.3c-.483.484-.661 1.169-.45 1.77a17.568 17.568 0 0 0 4.168 6.608 17.569
17.569 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0
0 0-.063-1.015l-2.307-1.794a.678.678 0 0 0-.58-.122l-2.19.547a1.745 1.745 0
0 1-1.657-.459L5.482 8.062a1.745 1.745 0 0 1-.46-1.657l.548-2.19a.678.678 0
0 0-.122-.58L3.654 1.328zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29
2.98c.329.423.445.974.315 1.494l-.547 2.19a.678.678 0 0 0 .178.643l2.457
2.457a.678.678 0 0 0 .644.178l2.189-.547a1.745 1.745 0 0 1 1.494.315l2.306
1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846
1.065-2.877.702a18.634 18.634 0 0 1-7.01-4.42 18.634 18.634 0 0
1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877L1.885.511z"/>
</svg>
                                تلفن تماس :
                            </span>
                            <p class="card-title"
style="font-size: 14px">
                                <?=
$this->item->officephone;?>
                            </p>
                        </li>
                        <li>
                            <span style="color: #9f7878">
                                <svg style="color: #7e7ed1"
xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi
bi-calendar" viewBox="0 0 16 16">
  <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0
1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1
.5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/>
</svg>
                                روزهای حضور در محل کار :
                            </span>
                            <p class="card-title"
style="font-size: 14px">
                                <?= $this->item->presence;?>
                            </p>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">
                    دریافت نوبت مطب دکتر شهبازی
                </div>
                <div class="card-body">
                    <div id="calendar"></div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Modal -->
<div class="modal fade" id="exampleModalCenter"
tabindex="-1" role="dialog"
aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered"
role="document">
        <div class="modal-content">
            <div class="modal-body">

            </div>
            <div class="modal-footer">

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

PKDT�[�9+N��doctor/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_DOCTOR_TITLE"
option="COM_RESERVATION_MENU_DOCTOR_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_DOCTOR_DESC]]>
		</message>
	</layout>
</metadata>PKDT�[�#o,,doctor/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKDT�[�K��>>doctor/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Doctor
 */
class ReservationViewDoctor 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');

		// 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 reservationHeaderCheck;

		// always load these files.
		$this->document->addStyleSheet(JURI::root(true) .
"/media/com_reservation/bootstrapv45/css/bootstrap.min.css",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") : "text/css");
		$this->document->addScript(JURI::root(true) .
"/media/com_reservation/bootstrapv45/js/bootstrap.bundle.min.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");

		// always load these files.
		$this->document->addScript(JURI::root(true) .
"/media/com_reservation/fullCalendar/main.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		$this->document->addStyleSheet(JURI::root(true) .
"/media/com_reservation/fullCalendar/main.css",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") : "text/css");

		// Add View JavaScript File
		$this->document->addScript(JURI::root(true) .
"/components/com_reservation/assets/js/doctor.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		
		/***[JCBGUI.site_view.php_document.35.$$$$]***/
		$userid= JFactory::getUser()->id;
		$uid= $this->app->input->get('uid',0);
		$this->document->addScriptOptions('uid',$uid);
		$this->document->addScriptOptions('userid',$userid);
		$this->document->addScriptOptions('appoinements',$this->item->appointments);/***[/JCBGUI$$$$]***/
		 
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/doctor.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('doctor');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKET�[�#o,,doctors/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKET�[�2+[doctors/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.22
	@build			1st March, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		submitbutton.js
	@author			farhad shahbazi <http://farhad.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._('doctors, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}PKET�[n4¼ff"doctors/tmpl/default-old-mahdi.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.36
	@build			26th July, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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_reservation'); ?>"
method="post" name="adminForm"
id="adminForm">
<?php echo $this->toolbar->render(); ?>
<!--[JCBGUI.site_view.default.33.$$$$]-->
  <style>
        #doctors .card ul li{
            margin: 5px 0;
            font-size: 14px;
        }
    </style>
<section id="doctors">
   <div class="row">
       <div class="col-md-4">
           <div class="card">
               <div class="card-header">
                   <span></span>
                   <span>یافتن پزشک</span>
               </div>
               <div class="card-body">
               </div>
           </div>
       </div>
       <div class="col-md-8">
          <div class="row">
              <div class="col-md-12 mb-4">
                  <span></span>
                  <span>نوبت دهی آنلاین پزشکان
دکتر ساینا</span>
              </div>
              <?php foreach ($this->items as $item):?>
                  <div class="col-md-12 mb-2">
                      <div class="card">
                          <div class="card-body"
style="display: flex; justify-content: start">
                              <div>
                                  <a href="<?=
JRoute::_('index.php?option=com_reservation&view=doctor&uid='.$item->users_id,false)
?>"><img style="border:3px solid #ccc;width: 62px;
height: 62px; border-radius: 50%" src="<?= $item->image;
?>" alt=""></a>
                              </div>
                              <div>
                                  <ul style="list-style:
none">
                                      <li class="card-title"
style="font-weight: 600; font-size: 15px"><a
href="<?=
JRoute::_('index.php?option=com_reservation&view=doctor&uid='.$item->users_id,false)
?>"><?php echo $item->users_name;
?></a></li>
                                      <li style="margin: 13px
0;">
                                          <span style="font-size:
12px; color: gray">تخصص : </span>
                                          <span><?php echo
$item->categories_title; ?></span>
                                      </li>
                                      <li>
                                     <span><svg style="color:
red" xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi
bi-geo-alt" viewBox="0 0 16 16">
  <path d="M12.166 8.94c-.524 1.062-1.234 2.12-1.96 3.07A31.493
31.493 0 0 1 8 14.58a31.481 31.481 0 0
1-2.206-2.57c-.726-.95-1.436-2.008-1.96-3.07C3.304 7.867 3 6.862 3 6a5 5 0
0 1 10 0c0 .862-.305 1.867-.834 2.94zM8 16s6-5.686 6-10A6 6 0 0 0 2 6c0
4.314 6 10 6 10z"/>
  <path d="M8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 1a3 3 0 1 0 0-6 3 3
0 0 0 0 6z"/>
</svg></span>
                                          <span> <?php echo
$item->address; ?></span>
                                      </li>
                                  </ul>
                              </div>
                          </div>
                          <div class="card-footer">
                              <a href="<?=
JRoute::_('index.php?option=com_reservation&view=doctor&uid='.$item->users_id,false)
?>" class="btn btn-success btn-sm" style="float:
left">نوبت دهی آنلاین</a>
                          </div>
                      </div>
                  </div>
              <?php endforeach; ?>
          </div>
       </div>
   </div>
</section><!--[/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>
PKET�[�>�oMMdoctors/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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_reservation'); ?>"
method="post" name="adminForm"
id="adminForm">
<?php echo $this->toolbar->render(); ?>
<!--[JCBGUI.site_view.default.33.$$$$]-->
  <style>
        #doctors .card ul li{
            margin: 5px 0;
            font-size: 14px;
        }
    </style>
<section id="doctors">
   <div class="row">
       <div class="col-md-4">
           <div class="card">
               <div class="card-header">
                   <span></span>
                   <span>یافتن پزشک</span>
               </div>
               <div class="card-body">
               </div>
           </div>
       </div>
       <div class="col-md-8">
          <div class="row">
              <div class="col-md-12 mb-4">
                  <span></span>
                  <span>نوبت دهی آنلاین پزشکان
دکتر ساینا</span>
              </div>
              <?php foreach ($this->items as $item):?>
                  <div class="col-md-12 mb-2">
                      <div class="card">
                          <div class="card-body"
style="display: flex; justify-content: start">
                              <div>
                                  <a href="<?=
JRoute::_('index.php?option=com_reservation&view=doctor&uid='.$item->users_id,false)
?>"><img style="border:3px solid #ccc;width: 62px;
height: 62px; border-radius: 50%" src="<?= $item->image;
?>" alt=""></a>
                              </div>
                              <div>
                                  <ul style="list-style:
none">
                                      <li class="card-title"
style="font-weight: 600; font-size: 15px"><a
href="<?=
JRoute::_('index.php?option=com_reservation&view=doctor&uid='.$item->users_id,false)
?>"><?php echo $item->users_name;
?></a></li>
                                      <li style="margin: 13px
0;">
                                          <span style="font-size:
12px; color: gray">تخصص : </span>
                                          <span><?php echo
$item->categories_title; ?></span>
                                      </li>
                                      <li>
                                     <span><svg style="color:
red" xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi
bi-geo-alt" viewBox="0 0 16 16">
  <path d="M12.166 8.94c-.524 1.062-1.234 2.12-1.96 3.07A31.493
31.493 0 0 1 8 14.58a31.481 31.481 0 0
1-2.206-2.57c-.726-.95-1.436-2.008-1.96-3.07C3.304 7.867 3 6.862 3 6a5 5 0
0 1 10 0c0 .862-.305 1.867-.834 2.94zM8 16s6-5.686 6-10A6 6 0 0 0 2 6c0
4.314 6 10 6 10z"/>
  <path d="M8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 1a3 3 0 1 0 0-6 3 3
0 0 0 0 6z"/>
</svg></span>
                                          <span> <?php echo
$item->address; ?></span>
                                      </li>
                                  </ul>
                              </div>
                          </div>
                          <div class="card-footer">
                              <a href="<?=
JRoute::_('index.php?option=com_reservation&view=doctor&uid='.$item->users_id,false)
?>" class="btn btn-success btn-sm" style="float:
left">نوبت دهی آنلاین</a>
                          </div>
                      </div>
                  </div>
              <?php endforeach; ?>
          </div>
       </div>
   </div>
</section><!--[/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>
PKET�[p�Ok��doctors/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_DOCTORS_TITLE"
option="COM_RESERVATION_MENU_DOCTORS_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_DOCTORS_DESC]]>
		</message>
	</layout>
</metadata>PKET�[�#o,,doctors/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKFT�[���j��doctors/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Doctors
 */
class ReservationViewDoctors 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 reservationHeaderCheck;
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/doctors.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('doctors');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKFT�[�#o,,doctorsignup/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKFT�[W����doctorsignup/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		submitbutton.js
	@author			farhad shahbazi <http://farhad.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._('doctorsignup, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}PKFT�[�ŦQQdoctorsignup/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.34.$$$$]-->
<section id="doctorsignup">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <form method="post" action=""
id="adminForm">

                <div class="form-group">
                    <label>نام و نام
خانوادگی</label>
                    <input type="text"
name="jform[name]" class="form-control">
                </div>
                <div class="form-group">
                    <?php //echo
$this->form->getLabel('msn'); ?>    
                    <?= $this->form->getInput('msn');
?>
                </div>
                <div class="form-group">
                    <?= $this->form->getLabel('catid')
?>
                    <select id="jform_catid_level1"
class="form-control">
                        <option>Default select</option>
                    </select>
                </div>
                <div class="form-group">
                    <select id="jform_catid"
name="jform[catid]" class="form-control">

                    </select>
                </div>
                <div class="form-group">
                    <?=
$this->form->getLabel('capitalid') ?>
                    <select id="jform_capitalid"
name="jform[capitalid]" class="form-control">
                        <option>Default select</option>
                    </select>
                </div>
                <div class="form-group">
                    <select id="jform_cityid"
name="jform[cityid]" class="form-control">
                    </select>
                </div>
                <div class="form-group">
                    <?=
$this->form->getLabel('phonenumber'); ?>
                    <?=
$this->form->getInput('phonenumber'); ?>
                </div>
                <div class="form-group">
                    <?=
$this->form->getLabel('officephone'); ?>
                    <?=
$this->form->getInput('officephone'); ?>
                </div>
                <div class="form-group">
                    <?=
$this->form->getLabel('address'); ?>
                    <?=
$this->form->getInput('address'); ?>
                </div>
                <div class="form-group">
                    <label for="">رمز
عبور</label>
                    <input type="password"
name="jform[password]" class="form-control"
required>
                </div>
                <div class="form-group">
                    <label for="">کد
امنیتی</label>
                    <input type="text"
name="captcha" class="form-control">
                </div>
                <button type="submit" class="btn
btn-primary">ثبت نام</button>

                <input type="hidden"
name="jform[userid]" value="0"
class="form-control">
                <input type="hidden" name="<?=
JSession::getFormToken(); ?>" id="token">
                <input type="hidden" name="task"
value="doctorsignup.signup">
            </form>
        </div>
    </div>
</section><!--[/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; ?>
PKFT�[l`�doctorsignup/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_DOCTORSIGNUP_TITLE"
option="COM_RESERVATION_MENU_DOCTORSIGNUP_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_DOCTORSIGNUP_DESC]]>
		</message>
	</layout>
</metadata>PKFT�[�#o,,doctorsignup/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKFT�[�q.m��doctorsignup/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Doctorsignup
 */
class ReservationViewDoctorsignup 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');
		
		/***[JCBGUI.site_view.php_jview_display.34.$$$$]***/
		 $this->form= \Joomla\CMS\Form\Form::getInstance("doctor",
JPATH_COMPONENT_ADMINISTRATOR . "/models/forms/doctor.xml",
array("control" => "jform"));
		       
$this->form->bind($this->app->getUserState('doctor.data'));/***[/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 reservationHeaderCheck;

		// Add View JavaScript File
		$this->document->addScript(JURI::root(true) .
"/components/com_reservation/assets/js/doctorsignup.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/doctorsignup.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('doctorsignup');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKFT�[�#o,,firstqst/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKFT�[�p^��firstqst/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		submitbutton.js
	@author			farhad shahbazi <http://farhad.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._('firstqst, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}PKFT�[:�k>ddfirstqst/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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(); ?>
<div class="chat">
    <div class="row justify-content-center">
        <div class="col-md-8">

            <div class="card">
                <div class="card-header">
                    <p><?php echo $this->item->users_name;
?></p>
                    <a class="img" href="#">
                    <?php
                      if ( ( ! file_exists( JPATH_SITE .
'/libraries/CBLib/CBLib/Core/CBLib.php' ) ) || ( ! file_exists(
JPATH_ADMINISTRATOR .
'/components/com_comprofiler/plugin.foundation.php' ) ) ) {
                        // echo 'CB not installed';
                        $imgurl = '';
                      }
                      else
                      {
                        include_once( JPATH_ADMINISTRATOR .
'/components/com_comprofiler/plugin.foundation.php' );
                        
                        cbimport( 'cb.html' );
                        $joomlaid = $id;
                        global $_CB_framework, $_PLUGINS, $ueConfig;

                        $cbUser =& CBuser::getInstance( (int)
JFactory::getApplication()->input->get('uid') );
                        $user = $cbUser->getUserData();
                        $imgurl = '/images/comprofiler/' .
$user->avatar;
                        // dump($user, 'user');
                      }
                    ?>
                        <img src="<?php echo $imgurl;?>"
alt="">
                    </a>
                </div>
                <div class="card-body">
                    <div class="pm">
                                 <span class="text">
                                  سلام، دکتر <?=
$this->item->users_name;?>  هستم <?php echo
$this->item->categories_title; ?>
                                </span>
                        <br/>
                        <span
class="time">22:36</span>
                    </div>
                    <div class="pm">
                                 <span class="text">
                                  از طریق این سیستم، شما
می توانید با من گفتگو کنید. من از ساعت 8
صبح الی 24 پاسخگوی شما هستم و تلاش می کنم
تا 10 ساعت آینده پاسخ شما رو بدهم.
                                </span>
                        <br/>
                        <span
class="time">22:36</span>
                    </div>
                </div>
                <div class="card-footer">
                    <form style="padding: 15px;"
action="<?=
JRoute::_('index.php?option=com_reservation&view=firstQst&uid='.$this->item->userid.'&pid='.$this->item->plan->id,false);?>"
method="post" id="adminForm"
class="form-inline">
                        <?php if (JFactory::getUser()->guest): ?>

                            <!-- Button trigger modal -->
                            <button id="mbtn"
type="button" class="btn btn-primary formbtn"
data-toggle="modal" data-target="#m1">
                                ارسال
                            </button>

                        <?php else: ?>

                            <button type="submit"
name="chatSendBtn" id="chatSendBtn" class="btn
btn-primary formbtn"
style="position:relative;;background-color:#007bff;
cursor:pointer;margin-top: 0;">
                                ارسال
                                <div id="loading"
class="spinner-grow text-warning" role="status">
                                    <span
class="sr-only">Loading...</span>
                                </div>
                            </button>

                        <?php endif; ?>

                        <input type="text"
style="flex-grow: 2" class="form-control mr-1"
name="chatMessage" id="chatMessage" required
placeholder="پیام خود را وارد کنید ...">
                        <input type="hidden"
name="task" value="firstQst.save" />
                        <?php echo JHtml::_('form.token');
?>
                    </form>

                </div>
            </div>

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

<!-- Modal -->
<div class="modal fade" id="m1"
tabindex="-1" role="dialog"
aria-labelledby="exampleModalCenterTitle"
aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered"
role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close"
data-dismiss="modal" aria-label="Close">
                    <span
aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                برای شروع گفت و گو ابتدا باید
وارد حساب کاربری خود شوید.
            </div>
            <div class="modal-footer">
                <a href="<?=
JRoute::_('index.php?option=com_reservation&view=usersign&Itemid=642',false);?>"
class="btn btn-primary">ورود به حساب
کاربری</a>
            </div>
        </div>
    </div>
</div>


PKFT�[ekr��firstqst/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_FIRSTQST_TITLE"
option="COM_RESERVATION_MENU_FIRSTQST_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_FIRSTQST_DESC]]>
		</message>
	</layout>
</metadata>PKGT�[�#o,,firstqst/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKGT�[�19�u
u
firstqst/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Firstqst
 */
class ReservationViewFirstqst 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');

		// 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 reservationHeaderCheck;

		// Add View JavaScript File
		$this->document->addScript(JURI::root(true) .
"/components/com_reservation/assets/js/firstqst.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript"); 
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/firstqst.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('firstqst');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKGT�[�#o,,login/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKGT�[N|z;��login/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		submitbutton.js
	@author			farhad shahbazi <http://farhad.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._('login, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}PKGT�[��*�	�	login/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.43.$$$$]-->
<section id="login" class="mb-5">
    <div class="row justify-content-center">
        <div class="col-md-4">
            <div>
                <p style="font-weight:
bold">ورود</p>
                <p style="font-size: 12px">برای
ورود یا ثبت نام ، شماره موبایل خود را وارد
نمایید</p>
            </div>
           <div class="card">
               <div class="card-body">
                   <form method="post"
id="adminForm">
                       <div class="form-group">
                           <label
for="phoneNumber">شماره موبایل </label>
                           <input type="text"
class="form-control" name="phonenumber"
aria-describedby="phoneNumber"
placeholder="09121234567" value="<?=
isset($this->info['phonenumber'])?$this->info['phonenumber']:
'' ?>">
                       </div>
                       <button type="submit"
class="loginBtn">ورود</button>
                       <input type="hidden"
name="task" value="login.loginRegister">
                       <?= JHtml::_('form.token'); ?>
                   </form>
               </div>
           </div>
        </div>
    </div>
</section>
<?php 
// echo $this->loadTemplate('register'); 
// echo $this->loadTemplate('password'); 
?><!--[/JCBGUI$$$$]-->

PKGT�[,���login/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_LOGIN_TITLE"
option="COM_RESERVATION_MENU_LOGIN_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_LOGIN_DESC]]>
		</message>
	</layout>
</metadata>PKGT�[
�y�KKlogin/tmpl/default_password.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_password.php
	@author			farhad shahbazi <http://farhad.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.20.$$$$]-->
<section id="login" class="mb-5">
    <div class="row justify-content-center">
        <div class="col-md-4">
            <div>
                <p style="font-weight:
bold">ورود</p>
                <?php if
(JFactory::getApplication()->getUserState('loginWith')==
'password'): ?>
                    <p style="font-size: 12px">برای
ورود ، رمز عبور خود را وارد نمایید</p>
                <?php elseif
(JFactory::getApplication()->getUserState('loginWith')==
'verifyCode'): ?>
                    <p style="font-size: 12px">برای
ورود ، کد تایید  خود را وارد نمایید</p>
                <?php endif; ?>

            </div>
            <div class="card">
                <div class="card-body">
                    <form method="post"
id="adminForm">
                                              <a href="<?=
JRoute::_('index.php?option=com_reservation&view=login',false);
?>" style="position:absolute;left: 16px;top:
4px;">ویرایش شماره</a>

                        <div class="form-group">
                            <?php if
(JFactory::getApplication()->getUserState('loginWith')==
'password'): ?>
                                <label
for="password">رمز عبور</label>
                            <?php elseif
(JFactory::getApplication()->getUserState('loginWith')==
'verifyCode'): ?>
                                <label for="password">کد
تایید</label>
                            <?php endif; ?>

                            <input type="password"
class="form-control" name="jform[password]"
aria-describedby="password">
                            <?php if
(JFactory::getApplication()->getUserState('loginWith')==
'password'): ?>

                                <small><button
class="btnToLink"
onclick="Joomla.submitbutton('login.verifyCode')">ورود
با رمز یکبارمصرف</button></small>

                            <?php elseif
(JFactory::getApplication()->getUserState('loginWith')==
'verifyCode'): ?>

                                <small
id="demo"></small>
                                <small><button
class="btnToLink"
onclick="Joomla.submitbutton('login.password')">ورود
با رمزعبور</button></small>

                            <?php endif; ?>
                        </div>
                        <button type="submit"
class="loginBtn"
onclick="Joomla.submitbutton('login.login')">ورود</button>
                        <input type="hidden"
name="task">
                        <?= JHtml::_('form.token'); ?>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section><!--[/JCBGUI$$$$]-->

PKGT�[ܓ�>
>
login/tmpl/default_register.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_register.php
	@author			farhad shahbazi <http://farhad.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.19.$$$$]-->
<section id="login" class="mb-5">
    <div class="row justify-content-center">
        <div class="col-md-4">
            <div>
                <p style="font-weight: bold">ثبت
نام</p>
                <p style="font-size: 12px">برای ثبت
نام ، فیلد های زیر را پر نمایید</p>
            </div>
            <div class="card">
                <div class="card-body">
                    <form method="post"
name="adminForm" id="adminForm">
                                              <a href="<?=
JRoute::_('index.php?option=com_reservation&view=login',false);
?>" style="position:absolute;left: 16px;top:
4px;">ویرایش شماره</a>

                        <div class="form-group">
                            <label for="name">نام و
نام خانوادگی</label>
                            <?php $data=
JFactory::getApplication()->getUserState('owner.data',null);
?>
                            <input type="text"
class="form-control" name="jform[name]"
aria-describedby="name" placeholder="فرهاد
فرهادی" value="<?= empty($data)? '':
$data['name']; ?>">
                        </div>
                        <div class="form-group">
                            <label for="password">رمز
عبور</label>
                            <input type="password"
class="form-control" name="jform[password]"
aria-describedby="password" value="<?= empty($data)?
'': $data['password']; ?>">
                        </div>
                        <div class="form-group">
                            <label for="verify">کد
تایید</label>
                            <input type="text"
class="form-control" name="jform[verify]"
aria-describedby="verify">
                            <small
id="demo"></small>
                        </div>
                        <button class="loginBtn"
onclick="Joomla.submitbutton('login.register');">ثبت
نام</button>
                        <input type="hidden"
name="task">
                        <?= JHtml::_('form.token'); ?>
                    </form>
                </div>
            </div>
        </div>
    </div>
</section><!--[/JCBGUI$$$$]-->

PKGT�[�#o,,login/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKGT�[h��i99login/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Login
 */
class ReservationViewLogin 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.43.$$$$]***/
		$this->loginProccess();
		$this->info=
$this->app->getUserState('info',array());/***[/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);
	}


/***[JCBGUI.site_view.php_jview.43.$$$$]***/
public function __construct($config = array())
    {
        $layout=
JFactory::getApplication()->input->get('layout','default','string');
        $config['layout']= $layout;
        $this->document= JFactory::getDocument();
        parent::__construct($config);
    }

public function loginProccess()
    {
        if (!JFactory::getUser()->guest)
        {
          $this->app->enqueueMessage('برای ثبت نام
ابتدا از حساب کاربری فعلی خود خارج
شوید','warning');
          $this->app->redirect(JUri::root());
        }
        JFactory::getDocument()->addScriptOptions('expire',
$this->app->getUserState('expire'));
        $layout= $this->getLayout();
        $info= $this->app->getUserState('info');

        if ($layout== 'default')
        {
            $this->app->setUserState('expire',''
);
            $this->app->setUserState('owner.data', null);
            if (!JFactory::getUser()->guest)
                $this->app->redirect(JUri::root());
        }
        elseif ($layout== 'default_register')
        {

            if (!$info['phonenumber'] ||
!$info['validate'] || $info['userExist'] ||
!JFactory::getUser()->guest)
            {
               
$this->app->redirect(JRoute::_('index.php?option=com_reservation&view=login',false));
//                $this->setLayout('default');
            }
        }
 	    elseif ($layout== 'default_password')
        {
            if (!$info['phonenumber'] ||
!$info['validate'] || !$info['userExist'] ||
!JFactory::getUser()->guest)
            {
               
$this->app->redirect(JRoute::_('index.php?option=com_reservation&view=login',false));
//                $this->setLayout('default');
            }
        }
	}/***[/JCBGUI$$$$]***/


	/**
	 * 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 reservationHeaderCheck;

		// Add View JavaScript File
		$this->document->addScript(JURI::root(true) .
"/components/com_reservation/assets/js/login.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/login.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('login');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKGT�[�#o,,messages/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKGT�[�ݗ�>�>messages/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.26.$$$$]-->
<?php
$clip='<svg xmlns="http://www.w3.org/2000/svg"
version="1.0" width="25px" height="25px"
viewBox="0 0 400.000000 448.000000"
preserveAspectRatio="xMidYMid meet" style="&#10;   
fill: #a5a5a5"><g transform="translate(0.000000,448.000000)
scale(0.100000,-0.100000)" fill="inherit"
stroke="none"><path d="M2620 4465 c-179 -30 -330 -90
-477 -188 -87 -58 -206 -174 -1037 -1006 l-940 -940 -3 -58 c-5 -68 16 -111
69 -143 37 -22 107 -27 141 -9 12 6 434 422 937 924 556 554 941 930 981 958
164 115 328 169 514 169 147 -1 241 -22 370 -86 332 -163 529 -488 512 -841
-8 -164 -52 -291 -155 -450 -64 -100 -2284 -2324 -2390 -2395 -220 -148 -495
-113 -683 87 -174 187 -195 439 -53 653 30 45 385 407 1171 1192 1193 1192
1146 1148 1234 1148 45 0 122 -46 152 -92 29 -46 37 -121 16 -175 -5 -16 -410
-428 -919 -938 -992 -993 -944 -940 -919 -1030 14 -51 65 -102 112 -110 94
-18 34 -71 1010 903 494 493 919 926 944 961 150 207 128 458 -57 641 -164
163 -375 195 -585 87 -51 -26 -224 -195 -1217 -1186 -1209 -1208 -1208 -1207
-1274 -1358 -92 -207 -89 -487 5 -690 43 -91 100 -170 177 -244 117 -111 236
-179 389 -220 118 -32 319 -32 430 -1 94 27 198 78 275 134 80 59 2347 2330
2409 2413 75 101 166 290 196 409 110 436 -16 869 -342 1176 -263 248 -643
365 -993 305z"/></g></svg>';
$send='<svg xmlns="http://www.w3.org/2000/svg"
version="1.0" width="25px" height="25px"
viewBox="0 0 448.000000 396.000000"
preserveAspectRatio="xMidYMid meet" style=" fill: #238ff3;
"> <g transform="translate(0.000000,396.000000)
scale(0.100000,-0.100000)" fill="inherit"
stroke="none"> <path d="M285 3946 c-110 -27 -202 -105
-252 -211 l-28 -60 0 -585 0 -585 27 -57 c47 -101 137 -178 243 -207 22 -6
436 -63 920 -126 484 -64 893 -119 909 -123 19 -5 -251 -43 -815 -116 -464
-59 -886 -114 -937 -122 -157 -23 -261 -95 -320 -222 l-27 -57 0 -595 0 -595
27 -57 c73 -156 239 -247 399 -218 43 8 567 229 1708 722 905 390 1756 758
1891 815 135 58 265 120 290 138 100 70 155 180 154 305 -2 109 -31 179 -108
256 l-61 60 -1900 814 c-1045 447 -1925 819 -1955 826 -66 16 -99 16 -165
0z"></path> </g> </svg>';
$recorder='<svg xmlns="http://www.w3.org/2000/svg"
version="1.0" width="25px" height="25px"
viewBox="0 0 352.000000 512.000000"
preserveAspectRatio="xMidYMid meet" style="&#10;   
fill: #a5a5a5;&#10;"> <g
transform="translate(0.000000,512.000000)
scale(0.100000,-0.100000)" fill="inherit"
stroke="none"> <path d="M1580 5105 c-293 -47 -576 -227
-747 -476 -83 -121 -153 -299 -178 -454 -22 -131 -22 -1565 0 -1705 45 -302
223 -583 476 -757 124 -85 303 -155 459 -178 612 -93 1183 326 1275 935 22
139 22 1561 0 1700 -43 285 -199 549 -427 721 -246 185 -554 262 -858 214z
m370 -328 c209 -57 368 -171 480 -344 50 -76 79 -142 108 -248 15 -54 17 -144
17 -865 0 -721 -2 -811 -17 -865 -29 -106 -58 -172 -108 -248 -238 -366 -718
-474 -1087 -247 -180 111 -294 265 -361 490 -15 49 -17 145 -20 825 -2 557 0
791 8 845 53 337 300 594 640 666 80 17 262 12 340 -9z"/> <path
d="M95 3666 c-41 -18 -83 -69 -90 -109 -4 -18 -5 -278 -3 -577 4 -512 6
-552 26 -658 71 -361 231 -661 492 -922 278 -279 611 -447 987 -501 l92 -13 3
-392 c3 -379 4 -394 24 -420 39 -53 71 -69 134 -69 63 0 95 16 134 69 20 26
21 41 24 420 l3 393 62 7 c34 4 101 16 148 26 353 78 645 242 895 503 278 289
443 646 484 1047 7 65 10 296 8 607 -3 488 -4 502 -24 529 -39 53 -71 69 -134
69 -63 0 -95 -16 -134 -69 -20 -27 -21 -42 -27 -594 -6 -528 -7 -573 -27 -659
-68 -297 -191 -523 -397 -728 -207 -208 -437 -332 -733 -397 -140 -31 -424
-31 -564 0 -295 65 -527 190 -733 397 -205 204 -331 435 -398 730 -19 83 -21
135 -26 657 -6 552 -7 567 -27 594 -11 15 -32 37 -46 47 -33 25 -113 32 -153
13z"/> </g> </svg>';
?>
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css">
<script type="text/javascript"
src="https://cdn.jsdelivr.net/npm/toastify-js"></script>

<div id="context-menu" style="width: 150px; position:
absolute; display: none">
  <div class="css-1obmwoi ezvb10p0"></div>
  <div origin="right top" class="css-m4s3q2
ezvb10p1">
    <ul class="css-1wjqtxb ehfgrij0">
      <li class="Menu_MenuItemWrapper__NyeOc"
id="editctxbtn" data-cmd="edit" style="display:
none" >
        <img class="Menu_MenuIcon__tFRZQ css-v6ppy3 e13l1lra1"
src="/components/com_reservation/assets/images/edit_icon.svg"
alt="ویرایش">
        <p
class="Menu_Title__jDLFR">ویرایش</p>
      </li>
      <li class="Menu_MenuItemWrapper__NyeOc"
data-cmd="reply">
        <img class="Menu_MenuIcon__tFRZQ css-v6ppy3 e13l1lra1"
src="/components/com_reservation/assets/images/reply_icon.svg"
alt="پاسخ">
        <p class="Menu_Title__jDLFR">پاسخ</p>
      </li>
      <li class="Menu_MenuItemWrapper__NyeOc"
data-cmd="copy">
        <img class="Menu_MenuIcon__tFRZQ css-v6ppy3 e13l1lra1"
src="/components/com_reservation/assets/images/copy_icon.svg"
alt="رونوشت">
        <p
class="Menu_Title__jDLFR">رونوشت</p>
      </li>
      <li class="Menu_MenuItemWrapper__NyeOc"
id="delctxbtn" data-cmd="del"
data-toggle="modal" data-target="#confirm-delete">
        <img class="Menu_MenuIcon__tFRZQ css-v6ppy3 e13l1lra1"
src="/components/com_reservation/assets/images/delete_icon.svg"
alt="حذف">
        <p class="Menu_Title__jDLFR">حذف</p>
      </li>
      
    </ul>
  </div>
</div>
<!-- <p id='copy-toast'>رونوشت پیام انجام
شد.<img 
src="/components/com_reservation/assets/images/copy_icon.svg"
alt="رونوشت"></p> -->
<div class="modal fade" id="confirm-delete"
tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true"
style="height: auto;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                حذف پیام
            </div>
            <div class="modal-body">
                آیا برای حذف این پیام مطمئن
هستید؟
            </div>

            <div class="modal-footer">
                <button type="button" class="btn
btn-default" data-dismiss="modal">لغو</button>
                <a id="submit-delete"
data-dismiss="modal" class="btn btn-success
success">تایید</a>
            </div>
        </div>
    </div>
</div>

<div class="chat">
  <div class="row justify-content-center">
    <div class="col-md-8">
      <div class="card card-cahtt">
        <div class="card-header header-chats">
          <?php
            if ( ( ! file_exists( JPATH_SITE .
'/libraries/CBLib/CBLib/Core/CBLib.php' ) ) || ( ! file_exists(
JPATH_ADMINISTRATOR .
'/components/com_comprofiler/plugin.foundation.php' ) ) ) {
              // echo 'CB not installed';
              $imgurl = '';
            }
            else
            {
              include_once( JPATH_ADMINISTRATOR .
'/components/com_comprofiler/plugin.foundation.php' );
              
              cbimport( 'cb.html' );
              $joomlaid = $id;
              global $_CB_framework, $_PLUGINS, $ueConfig;

              $cbUser =& CBuser::getInstance( (int)
JFactory::getApplication()->input->get('uid') );
              $user = $cbUser->getUserData();
              $imgurl = '/images/comprofiler/' .
$user->avatar;
              // dump($user, 'user');
            }
          ?>
          <a id="profile-user" class="img"
href="#">
            <img src="<?php echo $imgurl;?>"
alt="">
          </a>
          <p id="user-name"><?php echo
$this->item->users_name; ?></p>
          <div id="chat-status">
          <?php if($this->item->session->finish==0):?>
            <p id="notice">گفتگو در حال
انجام است</p>
          <?php else:?>
            <p id="notice">گفتگو خاتمه
یافت</p>
          <?php endif; ?>
          <?php if(empty($this->item->msn)):?>
            <?php if($this->item->session->finish==0):?>
              <button id="conversation" class="btn btn-sm
btn-danger">پایان گفتگو
                <div id="loading" class="spinner-grow
text-warning" role="status">
                  <span
class="sr-only">Loading...</span>
                </div>
              </button>
            <?php else:?>
              <button id="conversation" class="btn btn-sm
btn-success">ادامه گفتگو
                <div id="loading" class="spinner-grow
text-warning" role="status">
                  <span
class="sr-only">Loading...</span>
                </div>
              </button>
            <?php endif; ?>
            <button id="video_session" class="btn btn-sm
btn-info">شروع جلسه آنلاین
              <div id="loading" class="spinner-grow
text-warning" role="status">
                <span
class="sr-only">Loading...</span>
              </div>
            </button>
          <?php endif;?>
          </div>
        </div>
        <div class="card-body" id="chat-body">
        <?php //dump($this, 'this');?>
        
        <?php foreach($this->item->messages as $message):?>
          <?php
            // dump($message, 'message');
            $tsmsg = trim(strip_tags($message->message));
            $reply = "";
            if($message->reply)
            {
              $reply_pm = $this->item->messages[$message->reply];
              $reply = $reply_pm->message;
              // dump($reply_pm, 'reply_pm');
              if($reply_pm->from == $this->item->users_id)
                $reply_user = $this->item->users_name;
              else
                $reply_user = $this->user->name;
                
              $reply = '<div
id="rep-'.$message->reply.'" class="text
reply"><div class="Preview_preview__7RTlb"
data-prevent-context-menu-mobile="true" style="border-right:
3px solid rgb(19, 194, 194);"><div
class="Preview_details__kki9K"><span
class="Preview_sender__RUCFl" style="color: rgb(19, 194,
194);">'.$reply_user.'</span><div
class="Text_text__0QjN9
TextPreview_text_preview__7vRSt"><span>'.$reply.'</span></div></div></div></div>';
            }
            // $date = new DateTime($message->created, new
DateTimeZone('UTC'));
            // $date->setTimezone(new
DateTimeZone('Asia/tehran'));
          ?>
          <?php if($tsmsg || substr($message->message, 0, 4) ==
'<img'): ?>
            <div class="pm <?= ($message->from !=
$this->item->users_id)? 'me': '';?>"
id="pm-<?php echo $message->id?>">
              <?php if($reply && $message->from !=
$this->item->users_id):?>
                <?php echo $reply; ?>
              <?php endif;?>
              <div class="text">
                <span class="massage">
                  <?= $message->message;?>
                </span>
                <div class="info-message">
                  <span class='readtick <?php echo
$message->read ? 'read' : 'unread';?>'
style="<?= ($message->from==$this->item->users_id)?
'display:none;': '';?>">  </span>
                  <!--<span class="time"><?php //echo
$date->format('Y/m/d H:i'); ?></span> -->
                  <!--<span class="time"><?php //echo
JHtml::_('date', $message->created, 'l, d M Y G:i');
?></span>-->
                  <span class="time"><?php echo
JHtml::_('date', $message->created, 'Y/m/d G:i');
?></span>
                </div>
              </div>
              <?php if($reply && $message->from ==
$this->item->users_id):?>
                <?php echo $reply; ?>
              <?php endif;?>
            </div>
          <?php endif;?>
        <?php endforeach;?>
        </div>
        <div class="">
          <form id='sending-form' action="#"
method="post" class="form-inline"
enctype="multipart/form-data">
          
            <div id="reply-header" class="css-go2n58
e27v5ni5" style="display: none;">
              <div class="css-1ber1nl e27v5ni2">
                <div class="Preview_preview__7RTlb css-5a4ol0"
data-prevent-context-menu-mobile="true" style="border-right:
3px solid rgb(19, 194, 194);">
                  <div class="Preview_details__kki9K">
                    <span id="reply-user"
class="Preview_sender__RUCFl" style="color: rgb(19, 194,
194);">ArMaN</span>
                    <div class="Text_text__0QjN9
TextPreview_text_preview__7vRSt">
                      <span
id="reply-text">replytext</span>
                      <input type="hidden" value="0"
name="replyid" id="reply-id">
                    </div>
                  </div>
                </div>
              </div>
              <div id="reply-close" class="e27v5ni1
css-1fgag0w eryqwb30">
                <svg xmlns="http://www.w3.org/2000/svg"
width="16" height="16" viewBox="0 0 24
24"><g transform="translate(-1024 -240)"><g
transform="translate(1024 240)"><rect fill="none"
width="16" height="16"></rect><path
fill="#5e6c84"
d="M14.857,9.143H9.143v5.714a1.143,1.143,0,1,1-2.286,0V9.143H1.143a1.143,1.143,0,1,1,0-2.286H6.857V1.143a1.143,1.143,0,1,1,2.286,0V6.857h5.714a1.143,1.143,0,1,1,0,2.286Z"
transform="translate(12 0.686)
rotate(45)"></path></g></g></svg>
              </div>
            </div>
            <div style="position: relative;">
              <button type="submit"
name="chatSendBtn" id="chatSendBtn" class="btn
btn-primary"
                style="cursor:<?=
$this->item->session->finish==1?'no-drop':'pointer';?>"
                <?=
$this->item->session->finish==1?'disabled':'';?>
>
                <?php echo $send; ?>
                <div id="loading" class="spinner-grow
text-warning" role="status">
                  <span
class="sr-only">Loading...</span>
                </div>
              </button>
              <!-- <input title="در این قسمت
میتوانید پیام خود را وارد کنید"
type="text" style="flex-grow: 2"
class="form-control mr-1" name="chatMessage"
id="chatMessage" required placeholder="پیام خود را
وارد کنید ..."> -->
              <textarea title="در این قسمت
میتوانید پیام خود را وارد کنید"
id="chatMessage" style="height: 51px;"
name="chatMessage" cols="100%" required
placeholder="پیام خود را وارد کنید
..."></textarea>
              <label id="upload_file"
for="atachedfile">
                <?php echo $clip; ?>
              </label>
              <label id="upload_voise"
for="atachedfile">
                <?php echo $recorder; ?>
              </label>
            </div>
            <input name="atachedfile"
id='atachedfile' type="file" />
            <progress style="display:
none;"></progress>
            <input type="hidden" name="pmid"
id="pmid" value="0">
          </form>

        </div>
      </div>
    </div>
  </div>
  <div id="myModal" class="modalimg">
    <span class="closeimg">&times;</span>
    <img class="modalimg-content" id="img01">
    <div id="caption"></div>
  </div>
	<script>
	</script>
  <input type="hidden" name="<?=
JSession::getFormToken();?>" id="token">
	
</div><!--[/JCBGUI$$$$]-->

PKGT�[�ʝ��7�7messages/tmpl/default.php.baknu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.36
	@build			11th February, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.26.$$$$]-->
<!--<link
href="http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css"
rel="stylesheet">
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script
src="http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js"></script>
-->
<div class="chat">
    <div class="row justify-content-center">
        <div class="col-md-8">

            <div class="card">
                <div class="card-header">
                  <div style="position: absolute; right:
1%;">

                      <?php
if($this->item->session->finish==0):?>
                          <p id="notice" class="alert
alert-info">گفتگو در حال انجام است</p>
                      <?php else:?>
                         <p id="notice" class="alert
alert-info">گفتگو خاتمه یافت</p>
                      <?php endif; ?>


                      <?php if(empty($this->item->msn)):?>

                          <?php
if($this->item->session->finish==0):?>
                              <button id="conversation"
class="btn btn-sm btn-danger">پایان گفتگو
                                  <div id="loading"
class="spinner-grow text-warning" role="status">
                                      <span
class="sr-only">Loading...</span>
                                  </div>
                              </button>
                          <?php else:?>
                              <button id="conversation"
class="btn btn-sm btn-success " style="position: absolute;
right: 1%;">ادامه گفتگو
                                  <div id="loading"
class="spinner-grow text-warning" role="status">
                                      <span
class="sr-only">Loading...</span>
                                  </div>
                              </button>
                          <?php endif; ?>

                      <?php endif;?>
                  </div>
                    <p><?php echo $this->item->users_name;
?></p>
                    <a class="img" href="#">
                        <img
src="/joomla/templates/mytemp/assets/images/farzad.jpg"
alt="">
                    </a>
                </div>
                <div class="card-body">
                    <?php //dump($this->item->messages,
'messages');?>
                    <?php foreach($this->item->messages as
$message):?>

                        <div class="pm <?=
($message->from!=$this->item->users_id)? 'me':
'';?>">
                                    <span class="text">
                                      <?= $message->message;?>
                                    </span><span> <?php echo
$message->seen ? '✓✓' : '✓';?>
</span>
                            <br/>
                            
                            <span class="time"><?php
echo strftime('%I:%M:%S %p', strtotime($message->created));
?></span>
                        </div>

                    <?php endforeach;?>
<!--                    <div class="pm me">-->
<!--                                <span
class="text">-->
<!--                                  سلام-->
<!--                                </span>-->
<!--                        <br/>-->
<!--                        <span
class="time">22:35</span>-->
<!--                    </div>-->
<!--                    <div class="pm">-->
<!--                                 <span
class="text">-->
<!--                                  علیک سلام-->
<!--                                </span>-->
<!--                        <br/>-->
<!--                        <span
class="time">22:36</span>-->
<!--                    </div>-->
                </div>
                <div class="card-footer">

                    <form id='sending-form'
style="padding: 15px;" action="#"
method="post" class="form-inline"
enctype="multipart/form-data">
                        <button type="submit"
name="chatSendBtn" id="chatSendBtn" class="btn
btn-primary"
                           
style="position:relative;;background-color:#007bff;margin-top:
0;cursor:<?=
$this->item->session->finish==1?'no-drop':'pointer';?>"
                            <?=
$this->item->session->finish==1?'disabled':'';?>
>
                            ارسال
                            <div id="loading"
class="spinner-grow text-warning" role="status">
                                <span
class="sr-only">Loading...</span>
                            </div>
                        </button>
                        <input type="text"
style="flex-grow: 2" class="form-control mr-1"
name="chatMessage" id="chatMessage" required
placeholder="پیام خود را وارد کنید ...">
						<input name="atachedfile" id='atachedfile'
type="file" />
						<progress style="display: none;"></progress>
                    </form>

                </div>
            </div>

        </div>
    </div>
	<script>
    var filename = '';
    var delayInMilliseconds = 1500; //1 second
	jQuery(':file').on('change', function () {
        var file = this.files[0];
        filename = file.name;
        // if (file.size > 10240) {
        //   alert('max upload size is 10k');
        // }

        // Also see .name, .type
        console.log(file);
        console.log('filetype', file.type);
	});
    function sleep(ms) {
        return new Promise(resolve => setTimeout(resolve, ms));
    }
	jQuery('#chatSendBtn').on('click', function () {
        var _this= jQuery(this);
        var formdata = new FormData(jQuery('#sending-form')[0]);
        // formdata.append('atachedfile',
document.getElementById('atachedfile').files[0]);
        console.log(formdata);
        jQuery.ajax({
            // Your server script to process the upload
            url:
'/components/com_reservation/controllers/fileupload.php',
            type: 'POST',

            // Form data
            data: formdata,

            // Tell jQuery not to process data or worry about content-type
            // You *must* include these options!
            cache: false,
            contentType: false,
            processData: false,



            // dataType: "JSON",
            beforeSend: function () {
                //Your functions before send AJAX Request
            },
            success: function (feedback) {
                //Your functions after AJAX Request Success
            },
            error: function (error) {
                console.log(error);
            },
		
		

            // Custom XMLHttpRequest
            xhr: function () {
                console.log('--------test-------');
                var myXhr = jQuery.ajaxSettings.xhr();
                if (myXhr.upload) {
                    // For handling the progress of the upload

                    myXhr.upload.addEventListener('progress',
function (e) {
                        
                        // console.log(e.loaded, e.total);
                        if (e.lengthComputable) {
                            jQuery('progress').show();
                            jQuery('progress').attr({
                                value: e.loaded,
                                max: e.total,
                            });
                           
jQuery('#chatSendBtn').css('cursor','no-drop');
                           
jQuery('#chatSendBtn').prop('disabled', true);
                            if(e.loaded == e.total) {
                               
jQuery('#chatSendBtn').css('cursor','pointer');
                               
jQuery('#chatSendBtn').prop('disabled', false);
                                jQuery('progress').hide();
                                //
jQuery('#atachedfile').clearFields();
                                if(filename) {
                                    url =
'/components/com_reservation/files/' + filename;
                                    
                                    
                                    
                                    
                                    sleep(delayInMilliseconds).then(()
=> {
                                        ext =
filename.split('.').pop().toLowerCase();
                                        image_ext = ['jpg',
'jpeg', 'png', 'gif', 'bmp',
'jfif', 'pjpeg', 'webp', 'tif',
'tiff'];
                                        var msg = '';
                                        if(image_ext.includes(ext)) {
                                            msg = '<img
src="'+url+'">';
                                        }
                                        else {
                                            msg = '<a
href="'+url+'">' + filename +
'</a>';
                                        }
                                        var currentdate = new Date(); 
                                        tt =
currentdate.toLocaleString().split(' ');
                                        
                                       
jQuery('.chat').find('.card-body').append('<div
class="pm me">\n' +
                                        '                             
      <span class="text">\n' +
                                                                           
    msg + '\n' +
                                        '                             
      </span>\n' +
                                        '                             
      <br/>\n' +
                                        '    <span
class="time">' + tt[1] + ' ' + tt[2] +
'</span>\n' +
                                        '                             
    </div>');
                                        
                                        jQuery.ajax({
                                            url: chatAjaxRoute,
                                            method: 'post',
                                            data:{[token] : '1' ,
task: 'ajax.saveChat', format: 'json'  , raw:
'true', message:msg,from:from,to:to,seid:seid, pid: pid},
                                            success: function (msg) {
                                               
console.log('heeeeeereeeee');
                                                console.log(msg);
                                                //
$('.chat').find('.card-body').append(' <div
class="pm me">\n' +
                                                    // '              
                 <span class="text">\n' +
                                                    // '              
                  '+message+'\n' +
                                                    // '              
                 </span>\n' +
                                                    // '              
         <br/>\n' +
                                                    // '              
         <span class="time">22:35</span>\n' +
                                                    // '              
     </div>');


                                               
_this.next('#chatMessage').val('');
                                                var chatBoxBody =
jQuery('.chat .card-body')[0];
                                                //
scrollToEnd(chatBoxBody);
                                                // hideLoading(_this);
                                              //
$('#chatSendBtn').prop('disabled', false);
                                            },
                                            error: function (err) {
                                                console.log(err);
                                            }

                                        });
                                       
jQuery('#atachedfile').val('');
                                        filename = '';
                                    });
                                
                                }
                                
                            }
                        }
                    }, false);
                }
                return myXhr;
            }
	  });
      
        var token = jQuery("#token").attr("name");
        var chatAjaxRoute= Joomla.getOptions('chatAjaxRoute');
        var from= Joomla.getOptions('userId');
        var to= Joomla.getOptions('to');
        var seid= Joomla.getOptions('seid');
        var pid= Joomla.getOptions('pid');
        var channel_token= Joomla.getOptions('channel_token');
        var url = '/components/com_reservation/files/' +
filename;

        ext = filename.split('.').pop();
        image_ext = ['jpg', 'jpeg', 'png',
'gif', 'bmp', 'jfif', 'pjpeg',
'webp', 'tif', 'tiff'];
        var msg = '';
        if(image_ext.includes(ext)) {
            msg = '<img
src="'+url+'">';
        }
        else {
            msg = '<a href="'+url+'">'
+ filename + '</a>';
        }
    // sleep(delayInMilliseconds).then(() => {
        // console.log('heeeloooooooo');
    // }
        
      
	});
	</script>
    <input type="hidden" name="<?=
JSession::getFormToken();?>" id="token">
	
</div><!--[/JCBGUI$$$$]-->

PKGT�[�;��99messages/tmpl/default.php.bak2nu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.36
	@build			11th February, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.26.$$$$]-->
<!--<link
href="http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css"
rel="stylesheet">
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script
src="http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js"></script>
-->
<div class="chat">
    <div class="row justify-content-center">
        <div class="col-md-8">

            <div class="card">
                <div class="card-header">
                  <div style="position: absolute; right:
1%;">

                      <?php
if($this->item->session->finish==0):?>
                          <p id="notice" class="alert
alert-info">گفتگو در حال انجام است</p>
                      <?php else:?>
                         <p id="notice" class="alert
alert-info">گفتگو خاتمه یافت</p>
                      <?php endif; ?>


                      <?php if(empty($this->item->msn)):?>

                          <?php
if($this->item->session->finish==0):?>
                              <button id="conversation"
class="btn btn-sm btn-danger">پایان گفتگو
                                  <div id="loading"
class="spinner-grow text-warning" role="status">
                                      <span
class="sr-only">Loading...</span>
                                  </div>
                              </button>
                          <?php else:?>
                              <button id="conversation"
class="btn btn-sm btn-success " style="position: absolute;
right: 1%;">ادامه گفتگو
                                  <div id="loading"
class="spinner-grow text-warning" role="status">
                                      <span
class="sr-only">Loading...</span>
                                  </div>
                              </button>
                          <?php endif; ?>

                      <?php endif;?>
                  </div>
                    <p><?php echo $this->item->users_name;
?></p>
                    <a class="img" href="#">
                        <img
src="/joomla/templates/mytemp/assets/images/farzad.jpg"
alt="">
                    </a>
                </div>
                <div class="card-body">
                    <?php //dump($this->item->messages,
'messages');?>
                    <?php foreach($this->item->messages as
$message):?>

                        <div class="pm <?=
($message->from!=$this->item->users_id)? 'me':
'';?> pm-<?php echo $message->id?>">
                                    <span class="text">
                                      <?= $message->message;?>
                                    </span><span
id='readtick'> <?php echo $message->read ?
'✓✓' : '✓';?> </span>
                            <br/>
                            
                            <span class="time"><?php
echo strftime('%I:%M:%S %p', strtotime($message->created));
?></span>
                        </div>

                    <?php endforeach;?>
<!--                    <div class="pm me">-->
<!--                                <span
class="text">-->
<!--                                  سلام-->
<!--                                </span>-->
<!--                        <br/>-->
<!--                        <span
class="time">22:35</span>-->
<!--                    </div>-->
<!--                    <div class="pm">-->
<!--                                 <span
class="text">-->
<!--                                  علیک سلام-->
<!--                                </span>-->
<!--                        <br/>-->
<!--                        <span
class="time">22:36</span>-->
<!--                    </div>-->
                </div>
                <div class="card-footer">

                    <form id='sending-form'
style="padding: 15px;" action="#"
method="post" class="form-inline"
enctype="multipart/form-data">
                        <button type="submit"
name="chatSendBtn" id="chatSendBtn" class="btn
btn-primary"
                           
style="position:relative;;background-color:#007bff;margin-top:
0;cursor:<?=
$this->item->session->finish==1?'no-drop':'pointer';?>"
                            <?=
$this->item->session->finish==1?'disabled':'';?>
>
                            ارسال
                            <div id="loading"
class="spinner-grow text-warning" role="status">
                                <span
class="sr-only">Loading...</span>
                            </div>
                        </button>
                        <input type="text"
style="flex-grow: 2" class="form-control mr-1"
name="chatMessage" id="chatMessage" required
placeholder="پیام خود را وارد کنید ...">
						<input name="atachedfile" id='atachedfile'
type="file" />
						<progress style="display: none;"></progress>
                    </form>

                </div>
            </div>

        </div>
    </div>
	<script>
    var filename = '';
    var delayInMilliseconds = 1500; //1 second
	jQuery(':file').on('change', function () {
        var file = this.files[0];
        filename = file.name;
        // if (file.size > 10240) {
        //   alert('max upload size is 10k');
        // }

        // Also see .name, .type
        console.log(file);
        console.log('filetype', file.type);
	});
    function sleep(ms) {
        return new Promise(resolve => setTimeout(resolve, ms));
    }
	jQuery('#chatSendBtn').on('click', function () {
        var _this= jQuery(this);
        var formdata = new FormData(jQuery('#sending-form')[0]);
        // formdata.append('atachedfile',
document.getElementById('atachedfile').files[0]);
        console.log(formdata);
        jQuery.ajax({
            // Your server script to process the upload
            url:
'/components/com_reservation/controllers/fileupload.php',
            type: 'POST',

            // Form data
            data: formdata,

            // Tell jQuery not to process data or worry about content-type
            // You *must* include these options!
            cache: false,
            contentType: false,
            processData: false,



            // dataType: "JSON",
            beforeSend: function () {
                //Your functions before send AJAX Request
            },
            success: function (feedback) {
                //Your functions after AJAX Request Success
            },
            error: function (error) {
                console.log(error);
            },
		
		

            // Custom XMLHttpRequest
            xhr: function () {
                console.log('--------test-------');
                var myXhr = jQuery.ajaxSettings.xhr();
                if (myXhr.upload) {
                    // For handling the progress of the upload

                    myXhr.upload.addEventListener('progress',
function (e) {
                        
                        // console.log(e.loaded, e.total);
                        if (e.lengthComputable) {
                            jQuery('progress').show();
                            jQuery('progress').attr({
                                value: e.loaded,
                                max: e.total,
                            });
                           
jQuery('#chatSendBtn').css('cursor','no-drop');
                           
jQuery('#chatSendBtn').prop('disabled', true);
                            if(e.loaded == e.total) {
                               
jQuery('#chatSendBtn').css('cursor','pointer');
                               
jQuery('#chatSendBtn').prop('disabled', false);
                                jQuery('progress').hide();
                                //
jQuery('#atachedfile').clearFields();
                                if(filename) {
                                    url =
'/components/com_reservation/files/' + filename;
                                    
                                    
                                    
                                    
                                    sleep(delayInMilliseconds).then(()
=> {
                                        
                                        
                                        ext =
filename.split('.').pop().toLowerCase();
                                        image_ext = ['jpg',
'jpeg', 'png', 'gif', 'bmp',
'jfif', 'pjpeg', 'webp', 'tif',
'tiff'];
                                        var msg = '';
                                        if(image_ext.includes(ext)) {
                                            msg = '<img
src="'+url+'">';
                                        }
                                        else {
                                            msg = '<a
href="'+url+'">' + filename +
'</a>';
                                        }
                                        jQuery.ajax({
                                            url: chatAjaxRoute,
                                            method: 'post',
                                            data:{[token] : '1' ,
task: 'ajax.saveChat', format: 'json'  , raw:
'true', message:msg,from:from,to:to,seid:seid, pid: pid},
                                            success: function (msge) {
                                               
console.log('heeeeeereeeee');
                                                console.log(msge);
                                                console.log(msge.id);
                                                //
$('.chat').find('.card-body').append(' <div
class="pm me">\n' +
                                                    // '              
                 <span class="text">\n' +
                                                    // '              
                  '+message+'\n' +
                                                    // '              
                 </span>\n' +
                                                    // '              
         <br/>\n' +
                                                    // '              
         <span class="time">22:35</span>\n' +
                                                    // '              
     </div>');
                                                
                                                var currentdate = new
Date(); 
                                                tt =
currentdate.toLocaleString().split(' ');
                                                
                                               
jQuery('.chat').find('.card-body').append('<div
class="pm me pm-' + msge.id + '">\n' +
                                                '             
<span class="text">\n' +
                                                                  msg +
'\n' +
                                                '             
</span>\n' +
                                                '             
<span id="readtick">✓</span>\n' +
                                                '             
<br/>\n' +
                                                '    <span
class="time">' + tt[1] + ' ' + tt[2] +
'</span>\n' +
                                                '                     
            </div>');
                                                       
_this.next('#chatMessage').val('');
                                                var chatBoxBody =
jQuery('.chat .card-body')[0];
                                                //
scrollToEnd(chatBoxBody);
                                                // hideLoading(_this);
                                              //
$('#chatSendBtn').prop('disabled', false);
                                            },
                                            error: function (err) {
                                                console.log(err);
                                            }

                                        });
                                       
jQuery('#atachedfile').val('');
                                        filename = '';
                                    });
                                
                                }
                                
                            }
                        }
                    }, false);
                }
                return myXhr;
            }
	  });
      
        var token = jQuery("#token").attr("name");
        var chatAjaxRoute= Joomla.getOptions('chatAjaxRoute');
        var from= Joomla.getOptions('userId');
        var to= Joomla.getOptions('to');
        var seid= Joomla.getOptions('seid');
        var pid= Joomla.getOptions('pid');
        var channel_token= Joomla.getOptions('channel_token');
        var url = '/components/com_reservation/files/' +
filename;

        ext = filename.split('.').pop();
        image_ext = ['jpg', 'jpeg', 'png',
'gif', 'bmp', 'jfif', 'pjpeg',
'webp', 'tif', 'tiff'];
        var msg = '';
        if(image_ext.includes(ext)) {
            msg = '<img
src="'+url+'">';
        }
        else {
            msg = '<a href="'+url+'">'
+ filename + '</a>';
        }
    // sleep(delayInMilliseconds).then(() => {
        // console.log('heeeloooooooo');
    // }
        
      
	});
	</script>
    <input type="hidden" name="<?=
JSession::getFormToken();?>" id="token">
	
</div><!--[/JCBGUI$$$$]-->

PKGT�[b�/@/@messages/tmpl/default.php.bak3nu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.36
	@build			11th February, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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');

$clip='<svg xmlns="http://www.w3.org/2000/svg"
version="1.0" width="25px" height="25px"
viewBox="0 0 400.000000 448.000000"
preserveAspectRatio="xMidYMid meet" style="&#10;   
fill: #a5a5a5"><g transform="translate(0.000000,448.000000)
scale(0.100000,-0.100000)" fill="inherit"
stroke="none"><path d="M2620 4465 c-179 -30 -330 -90
-477 -188 -87 -58 -206 -174 -1037 -1006 l-940 -940 -3 -58 c-5 -68 16 -111
69 -143 37 -22 107 -27 141 -9 12 6 434 422 937 924 556 554 941 930 981 958
164 115 328 169 514 169 147 -1 241 -22 370 -86 332 -163 529 -488 512 -841
-8 -164 -52 -291 -155 -450 -64 -100 -2284 -2324 -2390 -2395 -220 -148 -495
-113 -683 87 -174 187 -195 439 -53 653 30 45 385 407 1171 1192 1193 1192
1146 1148 1234 1148 45 0 122 -46 152 -92 29 -46 37 -121 16 -175 -5 -16 -410
-428 -919 -938 -992 -993 -944 -940 -919 -1030 14 -51 65 -102 112 -110 94
-18 34 -71 1010 903 494 493 919 926 944 961 150 207 128 458 -57 641 -164
163 -375 195 -585 87 -51 -26 -224 -195 -1217 -1186 -1209 -1208 -1208 -1207
-1274 -1358 -92 -207 -89 -487 5 -690 43 -91 100 -170 177 -244 117 -111 236
-179 389 -220 118 -32 319 -32 430 -1 94 27 198 78 275 134 80 59 2347 2330
2409 2413 75 101 166 290 196 409 110 436 -16 869 -342 1176 -263 248 -643
365 -993 305z"/></g></svg>';
$send='<svg xmlns="http://www.w3.org/2000/svg"
version="1.0" width="25px" height="25px"
viewBox="0 0 448.000000 396.000000"
preserveAspectRatio="xMidYMid meet" style=" fill: #238ff3;
"> <g transform="translate(0.000000,396.000000)
scale(0.100000,-0.100000)" fill="inherit"
stroke="none"> <path d="M285 3946 c-110 -27 -202 -105
-252 -211 l-28 -60 0 -585 0 -585 27 -57 c47 -101 137 -178 243 -207 22 -6
436 -63 920 -126 484 -64 893 -119 909 -123 19 -5 -251 -43 -815 -116 -464
-59 -886 -114 -937 -122 -157 -23 -261 -95 -320 -222 l-27 -57 0 -595 0 -595
27 -57 c73 -156 239 -247 399 -218 43 8 567 229 1708 722 905 390 1756 758
1891 815 135 58 265 120 290 138 100 70 155 180 154 305 -2 109 -31 179 -108
256 l-61 60 -1900 814 c-1045 447 -1925 819 -1955 826 -66 16 -99 16 -165
0z"></path> </g> </svg>';
?>
<?php echo $this->toolbar->render(); ?>

<!--[JCBGUI.site_view.default.26.$$$$]-->
<!--<link
href="http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css"
rel="stylesheet">
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script
src="http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js"></script>
-->
<div class="chat">
    <div class="row justify-content-center">
        <div class="col-md-8">

            <div class="card">
                <div class="card-header">
                  <div style="position: absolute; right:
1%;">

                      <?php
if($this->item->session->finish==0):?>
                          <p id="notice" class="alert
alert-info">گفتگو در حال انجام است</p>
                      <?php else:?>
                         <p id="notice" class="alert
alert-info">گفتگو خاتمه یافت</p>
                      <?php endif; ?>


                      <?php if(empty($this->item->msn)):?>

                          <?php
if($this->item->session->finish==0):?>
                              <button id="conversation"
class="btn btn-sm btn-danger">پایان گفتگو
                                  <div id="loading"
class="spinner-grow text-warning" role="status">
                                      <span
class="sr-only">Loading...</span>
                                  </div>
                              </button>
                          <?php else:?>
                              <button id="conversation"
class="btn btn-sm btn-success " style="position: absolute;
right: 1%;">ادامه گفتگو
                                  <div id="loading"
class="spinner-grow text-warning" role="status">
                                      <span
class="sr-only">Loading...</span>
                                  </div>
                              </button>
                          <?php endif; ?>

                      <?php endif;?>
                  </div>
                    <p><?php echo $this->item->users_name;
?></p>
                    <a class="img" href="#">
                        <img
src="/joomla/templates/mytemp/assets/images/farzad.jpg"
alt="">
                    </a>
                </div>
                <div class="card-body"
id="chat-body">
                    <?php //dump($this->item->messages,
'messages');?>
                    <?php foreach($this->item->messages as
$message):?>

                        <div class="pm <?=
($message->from!=$this->item->users_id)? 'me':
'';?>" id="pm-<?php echo
$message->id?>">
                            <div class="text">
                                <span>
                                    <?= $message->message;?>
                                </span>
                                <div class="info-message">
                                    <span class='readtick <?php
echo $message->read ? 'read' :
'unread';?>'>  </span>
                                    <span
class="time"><?php echo strftime('%I:%M:%S %p',
strtotime($message->created)); ?></span>
                                </div>
                            </div>
                        </div>

                    <?php endforeach;?>
<!--                    <div class="pm me">-->
<!--                                <span
class="text">-->
<!--                                  سلام-->
<!--                                </span>-->
<!--                        <br/>-->
<!--                        <span
class="time">22:35</span>-->
<!--                    </div>-->
<!--                    <div class="pm">-->
<!--                                 <span
class="text">-->
<!--                                  علیک سلام-->
<!--                                </span>-->
<!--                        <br/>-->
<!--                        <span
class="time">22:36</span>-->
<!--                    </div>-->
                </div>
                <div class="">

                    <form id='sending-form'
action="#" method="post" class="form-inline"
enctype="multipart/form-data">
                        <button type="submit"
name="chatSendBtn" id="chatSendBtn" class="btn
btn-primary"
                            style="cursor:<?=
$this->item->session->finish==1?'no-drop':'pointer';?>"
                            <?=
$this->item->session->finish==1?'disabled':'';?>
>
                                <?php echo $send; ?>
                            <div id="loading"
class="spinner-grow text-warning" role="status">
                                <span
class="sr-only">Loading...</span>
                            </div>
                        </button>
                        <input title="در این قسمت
میتوانید پیام خود را وارد کنید"
type="text" style="flex-grow: 2"
class="form-control mr-1" name="chatMessage"
id="chatMessage" required placeholder="پیام خود را
وارد کنید ...">
                        <label id="upload_file"
for="atachedfile">
                            <?php echo $clip; ?>
                        </label>
						<input name="atachedfile" id='atachedfile'
type="file" />
						<progress style="display: none;"></progress>
                    </form>

                </div>
            </div>

        </div>
    </div>
	<script>
    var filename = '';
    var delayInMilliseconds = 1500; //1 second
	jQuery(':file').on('change', function () {
        var file = this.files[0];
        filename = file.name;
        // if (file.size > 10240) {
        //   alert('max upload size is 10k');
        // }

        // Also see .name, .type
        console.log(file);
        console.log('filetype', file.type);
	});
    function sleep(ms) {
        return new Promise(resolve => setTimeout(resolve, ms));
    }
	jQuery('#chatSendBtn').on('click', function () {
        var _this= jQuery(this);
        var formdata = new FormData(jQuery('#sending-form')[0]);
        // formdata.append('atachedfile',
document.getElementById('atachedfile').files[0]);
        console.log(formdata);
        jQuery.ajax({
            // Your server script to process the upload
            url:
'/components/com_reservation/controllers/fileupload.php',
            type: 'POST',

            // Form data
            data: formdata,

            // Tell jQuery not to process data or worry about content-type
            // You *must* include these options!
            cache: false,
            contentType: false,
            processData: false,



            // dataType: "JSON",
            beforeSend: function () {
                //Your functions before send AJAX Request
            },
            success: function (feedback) {
                //Your functions after AJAX Request Success
            },
            error: function (error) {
                console.log(error);
            },
		
		

            // Custom XMLHttpRequest
            xhr: function () {
                console.log('--------test-------');
                var myXhr = jQuery.ajaxSettings.xhr();
                if (myXhr.upload) {
                    // For handling the progress of the upload

                    myXhr.upload.addEventListener('progress',
function (e) {
                        
                        // console.log(e.loaded, e.total);
                        if (e.lengthComputable) {
                            jQuery('progress').show();
                            jQuery('progress').attr({
                                value: e.loaded,
                                max: e.total,
                            });
                           
jQuery('#chatSendBtn').css('cursor','no-drop');
                           
jQuery('#chatSendBtn').prop('disabled', true);
                            if(e.loaded == e.total) {
                               
jQuery('#chatSendBtn').css('cursor','pointer');
                               
jQuery('#chatSendBtn').prop('disabled', false);
                                jQuery('progress').hide();
                                //
jQuery('#atachedfile').clearFields();
                                if(filename) {
                                    url =
'/components/com_reservation/files/' + filename;
                                    
                                    
                                    
                                    
                                    sleep(delayInMilliseconds).then(()
=> {
                                        
                                        
                                        ext =
filename.split('.').pop().toLowerCase();
                                        image_ext = ['jpg',
'jpeg', 'png', 'gif', 'bmp',
'jfif', 'pjpeg', 'webp', 'tif',
'tiff'];
                                        var msg = '';
                                        if(image_ext.includes(ext)) {
                                            msg = '<img
src="'+url+'">';
                                        }
                                        else {
                                            msg = '<a
href="'+url+'">' + filename +
'</a>';
                                        }
                                        jQuery.ajax({
                                            url: chatAjaxRoute,
                                            method: 'post',
                                            data:{[token] : '1' ,
task: 'ajax.saveChat', format: 'json'  , raw:
'true', message:msg,from:from,to:to,seid:seid, pid: pid},
                                            success: function (msge) {
                                               
console.log('heeeeeereeeee');
                                                console.log(msge);
                                                console.log(msge.id);
                                                //
$('.chat').find('.card-body').append(' <div
class="pm me">\n' +
                                                    // '              
                 <span class="text">\n' +
                                                    // '              
                  '+message+'\n' +
                                                    // '              
                 </span>\n' +
                                                    // '              
         <br/>\n' +
                                                    // '              
         <span class="time">22:35</span>\n' +
                                                    // '              
     </div>');
                                                
                                                var currentdate = new
Date(); 
                                                tt =
currentdate.toLocaleString().split(' ');
                                                
                                               
jQuery('.chat').find('.card-body').append('<div
class="pm me" id="pm-' + msge.id +
'"><span class="text">' + msg  +
'</span><span class="readtick
unread"></span><br/><span
class="time">' + tt[1] + ' ' + tt[2] +
'</span></div>');
                                                       
_this.next('#chatMessage').val('');
                                                var chatBoxBody =
jQuery('.chat .card-body')[0];
                                                //
scrollToEnd(chatBoxBody);
                                                // hideLoading(_this);
                                              //
$('#chatSendBtn').prop('disabled', false);
                                            },
                                            error: function (err) {
                                                console.log(err);
                                            }

                                        });
                                       
jQuery('#atachedfile').val('');
                                        filename = '';
                                    });
                                
                                }
                                
                            }
                        }
                    }, false);
                }
                return myXhr;
            }
	  });
      
        var token = jQuery("#token").attr("name");
        var chatAjaxRoute= Joomla.getOptions('chatAjaxRoute');
        var from= Joomla.getOptions('userId');
        var to= Joomla.getOptions('to');
        var seid= Joomla.getOptions('seid');
        var pid= Joomla.getOptions('pid');
        var channel_token= Joomla.getOptions('channel_token');
        var url = '/components/com_reservation/files/' +
filename;

        ext = filename.split('.').pop();
        image_ext = ['jpg', 'jpeg', 'png',
'gif', 'bmp', 'jfif', 'pjpeg',
'webp', 'tif', 'tiff'];
        var msg = '';
        if(image_ext.includes(ext)) {
            msg = '<img
src="'+url+'">';
        }
        else {
            msg = '<a href="'+url+'">'
+ filename + '</a>';
        }
    // sleep(delayInMilliseconds).then(() => {
        // console.log('heeeloooooooo');
    // }
        
      
	});
	</script>
    <input type="hidden" name="<?=
JSession::getFormToken();?>" id="token">
	
</div><!--[/JCBGUI$$$$]-->


<style>



</style>
PKHT�[r�˭+�+messages/tmpl/default.php.bak4nu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.36
	@build			23rd February, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.26.$$$$]-->
<!--<link
href="http://hayageek.github.io/jQuery-Upload-File/4.0.11/uploadfile.css"
rel="stylesheet">
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script
src="http://hayageek.github.io/jQuery-Upload-File/4.0.11/jquery.uploadfile.min.js"></script>
-->
<div class="chat">
    <div class="row justify-content-center">
        <div class="col-md-8">

            <div class="card">
                <div class="card-header">
                  <div style="position: absolute; right:
1%;">

                      <?php
if($this->item->session->finish==0):?>
                          <p id="notice" class="alert
alert-info">گفتگو در حال انجام است</p>
                      <?php else:?>
                         <p id="notice" class="alert
alert-info">گفتگو خاتمه یافت</p>
                      <?php endif; ?>


                      <?php if(empty($this->item->msn)):?>

                          <?php
if($this->item->session->finish==0):?>
                              <button id="conversation"
class="btn btn-sm btn-danger">پایان گفتگو
                                  <div id="loading"
class="spinner-grow text-warning" role="status">
                                      <span
class="sr-only">Loading...</span>
                                  </div>
                              </button>
                          <?php else:?>
                              <button id="conversation"
class="btn btn-sm btn-success " style="position: absolute;
right: 1%;">ادامه گفتگو
                                  <div id="loading"
class="spinner-grow text-warning" role="status">
                                      <span
class="sr-only">Loading...</span>
                                  </div>
                              </button>
                          <?php endif; ?>

                      <?php endif;?>
                  </div>
                    <p><?php echo $this->item->users_name;
?></p>
                    <a class="img" href="#">
                        <img
src="/joomla/templates/mytemp/assets/images/farzad.jpg"
alt="">
                    </a>
                </div>
                <div class="card-body">
                    
                    <?php foreach($this->item->messages as
$message):?>

                        <div class="pm <?=
($message->from!=$this->item->users_id)? 'me':
'';?>">
                                    <span class="text">
                                      <?= $message->message;?>
                                    </span>
                            <br/>
                            <span
class="time">22:35</span>
                        </div>

                    <?php endforeach;?>
<!--                    <div class="pm me">-->
<!--                                <span
class="text">-->
<!--                                  سلام-->
<!--                                </span>-->
<!--                        <br/>-->
<!--                        <span
class="time">22:35</span>-->
<!--                    </div>-->
<!--                    <div class="pm">-->
<!--                                 <span
class="text">-->
<!--                                  علیک سلام-->
<!--                                </span>-->
<!--                        <br/>-->
<!--                        <span
class="time">22:36</span>-->
<!--                    </div>-->
                </div>
                <div class="card-footer">

                    <form id='sending-form'
style="padding: 15px;" action="#"
method="post" class="form-inline"
enctype="multipart/form-data">
                        <button type="submit"
name="chatSendBtn" id="chatSendBtn" class="btn
btn-primary"
                           
style="position:relative;;background-color:#007bff;margin-top:
0;cursor:<?=
$this->item->session->finish==1?'no-drop':'pointer';?>"
                            <?=
$this->item->session->finish==1?'disabled':'';?>
>
                            ارسال
                            <div id="loading"
class="spinner-grow text-warning" role="status">
                                <span
class="sr-only">Loading...</span>
                            </div>
                        </button>
                        <input type="text"
style="flex-grow: 2" class="form-control mr-1"
name="chatMessage" id="chatMessage" required
placeholder="پیام خود را وارد کنید ...">
						<input name="atachedfile" id='atachedfile'
type="file" />
						<progress style="display: none;"></progress>
                    </form>

                </div>
            </div>

        </div>
    </div>
	<script>
    var filename = '';
	jQuery(':file').on('change', function () {
        var file = this.files[0];
        filename = file.name;
        // if (file.size > 10240) {
        //   alert('max upload size is 10k');
        // }

        // Also see .name, .type
	});
	jQuery('#chatSendBtn').on('click', function () {
        var formdata = new FormData(jQuery('#sending-form')[0]);
        formdata.append('atachedfile',
document.getElementById('atachedfile').files[0]);
        console.log(formdata);
        jQuery.ajax({
            // Your server script to process the upload
            url:
'/components/com_reservation/controllers/fileupload.php',
            type: 'POST',

            // Form data
            data: formdata,

            // Tell jQuery not to process data or worry about content-type
            // You *must* include these options!
            cache: false,
            contentType: false,
            processData: false,



            // dataType: "JSON",
            beforeSend: function () {
                //Your functions before send AJAX Request
            },
            success: function (feedback) {
                //Your functions after AJAX Request Success
            },
            error: function (error) {
                console.log(error);
            },
		
		

            // Custom XMLHttpRequest
            xhr: function () {
                console.log('--------test-------');
                var myXhr = jQuery.ajaxSettings.xhr();
                if (myXhr.upload) {
                    // For handling the progress of the upload

                    myXhr.upload.addEventListener('progress',
function (e) {
                        
                        // console.log(e.loaded, e.total);
                        if (e.lengthComputable) {
                            jQuery('progress').show();
                            jQuery('progress').attr({
                                value: e.loaded,
                                max: e.total,
                            });
                            if(e.loaded == e.total) {
                                jQuery('progress').hide();
                                //
jQuery('#atachedfile').clearFields();
                               
jQuery('#atachedfile').val('');
                                
                                url =
'/components/com_reservation/files/' + filename;
                               
jQuery('.chat').find('.card-body').append('<div
class="pm me">\n' +
                                    '                                 
  <span class="text">\n' +
                                    '                                 
    <a href="'+url+'">' + filename +
'</a>\n' +
                                    '                                 
  </span>\n' +
                                    '                                 
  <br/>\n' +
                                    '                                 
  <span class="time">22:35</span>\n' +
                                    '                                 
</div>');
                                
                            }
                        }
                    }, false);
                }
                return myXhr;
            }
	  });
      
      var token = $("#token").attr("name");
      var chatAjaxRoute= Joomla.getOptions('chatAjaxRoute');
      var from= Joomla.getOptions('userId');
      var to= Joomla.getOptions('to');
      var seid= Joomla.getOptions('seid');
      var pid= Joomla.getOptions('pid');
      var channel_token= Joomla.getOptions('channel_token');
      var url = '/components/com_reservation/files/' + filename;
      var msg = '<a href="'+url+'">' +
filename + '</a>';
      jQuery.ajax({
        url: chatAjaxRoute,
            method: 'post',
            data:{[token] : '1' , task:
'ajax.saveChat', format: 'json'  , raw:
'true', message:msg,from:from,to:to,seid:seid, pid: pid},
            success: function (msg) {
                console.log('heeeeeereeeee');
                console.log(msg);
                //
$('.chat').find('.card-body').append(' <div
class="pm me">\n' +
                    // '                                <span
class="text">\n' +
                    // '                                
'+message+'\n' +
                    // '                               
</span>\n' +
                    // '                        <br/>\n' +
                    // '                        <span
class="time">22:35</span>\n' +
                    // '                    </div>');


                _this.next('#chatMessage').val('');
                var chatBoxBody = $('.chat .card-body')[0];
                scrollToEnd(chatBoxBody);
                hideLoading(_this);
              $('#chatSendBtn').prop('disabled',
false);
            },
            error: function (err) {
                console.log(err);
            }

        });
      
	});
	</script>
    <input type="hidden" name="<?=
JSession::getFormToken();?>" id="token">
	
</div><!--[/JCBGUI$$$$]-->

PKHT�[>�!:��messages/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_MESSAGES_TITLE"
option="COM_RESERVATION_MENU_MESSAGES_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_MESSAGES_DESC]]>
		</message>
	</layout>
</metadata>PKHT�[�#o,,messages/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKHT�[�I@messages/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Messages
 */
class ReservationViewMessages 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');

		// 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 reservationHeaderCheck;

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

		// Add View JavaScript File
		$this->document->addScript(JURI::root(true) .
"/components/com_reservation/assets/js/messages.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		
		/***[JCBGUI.site_view.php_document.26.$$$$]***/
				$user= JFactory::getUser()->get('id');
		        $to= $this->item->users_id;
		        $chatAjaxRoute=
JRoute::_('index.php?option=com_reservation&view=messages');
		
				$seid= JFactory::getApplication()->input->get('seid');
		        $pid=
JFactory::getApplication()->input->get('pid');
		        $uid=
JFactory::getApplication()->input->get('uid');
				$channel_Token= $this->get('PrivateChannelToken');
		                
				$this->document->addScriptOptions('seid',$seid);
				$this->document->addScriptOptions('channel_token',$channel_Token);
		
		       
$this->document->addScriptOptions('userId',$user);
				$this->document->addScriptOptions('pid',$pid);
		       
$this->document->addScriptOptions('chatAjaxRoute',$chatAjaxRoute);
				$this->document->addScriptOptions('uid',$uid);
		       
$this->document->addScriptOptions('to',$to);/***[/JCBGUI$$$$]***/
		 
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/messages.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('messages');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKHT�[�#o,,payment/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKHT�[��ʠ�payment/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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(); ?>
PKHT�[�y��payment/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_PAYMENT_TITLE"
option="COM_RESERVATION_MENU_PAYMENT_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_PAYMENT_DESC]]>
		</message>
	</layout>
</metadata>PKHT�[�#o,,payment/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKHT�[;l�
��payment/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Payment
 */
class ReservationViewPayment 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');

		// 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 reservationHeaderCheck;
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/payment.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('payment');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKHT�[�`����plan/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		submitbutton.js
	@author			farhad shahbazi <http://farhad.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._('plan, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}PKHT�[��+aaplan/tmpl/edit.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		edit.php
	@author			farhad shahbazi <http://farhad.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="reservation-plan">
<?php echo $this->toolbar->render(); ?>
<form action="<?php echo
JRoute::_('index.php?option=com_reservation&layout=edit&id='.
(int) $this->item->id . $this->referral); ?>"
method="post" name="adminForm" id="adminForm"
class="form-validate" enctype="multipart/form-data">

<div class="form-horizontal">

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

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

	<?php $this->ignore_fieldsets =
array('details','metadata','vdmmetadata','accesscontrol');
?>
	<?php $this->tab_name = 'planTab'; ?>
	<?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('core.delete') &&
$this->canDo->get('core.edit.state'))) : ?>
	<?php echo JHtml::_('bootstrap.addTab', 'planTab',
'publishing',
JText::_('COM_RESERVATION_PLAN_PUBLISHING', true)); ?>
		<div class="row-fluid form-horizontal-desktop">
			<div class="span6">
				<?php echo JLayoutHelper::render('plan.publishing',
$this); ?>
			</div>
			<div class="span6">
				<?php echo JLayoutHelper::render('plan.publlshing',
$this); ?>
			</div>
		</div>
	<?php echo JHtml::_('bootstrap.endTab'); ?>
	<?php endif; ?>

	<?php if ($this->canDo->get('core.admin')) : ?>
	<?php echo JHtml::_('bootstrap.addTab', 'planTab',
'permissions',
JText::_('COM_RESERVATION_PLAN_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="plan.edit" />
		<?php echo JHtml::_('form.token'); ?>
	</div>
</div>
</form>
</div>
PKIT�[gC���plan/tmpl/edit.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_PLAN_TITLE"
option="COM_RESERVATION_MENU_PLAN_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_PLAN_DESC]]>
		</message>
	</layout>
</metadata>PKIT�[�#o,,plan/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKIT�[��iplan/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Plan View class
 */
class ReservationViewPlan extends JViewLegacy
{
	/**
	 * display method of View
	 * @return void
	 */
	public function display($tpl = null)
	{
		// set params
		$this->params =
JComponentHelper::getParams('com_reservation');
		// 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 = ReservationHelper::getActions('plan',
$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_RESERVATION_PLAN_NEW' :
'COM_RESERVATION_PLAN_EDIT'), 'pencil-2 article-add');
		// Built the actions for new and existing records.
		if (ReservationHelper::checkString($this->referral))
		{
			if ($this->canDo->get('core.create') && $isNew)
			{
				// We can create the record.
				JToolBarHelper::save('plan.save', 'JTOOLBAR_SAVE');
			}
			elseif ($this->canDo->get('core.edit'))
			{
				// We can save the record.
				JToolBarHelper::save('plan.save', 'JTOOLBAR_SAVE');
			}
			if ($isNew)
			{
				// Do not creat but cancel.
				JToolBarHelper::cancel('plan.cancel',
'JTOOLBAR_CANCEL');
			}
			else
			{
				// We can close it.
				JToolBarHelper::cancel('plan.cancel',
'JTOOLBAR_CLOSE');
			}
		}
		else
		{
			if ($isNew)
			{
				// For new records, check the create permission.
				if ($this->canDo->get('core.create'))
				{
					JToolBarHelper::apply('plan.apply',
'JTOOLBAR_APPLY');
					JToolBarHelper::save('plan.save',
'JTOOLBAR_SAVE');
					JToolBarHelper::custom('plan.save2new',
'save-new.png', 'save-new_f2.png',
'JTOOLBAR_SAVE_AND_NEW', false);
				};
				JToolBarHelper::cancel('plan.cancel',
'JTOOLBAR_CANCEL');
			}
			else
			{
				if ($this->canDo->get('core.edit'))
				{
					// We can save the new record
					JToolBarHelper::apply('plan.apply',
'JTOOLBAR_APPLY');
					JToolBarHelper::save('plan.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('core.create'))
					{
						JToolBarHelper::custom('plan.save2new',
'save-new.png', 'save-new_f2.png',
'JTOOLBAR_SAVE_AND_NEW', false);
					}
				}
				$canVersion = ($this->canDo->get('core.version')
&& $this->canDo->get('plan.version'));
				if ($this->state->params->get('save_history', 1)
&& $this->canDo->get('core.edit') &&
$canVersion)
				{
					JToolbarHelper::versions('com_reservation.plan',
$this->item->id);
				}
				if ($this->canDo->get('core.create'))
				{
					JToolBarHelper::custom('plan.save2copy',
'save-copy.png', 'save-copy_f2.png',
'JTOOLBAR_SAVE_AS_COPY', false);
				}
				JToolBarHelper::cancel('plan.cancel',
'JTOOLBAR_CLOSE');
			}
		}
		JToolbarHelper::divider();
		// set help url for this view if found
		$help_url = ReservationHelper::getHelpUrl('plan');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, true,
30);
		}
		// use the helper htmlEscape method instead.
		return ReservationHelper::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_RESERVATION_PLAN_NEW' :
'COM_RESERVATION_PLAN_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",
(ReservationHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
			$this->document->addScript(JURI::root() .
"administrator/templates/isis/js/template.js",
(ReservationHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') :
'text/javascript');
		}
		// the default style of this view
		$this->document->addStyleSheet(JURI::root()."components/com_reservation/assets/css/plan.css",
(ReservationHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
		// default javascript of this view
		$this->document->addScript(JURI::root(). $this->script,
(ReservationHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') :
'text/javascript');
		$this->document->addScript(JURI::root().
"components/com_reservation/views/plan/submitbutton.js",
(ReservationHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') :
'text/javascript'); 
		JText::script('view not acceptable. Error');
	}
}
PKIT�[�#o,,reserve_a/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKIT�[��'reserve_a/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		submitbutton.js
	@author			farhad shahbazi <http://farhad.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._('reserve, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}PKIT�[�h�k��reserve_a/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.36.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>

<?php 


// echo $this->loadTemplate('policy'); 
// echo $this->loadTemplate('personalinfo');

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

PKIT�[�9M��reserve_a/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_RESERVE_TITLE"
option="COM_RESERVATION_MENU_RESERVE_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_RESERVE_DESC]]>
		</message>
	</layout>
</metadata>PKIT�[�LkKF
F
"reserve_a/tmpl/default_payment.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_policy.php
	@author			farhad shahbazi <http://farhad.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.2.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>

<section>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-6">
                <div class="card border-info mb-3"
style="">
                    <div class="card-header"><strong>
فرهاد شهبازی عزیز؛ </strong></div>
                    <div class="card-body text-info">
                        <ul class="list-group
list-group-flush">
                            <li class="list-group-item"
style="display: inline list-item">
                                هزینه علی الحساب نوبت
شما مبلغ  10,000 تومان   میباشد. تمامی هزینه
علی الحساب دریافتی به حساب پزشک و یا
کلینیک واریز خواهد شد و هنگام مراجعه، از
کل مبلغ ویزیت شما کسر می گردد.
                            </li>
                        </ul>
                    </div>
                    <div class="card-footer">
                        <form action=""
method="post" id="adminForm"
enctype="multipart/form-data">
                            <div class="col-12"
style="display: flex;justify-content: space-between;">
                                <button type="submit"
                                        class="btn btn-danger"
                                       
onclick="Joomla.submitbutton('reserve.back')">بازگشت
                                </button>

                                <button type="submit"
                                        class="btn btn-success"
                                       
onclick="Joomla.submitbutton('reserve.reserve')">پرداخت
                                </button>
                            </div>
                            <input type="hidden"
name="payment_method" value="zarinpal">
                            <input type="hidden"
name="task">
                            <?= JHtml::_('form.token'); ?>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

PKIT�[�:2f��'reserve_a/tmpl/default_personalinfo.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_personalinfo.php
	@author			farhad shahbazi <http://farhad.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.1.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>

<?php
$app = JFactory::getApplication();
$personalInfo = $app->getUserState('data.personalinfo');
?>
<section>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div id="accordion">
                    <div class="card">
                        <div class="card-header"
id="headingOne">
                            <h5 class="mb-0">
                                <button type="button"
style="color: #31bfce" class="btn btn-link"
data-toggle="collapse"
                                       
data-target="#collapseOne" aria-expanded="true"
aria-controls="collapseOne">
                                    <strong>نوبت را برای
خودم میخواهم</strong>
                                </button>
                            </h5>
                        </div>

                        <div id="collapseOne"
class="collapse show" aria-labelledby="headingOne"
                             data-parent="#accordion">
                            <div class="card-body">
                                <form action=""
method="post" enctype="multipart/form-data">
                                    <div class="form-group
col-md-6">
                                        <label
for="">نام و نام خانوادگی :</label>
                                        <input type="text"
name="jform[name]" class="form-control" readonly
                                               value="<?=
isset($personalInfo['name'])? $personalInfo['name']:
'';?>">
                                    </div>
                                    <div class="form-group
col-md-6">
                                        <label for="">کد
ملی :</label>
                                        <input type="text"
name="jform[nationalnumber]" class="form-control"
readonly
                                               value="<?=
isset($personalInfo['nationalnumber'])?
$personalInfo['nationalnumber']: '';?>">
                                    </div>
                                    <div class="col-md-6">
                                        <button type="submit"
class="btn btn-success submit"
                                               
onclick="Joomla.submitbutton('reserve.reserve')">ادامه
                                        </button>
                                    </div>
                                    <input type="hidden"
name="jform[me]" value="1">
                                    <input type="hidden"
name="task">
                                    <?=
JHtml::_('form.token'); ?>
                                </form>

                            </div>
                        </div>
                    </div>
                    <div class="card">
                        <div class="card-header"
id="headingTwo">
                            <h5 class="mb-0">
                                <button type="button"
style="color: #31bfce" class="btn btn-link collapsed"
                                        data-toggle="collapse"
                                       
data-target="#collapseTwo" aria-expanded="false"
                                       
aria-controls="collapseTwo">
                                    <strong>نوبت را برای
شخص دیگری میخواهم</strong>
                                </button>
                            </h5>
                        </div>
                        <div id="collapseTwo"
class="collapse" aria-labelledby="headingTwo"
                             data-parent="#accordion">
                            <div class="card-body">
                                <form action=""
method="post" enctype="multipart/form-data">

                                    <div class="form-group
col-md-6">
                                        <label
for="">نام و نام خانوادگی مراجعه
کننده :</label>
                                        <input type="text"
name="jform[name2]" class="form-control"
value="<?= isset($personalInfo['name2'])?
$personalInfo['name2']: '';?>">
                                    </div>
                                    <div class="form-group
col-md-6">
                                        <label for="">کد
ملی مراجعه کننده :</label>
                                        <input type="text"
name="jform[nationalnumber2]" class="form-control"
value="<?= isset($personalInfo['nationalnumber2'])?
$personalInfo['nationalnumber2']: '';?>">
                                    </div>
                                    <div class="col-md-6">
                                        <button type="submit"
                                                class="btn btn-success
submit"
                                               
onclick="Joomla.submitbutton('reserve.reserve')">ادامه
                                        </button>
                                    </div>
                                    <input type="hidden"
name="jform[other]" value="1">
                                    <input type="hidden"
name="task">
                                    <?=
JHtml::_('form.token'); ?>
                                </form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<script>
    jQuery(document).ready(function ($)
    {
        $('.submit').click(function (e){
            e.preventDefault()
           
$(this).parents('form').attr('id','adminForm');
            Joomla.submitbutton('reserve.reserve')
        });
    })
</script><!--[/JCBGUI$$$$]-->

PKIT�[RYss!reserve_a/tmpl/default_policy.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_policy.php
	@author			farhad shahbazi <http://farhad.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.2.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>

<section>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-6">
                <div class="card border-info mb-3"
style="">
                    <div
class="card-header"><strong>قوانین</strong></div>
                    <div class="card-body text-info">
                        <ul class="list-group
list-group-flush">
                            <li class="list-group-item"
style="display: inline list-item">نوبت اخذ شده
زمان حضور شما در مطب می باشد نه زمان
ویزیت.</li>
                            <li class="list-group-item"
style="display: inline list-item">تمامی هزینه علی
الحساب دریافتی به حساب پزشک و یا کلینیک
واریز خواهد شد و هنگام مراجعه، از کل مبلغ
ویزیت شما کسر می گردد.</li>
                            <li class="list-group-item"
style="display: inline list-item">در صورت لغو
نوبت تا 48 ساعت قبل از ویزیت، مبلغ به حساب
کاربری شما بازگردانده می شود. در غیر
اینصورت مبلغ پرداختی به حساب مطب یا
کلینیک واریز می شود.</li>
                            <li class="list-group-item"
style="display: inline list-item">چنانچه نوبت از
طرف پزشک یا کلینیک لغو گردد، علی الحساب
به حساب کاربری شما باز می گردد. </li>
                        </ul>
                    </div>
                    <div class="card-footer">
                        <form action=""
method="post" id="adminForm"
enctype="multipart/form-data">
                            <div class="col-12"
style="display: flex;justify-content: space-between;">
                                <button type="submit"
                                        class="btn btn-danger"
                                       
onclick="Joomla.submitbutton('reserve.back')">بازگشت
                                </button>

                                <button type="submit"
                                        class="btn btn-success"
                                       
onclick="Joomla.submitbutton('reserve.reserve')">ادامه
                                </button>
                            </div>
                            <input type="hidden"
name="task">
                            <?= JHtml::_('form.token'); ?>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section><!--[/JCBGUI$$$$]-->

PKIT�[�#o,,reserve_a/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKIT�[��B�reserve_a/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Reserve
 */
class ReservationViewReserve 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.36.$$$$]***/
		$this->preprocess();/***[/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);
	}


/***[JCBGUI.site_view.php_jview.36.$$$$]***/
 public function preprocess()
    {

        $result= ReservationHelper::checkAccount();
        $user= JFactory::getUser();

        if (!$user->guest)
        {
            if (!$result['sick'])
            {
                $this->app->enqueueMessage('تنها افراد
با حساب کاربری بیمار اجازه رزرو نوبت
حضوری دارند' , 'danger');
                $this->app->redirect(JUri::root());
            }

        }
        else
        {
            $this->app->enqueueMessage('برای رزرو
نوبت حضوری ابتدا وارد حساب کاربری خود
شوید' , 'danger');
            $this->app->redirect(JUri::root());
        }


        require_once JPATH_SITE .
'/components/com_reservation/controllers/reserve.php';
       $controller = new ReservationControllerReserve;

        $payment_method=
$this->app->input->get->get('payment_method');
        if ($payment_method)
        {
            $controller->reserve();
        }
       
       
       $params = JComponentHelper::getParams('com_reservation');
       $chekout = $params->get('checkout');
       $chekout = $controller->reordering($chekout);

       $this->item->checkout= $chekout;
       $layout = $controller->getLayout();
       $this->setLayout($layout);
	}/***[/JCBGUI$$$$]***/


	/**
	 * 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 reservationHeaderCheck;

		// always load these files.
		$this->document->addStyleSheet(JURI::root(true) .
"/media/com_reservation/bootstrapv45/css/bootstrap.min.css",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") : "text/css");
		$this->document->addScript(JURI::root(true) .
"/media/com_reservation/bootstrapv45/js/bootstrap.bundle.min.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		
		/***[JCBGUI.site_view.php_document.36.$$$$]***/
		JHtml::_('script',
'media/system/js/core.js');/***[/JCBGUI$$$$]***/
		 
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/reserve.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('reserve');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKJT�[�#o,,reserve_appointment/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKJT�[�JO���#reserve_appointment/submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		submitbutton.js
	@author			farhad shahbazi <http://farhad.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._('reserve_appointment, some values are not
acceptable.','Some values are unacceptable'));
			return false;
		}
	}
}PKJT�[���?��$reserve_appointment/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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.36.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>

<?php 


// echo $this->loadTemplate('policy'); 
// echo $this->loadTemplate('personalinfo');
// echo $this->loadTemplate('payment');

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

PKJT�[;�Zb$reserve_appointment/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout
title="COM_RESERVATION_MENU_RESERVE_APPOINTMENT_TITLE"
option="COM_RESERVATION_MENU_RESERVE_APPOINTMENT_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_RESERVE_APPOINTMENT_DESC]]>
		</message>
	</layout>
</metadata>PKJT�[���U]
]
,reserve_appointment/tmpl/default_payment.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_payment.php
	@author			farhad shahbazi <http://farhad.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.3.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>

<section>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-6">
                <div class="card border-info mb-3"
style="">
                    <div class="card-header"><strong>
فرهاد شهبازی عزیز؛ </strong></div>
                    <div class="card-body text-info">
                        <ul class="list-group
list-group-flush">
                            <li class="list-group-item"
style="display: inline list-item">
                                هزینه علی الحساب نوبت
شما مبلغ  10,000 تومان   میباشد. تمامی هزینه
علی الحساب دریافتی به حساب پزشک و یا
کلینیک واریز خواهد شد و هنگام مراجعه، از
کل مبلغ ویزیت شما کسر می گردد.
                            </li>
                        </ul>
                    </div>
                    <div class="card-footer">
                        <form action=""
method="post" id="adminForm"
enctype="multipart/form-data">
                            <div class="col-12"
style="display: flex;justify-content: space-between;">
                                <button type="submit"
                                        class="btn btn-danger"
                                       
onclick="Joomla.submitbutton('reserve_appointment.back')">بازگشت
                                </button>

                                <button type="submit"
                                        class="btn btn-success"
                                       
onclick="Joomla.submitbutton('reserve_appointment.reserve')">پرداخت
                                </button>
                            </div>
                            <input type="hidden"
name="payment_method" value="zarinpal">
                            <input type="hidden"
name="task">
                            <?= JHtml::_('form.token'); ?>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section><!--[/JCBGUI$$$$]-->

PKJT�[�T2R��1reserve_appointment/tmpl/default_personalinfo.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_personalinfo.php
	@author			farhad shahbazi <http://farhad.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.1.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>
<section>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div id="accordion">
                    <div class="card">
                        <div class="card-header"
id="headingOne">
                            <h5 class="mb-0">
                                <button type="button"
style="color: #31bfce" class="btn btn-link"
data-toggle="collapse"
                                       
data-target="#collapseOne" aria-expanded="true"
aria-controls="collapseOne">
                                   
<strong>اطلاعات</strong>
                                </button>
                            </h5>
                        </div>

                        <div id="" class="collapse
show" aria-labelledby="headingOne"
                             data-parent="#accordion">
                            <div class="card-body">
                                <form action=""
method="post" enctype="multipart/form-data">
                                    <div class="form-group
col-md-6">
                                        <label
for="">نام و نام خانوادگی :</label>
                                        <input type="text"
name="jform[name]" class="form-control" readonly
                                               value="<?=
$this->item->users_name;?>">
                                    </div>
                                    <div class="form-group
col-md-6">
                                        <label for="">کد
ملی :</label>
                                        <input type="text"
name="jform[nationalnumber]" class="form-control"
readonly
                                               value="<?=
$this->item->nationalnumber;?>">
                                    </div>
                                    <div class="col-md-6">
                                        <button type="submit"
class="btn btn-success submit"
                                               
onclick="Joomla.submitbutton('reserve_appointment.reserve')">ادامه
                                        </button>
                                    </div>
                                    <input type="hidden"
name="jform[me]" value="1">
                                    <input type="hidden"
name="task">
                                    <?=
JHtml::_('form.token'); ?>
                                </form>

                            </div>
                        </div>
                    </div>
<!--                    <div class="card">-->
<!--                        <div class="card-header"
id="headingTwo">-->
<!--                            <h5 class="mb-0">-->
<!--                                <button type="button"
style="color: #31bfce" class="btn btn-link
collapsed"-->
<!--                                       
data-toggle="collapse"-->
<!--                                       
data-target="#collapseTwo" aria-expanded="false"-->
<!--                                       
aria-controls="collapseTwo">-->
<!--                                    <strong>نوبت را
برای شخص دیگری میخواهم</strong>-->
<!--                                </button>-->
<!--                            </h5>-->
<!--                        </div>-->
<!--                        <div id="collapseTwo"
class="collapse" aria-labelledby="headingTwo"-->
<!--                            
data-parent="#accordion">-->
<!--                            <div
class="card-body">-->
<!--                                <form action=""
method="post" enctype="multipart/form-data">-->
<!---->
<!--                                    <div class="form-group
col-md-6">-->
<!--                                        <label
for="">نام و نام خانوادگی مراجعه
کننده :</label>-->
<!--                                        <input
type="text" name="jform[name2]"
class="form-control">-->
<!--                                    </div>-->
<!--                                    <div class="form-group
col-md-6">-->
<!--                                        <label
for="">کد ملی مراجعه کننده
:</label>-->
<!--                                        <input
type="text" name="jform[nationalnumber2]"
class="form-control">-->
<!--                                    </div>-->
<!--                                    <div
class="col-md-6">-->
<!--                                        <button
type="submit"-->
<!--                                                class="btn
btn-success submit"-->
<!--                                               
onclick="Joomla.submitbutton('reserve_appointment.reserve')">ادامه-->
<!--                                        </button>-->
<!--                                    </div>-->
<!--                                    <input
type="hidden" name="jform[other]"
value="1">-->
<!--                                    <input
type="hidden" name="task">-->
<!--
<!--                                </form>-->
<!---->
<!--                            </div>-->
<!--                        </div>-->
<!--                    </div>-->
                </div>
            </div>
        </div>
    </div>
</section>

<script>
    jQuery(document).ready(function ($)
    {
        $('.submit').click(function (e){
            e.preventDefault()
           
$(this).parents('form').attr('id','adminForm');
            Joomla.submitbutton('reserve_appointment.reserve')
        });
    })
</script><!--[/JCBGUI$$$$]-->

PKJT�[qwy�tt+reserve_appointment/tmpl/default_policy.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_policy.php
	@author			farhad shahbazi <http://farhad.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.2.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>

<section>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-6">
                <div class="card border-info mb-3"
style="">
                    <div
class="card-header"><strong>قوانین</strong></div>
                    <div class="card-body text-info">
                        <ul class="list-group
list-group-flush">
                            <li class="list-group-item"
style="display: inline list-item">نوبت اخذ شده
زمان حضور شما در مطب می باشد نه زمان
ویزیت.</li>
                            <li class="list-group-item"
style="display: inline list-item">تمامی هزینه علی
الحساب دریافتی به حساب پزشک و یا کلینیک
واریز خواهد شد و هنگام مراجعه، از کل مبلغ
ویزیت شما کسر می گردد.</li>
                            <li class="list-group-item"
style="display: inline list-item">در صورت لغو
نوبت تا 48 ساعت قبل از ویزیت، مبلغ به حساب
کاربری شما بازگردانده می شود. در غیر
اینصورت مبلغ پرداختی به حساب مطب یا
کلینیک واریز می شود.</li>
                            <li class="list-group-item"
style="display: inline list-item">چنانچه نوبت از
طرف پزشک یا کلینیک لغو گردد، علی الحساب
به حساب کاربری شما باز می گردد. </li>
                        </ul>
                    </div>
                    <div class="card-footer">
                        <form action=""
method="post" id="adminForm"
enctype="multipart/form-data">
                            <div class="col-12"
style="display: flex;justify-content: space-between;">
                                <button type="submit"
                                        class="btn btn-danger"
                                       
onclick="Joomla.submitbutton('reserve_appointment.back')">بازگشت
                                </button>

                                <button type="submit"
                                        class="btn btn-success"
                                       
onclick="Joomla.submitbutton('reserve_appointment.reserve')">ادامه
                                </button>
                            </div>
                            <input type="hidden"
name="task">
                            <?= JHtml::_('form.token'); ?>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section><!--[/JCBGUI$$$$]-->

PKJT�[�#o,,#reserve_appointment/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKJT�[O�v!reserve_appointment/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Reserve_appointment
 */
class ReservationViewReserve_appointment 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.36.$$$$]***/
		$this->preprocess();/***[/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);
	}


/***[JCBGUI.site_view.php_jview.36.$$$$]***/
 public function preprocess()
    {

        require_once JPATH_SITE .
'/components/com_reservation/controllers/reserve_appointment.php';
        $controller = new ReservationControllerReserve_appointment;
   
        $start=
$this->app->input->get->get('start');
        if ($start == 'true')
        {
            $controller->reset();
        }

        //$result= ReservationHelper::checkAccount();
        $user= JFactory::getUser();
        $result= ReservationHelper::exist('#__reservation_sick',
'userid', $user->id);

        if (!$user->guest)
        {
            if (!$result)
            {
                $this->app->enqueueMessage('تنها افراد
با حساب کاربری بیمار اجازه رزرو نوبت
حضوری دارند' , 'danger');
                $this->app->redirect(JUri::root());
            }

        }
        else
        {
            $this->app->enqueueMessage('برای رزرو
نوبت حضوری ابتدا وارد حساب کاربری خود
شوید' , 'danger');
            $this->app->redirect(JUri::root());
        }



        $payment_method=
$this->app->input->get->get('payment_method');
        if ($payment_method)
        {
            $controller->reserve();
        }
       
       
       $params = JComponentHelper::getParams('com_reservation');
       $chekout = $params->get('checkout');
       $chekout = $controller->reordering($chekout);
       $this->item->checkout= $chekout;

       $this->item->checkout= $chekout;
       $layout = $controller->getLayout();
       $this->setLayout($layout);
	}/***[/JCBGUI$$$$]***/


	/**
	 * 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 reservationHeaderCheck;

		// always load these files.
		$this->document->addStyleSheet(JURI::root(true) .
"/media/com_reservation/bootstrapv45/css/bootstrap.min.css",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") : "text/css");
		$this->document->addScript(JURI::root(true) .
"/media/com_reservation/bootstrapv45/js/bootstrap.bundle.min.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		
		/***[JCBGUI.site_view.php_document.36.$$$$]***/
		JHtml::_('script',
'media/system/js/core.js');/***[/JCBGUI$$$$]***/
		 
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/reserve_appointment.css',
(ReservationHelper::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 =
ReservationHelper::getHelpUrl('reserve_appointment');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKKT�[�#o,,usersign/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKKT�[��ʠ�usersign/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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(); ?>
PKKT�[=�cH��usersign/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_USERSIGN_TITLE"
option="COM_RESERVATION_MENU_USERSIGN_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_USERSIGN_DESC]]>
		</message>
	</layout>
</metadata>PKKT�[�#o,,usersign/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKKT�[1�
��usersign/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Usersign
 */
class ReservationViewUsersign 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');

		// 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 reservationHeaderCheck;
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/usersign.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('usersign');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKKT�[�#o,,res_list/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKKT�[�^VRRres_list/tmpl/default.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.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_reservation'); ?>"
method="post" name="adminForm"
id="adminForm">
<?php echo $this->toolbar->render(); ?>
<!--[JCBGUI.site_view.default.44.$$$$]-->
  <style>
        #doctors .card ul li{
            margin: 5px 0;
            font-size: 14px;
        }
        #doctors .card:hover{
            color: #000 !important;
        }
        h1{
            font-size: 1.6rem;
        }
    </style>
<section id="doctors">
   <div class="row justify-content-center">
       <div class="col-md-10">
          <div class="row">
              <div class="col-md-12 mb-4">
                  <span></span>
                  <h1>نوبت دهی آنلاین مشاوران
سامانه ارم مشاور</h1>
              </div>
              <?php foreach ($this->items as $item):

                  if ( ( ! file_exists( JPATH_SITE .
'/libraries/CBLib/CBLib/Core/CBLib.php' ) ) || ( ! file_exists(
JPATH_ADMINISTRATOR .
'/components/com_comprofiler/plugin.foundation.php' ) ) ) {
                      // echo 'CB not installed';
                      $imgurl = '';
                  }
                  else
                  {
                      include_once( JPATH_ADMINISTRATOR .
'/components/com_comprofiler/plugin.foundation.php' );

                      cbimport( 'cb.html' );
                      global $_CB_framework, $_PLUGINS, $ueConfig;

                      $cbUser =& CBuser::getInstance( (int)
$item->userid );
                      $user = $cbUser->getUserData();
                      $imgurl = '/images/comprofiler/' .
$user->avatar;
                  }
                  ?>
                  <div class="col-md-12 mb-4">
                      <a href="<?=
JRoute::_('index.php?option=com_reservation&view=consultantitem&id='.$item->id,false)
?>">
                          <div class="card"
style="box-shadow: 2px 6px 9px -2px #ccc;border-radius: 15px;overflow:
hidden;">
                              <div class="card-body"
style="display: flex">
                                  <div style="display: flex;
justify-content: start; flex: 2">
                                      <div style="margin-left:
10px">
                                          <img style="border:3px
solid #ccc;width: 62px; height: 62px; border-radius: 50%"
src="<?= $imgurl; ?>" alt="">
                                      </div>
                                      <div>
                                          <ul style="list-style:
none">
                                              <li
class="card-title" style="font-weight: 600; font-size:
15px"><?php echo $item->users_name; ?></li>
                                              <li style="margin:
13px 0;">
                                                  <span
style="font-size: 12px; color: gray">تخصص : </span>
                                                  <span><?php echo
$item->categories_title; ?></span>
                                              </li>
                                              <li>
                                     <span><svg style="color:
red" xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi
bi-geo-alt" viewBox="0 0 16 16">
  <path d="M12.166 8.94c-.524 1.062-1.234 2.12-1.96 3.07A31.493
31.493 0 0 1 8 14.58a31.481 31.481 0 0
1-2.206-2.57c-.726-.95-1.436-2.008-1.96-3.07C3.304 7.867 3 6.862 3 6a5 5 0
0 1 10 0c0 .862-.305 1.867-.834 2.94zM8 16s6-5.686 6-10A6 6 0 0 0 2 6c0
4.314 6 10 6 10z"/>
  <path d="M8 8a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0 1a3 3 0 1 0 0-6 3 3
0 0 0 0 6z"/>
</svg></span>
                                                  <span> <?php
echo $item->address; ?></span>
                                              </li>
                                          </ul>
                                      </div>
                                  </div>
                                  <div style="flex: 1">
                                      <ul style="list-style:
none">
                                          <li>
                                              <span>شماره
نظام پزشکی:</span>
                                              <span><?=
$item->msn; ?></span>
                                          </li>
                                          <li style="margin: 13px
0;">
                                             
<span>تجربه:</span>
                                              <span><?=
$item->experience; ?> سال</span>
                                          </li>
                                          <li>
                                              <span>مشاوره
موفق:</span>
                                              <span><?=
ReservationHelper::getSessionCount($item->id)->count?></span>
                                          </li>
                                      </ul>
                                  </div>
                              </div>
                              <div class="card-footer"
style="background-color: #fff">
                                  <span class="btn btn-success
btn-sm" style="float: left">دریافت
مشاوره</span>
                              </div>
                          </div>

                      </a>
                  </div>
              <?php endforeach; ?>
          </div>
       </div>
   </div>
</section>


    <!--[/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>
PKKT�[i�z��res_list/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="utf-8" ?>
<metadata>
	<layout title="COM_RESERVATION_MENU_RES_LIST_TITLE"
option="COM_RESERVATION_MENU_RES_LIST_OPTION">
		<message>
			<![CDATA[COM_RESERVATION_MENU_RES_LIST_DESC]]>
		</message>
	</layout>
</metadata>PKLT�[�#o,,res_list/tmpl/index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKLT�[
呣��res_list/view.html.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.39
	@build			4th April, 2023
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.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');

/**
 * Reservation View class for the Res_list
 */
class ReservationViewRes_list 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 reservationHeaderCheck;
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/res_list.css',
(ReservationHelper::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 = ReservationHelper::getHelpUrl('res_list');
		if (ReservationHelper::checkString($help_url))
		{
			JToolbarHelper::help('COM_RESERVATION_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 ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PK�t�[L��+��categories/tmpl/default.phpnu�[���PK�t�[qy$5M5MEcategories/tmpl/default.xmlnu�[���PK�t�[vH�	�	!�Rcategories/tmpl/default_items.phpnu�[���PK�t�[y�
���\categories/view.html.phpnu�[���PK�t�[U�ouu�_category/tmpl/default.phpnu�[���PK�t�[)k��K�KXacategory/tmpl/default.xmlnu�[���PK�t�[��"m�category/tmpl/default_children.phpnu�[���PK�t�[%�U��ƴcategory/tmpl/default_items.phpnu�[���PK�t�[u��;����category/view.feed.phpnu�[���PK�t�[��u����category/view.html.phpnu�[���PK�t�[�[,D�)�)��contact/tmpl/default.phpnu�[���PK�t�[-!Y�00kcontact/tmpl/default.xmlnu�[���PK�t�[(CG�]]
�4contact/tmpl/default_address.phpnu�[���PK�t�[9�}..!`Dcontact/tmpl/default_articles.phpnu�[���PK�t�[�C����Gcontact/tmpl/default_form.phpnu�[���PK�t�[�\����Ncontact/tmpl/default_links.phpnu�[���PK�t�[���
bb
�Ucontact/tmpl/default_profile.phpnu�[���PK�t�[P�e		+][contact/tmpl/default_user_custom_fields.phpnu�[���PK�t�[��	a99�dcontact/view.html.phpnu�[���PK�t�[m
����contact/view.vcf.phpnu�[���PK�t�[]#�?zz�featured/tmpl/default.phpnu�[���PK�t�[hw�П4�4įfeatured/tmpl/default.xmlnu�[���PK�t�[DJ1t����featured/tmpl/default_items.phpnu�[���PK�t�[�O�)����featured/view.html.phpnu�[���PK���[�#o,,�api/index.htmlnu�[���PK���[����MM>
api/submitbutton.jsnu�[���PK���[e
Z*���api/tmpl/default.phpnu�[���PK���[�#o,,�api/tmpl/index.htmlnu�[���PK���[*8G;��\api/view.html.phpnu�[���PK���[�#o,,
n#index.htmlnu�[���PK�)�[\F�����#course/submitbutton.jsnu�[���PK�)�[�J�aVV�)course/tmpl/edit.phpnu�[���PK�)�[��d���@course/tmpl/edit.xmlnu�[���PK�)�[�#o,,�Acourse/tmpl/index.htmlnu�[���PK�)�[Rg�9<<0Bcourse/view.html.phpnu�[���PK�)�[�#o,,�`coursedetail/index.htmlnu�[���PK�)�[��/��#acoursedetail/submitbutton.jsnu�[���PK�)�[Ԇ����Xgcoursedetail/tmpl/default.phpnu�[���PK�)�[wd��|scoursedetail/tmpl/default.xmlnu�[���PK�)�[8�^1��$�tcoursedetail/tmpl/default_course.phpnu�[���PK�)�[�ɶa
a
(�}coursedetail/tmpl/default_courseinfo.phpnu�[���PK�)�[.H�D��*K�coursedetail/tmpl/default_course_image.phpnu�[���PK�)�[I?::+?�coursedetail/tmpl/default_custom_fields.phpnu�[���PK�)�[|�8�
�
&ԙcoursedetail/tmpl/default_sections.phpnu�[���PK�)�[���%պcoursedetail/tmpl/default_sidebar.phpnu�[���PK�)�[��/���+-�coursedetail/tmpl/default_singlesection.phpnu�[���PK�)�[&ң(�	�	&�coursedetail/tmpl/default_teachers.phpnu�[���PK�)�[Kףƞ�)�coursedetail/tmpl/default_video_modal.phpnu�[���PK*�[�#o,,�coursedetail/tmpl/index.htmlnu�[���PK*�[F4]bb��coursedetail/view.html.phpnu�[���PK*�[�#o,,�]courselist/index.htmlnu�[���PK*�[��}x��C^courselist/tmpl/default.phpnu�[���PK*�[�8O??8fcourselist/tmpl/default.xmlnu�[���PK*�[�>��'�lcourselist/tmpl/default_coursecards.phpnu�[���PK*�[�#o,,�rcourselist/tmpl/index.htmlnu�[���PK*�[����??iscourselist/view.html.phpnu�[���PK*�[�#o,,�courses/index.htmlnu�[���PK*�[d>LL^�courses/tmpl/default.phpnu�[���PK*�[�_J���courses/tmpl/default.xmlnu�[���PK*�[�#o,,
�courses/tmpl/index.htmlnu�[���PK*�[jX�CC��courses/view.html.phpnu�[���PK*�[^�ֱ?�?(�course_search/assets/images/no-image.jpgnu�[���PK*�[�#o,,$�course_search/index.htmlnu�[���PK*�[#Qxd�0�0��course_search/tmpl/default.phpnu�[���PK*�[e<�z���
course_search/tmpl/default.xmlnu�[���PK*�[�4�;#s)course_search/tmpl/default_card.phpnu�[���PK*�[��l���)�9course_search/tmpl/default_card_mahdi.phpnu�[���PK*�[�#o,,�Pcourse_search/tmpl/index.htmlnu�[���PK*�[=����wQcourse_search/view.html.phpnu�[���PK*�[�#o,,�dteacherdetail/index.htmlnu�[���PK*�[�e�$eteacherdetail/tmpl/default.phpnu�[���PK*�[<�U��mmteacherdetail/tmpl/default.xmlnu�[���PK*�[g��:__.�nteacherdetail/tmpl/default_teacher_courses.phpnu�[���PK*�[g_YY.p}teacherdetail/tmpl/default_teacher_sidebar.phpnu�[���PK*�[�#o,,'�teacherdetail/tmpl/index.htmlnu�[���PK*�[�J��rr��teacherdetail/view.html.phpnu�[���PKBT�[�#o,,]�comment/index.htmlnu�[���PKBT�[秃���˧comment/submitbutton.jsnu�[���PKBT�[��u55�comment/tmpl/default.phpnu�[���PKBT�[�Y���}�comment/tmpl/default.xmlnu�[���PKBT�[�#o,,��comment/tmpl/index.htmlnu�[���PKBT�[*I��VV-�comment/view.html.phpnu�[���PKCT�[�#o,,��consultantitem/index.htmlnu�[���PKCT�[m
ӊ�/�/=�consultantitem/tmpl/default.phpnu�[���PKCT�[t}Lu

#�consultantitem/tmpl/default.xmlnu�[���PKCT�[�#o,,|consultantitem/tmpl/index.htmlnu�[���PKCT�[��n$���consultantitem/view.html.phpnu�[���PKCT�[�#o,,�consultantsignup/index.htmlnu�[���PKCT�[�`>��
Cconsultantsignup/submitbutton.jsnu�[���PKCT�[��F��!�consultantsignup/tmpl/default.phpnu�[���PKCT�[™��!�4consultantsignup/tmpl/default.xmlnu�[���PKCT�[�#o,,
%6consultantsignup/tmpl/index.htmlnu�[���PKCT�[1�����6consultantsignup/view.html.phpnu�[���PKDT�[�2���
�Econsultant_plan/assets/style.cssnu�[���PKDT�[�#o,,�Hconsultant_plan/index.htmlnu�[���PKDT�[͑Q��UIconsultant_plan/submitbutton.jsnu�[���PKDT�[,]���3�3
�Oconsultant_plan/tmpl/default.phpnu�[���PKDT�[��~


x�consultant_plan/tmpl/default.xmlnu�[���PKDT�[�#o,,Մconsultant_plan/tmpl/index.htmlnu�[���PKDT�[=����P�consultant_plan/view.html.phpnu�[���PKDT�[�#o,,S�doctor/index.htmlnu�[���PKDT�[V��
cc��doctor/tmpl/default.phpnu�[���PKDT�[�9+N��j�doctor/tmpl/default.xmlnu�[���PKDT�[�#o,,��doctor/tmpl/index.htmlnu�[���PKDT�[�K��>>�doctor/view.html.phpnu�[���PKET�[�#o,,��doctors/index.htmlnu�[���PKET�[�2+[�doctors/submitbutton.jsnu�[���PKET�[n4¼ff"[�doctors/tmpl/default-old-mahdi.phpnu�[���PKET�[�>�oMM�doctors/tmpl/default.phpnu�[���PKET�[p�Ok����doctors/tmpl/default.xmlnu�[���PKET�[�#o,,�doctors/tmpl/index.htmlnu�[���PKFT�[���j��X�doctors/view.html.phpnu�[���PKFT�[�#o,,Sdoctorsignup/index.htmlnu�[���PKFT�[W�����doctorsignup/submitbutton.jsnu�[���PKFT�[�ŦQQ
doctorsignup/tmpl/default.phpnu�[���PKFT�[l`��doctorsignup/tmpl/default.xmlnu�[���PKFT�[�#o,,�
doctorsignup/tmpl/index.htmlnu�[���PKFT�[�q.m��l!doctorsignup/view.html.phpnu�[���PKFT�[�#o,,�0firstqst/index.htmlnu�[���PKFT�[�p^��1firstqst/submitbutton.jsnu�[���PKFT�[:�k>ddH7firstqst/tmpl/default.phpnu�[���PKFT�[ekr���Ofirstqst/tmpl/default.xmlnu�[���PKGT�[�#o,,6Qfirstqst/tmpl/index.htmlnu�[���PKGT�[�19�u
u
�Qfirstqst/view.html.phpnu�[���PKGT�[�#o,,e_login/index.htmlnu�[���PKGT�[N|z;���_login/submitbutton.jsnu�[���PKGT�[��*�	�	flogin/tmpl/default.phpnu�[���PKGT�[,���@plogin/tmpl/default.xmlnu�[���PKGT�[
�y�KKuqlogin/tmpl/default_password.phpnu�[���PKGT�[ܓ�>
>
�login/tmpl/default_register.phpnu�[���PKGT�[�#o,,��login/tmpl/index.htmlnu�[���PKGT�[h��i99
�login/view.html.phpnu�[���PKGT�[�#o,,��messages/index.htmlnu�[���PKGT�[�ݗ�>�>��messages/tmpl/default.phpnu�[���PKGT�[�ʝ��7�7&�messages/tmpl/default.php.baknu�[���PKGT�[�;��99Fmessages/tmpl/default.php.bak2nu�[���PKGT�[b�/@/@�Umessages/tmpl/default.php.bak3nu�[���PKHT�[r�˭+�+%�messages/tmpl/default.php.bak4nu�[���PKHT�[>�!:��
�messages/tmpl/default.xmlnu�[���PKHT�[�#o,,a�messages/tmpl/index.htmlnu�[���PKHT�[�I@��messages/view.html.phpnu�[���PKHT�[�#o,,,�payment/index.htmlnu�[���PKHT�[��ʠ���payment/tmpl/default.phpnu�[���PKHT�[�y����payment/tmpl/default.xmlnu�[���PKHT�[�#o,,��payment/tmpl/index.htmlnu�[���PKHT�[;l�
��2�payment/view.html.phpnu�[���PKHT�[�`������plan/submitbutton.jsnu�[���PKHT�[��+aa,�plan/tmpl/edit.phpnu�[���PKIT�[gC����plan/tmpl/edit.xmlnu�[���PKIT�[�#o,,�plan/tmpl/index.htmlnu�[���PKIT�[��implan/view.html.phpnu�[���PKIT�[�#o,,�reserve_a/index.htmlnu�[���PKIT�[��'"
reserve_a/submitbutton.jsnu�[���PKIT�[�h�k��z&reserve_a/tmpl/default.phpnu�[���PKIT�[�9M��h,reserve_a/tmpl/default.xmlnu�[���PKIT�[�LkKF
F
"�-reserve_a/tmpl/default_payment.phpnu�[���PKIT�[�:2f��'?;reserve_a/tmpl/default_personalinfo.phpnu�[���PKIT�[RYss!@Wreserve_a/tmpl/default_policy.phpnu�[���PKIT�[�#o,,greserve_a/tmpl/index.htmlnu�[���PKIT�[��B�ygreserve_a/view.html.phpnu�[���PKJT�[�#o,,�|reserve_appointment/index.htmlnu�[���PKJT�[�JO���#Y}reserve_appointment/submitbutton.jsnu�[���PKJT�[���?��$��reserve_appointment/tmpl/default.phpnu�[���PKJT�[;�Zb$��reserve_appointment/tmpl/default.xmlnu�[���PKJT�[���U]
]
,�reserve_appointment/tmpl/default_payment.phpnu�[���PKJT�[�T2R��1Ԙreserve_appointment/tmpl/default_personalinfo.phpnu�[���PKJT�[qwy�tt+
�reserve_appointment/tmpl/default_policy.phpnu�[���PKJT�[�#o,,#��reserve_appointment/tmpl/index.htmlnu�[���PKJT�[O�v!n�reserve_appointment/view.html.phpnu�[���PKKT�[�#o,,��usersign/index.htmlnu�[���PKKT�[��ʠ�6�usersign/tmpl/default.phpnu�[���PKKT�[=�cH���usersign/tmpl/default.xmlnu�[���PKKT�[�#o,,`�usersign/tmpl/index.htmlnu�[���PKKT�[1�
����usersign/view.html.phpnu�[���PKKT�[�#o,,��res_list/index.htmlnu�[���PKKT�[�^VRR�res_list/tmpl/default.phpnu�[���PKKT�[i�z���	res_list/tmpl/default.xmlnu�[���PKLT�[�#o,,�	res_list/tmpl/index.htmlnu�[���PKLT�[
呣��c
	res_list/view.html.phpnu�[���PK���?c