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

716 lines
29 KiB
PHP
Raw Normal View History

2016-01-30 20:28:43 +00:00
<?php
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.6
@build 12th January, 2017
2016-01-30 20:28:43 +00:00
@created 30th April, 2015
@package Component Builder
@subpackage edit.php
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
2016-01-30 20:28:43 +00:00
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// 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 = JComponentHelper::getParams('com_componentbuilder');
?>
<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;">
2016-01-30 20:28:43 +00:00
<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">
<?php echo JLayoutHelper::render('component.details_above', $this); ?><div class="form-horizontal">
<?php echo JHtml::_('bootstrap.startTabSet', 'componentTab', array('active' => 'details')); ?>
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'details', JText::_('COM_COMPONENTBUILDER_COMPONENT_DETAILS', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span6">
<?php echo JLayoutHelper::render('component.details_left', $this); ?>
</div>
<div class="span6">
<?php echo JLayoutHelper::render('component.details_right', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'settings', JText::_('COM_COMPONENTBUILDER_COMPONENT_SETTINGS', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span6">
<?php echo JLayoutHelper::render('component.settings_left', $this); ?>
</div>
<div class="span6">
<?php echo JLayoutHelper::render('component.settings_right', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'libs_helpers', JText::_('COM_COMPONENTBUILDER_COMPONENT_LIBS_HELPERS', 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('component.libs_helpers_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'php', JText::_('COM_COMPONENTBUILDER_COMPONENT_PHP', true)); ?>
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('component.php_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'mysql', JText::_('COM_COMPONENTBUILDER_COMPONENT_MYSQL', true)); ?>
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('component.mysql_fullwidth', $this); ?>
2016-01-30 20:28:43 +00:00
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'readme', JText::_('COM_COMPONENTBUILDER_COMPONENT_README', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span6">
<?php echo JLayoutHelper::render('component.readme_left', $this); ?>
</div>
<div class="span6">
<?php echo JLayoutHelper::render('component.readme_right', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php if ($this->canDo->get('admin_view.access')) : ?>
2016-01-30 20:28:43 +00:00
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'admin_views', JText::_('COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS', true)); ?>
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('component.admin_views_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>
2016-01-30 20:28:43 +00:00
<?php if ($this->canDo->get('custom_admin_view.access')) : ?>
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'custom_admin_views', JText::_('COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS', true)); ?>
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('component.custom_admin_views_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>
<?php if ($this->canDo->get('site_view.access')) : ?>
2016-01-30 20:28:43 +00:00
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'site_views', JText::_('COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS', true)); ?>
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('component.site_views_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>
2016-01-30 20:28:43 +00:00
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'dynamic_integration', JText::_('COM_COMPONENTBUILDER_COMPONENT_DYNAMIC_INTEGRATION', true)); ?>
2016-03-04 20:58:05 +00:00
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('component.dynamic_integration_fullwidth', $this); ?>
2016-03-04 20:58:05 +00:00
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'dynamic_build_beta', JText::_('COM_COMPONENTBUILDER_COMPONENT_DYNAMIC_BUILD_BETA', true)); ?>
<div class="row-fluid form-horizontal-desktop">
</div>
<div class="row-fluid form-horizontal-desktop">
<div class="span12">
<?php echo JLayoutHelper::render('component.dynamic_build_beta_fullwidth', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php if ($this->canDo->get('core.delete') || $this->canDo->get('core.edit.created_by') || $this->canDo->get('core.edit.state') || $this->canDo->get('core.edit.created')) : ?>
2016-01-30 20:28:43 +00:00
<?php echo JHtml::_('bootstrap.addTab', 'componentTab', 'publishing', JText::_('COM_COMPONENTBUILDER_COMPONENT_PUBLISHING', true)); ?>
<div class="row-fluid form-horizontal-desktop">
<div class="span6">
<?php echo JLayoutHelper::render('component.publishing', $this); ?>
</div>
<div class="span6">
<?php echo JLayoutHelper::render('component.publlshing', $this); ?>
</div>
</div>
<?php echo JHtml::_('bootstrap.endTab'); ?>
<?php endif; ?>
2016-01-30 20:28:43 +00:00
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
<div>
<input type="hidden" name="task" value="component.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</div>
<div class="clearfix"></div>
<?php echo JLayoutHelper::render('component.details_under', $this); ?>
</form>
</div>
2016-01-30 20:28:43 +00:00
<script type="text/javascript">
// #jform_add_php_helper_admin listeners for add_php_helper_admin_vvvvvvv function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_php_helper_admin').on('keyup',function()
{
var add_php_helper_admin_vvvvvvv = jQuery("#jform_add_php_helper_admin input[type='radio']:checked").val();
vvvvvvv(add_php_helper_admin_vvvvvvv);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_helper_admin',function (e)
{
e.preventDefault();
var add_php_helper_admin_vvvvvvv = jQuery("#jform_add_php_helper_admin input[type='radio']:checked").val();
vvvvvvv(add_php_helper_admin_vvvvvvv);
2016-01-30 20:28:43 +00:00
});
// #jform_add_php_helper_site listeners for add_php_helper_site_vvvvvvw function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_php_helper_site').on('keyup',function()
{
var add_php_helper_site_vvvvvvw = jQuery("#jform_add_php_helper_site input[type='radio']:checked").val();
vvvvvvw(add_php_helper_site_vvvvvvw);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_php_helper_site',function (e)
{
e.preventDefault();
var add_php_helper_site_vvvvvvw = jQuery("#jform_add_php_helper_site input[type='radio']:checked").val();
vvvvvvw(add_php_helper_site_vvvvvvw);
2016-01-30 20:28:43 +00:00
});
// #jform_add_php_helper_both listeners for add_php_helper_both_vvvvvvx function
jQuery('#jform_add_php_helper_both').on('keyup',function()
{
var add_php_helper_both_vvvvvvx = jQuery("#jform_add_php_helper_both input[type='radio']:checked").val();
vvvvvvx(add_php_helper_both_vvvvvvx);
});
jQuery('#adminForm').on('change', '#jform_add_php_helper_both',function (e)
{
e.preventDefault();
var add_php_helper_both_vvvvvvx = jQuery("#jform_add_php_helper_both input[type='radio']:checked").val();
vvvvvvx(add_php_helper_both_vvvvvvx);
});
// #jform_add_css listeners for add_css_vvvvvvy function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_css').on('keyup',function()
{
var add_css_vvvvvvy = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvvy(add_css_vvvvvvy);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_css',function (e)
{
e.preventDefault();
var add_css_vvvvvvy = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvvy(add_css_vvvvvvy);
2016-01-30 20:28:43 +00:00
});
// #jform_add_sql listeners for add_sql_vvvvvvz function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_sql').on('keyup',function()
{
var add_sql_vvvvvvz = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvvz(add_sql_vvvvvvz);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
{
e.preventDefault();
var add_sql_vvvvvvz = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvvz(add_sql_vvvvvvz);
2016-01-30 20:28:43 +00:00
});
// #jform_emptycontributors listeners for emptycontributors_vvvvvwa function
2016-01-30 20:28:43 +00:00
jQuery('#jform_emptycontributors').on('keyup',function()
{
var emptycontributors_vvvvvwa = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
vvvvvwa(emptycontributors_vvvvvwa);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_emptycontributors',function (e)
{
e.preventDefault();
var emptycontributors_vvvvvwa = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
vvvvvwa(emptycontributors_vvvvvwa);
2016-01-30 20:28:43 +00:00
});
// #jform_add_license listeners for add_license_vvvvvwb function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_license').on('keyup',function()
{
var add_license_vvvvvwb = jQuery("#jform_add_license input[type='radio']:checked").val();
vvvvvwb(add_license_vvvvvwb);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_license',function (e)
{
e.preventDefault();
var add_license_vvvvvwb = jQuery("#jform_add_license input[type='radio']:checked").val();
vvvvvwb(add_license_vvvvvwb);
2016-01-30 20:28:43 +00:00
});
// #jform_add_admin_event listeners for add_admin_event_vvvvvwc function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_admin_event').on('keyup',function()
{
var add_admin_event_vvvvvwc = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
vvvvvwc(add_admin_event_vvvvvwc);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_admin_event',function (e)
{
e.preventDefault();
var add_admin_event_vvvvvwc = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
vvvvvwc(add_admin_event_vvvvvwc);
2016-01-30 20:28:43 +00:00
});
// #jform_add_site_event listeners for add_site_event_vvvvvwd function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_site_event').on('keyup',function()
{
var add_site_event_vvvvvwd = jQuery("#jform_add_site_event input[type='radio']:checked").val();
vvvvvwd(add_site_event_vvvvvwd);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_site_event',function (e)
{
e.preventDefault();
var add_site_event_vvvvvwd = jQuery("#jform_add_site_event input[type='radio']:checked").val();
vvvvvwd(add_site_event_vvvvvwd);
2016-01-30 20:28:43 +00:00
});
// #jform_addreadme listeners for addreadme_vvvvvwe function
2016-01-30 20:28:43 +00:00
jQuery('#jform_addreadme').on('keyup',function()
{
var addreadme_vvvvvwe = jQuery("#jform_addreadme input[type='radio']:checked").val();
vvvvvwe(addreadme_vvvvvwe);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_addreadme',function (e)
{
e.preventDefault();
var addreadme_vvvvvwe = jQuery("#jform_addreadme input[type='radio']:checked").val();
vvvvvwe(addreadme_vvvvvwe);
2016-01-30 20:28:43 +00:00
});
// #jform_add_update_server listeners for add_update_server_vvvvvwf function
2016-03-04 20:58:05 +00:00
jQuery('#jform_add_update_server').on('keyup',function()
{
var add_update_server_vvvvvwf = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwf(add_update_server_vvvvvwf);
2016-03-04 20:58:05 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
{
e.preventDefault();
var add_update_server_vvvvvwf = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwf(add_update_server_vvvvvwf);
2016-03-04 20:58:05 +00:00
});
// #jform_add_sales_server listeners for add_sales_server_vvvvvwg function
2016-03-04 20:58:05 +00:00
jQuery('#jform_add_sales_server').on('keyup',function()
{
var add_sales_server_vvvvvwg = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
vvvvvwg(add_sales_server_vvvvvwg);
2016-03-04 20:58:05 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_sales_server',function (e)
{
e.preventDefault();
var add_sales_server_vvvvvwg = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
vvvvvwg(add_sales_server_vvvvvwg);
2016-03-04 20:58:05 +00:00
});
// #jform_add_license listeners for add_license_vvvvvwh function
2016-01-30 20:28:43 +00:00
jQuery('#jform_add_license').on('keyup',function()
{
var add_license_vvvvvwh = jQuery("#jform_add_license input[type='radio']:checked").val();
vvvvvwh(add_license_vvvvvwh);
2016-01-30 20:28:43 +00:00
});
jQuery('#adminForm').on('change', '#jform_add_license',function (e)
{
e.preventDefault();
var add_license_vvvvvwh = jQuery("#jform_add_license input[type='radio']:checked").val();
vvvvvwh(add_license_vvvvvwh);
});
// #jform_add_php_dashboard_methods listeners for add_php_dashboard_methods_vvvvvwi function
jQuery('#jform_add_php_dashboard_methods').on('keyup',function()
{
var add_php_dashboard_methods_vvvvvwi = jQuery("#jform_add_php_dashboard_methods input[type='radio']:checked").val();
vvvvvwi(add_php_dashboard_methods_vvvvvwi);
});
jQuery('#adminForm').on('change', '#jform_add_php_dashboard_methods',function (e)
{
e.preventDefault();
var add_php_dashboard_methods_vvvvvwi = jQuery("#jform_add_php_dashboard_methods input[type='radio']:checked").val();
vvvvvwi(add_php_dashboard_methods_vvvvvwi);
2016-01-30 20:28:43 +00:00
});
// #jform_add_php_postflight_install listeners for add_php_postflight_install_vvvvvwj function
jQuery('#jform_add_php_postflight_install').on('keyup',function()
{
var add_php_postflight_install_vvvvvwj = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
vvvvvwj(add_php_postflight_install_vvvvvwj);
});
jQuery('#adminForm').on('change', '#jform_add_php_postflight_install',function (e)
{
e.preventDefault();
var add_php_postflight_install_vvvvvwj = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
vvvvvwj(add_php_postflight_install_vvvvvwj);
});
// #jform_add_php_postflight_update listeners for add_php_postflight_update_vvvvvwk function
jQuery('#jform_add_php_postflight_update').on('keyup',function()
{
var add_php_postflight_update_vvvvvwk = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
vvvvvwk(add_php_postflight_update_vvvvvwk);
});
jQuery('#adminForm').on('change', '#jform_add_php_postflight_update',function (e)
{
e.preventDefault();
var add_php_postflight_update_vvvvvwk = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
vvvvvwk(add_php_postflight_update_vvvvvwk);
});
// #jform_add_php_method_uninstall listeners for add_php_method_uninstall_vvvvvwl function
jQuery('#jform_add_php_method_uninstall').on('keyup',function()
{
var add_php_method_uninstall_vvvvvwl = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
vvvvvwl(add_php_method_uninstall_vvvvvwl);
});
jQuery('#adminForm').on('change', '#jform_add_php_method_uninstall',function (e)
{
e.preventDefault();
var add_php_method_uninstall_vvvvvwl = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
vvvvvwl(add_php_method_uninstall_vvvvvwl);
});
// #jform_add_php_preflight_install listeners for add_php_preflight_install_vvvvvwm function
jQuery('#jform_add_php_preflight_install').on('keyup',function()
{
var add_php_preflight_install_vvvvvwm = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
vvvvvwm(add_php_preflight_install_vvvvvwm);
});
jQuery('#adminForm').on('change', '#jform_add_php_preflight_install',function (e)
{
e.preventDefault();
var add_php_preflight_install_vvvvvwm = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
vvvvvwm(add_php_preflight_install_vvvvvwm);
});
// #jform_add_php_preflight_update listeners for add_php_preflight_update_vvvvvwn function
jQuery('#jform_add_php_preflight_update').on('keyup',function()
{
var add_php_preflight_update_vvvvvwn = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
vvvvvwn(add_php_preflight_update_vvvvvwn);
});
jQuery('#adminForm').on('change', '#jform_add_php_preflight_update',function (e)
{
e.preventDefault();
var add_php_preflight_update_vvvvvwn = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
vvvvvwn(add_php_preflight_update_vvvvvwn);
});
// #jform_update_server_target listeners for update_server_target_vvvvvwo function
jQuery('#jform_update_server_target').on('keyup',function()
{
var update_server_target_vvvvvwo = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwo = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwo(update_server_target_vvvvvwo,add_update_server_vvvvvwo);
});
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
{
e.preventDefault();
var update_server_target_vvvvvwo = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwo = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwo(update_server_target_vvvvvwo,add_update_server_vvvvvwo);
});
// #jform_add_update_server listeners for add_update_server_vvvvvwo function
jQuery('#jform_add_update_server').on('keyup',function()
{
var update_server_target_vvvvvwo = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwo = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwo(update_server_target_vvvvvwo,add_update_server_vvvvvwo);
});
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
{
e.preventDefault();
var update_server_target_vvvvvwo = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwo = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwo(update_server_target_vvvvvwo,add_update_server_vvvvvwo);
});
// #jform_add_update_server listeners for add_update_server_vvvvvwp function
jQuery('#jform_add_update_server').on('keyup',function()
{
var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
var update_server_target_vvvvvwp = jQuery("#jform_update_server_target input[type='radio']:checked").val();
vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp);
});
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
{
e.preventDefault();
var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
var update_server_target_vvvvvwp = jQuery("#jform_update_server_target input[type='radio']:checked").val();
vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp);
});
// #jform_update_server_target listeners for update_server_target_vvvvvwp function
jQuery('#jform_update_server_target').on('keyup',function()
{
var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
var update_server_target_vvvvvwp = jQuery("#jform_update_server_target input[type='radio']:checked").val();
vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp);
});
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
{
e.preventDefault();
var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
var update_server_target_vvvvvwp = jQuery("#jform_update_server_target input[type='radio']:checked").val();
vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp);
});
// #jform_update_server_target listeners for update_server_target_vvvvvwq function
jQuery('#jform_update_server_target').on('keyup',function()
{
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq);
});
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
{
e.preventDefault();
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq);
});
// #jform_add_update_server listeners for add_update_server_vvvvvwq function
jQuery('#jform_add_update_server').on('keyup',function()
{
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq);
});
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
{
e.preventDefault();
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq);
});
// #jform_update_server_target listeners for update_server_target_vvvvvws function
jQuery('#jform_update_server_target').on('keyup',function()
{
var update_server_target_vvvvvws = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvws = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws);
});
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
{
e.preventDefault();
var update_server_target_vvvvvws = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvws = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws);
});
// #jform_add_update_server listeners for add_update_server_vvvvvws function
jQuery('#jform_add_update_server').on('keyup',function()
{
var update_server_target_vvvvvws = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvws = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws);
});
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
{
e.preventDefault();
var update_server_target_vvvvvws = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvws = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws);
});
// #jform_add_update_server listeners for add_update_server_vvvvvwu function
jQuery('#jform_add_update_server').on('keyup',function()
{
var add_update_server_vvvvvwu = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwu(add_update_server_vvvvvwu);
});
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
{
e.preventDefault();
var add_update_server_vvvvvwu = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwu(add_update_server_vvvvvwu);
});
// #jform_buildcomp listeners for buildcomp_vvvvvwv function
jQuery('#jform_buildcomp').on('keyup',function()
{
var buildcomp_vvvvvwv = jQuery("#jform_buildcomp input[type='radio']:checked").val();
vvvvvwv(buildcomp_vvvvvwv);
});
jQuery('#adminForm').on('change', '#jform_buildcomp',function (e)
{
e.preventDefault();
var buildcomp_vvvvvwv = jQuery("#jform_buildcomp input[type='radio']:checked").val();
vvvvvwv(buildcomp_vvvvvwv);
});
2016-01-30 20:28:43 +00:00
<?php $fieldNrs = range(1,50,1); ?>
<?php foreach($fieldNrs as $nr): ?>jQuery('#jform_addadmin_views_modal').on('change', 'select[name="icomoon-<?php echo $nr; ?>"]',function (e) {
2016-01-30 20:28:43 +00:00
// update the icon if changed
var vala_<?php echo $nr; ?> = jQuery('select[name="icomoon-<?php echo $nr; ?>"] option:selected').val();
2016-01-30 20:28:43 +00:00
// build new span
var span = '<span id="icon_addadmin_views_fields_icomoon_<?php echo $nr; ?>" class="icon-'+vala_<?php echo $nr; ?>+'"></span>';
2016-01-30 20:28:43 +00:00
// remove old one
jQuery('#icon_addadmin_views_fields_icomoon_<?php echo $nr; ?>').remove();
2016-01-30 20:28:43 +00:00
// add the new icon
jQuery('#jform_addadmin_views_fields_icomoon_<?php echo $nr; ?>_chzn').closest("td").append(span);
2016-01-30 20:28:43 +00:00
});
jQuery(document).ready(function() {
jQuery('input.form-field-repeatable').on('row-add', function (e) {
// show the icon if set
var vala_<?php echo $nr; ?> = jQuery('#jform_addadmin_views_fields_icomoon-<?php echo $nr; ?>').val();
// build new span
var span = '<span id="icon_addadmin_views_fields_icomoon_<?php echo $nr; ?>" class="icon-'+vala_<?php echo $nr; ?>+'"></span>';
// remove old one
jQuery('#icon_addadmin_views_fields_icomoon_<?php echo $nr; ?>').remove();
// add the new icon
jQuery('#jform_addadmin_views_fields_icomoon_<?php echo $nr; ?>_chzn').closest("td").append(span);
});
});
<?php endforeach; ?>
<?php $fieldNrs = range(1,50,1); ?>
<?php foreach($fieldNrs as $nr): ?>jQuery('#jform_addcustom_admin_views_modal').on('change', 'select[name="icomoon-<?php echo $nr; ?>"]',function (e) {
// update the icon if changed
2016-01-30 20:28:43 +00:00
var val_<?php echo $nr; ?> = jQuery('select[name="icomoon-<?php echo $nr; ?>"] option:selected').val();
// build new span
var span = '<span id="icon_addcustom_admin_views_fields_icomoon_<?php echo $nr; ?>" class="icon-'+val_<?php echo $nr; ?>+'"></span>';
2016-01-30 20:28:43 +00:00
// remove old one
jQuery('#icon_addcustom_admin_views_fields_icomoon_<?php echo $nr; ?>').remove();
2016-01-30 20:28:43 +00:00
// add the new icon
jQuery('#jform_addcustom_admin_views_fields_icomoon_<?php echo $nr; ?>_chzn').closest("td").append(span);
});
jQuery(document).ready(function() {
jQuery('input.form-field-repeatable').on('row-add', function (e) {
// show the icon if set
var val_<?php echo $nr; ?> = jQuery('#jform_addcustom_admin_views_fields_icomoon-<?php echo $nr; ?>').val();
// build new span
var span = '<span id="icon_addcustom_admin_views_fields_icomoon_<?php echo $nr; ?>" class="icon-'+val_<?php echo $nr; ?>+'"></span>';
// remove old one
jQuery('#icon_addcustom_admin_views_fields_icomoon_<?php echo $nr; ?>').remove();
// add the new icon
jQuery('#jform_addcustom_admin_views_fields_icomoon_<?php echo $nr; ?>_chzn').closest("td").append(span);
});
2016-01-30 20:28:43 +00:00
});
<?php endforeach; ?>
</script>