Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla4/ |
| [Home] [System Details] [Kill Me] |
mod_plan_display.php000064400000003234151156175230010603 0ustar00<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
fdsh
/-------------------------------------------------------------------------------------------------------/
@version 1.0.40
@build 28th May, 2023
@created 17th December, 2020
@package Reservation
@subpackage mod_plan_display.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.joomla_module.mod_code.6.$$$$]***/
// Include the helper functions only once
JLoader::register('ModPlan_displayHelper', __DIR__ .
'/helper.php');
// Include the data functions only once
JLoader::register('ModPlan_displayData', __DIR__ .
'/data.php');
// get the module class sfx (local)
$moduleclass_sfx =
htmlspecialchars($params->get('moduleclass_sfx'), ENT_COMPAT,
'UTF-8');
// load the default Tmpl
require JModuleHelper::getLayoutPath('mod_plan_display',
$params->get('layout',
'default'));/***[/JCBGUI$$$$]***/
data.php000064400000007175151156175230006206 0ustar00<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
fdsh
/-------------------------------------------------------------------------------------------------------/
@version 1.0.40
@build 28th May, 2023
@created 17th December, 2020
@package Reservation
@subpackage data.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');
/**
* Module Plan Display Data
*/
class ModPlan_displayData extends \JObject
{
/**
* Custom Method
*
* @return mixed An array of objects on success, false on failure.
*
*/
public function get_plans()
{
if (!isset($this->initSet) || !$this->initSet)
{
$this->user = JFactory::getUser();
$this->userId = $this->user->get('id');
$this->guest = $this->user->get('guest');
$this->groups = $this->user->get('groups');
$this->authorisedGroups = $this->user->getAuthorisedGroups();
$this->levels = $this->user->getAuthorisedViewLevels();
$this->initSet = true;
}
// Get the global params
$globalParams = JComponentHelper::getParams('com_reservation',
true);
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// Get from #__reservation_plan as a
$query->select($db->quoteName(
array('a.id','a.asset_id','a.plantype','a.consultantid','a.price','a.time','a.waitingtime','a.published'),
array('id','asset_id','plantype','consultantid','price','time','waitingtime','published')));
$query->from($db->quoteName('#__reservation_plan',
'a'));
// Get from #__reservation_consultant as c
$query->select($db->quoteName(
array('c.id','c.userid','c.nationalnumber','c.phonenumber','c.officephone','c.capitalid','c.cityid','c.account','c.introduction','c.msn','c.catid','c.experience','c.image','c.alt','c.video','c.presence','c.address','c.shortlink','c.published'),
array('consultant_id','consultant_userid','consultant_nationalnumber','consultant_phonenumber','consultant_officephone','consultant_capitalid','consultant_cityid','consultant_account','consultant_introduction','consultant_msn','consultant_catid','consultant_experience','consultant_image','consultant_alt','consultant_video','consultant_presence','consultant_address','consultant_shortlink','consultant_published')));
$query->join('INNER',
($db->quoteName('#__reservation_consultant', 'c')) .
' ON (' . $db->quoteName('a.consultantid') . '
= ' . $db->quoteName('b.id') . ')');
// Reset the query using our newly populated query object.
$db->setQuery($query);
$items = $db->loadObjectList();
if (empty($items))
{
return false;
}
// Insure all item fields are adapted where needed.
if (ReservationHelper::checkArray($items))
{
foreach ($items as $nr => &$item)
{
// Always create a slug for sef URL's
$item->slug = (isset($item->alias) &&
isset($item->id)) ? $item->id.':'.$item->alias :
$item->id;
}
}
// return items
return $items;
}}
index.html000064400000000054151156175230006546 0ustar00<html><body
bgcolor="#FFFFFF"></body></html>language/en-GB/en-GB.mod_plan_display.ini000064400000000612151156175230014132
0ustar00MOD_PLAN_DISPLAY="Plan Display"
MOD_PLAN_DISPLAY_DESCRIPTION="display reservation consultant created
plans"
MOD_PLAN_DISPLAY_XML_DESCRIPTION="<h1>Plan Display
(v.1.0.0)</h1> <div style='clear:
both;'></div><p>display reservation consultant created
plans</p><p>Created by <a href='http://farhad.com'
target='_blank'>farhad shahbazi</a><br
/><small>Development started 28th May,
2023</small></p>"language/en-GB/en-GB.mod_plan_display.sys.ini000064400000000612151156175230014747
0ustar00MOD_PLAN_DISPLAY="Plan Display"
MOD_PLAN_DISPLAY_DESCRIPTION="display reservation consultant created
plans"
MOD_PLAN_DISPLAY_XML_DESCRIPTION="<h1>Plan Display
(v.1.0.0)</h1> <div style='clear:
both;'></div><p>display reservation consultant created
plans</p><p>Created by <a href='http://farhad.com'
target='_blank'>farhad shahbazi</a><br
/><small>Development started 28th May,
2023</small></p>"language/en-GB/index.html000064400000000054151156175230011221
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>language/index.html000064400000000054151156175230010331
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>tmpl/default.php000064400000002214151156175230007662
0ustar00<?php
/*----------------------------------------------------------------------------------|
www.vdm.io |----/
fdsh
/-------------------------------------------------------------------------------------------------------/
@version 1.0.40
@build 28th May, 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');
?>
<h1>No Tmpl set</h1>
tmpl/index.html000064400000000054151156175230007522
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>mod_plan_display.xml000064400000001766151156175230010624
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.8"
client="site" method="upgrade">
<name>MOD_PLAN_DISPLAY</name>
<creationDate>28th May, 2023</creationDate>
<author>farhad shahbazi</author>
<authorEmail>farhad.shahbazi0010@gmail.com</authorEmail>
<authorUrl>http://farhad.com</authorUrl>
<copyright>Copyright (C) 2015. All Rights Reserved</copyright>
<license>GNU/GPL Version 2 or later -
http://www.gnu.org/licenses/gpl-2.0.html</license>
<version>1.0.0</version>
<description>MOD_PLAN_DISPLAY_XML_DESCRIPTION</description>
<!-- Language files -->
<languages folder="language">
<language
tag="en-GB">en-GB/en-GB.mod_plan_display.ini</language>
<language
tag="en-GB">en-GB/en-GB.mod_plan_display.sys.ini</language>
</languages>
<!-- Model files -->
<files>
<filename
module="mod_plan_display">mod_plan_display.php</filename>
<filename>data.php</filename>
<filename>index.html</filename>
<folder>language</folder>
<folder>tmpl</folder>
</files>
</extension>