Get Demo Component to work on both J3! and J4! via legacy approach #1
@ -1,34 +1,34 @@
|
|||||||
<?php
|
<?php
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
||||||
Vast Development Method
|
Vast Development Method
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.0.3
|
@version 2.0.3
|
||||||
@build 8th February, 2021
|
@build 8th February, 2021
|
||||||
@created 18th October, 2016
|
@created 18th October, 2016
|
||||||
@package Demo
|
@package Demo
|
||||||
@subpackage edit.php
|
@subpackage edit.php
|
||||||
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
@author Llewellyn van der Merwe <https://www.vdm.io/>
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
@copyright Copyright (C) 2015. All Rights Reserved
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
/------------------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||||
JHtml::_('behavior.tooltip');
|
//JHtml::_('behavior.tooltip');
|
||||||
JHtml::_('behavior.formvalidation');
|
JHtml::_('behavior.formvalidator');
|
||||||
JHtml::_('formbehavior.chosen', 'select');
|
JHtml::_('formbehavior.chosen', 'select');
|
||||||
JHtml::_('behavior.keepalive');
|
JHtml::_('behavior.keepalive');
|
||||||
$componentParams = $this->params; // will be removed just use $this->params instead
|
$componentParams = $this->params; // will be removed just use $this->params instead
|
||||||
?>
|
?>
|
||||||
<script type="text/javascript">
|
<!--<script type="text/javascript">
|
||||||
// waiting spinner
|
// waiting spinner
|
||||||
var outerDiv = jQuery('body');
|
var outerDiv = jQuery('body');
|
||||||
jQuery('<div id="loading"></div>')
|
jQuery('<div id="loading"></div>')
|
||||||
@ -50,8 +50,8 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
|||||||
jQuery('#loading').hide();
|
jQuery('#loading').hide();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<div id="demo_loader" style="display: none;">
|
<div id="demo_loader" style="display: none;">-->
|
||||||
<form action="<?php echo JRoute::_('index.php?option=com_demo&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
<form action="<?php echo JRoute::_('index.php?option=com_demo&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||||
|
|
||||||
<?php echo JLayoutHelper::render('look.details_above', $this); ?>
|
<?php echo JLayoutHelper::render('look.details_above', $this); ?>
|
||||||
<div class="form-horizontal">
|
<div class="form-horizontal">
|
||||||
@ -124,8 +124,8 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
<?php echo JLayoutHelper::render('look.details_under', $this); ?>
|
<?php echo JLayoutHelper::render('look.details_under', $this); ?>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -145,4 +145,4 @@ jQuery('#adminForm').on('change', '#jform_add',function (e)
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user