Spade
Mini Shell
search/tmpl/default.php000064400000002342151167763360011142
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage com_finder
*
* @copyright (C) 2011 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
JHtml::_('behavior.core');
JHtml::_('formbehavior.chosen');
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
JHtml::_('stylesheet', 'com_finder/finder.css',
array('version' => 'auto', 'relative'
=> true));
?>
<div class="finder<?php echo $this->pageclass_sfx;
?>">
<?php if ($this->params->get('show_page_heading')) :
?>
<h1>
<?php if
($this->escape($this->params->get('page_heading'))) :
?>
<?php echo
$this->escape($this->params->get('page_heading')); ?>
<?php else : ?>
<?php echo
$this->escape($this->params->get('page_title')); ?>
<?php endif; ?>
</h1>
<?php endif; ?>
<?php if ($this->params->get('show_search_form', 1)) :
?>
<div id="search-form">
<?php echo $this->loadTemplate('form'); ?>
</div>
<?php endif; ?>
<?php // Load the search results layout if we are performing a search.
?>
<?php if ($this->query->search === true) : ?>
<div id="search-results">
<?php echo $this->loadTemplate('results'); ?>
</div>
<?php endif; ?>
</div>
search/tmpl/default.xml000064400000013442151167763360011156
0ustar00<?xml version="1.0" encoding="utf-8"?>
<metadata>
<layout title="COM_FINDER_MENU_SEARCH_VIEW_DEFAULT_TITLE">
<help
key = "JHELP_MENUS_MENU_ITEM_FINDER_SEARCH"
/>
<message>
<![CDATA[COM_FINDER_MENU_SEARCH_VIEW_DEFAULT_TEXT]]>
</message>
</layout>
<fields name="request"
addfieldpath="/administrator/components/com_finder/models/fields">
<fieldset name="request">
<field
name="q"
type="text"
label="COM_FINDER_SEARCH_SEARCH_QUERY_LABEL"
description="COM_FINDER_SEARCH_SEARCH_QUERY_DESC"
size="30"
/>
<field
name="f"
type="searchfilter"
label="COM_FINDER_SEARCH_FILTER_SEARCH_LABEL"
description="COM_FINDER_SEARCH_FILTER_SEARCH_DESC"
default=""
/>
</fieldset>
</fields>
<fields name="params"
addfieldpath="/administrator/components/com_finder/models/fields">
<fieldset name="basic">
<field
name="show_date_filters"
type="list"
label="COM_FINDER_CONFIG_SHOW_DATE_FILTERS_LABEL"
description="COM_FINDER_CONFIG_SHOW_DATE_FILTERS_DESC"
default=""
useglobal="true"
class="chzn-color"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
</field>
<field
name="show_advanced"
type="list"
label="COM_FINDER_CONFIG_SHOW_ADVANCED_LABEL"
description="COM_FINDER_CONFIG_SHOW_ADVANCED_DESC"
default=""
useglobal="true"
class="chzn-color"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
</field>
<field
name="expand_advanced"
type="list"
label="COM_FINDER_CONFIG_EXPAND_ADVANCED_LABEL"
description="COM_FINDER_CONFIG_EXPAND_ADVANCED_DESC"
default=""
useglobal="true"
class="chzn-color"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
</field>
<field type="spacer" />
<field
name="show_description"
type="list"
label="COM_FINDER_CONFIG_SHOW_DESCRIPTION_LABEL"
description="COM_FINDER_CONFIG_SHOW_DESCRIPTION_DESC"
default=""
useglobal="true"
class="chzn-color"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
</field>
<field
name="description_length"
type="number"
label="COM_FINDER_CONFIG_DESCRIPTION_LENGTH_LABEL"
description="COM_FINDER_CONFIG_DESCRIPTION_LENGTH_DESC"
default=""
size="5"
useglobal="true"
/>
<field
name="show_url"
type="list"
label="COM_FINDER_CONFIG_SHOW_URL_LABEL"
description="COM_FINDER_CONFIG_SHOW_URL_DESC"
default=""
useglobal="true"
class="chzn-color"
>
<option value="1">JSHOW</option>
<option value="0">JHIDE</option>
</field>
<field type="spacer" />
</fieldset>
<fieldset name="advanced">
<field
name="show_pagination_limit"
type="list"
label="JGLOBAL_DISPLAY_SELECT_LABEL"
description="JGLOBAL_DISPLAY_SELECT_DESC"
validate="options"
class="chzn-color"
>
<option value="">JGLOBAL_USE_GLOBAL</option>
<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"
validate="options"
class="chzn-color"
>
<option value="">JGLOBAL_USE_GLOBAL</option>
<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"
validate="options"
class="chzn-color"
>
<option value="">JGLOBAL_USE_GLOBAL</option>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="allow_empty_query"
type="list"
label="COM_FINDER_ALLOW_EMPTY_QUERY_LABEL"
description="COM_FINDER_ALLOW_EMPTY_QUERY_DESC"
default=""
useglobal="true"
class="chzn-color"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field
name="show_suggested_query"
type="list"
label="COM_FINDER_CONFIG_SHOW_SUGGESTED_QUERY_LABEL"
description="COM_FINDER_CONFIG_SHOW_SUGGESTED_QUERY_DESC"
default=""
useglobal="true"
class="chzn-color"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field
name="show_explained_query"
type="list"
label="COM_FINDER_CONFIG_SHOW_EXPLAINED_QUERY_LABEL"
description="COM_FINDER_CONFIG_SHOW_EXPLAINED_QUERY_DESC"
default=""
useglobal="true"
class="chzn-color"
>
<option value="1">JYES</option>
<option value="0">JNO</option>
</field>
<field
name="sort_order"
type="list"
label="COM_FINDER_CONFIG_SORT_ORDER_LABEL"
description="COM_FINDER_CONFIG_SORT_ORDER_DESC"
default=""
useglobal="true"
>
<option
value="relevance">COM_FINDER_CONFIG_SORT_OPTION_RELEVANCE</option>
<option
value="date">COM_FINDER_CONFIG_SORT_OPTION_START_DATE</option>
<option
value="price">COM_FINDER_CONFIG_SORT_OPTION_LIST_PRICE</option>
</field>
<field
name="sort_direction"
type="list"
label="COM_FINDER_CONFIG_SORT_DIRECTION_LABEL"
description="COM_FINDER_CONFIG_SORT_DIRECTION_DESC"
default=""
useglobal="true"
>
<option
value="desc">COM_FINDER_CONFIG_SORT_OPTION_DESCENDING</option>
<option
value="asc">COM_FINDER_CONFIG_SORT_OPTION_ASCENDING</option>
</field>
</fieldset>
<fieldset name="integration">
<field
name="show_feed_link"
type="list"
label="JGLOBAL_SHOW_FEED_LINK_LABEL"
description="JGLOBAL_SHOW_FEED_LINK_DESC"
validate="options"
class="chzn-color"
>
<option value="">JGLOBAL_USE_GLOBAL</option>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
</fieldset>
</fields>
</metadata>
search/tmpl/default_form.php000064400000006730151167763360012172
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage com_finder
*
* @copyright (C) 2011 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
if ($this->params->get('show_advanced', 1) ||
$this->params->get('show_autosuggest', 1))
{
JHtml::_('jquery.framework');
$script = "
jQuery(function() {";
if ($this->params->get('show_advanced', 1))
{
/*
* This segment of code disables select boxes that have no value when the
* form is submitted so that the URL doesn't get blown up with null
values.
*/
$script .= "
jQuery('#finder-search').on('submit', function(e){
e.stopPropagation();
// Disable select boxes with no value selected.
jQuery('#advancedSearch').find('select').each(function(index,
el) {
var el = jQuery(el);
if(!el.val()){
el.attr('disabled', 'disabled');
}
});
});";
}
/*
* This segment of code sets up the autocompleter.
*/
if ($this->params->get('show_autosuggest', 1))
{
JHtml::_('script', 'jui/jquery.autocomplete.min.js',
array('version' => 'auto', 'relative'
=> true));
$script .= "
var suggest = jQuery('#q').autocomplete({
serviceUrl: '" .
JRoute::_('index.php?option=com_finder&task=suggestions.suggest&format=json&tmpl=component')
. "',
paramName: 'q',
minChars: 1,
maxHeight: 400,
width: 300,
zIndex: 9999,
deferRequestBy: 500
});";
}
$script .= "
});";
JFactory::getDocument()->addScriptDeclaration($script);
}
?>
<form id="finder-search" action="<?php echo
JRoute::_($this->query->toUri()); ?>" method="get"
class="form-inline">
<?php echo $this->getFields(); ?>
<?php // DISABLED UNTIL WEIRD VALUES CAN BE TRACKED DOWN. ?>
<?php if (false &&
$this->state->get('list.ordering') !==
'relevance_dsc') : ?>
<input type="hidden" name="o" value="<?php
echo $this->escape($this->state->get('list.ordering'));
?>" />
<?php endif; ?>
<fieldset class="word">
<label for="q">
<?php echo JText::_('COM_FINDER_SEARCH_TERMS'); ?>
</label>
<input type="text" name="q" id="q"
size="30" value="<?php echo
$this->escape($this->query->input); ?>"
class="inputbox" />
<?php if ($this->escape($this->query->input) != ''
|| $this->params->get('allow_empty_query')) : ?>
<button name="Search" type="submit"
class="btn btn-primary">
<span class="icon-search icon-white"></span>
<?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?>
</button>
<?php else : ?>
<button name="Search" type="submit"
class="btn btn-primary disabled">
<span class="icon-search icon-white"></span>
<?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?>
</button>
<?php endif; ?>
<?php if ($this->params->get('show_advanced', 1)) :
?>
<a href="#advancedSearch" data-toggle="collapse"
class="btn">
<span class="icon-list"
aria-hidden="true"></span>
<?php echo JText::_('COM_FINDER_ADVANCED_SEARCH_TOGGLE');
?>
</a>
<?php endif; ?>
</fieldset>
<?php if ($this->params->get('show_advanced', 1)) :
?>
<div id="advancedSearch" class="collapse<?php if
($this->params->get('expand_advanced', 0)) echo '
in'; ?>">
<hr />
<?php if ($this->params->get('show_advanced_tips',
1)) : ?>
<div id="search-query-explained">
<div class="advanced-search-tip">
<?php echo JText::_('COM_FINDER_ADVANCED_TIPS'); ?>
</div>
<hr />
</div>
<?php endif; ?>
<div id="finder-filter-window">
<?php echo JHtml::_('filter.select', $this->query,
$this->params); ?>
</div>
</div>
<?php endif; ?>
</form>
search/tmpl/default_result.php000064400000004767151167763360012555
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage com_finder
*
* @copyright (C) 2011 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\String\StringHelper;
// Get the mime type class.
$mime = !empty($this->result->mime) ? 'mime-' .
$this->result->mime : null;
$show_description = $this->params->get('show_description',
1);
if ($show_description)
{
// Calculate number of characters to display around the result
$term_length = StringHelper::strlen($this->query->input);
$desc_length = $this->params->get('description_length',
255);
$pad_length = $term_length < $desc_length ? (int) floor(($desc_length
- $term_length) / 2) : 0;
// Make sure we highlight term both in introtext and fulltext
if (!empty($this->result->summary) &&
!empty($this->result->body))
{
$full_description =
FinderIndexerHelper::parse($this->result->summary .
$this->result->body);
}
else
{
$full_description = $this->result->description;
}
// Find the position of the search term
$pos = $term_length ?
StringHelper::strpos(StringHelper::strtolower($full_description),
StringHelper::strtolower($this->query->input)) : false;
// Find a potential start point
$start = ($pos && $pos > $pad_length) ? $pos - $pad_length : 0;
// Find a space between $start and $pos, start right after it.
$space = StringHelper::strpos($full_description, ' ', $start
> 0 ? $start - 1 : 0);
$start = ($space && $space < $pos) ? $space + 1 : $start;
$description = JHtml::_('string.truncate',
StringHelper::substr($full_description, $start), $desc_length, true);
}
$route = $this->result->route;
// Get the route with highlighting information.
if (!empty($this->query->highlight)
&& empty($this->result->mime)
&& $this->params->get('highlight_terms', 1)
&& JPluginHelper::isEnabled('system',
'highlight'))
{
$route .= '&highlight=' .
base64_encode(json_encode($this->query->highlight));
}
?>
<li>
<h4 class="result-title <?php echo $mime; ?>">
<a href="<?php echo JRoute::_($route); ?>">
<?php echo $this->result->title; ?>
</a>
</h4>
<?php if ($show_description && $description !== '') :
?>
<p class="result-text<?php echo $this->pageclass_sfx;
?>">
<?php echo $description; ?>
</p>
<?php endif; ?>
<?php if ($this->params->get('show_url', 1)) : ?>
<div class="small result-url<?php echo
$this->pageclass_sfx; ?>">
<?php echo $this->baseUrl, JRoute::_($this->result->route);
?>
</div>
<?php endif; ?>
</li>
search/tmpl/default_results.php000064400000006263151167763360012731
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage com_finder
*
* @copyright (C) 2011 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
?>
<?php // Display the suggested search if it is different from the
current search. ?>
<?php if (($this->suggested &&
$this->params->get('show_suggested_query', 1)) ||
($this->explained &&
$this->params->get('show_explained_query', 1))) : ?>
<div id="search-query-explained">
<?php // Display the suggested search query. ?>
<?php if ($this->suggested &&
$this->params->get('show_suggested_query', 1)) : ?>
<?php // Replace the base query string with the suggested query
string. ?>
<?php $uri = JUri::getInstance($this->query->toUri()); ?>
<?php $uri->setVar('q', $this->suggested); ?>
<?php // Compile the suggested query link. ?>
<?php $linkUrl = JRoute::_($uri->toString(array('path',
'query'))); ?>
<?php $link = '<a href="' . $linkUrl .
'">' . $this->escape($this->suggested) .
'</a>'; ?>
<?php echo JText::sprintf('COM_FINDER_SEARCH_SIMILAR',
$link); ?>
<?php elseif ($this->explained &&
$this->params->get('show_explained_query', 1)) : ?>
<?php // Display the explained search query. ?>
<?php echo $this->explained; ?>
<?php endif; ?>
</div>
<?php endif; ?>
<?php // Display the 'no results' message and exit the
template. ?>
<?php if (($this->total === 0) || ($this->total === null)) : ?>
<div id="search-result-empty">
<h2><?php echo
JText::_('COM_FINDER_SEARCH_NO_RESULTS_HEADING');
?></h2>
<?php $multilang = JFactory::getApplication()->getLanguageFilter()
? '_MULTILANG' : ''; ?>
<p><?php echo
JText::sprintf('COM_FINDER_SEARCH_NO_RESULTS_BODY' . $multilang,
$this->escape($this->query->input)); ?></p>
</div>
<?php // Exit this template. ?>
<?php return; ?>
<?php endif; ?>
<?php // Activate the highlighter if enabled. ?>
<?php if (!empty($this->query->highlight) &&
$this->params->get('highlight_terms', 1)) : ?>
<?php JHtml::_('behavior.highlighter',
$this->query->highlight); ?>
<?php endif; ?>
<?php // Display a list of results ?>
<br id="highlighter-start" />
<ul class="search-results<?php echo $this->pageclass_sfx;
?> list-striped">
<?php $this->baseUrl =
JUri::getInstance()->toString(array('scheme',
'host', 'port')); ?>
<?php foreach ($this->results as $result) : ?>
<?php $this->result = &$result; ?>
<?php $layout = $this->getLayoutFile($this->result->layout);
?>
<?php echo $this->loadTemplate($layout); ?>
<?php endforeach; ?>
</ul>
<br id="highlighter-end" />
<?php // Display the pagination ?>
<div class="search-pagination">
<div class="pagination">
<?php echo $this->pagination->getPagesLinks(); ?>
</div>
<div class="search-pages-counter">
<?php // Prepare the pagination string. Results X - Y of Z ?>
<?php $start = (int)
$this->pagination->get('limitstart') + 1; ?>
<?php $total = (int) $this->pagination->get('total');
?>
<?php $limit = (int) $this->pagination->get('limit') *
$this->pagination->get('pages.current'); ?>
<?php $limit = (int) ($limit > $total ? $total : $limit); ?>
<?php echo JText::sprintf('COM_FINDER_SEARCH_RESULTS_OF',
$start, $limit, $total); ?>
</div>
</div>
search/view.feed.php000064400000005167151167763360010426 0ustar00<?php
/**
* @package Joomla.Site
* @subpackage com_finder
*
* @copyright (C) 2011 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Search feed view class for the Finder package.
*
* @since 2.5
*/
class FinderViewSearch extends JViewLegacy
{
/**
* Method to display the view.
*
* @param string $tpl A template file to load. [optional]
*
* @return mixed JError object on failure, void on success.
*
* @since 2.5
*/
public function display($tpl = null)
{
// Get the application
$app = JFactory::getApplication();
// Adjust the list limit to the feed limit.
$app->input->set('limit',
$app->get('feed_limit'));
// Get view data.
$state = $this->get('State');
$params = $state->get('params');
$query = $this->get('Query');
$results = $this->get('Results');
// Push out the query data.
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
$explained = JHtml::_('query.explained', $query);
// Set the document title.
$title = $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);
// Configure the document description.
if (!empty($explained))
{
$this->document->setDescription(html_entity_decode(strip_tags($explained),
ENT_QUOTES, 'UTF-8'));
}
// Set the document link.
$this->document->link = JRoute::_($query->toUri());
// If we don't have any results, we are done.
if (empty($results))
{
return;
}
// Convert the results to feed entries.
foreach ($results as $result)
{
// Convert the result to a feed entry.
$item = new JFeedItem;
$item->title = $result->title;
$item->link = JRoute::_($result->route);
$item->description = $result->description;
// Use Unix date to cope for non-english languages
$item->date = (int) $result->start_date ?
JHtml::_('date', $result->start_date, 'U') :
$result->indexdate;
// Get the taxonomy data.
$taxonomy = $result->getTaxonomy();
// Add the category to the feed if available.
if (isset($taxonomy['Category']))
{
$node = array_pop($taxonomy['Category']);
$item->category = $node->title;
}
// Loads item info into RSS array
$this->document->addItem($item);
}
}
}
search/view.html.php000064400000017066151167763360010470 0ustar00<?php
/**
* @package Joomla.Site
* @subpackage com_finder
*
* @copyright (C) 2011 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
use Joomla\CMS\Helper\SearchHelper;
/**
* Search HTML view class for the Finder package.
*
* @since 2.5
*/
class FinderViewSearch extends JViewLegacy
{
/**
* The query object
*
* @var FinderIndexerQuery
*/
protected $query;
/**
* The application parameters
*
* @var Registry The parameters object
*/
protected $params;
/**
* The model state
*
* @var object
*/
protected $state;
protected $user;
/**
* An array of results
*
* @var array
*
* @since 3.8.0
*/
protected $results;
/**
* The total number of items
*
* @var integer
*
* @since 3.8.0
*/
protected $total;
/**
* The pagination object
*
* @var JPagination
*
* @since 3.8.0
*/
protected $pagination;
/**
* Method to display the view.
*
* @param string $tpl A template file to load. [optional]
*
* @return mixed JError object on failure, void on success.
*
* @since 2.5
*/
public function display($tpl = null)
{
$app = JFactory::getApplication();
$params = $app->getParams();
// Get view data.
$state = $this->get('State');
$query = $this->get('Query');
JDEBUG ?
JProfiler::getInstance('Application')->mark('afterFinderQuery')
: null;
$results = $this->get('Results');
JDEBUG ?
JProfiler::getInstance('Application')->mark('afterFinderResults')
: null;
$total = $this->get('Total');
JDEBUG ?
JProfiler::getInstance('Application')->mark('afterFinderTotal')
: null;
$pagination = $this->get('Pagination');
JDEBUG ?
JProfiler::getInstance('Application')->mark('afterFinderPagination')
: null;
// Flag indicates to not add limitstart=0 to URL
$pagination->hideEmptyLimitstart = true;
// Check for errors.
if (count($errors = $this->get('Errors')))
{
JError::raiseError(500, implode("\n", $errors));
return false;
}
// Configure the pathway.
if (!empty($query->input))
{
$app->getPathway()->addItem($this->escape($query->input));
}
// Push out the view data.
$this->state = &$state;
$this->params = &$params;
$this->query = &$query;
$this->results = &$results;
$this->total = &$total;
$this->pagination = &$pagination;
// Check for a double quote in the query string.
if (strpos($this->query->input, '"'))
{
// Get the application router.
$router = &$app::getRouter();
// Fix the q variable in the URL.
if ($router->getVar('q') !== $this->query->input)
{
$router->setVar('q', $this->query->input);
}
}
// Log the search
SearchHelper::logSearch($this->query->input,
'com_finder');
// Push out the query data.
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
$this->suggested = JHtml::_('query.suggested', $query);
$this->explained = JHtml::_('query.explained', $query);
// Escape strings for HTML output
$this->pageclass_sfx =
htmlspecialchars($params->get('pageclass_sfx', ''));
// Check for layout override only if this is not the active menu item
// If it is the active menu item, then the view and category id will
match
$active = $app->getMenu()->getActive();
if (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']);
}
$this->prepareDocument($query);
JDEBUG ?
JProfiler::getInstance('Application')->mark('beforeFinderLayout')
: null;
parent::display($tpl);
JDEBUG ?
JProfiler::getInstance('Application')->mark('afterFinderLayout')
: null;
}
/**
* Method to get hidden input fields for a get form so that control
variables
* are not lost upon form submission
*
* @return string A string of hidden input form fields
*
* @since 2.5
*/
protected function getFields()
{
$fields = null;
// Get the URI.
$uri = JUri::getInstance(JRoute::_($this->query->toUri()));
$uri->delVar('q');
$uri->delVar('o');
$uri->delVar('t');
$uri->delVar('d1');
$uri->delVar('d2');
$uri->delVar('w1');
$uri->delVar('w2');
$elements = $uri->getQuery(true);
// Create hidden input elements for each part of the URI.
foreach ($elements as $n => $v)
{
if (is_scalar($v))
{
$fields .= '<input type="hidden" name="' .
$n . '" value="' . $v . '" />';
}
}
return $fields;
}
/**
* Method to get the layout file for a search result object.
*
* @param string $layout The layout file to check. [optional]
*
* @return string The layout file to use.
*
* @since 2.5
*/
protected function getLayoutFile($layout = null)
{
// Create and sanitize the file name.
$file = $this->_layout . '_' .
preg_replace('/[^A-Z0-9_\.-]/i', '', $layout);
// Check if the file exists.
jimport('joomla.filesystem.path');
$filetofind = $this->_createFileName('template',
array('name' => $file));
$exists = JPath::find($this->_path['template'],
$filetofind);
return ($exists ? $layout : 'result');
}
/**
* Prepares the document
*
* @param FinderIndexerQuery $query The search query
*
* @return void
*
* @since 2.5
*/
protected function prepareDocument($query)
{
$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_FINDER_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 ($layout = $this->params->get('article_layout'))
{
$this->setLayout($layout);
}
// Configure the document meta-description.
if (!empty($this->explained))
{
$explained =
$this->escape(html_entity_decode(strip_tags($this->explained),
ENT_QUOTES, 'UTF-8'));
$this->document->setDescription($explained);
}
elseif ($this->params->get('menu-meta_description'))
{
$this->document->setDescription($this->params->get('menu-meta_description'));
}
// Configure the document meta-keywords.
if (!empty($query->highlight))
{
$this->document->setMetaData('keywords', implode(',
', $query->highlight));
}
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'));
}
// Add feed link to the document head.
if ($this->params->get('show_feed_link', 1) == 1)
{
// Add the RSS link.
$props = array('type' => 'application/rss+xml',
'title' => 'RSS 2.0');
$route = JRoute::_($this->query->toUri() .
'&format=feed&type=rss');
$this->document->addHeadLink($route, 'alternate',
'rel', $props);
// Add the ATOM link.
$props = array('type' => 'application/atom+xml',
'title' => 'Atom 1.0');
$route = JRoute::_($this->query->toUri() .
'&format=feed&type=atom');
$this->document->addHeadLink($route, 'alternate',
'rel', $props);
}
}
}
search/view.opensearch.php000064400000002515151167763360011644
0ustar00<?php
/**
* @package Joomla.Site
* @subpackage com_finder
*
* @copyright (C) 2011 Open Source Matters, Inc.
<https://www.joomla.org>
* @license GNU General Public License version 2 or later; see
LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* OpenSearch View class for Finder
*
* @since 2.5
*/
class FinderViewSearch extends JViewLegacy
{
/**
* Method to display the view.
*
* @param string $tpl A template file to load. [optional]
*
* @return mixed JError object on failure, void on success.
*
* @since 2.5
*/
public function display($tpl = null)
{
$doc = JFactory::getDocument();
$app = JFactory::getApplication();
$params = JComponentHelper::getParams('com_finder');
$doc->setShortName($params->get('opensearch_name',
$app->get('sitename')));
$doc->setDescription($params->get('opensearch_description',
$app->get('MetaDesc')));
// Add the URL for the search
$searchUri = JUri::base() .
'index.php?option=com_finder&q={searchTerms}';
// Find the menu item for the search
$menu = $app->getMenu();
$items = $menu->getItems('link',
'index.php?option=com_finder&view=search');
if (isset($items[0]))
{
$searchUri .= '&Itemid=' . $items[0]->id;
}
$htmlSearch = new JOpenSearchUrl;
$htmlSearch->template = JRoute::_($searchUri);
$doc->addUrl($htmlSearch);
}
}
comment/index.html000064400000000054151171616040010204
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>comment/submitbutton.js000064400000002756151171616040011317
0ustar00/*----------------------------------------------------------------------------------|
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;
}
}
}comment/tmpl/default.php000064400000007465151171616040011335
0ustar00<?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$$$$]-->
comment/tmpl/default.xml000064400000000365151171616040011336
0ustar00<?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>comment/tmpl/index.html000064400000000054151171616040011160
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>comment/view.html.php000064400000007526151171616040010650
0ustar00<?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);
}
}
consultantitem/index.html000064400000000054151171616040011613
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>consultantitem/tmpl/default.php000064400000027627151171616050012747
0ustar00<?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$$$$]-->
consultantitem/tmpl/default.xml000064400000000412151171616050012737
0ustar00<?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>consultantitem/tmpl/index.html000064400000000054151171616050012570
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>consultantitem/view.html.php000064400000007212151171616050012250
0ustar00<?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);
}
}
consultantsignup/index.html000064400000000054151171616050012163
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>consultantsignup/submitbutton.js000064400000002767151171616050013300
0ustar00/*----------------------------------------------------------------------------------|
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;
}
}
}consultantsignup/tmpl/default.php000064400000016751151171616050013312
0ustar00<?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$$$$]-->
consultantsignup/tmpl/default.xml000064400000000420151171616050013305
0ustar00<?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>consultantsignup/tmpl/index.html000064400000000054151171616050013137
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>consultantsignup/view.html.php000064400000007331151171616050012621
0ustar00<?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);
}
}
consultant_plan/assets/style.css000064400000001307151171616050013130
0ustar00.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;
}
}
consultant_plan/index.html000064400000000054151171616050011747
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>consultant_plan/submitbutton.js000064400000002766151171616050013063
0ustar00/*----------------------------------------------------------------------------------|
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;
}
}
}consultant_plan/tmpl/default.php000064400000031616151171616050013073
0ustar00<?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">×</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$$$$]-->
consultant_plan/tmpl/default.xml000064400000000415151171616060013076
0ustar00<?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>consultant_plan/tmpl/index.html000064400000000054151171616060012724
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>consultant_plan/view.html.php000064400000010266151171616060012407
0ustar00<?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);
}
}
doctor/index.html000064400000000054151171616060010036
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>doctor/tmpl/default.php000064400000016143151171616060011160
0ustar00<?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$$$$]-->
doctor/tmpl/default.xml000064400000000362151171616060011165
0ustar00<?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>doctor/tmpl/index.html000064400000000054151171616060011012
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>doctor/view.html.php000064400000011076151171616060010475
0ustar00<?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);
}
}
doctors/index.html000064400000000054151171616060010221
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>doctors/submitbutton.js000064400000003017151171616060011323
0ustar00/*----------------------------------------------------------------------------------|
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;
}
}
}doctors/tmpl/default-old-mahdi.php000064400000012146151171616060013176
0ustar00<?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>
doctors/tmpl/default.php000064400000012115151171616060011336
0ustar00<?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>
doctors/tmpl/default.xml000064400000000365151171616060011353
0ustar00<?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>doctors/tmpl/index.html000064400000000054151171616060011175
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>doctors/view.html.php000064400000006266151171616060010665
0ustar00<?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);
}
}
doctorsignup/index.html000064400000000054151171616070011265
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>doctorsignup/submitbutton.js000064400000002763151171616070012376
0ustar00/*----------------------------------------------------------------------------------|
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;
}
}
}doctorsignup/tmpl/default.php000064400000011121151171616110012371
0ustar00<?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; ?>
doctorsignup/tmpl/default.xml000064400000000404151171616110012404
0ustar00<?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>doctorsignup/tmpl/index.html000064400000000054151171616120012235
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>doctorsignup/view.html.php000064400000007354151171616120011724
0ustar00<?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);
}
}
firstqst/index.html000064400000000054151171616120010420
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>firstqst/submitbutton.js000064400000002757151171616120011534
0ustar00/*----------------------------------------------------------------------------------|
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;
}
}
}firstqst/tmpl/default.php000064400000014144151171616120011541
0ustar00<?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">×</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>
firstqst/tmpl/default.xml000064400000000370151171616120011546
0ustar00<?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>firstqst/tmpl/index.html000064400000000054151171616120011374
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>firstqst/view.html.php000064400000006565151171616120011066
0ustar00<?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);
}
}
index.html000064400000000054151171616120006541 0ustar00<html><body
bgcolor="#FFFFFF"></body></html>login/index.html000064400000000054151171616120007651
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>login/submitbutton.js000064400000002754151171616120010762
0ustar00/*----------------------------------------------------------------------------------|
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;
}
}
}login/tmpl/default.php000064400000004770151171616120010776
0ustar00<?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$$$$]-->
login/tmpl/default.xml000064400000000357151171616120011004 0ustar00<?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>login/tmpl/default_password.php000064400000007513151171616120012716
0ustar00<?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$$$$]-->
login/tmpl/default_register.php000064400000006476151171616120012707
0ustar00<?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$$$$]-->
login/tmpl/index.html000064400000000054151171616120010625
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>login/view.html.php000064400000012471151171616120010310
0ustar00<?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);
}
}
messages/index.html000064400000000054151171616120010350
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>messages/tmpl/default.php000064400000037345151171616120011501
0ustar00<?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="
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="
fill: #a5a5a5; "> <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">×</span>
<img class="modalimg-content" id="img01">
<div id="caption"></div>
</div>
<script>
</script>
<input type="hidden" name="<?=
JSession::getFormToken();?>" id="token">
</div><!--[/JCBGUI$$$$]-->
messages/tmpl/default.php.bak000064400000033723151171616120012231
0ustar00<?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$$$$]-->
messages/tmpl/default.php.bak2000064400000034424151171616120012312
0ustar00<?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$$$$]-->
messages/tmpl/default.php.bak3000064400000040057151171616120012312
0ustar00<?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="
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>
messages/tmpl/default.php.bak4000064400000025655151171616120012322
0ustar00<?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$$$$]-->
messages/tmpl/default.xml000064400000000370151171616120011476
0ustar00<?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>messages/tmpl/index.html000064400000000054151171616120011324
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>messages/view.html.php000064400000011021151171616120010775
0ustar00<?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);
}
}
payment/index.html000064400000000054151171616120010216
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>payment/tmpl/default.php000064400000002240151171616120011331
0ustar00<?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(); ?>
payment/tmpl/default.xml000064400000000365151171616130011351
0ustar00<?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>payment/tmpl/index.html000064400000000054151171616130011173
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>payment/view.html.php000064400000006206151171616130010655
0ustar00<?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);
}
}
plan/submitbutton.js000064400000002753151171616130010604
0ustar00/*----------------------------------------------------------------------------------|
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;
}
}
}plan/tmpl/edit.php000064400000007541151171616130010121 0ustar00<?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>
plan/tmpl/edit.xml000064400000000354151171616130010125 0ustar00<?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>plan/tmpl/index.html000064400000000054151171616130010450
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>plan/view.html.php000064400000017003151171616130010127
0ustar00<?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');
}
}
reserve_a/index.html000064400000000054151171616130010515
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>reserve_a/submitbutton.js000064400000003017151171616130011617
0ustar00/*----------------------------------------------------------------------------------|
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;
}
}
}reserve_a/tmpl/default.php000064400000002644151171616130011640
0ustar00<?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$$$$]-->
reserve_a/tmpl/default.xml000064400000000365151171616130011647
0ustar00<?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>reserve_a/tmpl/default_payment.php000064400000006506151171616130013376
0ustar00<?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>
reserve_a/tmpl/default_personalinfo.php000064400000015652151171616140014423
0ustar00<?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$$$$]-->
reserve_a/tmpl/default_policy.php000064400000007563151171616140013225
0ustar00<?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$$$$]-->
reserve_a/tmpl/index.html000064400000000054151171616140011472
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>reserve_a/view.html.php000064400000012437151171616140011157
0ustar00<?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);
}
}
reserve_appointment/index.html000064400000000054151171616140012634
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>reserve_appointment/submitbutton.js000064400000002772151171616140013745
0ustar00/*----------------------------------------------------------------------------------|
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;
}
}
}reserve_appointment/tmpl/default.php000064400000002664151171616140013761
0ustar00<?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$$$$]-->
reserve_appointment/tmpl/default.xml000064400000000431151171616140013760
0ustar00<?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>reserve_appointment/tmpl/default_payment.php000064400000006535151171616140015517
0ustar00<?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$$$$]-->
reserve_appointment/tmpl/default_personalinfo.php000064400000015353151171616140016537
0ustar00<?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$$$$]-->
reserve_appointment/tmpl/default_policy.php000064400000007564151171616140015344
0ustar00<?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$$$$]-->
reserve_appointment/tmpl/index.html000064400000000054151171616140013610
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>reserve_appointment/view.html.php000064400000013010151171616140013261
0ustar00<?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);
}
}
usersign/index.html000064400000000054151171616150010403
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>usersign/tmpl/default.php000064400000002240151171616150011516
0ustar00<?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(); ?>
usersign/tmpl/default.xml000064400000000370151171616150011531
0ustar00<?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>usersign/tmpl/index.html000064400000000054151171616150011357
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>usersign/view.html.php000064400000006212151171616150011036
0ustar00<?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);
}
}
res_list/index.html000064400000000054151171616150010370
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>res_list/tmpl/default.php000064400000016122151171616150011507
0ustar00<?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>
res_list/tmpl/default.xml000064400000000370151171616150011516
0ustar00<?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>res_list/tmpl/index.html000064400000000054151171616150011344
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>res_list/view.html.php000064400000006272151171616150011031
0ustar00<?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);
}
}