2016-01-30 20:28:43 +00:00
|
|
|
<?php
|
|
|
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
|
|
|
__ __ _ _____ _ _ __ __ _ _ _
|
|
|
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
|
|
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
|
|
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
|
|
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
|
|
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
|
|
|
| |
|
|
|
|
|_|
|
|
|
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
|
|
|
2016-02-19 09:21:44 +00:00
|
|
|
@version 2.1.0
|
2016-02-26 00:20:09 +00:00
|
|
|
@build 26th February, 2016
|
2016-01-30 20:28:43 +00:00
|
|
|
@created 30th April, 2015
|
|
|
|
@package Component Builder
|
|
|
|
@subpackage edit.php
|
|
|
|
@author Llewellyn van der Merwe <https://www.vdm.io/joomla-component-builder>
|
|
|
|
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
|
|
@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');
|
|
|
|
?>
|
|
|
|
|
|
|
|
<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', 'scripts', JText::_('COM_COMPONENTBUILDER_COMPONENT_SCRIPTS', true)); ?>
|
|
|
|
<div class="row-fluid form-horizontal-desktop">
|
|
|
|
</div>
|
|
|
|
<div class="row-fluid form-horizontal-desktop">
|
|
|
|
<div class="span12">
|
|
|
|
<?php echo JLayoutHelper::render('component.scripts_fullwidth', $this); ?>
|
|
|
|
</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'); ?>
|
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
<?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'); ?>
|
2016-02-15 08:37:21 +00:00
|
|
|
<?php endif; ?>
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
<?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'); ?>
|
2016-02-15 08:37:21 +00:00
|
|
|
<?php endif; ?>
|
2016-01-30 20:28:43 +00:00
|
|
|
|
2016-02-15 08:37:21 +00:00
|
|
|
<?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'); ?>
|
2016-02-15 08:37:21 +00:00
|
|
|
<?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>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// #jform_add_php_helper_admin listeners for add_php_helper_admin_uAZCUXc function
|
2016-01-30 20:28:43 +00:00
|
|
|
jQuery('#jform_add_php_helper_admin').on('keyup',function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_helper_admin_uAZCUXc = jQuery("#jform_add_php_helper_admin input[type='radio']:checked").val();
|
|
|
|
uAZCUXc(add_php_helper_admin_uAZCUXc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_add_php_helper_admin',function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_helper_admin_uAZCUXc = jQuery("#jform_add_php_helper_admin input[type='radio']:checked").val();
|
|
|
|
uAZCUXc(add_php_helper_admin_uAZCUXc);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// #jform_add_php_helper_site listeners for add_php_helper_site_IueMSvZ function
|
2016-01-30 20:28:43 +00:00
|
|
|
jQuery('#jform_add_php_helper_site').on('keyup',function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_helper_site_IueMSvZ = jQuery("#jform_add_php_helper_site input[type='radio']:checked").val();
|
|
|
|
IueMSvZ(add_php_helper_site_IueMSvZ);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_add_php_helper_site',function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_helper_site_IueMSvZ = jQuery("#jform_add_php_helper_site input[type='radio']:checked").val();
|
|
|
|
IueMSvZ(add_php_helper_site_IueMSvZ);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// #jform_add_css listeners for add_css_GHPwgxy function
|
2016-01-30 20:28:43 +00:00
|
|
|
jQuery('#jform_add_css').on('keyup',function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_css_GHPwgxy = jQuery("#jform_add_css input[type='radio']:checked").val();
|
|
|
|
GHPwgxy(add_css_GHPwgxy);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_add_css',function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_css_GHPwgxy = jQuery("#jform_add_css input[type='radio']:checked").val();
|
|
|
|
GHPwgxy(add_css_GHPwgxy);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// #jform_add_sql listeners for add_sql_XrjWNfT function
|
2016-01-30 20:28:43 +00:00
|
|
|
jQuery('#jform_add_sql').on('keyup',function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_sql_XrjWNfT = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
|
|
|
XrjWNfT(add_sql_XrjWNfT);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_sql_XrjWNfT = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
|
|
|
XrjWNfT(add_sql_XrjWNfT);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// #jform_emptycontributors listeners for emptycontributors_akTeWGI function
|
2016-01-30 20:28:43 +00:00
|
|
|
jQuery('#jform_emptycontributors').on('keyup',function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var emptycontributors_akTeWGI = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
|
|
|
|
akTeWGI(emptycontributors_akTeWGI);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_emptycontributors',function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
2016-02-26 00:20:09 +00:00
|
|
|
var emptycontributors_akTeWGI = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
|
|
|
|
akTeWGI(emptycontributors_akTeWGI);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// #jform_add_license listeners for add_license_WJrqjYj function
|
2016-01-30 20:28:43 +00:00
|
|
|
jQuery('#jform_add_license').on('keyup',function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_license_WJrqjYj = jQuery("#jform_add_license input[type='radio']:checked").val();
|
|
|
|
WJrqjYj(add_license_WJrqjYj);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_add_license',function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_license_WJrqjYj = jQuery("#jform_add_license input[type='radio']:checked").val();
|
|
|
|
WJrqjYj(add_license_WJrqjYj);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// #jform_add_admin_event listeners for add_admin_event_eBzTyLa function
|
2016-01-30 20:28:43 +00:00
|
|
|
jQuery('#jform_add_admin_event').on('keyup',function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_admin_event_eBzTyLa = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
|
|
|
|
eBzTyLa(add_admin_event_eBzTyLa);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_add_admin_event',function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_admin_event_eBzTyLa = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
|
|
|
|
eBzTyLa(add_admin_event_eBzTyLa);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// #jform_add_site_event listeners for add_site_event_pkIOkPB function
|
2016-01-30 20:28:43 +00:00
|
|
|
jQuery('#jform_add_site_event').on('keyup',function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_site_event_pkIOkPB = jQuery("#jform_add_site_event input[type='radio']:checked").val();
|
|
|
|
pkIOkPB(add_site_event_pkIOkPB);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_add_site_event',function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_site_event_pkIOkPB = jQuery("#jform_add_site_event input[type='radio']:checked").val();
|
|
|
|
pkIOkPB(add_site_event_pkIOkPB);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// #jform_addreadme listeners for addreadme_WGUjdei function
|
2016-01-30 20:28:43 +00:00
|
|
|
jQuery('#jform_addreadme').on('keyup',function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var addreadme_WGUjdei = jQuery("#jform_addreadme input[type='radio']:checked").val();
|
|
|
|
WGUjdei(addreadme_WGUjdei);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_addreadme',function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
2016-02-26 00:20:09 +00:00
|
|
|
var addreadme_WGUjdei = jQuery("#jform_addreadme input[type='radio']:checked").val();
|
|
|
|
WGUjdei(addreadme_WGUjdei);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// #jform_add_license listeners for add_license_QKHpIgW function
|
2016-01-30 20:28:43 +00:00
|
|
|
jQuery('#jform_add_license').on('keyup',function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_license_QKHpIgW = jQuery("#jform_add_license input[type='radio']:checked").val();
|
|
|
|
QKHpIgW(add_license_QKHpIgW);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_add_license',function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_license_QKHpIgW = jQuery("#jform_add_license input[type='radio']:checked").val();
|
|
|
|
QKHpIgW(add_license_QKHpIgW);
|
2016-02-19 09:21:44 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
2016-02-26 00:20:09 +00:00
|
|
|
// #jform_add_php_dashboard_methods listeners for add_php_dashboard_methods_CBwMLzo function
|
2016-02-19 09:21:44 +00:00
|
|
|
jQuery('#jform_add_php_dashboard_methods').on('keyup',function()
|
|
|
|
{
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_dashboard_methods_CBwMLzo = jQuery("#jform_add_php_dashboard_methods input[type='radio']:checked").val();
|
|
|
|
CBwMLzo(add_php_dashboard_methods_CBwMLzo);
|
2016-02-19 09:21:44 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
jQuery('#adminForm').on('change', '#jform_add_php_dashboard_methods',function (e)
|
|
|
|
{
|
|
|
|
e.preventDefault();
|
2016-02-26 00:20:09 +00:00
|
|
|
var add_php_dashboard_methods_CBwMLzo = jQuery("#jform_add_php_dashboard_methods input[type='radio']:checked").val();
|
|
|
|
CBwMLzo(add_php_dashboard_methods_CBwMLzo);
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php $fieldNrs = range(1,10,1); ?>
|
|
|
|
<?php foreach($fieldNrs as $nr): ?>jQuery('body').on('change', 'select[name="icomoon-<?php echo $nr; ?>"]',function (e) {
|
|
|
|
// update the icon if changed
|
|
|
|
var val_<?php echo $nr; ?> = jQuery('select[name="icomoon-<?php echo $nr; ?>"] option:selected').val();
|
|
|
|
var key_<?php echo $nr; ?> = jQuery('select[name="icomoon-<?php echo $nr; ?>"]').attr('id').split('-');
|
|
|
|
var target_<?php echo $nr; ?> = key_<?php echo $nr; ?>[0]+'_'+key_<?php echo $nr; ?>[1]+'_chzn';
|
|
|
|
var div_<?php echo $nr; ?> = jQuery('#'+target_<?php echo $nr; ?>);
|
|
|
|
// build new span
|
|
|
|
var span = '<span id="icon_'+target_<?php echo $nr; ?>+'" class="icon-'+val_<?php echo $nr; ?>+'"></span>';
|
|
|
|
// remove old one
|
|
|
|
jQuery('#icon_'+target_<?php echo $nr; ?>).remove();
|
|
|
|
// add the new icon
|
|
|
|
div_<?php echo $nr; ?>.closest("td").append(span);
|
|
|
|
});
|
|
|
|
|
|
|
|
jQuery(document).ready(function() {
|
|
|
|
// get type value
|
|
|
|
var val_<?php echo $nr; ?> = jQuery('select[name="icomoon-<?php echo $nr; ?>"] option:selected').val();
|
|
|
|
var key_<?php echo $nr; ?> = jQuery('select[name="icomoon-<?php echo $nr; ?>"]').attr('id').split('-');
|
|
|
|
var target_<?php echo $nr; ?> = key_<?php echo $nr; ?>[0]+'_'+key_<?php echo $nr; ?>[1]+'_chzn';
|
|
|
|
var div_<?php echo $nr; ?> = jQuery('#'+target_<?php echo $nr; ?>);
|
|
|
|
// build new span
|
|
|
|
var span = '<span id="icon_'+target_<?php echo $nr; ?>+'" class="icon-'+val_<?php echo $nr; ?>+'"></span>';
|
|
|
|
// remove old one
|
|
|
|
jQuery('#icon_'+target_<?php echo $nr; ?>).remove();
|
|
|
|
// add the new icon
|
|
|
|
div_<?php echo $nr; ?>.closest("td").append(span);
|
|
|
|
});
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</script>
|