Component-Builder/admin/views/admin_view/tmpl/edit.php

808 lines
28 KiB
PHP
Raw Normal View History

2016-01-30 20:28:43 +00:00
<?php
2018-05-18 06:28:27 +00:00
/**
* @package Joomla.Component.Builder
*
* @created 30th April, 2015
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
* @copyright Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved.
2018-05-18 06:28:27 +00:00
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
2016-01-30 20:28:43 +00:00
// 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');
$componentParams = $this->params; // will be removed just use $this->params instead
2016-01-30 20:28:43 +00:00
?>
<script type="text/javascript">
// waiting spinner
var outerDiv = jQuery('body');
jQuery('<div id="loading"></div>')
.css("background", "rgba(255, 255, 255, .8) url('components/com_componentbuilder/assets/images/import.gif') 50% 15% no-repeat")
.css("top", outerDiv.position().top - jQuery(window).scrollTop())
.css("left", outerDiv.position().left - jQuery(window).scrollLeft())
.css("width", outerDiv.width())
.css("height", outerDiv.height())
.css("position", "fixed")
.css("opacity", "0.80")
.css("-ms-filter", "progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)")
.css("filter", "alpha(opacity = 80)")
.css("display", "none")
.appendTo(outerDiv);
jQuery('#loading').show();
// when page is ready remove and show
jQuery(window).load(function() {
jQuery('#componentbuilder_loader').fadeIn('fast');
jQuery('#loading').hide();
});
</script>
<div id="componentbuilder_loader" style="display: none;">
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
2016-01-30 20:28:43 +00:00
<?php echo JLayoutHelper::render('admin_view.details_above', $this); ?>
<div class="form-horizontal">
2016-01-30 20:28:43 +00:00
<?php echo JHtml::_('bootstrap.startTabSet', 'admin_viewTab', array('active' => 'details')); ?>
2016-01-30 20:28:43 +00:00
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'details', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_DETAILS', true)); ?>
2016-01-30 20:28:43 +00:00
<div class="row-fluid form-horizontal-desktop">
<div class="span6">
<?php echo JLayoutHelper::render('admin_view.details_left', $this); ?>
2016-01-30 20:28:43 +00:00
</div>
<div class="span6">
<?php echo JLayoutHelper::render('admin_view.details_right', $this); ?>
2016-01-30 20:28:43 +00:00
</div>
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('admin_view.details_fullwidth', $this); ?>
</div>
</div>
2016-01-30 20:28:43 +00:00
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'settings', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_SETTINGS', true)); ?>
2016-01-30 20:28:43 +00:00
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('admin_view.settings_fullwidth', $this); ?>
2016-01-30 20:28:43 +00:00
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'fields', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_FIELDS', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span6">
<?php echo JLayoutHelper::render('admin_view.fields_left', $this); ?>
</div>
<div class="span6">
<?php echo JLayoutHelper::render('admin_view.fields_right', $this); ?>
</div>
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('admin_view.fields_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
2016-01-30 20:28:43 +00:00
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'css', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_CSS', true)); ?>
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('admin_view.css_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'javascript', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT', true)); ?>
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('admin_view.javascript_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'custom_buttons', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_CUSTOM_BUTTONS', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('admin_view.custom_buttons_left', $this); ?>
</div>
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('admin_view.custom_buttons_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
2016-01-30 20:28:43 +00:00
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'php', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_PHP', true)); ?>
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('admin_view.php_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'mysql', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('admin_view.mysql_left', $this); ?>
</div>
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('admin_view.mysql_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'custom_import', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_CUSTOM_IMPORT', true)); ?>
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('admin_view.custom_import_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php $this->ignore_fieldsets = array('details','metadata','vdmmetadata','accesscontrol'); ?>
<?php $this->tab_name = 'admin_viewTab'; ?>
<?php echo JLayoutHelper::render('joomla.edit.params', $this); ?>
<?php if ($this->canDo->get('admin_view.delete') || $this->canDo->get('admin_view.edit.created_by') || $this->canDo->get('admin_view.edit.state') || $this->canDo->get('admin_view.edit.created')) : ?>
2016-01-30 20:28:43 +00:00
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'publishing', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_PUBLISHING', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span6">
<?php echo JLayoutHelper::render('admin_view.publishing', $this); ?>
</div>
<div class="span6">
<?php echo JLayoutHelper::render('admin_view.publlshing', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>
2016-01-30 20:28:43 +00:00
<?php if ($this->canDo->get('core.admin')) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'admin_viewTab', 'permissions', JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_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="admin_view.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</div>
<div class="clearfix"></div>
<?php echo JLayoutHelper::render('admin_view.details_under', $this); ?>
</form>
</div>
2016-01-30 20:28:43 +00:00
<script type="text/javascript">
2019-12-03 02:17:35 +00:00
// #jform_add_css_view listeners for add_css_view_vvvvvyv function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_css_view').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_css_view_vvvvvyv = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvvyv(add_css_view_vvvvvyv);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_css_view',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_css_view_vvvvvyv = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvvyv(add_css_view_vvvvvyv);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_css_views listeners for add_css_views_vvvvvyw function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_css_views').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_css_views_vvvvvyw = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvvyw(add_css_views_vvvvvyw);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_css_views',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_css_views_vvvvvyw = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvvyw(add_css_views_vvvvvyw);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_javascript_view_file listeners for add_javascript_view_file_vvvvvyx function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_javascript_view_file').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_javascript_view_file_vvvvvyx = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
vvvvvyx(add_javascript_view_file_vvvvvyx);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_javascript_view_file',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_javascript_view_file_vvvvvyx = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
vvvvvyx(add_javascript_view_file_vvvvvyx);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_javascript_views_file listeners for add_javascript_views_file_vvvvvyy function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_javascript_views_file').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_javascript_views_file_vvvvvyy = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
vvvvvyy(add_javascript_views_file_vvvvvyy);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_javascript_views_file',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_javascript_views_file_vvvvvyy = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
vvvvvyy(add_javascript_views_file_vvvvvyy);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvvyz function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_javascript_view_footer').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_javascript_view_footer_vvvvvyz = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvvyz(add_javascript_view_footer_vvvvvyz);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_javascript_view_footer',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_javascript_view_footer_vvvvvyz = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvvyz(add_javascript_view_footer_vvvvvyz);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvvza function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_javascript_views_footer').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_javascript_views_footer_vvvvvza = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvvza(add_javascript_views_footer_vvvvvza);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_javascript_views_footer_vvvvvza = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvvza(add_javascript_views_footer_vvvvvza);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvzb function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_php_ajax').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_ajax_vvvvvzb = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvzb(add_php_ajax_vvvvvzb);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_ajax',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_ajax_vvvvvzb = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvzb(add_php_ajax_vvvvvzb);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_getitem listeners for add_php_getitem_vvvvvzc function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_php_getitem').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_getitem_vvvvvzc = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
vvvvvzc(add_php_getitem_vvvvvzc);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_getitem',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_getitem_vvvvvzc = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
vvvvvzc(add_php_getitem_vvvvvzc);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_getitems listeners for add_php_getitems_vvvvvzd function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_php_getitems').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_getitems_vvvvvzd = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
vvvvvzd(add_php_getitems_vvvvvzd);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_getitems',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_getitems_vvvvvzd = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
vvvvvzd(add_php_getitems_vvvvvzd);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_getitems_after_all listeners for add_php_getitems_after_all_vvvvvze function
jQuery('#jform_add_php_getitems_after_all').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_getitems_after_all_vvvvvze = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
vvvvvze(add_php_getitems_after_all_vvvvvze);
});
jQuery('#adminForm').on('change', '#jform_add_php_getitems_after_all',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_getitems_after_all_vvvvvze = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
vvvvvze(add_php_getitems_after_all_vvvvvze);
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvzf function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_php_getlistquery').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_getlistquery_vvvvvzf = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
vvvvvzf(add_php_getlistquery_vvvvvzf);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_getlistquery_vvvvvzf = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
vvvvvzf(add_php_getlistquery_vvvvvzf);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_getform listeners for add_php_getform_vvvvvzg function
jQuery('#jform_add_php_getform').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_getform_vvvvvzg = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
vvvvvzg(add_php_getform_vvvvvzg);
});
jQuery('#adminForm').on('change', '#jform_add_php_getform',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_getform_vvvvvzg = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
vvvvvzg(add_php_getform_vvvvvzg);
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_before_save listeners for add_php_before_save_vvvvvzh function
jQuery('#jform_add_php_before_save').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_before_save_vvvvvzh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
vvvvvzh(add_php_before_save_vvvvvzh);
});
jQuery('#adminForm').on('change', '#jform_add_php_before_save',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_before_save_vvvvvzh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
vvvvvzh(add_php_before_save_vvvvvzh);
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_save listeners for add_php_save_vvvvvzi function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_php_save').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_save_vvvvvzi = jQuery("#jform_add_php_save input[type='radio']:checked").val();
vvvvvzi(add_php_save_vvvvvzi);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_save',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_save_vvvvvzi = jQuery("#jform_add_php_save input[type='radio']:checked").val();
vvvvvzi(add_php_save_vvvvvzi);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvzj function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_php_postsavehook').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_postsavehook_vvvvvzj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
vvvvvzj(add_php_postsavehook_vvvvvzj);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_postsavehook',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_postsavehook_vvvvvzj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
vvvvvzj(add_php_postsavehook_vvvvvzj);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_allowadd listeners for add_php_allowadd_vvvvvzk function
jQuery('#jform_add_php_allowadd').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_allowadd_vvvvvzk = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
vvvvvzk(add_php_allowadd_vvvvvzk);
});
jQuery('#adminForm').on('change', '#jform_add_php_allowadd',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_allowadd_vvvvvzk = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
vvvvvzk(add_php_allowadd_vvvvvzk);
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvzl function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_php_allowedit').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_allowedit_vvvvvzl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
vvvvvzl(add_php_allowedit_vvvvvzl);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_allowedit',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_allowedit_vvvvvzl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
vvvvvzl(add_php_allowedit_vvvvvzl);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_before_cancel listeners for add_php_before_cancel_vvvvvzm function
jQuery('#jform_add_php_before_cancel').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_before_cancel_vvvvvzm = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
vvvvvzm(add_php_before_cancel_vvvvvzm);
});
jQuery('#adminForm').on('change', '#jform_add_php_before_cancel',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_before_cancel_vvvvvzm = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
vvvvvzm(add_php_before_cancel_vvvvvzm);
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_after_cancel listeners for add_php_after_cancel_vvvvvzn function
jQuery('#jform_add_php_after_cancel').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_after_cancel_vvvvvzn = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
vvvvvzn(add_php_after_cancel_vvvvvzn);
});
jQuery('#adminForm').on('change', '#jform_add_php_after_cancel',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_after_cancel_vvvvvzn = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
vvvvvzn(add_php_after_cancel_vvvvvzn);
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvzo function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_php_batchcopy').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_batchcopy_vvvvvzo = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
vvvvvzo(add_php_batchcopy_vvvvvzo);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_batchcopy',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_batchcopy_vvvvvzo = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
vvvvvzo(add_php_batchcopy_vvvvvzo);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvzp function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_php_batchmove').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_batchmove_vvvvvzp = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
vvvvvzp(add_php_batchmove_vvvvvzp);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_batchmove',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_batchmove_vvvvvzp = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
vvvvvzp(add_php_batchmove_vvvvvzp);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvzq function
jQuery('#jform_add_php_before_publish').on('keyup',function()
2016-01-30 20:28:43 +00:00
{
2019-12-03 02:17:35 +00:00
var add_php_before_publish_vvvvvzq = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
vvvvvzq(add_php_before_publish_vvvvvzq);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_before_publish',function (e)
2016-01-30 20:28:43 +00:00
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_before_publish_vvvvvzq = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
vvvvvzq(add_php_before_publish_vvvvvzq);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvzr function
jQuery('#jform_add_php_after_publish').on('keyup',function()
2016-01-30 20:28:43 +00:00
{
2019-12-03 02:17:35 +00:00
var add_php_after_publish_vvvvvzr = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
vvvvvzr(add_php_after_publish_vvvvvzr);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_after_publish',function (e)
2016-01-30 20:28:43 +00:00
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_after_publish_vvvvvzr = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
vvvvvzr(add_php_after_publish_vvvvvzr);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvzs function
jQuery('#jform_add_php_before_delete').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_php_before_delete_vvvvvzs = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
vvvvvzs(add_php_before_delete_vvvvvzs);
});
jQuery('#adminForm').on('change', '#jform_add_php_before_delete',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_before_delete_vvvvvzs = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
vvvvvzs(add_php_before_delete_vvvvvzs);
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvzt function
jQuery('#jform_add_php_after_delete').on('keyup',function()
2016-01-30 20:28:43 +00:00
{
2019-12-03 02:17:35 +00:00
var add_php_after_delete_vvvvvzt = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
vvvvvzt(add_php_after_delete_vvvvvzt);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_after_delete',function (e)
2016-01-30 20:28:43 +00:00
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_after_delete_vvvvvzt = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
vvvvvzt(add_php_after_delete_vvvvvzt);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_php_document listeners for add_php_document_vvvvvzu function
jQuery('#jform_add_php_document').on('keyup',function()
2016-01-30 20:28:43 +00:00
{
2019-12-03 02:17:35 +00:00
var add_php_document_vvvvvzu = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvzu(add_php_document_vvvvvzu);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_document',function (e)
2016-01-30 20:28:43 +00:00
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_php_document_vvvvvzu = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvzu(add_php_document_vvvvvzu);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_sql listeners for add_sql_vvvvvzv function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_sql').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_sql_vvvvvzv = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzv(add_sql_vvvvvzv);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_sql_vvvvvzv = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzv(add_sql_vvvvvzv);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_source listeners for source_vvvvvzw function
2016-01-30 20:28:43 +00:00
jQuery('#jform_source').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_source',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_add_sql listeners for add_sql_vvvvvzw function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_sql').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw);
2016-01-30 20:28:43 +00:00
});
2019-12-03 02:17:35 +00:00
// #jform_source listeners for source_vvvvvzy function
jQuery('#jform_source').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy);
});
jQuery('#adminForm').on('change', '#jform_source',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy);
});
2019-12-03 02:17:35 +00:00
// #jform_add_sql listeners for add_sql_vvvvvzy function
jQuery('#jform_add_sql').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy);
});
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy);
});
2019-12-03 02:17:35 +00:00
// #jform_add_custom_import listeners for add_custom_import_vvvvwaa function
jQuery('#jform_add_custom_import').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_custom_import_vvvvwaa = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvwaa(add_custom_import_vvvvwaa);
});
jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_custom_import_vvvvwaa = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvwaa(add_custom_import_vvvvwaa);
});
2019-12-03 02:17:35 +00:00
// #jform_add_custom_import listeners for add_custom_import_vvvvwab function
jQuery('#jform_add_custom_import').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_custom_import_vvvvwab = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvwab(add_custom_import_vvvvwab);
});
jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_custom_import_vvvvwab = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvwab(add_custom_import_vvvvwab);
});
2019-12-03 02:17:35 +00:00
// #jform_add_custom_button listeners for add_custom_button_vvvvwac function
jQuery('#jform_add_custom_button').on('keyup',function()
{
2019-12-03 02:17:35 +00:00
var add_custom_button_vvvvwac = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvwac(add_custom_button_vvvvwac);
});
jQuery('#adminForm').on('change', '#jform_add_custom_button',function (e)
{
e.preventDefault();
2019-12-03 02:17:35 +00:00
var add_custom_button_vvvvwac = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvwac(add_custom_button_vvvvwac);
2016-01-30 20:28:43 +00:00
});
<?php $numberAddtables = range(0, count( (array) $this->item->addtables) + 3, 1);?>
// for the values already set
jQuery(document).ready(function(){
<?php foreach($numberAddtables as $fieldNr): ?>
jQuery('#adminForm').on('change', '#jform_addtables__addtables<?php echo $fieldNr ?>__table',function (e) {
2016-01-30 20:28:43 +00:00
e.preventDefault();
getTableColumns(<?php echo $fieldNr ?>, "_", "_");
2016-01-30 20:28:43 +00:00
});
<?php endforeach; ?>
jQuery(document).on('subform-row-add', function(event, row){
var groupName = jQuery(row).data('group');
var fieldName = groupName.replace(/([0-9])/g, '');
var fieldNr = groupName.replace(/([A-z_])/g, '');
if ('addtables' === fieldName) {
jQuery('#adminForm').on('change', '#jform_addtables_addtables'+fieldNr+'_table',function (e) {
e.preventDefault();
getTableColumns(fieldNr, "", "");
});
}
2016-01-30 20:28:43 +00:00
});
});
// #jform_add_custom_import listeners
jQuery('#jform_add_custom_import').on('change',function() {
var valueSwitch = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
getDynamicScripts(valueSwitch);
});
<?php
$app = JFactory::getApplication();
?>
function JRouter(link) {
<?php
if ($app->isClient('site'))
{
echo 'var url = "'.JURI::root().'";';
}
else
{
echo 'var url = "";';
}
?>
return url+link;
}
// nice little dot trick :)
jQuery(document).ready( function($) {
var x=0;
setInterval(function() {
var dots = "";
x++;
for (var y=0; y < x%8; y++) {
dots+=".";
}
$(".loading-dots").text(dots);
} , 500);
});
jQuery(document).ready(function(){
jQuery(document).on('subform-row-add', function(event, row){
getIconImage(jQuery(row).find('.icomoon342'));
});
});
function getIconImage(field) {
// get the ID
var id = jQuery(field).attr('id');
// remove old one
jQuery('#image_'+id).remove();
// get value
var value = jQuery('#'+id).val();
// build new one
var span = '<span id="image_'+id+'" class="icon-'+value+'" style="position: absolute; top: 8px; right: -20px;"></span>';
// add the icon
jQuery('#'+id+'_chzn').append(span);
}
2016-01-30 20:28:43 +00:00
</script>