Spade

Mini Shell

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

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

PKꠍ[�#o,,
index.htmlnu�[���<html><body
bgcolor="#FFFFFF"></body></html>PKꠍ[��'submitbutton.jsnu�[���/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		submitbutton.js
	@author			farhad shahbazi <http://farhad.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

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

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

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default.php
	@author			farhad shahbazi <http://farhad.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

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

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


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

<!--[JCBGUI.site_view.default.36.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>

<?php 


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

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

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

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_policy.php
	@author			farhad shahbazi <http://farhad.com>
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__)

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

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

?>

<!--[JCBGUI.template.template.2.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>

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

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

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

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_personalinfo.php
	@author			farhad shahbazi <http://farhad.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

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

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

?>

<!--[JCBGUI.template.template.1.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>

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

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

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

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

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

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

PKꠍ[RYsstmpl/default_policy.phpnu�[���<?php
/*----------------------------------------------------------------------------------|
 www.vdm.io  |----/
				fdsh 
/-------------------------------------------------------------------------------------------------------/

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		default_policy.php
	@author			farhad shahbazi <http://farhad.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

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

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

?>

<!--[JCBGUI.template.template.2.$$$$]-->
<?php echo JLayoutHelper::render('doctorinfo',
$this->item); ?>

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

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

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

	@version		1.0.32
	@build			14th June, 2021
	@created		17th December, 2020
	@package		Reservation
	@subpackage		view.html.php
	@author			farhad shahbazi <http://farhad.com>	
	@copyright		Copyright (C) 2015. All Rights Reserved
	@license		GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html
  ____  _____  _____  __  __  __      __       ___  _____  __  __  ____ 
_____  _  _  ____  _  _  ____ 
 (_  _)(  _  )(  _  )(  \/  )(  )    /__\     / __)(  _  )(  \/  )(  _ \( 
_  )( \( )( ___)( \( )(_  _)
.-_)(   )(_)(  )(_)(  )    (  )(__  /(__)\   ( (__  )(_)(  )    (  )___/
)(_)(  )  (  )__)  )  (   )(  
\____) (_____)(_____)(_/\/\_)(____)(__)(__)   \___)(_____)(_/\/\_)(__) 
(_____)(_)\_)(____)(_)\_) (__) 

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

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

/**
 * Reservation View class for the Reserve
 */
class ReservationViewReserve extends JViewLegacy
{
	// Overwriting JView display method
	function display($tpl = null)
	{
		// get combined params of both component and menu
		$this->app = JFactory::getApplication();
		$this->params = $this->app->getParams();
		$this->menu = $this->app->getMenu()->getActive();
		// get the user object
		$this->user = JFactory::getUser();
		// Initialise variables.
		$this->item = $this->get('Item');

		/***[JCBGUI.site_view.php_jview_display.36.$$$$]***/
		$this->preprocess();/***[/JCBGUI$$$$]***/

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

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

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

		parent::display($tpl);
	}


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

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

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

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


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

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

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


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

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

		// always load these files.
		$this->document->addStyleSheet(JURI::root(true) .
"/media/com_reservation/bootstrapv45/css/bootstrap.min.css",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") : "text/css");
		$this->document->addScript(JURI::root(true) .
"/media/com_reservation/bootstrapv45/js/bootstrap.bundle.min.js",
(ReservationHelper::jVersion()->isCompatible("3.8.0")) ?
array("version" => "auto") :
"text/javascript");
		
		/***[JCBGUI.site_view.php_document.36.$$$$]***/
		JHtml::_('script',
'media/system/js/core.js');/***[/JCBGUI$$$$]***/
		 
		// add the document default css file
		$this->document->addStyleSheet(JURI::root(true)
.'/components/com_reservation/assets/css/reserve.css',
(ReservationHelper::jVersion()->isCompatible('3.8.0')) ?
array('version' => 'auto') : 'text/css');
	}

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

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

	/**
	 * Escapes a value for output in a view script.
	 *
	 * @param   mixed  $var  The output to escape.
	 *
	 * @return  mixed  The escaped value.
	 */
	public function escape($var, $sorten = false, $length = 40)
	{
		// use the helper htmlEscape method instead.
		return ReservationHelper::htmlEscape($var, $this->_charset, $sorten,
$length);
	}
}
PKꠍ[�#o,,
index.htmlnu�[���PKꠍ[��'fsubmitbutton.jsnu�[���PKꠍ[�h�k���tmpl/default.phpnu�[���PKꠍ[�9M���tmpl/default.xmlnu�[���PKꠍ[�LkKF
F
�
tmpl/default_payment.phpnu�[���PKꠍ[�:2f��[tmpl/default_personalinfo.phpnu�[���PKꠍ[RYssR7tmpl/default_policy.phpnu�[���PKꠍ[�#o,,Gtmpl/index.htmlnu�[���PKꠍ[��B�
wGview.html.phpnu�[���PK		��\