diff --git a/README.md b/README.md
index 619502b33..eebc011f2 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,15 @@
# Joomla Component Builder (JCB)
[![GitHub release](https://img.shields.io/github/release/vdm-io/Joomla-Component-Builder.svg)](https://github.com/vdm-io/Joomla-Component-Builder/releases) [![Total Downloads](https://img.shields.io/github/downloads/vdm-io/Joomla-Component-Builder/total.svg)](https://github.com/vdm-io/Joomla-Component-Builder/releases)
-This is a [Joomla 3.x](http://www.joomla.org/) component. [__See In Action__](https://youtu.be/1KBBtQUxMTc)
+This is a [Joomla 3.x](https://extensions.joomla.org/extension/component-builder/) component. [__See In Action__](https://youtu.be/1KBBtQUxMTc)
![Component Builder image](https://raw.githubusercontent.com/vdm-io/Joomla-Component-Builder/master/admin/assets/images/vdm-component.jpg "The Component Builder")
-The Component Builder for [Joomla](http://www.joomla.org/) that is highly advanced, truly able to build extremely complex components in a fraction of the time.
+The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) that is highly advanced, truly able to build extremely complex components in a fraction of the time.
-Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
+Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
-You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.5) with **ALL** its features and **ALL** concepts totally open-source and free!
+You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.6) with **ALL** its features and **ALL** concepts totally open-source and free!
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://youtu.be/1KBBtQUxMTc)
@@ -110,12 +110,12 @@ Component Builder is mapped as a component in itself on my local development env
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
+ *First Build*: 30th April, 2015
-+ *Last Build*: 20th September, 2017
-+ *Version*: 2.5.5
++ *Last Build*: 6th October, 2017
++ *Version*: 2.5.6
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
-+ *Line count*: **120417**
-+ *File count*: **698**
++ *Line count*: **120884**
++ *File count*: **702**
+ *Folder count*: **121**
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).
diff --git a/admin/README.txt b/admin/README.txt
index 619502b33..eebc011f2 100644
--- a/admin/README.txt
+++ b/admin/README.txt
@@ -1,15 +1,15 @@
# Joomla Component Builder (JCB)
[![GitHub release](https://img.shields.io/github/release/vdm-io/Joomla-Component-Builder.svg)](https://github.com/vdm-io/Joomla-Component-Builder/releases) [![Total Downloads](https://img.shields.io/github/downloads/vdm-io/Joomla-Component-Builder/total.svg)](https://github.com/vdm-io/Joomla-Component-Builder/releases)
-This is a [Joomla 3.x](http://www.joomla.org/) component. [__See In Action__](https://youtu.be/1KBBtQUxMTc)
+This is a [Joomla 3.x](https://extensions.joomla.org/extension/component-builder/) component. [__See In Action__](https://youtu.be/1KBBtQUxMTc)
![Component Builder image](https://raw.githubusercontent.com/vdm-io/Joomla-Component-Builder/master/admin/assets/images/vdm-component.jpg "The Component Builder")
-The Component Builder for [Joomla](http://www.joomla.org/) that is highly advanced, truly able to build extremely complex components in a fraction of the time.
+The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) that is highly advanced, truly able to build extremely complex components in a fraction of the time.
-Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
+Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
-You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.5) with **ALL** its features and **ALL** concepts totally open-source and free!
+You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.5.6) with **ALL** its features and **ALL** concepts totally open-source and free!
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://youtu.be/1KBBtQUxMTc)
@@ -110,12 +110,12 @@ Component Builder is mapped as a component in itself on my local development env
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
+ *First Build*: 30th April, 2015
-+ *Last Build*: 20th September, 2017
-+ *Version*: 2.5.5
++ *Last Build*: 6th October, 2017
++ *Version*: 2.5.6
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
-+ *Line count*: **120417**
-+ *File count*: **698**
++ *Line count*: **120884**
++ *File count*: **702**
+ *Folder count*: **121**
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).
diff --git a/admin/access.xml b/admin/access.xml
index db355cb1b..cc6bd0863 100644
--- a/admin/access.xml
+++ b/admin/access.xml
@@ -208,6 +208,7 @@
+
@@ -251,6 +252,7 @@
+
@@ -349,76 +351,78 @@
-
-
+
+
-
+
-
+
-
-
-
+
+
+
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
-
+
-
+
+
+
-
+
-
-
+
-
+
+
+
-
-
+
-
+
+
-
+
-
-
+
+
diff --git a/admin/assets/css/admin.css b/admin/assets/css/admin.css
index 2b5513108..f2fba667c 100644
--- a/admin/assets/css/admin.css
+++ b/admin/assets/css/admin.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage admin.css
diff --git a/admin/assets/css/custom_admin_view.css b/admin/assets/css/custom_admin_view.css
index 9e93f7e0c..28bf6fdb1 100644
--- a/admin/assets/css/custom_admin_view.css
+++ b/admin/assets/css/custom_admin_view.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage custom_admin_view.css
diff --git a/admin/assets/css/custom_admin_views.css b/admin/assets/css/custom_admin_views.css
index 632a91216..c1fcdbc4d 100644
--- a/admin/assets/css/custom_admin_views.css
+++ b/admin/assets/css/custom_admin_views.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage custom_admin_views.css
diff --git a/admin/assets/css/custom_code.css b/admin/assets/css/custom_code.css
index 99894a6e6..9412cd741 100644
--- a/admin/assets/css/custom_code.css
+++ b/admin/assets/css/custom_code.css
@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
- @build 26th April, 2017
+ @build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage custom_code.css
diff --git a/admin/assets/css/custom_codes.css b/admin/assets/css/custom_codes.css
index f6ada00b7..9b6860038 100644
--- a/admin/assets/css/custom_codes.css
+++ b/admin/assets/css/custom_codes.css
@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
- @build 26th April, 2017
+ @build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage custom_codes.css
diff --git a/admin/assets/css/dashboard.css b/admin/assets/css/dashboard.css
index 2acb850bc..3017e9999 100644
--- a/admin/assets/css/dashboard.css
+++ b/admin/assets/css/dashboard.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage dashboard.css
diff --git a/admin/assets/css/dynamic_get.css b/admin/assets/css/dynamic_get.css
index bfa2f10ff..f7eba633c 100644
--- a/admin/assets/css/dynamic_get.css
+++ b/admin/assets/css/dynamic_get.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage dynamic_get.css
@@ -24,4 +24,6 @@
/* CSS Document */
-
+.fieldMedium {
+ width: 80px !important;
+}
diff --git a/admin/assets/css/dynamic_gets.css b/admin/assets/css/dynamic_gets.css
index 965549306..2be1ec746 100644
--- a/admin/assets/css/dynamic_gets.css
+++ b/admin/assets/css/dynamic_gets.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage dynamic_gets.css
diff --git a/admin/assets/css/joomla_component.css b/admin/assets/css/joomla_component.css
index a5b620f02..71c18b527 100644
--- a/admin/assets/css/joomla_component.css
+++ b/admin/assets/css/joomla_component.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 378 of this MVC
- @build 18th September, 2017
+ @version @update number 385 of this MVC
+ @build 6th October, 2017
@created 6th May, 2015
@package Component Builder
@subpackage joomla_component.css
diff --git a/admin/assets/css/joomla_components.css b/admin/assets/css/joomla_components.css
index 4af73a334..df288513e 100644
--- a/admin/assets/css/joomla_components.css
+++ b/admin/assets/css/joomla_components.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 378 of this MVC
- @build 18th September, 2017
+ @version @update number 385 of this MVC
+ @build 6th October, 2017
@created 6th May, 2015
@package Component Builder
@subpackage joomla_components.css
diff --git a/admin/assets/css/layout.css b/admin/assets/css/layout.css
index b6b268eef..832fc56af 100644
--- a/admin/assets/css/layout.css
+++ b/admin/assets/css/layout.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage layout.css
diff --git a/admin/assets/css/layouts.css b/admin/assets/css/layouts.css
index 50c457c61..a9f11151f 100644
--- a/admin/assets/css/layouts.css
+++ b/admin/assets/css/layouts.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage layouts.css
diff --git a/admin/assets/css/site_view.css b/admin/assets/css/site_view.css
index 2bff70315..181e85452 100644
--- a/admin/assets/css/site_view.css
+++ b/admin/assets/css/site_view.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage site_view.css
diff --git a/admin/assets/css/site_views.css b/admin/assets/css/site_views.css
index 8e88db20e..4ec2c50c7 100644
--- a/admin/assets/css/site_views.css
+++ b/admin/assets/css/site_views.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage site_views.css
diff --git a/admin/assets/css/snippet.css b/admin/assets/css/snippet.css
index e01c30d14..706486413 100644
--- a/admin/assets/css/snippet.css
+++ b/admin/assets/css/snippet.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage snippet.css
diff --git a/admin/assets/css/snippets.css b/admin/assets/css/snippets.css
index 799e5ba2d..2b1011ccf 100644
--- a/admin/assets/css/snippets.css
+++ b/admin/assets/css/snippets.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage snippets.css
diff --git a/admin/assets/css/template.css b/admin/assets/css/template.css
index 13a94e5c7..048377ab5 100644
--- a/admin/assets/css/template.css
+++ b/admin/assets/css/template.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage template.css
diff --git a/admin/assets/css/templates.css b/admin/assets/css/templates.css
index d1b6d9bb2..d3425725b 100644
--- a/admin/assets/css/templates.css
+++ b/admin/assets/css/templates.css
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage templates.css
diff --git a/admin/assets/js/admin.js b/admin/assets/js/admin.js
index e69de29bb..5c409af9b 100644
--- a/admin/assets/js/admin.js
+++ b/admin/assets/js/admin.js
@@ -0,0 +1,25 @@
+/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
+ __ __ _ _____ _ _ __ __ _ _ _
+ \ \ / / | | | __ \ | | | | | \/ | | | | | | |
+ \ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
+ \ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
+ \ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
+ \/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
+ | |
+ |_|
+/-------------------------------------------------------------------------------------------------------------------------------/
+
+ @version 2.5.6
+ @build 6th October, 2017
+ @created 30th April, 2015
+ @package Component Builder
+ @subpackage admin.js
+ @author Llewellyn van der Merwe
+ @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
+
+/-----------------------------------------------------------------------------------------------------------------------------*/
+
+/* JS Document */
diff --git a/admin/compiler/joomla_3/admin.js b/admin/compiler/joomla_3/admin.js
index e69de29bb..9c701e5be 100644
--- a/admin/compiler/joomla_3/admin.js
+++ b/admin/compiler/joomla_3/admin.js
@@ -0,0 +1,4 @@
+###BOM###
+
+/* JS Document */
+###ADMINJS###
\ No newline at end of file
diff --git a/admin/compiler/joomla_3/site.js b/admin/compiler/joomla_3/site.js
index e69de29bb..813632b9a 100644
--- a/admin/compiler/joomla_3/site.js
+++ b/admin/compiler/joomla_3/site.js
@@ -0,0 +1,4 @@
+###BOM###
+
+/* JS Document */
+###SITEJS###
\ No newline at end of file
diff --git a/admin/componentbuilder.php b/admin/componentbuilder.php
index da736ecb3..3e9373f28 100644
--- a/admin/componentbuilder.php
+++ b/admin/componentbuilder.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilder.php
diff --git a/admin/controller.php b/admin/controller.php
index ec21dda72..d15dd6dbd 100644
--- a/admin/controller.php
+++ b/admin/controller.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage controller.php
diff --git a/admin/controllers/ajax.json.php b/admin/controllers/ajax.json.php
index 1c008602c..d9650fdcc 100644
--- a/admin/controllers/ajax.json.php
+++ b/admin/controllers/ajax.json.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage ajax.json.php
@@ -49,15 +49,14 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
$this->registerTask('tableColumns', 'ajax');
$this->registerTask('fieldSelectOptions', 'ajax');
$this->registerTask('getImportScripts', 'ajax');
- $this->registerTask('layoutDetails', 'ajax');
$this->registerTask('templateDetails', 'ajax');
- $this->registerTask('snippetDetails', 'ajax');
- $this->registerTask('dynamicValues', 'ajax');
- $this->registerTask('dynamicFormDetails', 'ajax');
+ $this->registerTask('getLayoutDetails', 'ajax');
$this->registerTask('dbTableColumns', 'ajax');
$this->registerTask('viewTableColumns', 'ajax');
+ $this->registerTask('getDynamicValues', 'ajax');
$this->registerTask('checkFunctionName', 'ajax');
$this->registerTask('usedin', 'ajax');
+ $this->registerTask('snippetDetails', 'ajax');
$this->registerTask('fieldOptions', 'ajax');
$this->registerTask('getButton', 'ajax');
}
@@ -340,44 +339,6 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
}
}
break;
- case 'layoutDetails':
- try
- {
- $returnRaw = $jinput->get('raw', false, 'BOOLEAN');
- $idValue = $jinput->get('id', null, 'INT');
- if($idValue && $user->id != 0)
- {
- $result = $this->getModel('ajax')->getLayoutDetails($idValue);
- }
- else
- {
- $result = false;
- }
- if($callback = $jinput->get('callback', null, 'CMD'))
- {
- echo $callback . "(".json_encode($result).");";
- }
- elseif($returnRaw)
- {
- echo json_encode($result);
- }
- else
- {
- echo "(".json_encode($result).");";
- }
- }
- catch(Exception $e)
- {
- if($callback = $jinput->get('callback', null, 'CMD'))
- {
- echo $callback."(".json_encode($e).");";
- }
- else
- {
- echo "(".json_encode($e).");";
- }
- }
- break;
case 'templateDetails':
try
{
@@ -416,91 +377,14 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
}
}
break;
- case 'snippetDetails':
+ case 'getLayoutDetails':
try
{
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
$idValue = $jinput->get('id', NULL, 'INT');
if($idValue && $user->id != 0)
{
- $result = $this->getModel('ajax')->getSnippetDetails($idValue);
- }
- else
- {
- $result = false;
- }
- if($callback = $jinput->get('callback', null, 'CMD'))
- {
- echo $callback . "(".json_encode($result).");";
- }
- elseif($returnRaw)
- {
- echo json_encode($result);
- }
- else
- {
- echo "(".json_encode($result).");";
- }
- }
- catch(Exception $e)
- {
- if($callback = $jinput->get('callback', null, 'CMD'))
- {
- echo $callback."(".json_encode($e).");";
- }
- else
- {
- echo "(".json_encode($e).");";
- }
- }
- break;
- case 'dynamicValues':
- try
- {
- $returnRaw = $jinput->get('raw', false, 'BOOLEAN');
- $idValue = $jinput->get('id', NULL, 'INT');
- $viewValue = $jinput->get('view', NULL, 'WORD');
- if($idValue && $viewValue && $user->id != 0)
- {
- $result = $this->getModel('ajax')->getDynamicValues($idValue, $viewValue);
- }
- else
- {
- $result = false;
- }
- if($callback = $jinput->get('callback', null, 'CMD'))
- {
- echo $callback . "(".json_encode($result).");";
- }
- elseif($returnRaw)
- {
- echo json_encode($result);
- }
- else
- {
- echo "(".json_encode($result).");";
- }
- }
- catch(Exception $e)
- {
- if($callback = $jinput->get('callback', null, 'CMD'))
- {
- echo $callback."(".json_encode($e).");";
- }
- else
- {
- echo "(".json_encode($e).");";
- }
- }
- break;
- case 'dynamicFormDetails':
- try
- {
- $returnRaw = $jinput->get('raw', false, 'BOOLEAN');
- $idValue = $jinput->get('id', NULL, 'INT');
- if($idValue && $user->id != 0)
- {
- $result = $this->getModel('ajax')->getDynamicFormDetails($idValue);
+ $result = $this->getModel('ajax')->getLayoutDetails($idValue);
}
else
{
@@ -611,6 +495,45 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
}
}
break;
+ case 'getDynamicValues':
+ try
+ {
+ $returnRaw = $jinput->get('raw', false, 'BOOLEAN');
+ $idValue = $jinput->get('id', NULL, 'INT');
+ $viewValue = $jinput->get('view', NULL, 'WORD');
+ if($idValue && $viewValue && $user->id != 0)
+ {
+ $result = $this->getModel('ajax')->getDynamicValues($idValue, $viewValue);
+ }
+ else
+ {
+ $result = false;
+ }
+ if($callback = $jinput->get('callback', null, 'CMD'))
+ {
+ echo $callback . "(".json_encode($result).");";
+ }
+ elseif($returnRaw)
+ {
+ echo json_encode($result);
+ }
+ else
+ {
+ echo "(".json_encode($result).");";
+ }
+ }
+ catch(Exception $e)
+ {
+ if($callback = $jinput->get('callback', null, 'CMD'))
+ {
+ echo $callback."(".json_encode($e).");";
+ }
+ else
+ {
+ echo "(".json_encode($e).");";
+ }
+ }
+ break;
case 'checkFunctionName':
try
{
@@ -690,6 +613,44 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
}
}
break;
+ case 'snippetDetails':
+ try
+ {
+ $returnRaw = $jinput->get('raw', false, 'BOOLEAN');
+ $idValue = $jinput->get('id', NULL, 'INT');
+ if($idValue && $user->id != 0)
+ {
+ $result = $this->getModel('ajax')->getSnippetDetails($idValue);
+ }
+ else
+ {
+ $result = false;
+ }
+ if($callback = $jinput->get('callback', null, 'CMD'))
+ {
+ echo $callback . "(".json_encode($result).");";
+ }
+ elseif($returnRaw)
+ {
+ echo json_encode($result);
+ }
+ else
+ {
+ echo "(".json_encode($result).");";
+ }
+ }
+ catch(Exception $e)
+ {
+ if($callback = $jinput->get('callback', null, 'CMD'))
+ {
+ echo $callback."(".json_encode($e).");";
+ }
+ else
+ {
+ echo "(".json_encode($e).");";
+ }
+ }
+ break;
case 'fieldOptions':
try
{
diff --git a/admin/controllers/componentbuilder.php b/admin/controllers/componentbuilder.php
index 04f375cb1..7c8da43c1 100644
--- a/admin/controllers/componentbuilder.php
+++ b/admin/controllers/componentbuilder.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilder.php
diff --git a/admin/controllers/custom_admin_view.php b/admin/controllers/custom_admin_view.php
index 60d3e9609..69febd3ea 100644
--- a/admin/controllers/custom_admin_view.php
+++ b/admin/controllers/custom_admin_view.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage custom_admin_view.php
diff --git a/admin/controllers/custom_admin_views.php b/admin/controllers/custom_admin_views.php
index a3d8b2d3f..df2120fde 100644
--- a/admin/controllers/custom_admin_views.php
+++ b/admin/controllers/custom_admin_views.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage custom_admin_views.php
diff --git a/admin/controllers/custom_code.php b/admin/controllers/custom_code.php
index c27d39429..72811145f 100644
--- a/admin/controllers/custom_code.php
+++ b/admin/controllers/custom_code.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
- @build 26th April, 2017
+ @build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage custom_code.php
diff --git a/admin/controllers/custom_codes.php b/admin/controllers/custom_codes.php
index 01118f612..3f6aae561 100644
--- a/admin/controllers/custom_codes.php
+++ b/admin/controllers/custom_codes.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
- @build 26th April, 2017
+ @build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage custom_codes.php
diff --git a/admin/controllers/dynamic_get.php b/admin/controllers/dynamic_get.php
index c341d5d6e..b38450731 100644
--- a/admin/controllers/dynamic_get.php
+++ b/admin/controllers/dynamic_get.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage dynamic_get.php
diff --git a/admin/controllers/dynamic_gets.php b/admin/controllers/dynamic_gets.php
index bf97acb65..7a396212e 100644
--- a/admin/controllers/dynamic_gets.php
+++ b/admin/controllers/dynamic_gets.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage dynamic_gets.php
diff --git a/admin/controllers/help.php b/admin/controllers/help.php
index 8c1e3019d..271856a08 100644
--- a/admin/controllers/help.php
+++ b/admin/controllers/help.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage help.php
diff --git a/admin/controllers/import.php b/admin/controllers/import.php
index 0b34267d7..ea2dff640 100644
--- a/admin/controllers/import.php
+++ b/admin/controllers/import.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage import.php
diff --git a/admin/controllers/import_joomla_components.php b/admin/controllers/import_joomla_components.php
index 10ec1be76..71c3df898 100644
--- a/admin/controllers/import_joomla_components.php
+++ b/admin/controllers/import_joomla_components.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage import_joomla_components.php
diff --git a/admin/controllers/joomla_component.php b/admin/controllers/joomla_component.php
index fe56da039..f95a37f18 100644
--- a/admin/controllers/joomla_component.php
+++ b/admin/controllers/joomla_component.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 378 of this MVC
- @build 18th September, 2017
+ @version @update number 385 of this MVC
+ @build 6th October, 2017
@created 6th May, 2015
@package Component Builder
@subpackage joomla_component.php
diff --git a/admin/controllers/joomla_components.php b/admin/controllers/joomla_components.php
index 1a38865ba..04e3792ba 100644
--- a/admin/controllers/joomla_components.php
+++ b/admin/controllers/joomla_components.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 378 of this MVC
- @build 18th September, 2017
+ @version @update number 385 of this MVC
+ @build 6th October, 2017
@created 6th May, 2015
@package Component Builder
@subpackage joomla_components.php
diff --git a/admin/controllers/layout.php b/admin/controllers/layout.php
index f9c4e9840..f6f23da26 100644
--- a/admin/controllers/layout.php
+++ b/admin/controllers/layout.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage layout.php
diff --git a/admin/controllers/layouts.php b/admin/controllers/layouts.php
index 252029d17..663c05330 100644
--- a/admin/controllers/layouts.php
+++ b/admin/controllers/layouts.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage layouts.php
diff --git a/admin/controllers/site_view.php b/admin/controllers/site_view.php
index bf45d79c4..d85d70d0c 100644
--- a/admin/controllers/site_view.php
+++ b/admin/controllers/site_view.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage site_view.php
diff --git a/admin/controllers/site_views.php b/admin/controllers/site_views.php
index 07d32b32e..2677a9cb4 100644
--- a/admin/controllers/site_views.php
+++ b/admin/controllers/site_views.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage site_views.php
diff --git a/admin/controllers/snippet.php b/admin/controllers/snippet.php
index efd49dfbc..92e15f203 100644
--- a/admin/controllers/snippet.php
+++ b/admin/controllers/snippet.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage snippet.php
diff --git a/admin/controllers/snippets.php b/admin/controllers/snippets.php
index d909d9f74..fdc3b30d1 100644
--- a/admin/controllers/snippets.php
+++ b/admin/controllers/snippets.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage snippets.php
diff --git a/admin/controllers/template.php b/admin/controllers/template.php
index 204dd34be..9084095b1 100644
--- a/admin/controllers/template.php
+++ b/admin/controllers/template.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage template.php
diff --git a/admin/controllers/templates.php b/admin/controllers/templates.php
index ba88fd9cc..323f17a45 100644
--- a/admin/controllers/templates.php
+++ b/admin/controllers/templates.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage templates.php
diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php
index 2b38b62fb..d74c9c519 100644
--- a/admin/helpers/compiler/a_Get.php
+++ b/admin/helpers/compiler/a_Get.php
@@ -887,6 +887,17 @@ class Get
unset($old_component);
}
+ // add_javascript
+ if ($component->add_javascript == 1)
+ {
+ $this->customScriptBuilder['component_js'] = base64_decode($component->javascript);
+ }
+ else
+ {
+ $this->customScriptBuilder['component_js'] = '';
+ }
+ unset($component->javascript);
+
// add_css
if ($component->add_css == 1)
{
@@ -897,6 +908,7 @@ class Get
$this->customScriptBuilder['component_css'] = '';
}
unset($component->css);
+
// set the lang target
$this->lang = 'admin';
// add PHP in ADMIN
@@ -1184,6 +1196,19 @@ class Get
}
$this->customScriptBuilder['token'][$name_single] = false;
$this->customScriptBuilder['token'][$name_list] = false;
+ // set some placeholders
+ $this->placeholders['###view###'] = ComponentbuilderHelper::safeString($name_single);
+ $this->placeholders['###views###'] = ComponentbuilderHelper::safeString($name_list);
+ $this->placeholders['###View###'] = ComponentbuilderHelper::safeString($name_single, 'F');
+ $this->placeholders['###Views###'] = ComponentbuilderHelper::safeString($name_list, 'F');
+ $this->placeholders['###VIEW###'] = ComponentbuilderHelper::safeString($name_single, 'U');
+ $this->placeholders['###VIEWS###'] = ComponentbuilderHelper::safeString($name_list, 'U');
+ $this->placeholders['[[[view]]]'] = $this->placeholders['###view###'];
+ $this->placeholders['[[[views]]]'] = $this->placeholders['###views###'];
+ $this->placeholders['[[[View]]]'] = $this->placeholders['###View###'];
+ $this->placeholders['[[[Views]]]'] = $this->placeholders['###Views###'];
+ $this->placeholders['[[[VIEW]]]'] = $this->placeholders['###VIEW###'];
+ $this->placeholders['[[[VIEWS]]]'] = $this->placeholders['###VIEWS###'];
// load the values form params
$permissions = json_decode($view->addpermissions,true);
unset($view->addpermissions);
@@ -1537,6 +1562,19 @@ class Get
unset($view->sql);
}
}
+ // clear placeholders
+ unset($this->placeholders['###view###']);
+ unset($this->placeholders['###views###']);
+ unset($this->placeholders['###View###']);
+ unset($this->placeholders['###Views###']);
+ unset($this->placeholders['###VIEW###']);
+ unset($this->placeholders['###VIEWS###']);
+ unset($this->placeholders['[[[view]]]']);
+ unset($this->placeholders['[[[views]]]']);
+ unset($this->placeholders['[[[View]]]']);
+ unset($this->placeholders['[[[Views]]]']);
+ unset($this->placeholders['[[[VIEW]]]']);
+ unset($this->placeholders['[[[VIEWS]]]']);
// store this view to class object
$this->_adminViewData[$id] = $view;
}
@@ -1617,7 +1655,7 @@ class Get
$main_get = $this->setGetData(array($view->main_get),$view->code);
$view->main_get = $main_get[0];
// set the custom_get data
- $view->custom_get = $this->setGetData(json_decode($view->custom_get,true),$view->code);
+ $view->custom_get = $this->setGetData(json_decode($view->custom_get, true),$view->code);
// set array adding array of scripts
$addArray = array('php_view','php_jview','php_jview_display','php_document','js_document','css_document','css');
foreach ($addArray as $scripter)
@@ -1932,7 +1970,7 @@ class Get
* @return oject the get dynamicGet data
*
*/
- public function setGetData($ids,$view_code)
+ public function setGetData($ids, $view_code)
{
if (ComponentbuilderHelper::checkArray($ids))
{
@@ -2023,14 +2061,14 @@ class Get
{
case 1:
// set the view data
- $result->main_get[0]['selection'] = $this->setDataSelection($result->key,$view_code,$result->view_selection,$result->view_table_main,'a','','view');
+ $result->main_get[0]['selection'] = $this->setDataSelection($result->key, $view_code, $result->view_selection, $result->view_table_main, 'a', '', 'view');
$result->main_get[0]['as'] = 'a';
$result->main_get[0]['key'] = $result->key;
unset($result->view_selection);
break;
case 2:
// set the database data
- $result->main_get[0]['selection'] = $this->setDataSelection($result->key,$view_code,$result->db_selection,$result->db_table_main,'a','','db');
+ $result->main_get[0]['selection'] = $this->setDataSelection($result->key, $view_code, $result->db_selection, $result->db_table_main, 'a', '', 'db');
$result->main_get[0]['as'] = 'a';
$result->main_get[0]['key'] = $result->key;
unset($result->db_selection);
@@ -2043,206 +2081,148 @@ class Get
break;
}
// set join_view_table details
- $join_view_table = json_decode($result->join_view_table,true);
- unset($result->join_view_table);
- $result->join_view_table = array();
- if (ComponentbuilderHelper::checkArray($join_view_table))
+ $result->join_view_table = json_decode($result->join_view_table, true);
+ if (ComponentbuilderHelper::checkArray($result->join_view_table))
{
- foreach ($join_view_table as $option => $values)
+ foreach ($result->join_view_table as $nr => &$option)
{
- foreach ($values as $nr => $value)
+ if (ComponentbuilderHelper::checkString($option['selection']))
{
- if (ComponentbuilderHelper::checkString($value))
+ // convert the type
+ $option['type'] = $typeArray[$option['type']];
+ // convert the operator
+ $option['operator'] = $operatorArray[$option['operator']];
+ // get the on field values
+ $on_field = array(); // array(on_field_as, on_field)
+ $on_field = array_map('trim', explode('.',$option['on_field']));
+ // get the join field values
+ $join_field = array(); // array(join_field_as, join_field)
+ $join_field = array_map('trim', explode('.',$option['join_field']));
+ $option['selection'] =
+ $this->setDataSelection($result->key, $view_code, $option['selection'], $option['view_table'], $option['as'], $option['row_type'], 'view');
+ $option['key'] = $result->key;
+ // load to the getters
+ if ($option['row_type'] == 1)
{
- if ($option === 'selection')
+ $result->main_get[] = $option;
+ if ($on_field[0] === 'a')
{
- $on_field_as = '';
- $on_field = '';
- list($on_field_as,$on_field) = array_map('trim', explode('.',$result->join_view_table[$nr]['on_field']));
- $join_field_as = '';
- $join_field = '';
- list($join_field_as,$join_field) = array_map('trim', explode('.',$result->join_view_table[$nr]['join_field']));
- $result->join_view_table[$nr][$option] =
- $this->setDataSelection($result->key,$view_code,$value,$result->join_view_table[$nr]['view_table'],$result->join_view_table[$nr]['as'],$result->join_view_table[$nr]['row_type'],'view');
- $result->join_view_table[$nr]['key'] = $result->key;
- if ($result->join_view_table[$nr]['row_type'] == 1)
- {
- $result->main_get[] = $result->join_view_table[$nr];
- if ($on_field_as === 'a')
- {
- $this->siteMainGet[$this->target][$view_code][$result->join_view_table[$nr]['as']] = $result->join_view_table[$nr]['as'];
- }
- else
- {
- $this->siteDynamicGet[$this->target][$view_code][$result->join_view_table[$nr]['as']][$join_field] = $on_field_as;
- }
- }
- elseif ($result->join_view_table[$nr]['row_type'] == 2)
- {
- $result->custom_get[] = $result->join_view_table[$nr];
- if ($on_field_as != 'a')
- {
- $this->siteDynamicGet[$this->target][$view_code][$result->join_view_table[$nr]['as']][$join_field] = $on_field_as;
- }
- }
- unset($result->join_view_table[$nr]);
+ $this->siteMainGet[$this->target][$view_code][$option['as']] = $option['as'];
}
else
{
- if ($option === 'type')
- {
- $value = $typeArray[$value];
- }
- if ($option === 'operator')
- {
- $value = $operatorArray[$value];
- }
- $result->join_view_table[$nr][$option] = $value;
+ $this->siteDynamicGet[$this->target][$view_code][$option['as']][$join_field[1]] = $on_field[0];
+ }
+ }
+ elseif ($option['row_type'] == 2)
+ {
+ $result->custom_get[] = $option;
+ if ($on_field[0] != 'a')
+ {
+ $this->siteDynamicGet[$this->target][$view_code][$option['as']][$join_field[1]] = $on_field[0];
}
}
}
+ unset($result->join_view_table[$nr]);
}
}
unset($result->join_view_table);
// set join_db_table details
- $join_db_table = json_decode($result->join_db_table,true);
- unset($result->join_db_table);
- $result->join_db_table = array();
- if (ComponentbuilderHelper::checkArray($join_db_table))
+ $result->join_db_table = json_decode($result->join_db_table, true);
+ if (ComponentbuilderHelper::checkArray($result->join_db_table))
{
- foreach ($join_db_table as $option => $values)
+ foreach ($result->join_db_table as $nr => &$option1)
{
- foreach ($values as $nr => $value)
+ if (ComponentbuilderHelper::checkString($option1['selection']))
{
- if (ComponentbuilderHelper::checkString($value))
+ // convert the type
+ $option1['type'] = $typeArray[$option1['type']];
+ // convert the operator
+ $option1['operator'] = $operatorArray[$option1['operator']];
+ // get the on field values
+ $on_field = array(); // array(on_field_as, on_field)
+ $on_field = array_map('trim', explode('.',$option1['on_field']));
+ // get the join field values
+ $join_field = array(); // array(join_field_as, join_field)
+ $join_field = array_map('trim', explode('.',$option1['join_field']));
+ $option1['selection'] =
+ $this->setDataSelection($result->key, $view_code, $value, $option1['db_table'], $option1['as'], $option1['row_type'], 'db');
+ $option1['key'] = $result->key;
+ // load to the getters
+ if ($option1['row_type'] == 1)
{
- if ($option === 'selection')
+ $result->main_get[] = $option1;
+ if ($on_field[0] === 'a')
{
- $on_field_as = '';
- $on_field = '';
- list($on_field_as,$on_field) = array_map('trim', explode('.',$result->join_db_table[$nr]['on_field']));
- $join_field_as = '';
- $join_field = '';
- list($join_field_as,$join_field) = array_map('trim', explode('.',$result->join_db_table[$nr]['join_field']));
- $result->join_db_table[$nr][$option] =
- $this->setDataSelection($result->key,$view_code,$value,$result->join_db_table[$nr]['db_table'],$result->join_db_table[$nr]['as'],$result->join_db_table[$nr]['row_type'],'db');
- $result->join_db_table[$nr]['key'] = $result->key;
- if ($result->join_db_table[$nr]['row_type'] == 1)
- {
- $result->main_get[] = $result->join_db_table[$nr];
- if ($on_field_as === 'a')
- {
- $this->siteMainGet[$this->target][$view_code][$result->join_db_table[$nr]['as']] = $result->join_db_table[$nr]['as'];
- }
- else
- {
- $this->siteDynamicGet[$this->target][$view_code][$result->join_db_table[$nr]['as']][$join_field] = $on_field_as;
- }
- }
- elseif ($result->join_db_table[$nr]['row_type'] == 2)
- {
- $result->custom_get[] = $result->join_db_table[$nr];
- if ($on_field_as != 'a')
- {
- $this->siteDynamicGet[$this->target][$view_code][$result->join_db_table[$nr]['as']][$join_field] = $on_field_as;
- }
- }
- unset($result->join_db_table[$nr]);
+ $this->siteMainGet[$this->target][$view_code][$option1['as']] = $option1['as'];
}
else
{
- if ($option === 'type')
- {
- $value = $typeArray[$value];
- }
- if ($option === 'operator')
- {
- $value = $operatorArray[$value];
- }
- $result->join_db_table[$nr][$option] = $value;
+ $this->siteDynamicGet[$this->target][$view_code][$option1['as']][$join_field[1]] = $on_field[0];
+ }
+ }
+ elseif ($option1['row_type'] == 2)
+ {
+ $result->custom_get[] = $option1;
+ if ($on_field[0] != 'a')
+ {
+ $this->siteDynamicGet[$this->target][$view_code][$option1['as']][$join_field[1]] = $on_field[0];
}
}
}
+ unset($result->join_db_table[$nr]);
}
}
unset($result->join_db_table);
// set filter details
- $filter = json_decode($result->filter,true);
- unset($result->filter);
- $result->filter = array();
- if (ComponentbuilderHelper::checkArray($filter))
+ $result->filter = json_decode($result->filter, true);
+ if (ComponentbuilderHelper::checkArray($result->filter))
{
- foreach ($filter as $option => $values)
+ foreach ($result->filter as $nr => &$option2)
{
- foreach ($values as $nr => $value)
+ if (isset($option2['operator']))
{
- if (ComponentbuilderHelper::checkString($value))
- {
- if ($option === 'operator')
- {
- $value = $operatorArray[$value];
- $result->filter[$nr]['key'] = $result->key;
- }
- $result->filter[$nr][$option] = $value;
- }
+ $option2['operator'] = $operatorArray[$option2['operator']];
+ $option2['key'] = $result->key;
}
- }
- }
- // set global details
- $global = json_decode($result->global,true);
- unset($result->global);
- $result->global = array();
- if (ComponentbuilderHelper::checkArray($global))
- {
- foreach ($global as $option => $values)
- {
- foreach ($values as $nr => $value)
+ else
{
- if (ComponentbuilderHelper::checkString($value))
- {
- $result->global[$nr][$option] = $value;
- }
- }
- }
- }
- // set order details
- $order = json_decode($result->order,true);
- unset($result->order);
- $result->order = array();
- if (ComponentbuilderHelper::checkArray($order))
- {
- foreach ($order as $option => $values)
- {
- foreach ($values as $nr => $value)
- {
- if (ComponentbuilderHelper::checkString($value))
- {
- $result->order[$nr][$option] = $value;
- }
+ unset($result->filter[$nr]);
}
}
}
// set where details
- $where = json_decode($result->where,true);
- unset($result->where);
- $result->where = array();
- if (ComponentbuilderHelper::checkArray($where))
+ $result->where = json_decode($result->where, true);
+ if (ComponentbuilderHelper::checkArray($result->where))
{
- foreach ($where as $option => $values)
+ foreach ($result->where as $nr => &$option3)
{
- foreach ($values as $nr => $value)
+ if (isset($option3['operator']))
{
- if (ComponentbuilderHelper::checkString($value))
- {
- if ($option === 'operator')
- {
- $value = $operatorArray[$value];
- }
- $result->where[$nr][$option] = $value;
- }
+ $option3['operator'] = $operatorArray[$option3['operator']];
+ }
+ else
+ {
+ unset($result->where[$nr]);
}
}
}
+ else
+ {
+ unset($result->where);
+ }
+ // set order details
+ $result->order = json_decode($result->order, true);
+ if (!ComponentbuilderHelper::checkArray($result->order))
+ {
+ unset($result->order);
+ }
+ // set global details
+ $result->global = json_decode($result->global, true);
+ if (!ComponentbuilderHelper::checkArray($result->global))
+ {
+ unset($result->global);
+ }
}
return $results;
}
@@ -2688,7 +2668,7 @@ class Get
* @return array the select query
*
*/
- public function setDataSelection($method_key,$view_code,$string,$asset,$as,$row_type,$type)
+ public function setDataSelection($method_key, $view_code, $string, $asset, $as, $row_type, $type)
{
if (ComponentbuilderHelper::checkString($string))
{
@@ -3257,7 +3237,7 @@ class Get
}
// check what type of place holders we should load here
$placeholderType = (int) $item['comment_type'].'2';
- if (stripos($item['code'], '[[[view') !== false || stripos($item['code'], '[[[sview') !== false)
+ if (stripos($item['code'], '[[[view') !== false || stripos($item['code'], '[[[sview') !== false || stripos($item['code'], '[[[arg') !== false)
{
// if view is being set dynamicly then we can't update this code via IDE (TODO)
$placeholderType = 3;
diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php
index 43c87d5b3..d53df8225 100644
--- a/admin/helpers/compiler/e_Interpretation.php
+++ b/admin/helpers/compiler/e_Interpretation.php
@@ -11772,14 +11772,14 @@ class Interpretation extends Fields
$display[] = PHP_EOL."\t\t";
$display[] = "\t\t".'
';
$display[] = $tab.'
';
- $display[] = $tab."\t 'one')); ?>";
+ $display[] = $tab."\t '".$alias."_one')); ?>";
$slidecounter = 1;
foreach($accordians as $accordianname => $html)
{
$ac_alias = ComponentbuilderHelper::safeString($accordianname);
$counterName = ComponentbuilderHelper::safeString($slidecounter);
$tempName = $alias.'_'.$ac_alias;
- $display[] = $tab."\t\t";
+ $display[] = $tab."\t\t";
$display[] = $tab."\t\t\tloadTemplate('".$tempName."');?>";
$display[] = $tab."\t\t";
$slidecounter++;
diff --git a/admin/helpers/compiler/f_Infusion.php b/admin/helpers/compiler/f_Infusion.php
index 749bb4e92..4929fded8 100644
--- a/admin/helpers/compiler/f_Infusion.php
+++ b/admin/helpers/compiler/f_Infusion.php
@@ -143,6 +143,11 @@ class Infusion extends Interpretation
$this->setConfigFieldsets(1);
$this->lang = $keepLang;
+ // ###ADMINJS###
+ $this->fileContentStatic['###ADMINJS###'] = $this->setPlaceholders($this->customScriptBuilder['component_js'], $this->placeholders);
+ // ###SITEJS###
+ $this->fileContentStatic['###SITEJS###'] = $this->setPlaceholders($this->customScriptBuilder['component_js'], $this->placeholders);
+
// ###ADMINCSS###
$this->fileContentStatic['###ADMINCSS###'] = $this->setPlaceholders($this->customScriptBuilder['component_css'], $this->placeholders);
// ###SITECSS###
diff --git a/admin/helpers/componentbuilder.php b/admin/helpers/componentbuilder.php
index 332b79af9..3df4416fc 100644
--- a/admin/helpers/componentbuilder.php
+++ b/admin/helpers/componentbuilder.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilder.php
diff --git a/admin/helpers/componentbuilderemail.php b/admin/helpers/componentbuilderemail.php
index a36af238e..fb2ca8812 100644
--- a/admin/helpers/componentbuilderemail.php
+++ b/admin/helpers/componentbuilderemail.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilderemail.php
diff --git a/admin/helpers/headercheck.php b/admin/helpers/headercheck.php
index 5288bddf5..83b71315d 100644
--- a/admin/helpers/headercheck.php
+++ b/admin/helpers/headercheck.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage headercheck.php
diff --git a/admin/helpers/html/batch_.php b/admin/helpers/html/batch_.php
index 413c5c68a..963fffada 100644
--- a/admin/helpers/html/batch_.php
+++ b/admin/helpers/html/batch_.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage batch_.php
diff --git a/admin/helpers/indenter.php b/admin/helpers/indenter.php
index dbcc69bf0..2daeb7bcf 100644
--- a/admin/helpers/indenter.php
+++ b/admin/helpers/indenter.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage indenter.php
diff --git a/admin/helpers/js.php b/admin/helpers/js.php
index 373ac97f7..567335eab 100644
--- a/admin/helpers/js.php
+++ b/admin/helpers/js.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage js.php
diff --git a/admin/helpers/minify.php b/admin/helpers/minify.php
index 95cf9f961..86798ec99 100644
--- a/admin/helpers/minify.php
+++ b/admin/helpers/minify.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage minify.php
diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini
index 90c34225e..6da4d2a2d 100644
--- a/admin/language/en-GB/en-GB.com_componentbuilder.ini
+++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini
@@ -885,7 +885,7 @@ COM_COMPONENTBUILDER_BFIELD_TYPEB_IDS_MISMATCH_IN_BSB="Field type id:%s m
COM_COMPONENTBUILDER_BFIELD_TYPEB_NOT_SET_FOR_BSB="Field type not set for %s."
COM_COMPONENTBUILDER_BGET_THE_KEY_FROMB_A_CLASSBTN_BTNPRIMARY_HREFS_TARGET_BLANK_TITLEGET_A_KEY_FROM_SSA="Get the key from%s"
COM_COMPONENTBUILDER_BIMAGESB_NOT_MOVE_TO_CORRECT_LOCATION="Images not move to correct location!"
-COM_COMPONENTBUILDER_BJOIN_VIEW_TABLE_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BVIEW_TABLEB_SO_THE_IDS_WAS_REMOVED="Join view table in %s has id mismatch of selected view table. So the id:%s was removed!"
+COM_COMPONENTBUILDER_BJOIN_VIEW_TABLE_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BJOIN_VIEW_TABLEB_SO_THE_IDS_WAS_REMOVED="Join view table in %s has id mismatch of selected join view table. So the id:%s was removed!"
COM_COMPONENTBUILDER_BLINKED_VIEWB_IDS_MISMATCH_IN_BADMIN_VIEWSB_AND_WAS_EMREMOVEDEM_FROM_THE_LINKED_VIEWS="Linked view id:%s mismatch in admin view:%s, and was removed from the linked views."
COM_COMPONENTBUILDER_BMAIN_GETB_IDS_MISMATCH_IN_BSB="Main get id:%s mismatch in %s."
COM_COMPONENTBUILDER_BMAIN_GETB_NOT_SET_FOR_BSB="Main get not set for %s."
@@ -1667,7 +1667,7 @@ COM_COMPONENTBUILDER_CUSTOM_CODE_MODIFIED_BY_LABEL="Modified By"
COM_COMPONENTBUILDER_CUSTOM_CODE_MODIFIED_DATE_DESC="The date this Custom Code was modified."
COM_COMPONENTBUILDER_CUSTOM_CODE_MODIFIED_DATE_LABEL="Modified Date"
COM_COMPONENTBUILDER_CUSTOM_CODE_NEW="A New Custom Code"
-COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_DESCRIPTION="[save to see placeholder] You can also pass values to this code like this: [save to see placeholder trick] Those values will be replace placeholders called args. These placeholders are zero based and should look like this: [[[arg0]]], [[[arge1]]] ... as many as you like. If you use 5 args in your code, you must always pass 5 values, since they are zero based your fifth arg will look like this [[[arg4]]] Please note that you can not use this placeholder in other custom code views, but in all other custom code areas in JCB found in other views like the admin, site and custom admin views. Another important note, all code with args will not be reversed updated from the changes in the editor out side of JCB at this time, since that will remove all the arg placeholders this means you will only be able to update the code here in the JCB UI. This note will change once we have resolved these limitations."
+COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_DESCRIPTION="[save to see placeholder] You can also pass values to this code like this: [save to see placeholder trick] Those values will be replace placeholders called args. These placeholders are zero based and should look like this: [[[arg0]]], [[[arg1]]] ... as many as you like. If you use 5 args in your code, you must always pass 5 values, since they are zero based your fifth arg will look like this [[[arg4]]] Please note that you can not use this placeholder in other custom code views, but in all other custom code areas in JCB found in other views like the admin, site and custom admin views. Another important note, all code with args will not be reversed updated from the changes in the editor out side of JCB at this time, since that will remove all the arg placeholders this means you will only be able to update the code here in the JCB UI. This note will change once we have resolved these limitations."
COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_JCB_PLACEHOLDER_LABEL="You can use this code in any JCB code area, simply add this PlaceHolder."
COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_DESCRIPTION="
Understand how the placeholders work in (IDE)
@@ -1940,7 +1940,6 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_FF="ff"
COM_COMPONENTBUILDER_DYNAMIC_GET_FILTER="Filter"
COM_COMPONENTBUILDER_DYNAMIC_GET_FILTER_DESCRIPTION="Here you can add filters to the query."
COM_COMPONENTBUILDER_DYNAMIC_GET_FILTER_LABEL="Filter"
-COM_COMPONENTBUILDER_DYNAMIC_GET_FILTER_SELECT="Add"
COM_COMPONENTBUILDER_DYNAMIC_GET_FILTER_TYPE_DESCRIPTION="The type of filter you want to setup."
COM_COMPONENTBUILDER_DYNAMIC_GET_FILTER_TYPE_LABEL="Filter Type"
COM_COMPONENTBUILDER_DYNAMIC_GET_FUNCTIONVAR="FunctionVar"
@@ -1952,7 +1951,6 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_GETCUSTOM_HINT="getMethodName"
COM_COMPONENTBUILDER_DYNAMIC_GET_GETCUSTOM_LABEL="Custom Name"
COM_COMPONENTBUILDER_DYNAMIC_GET_GETITEM="getItem"
COM_COMPONENTBUILDER_DYNAMIC_GET_GETLISTQUERY="getListQuery"
-COM_COMPONENTBUILDER_DYNAMIC_GET_GETTABLE="getTable"
COM_COMPONENTBUILDER_DYNAMIC_GET_GETTYPE="Gettype"
COM_COMPONENTBUILDER_DYNAMIC_GET_GETTYPE_DESCRIPTION="Set the type of get method."
COM_COMPONENTBUILDER_DYNAMIC_GET_GETTYPE_LABEL="getType"
@@ -1960,7 +1958,6 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_GG="gg"
COM_COMPONENTBUILDER_DYNAMIC_GET_GLOBAL="Global"
COM_COMPONENTBUILDER_DYNAMIC_GET_GLOBAL_DESCRIPTION="Here you can add global variables."
COM_COMPONENTBUILDER_DYNAMIC_GET_GLOBAL_LABEL="Set Global"
-COM_COMPONENTBUILDER_DYNAMIC_GET_GLOBAL_SELECT="Add"
COM_COMPONENTBUILDER_DYNAMIC_GET_GREATER_THAN="greater than"
COM_COMPONENTBUILDER_DYNAMIC_GET_GREATER_THAN_OR_EQUAL="greater than or equal"
COM_COMPONENTBUILDER_DYNAMIC_GET_H="h"
@@ -1971,10 +1968,10 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_II="ii"
COM_COMPONENTBUILDER_DYNAMIC_GET_IN="IN"
COM_COMPONENTBUILDER_DYNAMIC_GET_J="j"
COM_COMPONENTBUILDER_DYNAMIC_GET_JJ="jj"
+COM_COMPONENTBUILDER_DYNAMIC_GET_JOINT="Joint"
COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_DB_TABLE="Join Db Table"
COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_DB_TABLE_DESCRIPTION="Here you can add more table data to the query from other databases."
COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_DB_TABLE_LABEL="Join DB Tables"
-COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_DB_TABLE_SELECT="Add"
COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_FIELD_DESCRIPTION="Name of the field"
COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_FIELD_HINT="b.field"
COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_FIELD_LABEL="Join Field"
@@ -1986,7 +1983,6 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_RIGHT_OUTER="Join RIGHT OUTER"
COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_VIEW_TABLE="Join View Table"
COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_VIEW_TABLE_DESCRIPTION="Here you can add more tables to the query from the views of this component."
COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_VIEW_TABLE_LABEL="Join View Tables"
-COM_COMPONENTBUILDER_DYNAMIC_GET_JOIN_VIEW_TABLE_SELECT="Add"
COM_COMPONENTBUILDER_DYNAMIC_GET_JOOMLA_DATABASE="Joomla Database"
COM_COMPONENTBUILDER_DYNAMIC_GET_K="k"
COM_COMPONENTBUILDER_DYNAMIC_GET_KEY_DESCRIPTION="The table as name."
@@ -1998,6 +1994,7 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_LESS_THAN="less than"
COM_COMPONENTBUILDER_DYNAMIC_GET_LESS_THAN_OR_EQUAL_TO="less than or equal to"
COM_COMPONENTBUILDER_DYNAMIC_GET_LL="ll"
COM_COMPONENTBUILDER_DYNAMIC_GET_M="m"
+COM_COMPONENTBUILDER_DYNAMIC_GET_MAIN="Main"
COM_COMPONENTBUILDER_DYNAMIC_GET_MAIN_SOURCE="Main Source"
COM_COMPONENTBUILDER_DYNAMIC_GET_MAIN_SOURCE_DESCRIPTION="Select the main source of this dynamic get method."
COM_COMPONENTBUILDER_DYNAMIC_GET_MAIN_SOURCE_LABEL="Main Source"
@@ -2033,7 +2030,6 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_ORDER="Order"
COM_COMPONENTBUILDER_DYNAMIC_GET_ORDERING_LABEL="Ordering"
COM_COMPONENTBUILDER_DYNAMIC_GET_ORDER_DESCRIPTION="Here you can set the ordering per data set."
COM_COMPONENTBUILDER_DYNAMIC_GET_ORDER_LABEL="Ordering"
-COM_COMPONENTBUILDER_DYNAMIC_GET_ORDER_SELECT="Add"
COM_COMPONENTBUILDER_DYNAMIC_GET_OTHER="Other"
COM_COMPONENTBUILDER_DYNAMIC_GET_P="p"
COM_COMPONENTBUILDER_DYNAMIC_GET_PAGINATION="Pagination"
@@ -2097,7 +2093,7 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_TABLE_KEY_LABEL="Table Key"
COM_COMPONENTBUILDER_DYNAMIC_GET_TAGS="Tags"
COM_COMPONENTBUILDER_DYNAMIC_GET_THIS="This"
COM_COMPONENTBUILDER_DYNAMIC_GET_TT="tt"
-COM_COMPONENTBUILDER_DYNAMIC_GET_TYPE_LABEL="Set Type"
+COM_COMPONENTBUILDER_DYNAMIC_GET_TYPE_LABEL="Type"
COM_COMPONENTBUILDER_DYNAMIC_GET_U="u"
COM_COMPONENTBUILDER_DYNAMIC_GET_USER="User"
COM_COMPONENTBUILDER_DYNAMIC_GET_USER_GROUPS="User Groups"
@@ -2123,7 +2119,6 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_W="w"
COM_COMPONENTBUILDER_DYNAMIC_GET_WHERE="Where"
COM_COMPONENTBUILDER_DYNAMIC_GET_WHERE_DESCRIPTION="Here you can add where to the query."
COM_COMPONENTBUILDER_DYNAMIC_GET_WHERE_LABEL="Where"
-COM_COMPONENTBUILDER_DYNAMIC_GET_WHERE_SELECT="Add"
COM_COMPONENTBUILDER_DYNAMIC_GET_WW="ww"
COM_COMPONENTBUILDER_DYNAMIC_GET_X="x"
COM_COMPONENTBUILDER_DYNAMIC_GET_XX="xx"
@@ -2290,7 +2285,6 @@ COM_COMPONENTBUILDER_FIELDTYPE_NAME_DESCRIPTION="Enter Name Here"
COM_COMPONENTBUILDER_FIELDTYPE_NAME_HINT="Name Here"
COM_COMPONENTBUILDER_FIELDTYPE_NAME_LABEL="Name"
COM_COMPONENTBUILDER_FIELDTYPE_NEW="A New Fieldtype"
-COM_COMPONENTBUILDER_FIELDTYPE_NO="No"
COM_COMPONENTBUILDER_FIELDTYPE_NOTE_ON_FIELDS_DESCRIPTION="To get more form field settings go to https://docs.joomla.org/Form_field"
COM_COMPONENTBUILDER_FIELDTYPE_NOTE_ON_FIELDS_LABEL="More Standard form field types"
COM_COMPONENTBUILDER_FIELDTYPE_ORDERING_LABEL="Ordering"
@@ -2309,7 +2303,6 @@ COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_DESCRIPTION="Select if the property
COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_LABEL="Translatable"
COM_COMPONENTBUILDER_FIELDTYPE_VERSION_DESC="A count of the number of times this Fieldtype has been revised."
COM_COMPONENTBUILDER_FIELDTYPE_VERSION_LABEL="Revision"
-COM_COMPONENTBUILDER_FIELDTYPE_YES="Yes"
COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEW="Add Css View"
COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEWS="Add Css Views"
COM_COMPONENTBUILDER_FIELD_ADD_CSS_VIEWS_LABEL="Add CSS (views)"
@@ -2750,6 +2743,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS="Joomla Components Edit Add
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS_DESC="Allows the users in this group to update the edit add css of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER="Joomla Components Edit Add Email Helper"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER_DESC="Allows the users in this group to update the edit add email helper of the joomla component"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_JAVASCRIPT="Joomla Components Edit Add Javascript"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_JAVASCRIPT_DESC="Allows the users in this group to update the edit add javascript of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE="Joomla Components Edit Add License"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE_DESC="Allows the users in this group to update the edit add license of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_DASHBOARD_METHODS="Joomla Components Edit Add Php Dashboard Methods"
@@ -2814,6 +2809,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK="Joomla Componen
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK_DESC="Allows the users in this group to update the edit export package link of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE="Joomla Components Edit Image"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE_DESC="Allows the users in this group to update the edit image of the joomla component"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_JAVASCRIPT="Joomla Components Edit Javascript"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_JAVASCRIPT_DESC="Allows the users in this group to update the edit javascript of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE="Joomla Components Edit License"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_DESC="Allows the users in this group to update the edit license of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE="Joomla Components Edit License Type"
@@ -2947,6 +2944,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS_LABEL="Add CSS"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER="Add Email Helper"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_DESCRIPTION="Adding the email helper class, that can be used to send emails."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_LABEL="Add Email Helper"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_JAVASCRIPT="Add Javascript"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_JAVASCRIPT_LABEL="Add Javascript"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE="Add License"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_DESCRIPTION="Add the option to use a license in the component."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_LABEL="Add License (whmcs)"
@@ -3224,6 +3223,10 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_COMPONENTS_BUTTON_ACCESS="Joomla Co
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_COMPONENTS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the import components button."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_INFO="Info"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_INFO_CIRCLE="Info Circle"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT="Javascript"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT_HINT="// JavaScript for the entire back-end"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT_LABEL="Javascript"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JCB_EXPORT_PACKAGE_NOTE_DESCRIPTION="The settings below are used when you export this component as a JCB Package, for more info on how this works please review the following tutorial (https://youtu.be/lkE0ZiSWufg)."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JCB_EXPORT_PACKAGE_NOTE_LABEL="JCB Package Export Settings"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JOOMLA="Joomla"
@@ -3295,8 +3298,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_FILES_DESCRIPTION="You can add cu
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_FILES_LABEL="Adding Custom Files"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_FOLDERS_DESCRIPTION="You can add custom folders to the component, simply add the folders to the administrator/components/com_componentbuilder/custom folder and then select them here."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_FOLDERS_LABEL="Adding Custom Folders"
-COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_DESCRIPTION="You can dynamically build the components back-end views and fields by adding a mySQL table dump, that has all the tables, or some more tables with its columns and data types. A very basic and generic set of fields and tables will be created, and added to the existing fields and tables of this component. This is in beta testing, so this feature is still under development and will only be fully functional around June 2017..."
-COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_LABEL="Dynamic Builder Option"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_DESCRIPTION="You can dynamically build the components back-end views and fields by adding a mySql table dump, that has all the tables, or some more tables with its columns and data types. A very basic and generic set of fields and tables will be created, and added to the existing fields and tables of this component."
+COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_LABEL="Dynamic Builder (mySql) Option"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MYSQL_TWEAK_OPTIONS_DESCRIPTION="In each admin view you can add data from a MySQL Table (this is done in the admin view MySQL tab). Here you can limit that data in relation to this component. This feature is useful when an admin view with demo data is used in more then one component, and you would like to exclude some demo data without creating a new admin view."
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MYSQL_TWEAK_OPTIONS_LABEL=" MySql Tweak Options"
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CONTRIBUTORS_DESCRIPTION="Only add contributors if you would like them listed on the component dashboard."
diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini
index 28338dc3f..3c5d69bbd 100644
--- a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini
+++ b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini
@@ -432,6 +432,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS="Joomla Components Edit Add
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_CSS_DESC="Allows the users in this group to update the edit add css of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER="Joomla Components Edit Add Email Helper"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_EMAIL_HELPER_DESC="Allows the users in this group to update the edit add email helper of the joomla component"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_JAVASCRIPT="Joomla Components Edit Add Javascript"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_JAVASCRIPT_DESC="Allows the users in this group to update the edit add javascript of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE="Joomla Components Edit Add License"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_LICENSE_DESC="Allows the users in this group to update the edit add license of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_ADD_PHP_DASHBOARD_METHODS="Joomla Components Edit Add Php Dashboard Methods"
@@ -496,6 +498,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK="Joomla Componen
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_EXPORT_PACKAGE_LINK_DESC="Allows the users in this group to update the edit export package link of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE="Joomla Components Edit Image"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_IMAGE_DESC="Allows the users in this group to update the edit image of the joomla component"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_JAVASCRIPT="Joomla Components Edit Javascript"
+COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_JAVASCRIPT_DESC="Allows the users in this group to update the edit javascript of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE="Joomla Components Edit License"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_DESC="Allows the users in this group to update the edit license of the joomla component"
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_EDIT_LICENSE_TYPE="Joomla Components Edit License Type"
diff --git a/admin/layouts/admin_view/css_fullwidth.php b/admin/layouts/admin_view/css_fullwidth.php
index decc16a9d..5e40869ec 100644
--- a/admin/layouts/admin_view/css_fullwidth.php
+++ b/admin/layouts/admin_view/css_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage css_fullwidth.php
diff --git a/admin/layouts/admin_view/custom_buttons_fullwidth.php b/admin/layouts/admin_view/custom_buttons_fullwidth.php
index dea88bdb5..497679e1e 100644
--- a/admin/layouts/admin_view/custom_buttons_fullwidth.php
+++ b/admin/layouts/admin_view/custom_buttons_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage custom_buttons_fullwidth.php
diff --git a/admin/layouts/admin_view/custom_buttons_left.php b/admin/layouts/admin_view/custom_buttons_left.php
index 0277e2567..030c3ccae 100644
--- a/admin/layouts/admin_view/custom_buttons_left.php
+++ b/admin/layouts/admin_view/custom_buttons_left.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage custom_buttons_left.php
diff --git a/admin/layouts/admin_view/custom_import_fullwidth.php b/admin/layouts/admin_view/custom_import_fullwidth.php
index b75ddcbbb..72d6e31e9 100644
--- a/admin/layouts/admin_view/custom_import_fullwidth.php
+++ b/admin/layouts/admin_view/custom_import_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage custom_import_fullwidth.php
diff --git a/admin/layouts/admin_view/fields_fullwidth.php b/admin/layouts/admin_view/fields_fullwidth.php
index 412bcfcd9..5f08d8b92 100644
--- a/admin/layouts/admin_view/fields_fullwidth.php
+++ b/admin/layouts/admin_view/fields_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage fields_fullwidth.php
@@ -28,7 +28,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
-$items = $displayData->vxyfields;
+$items = $displayData->vxzfields;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
diff --git a/admin/layouts/admin_view/javascript_fullwidth.php b/admin/layouts/admin_view/javascript_fullwidth.php
index 86987dc92..19a05def4 100644
--- a/admin/layouts/admin_view/javascript_fullwidth.php
+++ b/admin/layouts/admin_view/javascript_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage javascript_fullwidth.php
diff --git a/admin/layouts/admin_view/linked_components_fullwidth.php b/admin/layouts/admin_view/linked_components_fullwidth.php
index 3d28f0048..3ca2bed3e 100644
--- a/admin/layouts/admin_view/linked_components_fullwidth.php
+++ b/admin/layouts/admin_view/linked_components_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage linked_components_fullwidth.php
@@ -28,7 +28,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
-$items = $displayData->vxzlinked_components;
+$items = $displayData->vyalinked_components;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit";
diff --git a/admin/layouts/admin_view/mysql_fullwidth.php b/admin/layouts/admin_view/mysql_fullwidth.php
index d8ed118d3..9d5038c29 100644
--- a/admin/layouts/admin_view/mysql_fullwidth.php
+++ b/admin/layouts/admin_view/mysql_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage mysql_fullwidth.php
diff --git a/admin/layouts/admin_view/mysql_left.php b/admin/layouts/admin_view/mysql_left.php
index 4b677c8d2..cd0fd94f5 100644
--- a/admin/layouts/admin_view/mysql_left.php
+++ b/admin/layouts/admin_view/mysql_left.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage mysql_left.php
diff --git a/admin/layouts/admin_view/php_fullwidth.php b/admin/layouts/admin_view/php_fullwidth.php
index c24ff17da..efee3617e 100644
--- a/admin/layouts/admin_view/php_fullwidth.php
+++ b/admin/layouts/admin_view/php_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage php_fullwidth.php
diff --git a/admin/layouts/admin_view/publishing.php b/admin/layouts/admin_view/publishing.php
index 20d306010..8d79c177f 100644
--- a/admin/layouts/admin_view/publishing.php
+++ b/admin/layouts/admin_view/publishing.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage publishing.php
diff --git a/admin/layouts/admin_view/publlshing.php b/admin/layouts/admin_view/publlshing.php
index 95ad3f016..3dae5e08a 100644
--- a/admin/layouts/admin_view/publlshing.php
+++ b/admin/layouts/admin_view/publlshing.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage publlshing.php
diff --git a/admin/layouts/admin_view/settings_above.php b/admin/layouts/admin_view/settings_above.php
index c14af3edd..a77274f10 100644
--- a/admin/layouts/admin_view/settings_above.php
+++ b/admin/layouts/admin_view/settings_above.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage settings_above.php
diff --git a/admin/layouts/admin_view/settings_left.php b/admin/layouts/admin_view/settings_left.php
index 98a2a017f..0ee6ee432 100644
--- a/admin/layouts/admin_view/settings_left.php
+++ b/admin/layouts/admin_view/settings_left.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage settings_left.php
diff --git a/admin/layouts/admin_view/settings_right.php b/admin/layouts/admin_view/settings_right.php
index b00656f98..527a5549d 100644
--- a/admin/layouts/admin_view/settings_right.php
+++ b/admin/layouts/admin_view/settings_right.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage settings_right.php
diff --git a/admin/layouts/admin_view/settings_under.php b/admin/layouts/admin_view/settings_under.php
index d34abc8aa..45261b871 100644
--- a/admin/layouts/admin_view/settings_under.php
+++ b/admin/layouts/admin_view/settings_under.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage settings_under.php
diff --git a/admin/layouts/batchselection.php b/admin/layouts/batchselection.php
index f9458e790..60b1eeb6a 100644
--- a/admin/layouts/batchselection.php
+++ b/admin/layouts/batchselection.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage batchselection.php
diff --git a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
index b82972e7a..3d898d998 100644
--- a/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
+++ b/admin/layouts/custom_admin_view/custom_buttons_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage custom_buttons_fullwidth.php
diff --git a/admin/layouts/custom_admin_view/custom_buttons_left.php b/admin/layouts/custom_admin_view/custom_buttons_left.php
index 0277e2567..030c3ccae 100644
--- a/admin/layouts/custom_admin_view/custom_buttons_left.php
+++ b/admin/layouts/custom_admin_view/custom_buttons_left.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage custom_buttons_left.php
diff --git a/admin/layouts/custom_admin_view/custom_script_fullwidth.php b/admin/layouts/custom_admin_view/custom_script_fullwidth.php
index 8f7a3d0a9..950added5 100644
--- a/admin/layouts/custom_admin_view/custom_script_fullwidth.php
+++ b/admin/layouts/custom_admin_view/custom_script_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage custom_script_fullwidth.php
diff --git a/admin/layouts/custom_admin_view/details_above.php b/admin/layouts/custom_admin_view/details_above.php
index e35d5809f..b5e3e769a 100644
--- a/admin/layouts/custom_admin_view/details_above.php
+++ b/admin/layouts/custom_admin_view/details_above.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage details_above.php
diff --git a/admin/layouts/custom_admin_view/details_fullwidth.php b/admin/layouts/custom_admin_view/details_fullwidth.php
index f24bf3a2b..37cb6f57b 100644
--- a/admin/layouts/custom_admin_view/details_fullwidth.php
+++ b/admin/layouts/custom_admin_view/details_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage details_fullwidth.php
diff --git a/admin/layouts/custom_admin_view/details_left.php b/admin/layouts/custom_admin_view/details_left.php
index 91bb30145..1bffb5ef9 100644
--- a/admin/layouts/custom_admin_view/details_left.php
+++ b/admin/layouts/custom_admin_view/details_left.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage details_left.php
diff --git a/admin/layouts/custom_admin_view/details_right.php b/admin/layouts/custom_admin_view/details_right.php
index ab9151192..e0f1c8b92 100644
--- a/admin/layouts/custom_admin_view/details_right.php
+++ b/admin/layouts/custom_admin_view/details_right.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage details_right.php
diff --git a/admin/layouts/custom_admin_view/details_rightside.php b/admin/layouts/custom_admin_view/details_rightside.php
index d3df0bd24..b017076ff 100644
--- a/admin/layouts/custom_admin_view/details_rightside.php
+++ b/admin/layouts/custom_admin_view/details_rightside.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage details_rightside.php
diff --git a/admin/layouts/custom_admin_view/details_under.php b/admin/layouts/custom_admin_view/details_under.php
index fa7e77fed..b39d6a504 100644
--- a/admin/layouts/custom_admin_view/details_under.php
+++ b/admin/layouts/custom_admin_view/details_under.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage details_under.php
diff --git a/admin/layouts/custom_admin_view/linked_components_fullwidth.php b/admin/layouts/custom_admin_view/linked_components_fullwidth.php
index 036df533e..6e4982fa5 100644
--- a/admin/layouts/custom_admin_view/linked_components_fullwidth.php
+++ b/admin/layouts/custom_admin_view/linked_components_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage linked_components_fullwidth.php
@@ -28,7 +28,7 @@
defined('_JEXEC') or die('Restricted access');
// set the defaults
-$items = $displayData->vyjlinked_components;
+$items = $displayData->vyklinked_components;
$user = JFactory::getUser();
$id = $displayData->item->id;
$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit";
diff --git a/admin/layouts/custom_admin_view/publishing.php b/admin/layouts/custom_admin_view/publishing.php
index 20d306010..8d79c177f 100644
--- a/admin/layouts/custom_admin_view/publishing.php
+++ b/admin/layouts/custom_admin_view/publishing.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage publishing.php
diff --git a/admin/layouts/custom_admin_view/publlshing.php b/admin/layouts/custom_admin_view/publlshing.php
index 95ad3f016..3dae5e08a 100644
--- a/admin/layouts/custom_admin_view/publlshing.php
+++ b/admin/layouts/custom_admin_view/publlshing.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage publlshing.php
diff --git a/admin/layouts/custom_code/details_above.php b/admin/layouts/custom_code/details_above.php
index d6d047f75..c6531c421 100644
--- a/admin/layouts/custom_code/details_above.php
+++ b/admin/layouts/custom_code/details_above.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage details_above.php
diff --git a/admin/layouts/custom_code/details_fullwidth.php b/admin/layouts/custom_code/details_fullwidth.php
index 35a41634a..1f975d3f3 100644
--- a/admin/layouts/custom_code/details_fullwidth.php
+++ b/admin/layouts/custom_code/details_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage details_fullwidth.php
diff --git a/admin/layouts/custom_code/details_left.php b/admin/layouts/custom_code/details_left.php
index cbcd4ca5e..1d55d54b6 100644
--- a/admin/layouts/custom_code/details_left.php
+++ b/admin/layouts/custom_code/details_left.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage details_left.php
diff --git a/admin/layouts/custom_code/details_right.php b/admin/layouts/custom_code/details_right.php
index 5e905a381..61d0db080 100644
--- a/admin/layouts/custom_code/details_right.php
+++ b/admin/layouts/custom_code/details_right.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage details_right.php
diff --git a/admin/layouts/custom_code/details_under.php b/admin/layouts/custom_code/details_under.php
index fa7e77fed..b39d6a504 100644
--- a/admin/layouts/custom_code/details_under.php
+++ b/admin/layouts/custom_code/details_under.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage details_under.php
diff --git a/admin/layouts/custom_code/publishing.php b/admin/layouts/custom_code/publishing.php
index 20d306010..8d79c177f 100644
--- a/admin/layouts/custom_code/publishing.php
+++ b/admin/layouts/custom_code/publishing.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage publishing.php
diff --git a/admin/layouts/custom_code/publlshing.php b/admin/layouts/custom_code/publlshing.php
index 95ad3f016..3dae5e08a 100644
--- a/admin/layouts/custom_code/publlshing.php
+++ b/admin/layouts/custom_code/publlshing.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage publlshing.php
diff --git a/admin/layouts/dynamic_get/abacus_fullwidth.php b/admin/layouts/dynamic_get/abacus_fullwidth.php
index 2d65a1fca..f4608fe8e 100644
--- a/admin/layouts/dynamic_get/abacus_fullwidth.php
+++ b/admin/layouts/dynamic_get/abacus_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage abacus_fullwidth.php
diff --git a/admin/layouts/dynamic_get/abacus_left.php b/admin/layouts/dynamic_get/abacus_left.php
index f4d70f1fc..89dcffdca 100644
--- a/admin/layouts/dynamic_get/abacus_left.php
+++ b/admin/layouts/dynamic_get/abacus_left.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage abacus_left.php
diff --git a/admin/layouts/dynamic_get/custom_script_fullwidth.php b/admin/layouts/dynamic_get/custom_script_fullwidth.php
index cb8b5a0ac..3892d6e23 100644
--- a/admin/layouts/dynamic_get/custom_script_fullwidth.php
+++ b/admin/layouts/dynamic_get/custom_script_fullwidth.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage custom_script_fullwidth.php
diff --git a/admin/layouts/dynamic_get/joint_fullwidth.php b/admin/layouts/dynamic_get/joint_fullwidth.php
new file mode 100644
index 000000000..76272ff92
--- /dev/null
+++ b/admin/layouts/dynamic_get/joint_fullwidth.php
@@ -0,0 +1,49 @@
+
+ @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');
+
+$form = $displayData->getForm();
+
+$fields = $displayData->get('fields') ?: array(
+ 'join_view_table',
+ 'join_db_table'
+);
+
+?>
+
";
- return implode("\n",$string);
- }
- return false;
- }
-
- protected function setListMethodName($names,$table,$as,$type)
- {
- $methodNames = array();
- if (ComponentbuilderHelper::checkArray($names))
- {
- foreach ($names as $nr => $name)
- {
- if (ComponentbuilderHelper::checkString($name))
- {
- if (strpos($name,'.') !== false)
- {
- list($dump,$var) = explode('.',$name);
- }
- else
- {
- $var = $name;
- }
- if ($nr > 0)
- {
- $methodNames[] = ComponentbuilderHelper::safeString($var,'F');
- }
- else
- {
- $methodNames[] = ComponentbuilderHelper::safeString($var);
- }
- }
- }
- }
- switch ($type)
- {
- // set view name
- case 1:
- $methodNames[] = ComponentbuilderHelper::safeString($this->getViewName($table),'F');
- break;
- // set db name
- case 2:
- $methodNames[] = ComponentbuilderHelper::safeString($table,'F');
- break;
-
- }
- // make sure there is uniqe method names
- $methodNames[] = ComponentbuilderHelper::safeString($as,'U');
- return $methodNames;
- }
-
- protected function getViewName($id)
- {
- // Get a db connection.
- $db = JFactory::getDbo();
-
- // Create a new query object.
- $query = $db->getQuery(true);
- $query->select($db->quoteName(array('name_single')));
- $query->from($db->quoteName('#__componentbuilder_admin_view'));
- $query->where($db->quoteName('id') . ' = '. (int) $id);
-
- // Reset the query using our newly populated query object.
- $db->setQuery($query);
- $db->execute();
- if ($db->getNumRows())
- {
- return $db->loadResult();
- }
- return '';
}
// Used in dynamic_get
- public function getViewTableColumns($id,$as,$type)
+ public function getViewTableColumns($id, $as, $type)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
- $query->select($db->quoteName(array('addfields','name_single')));
+ $query->select($db->quoteName(array('addfields', 'name_single')));
$query->from($db->quoteName('#__componentbuilder_admin_view'));
$query->where($db->quoteName('published') . ' = 1');
$query->where($db->quoteName('id') . ' = '. $id);
@@ -747,14 +393,11 @@ class ComponentbuilderModelAjax extends JModelList
{
$result = $db->loadObject();
$description = '';
+ $tableName = '';
if (1 == $type)
{
$tableName = ComponentbuilderHelper::safeString($result->name_single).'_';
}
- else
- {
- $tableName = '';
- }
$addfields = json_decode($result->addfields,true);
if (ComponentbuilderHelper::checkArray($addfields))
{
@@ -878,23 +521,294 @@ class ComponentbuilderModelAjax extends JModelList
return false;
}
- public function getDbTableColumns($tableName,$as,$type)
+ public function getDbTableColumns($tableName, $as, $type)
{
// Get a db connection.
$db = JFactory::getDbo();
// get the columns
$columns = $db->getTableColumns("#__".$tableName);
+ // set the type (multi or single)
+ $unique = '';
+ if (1 == $type)
+ {
+ $unique = ComponentbuilderHelper::safeString($tableName).'_';
+ }
if (ComponentbuilderHelper::checkArray($columns))
{
// build the return string
$tableColumns = array();
- foreach ($columns as $column => $type)
+ foreach ($columns as $column => $typeCast)
{
- $tableColumns[] = $as.".".$column . ' AS ' . $column;
+ $tableColumns[] = $as.".".$column . ' AS ' . $unique . $column;
}
return implode("\n",$tableColumns);
}
return false;
+ }
+
+ public function getDynamicValues($id, $view)
+ {
+ // Get a db connection.
+ $db = JFactory::getDbo();
+
+ // Create a new query object.
+ $query = $db->getQuery(true);
+ $query->select($db->quoteName(array('getcustom', 'gettype', 'main_source', 'view_selection', 'db_selection', 'join_view_table', 'join_db_table', 'addcalculation', 'php_calculation')));
+ $query->from($db->quoteName('#__componentbuilder_dynamic_get'));
+ $query->where($db->quoteName('published') . ' = 1');
+ $query->where($db->quoteName('id') . ' = '. (int) $id);
+
+ // Reset the query using our newly populated query object.
+ $db->setQuery($query);
+ $db->execute();
+ if ($db->getNumRows())
+ {
+ $result = $db->loadObject();
+ // reset buket
+ $selections = array();
+ $selectionsList = array();
+ // get the main values (name)
+ if ($result->main_source == 1)
+ {
+ $selections[] = explode("\n",$result->view_selection);
+ }
+ elseif ($result->main_source == 2)
+ {
+ $selections[] = explode("\n",$result->db_selection);
+ }
+ elseif ($result->main_source == 3)
+ {
+ return '
Custom get source! You will need to transpose the variables manually.
';
+ }
+ // get the joined values (name)
+ $result->join_view_table = json_decode($result->join_view_table, true);
+ if (!ComponentbuilderHelper::checkArray($result->join_view_table))
+ {
+ unset($result->join_view_table);
+ }
+ $result->join_db_table = json_decode($result->join_db_table, true);
+ if (!ComponentbuilderHelper::checkArray($result->join_db_table))
+ {
+ unset($result->join_db_table);
+ }
+ // now load the joined values to the selection set
+ if (isset($result->join_view_table) && ComponentbuilderHelper::checkArray($result->join_view_table))
+ {
+ foreach ($result->join_view_table as $join_view_table)
+ {
+ if ($join_view_table['row_type'] == '1')
+ {
+ $selections[] = explode("\n",$join_view_table['selection']);
+ }
+ elseif ($join_view_table['row_type'] == '2')
+ {
+ $names = $this->setListMethodName(array($join_view_table['on_field'],$join_view_table['join_field']),$join_view_table['view_table'],$join_view_table['as'],1);
+ $selectionsList[implode('',$names)] = explode("\n",$join_view_table['selection']);
+ }
+ }
+ unset($result->join_view_table);
+ }
+ if (isset($result->join_db_table) && ComponentbuilderHelper::checkArray($result->join_db_table))
+ {
+ foreach ($result->join_db_table as $join_db_table)
+ {
+ if ($join_db_table['row_type'] == '1')
+ {
+ $selections[] = explode("\n",$join_db_table['selection']);
+ }
+ elseif ($join_db_table['row_type'] == '2')
+ {
+ $names = $this->setListMethodName(array($join_db_table['on_field'],$join_db_table['join_field']),$join_db_table['db_table'],$join_db_table['as'],2);
+ $selectionsList[implode('',$names)] = explode("\n",$join_db_table['selection']);
+ }
+ }
+ unset($result->join_db_table);
+ }
+ // get the calculation result values (name)
+ if ($result->addcalculation == 1)
+ {
+ $php_calculation = base64_decode($result->php_calculation);
+ $phpSelections = ComponentbuilderHelper::getAllBetween($php_calculation,'cal__',' ');
+ $selections[] = array_unique($phpSelections);
+ unset($php_calculation);
+ unset($phpSelections);
+ unset($result->php_calculation);
+ }
+ // name the main var based on view
+ if ($view == 'template')
+ {
+ switch ($result->gettype)
+ {
+ case 1:
+ // single
+ $buketName = 'this->item';
+ break;
+ case 2:
+ // list
+ $buketName = 'this->items';
+ break;
+ case 3:
+ case 4:
+ // custom
+ $result->getcustom = ComponentbuilderHelper::safeString($result->getcustom);
+ if (substr($result->getcustom, 0, strlen('get')) == 'get')
+ {
+ $varName = substr($result->getcustom, strlen('get'));
+ }
+ else
+ {
+ $varName = $result->getcustom;
+ }
+ $buketName = 'this->'.$varName;
+ break;
+ }
+ }
+ elseif ($view == 'layout')
+ {
+ $buketName = 'displayData';
+ }
+ // now build the return values
+ if (ComponentbuilderHelper::checkArray($selections))
+ {
+ $buket = array();
+ switch ($result->gettype)
+ {
+ case 1:
+ case 3:
+ // single
+ $ur = '<?php echo $'.$buketName;
+ $cf = '; ?>';
+ break;
+ case 2:
+ case 4:
+ // list
+ $ur = '<?php echo $item';
+ $cf = '; ?>';
+ $buket[] = '<?php foreach ($'.$buketName.' as $item): ?> ';
+ break;
+ }
+ foreach ($selections as $selection)
+ {
+ if (ComponentbuilderHelper::checkArray($selection))
+ {
+ foreach ($selection as $value)
+ {
+ if (strpos($value,'AS') !== false)
+ {
+ list($table,$key) = explode('AS',$value);
+ $buket[] = ''.$ur.'->'.trim($key).$cf.'';
+ }
+ else
+ {
+ $buket[] = ''.$ur.'->'.trim($value).$cf.'';
+ }
+ }
+ }
+ }
+ if (ComponentbuilderHelper::checkArray($selectionsList))
+ {
+ $buket[] = '';
+ foreach ($selectionsList as $name => $selectionList)
+ {
+ if (ComponentbuilderHelper::checkArray($selectionList))
+ {
+ $ur = '<?php echo $'.$name;
+ $cf = '; ?>';
+ $buket[] = '<?php foreach ($item->'.$name.' as $'.$name.'): ?> ';
+ foreach ($selectionList as $value)
+ {
+ if (strpos($value,'AS') !== false)
+ {
+ list($table,$key) = explode('AS',$value);
+ $buket[] = ''.$ur.'->'.trim($key).$cf.'';
+ }
+ else
+ {
+ $buket[] = ''.$ur.'->'.trim($value).$cf.'';
+ }
+ }
+ $buket[] = ' <?php endforeach; ?>';
+ }
+ }
+ }
+ switch ($result->gettype)
+ {
+ case 2:
+ case 4:
+ // list
+ $buket[] = ' <?php endforeach; ?>';
+ break;
+ }
+ return implode(' ',$buket);
+ }
+ }
+ return false;
+ }
+
+ protected function setListMethodName($names,$table,$as,$type)
+ {
+ $methodNames = array();
+ if (ComponentbuilderHelper::checkArray($names))
+ {
+ foreach ($names as $nr => $name)
+ {
+ if (ComponentbuilderHelper::checkString($name))
+ {
+ if (strpos($name,'.') !== false)
+ {
+ list($dump,$var) = explode('.',$name);
+ }
+ else
+ {
+ $var = $name;
+ }
+ if ($nr > 0)
+ {
+ $methodNames[] = ComponentbuilderHelper::safeString($var,'F');
+ }
+ else
+ {
+ $methodNames[] = ComponentbuilderHelper::safeString($var);
+ }
+ }
+ }
+ }
+ switch ($type)
+ {
+ // set view name
+ case 1:
+ $methodNames[] = ComponentbuilderHelper::safeString($this->getViewName($table),'F');
+ break;
+ // set db name
+ case 2:
+ $methodNames[] = ComponentbuilderHelper::safeString($table,'F');
+ break;
+
+ }
+ // make sure there is uniqe method names
+ $methodNames[] = ComponentbuilderHelper::safeString($as,'U');
+ return $methodNames;
+ }
+
+ protected function getViewName($id)
+ {
+ // Get a db connection.
+ $db = JFactory::getDbo();
+
+ // Create a new query object.
+ $query = $db->getQuery(true);
+ $query->select($db->quoteName(array('name_single')));
+ $query->from($db->quoteName('#__componentbuilder_admin_view'));
+ $query->where($db->quoteName('id') . ' = '. (int) $id);
+
+ // Reset the query using our newly populated query object.
+ $db->setQuery($query);
+ $db->execute();
+ if ($db->getNumRows())
+ {
+ return $db->loadResult();
+ }
+ return '';
}
// Used in custom_code
@@ -1073,6 +987,34 @@ class ComponentbuilderModelAjax extends JModelList
return false;
}
+ // Used in snippet
+ public function getSnippetDetails($id)
+ {
+ // Get a db connection.
+ $db = JFactory::getDbo();
+
+ // Create a new query object.
+ $query = $db->getQuery(true);
+ $query->select($db->quoteName(array('name', 'heading', 'usage', 'description', 'type', 'snippet', 'url')));
+ $query->from($db->quoteName('#__componentbuilder_snippet'));
+ $query->where($db->quoteName('published') . ' = 1');
+ $query->where($db->quoteName('id') . ' = '. (int) $id);
+
+ // Reset the query using our newly populated query object.
+ $db->setQuery($query);
+ $db->execute();
+ if ($db->getNumRows())
+ {
+ $model = ComponentbuilderHelper::getModel('snippets');
+ $snippet = $db->loadObject();
+ $snippet->type = JText::_($model->selectionTranslation($snippet->type,'type'));
+ $snippet->snippet = base64_decode($snippet->snippet);
+ // return found snippet settings
+ return $snippet;
+ }
+ return false;
+ }
+
// Used in field
public function getFieldOptions($id)
{
diff --git a/admin/models/componentbuilder.php b/admin/models/componentbuilder.php
index 1809c5ae9..a479053d4 100644
--- a/admin/models/componentbuilder.php
+++ b/admin/models/componentbuilder.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilder.php
diff --git a/admin/models/custom_admin_view.php b/admin/models/custom_admin_view.php
index 55d7b5bb1..83baf65c1 100644
--- a/admin/models/custom_admin_view.php
+++ b/admin/models/custom_admin_view.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage custom_admin_view.php
@@ -103,52 +103,10 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->custom_get = $custom_get->toArray();
}
- if (!empty($item->php_model))
+ if (!empty($item->php_controller))
{
- // base64 Decode php_model.
- $item->php_model = base64_decode($item->php_model);
- }
-
- if (!empty($item->css_document))
- {
- // base64 Decode css_document.
- $item->css_document = base64_decode($item->css_document);
- }
-
- if (!empty($item->php_jview))
- {
- // base64 Decode php_jview.
- $item->php_jview = base64_decode($item->php_jview);
- }
-
- if (!empty($item->php_view))
- {
- // base64 Decode php_view.
- $item->php_view = base64_decode($item->php_view);
- }
-
- if (!empty($item->php_document))
- {
- // base64 Decode php_document.
- $item->php_document = base64_decode($item->php_document);
- }
-
- if (!empty($item->php_jview_display))
- {
- // base64 Decode php_jview_display.
- $item->php_jview_display = base64_decode($item->php_jview_display);
- }
-
- if (!empty($item->js_document))
- {
- // base64 Decode js_document.
- $item->js_document = base64_decode($item->js_document);
- }
-
- if (!empty($item->css))
- {
- // base64 Decode css.
- $item->css = base64_decode($item->css);
+ // base64 Decode php_controller.
+ $item->php_controller = base64_decode($item->php_controller);
}
if (!empty($item->default))
@@ -157,10 +115,52 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->default = base64_decode($item->default);
}
- if (!empty($item->php_controller))
+ if (!empty($item->php_model))
{
- // base64 Decode php_controller.
- $item->php_controller = base64_decode($item->php_controller);
+ // base64 Decode php_model.
+ $item->php_model = base64_decode($item->php_model);
+ }
+
+ if (!empty($item->php_document))
+ {
+ // base64 Decode php_document.
+ $item->php_document = base64_decode($item->php_document);
+ }
+
+ if (!empty($item->php_view))
+ {
+ // base64 Decode php_view.
+ $item->php_view = base64_decode($item->php_view);
+ }
+
+ if (!empty($item->php_jview_display))
+ {
+ // base64 Decode php_jview_display.
+ $item->php_jview_display = base64_decode($item->php_jview_display);
+ }
+
+ if (!empty($item->php_jview))
+ {
+ // base64 Decode php_jview.
+ $item->php_jview = base64_decode($item->php_jview);
+ }
+
+ if (!empty($item->js_document))
+ {
+ // base64 Decode js_document.
+ $item->js_document = base64_decode($item->js_document);
+ }
+
+ if (!empty($item->css_document))
+ {
+ // base64 Decode css_document.
+ $item->css_document = base64_decode($item->css_document);
+ }
+
+ if (!empty($item->css))
+ {
+ // base64 Decode css.
+ $item->css = base64_decode($item->css);
}
if (!empty($item->id))
@@ -179,7 +179,7 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getVyjlinked_components()
+ public function getVyklinked_components()
{
// Get the user object.
$user = JFactory::getUser();
@@ -975,52 +975,10 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['custom_get'] = '';
}
- // Set the php_model string to base64 string.
- if (isset($data['php_model']))
+ // Set the php_controller string to base64 string.
+ if (isset($data['php_controller']))
{
- $data['php_model'] = base64_encode($data['php_model']);
- }
-
- // Set the css_document string to base64 string.
- if (isset($data['css_document']))
- {
- $data['css_document'] = base64_encode($data['css_document']);
- }
-
- // Set the php_jview string to base64 string.
- if (isset($data['php_jview']))
- {
- $data['php_jview'] = base64_encode($data['php_jview']);
- }
-
- // Set the php_view string to base64 string.
- if (isset($data['php_view']))
- {
- $data['php_view'] = base64_encode($data['php_view']);
- }
-
- // Set the php_document string to base64 string.
- if (isset($data['php_document']))
- {
- $data['php_document'] = base64_encode($data['php_document']);
- }
-
- // Set the php_jview_display string to base64 string.
- if (isset($data['php_jview_display']))
- {
- $data['php_jview_display'] = base64_encode($data['php_jview_display']);
- }
-
- // Set the js_document string to base64 string.
- if (isset($data['js_document']))
- {
- $data['js_document'] = base64_encode($data['js_document']);
- }
-
- // Set the css string to base64 string.
- if (isset($data['css']))
- {
- $data['css'] = base64_encode($data['css']);
+ $data['php_controller'] = base64_encode($data['php_controller']);
}
// Set the default string to base64 string.
@@ -1029,10 +987,52 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['default'] = base64_encode($data['default']);
}
- // Set the php_controller string to base64 string.
- if (isset($data['php_controller']))
+ // Set the php_model string to base64 string.
+ if (isset($data['php_model']))
{
- $data['php_controller'] = base64_encode($data['php_controller']);
+ $data['php_model'] = base64_encode($data['php_model']);
+ }
+
+ // Set the php_document string to base64 string.
+ if (isset($data['php_document']))
+ {
+ $data['php_document'] = base64_encode($data['php_document']);
+ }
+
+ // Set the php_view string to base64 string.
+ if (isset($data['php_view']))
+ {
+ $data['php_view'] = base64_encode($data['php_view']);
+ }
+
+ // Set the php_jview_display string to base64 string.
+ if (isset($data['php_jview_display']))
+ {
+ $data['php_jview_display'] = base64_encode($data['php_jview_display']);
+ }
+
+ // Set the php_jview string to base64 string.
+ if (isset($data['php_jview']))
+ {
+ $data['php_jview'] = base64_encode($data['php_jview']);
+ }
+
+ // Set the js_document string to base64 string.
+ if (isset($data['js_document']))
+ {
+ $data['js_document'] = base64_encode($data['js_document']);
+ }
+
+ // Set the css_document string to base64 string.
+ if (isset($data['css_document']))
+ {
+ $data['css_document'] = base64_encode($data['css_document']);
+ }
+
+ // Set the css string to base64 string.
+ if (isset($data['css']))
+ {
+ $data['css'] = base64_encode($data['css']);
}
// Set the Params Items to data
diff --git a/admin/models/custom_admin_views.php b/admin/models/custom_admin_views.php
index 10798cc3d..cd0c73eb1 100644
--- a/admin/models/custom_admin_views.php
+++ b/admin/models/custom_admin_views.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage custom_admin_views.php
@@ -266,26 +266,26 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
continue;
}
- // decode php_model
- $item->php_model = base64_decode($item->php_model);
- // decode css_document
- $item->css_document = base64_decode($item->css_document);
- // decode php_jview
- $item->php_jview = base64_decode($item->php_jview);
- // decode php_view
- $item->php_view = base64_decode($item->php_view);
- // decode php_document
- $item->php_document = base64_decode($item->php_document);
- // decode php_jview_display
- $item->php_jview_display = base64_decode($item->php_jview_display);
- // decode js_document
- $item->js_document = base64_decode($item->js_document);
- // decode css
- $item->css = base64_decode($item->css);
- // decode default
- $item->default = base64_decode($item->default);
// decode php_controller
$item->php_controller = base64_decode($item->php_controller);
+ // decode default
+ $item->default = base64_decode($item->default);
+ // decode php_model
+ $item->php_model = base64_decode($item->php_model);
+ // decode php_document
+ $item->php_document = base64_decode($item->php_document);
+ // decode php_view
+ $item->php_view = base64_decode($item->php_view);
+ // decode php_jview_display
+ $item->php_jview_display = base64_decode($item->php_jview_display);
+ // decode php_jview
+ $item->php_jview = base64_decode($item->php_jview);
+ // decode js_document
+ $item->js_document = base64_decode($item->js_document);
+ // decode css_document
+ $item->css_document = base64_decode($item->css_document);
+ // decode css
+ $item->css = base64_decode($item->css);
// unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);
diff --git a/admin/models/custom_code.php b/admin/models/custom_code.php
index ad0ce1b51..854277316 100644
--- a/admin/models/custom_code.php
+++ b/admin/models/custom_code.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
- @build 26th April, 2017
+ @build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage custom_code.php
diff --git a/admin/models/custom_codes.php b/admin/models/custom_codes.php
index 68348eb61..a2bb144a4 100644
--- a/admin/models/custom_codes.php
+++ b/admin/models/custom_codes.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
- @build 26th April, 2017
+ @build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage custom_codes.php
diff --git a/admin/models/dynamic_get.php b/admin/models/dynamic_get.php
index 0b2b9f26a..548deab14 100644
--- a/admin/models/dynamic_get.php
+++ b/admin/models/dynamic_get.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage dynamic_get.php
@@ -95,10 +95,52 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$item->metadata = $registry->toArray();
}
- if (!empty($item->php_before_getitem))
+ if (!empty($item->filter))
{
- // base64 Decode php_before_getitem.
- $item->php_before_getitem = base64_decode($item->php_before_getitem);
+ // Convert the filter field to an array.
+ $filter = new Registry;
+ $filter->loadString($item->filter);
+ $item->filter = $filter->toArray();
+ }
+
+ if (!empty($item->where))
+ {
+ // Convert the where field to an array.
+ $where = new Registry;
+ $where->loadString($item->where);
+ $item->where = $where->toArray();
+ }
+
+ if (!empty($item->order))
+ {
+ // Convert the order field to an array.
+ $order = new Registry;
+ $order->loadString($item->order);
+ $item->order = $order->toArray();
+ }
+
+ if (!empty($item->global))
+ {
+ // Convert the global field to an array.
+ $global = new Registry;
+ $global->loadString($item->global);
+ $item->global = $global->toArray();
+ }
+
+ if (!empty($item->join_db_table))
+ {
+ // Convert the join_db_table field to an array.
+ $join_db_table = new Registry;
+ $join_db_table->loadString($item->join_db_table);
+ $item->join_db_table = $join_db_table->toArray();
+ }
+
+ if (!empty($item->join_view_table))
+ {
+ // Convert the join_view_table field to an array.
+ $join_view_table = new Registry;
+ $join_view_table->loadString($item->join_view_table);
+ $item->join_view_table = $join_view_table->toArray();
}
if (!empty($item->php_custom_get))
@@ -107,6 +149,12 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$item->php_custom_get = base64_decode($item->php_custom_get);
}
+ if (!empty($item->php_before_getitem))
+ {
+ // base64 Decode php_before_getitem.
+ $item->php_before_getitem = base64_decode($item->php_before_getitem);
+ }
+
if (!empty($item->php_after_getitem))
{
// base64 Decode php_after_getitem.
@@ -860,10 +908,82 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$data['metadata'] = (string) $metadata;
}
- // Set the php_before_getitem string to base64 string.
- if (isset($data['php_before_getitem']))
+ // Set the filter items to data.
+ if (isset($data['filter']) && is_array($data['filter']))
{
- $data['php_before_getitem'] = base64_encode($data['php_before_getitem']);
+ $filter = new JRegistry;
+ $filter->loadArray($data['filter']);
+ $data['filter'] = (string) $filter;
+ }
+ elseif (!isset($data['filter']))
+ {
+ // Set the empty filter to data
+ $data['filter'] = '';
+ }
+
+ // Set the where items to data.
+ if (isset($data['where']) && is_array($data['where']))
+ {
+ $where = new JRegistry;
+ $where->loadArray($data['where']);
+ $data['where'] = (string) $where;
+ }
+ elseif (!isset($data['where']))
+ {
+ // Set the empty where to data
+ $data['where'] = '';
+ }
+
+ // Set the order items to data.
+ if (isset($data['order']) && is_array($data['order']))
+ {
+ $order = new JRegistry;
+ $order->loadArray($data['order']);
+ $data['order'] = (string) $order;
+ }
+ elseif (!isset($data['order']))
+ {
+ // Set the empty order to data
+ $data['order'] = '';
+ }
+
+ // Set the global items to data.
+ if (isset($data['global']) && is_array($data['global']))
+ {
+ $global = new JRegistry;
+ $global->loadArray($data['global']);
+ $data['global'] = (string) $global;
+ }
+ elseif (!isset($data['global']))
+ {
+ // Set the empty global to data
+ $data['global'] = '';
+ }
+
+ // Set the join_db_table items to data.
+ if (isset($data['join_db_table']) && is_array($data['join_db_table']))
+ {
+ $join_db_table = new JRegistry;
+ $join_db_table->loadArray($data['join_db_table']);
+ $data['join_db_table'] = (string) $join_db_table;
+ }
+ elseif (!isset($data['join_db_table']))
+ {
+ // Set the empty join_db_table to data
+ $data['join_db_table'] = '';
+ }
+
+ // Set the join_view_table items to data.
+ if (isset($data['join_view_table']) && is_array($data['join_view_table']))
+ {
+ $join_view_table = new JRegistry;
+ $join_view_table->loadArray($data['join_view_table']);
+ $data['join_view_table'] = (string) $join_view_table;
+ }
+ elseif (!isset($data['join_view_table']))
+ {
+ // Set the empty join_view_table to data
+ $data['join_view_table'] = '';
}
// Set the php_custom_get string to base64 string.
@@ -872,6 +992,12 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$data['php_custom_get'] = base64_encode($data['php_custom_get']);
}
+ // Set the php_before_getitem string to base64 string.
+ if (isset($data['php_before_getitem']))
+ {
+ $data['php_before_getitem'] = base64_encode($data['php_before_getitem']);
+ }
+
// Set the php_after_getitem string to base64 string.
if (isset($data['php_after_getitem']))
{
diff --git a/admin/models/dynamic_gets.php b/admin/models/dynamic_gets.php
index d51282a14..86c3fbdc7 100644
--- a/admin/models/dynamic_gets.php
+++ b/admin/models/dynamic_gets.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage dynamic_gets.php
@@ -321,10 +321,10 @@ class ComponentbuilderModelDynamic_gets extends JModelList
continue;
}
- // decode php_before_getitem
- $item->php_before_getitem = base64_decode($item->php_before_getitem);
// decode php_custom_get
$item->php_custom_get = base64_decode($item->php_custom_get);
+ // decode php_before_getitem
+ $item->php_before_getitem = base64_decode($item->php_before_getitem);
// decode php_after_getitem
$item->php_after_getitem = base64_decode($item->php_after_getitem);
// decode php_getlistquery
diff --git a/admin/models/field.php b/admin/models/field.php
index 8fa0dbc10..b9ae4aaa2 100644
--- a/admin/models/field.php
+++ b/admin/models/field.php
@@ -141,7 +141,7 @@ class ComponentbuilderModelField extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getWablinked_admin_views()
+ public function getWaclinked_admin_views()
{
// Get the user object.
$user = JFactory::getUser();
diff --git a/admin/models/fields/adminviewfolderlist.php b/admin/models/fields/adminviewfolderlist.php
index 0735c245f..d7a0b7779 100644
--- a/admin/models/fields/adminviewfolderlist.php
+++ b/admin/models/fields/adminviewfolderlist.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage adminviewfolderlist.php
diff --git a/admin/models/fields/adminviews.php b/admin/models/fields/adminviews.php
index 2122443b9..9ef2e0894 100644
--- a/admin/models/fields/adminviews.php
+++ b/admin/models/fields/adminviews.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage adminviews.php
diff --git a/admin/models/fields/articles.php b/admin/models/fields/articles.php
index f584effa9..8c237a1f6 100644
--- a/admin/models/fields/articles.php
+++ b/admin/models/fields/articles.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage articles.php
diff --git a/admin/models/fields/component.php b/admin/models/fields/component.php
index acae63716..ae516c9c3 100644
--- a/admin/models/fields/component.php
+++ b/admin/models/fields/component.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage component.php
diff --git a/admin/models/fields/components.php b/admin/models/fields/components.php
index 15e2166eb..7e1ad247e 100644
--- a/admin/models/fields/components.php
+++ b/admin/models/fields/components.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage components.php
diff --git a/admin/models/fields/customadminviews.php b/admin/models/fields/customadminviews.php
index 5f2af924b..f269d5bfe 100644
--- a/admin/models/fields/customadminviews.php
+++ b/admin/models/fields/customadminviews.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage customadminviews.php
diff --git a/admin/models/fields/customfilelist.php b/admin/models/fields/customfilelist.php
index 120eb8ba8..25a4fab00 100644
--- a/admin/models/fields/customfilelist.php
+++ b/admin/models/fields/customfilelist.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage customfilelist.php
diff --git a/admin/models/fields/customfolderlist.php b/admin/models/fields/customfolderlist.php
index c06f835c4..0e3685ed4 100644
--- a/admin/models/fields/customfolderlist.php
+++ b/admin/models/fields/customfolderlist.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage customfolderlist.php
diff --git a/admin/models/fields/customgets.php b/admin/models/fields/customgets.php
index 6c5f8353d..d9d89c0ed 100644
--- a/admin/models/fields/customgets.php
+++ b/admin/models/fields/customgets.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage customgets.php
diff --git a/admin/models/fields/dbtables.php b/admin/models/fields/dbtables.php
index 3547cf964..3ad08c46d 100644
--- a/admin/models/fields/dbtables.php
+++ b/admin/models/fields/dbtables.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage dbtables.php
diff --git a/admin/models/fields/dynamicget.php b/admin/models/fields/dynamicget.php
index dc6afc285..f3de392d3 100644
--- a/admin/models/fields/dynamicget.php
+++ b/admin/models/fields/dynamicget.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage dynamicget.php
diff --git a/admin/models/fields/dynamicgets.php b/admin/models/fields/dynamicgets.php
index 0ea5fb6bc..a3fbbef60 100644
--- a/admin/models/fields/dynamicgets.php
+++ b/admin/models/fields/dynamicgets.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage dynamicgets.php
diff --git a/admin/models/fields/fields.php b/admin/models/fields/fields.php
index ca7f68108..5d00a70e0 100644
--- a/admin/models/fields/fields.php
+++ b/admin/models/fields/fields.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage fields.php
diff --git a/admin/models/fields/fieldsmulti.php b/admin/models/fields/fieldsmulti.php
index 1e391ecfa..436810fc9 100644
--- a/admin/models/fields/fieldsmulti.php
+++ b/admin/models/fields/fieldsmulti.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage fieldsmulti.php
diff --git a/admin/models/fields/fieldtypes.php b/admin/models/fields/fieldtypes.php
index 5324925fe..cd3b2629c 100644
--- a/admin/models/fields/fieldtypes.php
+++ b/admin/models/fields/fieldtypes.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage fieldtypes.php
diff --git a/admin/models/fields/ftps.php b/admin/models/fields/ftps.php
new file mode 100644
index 000000000..2e2a83614
--- /dev/null
+++ b/admin/models/fields/ftps.php
@@ -0,0 +1,171 @@
+
+ @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');
+
+// import the list field type
+jimport('joomla.form.helper');
+JFormHelper::loadFieldClass('list');
+
+/**
+ * Ftps Form Field class for the Componentbuilder component
+ */
+class JFormFieldFtps extends JFormFieldList
+{
+ /**
+ * The ftps field type.
+ *
+ * @var string
+ */
+ public $type = 'ftps';
+ /**
+ * Override to add new button
+ *
+ * @return string The field input markup.
+ *
+ * @since 3.2
+ */
+ protected function getInput()
+ {
+ // see if we should add buttons
+ $setButton = $this->getAttribute('button');
+ // get html
+ $html = parent::getInput();
+ // if true set button
+ if ($setButton === 'true')
+ {
+ $button = array();
+ $script = array();
+ $buttonName = $this->getAttribute('name');
+ // get the input from url
+ $app = JFactory::getApplication();
+ $jinput = $app->input;
+ // get the view name & id
+ $values = $jinput->getArray(array(
+ 'id' => 'int',
+ 'view' => 'word'
+ ));
+ // check if new item
+ $ref = '';
+ $refJ = '';
+ if (!is_null($values['id']) && strlen($values['view']))
+ {
+ // only load referal if not new item.
+ $ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
+ $refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
+ }
+ $user = JFactory::getUser();
+ // only add if user allowed to create ftp
+ if ($user->authorise('ftp.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
+ {
+ // build Create button
+ $buttonNamee = trim($buttonName);
+ $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
+ $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
+ $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
+ $buttonNamee = ucfirst(strtolower($buttonNamee));
+ $button[] = '
+ ';
+ }
+ // only add if user allowed to edit ftp
+ if (($buttonName === 'ftp' || $buttonName === 'ftps') && $user->authorise('ftp.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
+ {
+ // build edit button
+ $buttonNamee = trim($buttonName);
+ $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
+ $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
+ $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
+ $buttonNamee = ucfirst(strtolower($buttonNamee));
+ $button[] = '
+ ';
+ // build script
+ $script[] = "
+ jQuery(document).ready(function() {
+ jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) {
+ e.preventDefault();
+ var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
+ ".$buttonName."Button(".$buttonName."Value);
+ });
+ var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
+ ".$buttonName."Button(".$buttonName."Value);
+ });
+ function ".$buttonName."Button(value) {
+ if (value > 0) {
+ // hide the create button
+ jQuery('#".$buttonName."Create').hide();
+ // show edit button
+ jQuery('#".$buttonName."Edit').show();
+ var url = 'index.php?option=com_componentbuilder&view=ftps&task=ftp.edit&id='+value+'".$refJ."';
+ jQuery('#".$buttonName."Edit').attr('href', url);
+ } else {
+ // show the create button
+ jQuery('#".$buttonName."Create').show();
+ // hide edit button
+ jQuery('#".$buttonName."Edit').hide();
+ }
+ }";
+ }
+ // check if button was created for ftp field.
+ if (is_array($button) && count($button) > 0)
+ {
+ // Load the needed script.
+ $document = JFactory::getDocument();
+ $document->addScriptDeclaration(implode(' ',$script));
+ // return the button attached to input field.
+ return '
' .$html . implode('',$button).'
';
+ }
+ }
+ return $html;
+ }
+
+ /**
+ * Method to get a list of options for a list input.
+ *
+ * @return array An array of JHtml options.
+ */
+ public function getOptions()
+ {
+ $db = JFactory::getDBO();
+ $query = $db->getQuery(true);
+ $query->select($db->quoteName(array('a.id','a.name'),array('id','sales_server_ftp_name')));
+ $query->from($db->quoteName('#__componentbuilder_ftp', 'a'));
+ $query->where($db->quoteName('a.published') . ' >= 1');
+ $query->order('a.name ASC');
+ $db->setQuery((string)$query);
+ $items = $db->loadObjectList();
+ $options = array();
+ if ($items)
+ {
+ $options[] = JHtml::_('select.option', '', 'Select an option');
+ foreach($items as $item)
+ {
+ $options[] = JHtml::_('select.option', $item->id, $item->sales_server_ftp_name);
+ }
+ }
+ return $options;
+ }
+}
diff --git a/admin/models/fields/lang.php b/admin/models/fields/lang.php
index 56aa2387e..6095d037d 100644
--- a/admin/models/fields/lang.php
+++ b/admin/models/fields/lang.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage lang.php
diff --git a/admin/models/fields/maingets.php b/admin/models/fields/maingets.php
index 3fe9df091..18bc93dc4 100644
--- a/admin/models/fields/maingets.php
+++ b/admin/models/fields/maingets.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage maingets.php
diff --git a/admin/models/fields/siteviewfolderlist.php b/admin/models/fields/siteviewfolderlist.php
index d83b0d53b..b043e9dd4 100644
--- a/admin/models/fields/siteviewfolderlist.php
+++ b/admin/models/fields/siteviewfolderlist.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage siteviewfolderlist.php
diff --git a/admin/models/fields/siteviews.php b/admin/models/fields/siteviews.php
index 77e071597..b72f11fd6 100644
--- a/admin/models/fields/siteviews.php
+++ b/admin/models/fields/siteviews.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage siteviews.php
diff --git a/admin/models/fields/snippets.php b/admin/models/fields/snippets.php
index d20533da9..119083765 100644
--- a/admin/models/fields/snippets.php
+++ b/admin/models/fields/snippets.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage snippets.php
diff --git a/admin/models/fieldtype.php b/admin/models/fieldtype.php
index 28f205a38..ebcb29d20 100644
--- a/admin/models/fieldtype.php
+++ b/admin/models/fieldtype.php
@@ -119,7 +119,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getWacfields()
+ public function getWadfields()
{
// Get the user object.
$user = JFactory::getUser();
@@ -203,13 +203,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
- $item->datatype = $this->selectionTranslationWacfields($item->datatype, 'datatype');
+ $item->datatype = $this->selectionTranslationWadfields($item->datatype, 'datatype');
// convert indexes
- $item->indexes = $this->selectionTranslationWacfields($item->indexes, 'indexes');
+ $item->indexes = $this->selectionTranslationWadfields($item->indexes, 'indexes');
// convert null_switch
- $item->null_switch = $this->selectionTranslationWacfields($item->null_switch, 'null_switch');
+ $item->null_switch = $this->selectionTranslationWadfields($item->null_switch, 'null_switch');
// convert store
- $item->store = $this->selectionTranslationWacfields($item->store, 'store');
+ $item->store = $this->selectionTranslationWadfields($item->store, 'store');
}
}
@@ -223,7 +223,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return translatable string
*/
- public function selectionTranslationWacfields($value,$name)
+ public function selectionTranslationWadfields($value,$name)
{
// Array of datatype language strings
if ($name === 'datatype')
diff --git a/admin/models/forms/admin_view.js b/admin/models/forms/admin_view.js
index cc2d7223d..5ee0ff272 100644
--- a/admin/models/forms/admin_view.js
+++ b/admin/models/forms/admin_view.js
@@ -23,7 +23,6 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
-jform_vvvvvwwvwq_required = false;
jform_vvvvvwxvwr_required = false;
jform_vvvvvwyvws_required = false;
jform_vvvvvwzvwt_required = false;
@@ -47,308 +46,309 @@ jform_vvvvvxqvxk_required = false;
jform_vvvvvxrvxl_required = false;
jform_vvvvvxsvxm_required = false;
jform_vvvvvxtvxn_required = false;
-jform_vvvvvxxvxo_required = false;
-jform_vvvvvxxvxp_required = false;
-jform_vvvvvxxvxq_required = false;
-jform_vvvvvxxvxr_required = false;
-jform_vvvvvxxvxs_required = false;
-jform_vvvvvxxvxt_required = false;
-jform_vvvvvxzvxu_required = false;
-jform_vvvvvxzvxv_required = false;
-jform_vvvvvxzvxw_required = false;
-jform_vvvvvxzvxx_required = false;
+jform_vvvvvxuvxo_required = false;
+jform_vvvvvxyvxp_required = false;
+jform_vvvvvxyvxq_required = false;
+jform_vvvvvxyvxr_required = false;
+jform_vvvvvxyvxs_required = false;
+jform_vvvvvxyvxt_required = false;
+jform_vvvvvxyvxu_required = false;
+jform_vvvvvyavxv_required = false;
+jform_vvvvvyavxw_required = false;
+jform_vvvvvyavxx_required = false;
+jform_vvvvvyavxy_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var add_css_view_vvvvvww = jQuery("#jform_add_css_view input[type='radio']:checked").val();
- vvvvvww(add_css_view_vvvvvww);
+ var add_css_view_vvvvvwx = jQuery("#jform_add_css_view input[type='radio']:checked").val();
+ vvvvvwx(add_css_view_vvvvvwx);
- var add_css_views_vvvvvwx = jQuery("#jform_add_css_views input[type='radio']:checked").val();
- vvvvvwx(add_css_views_vvvvvwx);
+ var add_css_views_vvvvvwy = jQuery("#jform_add_css_views input[type='radio']:checked").val();
+ vvvvvwy(add_css_views_vvvvvwy);
- var add_javascript_view_file_vvvvvwy = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
- vvvvvwy(add_javascript_view_file_vvvvvwy);
+ var add_javascript_view_file_vvvvvwz = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
+ vvvvvwz(add_javascript_view_file_vvvvvwz);
- var add_javascript_views_file_vvvvvwz = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
- vvvvvwz(add_javascript_views_file_vvvvvwz);
+ var add_javascript_views_file_vvvvvxa = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
+ vvvvvxa(add_javascript_views_file_vvvvvxa);
- var add_javascript_view_footer_vvvvvxa = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
- vvvvvxa(add_javascript_view_footer_vvvvvxa);
+ var add_javascript_view_footer_vvvvvxb = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
+ vvvvvxb(add_javascript_view_footer_vvvvvxb);
- var add_javascript_views_footer_vvvvvxb = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
- vvvvvxb(add_javascript_views_footer_vvvvvxb);
+ var add_javascript_views_footer_vvvvvxc = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
+ vvvvvxc(add_javascript_views_footer_vvvvvxc);
- var add_php_ajax_vvvvvxc = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
- vvvvvxc(add_php_ajax_vvvvvxc);
+ var add_php_ajax_vvvvvxd = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
+ vvvvvxd(add_php_ajax_vvvvvxd);
- var add_php_getitem_vvvvvxd = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
- vvvvvxd(add_php_getitem_vvvvvxd);
+ var add_php_getitem_vvvvvxe = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
+ vvvvvxe(add_php_getitem_vvvvvxe);
- var add_php_getitems_vvvvvxe = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
- vvvvvxe(add_php_getitems_vvvvvxe);
+ var add_php_getitems_vvvvvxf = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
+ vvvvvxf(add_php_getitems_vvvvvxf);
- var add_php_getitems_after_all_vvvvvxf = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
- vvvvvxf(add_php_getitems_after_all_vvvvvxf);
+ var add_php_getitems_after_all_vvvvvxg = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
+ vvvvvxg(add_php_getitems_after_all_vvvvvxg);
- var add_php_getlistquery_vvvvvxg = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
- vvvvvxg(add_php_getlistquery_vvvvvxg);
+ var add_php_getlistquery_vvvvvxh = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
+ vvvvvxh(add_php_getlistquery_vvvvvxh);
- var add_php_before_save_vvvvvxh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
- vvvvvxh(add_php_before_save_vvvvvxh);
+ var add_php_before_save_vvvvvxi = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
+ vvvvvxi(add_php_before_save_vvvvvxi);
- var add_php_save_vvvvvxi = jQuery("#jform_add_php_save input[type='radio']:checked").val();
- vvvvvxi(add_php_save_vvvvvxi);
+ var add_php_save_vvvvvxj = jQuery("#jform_add_php_save input[type='radio']:checked").val();
+ vvvvvxj(add_php_save_vvvvvxj);
- var add_php_postsavehook_vvvvvxj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
- vvvvvxj(add_php_postsavehook_vvvvvxj);
+ var add_php_postsavehook_vvvvvxk = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
+ vvvvvxk(add_php_postsavehook_vvvvvxk);
- var add_php_allowedit_vvvvvxk = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
- vvvvvxk(add_php_allowedit_vvvvvxk);
+ var add_php_allowedit_vvvvvxl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
+ vvvvvxl(add_php_allowedit_vvvvvxl);
- var add_php_batchcopy_vvvvvxl = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
- vvvvvxl(add_php_batchcopy_vvvvvxl);
+ var add_php_batchcopy_vvvvvxm = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
+ vvvvvxm(add_php_batchcopy_vvvvvxm);
- var add_php_batchmove_vvvvvxm = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
- vvvvvxm(add_php_batchmove_vvvvvxm);
+ var add_php_batchmove_vvvvvxn = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
+ vvvvvxn(add_php_batchmove_vvvvvxn);
- var add_php_before_publish_vvvvvxn = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
- vvvvvxn(add_php_before_publish_vvvvvxn);
+ var add_php_before_publish_vvvvvxo = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
+ vvvvvxo(add_php_before_publish_vvvvvxo);
- var add_php_after_publish_vvvvvxo = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
- vvvvvxo(add_php_after_publish_vvvvvxo);
+ var add_php_after_publish_vvvvvxp = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
+ vvvvvxp(add_php_after_publish_vvvvvxp);
- var add_php_before_delete_vvvvvxp = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
- vvvvvxp(add_php_before_delete_vvvvvxp);
+ var add_php_before_delete_vvvvvxq = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
+ vvvvvxq(add_php_before_delete_vvvvvxq);
- var add_php_after_delete_vvvvvxq = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
- vvvvvxq(add_php_after_delete_vvvvvxq);
+ var add_php_after_delete_vvvvvxr = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
+ vvvvvxr(add_php_after_delete_vvvvvxr);
- var add_php_document_vvvvvxr = jQuery("#jform_add_php_document input[type='radio']:checked").val();
- vvvvvxr(add_php_document_vvvvvxr);
+ var add_php_document_vvvvvxs = jQuery("#jform_add_php_document input[type='radio']:checked").val();
+ vvvvvxs(add_php_document_vvvvvxs);
- var add_sql_vvvvvxs = jQuery("#jform_add_sql input[type='radio']:checked").val();
- vvvvvxs(add_sql_vvvvvxs);
-
- var source_vvvvvxt = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val();
- vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt);
+ vvvvvxt(add_sql_vvvvvxt);
- var source_vvvvvxv = jQuery("#jform_source input[type='radio']:checked").val();
- var add_sql_vvvvvxv = jQuery("#jform_add_sql input[type='radio']:checked").val();
- vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv);
+ var source_vvvvvxu = jQuery("#jform_source input[type='radio']:checked").val();
+ var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val();
+ vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu);
- var add_custom_import_vvvvvxx = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
- vvvvvxx(add_custom_import_vvvvvxx);
+ var source_vvvvvxw = jQuery("#jform_source input[type='radio']:checked").val();
+ var add_sql_vvvvvxw = jQuery("#jform_add_sql input[type='radio']:checked").val();
+ vvvvvxw(source_vvvvvxw,add_sql_vvvvvxw);
var add_custom_import_vvvvvxy = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvvxy(add_custom_import_vvvvvxy);
- var add_custom_button_vvvvvxz = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
- vvvvvxz(add_custom_button_vvvvvxz);
+ var add_custom_import_vvvvvxz = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
+ vvvvvxz(add_custom_import_vvvvvxz);
+
+ var add_custom_button_vvvvvya = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
+ vvvvvya(add_custom_button_vvvvvya);
});
-// the vvvvvww function
-function vvvvvww(add_css_view_vvvvvww)
+// the vvvvvwx function
+function vvvvvwx(add_css_view_vvvvvwx)
{
// set the function logic
- if (add_css_view_vvvvvww == 1)
+ if (add_css_view_vvvvvwx == 1)
{
jQuery('#jform_css_view').closest('.control-group').show();
- if (jform_vvvvvwwvwq_required)
+ if (jform_vvvvvwxvwr_required)
{
updateFieldRequired('css_view',0);
jQuery('#jform_css_view').prop('required','required');
jQuery('#jform_css_view').attr('aria-required',true);
jQuery('#jform_css_view').addClass('required');
- jform_vvvvvwwvwq_required = false;
- }
-
- }
- else
- {
- jQuery('#jform_css_view').closest('.control-group').hide();
- if (!jform_vvvvvwwvwq_required)
- {
- updateFieldRequired('css_view',1);
- jQuery('#jform_css_view').removeAttr('required');
- jQuery('#jform_css_view').removeAttr('aria-required');
- jQuery('#jform_css_view').removeClass('required');
- jform_vvvvvwwvwq_required = true;
- }
- }
-}
-
-// the vvvvvwx function
-function vvvvvwx(add_css_views_vvvvvwx)
-{
- // set the function logic
- if (add_css_views_vvvvvwx == 1)
- {
- jQuery('#jform_css_views').closest('.control-group').show();
- if (jform_vvvvvwxvwr_required)
- {
- updateFieldRequired('css_views',0);
- jQuery('#jform_css_views').prop('required','required');
- jQuery('#jform_css_views').attr('aria-required',true);
- jQuery('#jform_css_views').addClass('required');
jform_vvvvvwxvwr_required = false;
}
}
else
{
- jQuery('#jform_css_views').closest('.control-group').hide();
+ jQuery('#jform_css_view').closest('.control-group').hide();
if (!jform_vvvvvwxvwr_required)
{
- updateFieldRequired('css_views',1);
- jQuery('#jform_css_views').removeAttr('required');
- jQuery('#jform_css_views').removeAttr('aria-required');
- jQuery('#jform_css_views').removeClass('required');
+ updateFieldRequired('css_view',1);
+ jQuery('#jform_css_view').removeAttr('required');
+ jQuery('#jform_css_view').removeAttr('aria-required');
+ jQuery('#jform_css_view').removeClass('required');
jform_vvvvvwxvwr_required = true;
}
}
}
// the vvvvvwy function
-function vvvvvwy(add_javascript_view_file_vvvvvwy)
+function vvvvvwy(add_css_views_vvvvvwy)
{
// set the function logic
- if (add_javascript_view_file_vvvvvwy == 1)
+ if (add_css_views_vvvvvwy == 1)
{
- jQuery('#jform_javascript_view_file').closest('.control-group').show();
+ jQuery('#jform_css_views').closest('.control-group').show();
if (jform_vvvvvwyvws_required)
{
- updateFieldRequired('javascript_view_file',0);
- jQuery('#jform_javascript_view_file').prop('required','required');
- jQuery('#jform_javascript_view_file').attr('aria-required',true);
- jQuery('#jform_javascript_view_file').addClass('required');
+ updateFieldRequired('css_views',0);
+ jQuery('#jform_css_views').prop('required','required');
+ jQuery('#jform_css_views').attr('aria-required',true);
+ jQuery('#jform_css_views').addClass('required');
jform_vvvvvwyvws_required = false;
}
}
else
{
- jQuery('#jform_javascript_view_file').closest('.control-group').hide();
+ jQuery('#jform_css_views').closest('.control-group').hide();
if (!jform_vvvvvwyvws_required)
{
- updateFieldRequired('javascript_view_file',1);
- jQuery('#jform_javascript_view_file').removeAttr('required');
- jQuery('#jform_javascript_view_file').removeAttr('aria-required');
- jQuery('#jform_javascript_view_file').removeClass('required');
+ updateFieldRequired('css_views',1);
+ jQuery('#jform_css_views').removeAttr('required');
+ jQuery('#jform_css_views').removeAttr('aria-required');
+ jQuery('#jform_css_views').removeClass('required');
jform_vvvvvwyvws_required = true;
}
}
}
// the vvvvvwz function
-function vvvvvwz(add_javascript_views_file_vvvvvwz)
+function vvvvvwz(add_javascript_view_file_vvvvvwz)
{
// set the function logic
- if (add_javascript_views_file_vvvvvwz == 1)
+ if (add_javascript_view_file_vvvvvwz == 1)
{
- jQuery('#jform_javascript_views_file').closest('.control-group').show();
+ jQuery('#jform_javascript_view_file').closest('.control-group').show();
if (jform_vvvvvwzvwt_required)
{
- updateFieldRequired('javascript_views_file',0);
- jQuery('#jform_javascript_views_file').prop('required','required');
- jQuery('#jform_javascript_views_file').attr('aria-required',true);
- jQuery('#jform_javascript_views_file').addClass('required');
+ updateFieldRequired('javascript_view_file',0);
+ jQuery('#jform_javascript_view_file').prop('required','required');
+ jQuery('#jform_javascript_view_file').attr('aria-required',true);
+ jQuery('#jform_javascript_view_file').addClass('required');
jform_vvvvvwzvwt_required = false;
}
}
else
{
- jQuery('#jform_javascript_views_file').closest('.control-group').hide();
+ jQuery('#jform_javascript_view_file').closest('.control-group').hide();
if (!jform_vvvvvwzvwt_required)
{
- updateFieldRequired('javascript_views_file',1);
- jQuery('#jform_javascript_views_file').removeAttr('required');
- jQuery('#jform_javascript_views_file').removeAttr('aria-required');
- jQuery('#jform_javascript_views_file').removeClass('required');
+ updateFieldRequired('javascript_view_file',1);
+ jQuery('#jform_javascript_view_file').removeAttr('required');
+ jQuery('#jform_javascript_view_file').removeAttr('aria-required');
+ jQuery('#jform_javascript_view_file').removeClass('required');
jform_vvvvvwzvwt_required = true;
}
}
}
// the vvvvvxa function
-function vvvvvxa(add_javascript_view_footer_vvvvvxa)
+function vvvvvxa(add_javascript_views_file_vvvvvxa)
{
// set the function logic
- if (add_javascript_view_footer_vvvvvxa == 1)
+ if (add_javascript_views_file_vvvvvxa == 1)
{
- jQuery('#jform_javascript_view_footer').closest('.control-group').show();
+ jQuery('#jform_javascript_views_file').closest('.control-group').show();
if (jform_vvvvvxavwu_required)
{
- updateFieldRequired('javascript_view_footer',0);
- jQuery('#jform_javascript_view_footer').prop('required','required');
- jQuery('#jform_javascript_view_footer').attr('aria-required',true);
- jQuery('#jform_javascript_view_footer').addClass('required');
+ updateFieldRequired('javascript_views_file',0);
+ jQuery('#jform_javascript_views_file').prop('required','required');
+ jQuery('#jform_javascript_views_file').attr('aria-required',true);
+ jQuery('#jform_javascript_views_file').addClass('required');
jform_vvvvvxavwu_required = false;
}
}
else
{
- jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
+ jQuery('#jform_javascript_views_file').closest('.control-group').hide();
if (!jform_vvvvvxavwu_required)
{
- updateFieldRequired('javascript_view_footer',1);
- jQuery('#jform_javascript_view_footer').removeAttr('required');
- jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
- jQuery('#jform_javascript_view_footer').removeClass('required');
+ updateFieldRequired('javascript_views_file',1);
+ jQuery('#jform_javascript_views_file').removeAttr('required');
+ jQuery('#jform_javascript_views_file').removeAttr('aria-required');
+ jQuery('#jform_javascript_views_file').removeClass('required');
jform_vvvvvxavwu_required = true;
}
}
}
// the vvvvvxb function
-function vvvvvxb(add_javascript_views_footer_vvvvvxb)
+function vvvvvxb(add_javascript_view_footer_vvvvvxb)
{
// set the function logic
- if (add_javascript_views_footer_vvvvvxb == 1)
+ if (add_javascript_view_footer_vvvvvxb == 1)
{
- jQuery('#jform_javascript_views_footer').closest('.control-group').show();
+ jQuery('#jform_javascript_view_footer').closest('.control-group').show();
if (jform_vvvvvxbvwv_required)
{
- updateFieldRequired('javascript_views_footer',0);
- jQuery('#jform_javascript_views_footer').prop('required','required');
- jQuery('#jform_javascript_views_footer').attr('aria-required',true);
- jQuery('#jform_javascript_views_footer').addClass('required');
+ updateFieldRequired('javascript_view_footer',0);
+ jQuery('#jform_javascript_view_footer').prop('required','required');
+ jQuery('#jform_javascript_view_footer').attr('aria-required',true);
+ jQuery('#jform_javascript_view_footer').addClass('required');
jform_vvvvvxbvwv_required = false;
}
}
else
{
- jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
+ jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
if (!jform_vvvvvxbvwv_required)
{
- updateFieldRequired('javascript_views_footer',1);
- jQuery('#jform_javascript_views_footer').removeAttr('required');
- jQuery('#jform_javascript_views_footer').removeAttr('aria-required');
- jQuery('#jform_javascript_views_footer').removeClass('required');
+ updateFieldRequired('javascript_view_footer',1);
+ jQuery('#jform_javascript_view_footer').removeAttr('required');
+ jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
+ jQuery('#jform_javascript_view_footer').removeClass('required');
jform_vvvvvxbvwv_required = true;
}
}
}
// the vvvvvxc function
-function vvvvvxc(add_php_ajax_vvvvvxc)
+function vvvvvxc(add_javascript_views_footer_vvvvvxc)
{
// set the function logic
- if (add_php_ajax_vvvvvxc == 1)
+ if (add_javascript_views_footer_vvvvvxc == 1)
+ {
+ jQuery('#jform_javascript_views_footer').closest('.control-group').show();
+ if (jform_vvvvvxcvww_required)
+ {
+ updateFieldRequired('javascript_views_footer',0);
+ jQuery('#jform_javascript_views_footer').prop('required','required');
+ jQuery('#jform_javascript_views_footer').attr('aria-required',true);
+ jQuery('#jform_javascript_views_footer').addClass('required');
+ jform_vvvvvxcvww_required = false;
+ }
+
+ }
+ else
+ {
+ jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
+ if (!jform_vvvvvxcvww_required)
+ {
+ updateFieldRequired('javascript_views_footer',1);
+ jQuery('#jform_javascript_views_footer').removeAttr('required');
+ jQuery('#jform_javascript_views_footer').removeAttr('aria-required');
+ jQuery('#jform_javascript_views_footer').removeClass('required');
+ jform_vvvvvxcvww_required = true;
+ }
+ }
+}
+
+// the vvvvvxd function
+function vvvvvxd(add_php_ajax_vvvvvxd)
+{
+ // set the function logic
+ if (add_php_ajax_vvvvvxd == 1)
{
jQuery('#jform_ajax_input').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
- if (jform_vvvvvxcvww_required)
+ if (jform_vvvvvxdvwx_required)
{
updateFieldRequired('php_ajaxmethod',0);
jQuery('#jform_php_ajaxmethod').prop('required','required');
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
jQuery('#jform_php_ajaxmethod').addClass('required');
- jform_vvvvvxcvww_required = false;
+ jform_vvvvvxdvwx_required = false;
}
}
@@ -356,549 +356,549 @@ function vvvvvxc(add_php_ajax_vvvvvxc)
{
jQuery('#jform_ajax_input').closest('.control-group').hide();
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
- if (!jform_vvvvvxcvww_required)
+ if (!jform_vvvvvxdvwx_required)
{
updateFieldRequired('php_ajaxmethod',1);
jQuery('#jform_php_ajaxmethod').removeAttr('required');
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
jQuery('#jform_php_ajaxmethod').removeClass('required');
- jform_vvvvvxcvww_required = true;
- }
- }
-}
-
-// the vvvvvxd function
-function vvvvvxd(add_php_getitem_vvvvvxd)
-{
- // set the function logic
- if (add_php_getitem_vvvvvxd == 1)
- {
- jQuery('#jform_php_getitem').closest('.control-group').show();
- if (jform_vvvvvxdvwx_required)
- {
- updateFieldRequired('php_getitem',0);
- jQuery('#jform_php_getitem').prop('required','required');
- jQuery('#jform_php_getitem').attr('aria-required',true);
- jQuery('#jform_php_getitem').addClass('required');
- jform_vvvvvxdvwx_required = false;
- }
-
- }
- else
- {
- jQuery('#jform_php_getitem').closest('.control-group').hide();
- if (!jform_vvvvvxdvwx_required)
- {
- updateFieldRequired('php_getitem',1);
- jQuery('#jform_php_getitem').removeAttr('required');
- jQuery('#jform_php_getitem').removeAttr('aria-required');
- jQuery('#jform_php_getitem').removeClass('required');
jform_vvvvvxdvwx_required = true;
}
}
}
// the vvvvvxe function
-function vvvvvxe(add_php_getitems_vvvvvxe)
+function vvvvvxe(add_php_getitem_vvvvvxe)
{
// set the function logic
- if (add_php_getitems_vvvvvxe == 1)
+ if (add_php_getitem_vvvvvxe == 1)
{
- jQuery('#jform_php_getitems').closest('.control-group').show();
+ jQuery('#jform_php_getitem').closest('.control-group').show();
if (jform_vvvvvxevwy_required)
{
- updateFieldRequired('php_getitems',0);
- jQuery('#jform_php_getitems').prop('required','required');
- jQuery('#jform_php_getitems').attr('aria-required',true);
- jQuery('#jform_php_getitems').addClass('required');
+ updateFieldRequired('php_getitem',0);
+ jQuery('#jform_php_getitem').prop('required','required');
+ jQuery('#jform_php_getitem').attr('aria-required',true);
+ jQuery('#jform_php_getitem').addClass('required');
jform_vvvvvxevwy_required = false;
}
}
else
{
- jQuery('#jform_php_getitems').closest('.control-group').hide();
+ jQuery('#jform_php_getitem').closest('.control-group').hide();
if (!jform_vvvvvxevwy_required)
{
- updateFieldRequired('php_getitems',1);
- jQuery('#jform_php_getitems').removeAttr('required');
- jQuery('#jform_php_getitems').removeAttr('aria-required');
- jQuery('#jform_php_getitems').removeClass('required');
+ updateFieldRequired('php_getitem',1);
+ jQuery('#jform_php_getitem').removeAttr('required');
+ jQuery('#jform_php_getitem').removeAttr('aria-required');
+ jQuery('#jform_php_getitem').removeClass('required');
jform_vvvvvxevwy_required = true;
}
}
}
// the vvvvvxf function
-function vvvvvxf(add_php_getitems_after_all_vvvvvxf)
+function vvvvvxf(add_php_getitems_vvvvvxf)
{
// set the function logic
- if (add_php_getitems_after_all_vvvvvxf == 1)
+ if (add_php_getitems_vvvvvxf == 1)
{
- jQuery('#jform_php_getitems_after_all').closest('.control-group').show();
+ jQuery('#jform_php_getitems').closest('.control-group').show();
if (jform_vvvvvxfvwz_required)
{
- updateFieldRequired('php_getitems_after_all',0);
- jQuery('#jform_php_getitems_after_all').prop('required','required');
- jQuery('#jform_php_getitems_after_all').attr('aria-required',true);
- jQuery('#jform_php_getitems_after_all').addClass('required');
+ updateFieldRequired('php_getitems',0);
+ jQuery('#jform_php_getitems').prop('required','required');
+ jQuery('#jform_php_getitems').attr('aria-required',true);
+ jQuery('#jform_php_getitems').addClass('required');
jform_vvvvvxfvwz_required = false;
}
}
else
{
- jQuery('#jform_php_getitems_after_all').closest('.control-group').hide();
+ jQuery('#jform_php_getitems').closest('.control-group').hide();
if (!jform_vvvvvxfvwz_required)
{
- updateFieldRequired('php_getitems_after_all',1);
- jQuery('#jform_php_getitems_after_all').removeAttr('required');
- jQuery('#jform_php_getitems_after_all').removeAttr('aria-required');
- jQuery('#jform_php_getitems_after_all').removeClass('required');
+ updateFieldRequired('php_getitems',1);
+ jQuery('#jform_php_getitems').removeAttr('required');
+ jQuery('#jform_php_getitems').removeAttr('aria-required');
+ jQuery('#jform_php_getitems').removeClass('required');
jform_vvvvvxfvwz_required = true;
}
}
}
// the vvvvvxg function
-function vvvvvxg(add_php_getlistquery_vvvvvxg)
+function vvvvvxg(add_php_getitems_after_all_vvvvvxg)
{
// set the function logic
- if (add_php_getlistquery_vvvvvxg == 1)
+ if (add_php_getitems_after_all_vvvvvxg == 1)
{
- jQuery('#jform_php_getlistquery').closest('.control-group').show();
+ jQuery('#jform_php_getitems_after_all').closest('.control-group').show();
if (jform_vvvvvxgvxa_required)
{
- updateFieldRequired('php_getlistquery',0);
- jQuery('#jform_php_getlistquery').prop('required','required');
- jQuery('#jform_php_getlistquery').attr('aria-required',true);
- jQuery('#jform_php_getlistquery').addClass('required');
+ updateFieldRequired('php_getitems_after_all',0);
+ jQuery('#jform_php_getitems_after_all').prop('required','required');
+ jQuery('#jform_php_getitems_after_all').attr('aria-required',true);
+ jQuery('#jform_php_getitems_after_all').addClass('required');
jform_vvvvvxgvxa_required = false;
}
}
else
{
- jQuery('#jform_php_getlistquery').closest('.control-group').hide();
+ jQuery('#jform_php_getitems_after_all').closest('.control-group').hide();
if (!jform_vvvvvxgvxa_required)
{
- updateFieldRequired('php_getlistquery',1);
- jQuery('#jform_php_getlistquery').removeAttr('required');
- jQuery('#jform_php_getlistquery').removeAttr('aria-required');
- jQuery('#jform_php_getlistquery').removeClass('required');
+ updateFieldRequired('php_getitems_after_all',1);
+ jQuery('#jform_php_getitems_after_all').removeAttr('required');
+ jQuery('#jform_php_getitems_after_all').removeAttr('aria-required');
+ jQuery('#jform_php_getitems_after_all').removeClass('required');
jform_vvvvvxgvxa_required = true;
}
}
}
// the vvvvvxh function
-function vvvvvxh(add_php_before_save_vvvvvxh)
+function vvvvvxh(add_php_getlistquery_vvvvvxh)
{
// set the function logic
- if (add_php_before_save_vvvvvxh == 1)
+ if (add_php_getlistquery_vvvvvxh == 1)
{
- jQuery('#jform_php_before_save').closest('.control-group').show();
+ jQuery('#jform_php_getlistquery').closest('.control-group').show();
if (jform_vvvvvxhvxb_required)
{
- updateFieldRequired('php_before_save',0);
- jQuery('#jform_php_before_save').prop('required','required');
- jQuery('#jform_php_before_save').attr('aria-required',true);
- jQuery('#jform_php_before_save').addClass('required');
+ updateFieldRequired('php_getlistquery',0);
+ jQuery('#jform_php_getlistquery').prop('required','required');
+ jQuery('#jform_php_getlistquery').attr('aria-required',true);
+ jQuery('#jform_php_getlistquery').addClass('required');
jform_vvvvvxhvxb_required = false;
}
}
else
{
- jQuery('#jform_php_before_save').closest('.control-group').hide();
+ jQuery('#jform_php_getlistquery').closest('.control-group').hide();
if (!jform_vvvvvxhvxb_required)
{
- updateFieldRequired('php_before_save',1);
- jQuery('#jform_php_before_save').removeAttr('required');
- jQuery('#jform_php_before_save').removeAttr('aria-required');
- jQuery('#jform_php_before_save').removeClass('required');
+ updateFieldRequired('php_getlistquery',1);
+ jQuery('#jform_php_getlistquery').removeAttr('required');
+ jQuery('#jform_php_getlistquery').removeAttr('aria-required');
+ jQuery('#jform_php_getlistquery').removeClass('required');
jform_vvvvvxhvxb_required = true;
}
}
}
// the vvvvvxi function
-function vvvvvxi(add_php_save_vvvvvxi)
+function vvvvvxi(add_php_before_save_vvvvvxi)
{
// set the function logic
- if (add_php_save_vvvvvxi == 1)
+ if (add_php_before_save_vvvvvxi == 1)
{
- jQuery('#jform_php_save').closest('.control-group').show();
+ jQuery('#jform_php_before_save').closest('.control-group').show();
if (jform_vvvvvxivxc_required)
{
- updateFieldRequired('php_save',0);
- jQuery('#jform_php_save').prop('required','required');
- jQuery('#jform_php_save').attr('aria-required',true);
- jQuery('#jform_php_save').addClass('required');
+ updateFieldRequired('php_before_save',0);
+ jQuery('#jform_php_before_save').prop('required','required');
+ jQuery('#jform_php_before_save').attr('aria-required',true);
+ jQuery('#jform_php_before_save').addClass('required');
jform_vvvvvxivxc_required = false;
}
}
else
{
- jQuery('#jform_php_save').closest('.control-group').hide();
+ jQuery('#jform_php_before_save').closest('.control-group').hide();
if (!jform_vvvvvxivxc_required)
{
- updateFieldRequired('php_save',1);
- jQuery('#jform_php_save').removeAttr('required');
- jQuery('#jform_php_save').removeAttr('aria-required');
- jQuery('#jform_php_save').removeClass('required');
+ updateFieldRequired('php_before_save',1);
+ jQuery('#jform_php_before_save').removeAttr('required');
+ jQuery('#jform_php_before_save').removeAttr('aria-required');
+ jQuery('#jform_php_before_save').removeClass('required');
jform_vvvvvxivxc_required = true;
}
}
}
// the vvvvvxj function
-function vvvvvxj(add_php_postsavehook_vvvvvxj)
+function vvvvvxj(add_php_save_vvvvvxj)
{
// set the function logic
- if (add_php_postsavehook_vvvvvxj == 1)
+ if (add_php_save_vvvvvxj == 1)
{
- jQuery('#jform_php_postsavehook').closest('.control-group').show();
+ jQuery('#jform_php_save').closest('.control-group').show();
if (jform_vvvvvxjvxd_required)
{
- updateFieldRequired('php_postsavehook',0);
- jQuery('#jform_php_postsavehook').prop('required','required');
- jQuery('#jform_php_postsavehook').attr('aria-required',true);
- jQuery('#jform_php_postsavehook').addClass('required');
+ updateFieldRequired('php_save',0);
+ jQuery('#jform_php_save').prop('required','required');
+ jQuery('#jform_php_save').attr('aria-required',true);
+ jQuery('#jform_php_save').addClass('required');
jform_vvvvvxjvxd_required = false;
}
}
else
{
- jQuery('#jform_php_postsavehook').closest('.control-group').hide();
+ jQuery('#jform_php_save').closest('.control-group').hide();
if (!jform_vvvvvxjvxd_required)
{
- updateFieldRequired('php_postsavehook',1);
- jQuery('#jform_php_postsavehook').removeAttr('required');
- jQuery('#jform_php_postsavehook').removeAttr('aria-required');
- jQuery('#jform_php_postsavehook').removeClass('required');
+ updateFieldRequired('php_save',1);
+ jQuery('#jform_php_save').removeAttr('required');
+ jQuery('#jform_php_save').removeAttr('aria-required');
+ jQuery('#jform_php_save').removeClass('required');
jform_vvvvvxjvxd_required = true;
}
}
}
// the vvvvvxk function
-function vvvvvxk(add_php_allowedit_vvvvvxk)
+function vvvvvxk(add_php_postsavehook_vvvvvxk)
{
// set the function logic
- if (add_php_allowedit_vvvvvxk == 1)
+ if (add_php_postsavehook_vvvvvxk == 1)
{
- jQuery('#jform_php_allowedit').closest('.control-group').show();
+ jQuery('#jform_php_postsavehook').closest('.control-group').show();
if (jform_vvvvvxkvxe_required)
{
- updateFieldRequired('php_allowedit',0);
- jQuery('#jform_php_allowedit').prop('required','required');
- jQuery('#jform_php_allowedit').attr('aria-required',true);
- jQuery('#jform_php_allowedit').addClass('required');
+ updateFieldRequired('php_postsavehook',0);
+ jQuery('#jform_php_postsavehook').prop('required','required');
+ jQuery('#jform_php_postsavehook').attr('aria-required',true);
+ jQuery('#jform_php_postsavehook').addClass('required');
jform_vvvvvxkvxe_required = false;
}
}
else
{
- jQuery('#jform_php_allowedit').closest('.control-group').hide();
+ jQuery('#jform_php_postsavehook').closest('.control-group').hide();
if (!jform_vvvvvxkvxe_required)
{
- updateFieldRequired('php_allowedit',1);
- jQuery('#jform_php_allowedit').removeAttr('required');
- jQuery('#jform_php_allowedit').removeAttr('aria-required');
- jQuery('#jform_php_allowedit').removeClass('required');
+ updateFieldRequired('php_postsavehook',1);
+ jQuery('#jform_php_postsavehook').removeAttr('required');
+ jQuery('#jform_php_postsavehook').removeAttr('aria-required');
+ jQuery('#jform_php_postsavehook').removeClass('required');
jform_vvvvvxkvxe_required = true;
}
}
}
// the vvvvvxl function
-function vvvvvxl(add_php_batchcopy_vvvvvxl)
+function vvvvvxl(add_php_allowedit_vvvvvxl)
{
// set the function logic
- if (add_php_batchcopy_vvvvvxl == 1)
+ if (add_php_allowedit_vvvvvxl == 1)
{
- jQuery('#jform_php_batchcopy').closest('.control-group').show();
+ jQuery('#jform_php_allowedit').closest('.control-group').show();
if (jform_vvvvvxlvxf_required)
{
- updateFieldRequired('php_batchcopy',0);
- jQuery('#jform_php_batchcopy').prop('required','required');
- jQuery('#jform_php_batchcopy').attr('aria-required',true);
- jQuery('#jform_php_batchcopy').addClass('required');
+ updateFieldRequired('php_allowedit',0);
+ jQuery('#jform_php_allowedit').prop('required','required');
+ jQuery('#jform_php_allowedit').attr('aria-required',true);
+ jQuery('#jform_php_allowedit').addClass('required');
jform_vvvvvxlvxf_required = false;
}
}
else
{
- jQuery('#jform_php_batchcopy').closest('.control-group').hide();
+ jQuery('#jform_php_allowedit').closest('.control-group').hide();
if (!jform_vvvvvxlvxf_required)
{
- updateFieldRequired('php_batchcopy',1);
- jQuery('#jform_php_batchcopy').removeAttr('required');
- jQuery('#jform_php_batchcopy').removeAttr('aria-required');
- jQuery('#jform_php_batchcopy').removeClass('required');
+ updateFieldRequired('php_allowedit',1);
+ jQuery('#jform_php_allowedit').removeAttr('required');
+ jQuery('#jform_php_allowedit').removeAttr('aria-required');
+ jQuery('#jform_php_allowedit').removeClass('required');
jform_vvvvvxlvxf_required = true;
}
}
}
// the vvvvvxm function
-function vvvvvxm(add_php_batchmove_vvvvvxm)
+function vvvvvxm(add_php_batchcopy_vvvvvxm)
{
// set the function logic
- if (add_php_batchmove_vvvvvxm == 1)
+ if (add_php_batchcopy_vvvvvxm == 1)
{
- jQuery('#jform_php_batchmove').closest('.control-group').show();
+ jQuery('#jform_php_batchcopy').closest('.control-group').show();
if (jform_vvvvvxmvxg_required)
{
- updateFieldRequired('php_batchmove',0);
- jQuery('#jform_php_batchmove').prop('required','required');
- jQuery('#jform_php_batchmove').attr('aria-required',true);
- jQuery('#jform_php_batchmove').addClass('required');
+ updateFieldRequired('php_batchcopy',0);
+ jQuery('#jform_php_batchcopy').prop('required','required');
+ jQuery('#jform_php_batchcopy').attr('aria-required',true);
+ jQuery('#jform_php_batchcopy').addClass('required');
jform_vvvvvxmvxg_required = false;
}
}
else
{
- jQuery('#jform_php_batchmove').closest('.control-group').hide();
+ jQuery('#jform_php_batchcopy').closest('.control-group').hide();
if (!jform_vvvvvxmvxg_required)
{
- updateFieldRequired('php_batchmove',1);
- jQuery('#jform_php_batchmove').removeAttr('required');
- jQuery('#jform_php_batchmove').removeAttr('aria-required');
- jQuery('#jform_php_batchmove').removeClass('required');
+ updateFieldRequired('php_batchcopy',1);
+ jQuery('#jform_php_batchcopy').removeAttr('required');
+ jQuery('#jform_php_batchcopy').removeAttr('aria-required');
+ jQuery('#jform_php_batchcopy').removeClass('required');
jform_vvvvvxmvxg_required = true;
}
}
}
// the vvvvvxn function
-function vvvvvxn(add_php_before_publish_vvvvvxn)
+function vvvvvxn(add_php_batchmove_vvvvvxn)
{
// set the function logic
- if (add_php_before_publish_vvvvvxn == 1)
+ if (add_php_batchmove_vvvvvxn == 1)
{
- jQuery('#jform_php_before_publish').closest('.control-group').show();
+ jQuery('#jform_php_batchmove').closest('.control-group').show();
if (jform_vvvvvxnvxh_required)
{
- updateFieldRequired('php_before_publish',0);
- jQuery('#jform_php_before_publish').prop('required','required');
- jQuery('#jform_php_before_publish').attr('aria-required',true);
- jQuery('#jform_php_before_publish').addClass('required');
+ updateFieldRequired('php_batchmove',0);
+ jQuery('#jform_php_batchmove').prop('required','required');
+ jQuery('#jform_php_batchmove').attr('aria-required',true);
+ jQuery('#jform_php_batchmove').addClass('required');
jform_vvvvvxnvxh_required = false;
}
}
else
{
- jQuery('#jform_php_before_publish').closest('.control-group').hide();
+ jQuery('#jform_php_batchmove').closest('.control-group').hide();
if (!jform_vvvvvxnvxh_required)
{
- updateFieldRequired('php_before_publish',1);
- jQuery('#jform_php_before_publish').removeAttr('required');
- jQuery('#jform_php_before_publish').removeAttr('aria-required');
- jQuery('#jform_php_before_publish').removeClass('required');
+ updateFieldRequired('php_batchmove',1);
+ jQuery('#jform_php_batchmove').removeAttr('required');
+ jQuery('#jform_php_batchmove').removeAttr('aria-required');
+ jQuery('#jform_php_batchmove').removeClass('required');
jform_vvvvvxnvxh_required = true;
}
}
}
// the vvvvvxo function
-function vvvvvxo(add_php_after_publish_vvvvvxo)
+function vvvvvxo(add_php_before_publish_vvvvvxo)
{
// set the function logic
- if (add_php_after_publish_vvvvvxo == 1)
+ if (add_php_before_publish_vvvvvxo == 1)
{
- jQuery('#jform_php_after_publish').closest('.control-group').show();
+ jQuery('#jform_php_before_publish').closest('.control-group').show();
if (jform_vvvvvxovxi_required)
{
- updateFieldRequired('php_after_publish',0);
- jQuery('#jform_php_after_publish').prop('required','required');
- jQuery('#jform_php_after_publish').attr('aria-required',true);
- jQuery('#jform_php_after_publish').addClass('required');
+ updateFieldRequired('php_before_publish',0);
+ jQuery('#jform_php_before_publish').prop('required','required');
+ jQuery('#jform_php_before_publish').attr('aria-required',true);
+ jQuery('#jform_php_before_publish').addClass('required');
jform_vvvvvxovxi_required = false;
}
}
else
{
- jQuery('#jform_php_after_publish').closest('.control-group').hide();
+ jQuery('#jform_php_before_publish').closest('.control-group').hide();
if (!jform_vvvvvxovxi_required)
{
- updateFieldRequired('php_after_publish',1);
- jQuery('#jform_php_after_publish').removeAttr('required');
- jQuery('#jform_php_after_publish').removeAttr('aria-required');
- jQuery('#jform_php_after_publish').removeClass('required');
+ updateFieldRequired('php_before_publish',1);
+ jQuery('#jform_php_before_publish').removeAttr('required');
+ jQuery('#jform_php_before_publish').removeAttr('aria-required');
+ jQuery('#jform_php_before_publish').removeClass('required');
jform_vvvvvxovxi_required = true;
}
}
}
// the vvvvvxp function
-function vvvvvxp(add_php_before_delete_vvvvvxp)
+function vvvvvxp(add_php_after_publish_vvvvvxp)
{
// set the function logic
- if (add_php_before_delete_vvvvvxp == 1)
+ if (add_php_after_publish_vvvvvxp == 1)
{
- jQuery('#jform_php_before_delete').closest('.control-group').show();
+ jQuery('#jform_php_after_publish').closest('.control-group').show();
if (jform_vvvvvxpvxj_required)
{
- updateFieldRequired('php_before_delete',0);
- jQuery('#jform_php_before_delete').prop('required','required');
- jQuery('#jform_php_before_delete').attr('aria-required',true);
- jQuery('#jform_php_before_delete').addClass('required');
+ updateFieldRequired('php_after_publish',0);
+ jQuery('#jform_php_after_publish').prop('required','required');
+ jQuery('#jform_php_after_publish').attr('aria-required',true);
+ jQuery('#jform_php_after_publish').addClass('required');
jform_vvvvvxpvxj_required = false;
}
}
else
{
- jQuery('#jform_php_before_delete').closest('.control-group').hide();
+ jQuery('#jform_php_after_publish').closest('.control-group').hide();
if (!jform_vvvvvxpvxj_required)
{
- updateFieldRequired('php_before_delete',1);
- jQuery('#jform_php_before_delete').removeAttr('required');
- jQuery('#jform_php_before_delete').removeAttr('aria-required');
- jQuery('#jform_php_before_delete').removeClass('required');
+ updateFieldRequired('php_after_publish',1);
+ jQuery('#jform_php_after_publish').removeAttr('required');
+ jQuery('#jform_php_after_publish').removeAttr('aria-required');
+ jQuery('#jform_php_after_publish').removeClass('required');
jform_vvvvvxpvxj_required = true;
}
}
}
// the vvvvvxq function
-function vvvvvxq(add_php_after_delete_vvvvvxq)
+function vvvvvxq(add_php_before_delete_vvvvvxq)
{
// set the function logic
- if (add_php_after_delete_vvvvvxq == 1)
+ if (add_php_before_delete_vvvvvxq == 1)
{
- jQuery('#jform_php_after_delete').closest('.control-group').show();
+ jQuery('#jform_php_before_delete').closest('.control-group').show();
if (jform_vvvvvxqvxk_required)
{
- updateFieldRequired('php_after_delete',0);
- jQuery('#jform_php_after_delete').prop('required','required');
- jQuery('#jform_php_after_delete').attr('aria-required',true);
- jQuery('#jform_php_after_delete').addClass('required');
+ updateFieldRequired('php_before_delete',0);
+ jQuery('#jform_php_before_delete').prop('required','required');
+ jQuery('#jform_php_before_delete').attr('aria-required',true);
+ jQuery('#jform_php_before_delete').addClass('required');
jform_vvvvvxqvxk_required = false;
}
}
else
{
- jQuery('#jform_php_after_delete').closest('.control-group').hide();
+ jQuery('#jform_php_before_delete').closest('.control-group').hide();
if (!jform_vvvvvxqvxk_required)
{
- updateFieldRequired('php_after_delete',1);
- jQuery('#jform_php_after_delete').removeAttr('required');
- jQuery('#jform_php_after_delete').removeAttr('aria-required');
- jQuery('#jform_php_after_delete').removeClass('required');
+ updateFieldRequired('php_before_delete',1);
+ jQuery('#jform_php_before_delete').removeAttr('required');
+ jQuery('#jform_php_before_delete').removeAttr('aria-required');
+ jQuery('#jform_php_before_delete').removeClass('required');
jform_vvvvvxqvxk_required = true;
}
}
}
// the vvvvvxr function
-function vvvvvxr(add_php_document_vvvvvxr)
+function vvvvvxr(add_php_after_delete_vvvvvxr)
{
// set the function logic
- if (add_php_document_vvvvvxr == 1)
+ if (add_php_after_delete_vvvvvxr == 1)
{
- jQuery('#jform_php_document').closest('.control-group').show();
+ jQuery('#jform_php_after_delete').closest('.control-group').show();
if (jform_vvvvvxrvxl_required)
{
- updateFieldRequired('php_document',0);
- jQuery('#jform_php_document').prop('required','required');
- jQuery('#jform_php_document').attr('aria-required',true);
- jQuery('#jform_php_document').addClass('required');
+ updateFieldRequired('php_after_delete',0);
+ jQuery('#jform_php_after_delete').prop('required','required');
+ jQuery('#jform_php_after_delete').attr('aria-required',true);
+ jQuery('#jform_php_after_delete').addClass('required');
jform_vvvvvxrvxl_required = false;
}
}
else
{
- jQuery('#jform_php_document').closest('.control-group').hide();
+ jQuery('#jform_php_after_delete').closest('.control-group').hide();
if (!jform_vvvvvxrvxl_required)
{
- updateFieldRequired('php_document',1);
- jQuery('#jform_php_document').removeAttr('required');
- jQuery('#jform_php_document').removeAttr('aria-required');
- jQuery('#jform_php_document').removeClass('required');
+ updateFieldRequired('php_after_delete',1);
+ jQuery('#jform_php_after_delete').removeAttr('required');
+ jQuery('#jform_php_after_delete').removeAttr('aria-required');
+ jQuery('#jform_php_after_delete').removeClass('required');
jform_vvvvvxrvxl_required = true;
}
}
}
// the vvvvvxs function
-function vvvvvxs(add_sql_vvvvvxs)
+function vvvvvxs(add_php_document_vvvvvxs)
{
// set the function logic
- if (add_sql_vvvvvxs == 1)
+ if (add_php_document_vvvvvxs == 1)
{
- jQuery('#jform_source').closest('.control-group').show();
+ jQuery('#jform_php_document').closest('.control-group').show();
if (jform_vvvvvxsvxm_required)
{
- updateFieldRequired('source',0);
- jQuery('#jform_source').prop('required','required');
- jQuery('#jform_source').attr('aria-required',true);
- jQuery('#jform_source').addClass('required');
+ updateFieldRequired('php_document',0);
+ jQuery('#jform_php_document').prop('required','required');
+ jQuery('#jform_php_document').attr('aria-required',true);
+ jQuery('#jform_php_document').addClass('required');
jform_vvvvvxsvxm_required = false;
}
}
else
{
- jQuery('#jform_source').closest('.control-group').hide();
+ jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_vvvvvxsvxm_required)
{
- updateFieldRequired('source',1);
- jQuery('#jform_source').removeAttr('required');
- jQuery('#jform_source').removeAttr('aria-required');
- jQuery('#jform_source').removeClass('required');
+ updateFieldRequired('php_document',1);
+ jQuery('#jform_php_document').removeAttr('required');
+ jQuery('#jform_php_document').removeAttr('aria-required');
+ jQuery('#jform_php_document').removeClass('required');
jform_vvvvvxsvxm_required = true;
}
}
}
// the vvvvvxt function
-function vvvvvxt(source_vvvvvxt,add_sql_vvvvvxt)
+function vvvvvxt(add_sql_vvvvvxt)
{
// set the function logic
- if (source_vvvvvxt == 2 && add_sql_vvvvvxt == 1)
+ if (add_sql_vvvvvxt == 1)
{
- jQuery('#jform_sql').closest('.control-group').show();
+ jQuery('#jform_source').closest('.control-group').show();
if (jform_vvvvvxtvxn_required)
{
- updateFieldRequired('sql',0);
- jQuery('#jform_sql').prop('required','required');
- jQuery('#jform_sql').attr('aria-required',true);
- jQuery('#jform_sql').addClass('required');
+ updateFieldRequired('source',0);
+ jQuery('#jform_source').prop('required','required');
+ jQuery('#jform_source').attr('aria-required',true);
+ jQuery('#jform_source').addClass('required');
jform_vvvvvxtvxn_required = false;
}
}
else
{
- jQuery('#jform_sql').closest('.control-group').hide();
+ jQuery('#jform_source').closest('.control-group').hide();
if (!jform_vvvvvxtvxn_required)
{
- updateFieldRequired('sql',1);
- jQuery('#jform_sql').removeAttr('required');
- jQuery('#jform_sql').removeAttr('aria-required');
- jQuery('#jform_sql').removeClass('required');
+ updateFieldRequired('source',1);
+ jQuery('#jform_source').removeAttr('required');
+ jQuery('#jform_source').removeAttr('aria-required');
+ jQuery('#jform_source').removeClass('required');
jform_vvvvvxtvxn_required = true;
}
}
}
-// the vvvvvxv function
-function vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv)
+// the vvvvvxu function
+function vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu)
{
// set the function logic
- if (source_vvvvvxv == 1 && add_sql_vvvvvxv == 1)
+ if (source_vvvvvxu == 2 && add_sql_vvvvvxu == 1)
+ {
+ jQuery('#jform_sql').closest('.control-group').show();
+ if (jform_vvvvvxuvxo_required)
+ {
+ updateFieldRequired('sql',0);
+ jQuery('#jform_sql').prop('required','required');
+ jQuery('#jform_sql').attr('aria-required',true);
+ jQuery('#jform_sql').addClass('required');
+ jform_vvvvvxuvxo_required = false;
+ }
+
+ }
+ else
+ {
+ jQuery('#jform_sql').closest('.control-group').hide();
+ if (!jform_vvvvvxuvxo_required)
+ {
+ updateFieldRequired('sql',1);
+ jQuery('#jform_sql').removeAttr('required');
+ jQuery('#jform_sql').removeAttr('aria-required');
+ jQuery('#jform_sql').removeClass('required');
+ jform_vvvvvxuvxo_required = true;
+ }
+ }
+}
+
+// the vvvvvxw function
+function vvvvvxw(source_vvvvvxw,add_sql_vvvvvxw)
+{
+ // set the function logic
+ if (source_vvvvvxw == 1 && add_sql_vvvvvxw == 1)
{
jQuery('#jform_addtables').closest('.control-group').show();
}
@@ -908,139 +908,139 @@ function vvvvvxv(source_vvvvvxv,add_sql_vvvvvxv)
}
}
-// the vvvvvxx function
-function vvvvvxx(add_custom_import_vvvvvxx)
+// the vvvvvxy function
+function vvvvvxy(add_custom_import_vvvvvxy)
{
// set the function logic
- if (add_custom_import_vvvvvxx == 1)
+ if (add_custom_import_vvvvvxy == 1)
{
jQuery('#jform_html_import_view').closest('.control-group').show();
- if (jform_vvvvvxxvxo_required)
+ if (jform_vvvvvxyvxp_required)
{
updateFieldRequired('html_import_view',0);
jQuery('#jform_html_import_view').prop('required','required');
jQuery('#jform_html_import_view').attr('aria-required',true);
jQuery('#jform_html_import_view').addClass('required');
- jform_vvvvvxxvxo_required = false;
+ jform_vvvvvxyvxp_required = false;
}
jQuery('.note_advanced_import').closest('.control-group').show();
jQuery('#jform_php_import_display').closest('.control-group').show();
- if (jform_vvvvvxxvxp_required)
+ if (jform_vvvvvxyvxq_required)
{
updateFieldRequired('php_import_display',0);
jQuery('#jform_php_import_display').prop('required','required');
jQuery('#jform_php_import_display').attr('aria-required',true);
jQuery('#jform_php_import_display').addClass('required');
- jform_vvvvvxxvxp_required = false;
+ jform_vvvvvxyvxq_required = false;
}
jQuery('#jform_php_import_ext').closest('.control-group').show();
- if (jform_vvvvvxxvxq_required)
+ if (jform_vvvvvxyvxr_required)
{
updateFieldRequired('php_import_ext',0);
jQuery('#jform_php_import_ext').prop('required','required');
jQuery('#jform_php_import_ext').attr('aria-required',true);
jQuery('#jform_php_import_ext').addClass('required');
- jform_vvvvvxxvxq_required = false;
+ jform_vvvvvxyvxr_required = false;
}
jQuery('#jform_php_import').closest('.control-group').show();
- if (jform_vvvvvxxvxr_required)
+ if (jform_vvvvvxyvxs_required)
{
updateFieldRequired('php_import',0);
jQuery('#jform_php_import').prop('required','required');
jQuery('#jform_php_import').attr('aria-required',true);
jQuery('#jform_php_import').addClass('required');
- jform_vvvvvxxvxr_required = false;
+ jform_vvvvvxyvxs_required = false;
}
jQuery('#jform_php_import_save').closest('.control-group').show();
- if (jform_vvvvvxxvxs_required)
+ if (jform_vvvvvxyvxt_required)
{
updateFieldRequired('php_import_save',0);
jQuery('#jform_php_import_save').prop('required','required');
jQuery('#jform_php_import_save').attr('aria-required',true);
jQuery('#jform_php_import_save').addClass('required');
- jform_vvvvvxxvxs_required = false;
+ jform_vvvvvxyvxt_required = false;
}
jQuery('#jform_php_import_setdata').closest('.control-group').show();
- if (jform_vvvvvxxvxt_required)
+ if (jform_vvvvvxyvxu_required)
{
updateFieldRequired('php_import_setdata',0);
jQuery('#jform_php_import_setdata').prop('required','required');
jQuery('#jform_php_import_setdata').attr('aria-required',true);
jQuery('#jform_php_import_setdata').addClass('required');
- jform_vvvvvxxvxt_required = false;
+ jform_vvvvvxyvxu_required = false;
}
}
else
{
jQuery('#jform_html_import_view').closest('.control-group').hide();
- if (!jform_vvvvvxxvxo_required)
+ if (!jform_vvvvvxyvxp_required)
{
updateFieldRequired('html_import_view',1);
jQuery('#jform_html_import_view').removeAttr('required');
jQuery('#jform_html_import_view').removeAttr('aria-required');
jQuery('#jform_html_import_view').removeClass('required');
- jform_vvvvvxxvxo_required = true;
+ jform_vvvvvxyvxp_required = true;
}
jQuery('.note_advanced_import').closest('.control-group').hide();
jQuery('#jform_php_import_display').closest('.control-group').hide();
- if (!jform_vvvvvxxvxp_required)
+ if (!jform_vvvvvxyvxq_required)
{
updateFieldRequired('php_import_display',1);
jQuery('#jform_php_import_display').removeAttr('required');
jQuery('#jform_php_import_display').removeAttr('aria-required');
jQuery('#jform_php_import_display').removeClass('required');
- jform_vvvvvxxvxp_required = true;
+ jform_vvvvvxyvxq_required = true;
}
jQuery('#jform_php_import_ext').closest('.control-group').hide();
- if (!jform_vvvvvxxvxq_required)
+ if (!jform_vvvvvxyvxr_required)
{
updateFieldRequired('php_import_ext',1);
jQuery('#jform_php_import_ext').removeAttr('required');
jQuery('#jform_php_import_ext').removeAttr('aria-required');
jQuery('#jform_php_import_ext').removeClass('required');
- jform_vvvvvxxvxq_required = true;
+ jform_vvvvvxyvxr_required = true;
}
jQuery('#jform_php_import').closest('.control-group').hide();
- if (!jform_vvvvvxxvxr_required)
+ if (!jform_vvvvvxyvxs_required)
{
updateFieldRequired('php_import',1);
jQuery('#jform_php_import').removeAttr('required');
jQuery('#jform_php_import').removeAttr('aria-required');
jQuery('#jform_php_import').removeClass('required');
- jform_vvvvvxxvxr_required = true;
+ jform_vvvvvxyvxs_required = true;
}
jQuery('#jform_php_import_save').closest('.control-group').hide();
- if (!jform_vvvvvxxvxs_required)
+ if (!jform_vvvvvxyvxt_required)
{
updateFieldRequired('php_import_save',1);
jQuery('#jform_php_import_save').removeAttr('required');
jQuery('#jform_php_import_save').removeAttr('aria-required');
jQuery('#jform_php_import_save').removeClass('required');
- jform_vvvvvxxvxs_required = true;
+ jform_vvvvvxyvxt_required = true;
}
jQuery('#jform_php_import_setdata').closest('.control-group').hide();
- if (!jform_vvvvvxxvxt_required)
+ if (!jform_vvvvvxyvxu_required)
{
updateFieldRequired('php_import_setdata',1);
jQuery('#jform_php_import_setdata').removeAttr('required');
jQuery('#jform_php_import_setdata').removeAttr('aria-required');
jQuery('#jform_php_import_setdata').removeClass('required');
- jform_vvvvvxxvxt_required = true;
+ jform_vvvvvxyvxu_required = true;
}
}
}
-// the vvvvvxy function
-function vvvvvxy(add_custom_import_vvvvvxy)
+// the vvvvvxz function
+function vvvvvxz(add_custom_import_vvvvvxz)
{
// set the function logic
- if (add_custom_import_vvvvvxy == 0)
+ if (add_custom_import_vvvvvxz == 0)
{
jQuery('.note_beginner_import').closest('.control-group').show();
}
@@ -1050,51 +1050,51 @@ function vvvvvxy(add_custom_import_vvvvvxy)
}
}
-// the vvvvvxz function
-function vvvvvxz(add_custom_button_vvvvvxz)
+// the vvvvvya function
+function vvvvvya(add_custom_button_vvvvvya)
{
// set the function logic
- if (add_custom_button_vvvvvxz == 1)
+ if (add_custom_button_vvvvvya == 1)
{
jQuery('#jform_custom_button').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
- if (jform_vvvvvxzvxu_required)
+ if (jform_vvvvvyavxv_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
- jform_vvvvvxzvxu_required = false;
+ jform_vvvvvyavxv_required = false;
}
jQuery('#jform_php_controller_list').closest('.control-group').show();
- if (jform_vvvvvxzvxv_required)
+ if (jform_vvvvvyavxw_required)
{
updateFieldRequired('php_controller_list',0);
jQuery('#jform_php_controller_list').prop('required','required');
jQuery('#jform_php_controller_list').attr('aria-required',true);
jQuery('#jform_php_controller_list').addClass('required');
- jform_vvvvvxzvxv_required = false;
+ jform_vvvvvyavxw_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
- if (jform_vvvvvxzvxw_required)
+ if (jform_vvvvvyavxx_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
- jform_vvvvvxzvxw_required = false;
+ jform_vvvvvyavxx_required = false;
}
jQuery('#jform_php_model_list').closest('.control-group').show();
- if (jform_vvvvvxzvxx_required)
+ if (jform_vvvvvyavxy_required)
{
updateFieldRequired('php_model_list',0);
jQuery('#jform_php_model_list').prop('required','required');
jQuery('#jform_php_model_list').attr('aria-required',true);
jQuery('#jform_php_model_list').addClass('required');
- jform_vvvvvxzvxx_required = false;
+ jform_vvvvvyavxy_required = false;
}
}
@@ -1102,40 +1102,40 @@ function vvvvvxz(add_custom_button_vvvvvxz)
{
jQuery('#jform_custom_button').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
- if (!jform_vvvvvxzvxu_required)
+ if (!jform_vvvvvyavxv_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
- jform_vvvvvxzvxu_required = true;
+ jform_vvvvvyavxv_required = true;
}
jQuery('#jform_php_controller_list').closest('.control-group').hide();
- if (!jform_vvvvvxzvxv_required)
+ if (!jform_vvvvvyavxw_required)
{
updateFieldRequired('php_controller_list',1);
jQuery('#jform_php_controller_list').removeAttr('required');
jQuery('#jform_php_controller_list').removeAttr('aria-required');
jQuery('#jform_php_controller_list').removeClass('required');
- jform_vvvvvxzvxv_required = true;
+ jform_vvvvvyavxw_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
- if (!jform_vvvvvxzvxw_required)
+ if (!jform_vvvvvyavxx_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
- jform_vvvvvxzvxw_required = true;
+ jform_vvvvvyavxx_required = true;
}
jQuery('#jform_php_model_list').closest('.control-group').hide();
- if (!jform_vvvvvxzvxx_required)
+ if (!jform_vvvvvyavxy_required)
{
updateFieldRequired('php_model_list',1);
jQuery('#jform_php_model_list').removeAttr('required');
jQuery('#jform_php_model_list').removeAttr('aria-required');
jQuery('#jform_php_model_list').removeClass('required');
- jform_vvvvvxzvxx_required = true;
+ jform_vvvvvyavxy_required = true;
}
}
}
diff --git a/admin/models/forms/custom_admin_view.js b/admin/models/forms/custom_admin_view.js
index 466d2f9f4..c9d6046b7 100644
--- a/admin/models/forms/custom_admin_view.js
+++ b/admin/models/forms/custom_admin_view.js
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage custom_admin_view.js
@@ -23,255 +23,255 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
-jform_vvvvvyavya_required = false;
jform_vvvvvybvyb_required = false;
jform_vvvvvycvyc_required = false;
jform_vvvvvydvyd_required = false;
jform_vvvvvyevye_required = false;
jform_vvvvvyfvyf_required = false;
jform_vvvvvygvyg_required = false;
-jform_vvvvvygvyh_required = false;
+jform_vvvvvyhvyh_required = false;
jform_vvvvvyhvyi_required = false;
+jform_vvvvvyivyj_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var add_php_view_vvvvvya = jQuery("#jform_add_php_view input[type='radio']:checked").val();
- vvvvvya(add_php_view_vvvvvya);
+ var add_php_view_vvvvvyb = jQuery("#jform_add_php_view input[type='radio']:checked").val();
+ vvvvvyb(add_php_view_vvvvvyb);
- var add_php_jview_display_vvvvvyb = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
- vvvvvyb(add_php_jview_display_vvvvvyb);
+ var add_php_jview_display_vvvvvyc = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
+ vvvvvyc(add_php_jview_display_vvvvvyc);
- var add_php_jview_vvvvvyc = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
- vvvvvyc(add_php_jview_vvvvvyc);
+ var add_php_jview_vvvvvyd = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
+ vvvvvyd(add_php_jview_vvvvvyd);
- var add_php_document_vvvvvyd = jQuery("#jform_add_php_document input[type='radio']:checked").val();
- vvvvvyd(add_php_document_vvvvvyd);
+ var add_php_document_vvvvvye = jQuery("#jform_add_php_document input[type='radio']:checked").val();
+ vvvvvye(add_php_document_vvvvvye);
- var add_css_document_vvvvvye = jQuery("#jform_add_css_document input[type='radio']:checked").val();
- vvvvvye(add_css_document_vvvvvye);
+ var add_css_document_vvvvvyf = jQuery("#jform_add_css_document input[type='radio']:checked").val();
+ vvvvvyf(add_css_document_vvvvvyf);
- var add_js_document_vvvvvyf = jQuery("#jform_add_js_document input[type='radio']:checked").val();
- vvvvvyf(add_js_document_vvvvvyf);
+ var add_js_document_vvvvvyg = jQuery("#jform_add_js_document input[type='radio']:checked").val();
+ vvvvvyg(add_js_document_vvvvvyg);
- var add_custom_button_vvvvvyg = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
- vvvvvyg(add_custom_button_vvvvvyg);
+ var add_custom_button_vvvvvyh = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
+ vvvvvyh(add_custom_button_vvvvvyh);
- var add_css_vvvvvyh = jQuery("#jform_add_css input[type='radio']:checked").val();
- vvvvvyh(add_css_vvvvvyh);
+ var add_css_vvvvvyi = jQuery("#jform_add_css input[type='radio']:checked").val();
+ vvvvvyi(add_css_vvvvvyi);
});
-// the vvvvvya function
-function vvvvvya(add_php_view_vvvvvya)
+// the vvvvvyb function
+function vvvvvyb(add_php_view_vvvvvyb)
{
// set the function logic
- if (add_php_view_vvvvvya == 1)
+ if (add_php_view_vvvvvyb == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
- if (jform_vvvvvyavya_required)
+ if (jform_vvvvvybvyb_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
- jform_vvvvvyavya_required = false;
- }
-
- }
- else
- {
- jQuery('#jform_php_view').closest('.control-group').hide();
- if (!jform_vvvvvyavya_required)
- {
- updateFieldRequired('php_view',1);
- jQuery('#jform_php_view').removeAttr('required');
- jQuery('#jform_php_view').removeAttr('aria-required');
- jQuery('#jform_php_view').removeClass('required');
- jform_vvvvvyavya_required = true;
- }
- }
-}
-
-// the vvvvvyb function
-function vvvvvyb(add_php_jview_display_vvvvvyb)
-{
- // set the function logic
- if (add_php_jview_display_vvvvvyb == 1)
- {
- jQuery('#jform_php_jview_display').closest('.control-group').show();
- if (jform_vvvvvybvyb_required)
- {
- updateFieldRequired('php_jview_display',0);
- jQuery('#jform_php_jview_display').prop('required','required');
- jQuery('#jform_php_jview_display').attr('aria-required',true);
- jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvybvyb_required = false;
}
}
else
{
- jQuery('#jform_php_jview_display').closest('.control-group').hide();
+ jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvybvyb_required)
{
- updateFieldRequired('php_jview_display',1);
- jQuery('#jform_php_jview_display').removeAttr('required');
- jQuery('#jform_php_jview_display').removeAttr('aria-required');
- jQuery('#jform_php_jview_display').removeClass('required');
+ updateFieldRequired('php_view',1);
+ jQuery('#jform_php_view').removeAttr('required');
+ jQuery('#jform_php_view').removeAttr('aria-required');
+ jQuery('#jform_php_view').removeClass('required');
jform_vvvvvybvyb_required = true;
}
}
}
// the vvvvvyc function
-function vvvvvyc(add_php_jview_vvvvvyc)
+function vvvvvyc(add_php_jview_display_vvvvvyc)
{
// set the function logic
- if (add_php_jview_vvvvvyc == 1)
+ if (add_php_jview_display_vvvvvyc == 1)
{
- jQuery('#jform_php_jview').closest('.control-group').show();
+ jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvycvyc_required)
{
- updateFieldRequired('php_jview',0);
- jQuery('#jform_php_jview').prop('required','required');
- jQuery('#jform_php_jview').attr('aria-required',true);
- jQuery('#jform_php_jview').addClass('required');
+ updateFieldRequired('php_jview_display',0);
+ jQuery('#jform_php_jview_display').prop('required','required');
+ jQuery('#jform_php_jview_display').attr('aria-required',true);
+ jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvycvyc_required = false;
}
}
else
{
- jQuery('#jform_php_jview').closest('.control-group').hide();
+ jQuery('#jform_php_jview_display').closest('.control-group').hide();
if (!jform_vvvvvycvyc_required)
{
- updateFieldRequired('php_jview',1);
- jQuery('#jform_php_jview').removeAttr('required');
- jQuery('#jform_php_jview').removeAttr('aria-required');
- jQuery('#jform_php_jview').removeClass('required');
+ updateFieldRequired('php_jview_display',1);
+ jQuery('#jform_php_jview_display').removeAttr('required');
+ jQuery('#jform_php_jview_display').removeAttr('aria-required');
+ jQuery('#jform_php_jview_display').removeClass('required');
jform_vvvvvycvyc_required = true;
}
}
}
// the vvvvvyd function
-function vvvvvyd(add_php_document_vvvvvyd)
+function vvvvvyd(add_php_jview_vvvvvyd)
{
// set the function logic
- if (add_php_document_vvvvvyd == 1)
+ if (add_php_jview_vvvvvyd == 1)
{
- jQuery('#jform_php_document').closest('.control-group').show();
+ jQuery('#jform_php_jview').closest('.control-group').show();
if (jform_vvvvvydvyd_required)
{
- updateFieldRequired('php_document',0);
- jQuery('#jform_php_document').prop('required','required');
- jQuery('#jform_php_document').attr('aria-required',true);
- jQuery('#jform_php_document').addClass('required');
+ updateFieldRequired('php_jview',0);
+ jQuery('#jform_php_jview').prop('required','required');
+ jQuery('#jform_php_jview').attr('aria-required',true);
+ jQuery('#jform_php_jview').addClass('required');
jform_vvvvvydvyd_required = false;
}
}
else
{
- jQuery('#jform_php_document').closest('.control-group').hide();
+ jQuery('#jform_php_jview').closest('.control-group').hide();
if (!jform_vvvvvydvyd_required)
{
- updateFieldRequired('php_document',1);
- jQuery('#jform_php_document').removeAttr('required');
- jQuery('#jform_php_document').removeAttr('aria-required');
- jQuery('#jform_php_document').removeClass('required');
+ updateFieldRequired('php_jview',1);
+ jQuery('#jform_php_jview').removeAttr('required');
+ jQuery('#jform_php_jview').removeAttr('aria-required');
+ jQuery('#jform_php_jview').removeClass('required');
jform_vvvvvydvyd_required = true;
}
}
}
// the vvvvvye function
-function vvvvvye(add_css_document_vvvvvye)
+function vvvvvye(add_php_document_vvvvvye)
{
// set the function logic
- if (add_css_document_vvvvvye == 1)
+ if (add_php_document_vvvvvye == 1)
{
- jQuery('#jform_css_document').closest('.control-group').show();
+ jQuery('#jform_php_document').closest('.control-group').show();
if (jform_vvvvvyevye_required)
{
- updateFieldRequired('css_document',0);
- jQuery('#jform_css_document').prop('required','required');
- jQuery('#jform_css_document').attr('aria-required',true);
- jQuery('#jform_css_document').addClass('required');
+ updateFieldRequired('php_document',0);
+ jQuery('#jform_php_document').prop('required','required');
+ jQuery('#jform_php_document').attr('aria-required',true);
+ jQuery('#jform_php_document').addClass('required');
jform_vvvvvyevye_required = false;
}
}
else
{
- jQuery('#jform_css_document').closest('.control-group').hide();
+ jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_vvvvvyevye_required)
{
- updateFieldRequired('css_document',1);
- jQuery('#jform_css_document').removeAttr('required');
- jQuery('#jform_css_document').removeAttr('aria-required');
- jQuery('#jform_css_document').removeClass('required');
+ updateFieldRequired('php_document',1);
+ jQuery('#jform_php_document').removeAttr('required');
+ jQuery('#jform_php_document').removeAttr('aria-required');
+ jQuery('#jform_php_document').removeClass('required');
jform_vvvvvyevye_required = true;
}
}
}
// the vvvvvyf function
-function vvvvvyf(add_js_document_vvvvvyf)
+function vvvvvyf(add_css_document_vvvvvyf)
{
// set the function logic
- if (add_js_document_vvvvvyf == 1)
+ if (add_css_document_vvvvvyf == 1)
{
- jQuery('#jform_js_document').closest('.control-group').show();
+ jQuery('#jform_css_document').closest('.control-group').show();
if (jform_vvvvvyfvyf_required)
{
- updateFieldRequired('js_document',0);
- jQuery('#jform_js_document').prop('required','required');
- jQuery('#jform_js_document').attr('aria-required',true);
- jQuery('#jform_js_document').addClass('required');
+ updateFieldRequired('css_document',0);
+ jQuery('#jform_css_document').prop('required','required');
+ jQuery('#jform_css_document').attr('aria-required',true);
+ jQuery('#jform_css_document').addClass('required');
jform_vvvvvyfvyf_required = false;
}
}
else
{
- jQuery('#jform_js_document').closest('.control-group').hide();
+ jQuery('#jform_css_document').closest('.control-group').hide();
if (!jform_vvvvvyfvyf_required)
{
- updateFieldRequired('js_document',1);
- jQuery('#jform_js_document').removeAttr('required');
- jQuery('#jform_js_document').removeAttr('aria-required');
- jQuery('#jform_js_document').removeClass('required');
+ updateFieldRequired('css_document',1);
+ jQuery('#jform_css_document').removeAttr('required');
+ jQuery('#jform_css_document').removeAttr('aria-required');
+ jQuery('#jform_css_document').removeClass('required');
jform_vvvvvyfvyf_required = true;
}
}
}
// the vvvvvyg function
-function vvvvvyg(add_custom_button_vvvvvyg)
+function vvvvvyg(add_js_document_vvvvvyg)
{
// set the function logic
- if (add_custom_button_vvvvvyg == 1)
+ if (add_js_document_vvvvvyg == 1)
+ {
+ jQuery('#jform_js_document').closest('.control-group').show();
+ if (jform_vvvvvygvyg_required)
+ {
+ updateFieldRequired('js_document',0);
+ jQuery('#jform_js_document').prop('required','required');
+ jQuery('#jform_js_document').attr('aria-required',true);
+ jQuery('#jform_js_document').addClass('required');
+ jform_vvvvvygvyg_required = false;
+ }
+
+ }
+ else
+ {
+ jQuery('#jform_js_document').closest('.control-group').hide();
+ if (!jform_vvvvvygvyg_required)
+ {
+ updateFieldRequired('js_document',1);
+ jQuery('#jform_js_document').removeAttr('required');
+ jQuery('#jform_js_document').removeAttr('aria-required');
+ jQuery('#jform_js_document').removeClass('required');
+ jform_vvvvvygvyg_required = true;
+ }
+ }
+}
+
+// the vvvvvyh function
+function vvvvvyh(add_custom_button_vvvvvyh)
+{
+ // set the function logic
+ if (add_custom_button_vvvvvyh == 1)
{
jQuery('#jform_custom_button').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
- if (jform_vvvvvygvyg_required)
+ if (jform_vvvvvyhvyh_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
- jform_vvvvvygvyg_required = false;
+ jform_vvvvvyhvyh_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
- if (jform_vvvvvygvyh_required)
+ if (jform_vvvvvyhvyi_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
- jform_vvvvvygvyh_required = false;
+ jform_vvvvvyhvyi_required = false;
}
}
@@ -279,53 +279,53 @@ function vvvvvyg(add_custom_button_vvvvvyg)
{
jQuery('#jform_custom_button').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
- if (!jform_vvvvvygvyg_required)
+ if (!jform_vvvvvyhvyh_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
- jform_vvvvvygvyg_required = true;
+ jform_vvvvvyhvyh_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
- if (!jform_vvvvvygvyh_required)
+ if (!jform_vvvvvyhvyi_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
- jform_vvvvvygvyh_required = true;
+ jform_vvvvvyhvyi_required = true;
}
}
}
-// the vvvvvyh function
-function vvvvvyh(add_css_vvvvvyh)
+// the vvvvvyi function
+function vvvvvyi(add_css_vvvvvyi)
{
// set the function logic
- if (add_css_vvvvvyh == 1)
+ if (add_css_vvvvvyi == 1)
{
jQuery('#jform_css').closest('.control-group').show();
- if (jform_vvvvvyhvyi_required)
+ if (jform_vvvvvyivyj_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
- jform_vvvvvyhvyi_required = false;
+ jform_vvvvvyivyj_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
- if (!jform_vvvvvyhvyi_required)
+ if (!jform_vvvvvyivyj_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
- jform_vvvvvyhvyi_required = true;
+ jform_vvvvvyivyj_required = true;
}
}
}
@@ -366,6 +366,7 @@ function isSet(val)
return false;
}
+
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){
@@ -410,12 +411,12 @@ function getSnippetDetails(id){
jQuery('.snippet-usage').append(usage);
}
})
-}
-
+}
+
function getDynamicValues_server(dynamicId){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
+ var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
- var request = 'token='+token+'&view=template&id='+dynamicId;
+ var request = 'token='+token+'&view=custom_admin_view&id='+dynamicId;
}
return jQuery.ajax({
type: 'GET',
@@ -437,10 +438,10 @@ function getDynamicValues(id){
});
}
})
-}
-
+}
+
function getLayoutDetails_server(id){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
+ var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLayoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
@@ -463,8 +464,8 @@ function getLayoutDetails(id){
});
}
})
-}
-
+}
+
function getTemplateDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.templateDetails&format=json";
if(token.length > 0 && id > 0){
@@ -489,30 +490,4 @@ function getTemplateDetails(id){
});
}
})
-}
-
-function getDynamicFormDetails_server(id){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
- if(token.length > 0 && id > 0){
- var request = 'token='+token+'&id='+id;
- }
- return jQuery.ajax({
- type: 'GET',
- url: getUrl,
- dataType: 'jsonp',
- data: request,
- jsonp: 'callback'
- });
-}
-
-function getDynamicFormDetails(id){
- getTemplateDetails_server(id).done(function(result) {
- if(result){
- jQuery('#details').append(result);
- // make sure the code bocks are active
- jQuery("code").click(function() {
- jQuery(this).selText().addClass("selected");
- });
- }
- })
-}
+}
diff --git a/admin/models/forms/custom_admin_view.xml b/admin/models/forms/custom_admin_view.xml
index a94f3e9f2..213c93323 100644
--- a/admin/models/forms/custom_admin_view.xml
+++ b/admin/models/forms/custom_admin_view.xml
@@ -158,195 +158,6 @@
required="false"
button="true"
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO
-
-
-
+
-
-
-
-
-
-
@@ -415,6 +200,241 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
-
-
diff --git a/admin/models/forms/custom_code.js b/admin/models/forms/custom_code.js
index 5ca7124ea..075c69a18 100644
--- a/admin/models/forms/custom_code.js
+++ b/admin/models/forms/custom_code.js
@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
- @build 26th April, 2017
+ @build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage custom_code.js
@@ -23,43 +23,43 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
-jform_vvvvvzpvzp_required = false;
jform_vvvvvzqvzq_required = false;
-jform_vvvvvzqvzr_required = false;
-jform_vvvvvzqvzs_required = false;
+jform_vvvvvzrvzr_required = false;
+jform_vvvvvzrvzs_required = false;
+jform_vvvvvzrvzt_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var target_vvvvvzp = jQuery("#jform_target input[type='radio']:checked").val();
- vvvvvzp(target_vvvvvzp);
-
var target_vvvvvzq = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzq(target_vvvvvzq);
var target_vvvvvzr = jQuery("#jform_target input[type='radio']:checked").val();
- var type_vvvvvzr = jQuery("#jform_type input[type='radio']:checked").val();
- vvvvvzr(target_vvvvvzr,type_vvvvvzr);
+ vvvvvzr(target_vvvvvzr);
- var type_vvvvvzs = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzs = jQuery("#jform_target input[type='radio']:checked").val();
- vvvvvzs(type_vvvvvzs,target_vvvvvzs);
+ var type_vvvvvzs = jQuery("#jform_type input[type='radio']:checked").val();
+ vvvvvzs(target_vvvvvzs,type_vvvvvzs);
+
+ var type_vvvvvzt = jQuery("#jform_type input[type='radio']:checked").val();
+ var target_vvvvvzt = jQuery("#jform_target input[type='radio']:checked").val();
+ vvvvvzt(type_vvvvvzt,target_vvvvvzt);
});
-// the vvvvvzp function
-function vvvvvzp(target_vvvvvzp)
+// the vvvvvzq function
+function vvvvvzq(target_vvvvvzq)
{
// set the function logic
- if (target_vvvvvzp == 2)
+ if (target_vvvvvzq == 2)
{
jQuery('#jform_function_name').closest('.control-group').show();
- if (jform_vvvvvzpvzp_required)
+ if (jform_vvvvvzqvzq_required)
{
updateFieldRequired('function_name',0);
jQuery('#jform_function_name').prop('required','required');
jQuery('#jform_function_name').attr('aria-required',true);
jQuery('#jform_function_name').addClass('required');
- jform_vvvvvzpvzp_required = false;
+ jform_vvvvvzqvzq_required = false;
}
jQuery('.note_jcb_placeholder').closest('.control-group').show();
@@ -68,99 +68,99 @@ function vvvvvzp(target_vvvvvzp)
else
{
jQuery('#jform_function_name').closest('.control-group').hide();
- if (!jform_vvvvvzpvzp_required)
+ if (!jform_vvvvvzqvzq_required)
{
updateFieldRequired('function_name',1);
jQuery('#jform_function_name').removeAttr('required');
jQuery('#jform_function_name').removeAttr('aria-required');
jQuery('#jform_function_name').removeClass('required');
- jform_vvvvvzpvzp_required = true;
+ jform_vvvvvzqvzq_required = true;
}
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
jQuery('#jform_system_name').closest('.control-group').hide();
}
}
-// the vvvvvzq function
-function vvvvvzq(target_vvvvvzq)
+// the vvvvvzr function
+function vvvvvzr(target_vvvvvzr)
{
// set the function logic
- if (target_vvvvvzq == 1)
+ if (target_vvvvvzr == 1)
{
jQuery('#jform_component').closest('.control-group').show();
- if (jform_vvvvvzqvzq_required)
+ if (jform_vvvvvzrvzr_required)
{
updateFieldRequired('component',0);
jQuery('#jform_component').prop('required','required');
jQuery('#jform_component').attr('aria-required',true);
jQuery('#jform_component').addClass('required');
- jform_vvvvvzqvzq_required = false;
+ jform_vvvvvzrvzr_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
- if (jform_vvvvvzqvzr_required)
+ if (jform_vvvvvzrvzs_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
- jform_vvvvvzqvzr_required = false;
+ jform_vvvvvzrvzs_required = false;
}
jQuery('#jform_from_line').closest('.control-group').show();
jQuery('#jform_hashtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
jQuery('#jform_type').closest('.control-group').show();
- if (jform_vvvvvzqvzs_required)
+ if (jform_vvvvvzrvzt_required)
{
updateFieldRequired('type',0);
jQuery('#jform_type').prop('required','required');
jQuery('#jform_type').attr('aria-required',true);
jQuery('#jform_type').addClass('required');
- jform_vvvvvzqvzs_required = false;
+ jform_vvvvvzrvzt_required = false;
}
}
else
{
jQuery('#jform_component').closest('.control-group').hide();
- if (!jform_vvvvvzqvzq_required)
+ if (!jform_vvvvvzrvzr_required)
{
updateFieldRequired('component',1);
jQuery('#jform_component').removeAttr('required');
jQuery('#jform_component').removeAttr('aria-required');
jQuery('#jform_component').removeClass('required');
- jform_vvvvvzqvzq_required = true;
+ jform_vvvvvzrvzr_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
- if (!jform_vvvvvzqvzr_required)
+ if (!jform_vvvvvzrvzs_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
- jform_vvvvvzqvzr_required = true;
+ jform_vvvvvzrvzs_required = true;
}
jQuery('#jform_from_line').closest('.control-group').hide();
jQuery('#jform_hashtarget').closest('.control-group').hide();
jQuery('#jform_to_line').closest('.control-group').hide();
jQuery('#jform_type').closest('.control-group').hide();
- if (!jform_vvvvvzqvzs_required)
+ if (!jform_vvvvvzrvzt_required)
{
updateFieldRequired('type',1);
jQuery('#jform_type').removeAttr('required');
jQuery('#jform_type').removeAttr('aria-required');
jQuery('#jform_type').removeClass('required');
- jform_vvvvvzqvzs_required = true;
+ jform_vvvvvzrvzt_required = true;
}
}
}
-// the vvvvvzr function
-function vvvvvzr(target_vvvvvzr,type_vvvvvzr)
+// the vvvvvzs function
+function vvvvvzs(target_vvvvvzs,type_vvvvvzs)
{
// set the function logic
- if (target_vvvvvzr == 1 && type_vvvvvzr == 1)
+ if (target_vvvvvzs == 1 && type_vvvvvzs == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@@ -172,11 +172,11 @@ function vvvvvzr(target_vvvvvzr,type_vvvvvzr)
}
}
-// the vvvvvzs function
-function vvvvvzs(type_vvvvvzs,target_vvvvvzs)
+// the vvvvvzt function
+function vvvvvzt(type_vvvvvzt,target_vvvvvzt)
{
// set the function logic
- if (type_vvvvvzs == 1 && target_vvvvvzs == 1)
+ if (type_vvvvvzt == 1 && target_vvvvvzt == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
diff --git a/admin/models/forms/dynamic_get.js b/admin/models/forms/dynamic_get.js
index 720dd84db..b85744982 100644
--- a/admin/models/forms/dynamic_get.js
+++ b/admin/models/forms/dynamic_get.js
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage dynamic_get.js
@@ -23,33 +23,30 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
-jform_vvvvvytvyx_required = false;
jform_vvvvvyuvyy_required = false;
jform_vvvvvyvvyz_required = false;
jform_vvvvvywvza_required = false;
jform_vvvvvyxvzb_required = false;
jform_vvvvvyyvzc_required = false;
-jform_vvvvvzdvzd_required = false;
-jform_vvvvvzfvze_required = false;
+jform_vvvvvyzvzd_required = false;
+jform_vvvvvzevze_required = false;
jform_vvvvvzgvzf_required = false;
-jform_vvvvvzivzg_required = false;
-jform_vvvvvzivzh_required = false;
+jform_vvvvvzhvzg_required = false;
+jform_vvvvvzjvzh_required = false;
jform_vvvvvzjvzi_required = false;
jform_vvvvvzkvzj_required = false;
jform_vvvvvzlvzk_required = false;
-jform_vvvvvznvzl_required = false;
-jform_vvvvvznvzm_required = false;
-jform_vvvvvznvzn_required = false;
+jform_vvvvvzmvzl_required = false;
+jform_vvvvvzovzm_required = false;
+jform_vvvvvzovzn_required = false;
jform_vvvvvzovzo_required = false;
+jform_vvvvvzpvzp_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var gettype_vvvvvyt = jQuery("#jform_gettype").val();
- vvvvvyt(gettype_vvvvvyt);
-
- var main_source_vvvvvyu = jQuery("#jform_main_source").val();
- vvvvvyu(main_source_vvvvvyu);
+ var gettype_vvvvvyu = jQuery("#jform_gettype").val();
+ vvvvvyu(gettype_vvvvvyu);
var main_source_vvvvvyv = jQuery("#jform_main_source").val();
vvvvvyv(main_source_vvvvvyv);
@@ -60,157 +57,105 @@ jQuery(document).ready(function()
var main_source_vvvvvyx = jQuery("#jform_main_source").val();
vvvvvyx(main_source_vvvvvyx);
- var addcalculation_vvvvvyy = jQuery("#jform_addcalculation input[type='radio']:checked").val();
- vvvvvyy(addcalculation_vvvvvyy);
+ var main_source_vvvvvyy = jQuery("#jform_main_source").val();
+ vvvvvyy(main_source_vvvvvyy);
var addcalculation_vvvvvyz = jQuery("#jform_addcalculation input[type='radio']:checked").val();
- var gettype_vvvvvyz = jQuery("#jform_gettype").val();
- vvvvvyz(addcalculation_vvvvvyz,gettype_vvvvvyz);
+ vvvvvyz(addcalculation_vvvvvyz);
var addcalculation_vvvvvza = jQuery("#jform_addcalculation input[type='radio']:checked").val();
var gettype_vvvvvza = jQuery("#jform_gettype").val();
vvvvvza(addcalculation_vvvvvza,gettype_vvvvvza);
- var main_source_vvvvvzd = jQuery("#jform_main_source").val();
- vvvvvzd(main_source_vvvvvzd);
+ var addcalculation_vvvvvzb = jQuery("#jform_addcalculation input[type='radio']:checked").val();
+ var gettype_vvvvvzb = jQuery("#jform_gettype").val();
+ vvvvvzb(addcalculation_vvvvvzb,gettype_vvvvvzb);
var main_source_vvvvvze = jQuery("#jform_main_source").val();
vvvvvze(main_source_vvvvvze);
- var add_php_before_getitem_vvvvvzf = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
- var gettype_vvvvvzf = jQuery("#jform_gettype").val();
- vvvvvzf(add_php_before_getitem_vvvvvzf,gettype_vvvvvzf);
+ var main_source_vvvvvzf = jQuery("#jform_main_source").val();
+ vvvvvzf(main_source_vvvvvzf);
- var add_php_after_getitem_vvvvvzg = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
+ var add_php_before_getitem_vvvvvzg = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
var gettype_vvvvvzg = jQuery("#jform_gettype").val();
- vvvvvzg(add_php_after_getitem_vvvvvzg,gettype_vvvvvzg);
+ vvvvvzg(add_php_before_getitem_vvvvvzg,gettype_vvvvvzg);
- var gettype_vvvvvzi = jQuery("#jform_gettype").val();
- vvvvvzi(gettype_vvvvvzi);
+ var add_php_after_getitem_vvvvvzh = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
+ var gettype_vvvvvzh = jQuery("#jform_gettype").val();
+ vvvvvzh(add_php_after_getitem_vvvvvzh,gettype_vvvvvzh);
- var add_php_getlistquery_vvvvvzj = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzj = jQuery("#jform_gettype").val();
- vvvvvzj(add_php_getlistquery_vvvvvzj,gettype_vvvvvzj);
+ vvvvvzj(gettype_vvvvvzj);
- var add_php_before_getitems_vvvvvzk = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
+ var add_php_getlistquery_vvvvvzk = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
var gettype_vvvvvzk = jQuery("#jform_gettype").val();
- vvvvvzk(add_php_before_getitems_vvvvvzk,gettype_vvvvvzk);
+ vvvvvzk(add_php_getlistquery_vvvvvzk,gettype_vvvvvzk);
- var add_php_after_getitems_vvvvvzl = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
+ var add_php_before_getitems_vvvvvzl = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
var gettype_vvvvvzl = jQuery("#jform_gettype").val();
- vvvvvzl(add_php_after_getitems_vvvvvzl,gettype_vvvvvzl);
+ vvvvvzl(add_php_before_getitems_vvvvvzl,gettype_vvvvvzl);
- var gettype_vvvvvzn = jQuery("#jform_gettype").val();
- vvvvvzn(gettype_vvvvvzn);
+ var add_php_after_getitems_vvvvvzm = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
+ var gettype_vvvvvzm = jQuery("#jform_gettype").val();
+ vvvvvzm(add_php_after_getitems_vvvvvzm,gettype_vvvvvzm);
var gettype_vvvvvzo = jQuery("#jform_gettype").val();
vvvvvzo(gettype_vvvvvzo);
+
+ var gettype_vvvvvzp = jQuery("#jform_gettype").val();
+ vvvvvzp(gettype_vvvvvzp);
});
-// the vvvvvyt function
-function vvvvvyt(gettype_vvvvvyt)
+// the vvvvvyu function
+function vvvvvyu(gettype_vvvvvyu)
{
- if (isSet(gettype_vvvvvyt) && gettype_vvvvvyt.constructor !== Array)
+ if (isSet(gettype_vvvvvyu) && gettype_vvvvvyu.constructor !== Array)
{
- var temp_vvvvvyt = gettype_vvvvvyt;
- var gettype_vvvvvyt = [];
- gettype_vvvvvyt.push(temp_vvvvvyt);
+ var temp_vvvvvyu = gettype_vvvvvyu;
+ var gettype_vvvvvyu = [];
+ gettype_vvvvvyu.push(temp_vvvvvyu);
}
- else if (!isSet(gettype_vvvvvyt))
+ else if (!isSet(gettype_vvvvvyu))
{
- var gettype_vvvvvyt = [];
+ var gettype_vvvvvyu = [];
}
- var gettype = gettype_vvvvvyt.some(gettype_vvvvvyt_SomeFunc);
+ var gettype = gettype_vvvvvyu.some(gettype_vvvvvyu_SomeFunc);
// set this function logic
if (gettype)
{
jQuery('#jform_getcustom').closest('.control-group').show();
- if (jform_vvvvvytvyx_required)
+ if (jform_vvvvvyuvyy_required)
{
updateFieldRequired('getcustom',0);
jQuery('#jform_getcustom').prop('required','required');
jQuery('#jform_getcustom').attr('aria-required',true);
jQuery('#jform_getcustom').addClass('required');
- jform_vvvvvytvyx_required = false;
- }
-
- }
- else
- {
- jQuery('#jform_getcustom').closest('.control-group').hide();
- if (!jform_vvvvvytvyx_required)
- {
- updateFieldRequired('getcustom',1);
- jQuery('#jform_getcustom').removeAttr('required');
- jQuery('#jform_getcustom').removeAttr('aria-required');
- jQuery('#jform_getcustom').removeClass('required');
- jform_vvvvvytvyx_required = true;
- }
- }
-}
-
-// the vvvvvyt Some function
-function gettype_vvvvvyt_SomeFunc(gettype_vvvvvyt)
-{
- // set the function logic
- if (gettype_vvvvvyt == 3 || gettype_vvvvvyt == 4)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvvyu function
-function vvvvvyu(main_source_vvvvvyu)
-{
- if (isSet(main_source_vvvvvyu) && main_source_vvvvvyu.constructor !== Array)
- {
- var temp_vvvvvyu = main_source_vvvvvyu;
- var main_source_vvvvvyu = [];
- main_source_vvvvvyu.push(temp_vvvvvyu);
- }
- else if (!isSet(main_source_vvvvvyu))
- {
- var main_source_vvvvvyu = [];
- }
- var main_source = main_source_vvvvvyu.some(main_source_vvvvvyu_SomeFunc);
-
-
- // set this function logic
- if (main_source)
- {
- jQuery('#jform_view_table_main').closest('.control-group').show();
- if (jform_vvvvvyuvyy_required)
- {
- updateFieldRequired('view_table_main',0);
- jQuery('#jform_view_table_main').prop('required','required');
- jQuery('#jform_view_table_main').attr('aria-required',true);
- jQuery('#jform_view_table_main').addClass('required');
jform_vvvvvyuvyy_required = false;
}
}
else
{
- jQuery('#jform_view_table_main').closest('.control-group').hide();
+ jQuery('#jform_getcustom').closest('.control-group').hide();
if (!jform_vvvvvyuvyy_required)
{
- updateFieldRequired('view_table_main',1);
- jQuery('#jform_view_table_main').removeAttr('required');
- jQuery('#jform_view_table_main').removeAttr('aria-required');
- jQuery('#jform_view_table_main').removeClass('required');
+ updateFieldRequired('getcustom',1);
+ jQuery('#jform_getcustom').removeAttr('required');
+ jQuery('#jform_getcustom').removeAttr('aria-required');
+ jQuery('#jform_getcustom').removeClass('required');
jform_vvvvvyuvyy_required = true;
}
}
}
// the vvvvvyu Some function
-function main_source_vvvvvyu_SomeFunc(main_source_vvvvvyu)
+function gettype_vvvvvyu_SomeFunc(gettype_vvvvvyu)
{
// set the function logic
- if (main_source_vvvvvyu == 1)
+ if (gettype_vvvvvyu == 3 || gettype_vvvvvyu == 4)
{
return true;
}
@@ -236,26 +181,26 @@ function vvvvvyv(main_source_vvvvvyv)
// set this function logic
if (main_source)
{
- jQuery('#jform_view_selection').closest('.control-group').show();
+ jQuery('#jform_view_table_main').closest('.control-group').show();
if (jform_vvvvvyvvyz_required)
{
- updateFieldRequired('view_selection',0);
- jQuery('#jform_view_selection').prop('required','required');
- jQuery('#jform_view_selection').attr('aria-required',true);
- jQuery('#jform_view_selection').addClass('required');
+ updateFieldRequired('view_table_main',0);
+ jQuery('#jform_view_table_main').prop('required','required');
+ jQuery('#jform_view_table_main').attr('aria-required',true);
+ jQuery('#jform_view_table_main').addClass('required');
jform_vvvvvyvvyz_required = false;
}
}
else
{
- jQuery('#jform_view_selection').closest('.control-group').hide();
+ jQuery('#jform_view_table_main').closest('.control-group').hide();
if (!jform_vvvvvyvvyz_required)
{
- updateFieldRequired('view_selection',1);
- jQuery('#jform_view_selection').removeAttr('required');
- jQuery('#jform_view_selection').removeAttr('aria-required');
- jQuery('#jform_view_selection').removeClass('required');
+ updateFieldRequired('view_table_main',1);
+ jQuery('#jform_view_table_main').removeAttr('required');
+ jQuery('#jform_view_table_main').removeAttr('aria-required');
+ jQuery('#jform_view_table_main').removeClass('required');
jform_vvvvvyvvyz_required = true;
}
}
@@ -291,26 +236,26 @@ function vvvvvyw(main_source_vvvvvyw)
// set this function logic
if (main_source)
{
- jQuery('#jform_db_table_main').closest('.control-group').show();
+ jQuery('#jform_view_selection').closest('.control-group').show();
if (jform_vvvvvywvza_required)
{
- updateFieldRequired('db_table_main',0);
- jQuery('#jform_db_table_main').prop('required','required');
- jQuery('#jform_db_table_main').attr('aria-required',true);
- jQuery('#jform_db_table_main').addClass('required');
+ updateFieldRequired('view_selection',0);
+ jQuery('#jform_view_selection').prop('required','required');
+ jQuery('#jform_view_selection').attr('aria-required',true);
+ jQuery('#jform_view_selection').addClass('required');
jform_vvvvvywvza_required = false;
}
}
else
{
- jQuery('#jform_db_table_main').closest('.control-group').hide();
+ jQuery('#jform_view_selection').closest('.control-group').hide();
if (!jform_vvvvvywvza_required)
{
- updateFieldRequired('db_table_main',1);
- jQuery('#jform_db_table_main').removeAttr('required');
- jQuery('#jform_db_table_main').removeAttr('aria-required');
- jQuery('#jform_db_table_main').removeClass('required');
+ updateFieldRequired('view_selection',1);
+ jQuery('#jform_view_selection').removeAttr('required');
+ jQuery('#jform_view_selection').removeAttr('aria-required');
+ jQuery('#jform_view_selection').removeClass('required');
jform_vvvvvywvza_required = true;
}
}
@@ -320,7 +265,7 @@ function vvvvvyw(main_source_vvvvvyw)
function main_source_vvvvvyw_SomeFunc(main_source_vvvvvyw)
{
// set the function logic
- if (main_source_vvvvvyw == 2)
+ if (main_source_vvvvvyw == 1)
{
return true;
}
@@ -346,26 +291,26 @@ function vvvvvyx(main_source_vvvvvyx)
// set this function logic
if (main_source)
{
- jQuery('#jform_db_selection').closest('.control-group').show();
+ jQuery('#jform_db_table_main').closest('.control-group').show();
if (jform_vvvvvyxvzb_required)
{
- updateFieldRequired('db_selection',0);
- jQuery('#jform_db_selection').prop('required','required');
- jQuery('#jform_db_selection').attr('aria-required',true);
- jQuery('#jform_db_selection').addClass('required');
+ updateFieldRequired('db_table_main',0);
+ jQuery('#jform_db_table_main').prop('required','required');
+ jQuery('#jform_db_table_main').attr('aria-required',true);
+ jQuery('#jform_db_table_main').addClass('required');
jform_vvvvvyxvzb_required = false;
}
}
else
{
- jQuery('#jform_db_selection').closest('.control-group').hide();
+ jQuery('#jform_db_table_main').closest('.control-group').hide();
if (!jform_vvvvvyxvzb_required)
{
- updateFieldRequired('db_selection',1);
- jQuery('#jform_db_selection').removeAttr('required');
- jQuery('#jform_db_selection').removeAttr('aria-required');
- jQuery('#jform_db_selection').removeClass('required');
+ updateFieldRequired('db_table_main',1);
+ jQuery('#jform_db_table_main').removeAttr('required');
+ jQuery('#jform_db_table_main').removeAttr('aria-required');
+ jQuery('#jform_db_table_main').removeClass('required');
jform_vvvvvyxvzb_required = true;
}
}
@@ -383,95 +328,89 @@ function main_source_vvvvvyx_SomeFunc(main_source_vvvvvyx)
}
// the vvvvvyy function
-function vvvvvyy(addcalculation_vvvvvyy)
+function vvvvvyy(main_source_vvvvvyy)
{
- // set the function logic
- if (addcalculation_vvvvvyy == 1)
+ if (isSet(main_source_vvvvvyy) && main_source_vvvvvyy.constructor !== Array)
{
- jQuery('#jform_php_calculation').closest('.control-group').show();
+ var temp_vvvvvyy = main_source_vvvvvyy;
+ var main_source_vvvvvyy = [];
+ main_source_vvvvvyy.push(temp_vvvvvyy);
+ }
+ else if (!isSet(main_source_vvvvvyy))
+ {
+ var main_source_vvvvvyy = [];
+ }
+ var main_source = main_source_vvvvvyy.some(main_source_vvvvvyy_SomeFunc);
+
+
+ // set this function logic
+ if (main_source)
+ {
+ jQuery('#jform_db_selection').closest('.control-group').show();
if (jform_vvvvvyyvzc_required)
{
- updateFieldRequired('php_calculation',0);
- jQuery('#jform_php_calculation').prop('required','required');
- jQuery('#jform_php_calculation').attr('aria-required',true);
- jQuery('#jform_php_calculation').addClass('required');
+ updateFieldRequired('db_selection',0);
+ jQuery('#jform_db_selection').prop('required','required');
+ jQuery('#jform_db_selection').attr('aria-required',true);
+ jQuery('#jform_db_selection').addClass('required');
jform_vvvvvyyvzc_required = false;
}
}
else
{
- jQuery('#jform_php_calculation').closest('.control-group').hide();
+ jQuery('#jform_db_selection').closest('.control-group').hide();
if (!jform_vvvvvyyvzc_required)
{
- updateFieldRequired('php_calculation',1);
- jQuery('#jform_php_calculation').removeAttr('required');
- jQuery('#jform_php_calculation').removeAttr('aria-required');
- jQuery('#jform_php_calculation').removeClass('required');
+ updateFieldRequired('db_selection',1);
+ jQuery('#jform_db_selection').removeAttr('required');
+ jQuery('#jform_db_selection').removeAttr('aria-required');
+ jQuery('#jform_db_selection').removeClass('required');
jform_vvvvvyyvzc_required = true;
}
}
}
-// the vvvvvyz function
-function vvvvvyz(addcalculation_vvvvvyz,gettype_vvvvvyz)
+// the vvvvvyy Some function
+function main_source_vvvvvyy_SomeFunc(main_source_vvvvvyy)
{
- if (isSet(addcalculation_vvvvvyz) && addcalculation_vvvvvyz.constructor !== Array)
+ // set the function logic
+ if (main_source_vvvvvyy == 2)
{
- var temp_vvvvvyz = addcalculation_vvvvvyz;
- var addcalculation_vvvvvyz = [];
- addcalculation_vvvvvyz.push(temp_vvvvvyz);
- }
- else if (!isSet(addcalculation_vvvvvyz))
- {
- var addcalculation_vvvvvyz = [];
- }
- var addcalculation = addcalculation_vvvvvyz.some(addcalculation_vvvvvyz_SomeFunc);
-
- if (isSet(gettype_vvvvvyz) && gettype_vvvvvyz.constructor !== Array)
- {
- var temp_vvvvvyz = gettype_vvvvvyz;
- var gettype_vvvvvyz = [];
- gettype_vvvvvyz.push(temp_vvvvvyz);
- }
- else if (!isSet(gettype_vvvvvyz))
- {
- var gettype_vvvvvyz = [];
- }
- var gettype = gettype_vvvvvyz.some(gettype_vvvvvyz_SomeFunc);
-
-
- // set this function logic
- if (addcalculation && gettype)
- {
- jQuery('.note_calculation_item').closest('.control-group').show();
- }
- else
- {
- jQuery('.note_calculation_item').closest('.control-group').hide();
+ return true;
}
+ return false;
}
-// the vvvvvyz Some function
-function addcalculation_vvvvvyz_SomeFunc(addcalculation_vvvvvyz)
+// the vvvvvyz function
+function vvvvvyz(addcalculation_vvvvvyz)
{
// set the function logic
if (addcalculation_vvvvvyz == 1)
{
- return true;
- }
- return false;
-}
+ jQuery('#jform_php_calculation').closest('.control-group').show();
+ if (jform_vvvvvyzvzd_required)
+ {
+ updateFieldRequired('php_calculation',0);
+ jQuery('#jform_php_calculation').prop('required','required');
+ jQuery('#jform_php_calculation').attr('aria-required',true);
+ jQuery('#jform_php_calculation').addClass('required');
+ jform_vvvvvyzvzd_required = false;
+ }
-// the vvvvvyz Some function
-function gettype_vvvvvyz_SomeFunc(gettype_vvvvvyz)
-{
- // set the function logic
- if (gettype_vvvvvyz == 1 || gettype_vvvvvyz == 3)
- {
- return true;
}
- return false;
+ else
+ {
+ jQuery('#jform_php_calculation').closest('.control-group').hide();
+ if (!jform_vvvvvyzvzd_required)
+ {
+ updateFieldRequired('php_calculation',1);
+ jQuery('#jform_php_calculation').removeAttr('required');
+ jQuery('#jform_php_calculation').removeAttr('aria-required');
+ jQuery('#jform_php_calculation').removeClass('required');
+ jform_vvvvvyzvzd_required = true;
+ }
+ }
}
// the vvvvvza function
@@ -505,11 +444,11 @@ function vvvvvza(addcalculation_vvvvvza,gettype_vvvvvza)
// set this function logic
if (addcalculation && gettype)
{
- jQuery('.note_calculation_items').closest('.control-group').show();
+ jQuery('.note_calculation_item').closest('.control-group').show();
}
else
{
- jQuery('.note_calculation_items').closest('.control-group').hide();
+ jQuery('.note_calculation_item').closest('.control-group').hide();
}
}
@@ -528,62 +467,68 @@ function addcalculation_vvvvvza_SomeFunc(addcalculation_vvvvvza)
function gettype_vvvvvza_SomeFunc(gettype_vvvvvza)
{
// set the function logic
- if (gettype_vvvvvza == 2 || gettype_vvvvvza == 4)
+ if (gettype_vvvvvza == 1 || gettype_vvvvvza == 3)
{
return true;
}
return false;
}
-// the vvvvvzd function
-function vvvvvzd(main_source_vvvvvzd)
+// the vvvvvzb function
+function vvvvvzb(addcalculation_vvvvvzb,gettype_vvvvvzb)
{
- if (isSet(main_source_vvvvvzd) && main_source_vvvvvzd.constructor !== Array)
+ if (isSet(addcalculation_vvvvvzb) && addcalculation_vvvvvzb.constructor !== Array)
{
- var temp_vvvvvzd = main_source_vvvvvzd;
- var main_source_vvvvvzd = [];
- main_source_vvvvvzd.push(temp_vvvvvzd);
+ var temp_vvvvvzb = addcalculation_vvvvvzb;
+ var addcalculation_vvvvvzb = [];
+ addcalculation_vvvvvzb.push(temp_vvvvvzb);
}
- else if (!isSet(main_source_vvvvvzd))
+ else if (!isSet(addcalculation_vvvvvzb))
{
- var main_source_vvvvvzd = [];
+ var addcalculation_vvvvvzb = [];
}
- var main_source = main_source_vvvvvzd.some(main_source_vvvvvzd_SomeFunc);
+ var addcalculation = addcalculation_vvvvvzb.some(addcalculation_vvvvvzb_SomeFunc);
+
+ if (isSet(gettype_vvvvvzb) && gettype_vvvvvzb.constructor !== Array)
+ {
+ var temp_vvvvvzb = gettype_vvvvvzb;
+ var gettype_vvvvvzb = [];
+ gettype_vvvvvzb.push(temp_vvvvvzb);
+ }
+ else if (!isSet(gettype_vvvvvzb))
+ {
+ var gettype_vvvvvzb = [];
+ }
+ var gettype = gettype_vvvvvzb.some(gettype_vvvvvzb_SomeFunc);
// set this function logic
- if (main_source)
+ if (addcalculation && gettype)
{
- jQuery('#jform_php_custom_get').closest('.control-group').show();
- if (jform_vvvvvzdvzd_required)
- {
- updateFieldRequired('php_custom_get',0);
- jQuery('#jform_php_custom_get').prop('required','required');
- jQuery('#jform_php_custom_get').attr('aria-required',true);
- jQuery('#jform_php_custom_get').addClass('required');
- jform_vvvvvzdvzd_required = false;
- }
-
+ jQuery('.note_calculation_items').closest('.control-group').show();
}
else
{
- jQuery('#jform_php_custom_get').closest('.control-group').hide();
- if (!jform_vvvvvzdvzd_required)
- {
- updateFieldRequired('php_custom_get',1);
- jQuery('#jform_php_custom_get').removeAttr('required');
- jQuery('#jform_php_custom_get').removeAttr('aria-required');
- jQuery('#jform_php_custom_get').removeClass('required');
- jform_vvvvvzdvzd_required = true;
- }
+ jQuery('.note_calculation_items').closest('.control-group').hide();
}
}
-// the vvvvvzd Some function
-function main_source_vvvvvzd_SomeFunc(main_source_vvvvvzd)
+// the vvvvvzb Some function
+function addcalculation_vvvvvzb_SomeFunc(addcalculation_vvvvvzb)
{
// set the function logic
- if (main_source_vvvvvzd == 3)
+ if (addcalculation_vvvvvzb == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvvzb Some function
+function gettype_vvvvvzb_SomeFunc(gettype_vvvvvzb)
+{
+ // set the function logic
+ if (gettype_vvvvvzb == 2 || gettype_vvvvvzb == 4)
{
return true;
}
@@ -609,19 +554,28 @@ function vvvvvze(main_source_vvvvvze)
// set this function logic
if (main_source)
{
- jQuery('#jform_filter').closest('.control-group').show();
- jQuery('#jform_global').closest('.control-group').show();
- jQuery('#jform_where').closest('.control-group').show();
- jQuery('#jform_join_db_table').closest('.control-group').show();
- jQuery('#jform_join_view_table').closest('.control-group').show();
+ jQuery('#jform_php_custom_get').closest('.control-group').show();
+ if (jform_vvvvvzevze_required)
+ {
+ updateFieldRequired('php_custom_get',0);
+ jQuery('#jform_php_custom_get').prop('required','required');
+ jQuery('#jform_php_custom_get').attr('aria-required',true);
+ jQuery('#jform_php_custom_get').addClass('required');
+ jform_vvvvvzevze_required = false;
+ }
+
}
else
{
- jQuery('#jform_filter').closest('.control-group').hide();
- jQuery('#jform_global').closest('.control-group').hide();
- jQuery('#jform_where').closest('.control-group').hide();
- jQuery('#jform_join_db_table').closest('.control-group').hide();
- jQuery('#jform_join_view_table').closest('.control-group').hide();
+ jQuery('#jform_php_custom_get').closest('.control-group').hide();
+ if (!jform_vvvvvzevze_required)
+ {
+ updateFieldRequired('php_custom_get',1);
+ jQuery('#jform_php_custom_get').removeAttr('required');
+ jQuery('#jform_php_custom_get').removeAttr('aria-required');
+ jQuery('#jform_php_custom_get').removeClass('required');
+ jform_vvvvvzevze_required = true;
+ }
}
}
@@ -629,7 +583,7 @@ function vvvvvze(main_source_vvvvvze)
function main_source_vvvvvze_SomeFunc(main_source_vvvvvze)
{
// set the function logic
- if (main_source_vvvvvze == 1 || main_source_vvvvvze == 2)
+ if (main_source_vvvvvze == 3)
{
return true;
}
@@ -637,77 +591,47 @@ function main_source_vvvvvze_SomeFunc(main_source_vvvvvze)
}
// the vvvvvzf function
-function vvvvvzf(add_php_before_getitem_vvvvvzf,gettype_vvvvvzf)
+function vvvvvzf(main_source_vvvvvzf)
{
- if (isSet(add_php_before_getitem_vvvvvzf) && add_php_before_getitem_vvvvvzf.constructor !== Array)
+ if (isSet(main_source_vvvvvzf) && main_source_vvvvvzf.constructor !== Array)
{
- var temp_vvvvvzf = add_php_before_getitem_vvvvvzf;
- var add_php_before_getitem_vvvvvzf = [];
- add_php_before_getitem_vvvvvzf.push(temp_vvvvvzf);
+ var temp_vvvvvzf = main_source_vvvvvzf;
+ var main_source_vvvvvzf = [];
+ main_source_vvvvvzf.push(temp_vvvvvzf);
}
- else if (!isSet(add_php_before_getitem_vvvvvzf))
+ else if (!isSet(main_source_vvvvvzf))
{
- var add_php_before_getitem_vvvvvzf = [];
+ var main_source_vvvvvzf = [];
}
- var add_php_before_getitem = add_php_before_getitem_vvvvvzf.some(add_php_before_getitem_vvvvvzf_SomeFunc);
-
- if (isSet(gettype_vvvvvzf) && gettype_vvvvvzf.constructor !== Array)
- {
- var temp_vvvvvzf = gettype_vvvvvzf;
- var gettype_vvvvvzf = [];
- gettype_vvvvvzf.push(temp_vvvvvzf);
- }
- else if (!isSet(gettype_vvvvvzf))
- {
- var gettype_vvvvvzf = [];
- }
- var gettype = gettype_vvvvvzf.some(gettype_vvvvvzf_SomeFunc);
+ var main_source = main_source_vvvvvzf.some(main_source_vvvvvzf_SomeFunc);
// set this function logic
- if (add_php_before_getitem && gettype)
+ if (main_source)
{
- jQuery('#jform_php_before_getitem').closest('.control-group').show();
- if (jform_vvvvvzfvze_required)
- {
- updateFieldRequired('php_before_getitem',0);
- jQuery('#jform_php_before_getitem').prop('required','required');
- jQuery('#jform_php_before_getitem').attr('aria-required',true);
- jQuery('#jform_php_before_getitem').addClass('required');
- jform_vvvvvzfvze_required = false;
- }
-
+ jQuery('#jform_filter-lbl').closest('.control-group').show();
+ jQuery('#jform_global-lbl').closest('.control-group').show();
+ jQuery('#jform_order-lbl').closest('.control-group').show();
+ jQuery('#jform_where-lbl').closest('.control-group').show();
+ jQuery('#jform_join_db_table-lbl').closest('.control-group').show();
+ jQuery('#jform_join_view_table-lbl').closest('.control-group').show();
}
else
{
- jQuery('#jform_php_before_getitem').closest('.control-group').hide();
- if (!jform_vvvvvzfvze_required)
- {
- updateFieldRequired('php_before_getitem',1);
- jQuery('#jform_php_before_getitem').removeAttr('required');
- jQuery('#jform_php_before_getitem').removeAttr('aria-required');
- jQuery('#jform_php_before_getitem').removeClass('required');
- jform_vvvvvzfvze_required = true;
- }
+ jQuery('#jform_filter-lbl').closest('.control-group').hide();
+ jQuery('#jform_global-lbl').closest('.control-group').hide();
+ jQuery('#jform_order-lbl').closest('.control-group').hide();
+ jQuery('#jform_where-lbl').closest('.control-group').hide();
+ jQuery('#jform_join_db_table-lbl').closest('.control-group').hide();
+ jQuery('#jform_join_view_table-lbl').closest('.control-group').hide();
}
}
// the vvvvvzf Some function
-function add_php_before_getitem_vvvvvzf_SomeFunc(add_php_before_getitem_vvvvvzf)
+function main_source_vvvvvzf_SomeFunc(main_source_vvvvvzf)
{
// set the function logic
- if (add_php_before_getitem_vvvvvzf == 1)
- {
- return true;
- }
- return false;
-}
-
-// the vvvvvzf Some function
-function gettype_vvvvvzf_SomeFunc(gettype_vvvvvzf)
-{
- // set the function logic
- if (gettype_vvvvvzf == 1 || gettype_vvvvvzf == 3)
+ if (main_source_vvvvvzf == 1 || main_source_vvvvvzf == 2)
{
return true;
}
@@ -715,19 +639,19 @@ function gettype_vvvvvzf_SomeFunc(gettype_vvvvvzf)
}
// the vvvvvzg function
-function vvvvvzg(add_php_after_getitem_vvvvvzg,gettype_vvvvvzg)
+function vvvvvzg(add_php_before_getitem_vvvvvzg,gettype_vvvvvzg)
{
- if (isSet(add_php_after_getitem_vvvvvzg) && add_php_after_getitem_vvvvvzg.constructor !== Array)
+ if (isSet(add_php_before_getitem_vvvvvzg) && add_php_before_getitem_vvvvvzg.constructor !== Array)
{
- var temp_vvvvvzg = add_php_after_getitem_vvvvvzg;
- var add_php_after_getitem_vvvvvzg = [];
- add_php_after_getitem_vvvvvzg.push(temp_vvvvvzg);
+ var temp_vvvvvzg = add_php_before_getitem_vvvvvzg;
+ var add_php_before_getitem_vvvvvzg = [];
+ add_php_before_getitem_vvvvvzg.push(temp_vvvvvzg);
}
- else if (!isSet(add_php_after_getitem_vvvvvzg))
+ else if (!isSet(add_php_before_getitem_vvvvvzg))
{
- var add_php_after_getitem_vvvvvzg = [];
+ var add_php_before_getitem_vvvvvzg = [];
}
- var add_php_after_getitem = add_php_after_getitem_vvvvvzg.some(add_php_after_getitem_vvvvvzg_SomeFunc);
+ var add_php_before_getitem = add_php_before_getitem_vvvvvzg.some(add_php_before_getitem_vvvvvzg_SomeFunc);
if (isSet(gettype_vvvvvzg) && gettype_vvvvvzg.constructor !== Array)
{
@@ -743,38 +667,38 @@ function vvvvvzg(add_php_after_getitem_vvvvvzg,gettype_vvvvvzg)
// set this function logic
- if (add_php_after_getitem && gettype)
+ if (add_php_before_getitem && gettype)
{
- jQuery('#jform_php_after_getitem').closest('.control-group').show();
+ jQuery('#jform_php_before_getitem').closest('.control-group').show();
if (jform_vvvvvzgvzf_required)
{
- updateFieldRequired('php_after_getitem',0);
- jQuery('#jform_php_after_getitem').prop('required','required');
- jQuery('#jform_php_after_getitem').attr('aria-required',true);
- jQuery('#jform_php_after_getitem').addClass('required');
+ updateFieldRequired('php_before_getitem',0);
+ jQuery('#jform_php_before_getitem').prop('required','required');
+ jQuery('#jform_php_before_getitem').attr('aria-required',true);
+ jQuery('#jform_php_before_getitem').addClass('required');
jform_vvvvvzgvzf_required = false;
}
}
else
{
- jQuery('#jform_php_after_getitem').closest('.control-group').hide();
+ jQuery('#jform_php_before_getitem').closest('.control-group').hide();
if (!jform_vvvvvzgvzf_required)
{
- updateFieldRequired('php_after_getitem',1);
- jQuery('#jform_php_after_getitem').removeAttr('required');
- jQuery('#jform_php_after_getitem').removeAttr('aria-required');
- jQuery('#jform_php_after_getitem').removeClass('required');
+ updateFieldRequired('php_before_getitem',1);
+ jQuery('#jform_php_before_getitem').removeAttr('required');
+ jQuery('#jform_php_before_getitem').removeAttr('aria-required');
+ jQuery('#jform_php_before_getitem').removeClass('required');
jform_vvvvvzgvzf_required = true;
}
}
}
// the vvvvvzg Some function
-function add_php_after_getitem_vvvvvzg_SomeFunc(add_php_after_getitem_vvvvvzg)
+function add_php_before_getitem_vvvvvzg_SomeFunc(add_php_before_getitem_vvvvvzg)
{
// set the function logic
- if (add_php_after_getitem_vvvvvzg == 1)
+ if (add_php_before_getitem_vvvvvzg == 1)
{
return true;
}
@@ -792,74 +716,78 @@ function gettype_vvvvvzg_SomeFunc(gettype_vvvvvzg)
return false;
}
-// the vvvvvzi function
-function vvvvvzi(gettype_vvvvvzi)
+// the vvvvvzh function
+function vvvvvzh(add_php_after_getitem_vvvvvzh,gettype_vvvvvzh)
{
- if (isSet(gettype_vvvvvzi) && gettype_vvvvvzi.constructor !== Array)
+ if (isSet(add_php_after_getitem_vvvvvzh) && add_php_after_getitem_vvvvvzh.constructor !== Array)
{
- var temp_vvvvvzi = gettype_vvvvvzi;
- var gettype_vvvvvzi = [];
- gettype_vvvvvzi.push(temp_vvvvvzi);
+ var temp_vvvvvzh = add_php_after_getitem_vvvvvzh;
+ var add_php_after_getitem_vvvvvzh = [];
+ add_php_after_getitem_vvvvvzh.push(temp_vvvvvzh);
}
- else if (!isSet(gettype_vvvvvzi))
+ else if (!isSet(add_php_after_getitem_vvvvvzh))
{
- var gettype_vvvvvzi = [];
+ var add_php_after_getitem_vvvvvzh = [];
}
- var gettype = gettype_vvvvvzi.some(gettype_vvvvvzi_SomeFunc);
+ var add_php_after_getitem = add_php_after_getitem_vvvvvzh.some(add_php_after_getitem_vvvvvzh_SomeFunc);
+
+ if (isSet(gettype_vvvvvzh) && gettype_vvvvvzh.constructor !== Array)
+ {
+ var temp_vvvvvzh = gettype_vvvvvzh;
+ var gettype_vvvvvzh = [];
+ gettype_vvvvvzh.push(temp_vvvvvzh);
+ }
+ else if (!isSet(gettype_vvvvvzh))
+ {
+ var gettype_vvvvvzh = [];
+ }
+ var gettype = gettype_vvvvvzh.some(gettype_vvvvvzh_SomeFunc);
// set this function logic
- if (gettype)
+ if (add_php_after_getitem && gettype)
{
- jQuery('#jform_add_php_after_getitem').closest('.control-group').show();
- if (jform_vvvvvzivzg_required)
+ jQuery('#jform_php_after_getitem').closest('.control-group').show();
+ if (jform_vvvvvzhvzg_required)
{
- updateFieldRequired('add_php_after_getitem',0);
- jQuery('#jform_add_php_after_getitem').prop('required','required');
- jQuery('#jform_add_php_after_getitem').attr('aria-required',true);
- jQuery('#jform_add_php_after_getitem').addClass('required');
- jform_vvvvvzivzg_required = false;
- }
-
- jQuery('#jform_add_php_before_getitem').closest('.control-group').show();
- if (jform_vvvvvzivzh_required)
- {
- updateFieldRequired('add_php_before_getitem',0);
- jQuery('#jform_add_php_before_getitem').prop('required','required');
- jQuery('#jform_add_php_before_getitem').attr('aria-required',true);
- jQuery('#jform_add_php_before_getitem').addClass('required');
- jform_vvvvvzivzh_required = false;
+ updateFieldRequired('php_after_getitem',0);
+ jQuery('#jform_php_after_getitem').prop('required','required');
+ jQuery('#jform_php_after_getitem').attr('aria-required',true);
+ jQuery('#jform_php_after_getitem').addClass('required');
+ jform_vvvvvzhvzg_required = false;
}
}
else
{
- jQuery('#jform_add_php_after_getitem').closest('.control-group').hide();
- if (!jform_vvvvvzivzg_required)
+ jQuery('#jform_php_after_getitem').closest('.control-group').hide();
+ if (!jform_vvvvvzhvzg_required)
{
- updateFieldRequired('add_php_after_getitem',1);
- jQuery('#jform_add_php_after_getitem').removeAttr('required');
- jQuery('#jform_add_php_after_getitem').removeAttr('aria-required');
- jQuery('#jform_add_php_after_getitem').removeClass('required');
- jform_vvvvvzivzg_required = true;
- }
- jQuery('#jform_add_php_before_getitem').closest('.control-group').hide();
- if (!jform_vvvvvzivzh_required)
- {
- updateFieldRequired('add_php_before_getitem',1);
- jQuery('#jform_add_php_before_getitem').removeAttr('required');
- jQuery('#jform_add_php_before_getitem').removeAttr('aria-required');
- jQuery('#jform_add_php_before_getitem').removeClass('required');
- jform_vvvvvzivzh_required = true;
+ updateFieldRequired('php_after_getitem',1);
+ jQuery('#jform_php_after_getitem').removeAttr('required');
+ jQuery('#jform_php_after_getitem').removeAttr('aria-required');
+ jQuery('#jform_php_after_getitem').removeClass('required');
+ jform_vvvvvzhvzg_required = true;
}
}
}
-// the vvvvvzi Some function
-function gettype_vvvvvzi_SomeFunc(gettype_vvvvvzi)
+// the vvvvvzh Some function
+function add_php_after_getitem_vvvvvzh_SomeFunc(add_php_after_getitem_vvvvvzh)
{
// set the function logic
- if (gettype_vvvvvzi == 1 || gettype_vvvvvzi == 3)
+ if (add_php_after_getitem_vvvvvzh == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvvzh Some function
+function gettype_vvvvvzh_SomeFunc(gettype_vvvvvzh)
+{
+ // set the function logic
+ if (gettype_vvvvvzh == 1 || gettype_vvvvvzh == 3)
{
return true;
}
@@ -867,20 +795,8 @@ function gettype_vvvvvzi_SomeFunc(gettype_vvvvvzi)
}
// the vvvvvzj function
-function vvvvvzj(add_php_getlistquery_vvvvvzj,gettype_vvvvvzj)
+function vvvvvzj(gettype_vvvvvzj)
{
- if (isSet(add_php_getlistquery_vvvvvzj) && add_php_getlistquery_vvvvvzj.constructor !== Array)
- {
- var temp_vvvvvzj = add_php_getlistquery_vvvvvzj;
- var add_php_getlistquery_vvvvvzj = [];
- add_php_getlistquery_vvvvvzj.push(temp_vvvvvzj);
- }
- else if (!isSet(add_php_getlistquery_vvvvvzj))
- {
- var add_php_getlistquery_vvvvvzj = [];
- }
- var add_php_getlistquery = add_php_getlistquery_vvvvvzj.some(add_php_getlistquery_vvvvvzj_SomeFunc);
-
if (isSet(gettype_vvvvvzj) && gettype_vvvvvzj.constructor !== Array)
{
var temp_vvvvvzj = gettype_vvvvvzj;
@@ -895,49 +811,57 @@ function vvvvvzj(add_php_getlistquery_vvvvvzj,gettype_vvvvvzj)
// set this function logic
- if (add_php_getlistquery && gettype)
+ if (gettype)
{
- jQuery('#jform_php_getlistquery').closest('.control-group').show();
+ jQuery('#jform_add_php_after_getitem').closest('.control-group').show();
+ if (jform_vvvvvzjvzh_required)
+ {
+ updateFieldRequired('add_php_after_getitem',0);
+ jQuery('#jform_add_php_after_getitem').prop('required','required');
+ jQuery('#jform_add_php_after_getitem').attr('aria-required',true);
+ jQuery('#jform_add_php_after_getitem').addClass('required');
+ jform_vvvvvzjvzh_required = false;
+ }
+
+ jQuery('#jform_add_php_before_getitem').closest('.control-group').show();
if (jform_vvvvvzjvzi_required)
{
- updateFieldRequired('php_getlistquery',0);
- jQuery('#jform_php_getlistquery').prop('required','required');
- jQuery('#jform_php_getlistquery').attr('aria-required',true);
- jQuery('#jform_php_getlistquery').addClass('required');
+ updateFieldRequired('add_php_before_getitem',0);
+ jQuery('#jform_add_php_before_getitem').prop('required','required');
+ jQuery('#jform_add_php_before_getitem').attr('aria-required',true);
+ jQuery('#jform_add_php_before_getitem').addClass('required');
jform_vvvvvzjvzi_required = false;
}
}
else
{
- jQuery('#jform_php_getlistquery').closest('.control-group').hide();
+ jQuery('#jform_add_php_after_getitem').closest('.control-group').hide();
+ if (!jform_vvvvvzjvzh_required)
+ {
+ updateFieldRequired('add_php_after_getitem',1);
+ jQuery('#jform_add_php_after_getitem').removeAttr('required');
+ jQuery('#jform_add_php_after_getitem').removeAttr('aria-required');
+ jQuery('#jform_add_php_after_getitem').removeClass('required');
+ jform_vvvvvzjvzh_required = true;
+ }
+ jQuery('#jform_add_php_before_getitem').closest('.control-group').hide();
if (!jform_vvvvvzjvzi_required)
{
- updateFieldRequired('php_getlistquery',1);
- jQuery('#jform_php_getlistquery').removeAttr('required');
- jQuery('#jform_php_getlistquery').removeAttr('aria-required');
- jQuery('#jform_php_getlistquery').removeClass('required');
+ updateFieldRequired('add_php_before_getitem',1);
+ jQuery('#jform_add_php_before_getitem').removeAttr('required');
+ jQuery('#jform_add_php_before_getitem').removeAttr('aria-required');
+ jQuery('#jform_add_php_before_getitem').removeClass('required');
jform_vvvvvzjvzi_required = true;
}
}
}
-// the vvvvvzj Some function
-function add_php_getlistquery_vvvvvzj_SomeFunc(add_php_getlistquery_vvvvvzj)
-{
- // set the function logic
- if (add_php_getlistquery_vvvvvzj == 1)
- {
- return true;
- }
- return false;
-}
-
// the vvvvvzj Some function
function gettype_vvvvvzj_SomeFunc(gettype_vvvvvzj)
{
// set the function logic
- if (gettype_vvvvvzj == 2 || gettype_vvvvvzj == 4)
+ if (gettype_vvvvvzj == 1 || gettype_vvvvvzj == 3)
{
return true;
}
@@ -945,19 +869,19 @@ function gettype_vvvvvzj_SomeFunc(gettype_vvvvvzj)
}
// the vvvvvzk function
-function vvvvvzk(add_php_before_getitems_vvvvvzk,gettype_vvvvvzk)
+function vvvvvzk(add_php_getlistquery_vvvvvzk,gettype_vvvvvzk)
{
- if (isSet(add_php_before_getitems_vvvvvzk) && add_php_before_getitems_vvvvvzk.constructor !== Array)
+ if (isSet(add_php_getlistquery_vvvvvzk) && add_php_getlistquery_vvvvvzk.constructor !== Array)
{
- var temp_vvvvvzk = add_php_before_getitems_vvvvvzk;
- var add_php_before_getitems_vvvvvzk = [];
- add_php_before_getitems_vvvvvzk.push(temp_vvvvvzk);
+ var temp_vvvvvzk = add_php_getlistquery_vvvvvzk;
+ var add_php_getlistquery_vvvvvzk = [];
+ add_php_getlistquery_vvvvvzk.push(temp_vvvvvzk);
}
- else if (!isSet(add_php_before_getitems_vvvvvzk))
+ else if (!isSet(add_php_getlistquery_vvvvvzk))
{
- var add_php_before_getitems_vvvvvzk = [];
+ var add_php_getlistquery_vvvvvzk = [];
}
- var add_php_before_getitems = add_php_before_getitems_vvvvvzk.some(add_php_before_getitems_vvvvvzk_SomeFunc);
+ var add_php_getlistquery = add_php_getlistquery_vvvvvzk.some(add_php_getlistquery_vvvvvzk_SomeFunc);
if (isSet(gettype_vvvvvzk) && gettype_vvvvvzk.constructor !== Array)
{
@@ -973,38 +897,38 @@ function vvvvvzk(add_php_before_getitems_vvvvvzk,gettype_vvvvvzk)
// set this function logic
- if (add_php_before_getitems && gettype)
+ if (add_php_getlistquery && gettype)
{
- jQuery('#jform_php_before_getitems').closest('.control-group').show();
+ jQuery('#jform_php_getlistquery').closest('.control-group').show();
if (jform_vvvvvzkvzj_required)
{
- updateFieldRequired('php_before_getitems',0);
- jQuery('#jform_php_before_getitems').prop('required','required');
- jQuery('#jform_php_before_getitems').attr('aria-required',true);
- jQuery('#jform_php_before_getitems').addClass('required');
+ updateFieldRequired('php_getlistquery',0);
+ jQuery('#jform_php_getlistquery').prop('required','required');
+ jQuery('#jform_php_getlistquery').attr('aria-required',true);
+ jQuery('#jform_php_getlistquery').addClass('required');
jform_vvvvvzkvzj_required = false;
}
}
else
{
- jQuery('#jform_php_before_getitems').closest('.control-group').hide();
+ jQuery('#jform_php_getlistquery').closest('.control-group').hide();
if (!jform_vvvvvzkvzj_required)
{
- updateFieldRequired('php_before_getitems',1);
- jQuery('#jform_php_before_getitems').removeAttr('required');
- jQuery('#jform_php_before_getitems').removeAttr('aria-required');
- jQuery('#jform_php_before_getitems').removeClass('required');
+ updateFieldRequired('php_getlistquery',1);
+ jQuery('#jform_php_getlistquery').removeAttr('required');
+ jQuery('#jform_php_getlistquery').removeAttr('aria-required');
+ jQuery('#jform_php_getlistquery').removeClass('required');
jform_vvvvvzkvzj_required = true;
}
}
}
// the vvvvvzk Some function
-function add_php_before_getitems_vvvvvzk_SomeFunc(add_php_before_getitems_vvvvvzk)
+function add_php_getlistquery_vvvvvzk_SomeFunc(add_php_getlistquery_vvvvvzk)
{
// set the function logic
- if (add_php_before_getitems_vvvvvzk == 1)
+ if (add_php_getlistquery_vvvvvzk == 1)
{
return true;
}
@@ -1023,19 +947,19 @@ function gettype_vvvvvzk_SomeFunc(gettype_vvvvvzk)
}
// the vvvvvzl function
-function vvvvvzl(add_php_after_getitems_vvvvvzl,gettype_vvvvvzl)
+function vvvvvzl(add_php_before_getitems_vvvvvzl,gettype_vvvvvzl)
{
- if (isSet(add_php_after_getitems_vvvvvzl) && add_php_after_getitems_vvvvvzl.constructor !== Array)
+ if (isSet(add_php_before_getitems_vvvvvzl) && add_php_before_getitems_vvvvvzl.constructor !== Array)
{
- var temp_vvvvvzl = add_php_after_getitems_vvvvvzl;
- var add_php_after_getitems_vvvvvzl = [];
- add_php_after_getitems_vvvvvzl.push(temp_vvvvvzl);
+ var temp_vvvvvzl = add_php_before_getitems_vvvvvzl;
+ var add_php_before_getitems_vvvvvzl = [];
+ add_php_before_getitems_vvvvvzl.push(temp_vvvvvzl);
}
- else if (!isSet(add_php_after_getitems_vvvvvzl))
+ else if (!isSet(add_php_before_getitems_vvvvvzl))
{
- var add_php_after_getitems_vvvvvzl = [];
+ var add_php_before_getitems_vvvvvzl = [];
}
- var add_php_after_getitems = add_php_after_getitems_vvvvvzl.some(add_php_after_getitems_vvvvvzl_SomeFunc);
+ var add_php_before_getitems = add_php_before_getitems_vvvvvzl.some(add_php_before_getitems_vvvvvzl_SomeFunc);
if (isSet(gettype_vvvvvzl) && gettype_vvvvvzl.constructor !== Array)
{
@@ -1051,38 +975,38 @@ function vvvvvzl(add_php_after_getitems_vvvvvzl,gettype_vvvvvzl)
// set this function logic
- if (add_php_after_getitems && gettype)
+ if (add_php_before_getitems && gettype)
{
- jQuery('#jform_php_after_getitems').closest('.control-group').show();
+ jQuery('#jform_php_before_getitems').closest('.control-group').show();
if (jform_vvvvvzlvzk_required)
{
- updateFieldRequired('php_after_getitems',0);
- jQuery('#jform_php_after_getitems').prop('required','required');
- jQuery('#jform_php_after_getitems').attr('aria-required',true);
- jQuery('#jform_php_after_getitems').addClass('required');
+ updateFieldRequired('php_before_getitems',0);
+ jQuery('#jform_php_before_getitems').prop('required','required');
+ jQuery('#jform_php_before_getitems').attr('aria-required',true);
+ jQuery('#jform_php_before_getitems').addClass('required');
jform_vvvvvzlvzk_required = false;
}
}
else
{
- jQuery('#jform_php_after_getitems').closest('.control-group').hide();
+ jQuery('#jform_php_before_getitems').closest('.control-group').hide();
if (!jform_vvvvvzlvzk_required)
{
- updateFieldRequired('php_after_getitems',1);
- jQuery('#jform_php_after_getitems').removeAttr('required');
- jQuery('#jform_php_after_getitems').removeAttr('aria-required');
- jQuery('#jform_php_after_getitems').removeClass('required');
+ updateFieldRequired('php_before_getitems',1);
+ jQuery('#jform_php_before_getitems').removeAttr('required');
+ jQuery('#jform_php_before_getitems').removeAttr('aria-required');
+ jQuery('#jform_php_before_getitems').removeClass('required');
jform_vvvvvzlvzk_required = true;
}
}
}
// the vvvvvzl Some function
-function add_php_after_getitems_vvvvvzl_SomeFunc(add_php_after_getitems_vvvvvzl)
+function add_php_before_getitems_vvvvvzl_SomeFunc(add_php_before_getitems_vvvvvzl)
{
// set the function logic
- if (add_php_after_getitems_vvvvvzl == 1)
+ if (add_php_before_getitems_vvvvvzl == 1)
{
return true;
}
@@ -1100,93 +1024,78 @@ function gettype_vvvvvzl_SomeFunc(gettype_vvvvvzl)
return false;
}
-// the vvvvvzn function
-function vvvvvzn(gettype_vvvvvzn)
+// the vvvvvzm function
+function vvvvvzm(add_php_after_getitems_vvvvvzm,gettype_vvvvvzm)
{
- if (isSet(gettype_vvvvvzn) && gettype_vvvvvzn.constructor !== Array)
+ if (isSet(add_php_after_getitems_vvvvvzm) && add_php_after_getitems_vvvvvzm.constructor !== Array)
{
- var temp_vvvvvzn = gettype_vvvvvzn;
- var gettype_vvvvvzn = [];
- gettype_vvvvvzn.push(temp_vvvvvzn);
+ var temp_vvvvvzm = add_php_after_getitems_vvvvvzm;
+ var add_php_after_getitems_vvvvvzm = [];
+ add_php_after_getitems_vvvvvzm.push(temp_vvvvvzm);
}
- else if (!isSet(gettype_vvvvvzn))
+ else if (!isSet(add_php_after_getitems_vvvvvzm))
{
- var gettype_vvvvvzn = [];
+ var add_php_after_getitems_vvvvvzm = [];
}
- var gettype = gettype_vvvvvzn.some(gettype_vvvvvzn_SomeFunc);
+ var add_php_after_getitems = add_php_after_getitems_vvvvvzm.some(add_php_after_getitems_vvvvvzm_SomeFunc);
+
+ if (isSet(gettype_vvvvvzm) && gettype_vvvvvzm.constructor !== Array)
+ {
+ var temp_vvvvvzm = gettype_vvvvvzm;
+ var gettype_vvvvvzm = [];
+ gettype_vvvvvzm.push(temp_vvvvvzm);
+ }
+ else if (!isSet(gettype_vvvvvzm))
+ {
+ var gettype_vvvvvzm = [];
+ }
+ var gettype = gettype_vvvvvzm.some(gettype_vvvvvzm_SomeFunc);
// set this function logic
- if (gettype)
+ if (add_php_after_getitems && gettype)
{
- jQuery('#jform_add_php_after_getitems').closest('.control-group').show();
- if (jform_vvvvvznvzl_required)
+ jQuery('#jform_php_after_getitems').closest('.control-group').show();
+ if (jform_vvvvvzmvzl_required)
{
- updateFieldRequired('add_php_after_getitems',0);
- jQuery('#jform_add_php_after_getitems').prop('required','required');
- jQuery('#jform_add_php_after_getitems').attr('aria-required',true);
- jQuery('#jform_add_php_after_getitems').addClass('required');
- jform_vvvvvznvzl_required = false;
- }
-
- jQuery('#jform_add_php_before_getitems').closest('.control-group').show();
- if (jform_vvvvvznvzm_required)
- {
- updateFieldRequired('add_php_before_getitems',0);
- jQuery('#jform_add_php_before_getitems').prop('required','required');
- jQuery('#jform_add_php_before_getitems').attr('aria-required',true);
- jQuery('#jform_add_php_before_getitems').addClass('required');
- jform_vvvvvznvzm_required = false;
- }
-
- jQuery('#jform_add_php_getlistquery').closest('.control-group').show();
- if (jform_vvvvvznvzn_required)
- {
- updateFieldRequired('add_php_getlistquery',0);
- jQuery('#jform_add_php_getlistquery').prop('required','required');
- jQuery('#jform_add_php_getlistquery').attr('aria-required',true);
- jQuery('#jform_add_php_getlistquery').addClass('required');
- jform_vvvvvznvzn_required = false;
+ updateFieldRequired('php_after_getitems',0);
+ jQuery('#jform_php_after_getitems').prop('required','required');
+ jQuery('#jform_php_after_getitems').attr('aria-required',true);
+ jQuery('#jform_php_after_getitems').addClass('required');
+ jform_vvvvvzmvzl_required = false;
}
}
else
{
- jQuery('#jform_add_php_after_getitems').closest('.control-group').hide();
- if (!jform_vvvvvznvzl_required)
+ jQuery('#jform_php_after_getitems').closest('.control-group').hide();
+ if (!jform_vvvvvzmvzl_required)
{
- updateFieldRequired('add_php_after_getitems',1);
- jQuery('#jform_add_php_after_getitems').removeAttr('required');
- jQuery('#jform_add_php_after_getitems').removeAttr('aria-required');
- jQuery('#jform_add_php_after_getitems').removeClass('required');
- jform_vvvvvznvzl_required = true;
- }
- jQuery('#jform_add_php_before_getitems').closest('.control-group').hide();
- if (!jform_vvvvvznvzm_required)
- {
- updateFieldRequired('add_php_before_getitems',1);
- jQuery('#jform_add_php_before_getitems').removeAttr('required');
- jQuery('#jform_add_php_before_getitems').removeAttr('aria-required');
- jQuery('#jform_add_php_before_getitems').removeClass('required');
- jform_vvvvvznvzm_required = true;
- }
- jQuery('#jform_add_php_getlistquery').closest('.control-group').hide();
- if (!jform_vvvvvznvzn_required)
- {
- updateFieldRequired('add_php_getlistquery',1);
- jQuery('#jform_add_php_getlistquery').removeAttr('required');
- jQuery('#jform_add_php_getlistquery').removeAttr('aria-required');
- jQuery('#jform_add_php_getlistquery').removeClass('required');
- jform_vvvvvznvzn_required = true;
+ updateFieldRequired('php_after_getitems',1);
+ jQuery('#jform_php_after_getitems').removeAttr('required');
+ jQuery('#jform_php_after_getitems').removeAttr('aria-required');
+ jQuery('#jform_php_after_getitems').removeClass('required');
+ jform_vvvvvzmvzl_required = true;
}
}
}
-// the vvvvvzn Some function
-function gettype_vvvvvzn_SomeFunc(gettype_vvvvvzn)
+// the vvvvvzm Some function
+function add_php_after_getitems_vvvvvzm_SomeFunc(add_php_after_getitems_vvvvvzm)
{
// set the function logic
- if (gettype_vvvvvzn == 2 || gettype_vvvvvzn == 4)
+ if (add_php_after_getitems_vvvvvzm == 1)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvvzm Some function
+function gettype_vvvvvzm_SomeFunc(gettype_vvvvvzm)
+{
+ // set the function logic
+ if (gettype_vvvvvzm == 2 || gettype_vvvvvzm == 4)
{
return true;
}
@@ -1212,26 +1121,64 @@ function vvvvvzo(gettype_vvvvvzo)
// set this function logic
if (gettype)
{
- jQuery('#jform_pagination').closest('.control-group').show();
+ jQuery('#jform_add_php_after_getitems').closest('.control-group').show();
+ if (jform_vvvvvzovzm_required)
+ {
+ updateFieldRequired('add_php_after_getitems',0);
+ jQuery('#jform_add_php_after_getitems').prop('required','required');
+ jQuery('#jform_add_php_after_getitems').attr('aria-required',true);
+ jQuery('#jform_add_php_after_getitems').addClass('required');
+ jform_vvvvvzovzm_required = false;
+ }
+
+ jQuery('#jform_add_php_before_getitems').closest('.control-group').show();
+ if (jform_vvvvvzovzn_required)
+ {
+ updateFieldRequired('add_php_before_getitems',0);
+ jQuery('#jform_add_php_before_getitems').prop('required','required');
+ jQuery('#jform_add_php_before_getitems').attr('aria-required',true);
+ jQuery('#jform_add_php_before_getitems').addClass('required');
+ jform_vvvvvzovzn_required = false;
+ }
+
+ jQuery('#jform_add_php_getlistquery').closest('.control-group').show();
if (jform_vvvvvzovzo_required)
{
- updateFieldRequired('pagination',0);
- jQuery('#jform_pagination').prop('required','required');
- jQuery('#jform_pagination').attr('aria-required',true);
- jQuery('#jform_pagination').addClass('required');
+ updateFieldRequired('add_php_getlistquery',0);
+ jQuery('#jform_add_php_getlistquery').prop('required','required');
+ jQuery('#jform_add_php_getlistquery').attr('aria-required',true);
+ jQuery('#jform_add_php_getlistquery').addClass('required');
jform_vvvvvzovzo_required = false;
}
}
else
{
- jQuery('#jform_pagination').closest('.control-group').hide();
+ jQuery('#jform_add_php_after_getitems').closest('.control-group').hide();
+ if (!jform_vvvvvzovzm_required)
+ {
+ updateFieldRequired('add_php_after_getitems',1);
+ jQuery('#jform_add_php_after_getitems').removeAttr('required');
+ jQuery('#jform_add_php_after_getitems').removeAttr('aria-required');
+ jQuery('#jform_add_php_after_getitems').removeClass('required');
+ jform_vvvvvzovzm_required = true;
+ }
+ jQuery('#jform_add_php_before_getitems').closest('.control-group').hide();
+ if (!jform_vvvvvzovzn_required)
+ {
+ updateFieldRequired('add_php_before_getitems',1);
+ jQuery('#jform_add_php_before_getitems').removeAttr('required');
+ jQuery('#jform_add_php_before_getitems').removeAttr('aria-required');
+ jQuery('#jform_add_php_before_getitems').removeClass('required');
+ jform_vvvvvzovzn_required = true;
+ }
+ jQuery('#jform_add_php_getlistquery').closest('.control-group').hide();
if (!jform_vvvvvzovzo_required)
{
- updateFieldRequired('pagination',1);
- jQuery('#jform_pagination').removeAttr('required');
- jQuery('#jform_pagination').removeAttr('aria-required');
- jQuery('#jform_pagination').removeClass('required');
+ updateFieldRequired('add_php_getlistquery',1);
+ jQuery('#jform_add_php_getlistquery').removeAttr('required');
+ jQuery('#jform_add_php_getlistquery').removeAttr('aria-required');
+ jQuery('#jform_add_php_getlistquery').removeClass('required');
jform_vvvvvzovzo_required = true;
}
}
@@ -1241,7 +1188,62 @@ function vvvvvzo(gettype_vvvvvzo)
function gettype_vvvvvzo_SomeFunc(gettype_vvvvvzo)
{
// set the function logic
- if (gettype_vvvvvzo == 2)
+ if (gettype_vvvvvzo == 2 || gettype_vvvvvzo == 4)
+ {
+ return true;
+ }
+ return false;
+}
+
+// the vvvvvzp function
+function vvvvvzp(gettype_vvvvvzp)
+{
+ if (isSet(gettype_vvvvvzp) && gettype_vvvvvzp.constructor !== Array)
+ {
+ var temp_vvvvvzp = gettype_vvvvvzp;
+ var gettype_vvvvvzp = [];
+ gettype_vvvvvzp.push(temp_vvvvvzp);
+ }
+ else if (!isSet(gettype_vvvvvzp))
+ {
+ var gettype_vvvvvzp = [];
+ }
+ var gettype = gettype_vvvvvzp.some(gettype_vvvvvzp_SomeFunc);
+
+
+ // set this function logic
+ if (gettype)
+ {
+ jQuery('#jform_pagination').closest('.control-group').show();
+ if (jform_vvvvvzpvzp_required)
+ {
+ updateFieldRequired('pagination',0);
+ jQuery('#jform_pagination').prop('required','required');
+ jQuery('#jform_pagination').attr('aria-required',true);
+ jQuery('#jform_pagination').addClass('required');
+ jform_vvvvvzpvzp_required = false;
+ }
+
+ }
+ else
+ {
+ jQuery('#jform_pagination').closest('.control-group').hide();
+ if (!jform_vvvvvzpvzp_required)
+ {
+ updateFieldRequired('pagination',1);
+ jQuery('#jform_pagination').removeAttr('required');
+ jQuery('#jform_pagination').removeAttr('aria-required');
+ jQuery('#jform_pagination').removeClass('required');
+ jform_vvvvvzpvzp_required = true;
+ }
+ }
+}
+
+// the vvvvvzp Some function
+function gettype_vvvvvzp_SomeFunc(gettype_vvvvvzp)
+{
+ // set the function logic
+ if (gettype_vvvvvzp == 2)
{
return true;
}
@@ -1300,16 +1302,16 @@ function getViewTableColumns_server(viewId,asKey,rowType)
});
}
-function getViewTableColumns(id,asKey,key,rowType,main)
+function getViewTableColumns(id,asKey,key,rowType,main, table_, nr_)
{
getViewTableColumns_server(id,asKey,rowType).done(function(result) {
if (result)
{
- loadSelectionData(result,'view',key,main);
+ loadSelectionData(result, 'view', key, main, table_, nr_);
}
else
{
- loadSelectionData(false,'view',key,main);
+ loadSelectionData(false, 'view', key, main, table_, nr_);
}
})
}
@@ -1330,21 +1332,21 @@ function getDbTableColumns_server(name,asKey,rowType)
});
}
-function getDbTableColumns(name,asKey,key,rowType,main)
+function getDbTableColumns(name, asKey, key, rowType, main, table_, nr_)
{
getDbTableColumns_server(name,asKey,rowType).done(function(result) {
if (result)
{
- loadSelectionData(result,'db',key,main);
+ loadSelectionData(result, 'db', key, main, table_, nr_);
}
else
{
- loadSelectionData(false,'db',key,main);
+ loadSelectionData(false, 'db', key, main, table_, nr_);
}
})
}
-function loadSelectionData(result,type,key,main)
+function loadSelectionData(result, type, key, main, table_, nr_)
{
if (main)
{
@@ -1352,7 +1354,7 @@ function loadSelectionData(result,type,key,main)
}
else
{
- var textArea = 'textarea#'+key+'-jform_join_'+type+'_table_fields_selection';
+ var textArea = 'textarea#jform_join_'+type+'_table'+table_+'_join_'+type+'_table'+key+nr_+'_selection';
}
// no update the text area
if (result)
@@ -1363,4 +1365,44 @@ function loadSelectionData(result,type,key,main)
{
jQuery(textArea).val('');
}
+}
+function updateSubItems(fieldName, fieldNr, table_, nr_){
+ if(jQuery('#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_'+fieldName+'_table').length) {
+ jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_'+fieldName+'_table',function (e) {
+ e.preventDefault();
+ // get options
+ var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();
+ var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();
+ var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();
+ if (fieldName === 'view') {
+ getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
+ } else {
+ getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
+ }
+ });
+ jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_as',function (e) {
+ e.preventDefault();
+ // get options
+ var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();
+ var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();
+ var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();
+ if (fieldName === 'view') {
+ getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
+ } else {
+ getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
+ }
+ });
+ jQuery('#adminForm').on('change', '#jform_join_'+fieldName+'_table'+table_+'_join_'+fieldName+'_table'+fieldNr+nr_+'_row_type',function (e) {
+ e.preventDefault();
+ // get options
+ var value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_"+fieldName+"_table option:selected").val();
+ var as_value2 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_as option:selected").val();
+ var row_value1 = jQuery("#jform_join_"+fieldName+"_table"+table_+"_join_"+fieldName+"_table"+fieldNr+nr_+"_row_type option:selected").val();
+ if (fieldName === 'view') {
+ getViewTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
+ } else {
+ getDbTableColumns(value1, as_value2, fieldNr, row_value1, false, table_, nr_);
+ }
+ });
+ }
}
diff --git a/admin/models/forms/dynamic_get.xml b/admin/models/forms/dynamic_get.xml
index 3bebc3e11..0bfce606d 100644
--- a/admin/models/forms/dynamic_get.xml
+++ b/admin/models/forms/dynamic_get.xml
@@ -161,11 +161,12 @@
-
+
@@ -202,264 +203,120 @@
-
+
-
-
-
+
-
+
-
-
-
+
COM_COMPONENTBUILDER_DYNAMIC_GET_NO
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
COM_COMPONENTBUILDER_DYNAMIC_GET_NO
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ type="radio"
+ name="add_php_after_getitems"
+ label="COM_COMPONENTBUILDER_DYNAMIC_GET_ADD_PHP_AFTER_GETITEMS_LABEL"
+ class="btn-group btn-group-yesno"
+ default="0"
+ required="true">
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
COM_COMPONENTBUILDER_DYNAMIC_GET_NO
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
+ class="inputbox"
+ />
+
-
-
-
-
-
+ class="inputbox"
+ />
+
-
-
-
-
+ class="inputbox"
+ />
-
+
@@ -206,11 +206,11 @@
-
+
@@ -232,11 +232,11 @@
filter="HTML"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DESCRIPTION_HINT"
/>
-
+
@@ -260,17 +260,17 @@
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COPYRIGHT_HINT"
required="true"
/>
-
+
@@ -303,22 +303,13 @@
-
-
-
+
+
+
@@ -328,21 +319,82 @@
-
-
-
+
+
+
+
+
+
+
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO
-
+
-
+
+ type="radio"
+ name="add_php_helper_both"
+ label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_BOTH_LABEL"
+ class="btn-group btn-group-yesno"
+ default="0"
+ required="true">
+
+
+
+
-
+
-
-
-
-
+ button="true"
+ />
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_USED_IN_CUSTOM_CODE
-
+
@@ -570,11 +619,11 @@
-
+
@@ -597,11 +646,11 @@
message="Error! Please add some secret key here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY_HINT"
/>
-
+
@@ -625,65 +674,19 @@
message="Error! Please add website here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_HINT"
/>
-
+
-
-
-
+ type="radio"
+ name="add_php_dashboard_methods"
+ label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_DASHBOARD_METHODS_LABEL"
+ class="btn-group btn-group-yesno"
+ default="0"
+ required="true">
+
+
+
-
+
@@ -722,17 +725,17 @@
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BOM_DESCRIPTION"
hide_default="true"
/>
-
+
@@ -743,19 +746,52 @@
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_DESCRIPTION"
directory=""
/>
-
+
+
+
+
+
+
+
+
+
+
+
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_OTHER
-
-
-
-
-
-
-
-
-
-
-
+
-
+
+ type="radio"
+ name="buildcomp"
+ label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_LABEL"
+ description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_DESCRIPTION"
+ class="btn-group btn-group-yesno"
+ default="0"
+ required="true">
+
+
+
+
-
+
@@ -2214,23 +2228,6 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
@@ -2657,11 +2668,11 @@
-
+
@@ -2682,6 +2693,22 @@
max="40"
step="1"
/>
+
+
+
+
+
+
+
+
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO
-
-
+
+
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO
-
-
-
-
-
-
+
+
-
-
+
+
-
-
+
+
-
-
-
-
-
-
+
+
-
-
+
+
+
+
+
+
+
+
+
+ 0 && snippetId > 0){
@@ -143,10 +144,10 @@ function getSnippetDetails(id){
jQuery('.snippet-usage').append(usage);
}
})
-}
-
+}
+
function getDynamicValues_server(dynamicId){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
+ var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
var request = 'token='+token+'&view=layout&id='+dynamicId;
}
@@ -170,10 +171,10 @@ function getDynamicValues(id){
});
}
})
-}
-
+}
+
function getLayoutDetails_server(id){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
+ var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLayoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
@@ -196,30 +197,4 @@ function getLayoutDetails(id){
});
}
})
-}
-
-function getDynamicFormDetails_server(id){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
- if(token.length > 0 && id > 0){
- var request = 'token='+token+'&id='+id;
- }
- return jQuery.ajax({
- type: 'GET',
- url: getUrl,
- dataType: 'jsonp',
- data: request,
- jsonp: 'callback'
- });
-}
-
-function getDynamicFormDetails(id){
- getDynamicFormDetails_server(id).done(function(result) {
- if(result){
- jQuery('#details').append(result);
- // make sure the code bocks are active
- jQuery("code").click(function() {
- jQuery(this).selText().addClass("selected");
- });
- }
- })
-}
+}
diff --git a/admin/models/forms/site_view.js b/admin/models/forms/site_view.js
index 48d9aee8c..1c85162af 100644
--- a/admin/models/forms/site_view.js
+++ b/admin/models/forms/site_view.js
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage site_view.js
@@ -23,7 +23,6 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
-jform_vvvvvyivyk_required = false;
jform_vvvvvyjvyl_required = false;
jform_vvvvvykvym_required = false;
jform_vvvvvylvyn_required = false;
@@ -32,271 +31,272 @@ jform_vvvvvynvyp_required = false;
jform_vvvvvyovyq_required = false;
jform_vvvvvypvyr_required = false;
jform_vvvvvyqvys_required = false;
-jform_vvvvvyqvyt_required = false;
+jform_vvvvvyrvyt_required = false;
+jform_vvvvvyrvyu_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var add_php_view_vvvvvyi = jQuery("#jform_add_php_view input[type='radio']:checked").val();
- vvvvvyi(add_php_view_vvvvvyi);
+ var add_php_view_vvvvvyj = jQuery("#jform_add_php_view input[type='radio']:checked").val();
+ vvvvvyj(add_php_view_vvvvvyj);
- var add_php_jview_display_vvvvvyj = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
- vvvvvyj(add_php_jview_display_vvvvvyj);
+ var add_php_jview_display_vvvvvyk = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
+ vvvvvyk(add_php_jview_display_vvvvvyk);
- var add_php_jview_vvvvvyk = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
- vvvvvyk(add_php_jview_vvvvvyk);
+ var add_php_jview_vvvvvyl = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
+ vvvvvyl(add_php_jview_vvvvvyl);
- var add_php_document_vvvvvyl = jQuery("#jform_add_php_document input[type='radio']:checked").val();
- vvvvvyl(add_php_document_vvvvvyl);
+ var add_php_document_vvvvvym = jQuery("#jform_add_php_document input[type='radio']:checked").val();
+ vvvvvym(add_php_document_vvvvvym);
- var add_css_document_vvvvvym = jQuery("#jform_add_css_document input[type='radio']:checked").val();
- vvvvvym(add_css_document_vvvvvym);
+ var add_css_document_vvvvvyn = jQuery("#jform_add_css_document input[type='radio']:checked").val();
+ vvvvvyn(add_css_document_vvvvvyn);
- var add_js_document_vvvvvyn = jQuery("#jform_add_js_document input[type='radio']:checked").val();
- vvvvvyn(add_js_document_vvvvvyn);
+ var add_js_document_vvvvvyo = jQuery("#jform_add_js_document input[type='radio']:checked").val();
+ vvvvvyo(add_js_document_vvvvvyo);
- var add_css_vvvvvyo = jQuery("#jform_add_css input[type='radio']:checked").val();
- vvvvvyo(add_css_vvvvvyo);
+ var add_css_vvvvvyp = jQuery("#jform_add_css input[type='radio']:checked").val();
+ vvvvvyp(add_css_vvvvvyp);
- var add_php_ajax_vvvvvyp = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
- vvvvvyp(add_php_ajax_vvvvvyp);
+ var add_php_ajax_vvvvvyq = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
+ vvvvvyq(add_php_ajax_vvvvvyq);
- var add_custom_button_vvvvvyq = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
- vvvvvyq(add_custom_button_vvvvvyq);
+ var add_custom_button_vvvvvyr = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
+ vvvvvyr(add_custom_button_vvvvvyr);
});
-// the vvvvvyi function
-function vvvvvyi(add_php_view_vvvvvyi)
+// the vvvvvyj function
+function vvvvvyj(add_php_view_vvvvvyj)
{
// set the function logic
- if (add_php_view_vvvvvyi == 1)
+ if (add_php_view_vvvvvyj == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
- if (jform_vvvvvyivyk_required)
+ if (jform_vvvvvyjvyl_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
- jform_vvvvvyivyk_required = false;
- }
-
- }
- else
- {
- jQuery('#jform_php_view').closest('.control-group').hide();
- if (!jform_vvvvvyivyk_required)
- {
- updateFieldRequired('php_view',1);
- jQuery('#jform_php_view').removeAttr('required');
- jQuery('#jform_php_view').removeAttr('aria-required');
- jQuery('#jform_php_view').removeClass('required');
- jform_vvvvvyivyk_required = true;
- }
- }
-}
-
-// the vvvvvyj function
-function vvvvvyj(add_php_jview_display_vvvvvyj)
-{
- // set the function logic
- if (add_php_jview_display_vvvvvyj == 1)
- {
- jQuery('#jform_php_jview_display').closest('.control-group').show();
- if (jform_vvvvvyjvyl_required)
- {
- updateFieldRequired('php_jview_display',0);
- jQuery('#jform_php_jview_display').prop('required','required');
- jQuery('#jform_php_jview_display').attr('aria-required',true);
- jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvyjvyl_required = false;
}
}
else
{
- jQuery('#jform_php_jview_display').closest('.control-group').hide();
+ jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvyjvyl_required)
{
- updateFieldRequired('php_jview_display',1);
- jQuery('#jform_php_jview_display').removeAttr('required');
- jQuery('#jform_php_jview_display').removeAttr('aria-required');
- jQuery('#jform_php_jview_display').removeClass('required');
+ updateFieldRequired('php_view',1);
+ jQuery('#jform_php_view').removeAttr('required');
+ jQuery('#jform_php_view').removeAttr('aria-required');
+ jQuery('#jform_php_view').removeClass('required');
jform_vvvvvyjvyl_required = true;
}
}
}
// the vvvvvyk function
-function vvvvvyk(add_php_jview_vvvvvyk)
+function vvvvvyk(add_php_jview_display_vvvvvyk)
{
// set the function logic
- if (add_php_jview_vvvvvyk == 1)
+ if (add_php_jview_display_vvvvvyk == 1)
{
- jQuery('#jform_php_jview').closest('.control-group').show();
+ jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvykvym_required)
{
- updateFieldRequired('php_jview',0);
- jQuery('#jform_php_jview').prop('required','required');
- jQuery('#jform_php_jview').attr('aria-required',true);
- jQuery('#jform_php_jview').addClass('required');
+ updateFieldRequired('php_jview_display',0);
+ jQuery('#jform_php_jview_display').prop('required','required');
+ jQuery('#jform_php_jview_display').attr('aria-required',true);
+ jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvykvym_required = false;
}
}
else
{
- jQuery('#jform_php_jview').closest('.control-group').hide();
+ jQuery('#jform_php_jview_display').closest('.control-group').hide();
if (!jform_vvvvvykvym_required)
{
- updateFieldRequired('php_jview',1);
- jQuery('#jform_php_jview').removeAttr('required');
- jQuery('#jform_php_jview').removeAttr('aria-required');
- jQuery('#jform_php_jview').removeClass('required');
+ updateFieldRequired('php_jview_display',1);
+ jQuery('#jform_php_jview_display').removeAttr('required');
+ jQuery('#jform_php_jview_display').removeAttr('aria-required');
+ jQuery('#jform_php_jview_display').removeClass('required');
jform_vvvvvykvym_required = true;
}
}
}
// the vvvvvyl function
-function vvvvvyl(add_php_document_vvvvvyl)
+function vvvvvyl(add_php_jview_vvvvvyl)
{
// set the function logic
- if (add_php_document_vvvvvyl == 1)
+ if (add_php_jview_vvvvvyl == 1)
{
- jQuery('#jform_php_document').closest('.control-group').show();
+ jQuery('#jform_php_jview').closest('.control-group').show();
if (jform_vvvvvylvyn_required)
{
- updateFieldRequired('php_document',0);
- jQuery('#jform_php_document').prop('required','required');
- jQuery('#jform_php_document').attr('aria-required',true);
- jQuery('#jform_php_document').addClass('required');
+ updateFieldRequired('php_jview',0);
+ jQuery('#jform_php_jview').prop('required','required');
+ jQuery('#jform_php_jview').attr('aria-required',true);
+ jQuery('#jform_php_jview').addClass('required');
jform_vvvvvylvyn_required = false;
}
}
else
{
- jQuery('#jform_php_document').closest('.control-group').hide();
+ jQuery('#jform_php_jview').closest('.control-group').hide();
if (!jform_vvvvvylvyn_required)
{
- updateFieldRequired('php_document',1);
- jQuery('#jform_php_document').removeAttr('required');
- jQuery('#jform_php_document').removeAttr('aria-required');
- jQuery('#jform_php_document').removeClass('required');
+ updateFieldRequired('php_jview',1);
+ jQuery('#jform_php_jview').removeAttr('required');
+ jQuery('#jform_php_jview').removeAttr('aria-required');
+ jQuery('#jform_php_jview').removeClass('required');
jform_vvvvvylvyn_required = true;
}
}
}
// the vvvvvym function
-function vvvvvym(add_css_document_vvvvvym)
+function vvvvvym(add_php_document_vvvvvym)
{
// set the function logic
- if (add_css_document_vvvvvym == 1)
+ if (add_php_document_vvvvvym == 1)
{
- jQuery('#jform_css_document').closest('.control-group').show();
+ jQuery('#jform_php_document').closest('.control-group').show();
if (jform_vvvvvymvyo_required)
{
- updateFieldRequired('css_document',0);
- jQuery('#jform_css_document').prop('required','required');
- jQuery('#jform_css_document').attr('aria-required',true);
- jQuery('#jform_css_document').addClass('required');
+ updateFieldRequired('php_document',0);
+ jQuery('#jform_php_document').prop('required','required');
+ jQuery('#jform_php_document').attr('aria-required',true);
+ jQuery('#jform_php_document').addClass('required');
jform_vvvvvymvyo_required = false;
}
}
else
{
- jQuery('#jform_css_document').closest('.control-group').hide();
+ jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_vvvvvymvyo_required)
{
- updateFieldRequired('css_document',1);
- jQuery('#jform_css_document').removeAttr('required');
- jQuery('#jform_css_document').removeAttr('aria-required');
- jQuery('#jform_css_document').removeClass('required');
+ updateFieldRequired('php_document',1);
+ jQuery('#jform_php_document').removeAttr('required');
+ jQuery('#jform_php_document').removeAttr('aria-required');
+ jQuery('#jform_php_document').removeClass('required');
jform_vvvvvymvyo_required = true;
}
}
}
// the vvvvvyn function
-function vvvvvyn(add_js_document_vvvvvyn)
+function vvvvvyn(add_css_document_vvvvvyn)
{
// set the function logic
- if (add_js_document_vvvvvyn == 1)
+ if (add_css_document_vvvvvyn == 1)
{
- jQuery('#jform_js_document').closest('.control-group').show();
+ jQuery('#jform_css_document').closest('.control-group').show();
if (jform_vvvvvynvyp_required)
{
- updateFieldRequired('js_document',0);
- jQuery('#jform_js_document').prop('required','required');
- jQuery('#jform_js_document').attr('aria-required',true);
- jQuery('#jform_js_document').addClass('required');
+ updateFieldRequired('css_document',0);
+ jQuery('#jform_css_document').prop('required','required');
+ jQuery('#jform_css_document').attr('aria-required',true);
+ jQuery('#jform_css_document').addClass('required');
jform_vvvvvynvyp_required = false;
}
}
else
{
- jQuery('#jform_js_document').closest('.control-group').hide();
+ jQuery('#jform_css_document').closest('.control-group').hide();
if (!jform_vvvvvynvyp_required)
{
- updateFieldRequired('js_document',1);
- jQuery('#jform_js_document').removeAttr('required');
- jQuery('#jform_js_document').removeAttr('aria-required');
- jQuery('#jform_js_document').removeClass('required');
+ updateFieldRequired('css_document',1);
+ jQuery('#jform_css_document').removeAttr('required');
+ jQuery('#jform_css_document').removeAttr('aria-required');
+ jQuery('#jform_css_document').removeClass('required');
jform_vvvvvynvyp_required = true;
}
}
}
// the vvvvvyo function
-function vvvvvyo(add_css_vvvvvyo)
+function vvvvvyo(add_js_document_vvvvvyo)
{
// set the function logic
- if (add_css_vvvvvyo == 1)
+ if (add_js_document_vvvvvyo == 1)
{
- jQuery('#jform_css').closest('.control-group').show();
+ jQuery('#jform_js_document').closest('.control-group').show();
if (jform_vvvvvyovyq_required)
{
- updateFieldRequired('css',0);
- jQuery('#jform_css').prop('required','required');
- jQuery('#jform_css').attr('aria-required',true);
- jQuery('#jform_css').addClass('required');
+ updateFieldRequired('js_document',0);
+ jQuery('#jform_js_document').prop('required','required');
+ jQuery('#jform_js_document').attr('aria-required',true);
+ jQuery('#jform_js_document').addClass('required');
jform_vvvvvyovyq_required = false;
}
}
else
{
- jQuery('#jform_css').closest('.control-group').hide();
+ jQuery('#jform_js_document').closest('.control-group').hide();
if (!jform_vvvvvyovyq_required)
{
- updateFieldRequired('css',1);
- jQuery('#jform_css').removeAttr('required');
- jQuery('#jform_css').removeAttr('aria-required');
- jQuery('#jform_css').removeClass('required');
+ updateFieldRequired('js_document',1);
+ jQuery('#jform_js_document').removeAttr('required');
+ jQuery('#jform_js_document').removeAttr('aria-required');
+ jQuery('#jform_js_document').removeClass('required');
jform_vvvvvyovyq_required = true;
}
}
}
// the vvvvvyp function
-function vvvvvyp(add_php_ajax_vvvvvyp)
+function vvvvvyp(add_css_vvvvvyp)
{
// set the function logic
- if (add_php_ajax_vvvvvyp == 1)
+ if (add_css_vvvvvyp == 1)
+ {
+ jQuery('#jform_css').closest('.control-group').show();
+ if (jform_vvvvvypvyr_required)
+ {
+ updateFieldRequired('css',0);
+ jQuery('#jform_css').prop('required','required');
+ jQuery('#jform_css').attr('aria-required',true);
+ jQuery('#jform_css').addClass('required');
+ jform_vvvvvypvyr_required = false;
+ }
+
+ }
+ else
+ {
+ jQuery('#jform_css').closest('.control-group').hide();
+ if (!jform_vvvvvypvyr_required)
+ {
+ updateFieldRequired('css',1);
+ jQuery('#jform_css').removeAttr('required');
+ jQuery('#jform_css').removeAttr('aria-required');
+ jQuery('#jform_css').removeClass('required');
+ jform_vvvvvypvyr_required = true;
+ }
+ }
+}
+
+// the vvvvvyq function
+function vvvvvyq(add_php_ajax_vvvvvyq)
+{
+ // set the function logic
+ if (add_php_ajax_vvvvvyq == 1)
{
jQuery('#jform_ajax_input').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
- if (jform_vvvvvypvyr_required)
+ if (jform_vvvvvyqvys_required)
{
updateFieldRequired('php_ajaxmethod',0);
jQuery('#jform_php_ajaxmethod').prop('required','required');
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
jQuery('#jform_php_ajaxmethod').addClass('required');
- jform_vvvvvypvyr_required = false;
+ jform_vvvvvyqvys_required = false;
}
}
@@ -304,42 +304,42 @@ function vvvvvyp(add_php_ajax_vvvvvyp)
{
jQuery('#jform_ajax_input').closest('.control-group').hide();
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
- if (!jform_vvvvvypvyr_required)
+ if (!jform_vvvvvyqvys_required)
{
updateFieldRequired('php_ajaxmethod',1);
jQuery('#jform_php_ajaxmethod').removeAttr('required');
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
jQuery('#jform_php_ajaxmethod').removeClass('required');
- jform_vvvvvypvyr_required = true;
+ jform_vvvvvyqvys_required = true;
}
}
}
-// the vvvvvyq function
-function vvvvvyq(add_custom_button_vvvvvyq)
+// the vvvvvyr function
+function vvvvvyr(add_custom_button_vvvvvyr)
{
// set the function logic
- if (add_custom_button_vvvvvyq == 1)
+ if (add_custom_button_vvvvvyr == 1)
{
jQuery('#jform_custom_button').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
- if (jform_vvvvvyqvys_required)
+ if (jform_vvvvvyrvyt_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
- jform_vvvvvyqvys_required = false;
+ jform_vvvvvyrvyt_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
- if (jform_vvvvvyqvyt_required)
+ if (jform_vvvvvyrvyu_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
- jform_vvvvvyqvyt_required = false;
+ jform_vvvvvyrvyu_required = false;
}
}
@@ -347,22 +347,22 @@ function vvvvvyq(add_custom_button_vvvvvyq)
{
jQuery('#jform_custom_button').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
- if (!jform_vvvvvyqvys_required)
+ if (!jform_vvvvvyrvyt_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
- jform_vvvvvyqvys_required = true;
+ jform_vvvvvyrvyt_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
- if (!jform_vvvvvyqvyt_required)
+ if (!jform_vvvvvyrvyu_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
- jform_vvvvvyqvyt_required = true;
+ jform_vvvvvyrvyu_required = true;
}
}
}
@@ -403,6 +403,7 @@ function isSet(val)
return false;
}
+
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){
@@ -447,12 +448,12 @@ function getSnippetDetails(id){
jQuery('.snippet-usage').append(usage);
}
})
-}
-
+}
+
function getDynamicValues_server(dynamicId){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
+ var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
- var request = 'token='+token+'&view=template&id='+dynamicId;
+ var request = 'token='+token+'&view=site_view&id='+dynamicId;
}
return jQuery.ajax({
type: 'GET',
@@ -474,10 +475,10 @@ function getDynamicValues(id){
});
}
})
-}
-
+}
+
function getLayoutDetails_server(id){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
+ var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLayoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
@@ -500,8 +501,8 @@ function getLayoutDetails(id){
});
}
})
-}
-
+}
+
function getTemplateDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.templateDetails&format=json";
if(token.length > 0 && id > 0){
@@ -526,30 +527,4 @@ function getTemplateDetails(id){
});
}
})
-}
-
-function getDynamicFormDetails_server(id){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
- if(token.length > 0 && id > 0){
- var request = 'token='+token+'&id='+id;
- }
- return jQuery.ajax({
- type: 'GET',
- url: getUrl,
- dataType: 'jsonp',
- data: request,
- jsonp: 'callback'
- });
-}
-
-function getDynamicFormDetails(id){
- getDynamicFormDetails_server(id).done(function(result) {
- if(result){
- jQuery('#details').append(result);
- // make sure the code bocks are active
- jQuery("code").click(function() {
- jQuery(this).selText().addClass("selected");
- });
- }
- })
-}
+}
diff --git a/admin/models/forms/snippet.js b/admin/models/forms/snippet.js
index e2a017ae1..a645747af 100644
--- a/admin/models/forms/snippet.js
+++ b/admin/models/forms/snippet.js
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage snippet.js
diff --git a/admin/models/forms/template.js b/admin/models/forms/template.js
index fdb4a7ce5..b6039e126 100644
--- a/admin/models/forms/template.js
+++ b/admin/models/forms/template.js
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage template.js
@@ -23,42 +23,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
-jform_vvvvvyrvyv_required = false;
+jform_vvvvvysvyw_required = false;
// Initial Script
jQuery(document).ready(function()
{
- var add_php_view_vvvvvyr = jQuery("#jform_add_php_view input[type='radio']:checked").val();
- vvvvvyr(add_php_view_vvvvvyr);
+ var add_php_view_vvvvvys = jQuery("#jform_add_php_view input[type='radio']:checked").val();
+ vvvvvys(add_php_view_vvvvvys);
});
-// the vvvvvyr function
-function vvvvvyr(add_php_view_vvvvvyr)
+// the vvvvvys function
+function vvvvvys(add_php_view_vvvvvys)
{
// set the function logic
- if (add_php_view_vvvvvyr == 1)
+ if (add_php_view_vvvvvys == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
- if (jform_vvvvvyrvyv_required)
+ if (jform_vvvvvysvyw_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
- jform_vvvvvyrvyv_required = false;
+ jform_vvvvvysvyw_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
- if (!jform_vvvvvyrvyv_required)
+ if (!jform_vvvvvysvyw_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
- jform_vvvvvyrvyv_required = true;
+ jform_vvvvvysvyw_required = true;
}
}
}
@@ -99,6 +99,7 @@ function isSet(val)
return false;
}
+
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){
@@ -143,10 +144,10 @@ function getSnippetDetails(id){
jQuery('.snippet-usage').append(usage);
}
})
-}
-
+}
+
function getDynamicValues_server(dynamicId){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
+ var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
var request = 'token='+token+'&view=template&id='+dynamicId;
}
@@ -170,25 +171,10 @@ function getDynamicValues(id){
});
}
})
-}
-
+}
+
function getLayoutDetails_server(id){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
- if(token.length > 0 && id > 0){
- var request = 'token='+token+'&id='+id;
- }
- return jQuery.ajax({
- type: 'GET',
- url: getUrl,
- dataType: 'jsonp',
- data: request,
- jsonp: 'callback'
- });
-}
-
-
-function getLayoutDetails_server(id){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
+ var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLayoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
@@ -211,8 +197,8 @@ function getLayoutDetails(id){
});
}
})
-}
-
+}
+
function getTemplateDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.templateDetails&format=json";
if(token.length > 0 && id > 0){
@@ -237,30 +223,4 @@ function getTemplateDetails(id){
});
}
})
-}
-
-function getDynamicFormDetails_server(id){
- var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
- if(token.length > 0 && id > 0){
- var request = 'token='+token+'&id='+id;
- }
- return jQuery.ajax({
- type: 'GET',
- url: getUrl,
- dataType: 'jsonp',
- data: request,
- jsonp: 'callback'
- });
-}
-
-function getDynamicFormDetails(id){
- getDynamicFormDetails_server(id).done(function(result) {
- if(result){
- jQuery('#details').append(result);
- // make sure the code bocks are active
- jQuery("code").click(function() {
- jQuery(this).selText().addClass("selected");
- });
- }
- })
-}
+}
diff --git a/admin/models/forms/template.xml b/admin/models/forms/template.xml
index c5ae35d90..dedfa403d 100644
--- a/admin/models/forms/template.xml
+++ b/admin/models/forms/template.xml
@@ -145,39 +145,16 @@
required="false"
button="true"
/>
-
+
-
-
-
-
-
-
-
-
-
-
COM_COMPONENTBUILDER_TEMPLATE_NO
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/admin/models/ftp.php b/admin/models/ftp.php
index 2c2d1e8a4..e72651797 100644
--- a/admin/models/ftp.php
+++ b/admin/models/ftp.php
@@ -122,7 +122,7 @@ class ComponentbuilderModelFtp extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getWadlinked_components()
+ public function getWaelinked_components()
{
// Get the user object.
$user = JFactory::getUser();
diff --git a/admin/models/import.php b/admin/models/import.php
index e294ed9b0..3095cf240 100644
--- a/admin/models/import.php
+++ b/admin/models/import.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage import.php
diff --git a/admin/models/import_joomla_components.php b/admin/models/import_joomla_components.php
index 606ac2ee6..943f4ed76 100644
--- a/admin/models/import_joomla_components.php
+++ b/admin/models/import_joomla_components.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.5.5
- @build 20th September, 2017
+ @version 2.5.6
+ @build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage import_joomla_components.php
@@ -1012,6 +1012,31 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
}
}
+ /*
+ * Convert repeatable field
+ *
+ * @param array $array The array
+ * @param string $name The main field name
+ *
+ * @return array
+ */
+ protected function convertRepeatable($array, $name)
+ {
+ $bucket = array();
+ foreach ($array as $key => $values)
+ {
+ foreach ($values as $nr => $value)
+ {
+ if (!isset($bucket[$name . $nr]) || !ComponentbuilderHelper::checkArray($bucket[$name . $nr]))
+ {
+ $bucket[$name . $nr] = array();
+ }
+ $bucket[$name . $nr][$key] = $value;
+ }
+ }
+ return $bucket;
+ }
+
/**
* Prep the item
*
@@ -1081,21 +1106,27 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
if (isset($item->join_view_table) && ComponentbuilderHelper::checkJson($item->join_view_table))
{
$join_view_table = json_decode($item->join_view_table, true);
- foreach ($join_view_table['view_table'] as $nr => $id)
+ // check if this is old values for repeatable fields
+ if (isset($join_view_table['view_table']))
{
+ $join_view_table = $this->convertRepeatable($join_view_table, 'join_view_table');
+ }
+ foreach ($join_view_table as $nr => $join_values)
+ {
+ $id = $join_values['view_table'];
if (!is_numeric($id))
{
continue;
}
- // update the join_view_table
+ // update the id's with local id's
if (isset($this->newID['admin_view'][$id]))
{
- $join_view_table['view_table'][$nr] = $this->newID['admin_view'][$id];
+ $join_view_table[$nr]['view_table'] = $this->newID['admin_view'][$id];
}
else
{
- $this->app->enqueueMessage(JText::sprintf('COM_COMPONENTBUILDER_BJOIN_VIEW_TABLE_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BVIEW_TABLEB_SO_THE_IDS_WAS_REMOVED', '('.ComponentbuilderHelper::safeString($type, 'w').':'.$item->id.')', $id), 'warning');
- $join_view_table['view_table'][$nr] = '';
+ $this->app->enqueueMessage(JText::sprintf('COM_COMPONENTBUILDER_BJOIN_VIEW_TABLE_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BJOIN_VIEW_TABLEB_SO_THE_IDS_WAS_REMOVED', '('.ComponentbuilderHelper::safeString($type, 'w').':'.$item->id.')', $id), 'warning');
+ $join_values['view_table'] = '';
}
}
// load it back
@@ -1105,6 +1136,33 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
{
unset($item->join_view_table);
}
+ // repeatable fields to update
+ $updaterR = array(
+ 'join_db_table' => 'db_table',
+ 'order' => 'table_key',
+ 'where' => 'table_key',
+ 'global' => 'name',
+ 'filter' => 'filter_type'
+ );
+ // update the repeatable fields
+ foreach ($updaterR as $up => $sleutel)
+ {
+ if (isset($item->{$up}) && ComponentbuilderHelper::checkJson($item->{$up}))
+ {
+ $updateArray = json_decode($item->{$up}, true);
+ // check if this is old values for repeatable fields
+ if (isset($updateArray[$sleutel]))
+ {
+ $updateArray = $this->convertRepeatable($updateArray, $up);
+ }
+ // load it back
+ $item->{$up} = json_encode($updateArray);
+ }
+ else
+ {
+ unset($item->{$up});
+ }
+ }
break;
case 'layout':
case 'template':
@@ -1634,6 +1692,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
if (ComponentbuilderHelper::checkJson($properties))
{
$properties = json_decode($properties, true);
+ // check if this is old values for repeatable fields
+ if (isset($properties['name']))
+ {
+ $properties = $this->convertRepeatable($properties, 'properties');
+ }
+ // now check to find type
foreach ($properties as $property)
{
if ('type' === $property['name'])
diff --git a/admin/models/joomla_component.php b/admin/models/joomla_component.php
index 94fd37d71..e04429e9b 100644
--- a/admin/models/joomla_component.php
+++ b/admin/models/joomla_component.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 378 of this MVC
- @build 18th September, 2017
+ @version @update number 385 of this MVC
+ @build 6th October, 2017
@created 6th May, 2015
@package Component Builder
@subpackage joomla_component.php
@@ -95,34 +95,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$item->metadata = $registry->toArray();
}
- if (!empty($item->readme))
+ if (!empty($item->sql))
{
- // base64 Decode readme.
- $item->readme = base64_decode($item->readme);
- }
-
- if (!empty($item->php_postflight_install))
- {
- // base64 Decode php_postflight_install.
- $item->php_postflight_install = base64_decode($item->php_postflight_install);
- }
-
- if (!empty($item->php_preflight_install))
- {
- // base64 Decode php_preflight_install.
- $item->php_preflight_install = base64_decode($item->php_preflight_install);
- }
-
- if (!empty($item->php_method_uninstall))
- {
- // base64 Decode php_method_uninstall.
- $item->php_method_uninstall = base64_decode($item->php_method_uninstall);
- }
-
- if (!empty($item->css))
- {
- // base64 Decode css.
- $item->css = base64_decode($item->css);
+ // base64 Decode sql.
+ $item->sql = base64_decode($item->sql);
}
if (!empty($item->php_preflight_update))
@@ -137,10 +113,28 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$item->php_postflight_update = base64_decode($item->php_postflight_update);
}
- if (!empty($item->sql))
+ if (!empty($item->php_preflight_install))
{
- // base64 Decode sql.
- $item->sql = base64_decode($item->sql);
+ // base64 Decode php_preflight_install.
+ $item->php_preflight_install = base64_decode($item->php_preflight_install);
+ }
+
+ if (!empty($item->php_postflight_install))
+ {
+ // base64 Decode php_postflight_install.
+ $item->php_postflight_install = base64_decode($item->php_postflight_install);
+ }
+
+ if (!empty($item->php_method_uninstall))
+ {
+ // base64 Decode php_method_uninstall.
+ $item->php_method_uninstall = base64_decode($item->php_method_uninstall);
+ }
+
+ if (!empty($item->readme))
+ {
+ // base64 Decode readme.
+ $item->readme = base64_decode($item->readme);
}
if (!empty($item->php_helper_both))
@@ -173,6 +167,18 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$item->php_site_event = base64_decode($item->php_site_event);
}
+ if (!empty($item->javascript))
+ {
+ // base64 Decode javascript.
+ $item->javascript = base64_decode($item->javascript);
+ }
+
+ if (!empty($item->css))
+ {
+ // base64 Decode css.
+ $item->css = base64_decode($item->css);
+ }
+
if (!empty($item->php_dashboard_methods))
{
// base64 Decode php_dashboard_methods.
@@ -221,7 +227,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getVwmadmin_views()
+ public function getVwnadmin_views()
{
// Get the user object.
$user = JFactory::getUser();
@@ -313,7 +319,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getVwncustom_admin_views()
+ public function getVwocustom_admin_views()
{
// Get the user object.
$user = JFactory::getUser();
@@ -409,7 +415,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getVwosite_views()
+ public function getVwpsite_views()
{
// Get the user object.
$user = JFactory::getUser();
@@ -505,7 +511,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getVwptranslation()
+ public function getVwqtranslation()
{
// Get the user object.
$user = JFactory::getUser();
@@ -803,39 +809,39 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('author', 'required', 'false');
}
}
- // Modify the form based on Edit Readme access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.readme', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.readme', 'com_componentbuilder')))
+ // Modify the form based on Edit Sql access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.sql', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.sql', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('readme', 'disabled', 'true');
+ $form->setFieldAttribute('sql', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('readme', 'readonly', 'true');
- if (!$form->getValue('readme'))
+ $form->setFieldAttribute('sql', 'readonly', 'true');
+ if (!$form->getValue('sql'))
{
// Disable fields while saving.
- $form->setFieldAttribute('readme', 'filter', 'unset');
+ $form->setFieldAttribute('sql', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('readme', 'required', 'false');
+ $form->setFieldAttribute('sql', 'required', 'false');
}
}
- // Modify the form based on Edit Add Php Dashboard Methods access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_dashboard_methods', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_dashboard_methods', 'com_componentbuilder')))
+ // Modify the form based on Edit Add Css access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_css', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_css', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('add_php_dashboard_methods', 'disabled', 'true');
+ $form->setFieldAttribute('add_css', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('add_php_dashboard_methods', 'readonly', 'true');
+ $form->setFieldAttribute('add_css', 'readonly', 'true');
// Disable radio button for display.
- $class = $form->getFieldAttribute('add_php_dashboard_methods', 'class', '');
- $form->setFieldAttribute('add_php_dashboard_methods', 'class', $class.' disabled no-click');
- if (!$form->getValue('add_php_dashboard_methods'))
+ $class = $form->getFieldAttribute('add_css', 'class', '');
+ $form->setFieldAttribute('add_css', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_css'))
{
// Disable fields while saving.
- $form->setFieldAttribute('add_php_dashboard_methods', 'filter', 'unset');
+ $form->setFieldAttribute('add_css', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('add_php_dashboard_methods', 'required', 'false');
+ $form->setFieldAttribute('add_css', 'required', 'false');
}
}
// Modify the form based on Edit Description access controls.
@@ -854,23 +860,23 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('description', 'required', 'false');
}
}
- // Modify the form based on Edit Add Php Helper Admin access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_helper_admin', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_helper_admin', 'com_componentbuilder')))
+ // Modify the form based on Edit Add Admin Event access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_admin_event', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_admin_event', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('add_php_helper_admin', 'disabled', 'true');
+ $form->setFieldAttribute('add_admin_event', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('add_php_helper_admin', 'readonly', 'true');
+ $form->setFieldAttribute('add_admin_event', 'readonly', 'true');
// Disable radio button for display.
- $class = $form->getFieldAttribute('add_php_helper_admin', 'class', '');
- $form->setFieldAttribute('add_php_helper_admin', 'class', $class.' disabled no-click');
- if (!$form->getValue('add_php_helper_admin'))
+ $class = $form->getFieldAttribute('add_admin_event', 'class', '');
+ $form->setFieldAttribute('add_admin_event', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_admin_event'))
{
// Disable fields while saving.
- $form->setFieldAttribute('add_php_helper_admin', 'filter', 'unset');
+ $form->setFieldAttribute('add_admin_event', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('add_php_helper_admin', 'required', 'false');
+ $form->setFieldAttribute('add_admin_event', 'required', 'false');
}
}
// Modify the form based on Edit Copyright access controls.
@@ -889,20 +895,20 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('copyright', 'required', 'false');
}
}
- // Modify the form based on Edit Php Postflight Install access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.php_postflight_install', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.php_postflight_install', 'com_componentbuilder')))
+ // Modify the form based on Edit Php Preflight Update access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.php_preflight_update', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.php_preflight_update', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('php_postflight_install', 'disabled', 'true');
+ $form->setFieldAttribute('php_preflight_update', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('php_postflight_install', 'readonly', 'true');
- if (!$form->getValue('php_postflight_install'))
+ $form->setFieldAttribute('php_preflight_update', 'readonly', 'true');
+ if (!$form->getValue('php_preflight_update'))
{
// Disable fields while saving.
- $form->setFieldAttribute('php_postflight_install', 'filter', 'unset');
+ $form->setFieldAttribute('php_preflight_update', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('php_postflight_install', 'required', 'false');
+ $form->setFieldAttribute('php_preflight_update', 'required', 'false');
}
}
// Modify the form based on Edit Debug Linenr access controls.
@@ -943,55 +949,58 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('mvc_versiondate', 'required', 'false');
}
}
- // Modify the form based on Edit Update Server Ftp access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.update_server_ftp', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.update_server_ftp', 'com_componentbuilder')))
+ // Modify the form based on Edit Add Site Event access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_site_event', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_site_event', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('update_server_ftp', 'disabled', 'true');
+ $form->setFieldAttribute('add_site_event', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('update_server_ftp', 'readonly', 'true');
- if (!$form->getValue('update_server_ftp'))
- {
- // Disable fields while saving.
- $form->setFieldAttribute('update_server_ftp', 'filter', 'unset');
- // Disable fields while saving.
- $form->setFieldAttribute('update_server_ftp', 'required', 'false');
- }
- }
- // Modify the form based on Edit Add Php Helper Site access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_helper_site', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_helper_site', 'com_componentbuilder')))
- {
- // Disable fields for display.
- $form->setFieldAttribute('add_php_helper_site', 'disabled', 'true');
- // Disable fields for display.
- $form->setFieldAttribute('add_php_helper_site', 'readonly', 'true');
+ $form->setFieldAttribute('add_site_event', 'readonly', 'true');
// Disable radio button for display.
- $class = $form->getFieldAttribute('add_php_helper_site', 'class', '');
- $form->setFieldAttribute('add_php_helper_site', 'class', $class.' disabled no-click');
- if (!$form->getValue('add_php_helper_site'))
+ $class = $form->getFieldAttribute('add_site_event', 'class', '');
+ $form->setFieldAttribute('add_site_event', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_site_event'))
{
// Disable fields while saving.
- $form->setFieldAttribute('add_php_helper_site', 'filter', 'unset');
+ $form->setFieldAttribute('add_site_event', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('add_php_helper_site', 'required', 'false');
+ $form->setFieldAttribute('add_site_event', 'required', 'false');
}
}
- // Modify the form based on Edit Php Preflight Install access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.php_preflight_install', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.php_preflight_install', 'com_componentbuilder')))
+ // Modify the form based on Edit Name access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.name', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.name', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('php_preflight_install', 'disabled', 'true');
+ $form->setFieldAttribute('name', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('php_preflight_install', 'readonly', 'true');
- if (!$form->getValue('php_preflight_install'))
+ $form->setFieldAttribute('name', 'readonly', 'true');
+ if (!$form->getValue('name'))
{
// Disable fields while saving.
- $form->setFieldAttribute('php_preflight_install', 'filter', 'unset');
+ $form->setFieldAttribute('name', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('php_preflight_install', 'required', 'false');
+ $form->setFieldAttribute('name', 'required', 'false');
+ }
+ }
+ // Modify the form based on Edit Dashboard Tab access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.dashboard_tab', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.dashboard_tab', 'com_componentbuilder')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('dashboard_tab', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('dashboard_tab', 'readonly', 'true');
+ // Disable radio button for display.
+ $class = $form->getFieldAttribute('dashboard_tab', 'class', '');
+ $form->setFieldAttribute('dashboard_tab', 'class', $class.' disabled no-click');
+ if (!$form->getValue('dashboard_tab'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('dashboard_tab', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('dashboard_tab', 'required', 'false');
}
}
// Modify the form based on Edit Creatuserhelper access controls.
@@ -1013,36 +1022,39 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('creatuserhelper', 'required', 'false');
}
}
- // Modify the form based on Edit Php Method Uninstall access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.php_method_uninstall', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.php_method_uninstall', 'com_componentbuilder')))
+ // Modify the form based on Edit Php Postflight Update access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.php_postflight_update', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.php_postflight_update', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('php_method_uninstall', 'disabled', 'true');
+ $form->setFieldAttribute('php_postflight_update', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('php_method_uninstall', 'readonly', 'true');
- if (!$form->getValue('php_method_uninstall'))
+ $form->setFieldAttribute('php_postflight_update', 'readonly', 'true');
+ if (!$form->getValue('php_postflight_update'))
{
// Disable fields while saving.
- $form->setFieldAttribute('php_method_uninstall', 'filter', 'unset');
+ $form->setFieldAttribute('php_postflight_update', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('php_method_uninstall', 'required', 'false');
+ $form->setFieldAttribute('php_postflight_update', 'required', 'false');
}
}
- // Modify the form based on Edit Css access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.css', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.css', 'com_componentbuilder')))
+ // Modify the form based on Edit Add Php Helper Both access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_helper_both', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_helper_both', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('css', 'disabled', 'true');
+ $form->setFieldAttribute('add_php_helper_both', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('css', 'readonly', 'true');
- if (!$form->getValue('css'))
+ $form->setFieldAttribute('add_php_helper_both', 'readonly', 'true');
+ // Disable radio button for display.
+ $class = $form->getFieldAttribute('add_php_helper_both', 'class', '');
+ $form->setFieldAttribute('add_php_helper_both', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_php_helper_both'))
{
// Disable fields while saving.
- $form->setFieldAttribute('css', 'filter', 'unset');
+ $form->setFieldAttribute('add_php_helper_both', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('css', 'required', 'false');
+ $form->setFieldAttribute('add_php_helper_both', 'required', 'false');
}
}
// Modify the form based on Edit Version Update access controls.
@@ -1080,23 +1092,20 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('email', 'required', 'false');
}
}
- // Modify the form based on Edit Buildcomp access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.buildcomp', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.buildcomp', 'com_componentbuilder')))
+ // Modify the form based on Edit Sales Server Ftp access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.sales_server_ftp', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.sales_server_ftp', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('buildcomp', 'disabled', 'true');
+ $form->setFieldAttribute('sales_server_ftp', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('buildcomp', 'readonly', 'true');
- // Disable radio button for display.
- $class = $form->getFieldAttribute('buildcomp', 'class', '');
- $form->setFieldAttribute('buildcomp', 'class', $class.' disabled no-click');
- if (!$form->getValue('buildcomp'))
+ $form->setFieldAttribute('sales_server_ftp', 'readonly', 'true');
+ if (!$form->getValue('sales_server_ftp'))
{
// Disable fields while saving.
- $form->setFieldAttribute('buildcomp', 'filter', 'unset');
+ $form->setFieldAttribute('sales_server_ftp', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('buildcomp', 'required', 'false');
+ $form->setFieldAttribute('sales_server_ftp', 'required', 'false');
}
}
// Modify the form based on Edit Website access controls.
@@ -1185,42 +1194,42 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('license_type', 'required', 'false');
}
}
- // Modify the form based on Edit Add Php Helper Both access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_helper_both', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_helper_both', 'com_componentbuilder')))
+ // Modify the form based on Edit Add Php Helper Admin access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_helper_admin', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_helper_admin', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('add_php_helper_both', 'disabled', 'true');
+ $form->setFieldAttribute('add_php_helper_admin', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('add_php_helper_both', 'readonly', 'true');
+ $form->setFieldAttribute('add_php_helper_admin', 'readonly', 'true');
// Disable radio button for display.
- $class = $form->getFieldAttribute('add_php_helper_both', 'class', '');
- $form->setFieldAttribute('add_php_helper_both', 'class', $class.' disabled no-click');
- if (!$form->getValue('add_php_helper_both'))
+ $class = $form->getFieldAttribute('add_php_helper_admin', 'class', '');
+ $form->setFieldAttribute('add_php_helper_admin', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_php_helper_admin'))
{
// Disable fields while saving.
- $form->setFieldAttribute('add_php_helper_both', 'filter', 'unset');
+ $form->setFieldAttribute('add_php_helper_admin', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('add_php_helper_both', 'required', 'false');
+ $form->setFieldAttribute('add_php_helper_admin', 'required', 'false');
}
}
- // Modify the form based on Edit Add Admin Event access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.add_admin_event', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.add_admin_event', 'com_componentbuilder')))
+ // Modify the form based on Edit Add Php Helper Site access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_helper_site', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_helper_site', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('add_admin_event', 'disabled', 'true');
+ $form->setFieldAttribute('add_php_helper_site', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('add_admin_event', 'readonly', 'true');
+ $form->setFieldAttribute('add_php_helper_site', 'readonly', 'true');
// Disable radio button for display.
- $class = $form->getFieldAttribute('add_admin_event', 'class', '');
- $form->setFieldAttribute('add_admin_event', 'class', $class.' disabled no-click');
- if (!$form->getValue('add_admin_event'))
+ $class = $form->getFieldAttribute('add_php_helper_site', 'class', '');
+ $form->setFieldAttribute('add_php_helper_site', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_php_helper_site'))
{
// Disable fields while saving.
- $form->setFieldAttribute('add_admin_event', 'filter', 'unset');
+ $form->setFieldAttribute('add_php_helper_site', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('add_admin_event', 'required', 'false');
+ $form->setFieldAttribute('add_php_helper_site', 'required', 'false');
}
}
// Modify the form based on Edit Whmcs Key access controls.
@@ -1239,23 +1248,23 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('whmcs_key', 'required', 'false');
}
}
- // Modify the form based on Edit Add Site Event access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.add_site_event', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.add_site_event', 'com_componentbuilder')))
+ // Modify the form based on Edit Add Javascript access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_javascript', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_javascript', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('add_site_event', 'disabled', 'true');
+ $form->setFieldAttribute('add_javascript', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('add_site_event', 'readonly', 'true');
+ $form->setFieldAttribute('add_javascript', 'readonly', 'true');
// Disable radio button for display.
- $class = $form->getFieldAttribute('add_site_event', 'class', '');
- $form->setFieldAttribute('add_site_event', 'class', $class.' disabled no-click');
- if (!$form->getValue('add_site_event'))
+ $class = $form->getFieldAttribute('add_javascript', 'class', '');
+ $form->setFieldAttribute('add_javascript', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_javascript'))
{
// Disable fields while saving.
- $form->setFieldAttribute('add_site_event', 'filter', 'unset');
+ $form->setFieldAttribute('add_javascript', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('add_site_event', 'required', 'false');
+ $form->setFieldAttribute('add_javascript', 'required', 'false');
}
}
// Modify the form based on Edit Whmcs Url access controls.
@@ -1274,23 +1283,23 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('whmcs_url', 'required', 'false');
}
}
- // Modify the form based on Edit Dashboard Tab access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.dashboard_tab', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.dashboard_tab', 'com_componentbuilder')))
+ // Modify the form based on Edit Add Php Dashboard Methods access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_dashboard_methods', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_dashboard_methods', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('dashboard_tab', 'disabled', 'true');
+ $form->setFieldAttribute('add_php_dashboard_methods', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('dashboard_tab', 'readonly', 'true');
+ $form->setFieldAttribute('add_php_dashboard_methods', 'readonly', 'true');
// Disable radio button for display.
- $class = $form->getFieldAttribute('dashboard_tab', 'class', '');
- $form->setFieldAttribute('dashboard_tab', 'class', $class.' disabled no-click');
- if (!$form->getValue('dashboard_tab'))
+ $class = $form->getFieldAttribute('add_php_dashboard_methods', 'class', '');
+ $form->setFieldAttribute('add_php_dashboard_methods', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_php_dashboard_methods'))
{
// Disable fields while saving.
- $form->setFieldAttribute('dashboard_tab', 'filter', 'unset');
+ $form->setFieldAttribute('add_php_dashboard_methods', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('dashboard_tab', 'required', 'false');
+ $form->setFieldAttribute('add_php_dashboard_methods', 'required', 'false');
}
}
// Modify the form based on Edit License access controls.
@@ -1309,20 +1318,20 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('license', 'required', 'false');
}
}
- // Modify the form based on Edit Php Preflight Update access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.php_preflight_update', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.php_preflight_update', 'com_componentbuilder')))
+ // Modify the form based on Edit Php Preflight Install access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.php_preflight_install', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.php_preflight_install', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('php_preflight_update', 'disabled', 'true');
+ $form->setFieldAttribute('php_preflight_install', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('php_preflight_update', 'readonly', 'true');
- if (!$form->getValue('php_preflight_update'))
+ $form->setFieldAttribute('php_preflight_install', 'readonly', 'true');
+ if (!$form->getValue('php_preflight_install'))
{
// Disable fields while saving.
- $form->setFieldAttribute('php_preflight_update', 'filter', 'unset');
+ $form->setFieldAttribute('php_preflight_install', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('php_preflight_update', 'required', 'false');
+ $form->setFieldAttribute('php_preflight_install', 'required', 'false');
}
}
// Modify the form based on Edit Bom access controls.
@@ -1341,20 +1350,20 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('bom', 'required', 'false');
}
}
- // Modify the form based on Edit Php Postflight Update access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.php_postflight_update', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.php_postflight_update', 'com_componentbuilder')))
+ // Modify the form based on Edit Php Postflight Install access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.php_postflight_install', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.php_postflight_install', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('php_postflight_update', 'disabled', 'true');
+ $form->setFieldAttribute('php_postflight_install', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('php_postflight_update', 'readonly', 'true');
- if (!$form->getValue('php_postflight_update'))
+ $form->setFieldAttribute('php_postflight_install', 'readonly', 'true');
+ if (!$form->getValue('php_postflight_install'))
{
// Disable fields while saving.
- $form->setFieldAttribute('php_postflight_update', 'filter', 'unset');
+ $form->setFieldAttribute('php_postflight_install', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('php_postflight_update', 'required', 'false');
+ $form->setFieldAttribute('php_postflight_install', 'required', 'false');
}
}
// Modify the form based on Edit Image access controls.
@@ -1373,39 +1382,20 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('image', 'required', 'false');
}
}
- // Modify the form based on Edit Sql access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.sql', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.sql', 'com_componentbuilder')))
+ // Modify the form based on Edit Php Method Uninstall access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.php_method_uninstall', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.php_method_uninstall', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('sql', 'disabled', 'true');
+ $form->setFieldAttribute('php_method_uninstall', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('sql', 'readonly', 'true');
- if (!$form->getValue('sql'))
+ $form->setFieldAttribute('php_method_uninstall', 'readonly', 'true');
+ if (!$form->getValue('php_method_uninstall'))
{
// Disable fields while saving.
- $form->setFieldAttribute('sql', 'filter', 'unset');
+ $form->setFieldAttribute('php_method_uninstall', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('sql', 'required', 'false');
- }
- }
- // Modify the form based on Edit Update Server Target access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.update_server_target', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.update_server_target', 'com_componentbuilder')))
- {
- // Disable fields for display.
- $form->setFieldAttribute('update_server_target', 'disabled', 'true');
- // Disable fields for display.
- $form->setFieldAttribute('update_server_target', 'readonly', 'true');
- // Disable radio button for display.
- $class = $form->getFieldAttribute('update_server_target', 'class', '');
- $form->setFieldAttribute('update_server_target', 'class', $class.' disabled no-click');
- if (!$form->getValue('update_server_target'))
- {
- // Disable fields while saving.
- $form->setFieldAttribute('update_server_target', 'filter', 'unset');
- // Disable fields while saving.
- $form->setFieldAttribute('update_server_target', 'required', 'false');
+ $form->setFieldAttribute('php_method_uninstall', 'required', 'false');
}
}
// Modify the form based on Edit Add Update Server access controls.
@@ -1427,20 +1417,55 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('add_update_server', 'required', 'false');
}
}
- // Modify the form based on Edit Sales Server Ftp access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.sales_server_ftp', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.sales_server_ftp', 'com_componentbuilder')))
+ // Modify the form based on Edit Readme access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.readme', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.readme', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('sales_server_ftp', 'disabled', 'true');
+ $form->setFieldAttribute('readme', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('sales_server_ftp', 'readonly', 'true');
- if (!$form->getValue('sales_server_ftp'))
+ $form->setFieldAttribute('readme', 'readonly', 'true');
+ if (!$form->getValue('readme'))
{
// Disable fields while saving.
- $form->setFieldAttribute('sales_server_ftp', 'filter', 'unset');
+ $form->setFieldAttribute('readme', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('sales_server_ftp', 'required', 'false');
+ $form->setFieldAttribute('readme', 'required', 'false');
+ }
+ }
+ // Modify the form based on Edit Update Server Target access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.update_server_target', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.update_server_target', 'com_componentbuilder')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('update_server_target', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('update_server_target', 'readonly', 'true');
+ // Disable radio button for display.
+ $class = $form->getFieldAttribute('update_server_target', 'class', '');
+ $form->setFieldAttribute('update_server_target', 'class', $class.' disabled no-click');
+ if (!$form->getValue('update_server_target'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('update_server_target', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('update_server_target', 'required', 'false');
+ }
+ }
+ // Modify the form based on Edit Update Server Ftp access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.update_server_ftp', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.update_server_ftp', 'com_componentbuilder')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('update_server_ftp', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('update_server_ftp', 'readonly', 'true');
+ if (!$form->getValue('update_server_ftp'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('update_server_ftp', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('update_server_ftp', 'required', 'false');
}
}
// Modify the form based on Edit Addadmin Views access controls.
@@ -1462,20 +1487,23 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('addadmin_views', 'required', 'false');
}
}
- // Modify the form based on Edit Name access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.name', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.name', 'com_componentbuilder')))
+ // Modify the form based on Edit Buildcomp access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.buildcomp', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.buildcomp', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('name', 'disabled', 'true');
+ $form->setFieldAttribute('buildcomp', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('name', 'readonly', 'true');
- if (!$form->getValue('name'))
+ $form->setFieldAttribute('buildcomp', 'readonly', 'true');
+ // Disable radio button for display.
+ $class = $form->getFieldAttribute('buildcomp', 'class', '');
+ $form->setFieldAttribute('buildcomp', 'class', $class.' disabled no-click');
+ if (!$form->getValue('buildcomp'))
{
// Disable fields while saving.
- $form->setFieldAttribute('name', 'filter', 'unset');
+ $form->setFieldAttribute('buildcomp', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('name', 'required', 'false');
+ $form->setFieldAttribute('buildcomp', 'required', 'false');
}
}
// Modify the form based on Edit Addcustom Admin Views access controls.
@@ -1567,23 +1595,23 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('adduikit', 'required', 'false');
}
}
- // Modify the form based on Edit Add Css access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.add_css', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.add_css', 'com_componentbuilder')))
+ // Modify the form based on Edit Add Email Helper access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_email_helper', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_email_helper', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('add_css', 'disabled', 'true');
+ $form->setFieldAttribute('add_email_helper', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('add_css', 'readonly', 'true');
+ $form->setFieldAttribute('add_email_helper', 'readonly', 'true');
// Disable radio button for display.
- $class = $form->getFieldAttribute('add_css', 'class', '');
- $form->setFieldAttribute('add_css', 'class', $class.' disabled no-click');
- if (!$form->getValue('add_css'))
+ $class = $form->getFieldAttribute('add_email_helper', 'class', '');
+ $form->setFieldAttribute('add_email_helper', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_email_helper'))
{
// Disable fields while saving.
- $form->setFieldAttribute('add_css', 'filter', 'unset');
+ $form->setFieldAttribute('add_email_helper', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('add_css', 'required', 'false');
+ $form->setFieldAttribute('add_email_helper', 'required', 'false');
}
}
// Modify the form based on Edit Sql Tweak access controls.
@@ -1605,25 +1633,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('sql_tweak', 'required', 'false');
}
}
- // Modify the form based on Edit Add Email Helper access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.add_email_helper', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.add_email_helper', 'com_componentbuilder')))
- {
- // Disable fields for display.
- $form->setFieldAttribute('add_email_helper', 'disabled', 'true');
- // Disable fields for display.
- $form->setFieldAttribute('add_email_helper', 'readonly', 'true');
- // Disable radio button for display.
- $class = $form->getFieldAttribute('add_email_helper', 'class', '');
- $form->setFieldAttribute('add_email_helper', 'class', $class.' disabled no-click');
- if (!$form->getValue('add_email_helper'))
- {
- // Disable fields while saving.
- $form->setFieldAttribute('add_email_helper', 'filter', 'unset');
- // Disable fields while saving.
- $form->setFieldAttribute('add_email_helper', 'required', 'false');
- }
- }
// Modify the form based on Edit Php Helper Both access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.php_helper_both', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.php_helper_both', 'com_componentbuilder')))
@@ -1656,6 +1665,22 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('php_helper_admin', 'required', 'false');
}
}
+ // Modify the form based on Edit Php Admin Event access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.php_admin_event', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.php_admin_event', 'com_componentbuilder')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('php_admin_event', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('php_admin_event', 'readonly', 'true');
+ if (!$form->getValue('php_admin_event'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('php_admin_event', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('php_admin_event', 'required', 'false');
+ }
+ }
// Modify the form based on Edit Addcustommenus access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.addcustommenus', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.addcustommenus', 'com_componentbuilder')))
@@ -1675,22 +1700,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('addcustommenus', 'required', 'false');
}
}
- // Modify the form based on Edit Php Admin Event access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.php_admin_event', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.php_admin_event', 'com_componentbuilder')))
- {
- // Disable fields for display.
- $form->setFieldAttribute('php_admin_event', 'disabled', 'true');
- // Disable fields for display.
- $form->setFieldAttribute('php_admin_event', 'readonly', 'true');
- if (!$form->getValue('php_admin_event'))
- {
- // Disable fields while saving.
- $form->setFieldAttribute('php_admin_event', 'filter', 'unset');
- // Disable fields while saving.
- $form->setFieldAttribute('php_admin_event', 'required', 'false');
- }
- }
// Modify the form based on Edit Php Helper Site access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.php_helper_site', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.php_helper_site', 'com_componentbuilder')))
@@ -1723,6 +1732,22 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('php_site_event', 'required', 'false');
}
}
+ // Modify the form based on Edit Javascript access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.javascript', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.javascript', 'com_componentbuilder')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('javascript', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('javascript', 'readonly', 'true');
+ if (!$form->getValue('javascript'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('javascript', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('javascript', 'required', 'false');
+ }
+ }
// Modify the form based on Edit Addconfig access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.addconfig', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.addconfig', 'com_componentbuilder')))
@@ -1742,6 +1767,22 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('addconfig', 'required', 'false');
}
}
+ // Modify the form based on Edit Css access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.css', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.css', 'com_componentbuilder')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('css', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('css', 'readonly', 'true');
+ if (!$form->getValue('css'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('css', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('css', 'required', 'false');
+ }
+ }
// Modify the form based on Edit Php Dashboard Methods access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.php_dashboard_methods', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.php_dashboard_methods', 'com_componentbuilder')))
@@ -1758,25 +1799,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('php_dashboard_methods', 'required', 'false');
}
}
- // Modify the form based on Edit Add Php Preflight Install access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_preflight_install', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_preflight_install', 'com_componentbuilder')))
- {
- // Disable fields for display.
- $form->setFieldAttribute('add_php_preflight_install', 'disabled', 'true');
- // Disable fields for display.
- $form->setFieldAttribute('add_php_preflight_install', 'readonly', 'true');
- // Disable radio button for display.
- $class = $form->getFieldAttribute('add_php_preflight_install', 'class', '');
- $form->setFieldAttribute('add_php_preflight_install', 'class', $class.' disabled no-click');
- if (!$form->getValue('add_php_preflight_install'))
- {
- // Disable fields while saving.
- $form->setFieldAttribute('add_php_preflight_install', 'filter', 'unset');
- // Disable fields while saving.
- $form->setFieldAttribute('add_php_preflight_install', 'required', 'false');
- }
- }
// Modify the form based on Edit Addcontributors access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.addcontributors', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.addcontributors', 'com_componentbuilder')))
@@ -1796,23 +1818,23 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('addcontributors', 'required', 'false');
}
}
- // Modify the form based on Edit Add Php Preflight Update access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_preflight_update', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_preflight_update', 'com_componentbuilder')))
+ // Modify the form based on Edit Add Php Preflight Install access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_preflight_install', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_preflight_install', 'com_componentbuilder')))
{
// Disable fields for display.
- $form->setFieldAttribute('add_php_preflight_update', 'disabled', 'true');
+ $form->setFieldAttribute('add_php_preflight_install', 'disabled', 'true');
// Disable fields for display.
- $form->setFieldAttribute('add_php_preflight_update', 'readonly', 'true');
+ $form->setFieldAttribute('add_php_preflight_install', 'readonly', 'true');
// Disable radio button for display.
- $class = $form->getFieldAttribute('add_php_preflight_update', 'class', '');
- $form->setFieldAttribute('add_php_preflight_update', 'class', $class.' disabled no-click');
- if (!$form->getValue('add_php_preflight_update'))
+ $class = $form->getFieldAttribute('add_php_preflight_install', 'class', '');
+ $form->setFieldAttribute('add_php_preflight_install', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_php_preflight_install'))
{
// Disable fields while saving.
- $form->setFieldAttribute('add_php_preflight_update', 'filter', 'unset');
+ $form->setFieldAttribute('add_php_preflight_install', 'filter', 'unset');
// Disable fields while saving.
- $form->setFieldAttribute('add_php_preflight_update', 'required', 'false');
+ $form->setFieldAttribute('add_php_preflight_install', 'required', 'false');
}
}
// Modify the form based on Edit Emptycontributors access controls.
@@ -1834,6 +1856,41 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('emptycontributors', 'required', 'false');
}
}
+ // Modify the form based on Edit Add Php Preflight Update access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_preflight_update', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_php_preflight_update', 'com_componentbuilder')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('add_php_preflight_update', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('add_php_preflight_update', 'readonly', 'true');
+ // Disable radio button for display.
+ $class = $form->getFieldAttribute('add_php_preflight_update', 'class', '');
+ $form->setFieldAttribute('add_php_preflight_update', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_php_preflight_update'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('add_php_preflight_update', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('add_php_preflight_update', 'required', 'false');
+ }
+ }
+ // Modify the form based on Edit Number access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.number', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.number', 'com_componentbuilder')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('number', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('number', 'readonly', 'true');
+ if (!$form->getValue('number'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('number', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('number', 'required', 'false');
+ }
+ }
// Modify the form based on Edit Add Php Postflight Install access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_postflight_install', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.add_php_postflight_install', 'com_componentbuilder')))
@@ -1853,22 +1910,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('add_php_postflight_install', 'required', 'false');
}
}
- // Modify the form based on Edit Number access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.number', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.number', 'com_componentbuilder')))
- {
- // Disable fields for display.
- $form->setFieldAttribute('number', 'disabled', 'true');
- // Disable fields for display.
- $form->setFieldAttribute('number', 'readonly', 'true');
- if (!$form->getValue('number'))
- {
- // Disable fields while saving.
- $form->setFieldAttribute('number', 'filter', 'unset');
- // Disable fields while saving.
- $form->setFieldAttribute('number', 'required', 'false');
- }
- }
// Modify the form based on Edit Add Php Postflight Update access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.add_php_postflight_update', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.add_php_postflight_update', 'com_componentbuilder')))
@@ -1907,25 +1948,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('add_php_method_uninstall', 'required', 'false');
}
}
- // Modify the form based on Edit Add Sql access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.add_sql', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.add_sql', 'com_componentbuilder')))
- {
- // Disable fields for display.
- $form->setFieldAttribute('add_sql', 'disabled', 'true');
- // Disable fields for display.
- $form->setFieldAttribute('add_sql', 'readonly', 'true');
- // Disable radio button for display.
- $class = $form->getFieldAttribute('add_sql', 'class', '');
- $form->setFieldAttribute('add_sql', 'class', $class.' disabled no-click');
- if (!$form->getValue('add_sql'))
- {
- // Disable fields while saving.
- $form->setFieldAttribute('add_sql', 'filter', 'unset');
- // Disable fields while saving.
- $form->setFieldAttribute('add_sql', 'required', 'false');
- }
- }
// Modify the form based on Edit Addfiles access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.addfiles', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.addfiles', 'com_componentbuilder')))
@@ -1945,6 +1967,25 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('addfiles', 'required', 'false');
}
}
+ // Modify the form based on Edit Add Sql access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.add_sql', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.add_sql', 'com_componentbuilder')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('add_sql', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('add_sql', 'readonly', 'true');
+ // Disable radio button for display.
+ $class = $form->getFieldAttribute('add_sql', 'class', '');
+ $form->setFieldAttribute('add_sql', 'class', $class.' disabled no-click');
+ if (!$form->getValue('add_sql'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('add_sql', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('add_sql', 'required', 'false');
+ }
+ }
// Modify the form based on Edit Addreadme access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.addreadme', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.addreadme', 'com_componentbuilder')))
@@ -1964,22 +2005,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('addreadme', 'required', 'false');
}
}
- // Modify the form based on Edit Update Server access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.update_server', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.update_server', 'com_componentbuilder')))
- {
- // Disable fields for display.
- $form->setFieldAttribute('update_server', 'disabled', 'true');
- // Disable fields for display.
- $form->setFieldAttribute('update_server', 'readonly', 'true');
- if (!$form->getValue('update_server'))
- {
- // Disable fields while saving.
- $form->setFieldAttribute('update_server', 'filter', 'unset');
- // Disable fields while saving.
- $form->setFieldAttribute('update_server', 'required', 'false');
- }
- }
// Modify the form based on Edit Addfolders access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.addfolders', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.addfolders', 'com_componentbuilder')))
@@ -1999,6 +2024,38 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('addfolders', 'required', 'false');
}
}
+ // Modify the form based on Edit Update Server access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.update_server', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.update_server', 'com_componentbuilder')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('update_server', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('update_server', 'readonly', 'true');
+ if (!$form->getValue('update_server'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('update_server', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('update_server', 'required', 'false');
+ }
+ }
+ // Modify the form based on Edit Toignore access controls.
+ if ($id != 0 && (!$user->authorise('joomla_component.edit.toignore', 'com_componentbuilder.joomla_component.' . (int) $id))
+ || ($id == 0 && !$user->authorise('joomla_component.edit.toignore', 'com_componentbuilder')))
+ {
+ // Disable fields for display.
+ $form->setFieldAttribute('toignore', 'disabled', 'true');
+ // Disable fields for display.
+ $form->setFieldAttribute('toignore', 'readonly', 'true');
+ if (!$form->getValue('toignore'))
+ {
+ // Disable fields while saving.
+ $form->setFieldAttribute('toignore', 'filter', 'unset');
+ // Disable fields while saving.
+ $form->setFieldAttribute('toignore', 'required', 'false');
+ }
+ }
// Modify the form based on Edit Add Sales Server access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.add_sales_server', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.add_sales_server', 'com_componentbuilder')))
@@ -2018,22 +2075,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$form->setFieldAttribute('add_sales_server', 'required', 'false');
}
}
- // Modify the form based on Edit Toignore access controls.
- if ($id != 0 && (!$user->authorise('joomla_component.edit.toignore', 'com_componentbuilder.joomla_component.' . (int) $id))
- || ($id == 0 && !$user->authorise('joomla_component.edit.toignore', 'com_componentbuilder')))
- {
- // Disable fields for display.
- $form->setFieldAttribute('toignore', 'disabled', 'true');
- // Disable fields for display.
- $form->setFieldAttribute('toignore', 'readonly', 'true');
- if (!$form->getValue('toignore'))
- {
- // Disable fields while saving.
- $form->setFieldAttribute('toignore', 'filter', 'unset');
- // Disable fields while saving.
- $form->setFieldAttribute('toignore', 'required', 'false');
- }
- }
// Modify the form based on Edit Buildcompsql access controls.
if ($id != 0 && (!$user->authorise('joomla_component.edit.buildcompsql', 'com_componentbuilder.joomla_component.' . (int) $id))
|| ($id == 0 && !$user->authorise('joomla_component.edit.buildcompsql', 'com_componentbuilder')))
@@ -2691,34 +2732,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$data['metadata'] = (string) $metadata;
}
- // Set the readme string to base64 string.
- if (isset($data['readme']))
+ // Set the sql string to base64 string.
+ if (isset($data['sql']))
{
- $data['readme'] = base64_encode($data['readme']);
- }
-
- // Set the php_postflight_install string to base64 string.
- if (isset($data['php_postflight_install']))
- {
- $data['php_postflight_install'] = base64_encode($data['php_postflight_install']);
- }
-
- // Set the php_preflight_install string to base64 string.
- if (isset($data['php_preflight_install']))
- {
- $data['php_preflight_install'] = base64_encode($data['php_preflight_install']);
- }
-
- // Set the php_method_uninstall string to base64 string.
- if (isset($data['php_method_uninstall']))
- {
- $data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']);
- }
-
- // Set the css string to base64 string.
- if (isset($data['css']))
- {
- $data['css'] = base64_encode($data['css']);
+ $data['sql'] = base64_encode($data['sql']);
}
// Set the php_preflight_update string to base64 string.
@@ -2733,10 +2750,28 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$data['php_postflight_update'] = base64_encode($data['php_postflight_update']);
}
- // Set the sql string to base64 string.
- if (isset($data['sql']))
+ // Set the php_preflight_install string to base64 string.
+ if (isset($data['php_preflight_install']))
{
- $data['sql'] = base64_encode($data['sql']);
+ $data['php_preflight_install'] = base64_encode($data['php_preflight_install']);
+ }
+
+ // Set the php_postflight_install string to base64 string.
+ if (isset($data['php_postflight_install']))
+ {
+ $data['php_postflight_install'] = base64_encode($data['php_postflight_install']);
+ }
+
+ // Set the php_method_uninstall string to base64 string.
+ if (isset($data['php_method_uninstall']))
+ {
+ $data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']);
+ }
+
+ // Set the readme string to base64 string.
+ if (isset($data['readme']))
+ {
+ $data['readme'] = base64_encode($data['readme']);
}
// Set the php_helper_both string to base64 string.
@@ -2769,6 +2804,18 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin
$data['php_site_event'] = base64_encode($data['php_site_event']);
}
+ // Set the javascript string to base64 string.
+ if (isset($data['javascript']))
+ {
+ $data['javascript'] = base64_encode($data['javascript']);
+ }
+
+ // Set the css string to base64 string.
+ if (isset($data['css']))
+ {
+ $data['css'] = base64_encode($data['css']);
+ }
+
// Set the php_dashboard_methods string to base64 string.
if (isset($data['php_dashboard_methods']))
{
diff --git a/admin/models/joomla_components.php b/admin/models/joomla_components.php
index 0eb462636..1f3e230d6 100644
--- a/admin/models/joomla_components.php
+++ b/admin/models/joomla_components.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 378 of this MVC
- @build 18th September, 2017
+ @version @update number 385 of this MVC
+ @build 6th October, 2017
@created 6th May, 2015
@package Component Builder
@subpackage joomla_components.php
@@ -1350,27 +1350,25 @@ class ComponentbuilderModelJoomla_components extends JModelList
{
foreach ($items as $nr => &$item)
{
- // decode readme
- $item->readme = base64_decode($item->readme);
- // decode php_postflight_install
- $item->php_postflight_install = base64_decode($item->php_postflight_install);
- // decode php_preflight_install
- $item->php_preflight_install = base64_decode($item->php_preflight_install);
- // decode php_method_uninstall
- $item->php_method_uninstall = base64_decode($item->php_method_uninstall);
- // decode css
- $item->css = base64_decode($item->css);
+ // decode sql
+ $item->sql = base64_decode($item->sql);
+ // decode php_preflight_update
+ $item->php_preflight_update = base64_decode($item->php_preflight_update);
+ // decode php_postflight_update
+ $item->php_postflight_update = base64_decode($item->php_postflight_update);
if ($basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true)))
{
// decrypt whmcs_key
$item->whmcs_key = $basic->decryptString($item->whmcs_key);
}
- // decode php_preflight_update
- $item->php_preflight_update = base64_decode($item->php_preflight_update);
- // decode php_postflight_update
- $item->php_postflight_update = base64_decode($item->php_postflight_update);
- // decode sql
- $item->sql = base64_decode($item->sql);
+ // decode php_preflight_install
+ $item->php_preflight_install = base64_decode($item->php_preflight_install);
+ // decode php_postflight_install
+ $item->php_postflight_install = base64_decode($item->php_postflight_install);
+ // decode php_method_uninstall
+ $item->php_method_uninstall = base64_decode($item->php_method_uninstall);
+ // decode readme
+ $item->readme = base64_decode($item->readme);
if ($basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true)))
{
// decrypt export_key
@@ -1386,6 +1384,10 @@ class ComponentbuilderModelJoomla_components extends JModelList
$item->php_helper_site = base64_decode($item->php_helper_site);
// decode php_site_event
$item->php_site_event = base64_decode($item->php_site_event);
+ // decode javascript
+ $item->javascript = base64_decode($item->javascript);
+ // decode css
+ $item->css = base64_decode($item->css);
// decode php_dashboard_methods
$item->php_dashboard_methods = base64_decode($item->php_dashboard_methods);
// decode buildcompsql
diff --git a/admin/models/layout.php b/admin/models/layout.php
index 300156117..e4f91cd75 100644
--- a/admin/models/layout.php
+++ b/admin/models/layout.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage layout.php
diff --git a/admin/models/layouts.php b/admin/models/layouts.php
index bfc764d97..13eb16f27 100644
--- a/admin/models/layouts.php
+++ b/admin/models/layouts.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage layouts.php
diff --git a/admin/models/site_view.php b/admin/models/site_view.php
index 7a70314f9..1bf39c15c 100644
--- a/admin/models/site_view.php
+++ b/admin/models/site_view.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage site_view.php
@@ -185,7 +185,7 @@ class ComponentbuilderModelSite_view extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
- public function getVyulinked_components()
+ public function getVyvlinked_components()
{
// Get the user object.
$user = JFactory::getUser();
diff --git a/admin/models/site_views.php b/admin/models/site_views.php
index 7e36b946b..d5ea57292 100644
--- a/admin/models/site_views.php
+++ b/admin/models/site_views.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage site_views.php
diff --git a/admin/models/snippet.php b/admin/models/snippet.php
index a42e22c75..39ed7f9b7 100644
--- a/admin/models/snippet.php
+++ b/admin/models/snippet.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage snippet.php
diff --git a/admin/models/snippets.php b/admin/models/snippets.php
index a91bc4386..2f0ef9722 100644
--- a/admin/models/snippets.php
+++ b/admin/models/snippets.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage snippets.php
diff --git a/admin/models/template.php b/admin/models/template.php
index 83c2fbe70..39a764acc 100644
--- a/admin/models/template.php
+++ b/admin/models/template.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage template.php
diff --git a/admin/models/templates.php b/admin/models/templates.php
index 2c3571dfb..6a7503245 100644
--- a/admin/models/templates.php
+++ b/admin/models/templates.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage templates.php
diff --git a/admin/sql/install.mysql.utf8.sql b/admin/sql/install.mysql.utf8.sql
index 903724015..cef63858a 100644
--- a/admin/sql/install.mysql.utf8.sql
+++ b/admin/sql/install.mysql.utf8.sql
@@ -4,6 +4,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` (
`add_admin_event` TINYINT(1) NOT NULL DEFAULT 0,
`add_css` TINYINT(1) NOT NULL DEFAULT 0,
`add_email_helper` TINYINT(1) NOT NULL DEFAULT 0,
+ `add_javascript` TINYINT(1) NOT NULL DEFAULT 0,
`add_license` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_dashboard_methods` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_helper_admin` TINYINT(1) NOT NULL DEFAULT 0,
@@ -48,6 +49,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` (
`export_key` TEXT NOT NULL,
`export_package_link` VARCHAR(255) NOT NULL DEFAULT '',
`image` CHAR(64) NOT NULL DEFAULT '',
+ `javascript` TEXT NOT NULL,
`license` VARCHAR(255) NOT NULL DEFAULT '',
`license_type` TINYINT(1) NOT NULL DEFAULT 0,
`mvc_versiondate` TINYINT(1) NOT NULL DEFAULT 0,
@@ -100,27 +102,28 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` (
KEY `idx_state` (`published`),
KEY `idx_name_code` (`name_code`),
KEY `idx_add_placeholders` (`add_placeholders`),
- KEY `idx_add_php_dashboard_methods` (`add_php_dashboard_methods`),
- KEY `idx_add_php_helper_admin` (`add_php_helper_admin`),
+ KEY `idx_add_css` (`add_css`),
+ KEY `idx_add_admin_event` (`add_admin_event`),
KEY `idx_debug_linenr` (`debug_linenr`),
KEY `idx_mvc_versiondate` (`mvc_versiondate`),
- KEY `idx_add_php_helper_site` (`add_php_helper_site`),
+ KEY `idx_add_site_event` (`add_site_event`),
+ KEY `idx_name` (`name`),
KEY `idx_creatuserhelper` (`creatuserhelper`),
+ KEY `idx_add_php_helper_both` (`add_php_helper_both`),
KEY `idx_add_license` (`add_license`),
KEY `idx_addfootable` (`addfootable`),
KEY `idx_license_type` (`license_type`),
- KEY `idx_add_php_helper_both` (`add_php_helper_both`),
- KEY `idx_add_admin_event` (`add_admin_event`),
- KEY `idx_add_site_event` (`add_site_event`),
- KEY `idx_update_server_target` (`update_server_target`),
+ KEY `idx_add_php_helper_admin` (`add_php_helper_admin`),
+ KEY `idx_add_php_helper_site` (`add_php_helper_site`),
+ KEY `idx_add_javascript` (`add_javascript`),
+ KEY `idx_add_php_dashboard_methods` (`add_php_dashboard_methods`),
KEY `idx_add_update_server` (`add_update_server`),
- KEY `idx_name` (`name`),
+ KEY `idx_update_server_target` (`update_server_target`),
KEY `idx_adduikit` (`adduikit`),
- KEY `idx_add_css` (`add_css`),
KEY `idx_add_email_helper` (`add_email_helper`),
KEY `idx_add_php_preflight_install` (`add_php_preflight_install`),
- KEY `idx_add_php_preflight_update` (`add_php_preflight_update`),
KEY `idx_emptycontributors` (`emptycontributors`),
+ KEY `idx_add_php_preflight_update` (`add_php_preflight_update`),
KEY `idx_add_php_postflight_install` (`add_php_postflight_install`),
KEY `idx_add_php_postflight_update` (`add_php_postflight_update`),
KEY `idx_add_php_method_uninstall` (`add_php_method_uninstall`),
@@ -312,16 +315,16 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_admin_view` (
KEY `idx_state` (`published`),
KEY `idx_name` (`name`),
KEY `idx_codename` (`codename`),
- KEY `idx_main_get` (`main_get`),
- KEY `idx_add_php_document` (`add_php_document`),
- KEY `idx_dynamic_get` (`dynamic_get`),
- KEY `idx_add_php_view` (`add_php_view`),
- KEY `idx_add_php_jview_display` (`add_php_jview_display`),
KEY `idx_add_php_jview` (`add_php_jview`),
- KEY `idx_add_js_document` (`add_js_document`),
- KEY `idx_add_custom_button` (`add_custom_button`),
+ KEY `idx_add_php_view` (`add_php_view`),
KEY `idx_add_css_document` (`add_css_document`),
- KEY `idx_add_css` (`add_css`)
+ KEY `idx_add_php_jview_display` (`add_php_jview_display`),
+ KEY `idx_add_js_document` (`add_js_document`),
+ KEY `idx_add_css` (`add_css`),
+ KEY `idx_add_php_document` (`add_php_document`),
+ KEY `idx_main_get` (`main_get`),
+ KEY `idx_dynamic_get` (`dynamic_get`),
+ KEY `idx_add_custom_button` (`add_custom_button`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__componentbuilder_site_view` (
@@ -425,8 +428,8 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_template` (
KEY `idx_state` (`published`),
KEY `idx_name` (`name`),
KEY `idx_alias` (`alias`),
- KEY `idx_add_php_view` (`add_php_view`),
- KEY `idx_dynamic_get` (`dynamic_get`)
+ KEY `idx_dynamic_get` (`dynamic_get`),
+ KEY `idx_add_php_view` (`add_php_view`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__componentbuilder_layout` (
@@ -519,10 +522,10 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_dynamic_get` (
KEY `idx_main_source` (`main_source`),
KEY `idx_gettype` (`gettype`),
KEY `idx_add_php_before_getitem` (`add_php_before_getitem`),
- KEY `idx_add_php_after_getitems` (`add_php_after_getitems`),
KEY `idx_add_php_getlistquery` (`add_php_getlistquery`),
KEY `idx_add_php_after_getitem` (`add_php_after_getitem`),
KEY `idx_add_php_before_getitems` (`add_php_before_getitems`),
+ KEY `idx_add_php_after_getitems` (`add_php_after_getitems`),
KEY `idx_getcustom` (`getcustom`),
KEY `idx_pagination` (`pagination`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
@@ -839,8 +842,8 @@ INSERT INTO `#__componentbuilder_site_view` (`id`, `add_css_document`, `add_css`
--
INSERT INTO `#__componentbuilder_dynamic_get` (`id`, `add_php_after_getitem`, `add_php_before_getitem`, `add_php_after_getitems`, `add_php_before_getitems`, `add_php_getlistquery`, `php_after_getitem`, `php_before_getitem`, `php_before_getitems`, `php_getlistquery`, `php_after_getitems`, `pagination`, `addcalculation`, `db_selection`, `db_table_main`, `filter`, `getcustom`, `gettype`, `global`, `join_db_table`, `join_view_table`, `main_source`, `name`, `not_required`, `order`, `php_calculation`, `php_custom_get`, `view_selection`, `view_table_main`, `where`, `params`, `published`, `version`, `hits`, `ordering`) VALUES
-(36, '', '', 1, '', '', '', '', '', '', 'CQkvLyBkbyBhIHF1aWNrIGJ1aWxkIG9mIGFsbCBlZGl0IGxpbmtzIGxpbmtzDQoJCWlmIChpc3NldCgkaXRlbXMpICYmICRpdGVtcykNCgkJew0KCQkJZm9yZWFjaCAoJGl0ZW1zIGFzICRuciA9PiAmJGl0ZW0pDQoJCQl7DQoJCQkJJGNhbkRvID0gW1tbQ29tcG9uZW50XV1dSGVscGVyOjpnZXRBY3Rpb25zKCdsb29rJywkaXRlbSwnbG9va3MnKTsNCgkJCQlpZiAoJGNhbkRvLT5nZXQoJ2xvb2suZWRpdCcpKQ0KCQkJCXsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rID0gJzxiciAvPjxiciAvPjxhIGNsYXNzPSJ1ay1idXR0b24gdWstYnV0dG9uLXByaW1hcnkgdWstd2lkdGgtMS0xIiBocmVmPSInOw0KCQkJCQkkaXRlbS0+ZWRpdExpbmsgLj0gSlJvdXRlOjpfKCdpbmRleC5waHA/b3B0aW9uPWNvbV9bW1tjb21wb25lbnRdXV0mdmlldz1sb29rJnRhc2s9bG9vay5lZGl0JmlkPScgLiAkaXRlbS0+aWQpOw0KCQkJCQkkaXRlbS0+ZWRpdExpbmsgLj0gJyI+PGkgY2xhc3M9InVrLWljb24tcGVuY2lsIj48L2k+PHNwYW4gY2xhc3M9InVrLWhpZGRlbi1zbWFsbCI+JzsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rIC49IEpUZXh0OjpfKCdFZGl0IExvb2snKTsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rIC49ICc8L3NwYW4+PC9hPic7DQoJCQkJfQ0KCQkJCWVsc2UNCgkJCQl7DQoJCQkJCSRpdGVtLT5lZGl0TGluayA9ICcnOw0KCQkJCX0NCgkJCX0NCgkJfQ==', 1, '', '', '', '{\"filter_type\":[],\"state_key\":[],\"operator\":[],\"table_key\":[]}', '', 2, '{\"name\":[],\"key\":[],\"as\":[],\"type\":[]}', '', '{\"view_table\":[],\"row_type\":[],\"as\":[],\"type\":[],\"on_field\":[],\"operator\":[],\"join_field\":[],\"selection\":[]}', 1, 'Looks', '', '{\"table_key\":[\"a.name\"],\"direction\":[\"ASC\"]}', '', '', 'a.id AS id\r\na.name AS name\r\na.alias AS alias\r\na.description AS description\r\na.add AS add\r\na.email AS email\r\na.mobile_phone AS mobile_phone\r\na.dateofbirth AS dateofbirth\r\na.image AS image\r\na.website AS website\r\na.not_required AS not_required\r\na.published AS published\r\na.hits AS hits\r\na.ordering AS ordering', 109, '{\"table_key\":[\"a.published\"],\"operator\":[\"1\"],\"value_key\":[\"1\"]}', '', 1, 5, '', 13),
-(39, '', '', '', '', '', '', '', '', '', '', 1, '', '', '', '{\"filter_type\":[\"1\"],\"state_key\":[\"id\"],\"operator\":[\"1\"],\"table_key\":[\"a.id\"]}', '', 1, '', '', '', 1, 'Looking', '', '', '', '', 'a.id AS id\r\na.name AS name\r\na.alias AS alias\r\na.description AS description\r\na.add AS add\r\na.email AS email\r\na.mobile_phone AS mobile_phone\r\na.dateofbirth AS dateofbirth\r\na.image AS image\r\na.website AS website\r\na.published AS published\r\na.hits AS hits', 109, '{\"table_key\":[],\"operator\":[],\"value_key\":[]}', '', 1, 7, '', '');
+(36, '', '', 1, '', '', '', '', '', '', 'CQkvLyBkbyBhIHF1aWNrIGJ1aWxkIG9mIGFsbCBlZGl0IGxpbmtzIGxpbmtzDQoJCWlmIChpc3NldCgkaXRlbXMpICYmICRpdGVtcykNCgkJew0KCQkJZm9yZWFjaCAoJGl0ZW1zIGFzICRuciA9PiAmJGl0ZW0pDQoJCQl7DQoJCQkJJGNhbkRvID0gW1tbQ29tcG9uZW50XV1dSGVscGVyOjpnZXRBY3Rpb25zKCdsb29rJywkaXRlbSwnbG9va3MnKTsNCgkJCQlpZiAoJGNhbkRvLT5nZXQoJ2xvb2suZWRpdCcpKQ0KCQkJCXsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rID0gJzxiciAvPjxiciAvPjxhIGNsYXNzPSJ1ay1idXR0b24gdWstYnV0dG9uLXByaW1hcnkgdWstd2lkdGgtMS0xIiBocmVmPSInOw0KCQkJCQkkaXRlbS0+ZWRpdExpbmsgLj0gSlJvdXRlOjpfKCdpbmRleC5waHA/b3B0aW9uPWNvbV9bW1tjb21wb25lbnRdXV0mdmlldz1sb29rJnRhc2s9bG9vay5lZGl0JmlkPScgLiAkaXRlbS0+aWQpOw0KCQkJCQkkaXRlbS0+ZWRpdExpbmsgLj0gJyI+PGkgY2xhc3M9InVrLWljb24tcGVuY2lsIj48L2k+PHNwYW4gY2xhc3M9InVrLWhpZGRlbi1zbWFsbCI+JzsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rIC49IEpUZXh0OjpfKCdFZGl0IExvb2snKTsNCgkJCQkJJGl0ZW0tPmVkaXRMaW5rIC49ICc8L3NwYW4+PC9hPic7DQoJCQkJfQ0KCQkJCWVsc2UNCgkJCQl7DQoJCQkJCSRpdGVtLT5lZGl0TGluayA9ICcnOw0KCQkJCX0NCgkJCX0NCgkJfQ==', 1, '', '', '', '', '', 2, '', '', '', 1, 'Looks', '', '{\"order0\":{\"table_key\":\"a.name\",\"direction\":\"ASC\"}}', '', '', 'a.id AS id\r\na.name AS name\r\na.alias AS alias\r\na.description AS description\r\na.add AS add\r\na.email AS email\r\na.mobile_phone AS mobile_phone\r\na.dateofbirth AS dateofbirth\r\na.image AS image\r\na.website AS website\r\na.not_required AS not_required\r\na.published AS published\r\na.hits AS hits\r\na.ordering AS ordering', 109, '{\"where0\":{\"table_key\":\"a.published\",\"operator\":\"1\",\"value_key\":\"1\"}}', '', 1, 5, '', 13),
+(39, '', '', '', '', '', '', '', '', '', '', 1, '', '', '', '{\"filter0\":{\"filter_type\":\"1\",\"state_key\":\"id\",\"operator\":\"1\",\"table_key\":\"a.id\"}}', '', 1, '', '', '', 1, 'Looking', '', '', '', '', 'a.id AS id\r\na.name AS name\r\na.alias AS alias\r\na.description AS description\r\na.add AS add\r\na.email AS email\r\na.mobile_phone AS mobile_phone\r\na.dateofbirth AS dateofbirth\r\na.image AS image\r\na.website AS website\r\na.published AS published\r\na.hits AS hits', 109, '', '', 1, 7, '', '');
@@ -963,8 +966,8 @@ INSERT INTO `#__componentbuilder_field` (`id`, `add_css_view`, `add_css_views`,
--
INSERT INTO `#__componentbuilder_fieldtype` (`id`, `catid`, `description`, `name`, `properties`, `short_description`, `params`, `published`, `version`, `hits`, `ordering`) VALUES
-(1, '', 'The calendar form field type provides a text box for entry of a date. An icon next to the text box provides a link to a pop-up calendar, which can also be used to enter the date value. If the field has a saved value this is shown in the text box. Otherwis', 'Calendar', '{\"properties0\":{\"name\":\"type\",\"example\":\"calendar\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) must be calendar.\"},\"properties1\":{\"name\":\"name\",\"example\":\"date\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select a date\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"NOW\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is the default date. This must be given in the same format as specified by the format argument. You can put \\\"NOW\\\" to have current time.\"},\"properties4\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the text box.\"},\"properties5\":{\"name\":\"readonly\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is whether the text box is read-only (true or false). If the text box is read-only, the date cannot be changed, but can be selected and copied. No calendar icon will be shown.\"},\"properties6\":{\"name\":\"disabled\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is whether the text box is disabled (true or false). If the text box is disabled, the date cannot be changed, selected or copied.\"},\"properties7\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is a CSS class name for the HTML form field.\"},\"properties8\":{\"name\":\"format\",\"example\":\"%d-%m-%Y\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is the date format to be used. This is in the format used by PHP to specify date string formats (see below). If no format argument is given, \'%Y-%m-%d\' is assumed (giving dates like \'2008-04-16\').\"},\"properties9\":{\"name\":\"filter\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is time zone to be used. There are two values; server_utc and user_utc. The first one is server time zone and the later is user time zone as configured in global configuration and user information respectively.\"},\"properties10\":{\"name\":\"size\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional)\"},\"properties11\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'provides a text box for entry of a date. An icon next to the text box provides a link to a pop-up calendar, which can also be used to enter the date value.', '', 1, 3, '', ''),
-(2, '', 'The category form field type provides a drop down list of all published categories for a certain extension. If the parameter has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected. If the show_root', 'Category', '{\"properties0\":{\"name\":\"type\",\"example\":\"category\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) must be category.\"},\"properties1\":{\"name\":\"name\",\"example\":\"mycategory\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select a category\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"extension\",\"example\":\"com_content\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the name of the extension for which the categories will be retrieved. For example, to list content categories, use the value \'com_content\'. You can add also target one view, use the value \'com_component.view\'.\"},\"properties4\":{\"name\":\"scope\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is an alias for extension.\"},\"properties5\":{\"name\":\"required\",\"example\":\"true\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties6\":{\"name\":\"show_root\",\"example\":\"false\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is whether a choice representing the root category will be shown.\"},\"properties7\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is the default category ID number.\"},\"properties8\":{\"name\":\"description\",\"example\":\"select one of the following categories\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties9\":{\"name\":\"class\",\"example\":\"inputbox\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'inputbox\'.\"},\"properties10\":{\"name\":\"published\",\"example\":\"true\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) (true\\/false) is whether the drop down will show only published or unpublished categories.\"},\"properties11\":{\"name\":\"multiple\",\"example\":\"false\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is whether multiple items can be selected at the same time (true or false).\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'provides a drop down list of categories for an extension.', '', 1, 3, '', ''),
+(1, '', 'The calendar form field type provides a text box for entry of a date. An icon next to the text box provides a link to a pop-up calendar, which can also be used to enter the date value. If the field has a saved value this is shown in the text box. Otherwis', 'Calendar', '{\"properties0\":{\"name\":\"type\",\"example\":\"calendar\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be calendar.\"},\"properties1\":{\"name\":\"name\",\"example\":\"date\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select a date\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"NOW\",\"adjustable\":\"1\",\"description\":\"(optional) is the default date. This must be given in the same format as specified by the format argument. You can put \\\"NOW\\\" to have current time.\"},\"properties4\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the text box.\"},\"properties5\":{\"name\":\"readonly\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is whether the text box is read-only (true or false). If the text box is read-only, the date cannot be changed, but can be selected and copied. No calendar icon will be shown.\"},\"properties6\":{\"name\":\"disabled\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is whether the text box is disabled (true or false). If the text box is disabled, the date cannot be changed, selected or copied.\"},\"properties7\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field.\"},\"properties8\":{\"name\":\"format\",\"example\":\"%d-%m-%Y\",\"adjustable\":\"1\",\"description\":\"(optional) is the date format to be used. This is in the format used by PHP to specify date string formats (see below). If no format argument is given, \'%Y-%m-%d\' is assumed (giving dates like \'2008-04-16\').\"},\"properties9\":{\"name\":\"filter\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is time zone to be used. There are two values; server_utc and user_utc. The first one is server time zone and the later is user time zone as configured in global configuration and user information respectively.\"},\"properties10\":{\"name\":\"size\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional)\"},\"properties11\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"},\"properties22\":{\"name\":\"translateformat\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): If set to true, the calendar will use a language string to determine the format. The `format` attribute is ignored. If false, the `format` attribute is used (same behaviour as today). (starting with 3.7.0)\"},\"properties13\":{\"name\":\"showtime\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): If set to true and translateformat is true, the language key DATE_FORMAT_CALENDAR_DATETIME is used, otherwise DATE_FORMAT_CALENDAR_DATE. (starting with 3.7.0)\"},\"properties14\":{\"name\":\"timeformat\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): can be set to 12 (and specify AM or PM) or 24 (starting with 3.7.0)\"},\"properties15\":{\"name\":\"singleheader\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): if set to false, the year and the month selection will be set on two separates lines, with independant selection (starting with 3.7.0)\"},\"properties16\":{\"name\":\"todaybutton\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): if set to true, a button is added at the bottom of the datePicker to select the date of the current day (starting with 3.7.0)\"},\"properties17\":{\"name\":\"weeknumbers\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): if set to true, a column is added at the left of the datePicker to display the number of the week in the current year (starting with 3.7.0)\"},\"properties18\":{\"name\":\"filltable\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): if set to true, dates of the previous and next month is added at the top and the bottom of the current month to fill the grid (starting with 3.7.0)\"},\"properties19\":{\"name\":\"minyear\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): set a signed integer for a number of years (-10, -2, 0, 7, 12, ...) to define the relative lower limit for the year selection. The user could not select a year before your limit (starting with 3.7.0)\"},\"properties20\":{\"name\":\"maxyear\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional): set a signed integer for a number of years (-10, -2, 0, 7, 12, ...) to define the relative upper limit for the year selection. The user could not select a year after your limit (starting with 3.7.0)\"}}', 'provides a text box for entry of a date. An icon next to the text box provides a link to a pop-up calendar, which can also be used to enter the date value.', '', 1, 5, '', ''),
+(2, '', 'The category form field type provides a drop down list of all published categories for a certain extension. If the parameter has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected. If the show_root', 'Category', '{\"properties0\":{\"name\":\"type\",\"example\":\"category\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be category.\"},\"properties1\":{\"name\":\"name\",\"example\":\"mycategory\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select a category\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"extension\",\"example\":\"com_content\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the name of the extension for which the categories will be retrieved. For example, to list content categories, use the value \'com_content\'. You can add also target one view, use the value \'com_component.view\'.\"},\"properties4\":{\"name\":\"scope\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is an alias for extension.\"},\"properties5\":{\"name\":\"required\",\"example\":\"true\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties6\":{\"name\":\"show_root\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) is whether a choice representing the root category will be shown.\"},\"properties7\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is the default category ID number.\"},\"properties8\":{\"name\":\"description\",\"example\":\"select one of the following categories\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties9\":{\"name\":\"class\",\"example\":\"inputbox\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'inputbox\'.\"},\"properties10\":{\"name\":\"published\",\"example\":\"true\",\"adjustable\":\"1\",\"description\":\"(optional) (true\\/false) is whether the drop down will show only published or unpublished categories.\"},\"properties11\":{\"name\":\"multiple\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) is whether multiple items can be selected at the same time (true or false).\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'provides a drop down list of categories for an extension.', '', 1, 5, '', ''),
(3, '', 'The checkbox form field type provides a single checkbox. If the parameter has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected.', 'Checkbox', '{\"properties0\":{\"name\":\"type\",\"example\":\"checkbox\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) must be checkbox\"},\"properties1\":{\"name\":\"name\",\"example\":\"show_title\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Show title\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"value\",\"example\":\"1\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is the value of the parameter if this checkbox is set (usually 1).\"},\"properties4\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is the default value (usually 0 or 1).\"},\"properties5\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties6\":{\"name\":\"description\",\"example\":\"Show the title of the item\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the label.\"},\"properties7\":{\"name\":\"class\",\"example\":\"inputbox\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'inputbox\'.\"},\"properties8\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'provides a single checkbox to be checked or unchecked', '', 1, 2, '', ''),
(4, '', 'The checkboxes form field type provides a set of checkboxes. Note: unlike most standard form field types, such as textfield or checkbox, this field is not an \"out of the box\" solution. It will create checkboxes for you, and submit their values in form of ', 'Checkboxes', '{\"properties0\":{\"name\":\"type\",\"example\":\"checkboxes\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) must be checkboxs\"},\"properties1\":{\"name\":\"name\",\"example\":\"toppings\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select Toppings\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"option\",\"example\":\"anch|Anchovies,chor|Chorizo,on|Onions,mush|Mushrooms\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) set the options of this radio. Separate options with commas and use the pipe symbol to separate value from text.\"},\"properties4\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is the default value.\"},\"properties5\":{\"name\":\"description\",\"example\":\"Select the topping of your choice\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the label.\"},\"properties6\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties7\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'inputbox\'.\"},\"properties8\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'provides unlimited checkboxes that can be used for multi-select.', '', 1, 2, '', ''),
(5, '', 'Provides a color picker. Enter the color as #ff00ff or pick it from the palet.', 'Color', '{\"properties0\":{\"name\":\"type\",\"example\":\"color\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) must be color.\"},\"properties1\":{\"name\":\"name\",\"example\":\"backgroundcolor\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"default\",\"example\":\"#FFFFFF\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) provides a color when not set.\"},\"properties3\":{\"name\":\"label\",\"example\":\"Background\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties4\":{\"name\":\"description\",\"example\":\"Select the background color here.\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) tooltip for the form field.\"},\"properties5\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties6\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'provides a color picker when clicking the input box.', '', 1, 2, '', ''),
@@ -997,7 +1000,7 @@ INSERT INTO `#__componentbuilder_fieldtype` (`id`, `catid`, `description`, `name
(32, '', 'Note: When using the file input type you should always add the attribute enctype=\"multipart/form-data\" to your form tag. Otherwise, the uploaded files will not be attached correctly. Note 2: You can put a soft limit file size by adding a hidden field with name=\"MAX_FILE_SIZE\" and value the maximum allowed bytes which is handled by php, but you must also handle it in your code with or without it.', 'File', '{\"properties0\":{\"name\":\"type\",\"example\":\"file\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) must be file.\"},\"properties1\":{\"name\":\"name\",\"example\":\"myfilevalue\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Enter some text\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"description\",\"example\":\"Choose an image from your computer with maximum 100KB\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties4\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) (not translatable) is the default value, but doesn\'t mean much for a file.\"},\"properties5\":{\"name\":\"size\",\"example\":\"10\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is the width of the file box in characters.\"},\"properties6\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is a CSS class name for the HTML form field.\"},\"properties7\":{\"name\":\"labelclass\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) adds a CSS class for form field\'s label; for Joomla 2.5.4+\"},\"properties8\":{\"name\":\"disabled\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) HTML equivalent attribute\"},\"properties9\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) HTML equivalent attribute (javascript use)\"},\"properties10\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) For Joomla form validating it to be filled in\"},\"properties11\":{\"name\":\"validate\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) Whether to Joomla validate the field according to rules\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\"}}', 'Provides an input field for files', '', 1, 1, '', 3),
(33, '', 'The menuitem form field type provides a drop down grouped list of the available menu items from your Joomla site.', 'menuitem', '{\"properties0\":{\"name\":\"type\",\"example\":\"menuitem\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) must be menuitem.\"},\"properties1\":{\"name\":\"name\",\"example\":\"mymenuitem\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select a menu item\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is the default menu item. Note that this is the ItemID number of the menu item.\"},\"properties4\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties5\":{\"name\":\"published\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) determines whether all menu items are listed or only published menu items. If state is \'0\' then all menu items will be listed. If state is \'1\' then only published menu items will be listed.\"},\"properties6\":{\"name\":\"filter\",\"example\":\"int\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(optional) allow the system to save certain html tags or raw data.\"},\"properties7\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\"}}', 'provides a drop down list of the available menu items from your Joomla site.', '', 1, 2, '', 4),
(34, '', 'Remember all views already have [accesslevel] added by default, only add this if you need more custom access selection! Provides a dropdown list of accesslevel options with the current option selected.', 'Accesslevel', '{\"properties0\":{\"name\":\"type\",\"example\":\"accesslevel\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) must be accesslevel\"},\"properties1\":{\"name\":\"name\",\"example\":\"accesstwo\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the field. This must match the name of the query results column that contains the values that will be shown to the user in the drop-down list, unless a different name is specified in the value_field attribute. \"},\"properties2\":{\"name\":\"label\",\"example\":\"Access Two\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"description\",\"example\":\"Select a access level to this concept.\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties4\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is a CSS class name for the HTML form field.\"},\"properties5\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is the field required true if yes.\"},\"properties6\":{\"name\":\"multiple\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) If set to multiple then allows more than one usergroup to be selected.\"},\"properties7\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'List of accesslevels', '', 1, 1, '', 5),
-(35, '', 'Provides a form with rows of fields that you specify. As many options can be added as desired. Note this form field has a jQuery based javascript file as a dependency.', 'Subform', '{\"properties0\":{\"name\":\"type\",\"example\":\"subform\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(mandatory) must be subform.\"},\"properties1\":{\"name\":\"name\",\"example\":\"options\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the parameter\"},\"properties2\":{\"name\":\"label\",\"example\":\"The Option List\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"layout\",\"example\":\"joomla.form.field.subform.repeatable-table\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(mandatory) The layout for the repeatable table.\"},\"properties4\":{\"name\":\"multiple\",\"example\":\"true\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) The rows to be multiple.\"},\"properties5\":{\"name\":\"fields\",\"example\":\"1,2,3\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) The fields to add to the modal. All fields must first be created in component builder as a field before you can add them here, since you must use the id of the field. Separate the field ids with commas. Do not add custom fields that are not also used in this component.\"},\"properties6\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) description text for the form field. Displays at the top of the modal with the name as well as in the usual position in the form\"},\"properties7\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The default value for the form field if the field is left empty. Note this has to be a json string compatible with the contents of the form field.\"},\"properties8\":{\"name\":\"icon\",\"example\":\"list\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The icon to show on the select button (is prefixed with \\\"icon-\\\").\"},\"properties9\":{\"name\":\"maximum\",\"example\":\"50\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) The maximum number of rows of fields allowed (by default 999 to be effectively infinite)\"},\"properties10\":{\"name\":\"filter\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) Use only if you would like to save raw data, since the default is best.\"},\"properties11\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Allows form fields which can have as many options as the user desires.', '', 1, 4, '', 6);
+(35, '', 'Provides a form with rows of fields that you specify. As many options can be added as desired. Note this form field has a jQuery based javascript file as a dependency.', 'Subform', '{\"properties0\":{\"name\":\"type\",\"example\":\"subform\",\"adjustable\":\"1\",\"description\":\"(mandatory) must be subform.\"},\"properties1\":{\"name\":\"name\",\"example\":\"options\",\"adjustable\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter\"},\"properties2\":{\"name\":\"label\",\"example\":\"The Option List\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"layout\",\"example\":\"joomla.form.field.subform.repeatable-table\",\"adjustable\":\"1\",\"description\":\"(mandatory) The layout for the repeatable table.\"},\"properties4\":{\"name\":\"multiple\",\"example\":\"true\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The rows to be multiple.\"},\"properties5\":{\"name\":\"fields\",\"example\":\"1,2,3\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The fields to add to the modal. All fields must first be created in component builder as a field before you can add them here, since you must use the id of the field. Separate the field ids with commas. Do not add custom fields that are not also used in this component.\"},\"properties7\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) description text for the form field. Displays at the top of the modal with the name as well as in the usual position in the form\"},\"properties8\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The default value for the form field if the field is left empty. Note this has to be a json string compatible with the contents of the form field.\"},\"properties9\":{\"name\":\"icon\",\"example\":\"list\",\"adjustable\":\"1\",\"description\":\"(optional) The icon to show on the select button (is prefixed with \\\"icon-\\\").\"},\"properties10\":{\"name\":\"maximum\",\"example\":\"50\",\"adjustable\":\"1\",\"description\":\"(optional) The maximum number of rows of fields allowed (by default 999 to be effectively infinite)\"},\"properties11\":{\"name\":\"filter\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Use only if you would like to save raw data, since the default is best.\"},\"properties12\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Allows form fields which can have as many options as the user desires.', '', 1, 6, '', 6);
--
-- Dumping data for table `#__componentbuilder_help_document`
diff --git a/admin/sql/updates/mysql/2.5.5.sql b/admin/sql/updates/mysql/2.5.5.sql
new file mode 100644
index 000000000..c8a89bd53
--- /dev/null
+++ b/admin/sql/updates/mysql/2.5.5.sql
@@ -0,0 +1,3 @@
+ALTER TABLE `#__componentbuilder_joomla_component` ADD `add_javascript` TINYINT(1) NOT NULL DEFAULT 0 AFTER `add_email_helper`;
+
+ALTER TABLE `#__componentbuilder_joomla_component` ADD `javascript` TEXT NOT NULL AFTER `image`;
diff --git a/admin/tables/custom_admin_view.php b/admin/tables/custom_admin_view.php
index a11412613..ba7f86819 100644
--- a/admin/tables/custom_admin_view.php
+++ b/admin/tables/custom_admin_view.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage custom_admin_view.php
diff --git a/admin/tables/custom_code.php b/admin/tables/custom_code.php
index 9e66383d1..e0e5181e4 100644
--- a/admin/tables/custom_code.php
+++ b/admin/tables/custom_code.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
- @build 26th April, 2017
+ @build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage custom_code.php
diff --git a/admin/tables/dynamic_get.php b/admin/tables/dynamic_get.php
index 161844976..22ec49b23 100644
--- a/admin/tables/dynamic_get.php
+++ b/admin/tables/dynamic_get.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage dynamic_get.php
diff --git a/admin/tables/joomla_component.php b/admin/tables/joomla_component.php
index a728c7094..d946e12d7 100644
--- a/admin/tables/joomla_component.php
+++ b/admin/tables/joomla_component.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 378 of this MVC
- @build 18th September, 2017
+ @version @update number 385 of this MVC
+ @build 6th October, 2017
@created 6th May, 2015
@package Component Builder
@subpackage joomla_component.php
diff --git a/admin/tables/layout.php b/admin/tables/layout.php
index 4b455e58c..68b8f69dd 100644
--- a/admin/tables/layout.php
+++ b/admin/tables/layout.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage layout.php
diff --git a/admin/tables/site_view.php b/admin/tables/site_view.php
index b5a9124d4..524aa1b12 100644
--- a/admin/tables/site_view.php
+++ b/admin/tables/site_view.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage site_view.php
diff --git a/admin/tables/snippet.php b/admin/tables/snippet.php
index d95e911e4..c0d354783 100644
--- a/admin/tables/snippet.php
+++ b/admin/tables/snippet.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage snippet.php
diff --git a/admin/tables/template.php b/admin/tables/template.php
index 62367bb04..f97562747 100644
--- a/admin/tables/template.php
+++ b/admin/tables/template.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage template.php
diff --git a/admin/views/admin_view/tmpl/edit.php b/admin/views/admin_view/tmpl/edit.php
index f0f32c3ba..1e69dd7da 100644
--- a/admin/views/admin_view/tmpl/edit.php
+++ b/admin/views/admin_view/tmpl/edit.php
@@ -212,431 +212,416 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
diff --git a/admin/views/custom_admin_view/view.html.php b/admin/views/custom_admin_view/view.html.php
index e9291c034..fe6e8b6cf 100644
--- a/admin/views/custom_admin_view/view.html.php
+++ b/admin/views/custom_admin_view/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage view.html.php
@@ -71,7 +71,7 @@ class ComponentbuilderViewCustom_admin_view extends JViewLegacy
}
// Get Linked view data
- $this->vyjlinked_components = $this->get('Vyjlinked_components');
+ $this->vyklinked_components = $this->get('Vyklinked_components');
// Set the toolbar
$this->addToolBar();
diff --git a/admin/views/custom_admin_views/tmpl/default.php b/admin/views/custom_admin_views/tmpl/default.php
index 0a8a1dd8f..556320a3e 100644
--- a/admin/views/custom_admin_views/tmpl/default.php
+++ b/admin/views/custom_admin_views/tmpl/default.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage default.php
diff --git a/admin/views/custom_admin_views/tmpl/default_batch_body.php b/admin/views/custom_admin_views/tmpl/default_batch_body.php
index 8fe2fcd0d..41233900e 100644
--- a/admin/views/custom_admin_views/tmpl/default_batch_body.php
+++ b/admin/views/custom_admin_views/tmpl/default_batch_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage default_batch_body.php
diff --git a/admin/views/custom_admin_views/tmpl/default_batch_footer.php b/admin/views/custom_admin_views/tmpl/default_batch_footer.php
index 720937b89..ed8df9ff6 100644
--- a/admin/views/custom_admin_views/tmpl/default_batch_footer.php
+++ b/admin/views/custom_admin_views/tmpl/default_batch_footer.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage default_batch_footer.php
diff --git a/admin/views/custom_admin_views/tmpl/default_body.php b/admin/views/custom_admin_views/tmpl/default_body.php
index 10c7bf9d3..c6b837d91 100644
--- a/admin/views/custom_admin_views/tmpl/default_body.php
+++ b/admin/views/custom_admin_views/tmpl/default_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage default_body.php
diff --git a/admin/views/custom_admin_views/tmpl/default_foot.php b/admin/views/custom_admin_views/tmpl/default_foot.php
index f0cd6844b..8a22ba1c4 100644
--- a/admin/views/custom_admin_views/tmpl/default_foot.php
+++ b/admin/views/custom_admin_views/tmpl/default_foot.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage default_foot.php
diff --git a/admin/views/custom_admin_views/tmpl/default_head.php b/admin/views/custom_admin_views/tmpl/default_head.php
index a13f8aa92..0cdab4a23 100644
--- a/admin/views/custom_admin_views/tmpl/default_head.php
+++ b/admin/views/custom_admin_views/tmpl/default_head.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage default_head.php
diff --git a/admin/views/custom_admin_views/tmpl/default_toolbar.php b/admin/views/custom_admin_views/tmpl/default_toolbar.php
index 2c8a19d16..b6474831d 100644
--- a/admin/views/custom_admin_views/tmpl/default_toolbar.php
+++ b/admin/views/custom_admin_views/tmpl/default_toolbar.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage default_toolbar.php
diff --git a/admin/views/custom_admin_views/view.html.php b/admin/views/custom_admin_views/view.html.php
index 928ea77b6..a3dbcb410 100644
--- a/admin/views/custom_admin_views/view.html.php
+++ b/admin/views/custom_admin_views/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 22 of this MVC
- @build 17th July, 2017
+ @version @update number 27 of this MVC
+ @build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/admin/views/custom_code/submitbutton.js b/admin/views/custom_code/submitbutton.js
index 7bcfb5169..d8f73ff20 100644
--- a/admin/views/custom_code/submitbutton.js
+++ b/admin/views/custom_code/submitbutton.js
@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
- @build 26th April, 2017
+ @build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage submitbutton.js
diff --git a/admin/views/custom_code/tmpl/edit.php b/admin/views/custom_code/tmpl/edit.php
index 410ce5c50..0600b31da 100644
--- a/admin/views/custom_code/tmpl/edit.php
+++ b/admin/views/custom_code/tmpl/edit.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
- @build 26th April, 2017
+ @build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage edit.php
@@ -127,21 +127,6 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
diff --git a/admin/views/dynamic_get/view.html.php b/admin/views/dynamic_get/view.html.php
index 32c7c3db9..0717c985d 100644
--- a/admin/views/dynamic_get/view.html.php
+++ b/admin/views/dynamic_get/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/admin/views/dynamic_gets/tmpl/default.php b/admin/views/dynamic_gets/tmpl/default.php
index 5c878f665..535f1baee 100644
--- a/admin/views/dynamic_gets/tmpl/default.php
+++ b/admin/views/dynamic_gets/tmpl/default.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage default.php
diff --git a/admin/views/dynamic_gets/tmpl/default_batch_body.php b/admin/views/dynamic_gets/tmpl/default_batch_body.php
index 828872e9f..2ec43254a 100644
--- a/admin/views/dynamic_gets/tmpl/default_batch_body.php
+++ b/admin/views/dynamic_gets/tmpl/default_batch_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage default_batch_body.php
diff --git a/admin/views/dynamic_gets/tmpl/default_batch_footer.php b/admin/views/dynamic_gets/tmpl/default_batch_footer.php
index 5e4eb8ef0..25331f200 100644
--- a/admin/views/dynamic_gets/tmpl/default_batch_footer.php
+++ b/admin/views/dynamic_gets/tmpl/default_batch_footer.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage default_batch_footer.php
diff --git a/admin/views/dynamic_gets/tmpl/default_body.php b/admin/views/dynamic_gets/tmpl/default_body.php
index a9b8cd462..2b1f1506a 100644
--- a/admin/views/dynamic_gets/tmpl/default_body.php
+++ b/admin/views/dynamic_gets/tmpl/default_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage default_body.php
diff --git a/admin/views/dynamic_gets/tmpl/default_foot.php b/admin/views/dynamic_gets/tmpl/default_foot.php
index d91a3fe60..04e904916 100644
--- a/admin/views/dynamic_gets/tmpl/default_foot.php
+++ b/admin/views/dynamic_gets/tmpl/default_foot.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage default_foot.php
diff --git a/admin/views/dynamic_gets/tmpl/default_head.php b/admin/views/dynamic_gets/tmpl/default_head.php
index fc87df0b7..37860c558 100644
--- a/admin/views/dynamic_gets/tmpl/default_head.php
+++ b/admin/views/dynamic_gets/tmpl/default_head.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage default_head.php
diff --git a/admin/views/dynamic_gets/tmpl/default_toolbar.php b/admin/views/dynamic_gets/tmpl/default_toolbar.php
index 0ba9ef94e..3d236b4db 100644
--- a/admin/views/dynamic_gets/tmpl/default_toolbar.php
+++ b/admin/views/dynamic_gets/tmpl/default_toolbar.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage default_toolbar.php
diff --git a/admin/views/dynamic_gets/view.html.php b/admin/views/dynamic_gets/view.html.php
index 239f98ec5..1f617cfc7 100644
--- a/admin/views/dynamic_gets/view.html.php
+++ b/admin/views/dynamic_gets/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 84 of this MVC
- @build 4th May, 2017
+ @version @update number 94 of this MVC
+ @build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/admin/views/field/tmpl/edit.php b/admin/views/field/tmpl/edit.php
index 19452fa58..2a9d4ffd3 100644
--- a/admin/views/field/tmpl/edit.php
+++ b/admin/views/field/tmpl/edit.php
@@ -149,48 +149,33 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
diff --git a/admin/views/layout/view.html.php b/admin/views/layout/view.html.php
index c0465a16a..74d6c3cdf 100644
--- a/admin/views/layout/view.html.php
+++ b/admin/views/layout/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/admin/views/layouts/tmpl/default.php b/admin/views/layouts/tmpl/default.php
index 152507bbd..e117c370e 100644
--- a/admin/views/layouts/tmpl/default.php
+++ b/admin/views/layouts/tmpl/default.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage default.php
diff --git a/admin/views/layouts/tmpl/default_batch_body.php b/admin/views/layouts/tmpl/default_batch_body.php
index 186ac4919..f3162f255 100644
--- a/admin/views/layouts/tmpl/default_batch_body.php
+++ b/admin/views/layouts/tmpl/default_batch_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage default_batch_body.php
diff --git a/admin/views/layouts/tmpl/default_batch_footer.php b/admin/views/layouts/tmpl/default_batch_footer.php
index 9f86d0a30..ff7e88e29 100644
--- a/admin/views/layouts/tmpl/default_batch_footer.php
+++ b/admin/views/layouts/tmpl/default_batch_footer.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage default_batch_footer.php
diff --git a/admin/views/layouts/tmpl/default_body.php b/admin/views/layouts/tmpl/default_body.php
index 4bb78c31b..1d2076bd5 100644
--- a/admin/views/layouts/tmpl/default_body.php
+++ b/admin/views/layouts/tmpl/default_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage default_body.php
diff --git a/admin/views/layouts/tmpl/default_foot.php b/admin/views/layouts/tmpl/default_foot.php
index 66153c338..acf6fce2c 100644
--- a/admin/views/layouts/tmpl/default_foot.php
+++ b/admin/views/layouts/tmpl/default_foot.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage default_foot.php
diff --git a/admin/views/layouts/tmpl/default_head.php b/admin/views/layouts/tmpl/default_head.php
index ab9f18dc1..63586a322 100644
--- a/admin/views/layouts/tmpl/default_head.php
+++ b/admin/views/layouts/tmpl/default_head.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage default_head.php
diff --git a/admin/views/layouts/tmpl/default_toolbar.php b/admin/views/layouts/tmpl/default_toolbar.php
index 3137e9f02..7875fbb13 100644
--- a/admin/views/layouts/tmpl/default_toolbar.php
+++ b/admin/views/layouts/tmpl/default_toolbar.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage default_toolbar.php
diff --git a/admin/views/layouts/view.html.php b/admin/views/layouts/view.html.php
index bdebb27ed..8007b112f 100644
--- a/admin/views/layouts/view.html.php
+++ b/admin/views/layouts/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 30th May, 2017
+ @version @update number 81 of this MVC
+ @build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/admin/views/site_view/submitbutton.js b/admin/views/site_view/submitbutton.js
index 9aab8fb83..527797768 100644
--- a/admin/views/site_view/submitbutton.js
+++ b/admin/views/site_view/submitbutton.js
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage submitbutton.js
diff --git a/admin/views/site_view/tmpl/edit.php b/admin/views/site_view/tmpl/edit.php
index 894fe380f..01012daf8 100644
--- a/admin/views/site_view/tmpl/edit.php
+++ b/admin/views/site_view/tmpl/edit.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage edit.php
@@ -178,138 +178,138 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
diff --git a/admin/views/site_view/view.html.php b/admin/views/site_view/view.html.php
index 096094285..b1b750a60 100644
--- a/admin/views/site_view/view.html.php
+++ b/admin/views/site_view/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage view.html.php
@@ -71,7 +71,7 @@ class ComponentbuilderViewSite_view extends JViewLegacy
}
// Get Linked view data
- $this->vyulinked_components = $this->get('Vyulinked_components');
+ $this->vyvlinked_components = $this->get('Vyvlinked_components');
// Set the toolbar
$this->addToolBar();
diff --git a/admin/views/site_views/tmpl/default.php b/admin/views/site_views/tmpl/default.php
index fe618f0df..716031600 100644
--- a/admin/views/site_views/tmpl/default.php
+++ b/admin/views/site_views/tmpl/default.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage default.php
diff --git a/admin/views/site_views/tmpl/default_batch_body.php b/admin/views/site_views/tmpl/default_batch_body.php
index 469354069..48d31cdd3 100644
--- a/admin/views/site_views/tmpl/default_batch_body.php
+++ b/admin/views/site_views/tmpl/default_batch_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage default_batch_body.php
diff --git a/admin/views/site_views/tmpl/default_batch_footer.php b/admin/views/site_views/tmpl/default_batch_footer.php
index 16b458e66..703f03d92 100644
--- a/admin/views/site_views/tmpl/default_batch_footer.php
+++ b/admin/views/site_views/tmpl/default_batch_footer.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage default_batch_footer.php
diff --git a/admin/views/site_views/tmpl/default_body.php b/admin/views/site_views/tmpl/default_body.php
index 47c54957a..a3292a177 100644
--- a/admin/views/site_views/tmpl/default_body.php
+++ b/admin/views/site_views/tmpl/default_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage default_body.php
diff --git a/admin/views/site_views/tmpl/default_foot.php b/admin/views/site_views/tmpl/default_foot.php
index f7b4f320f..d0bb1b041 100644
--- a/admin/views/site_views/tmpl/default_foot.php
+++ b/admin/views/site_views/tmpl/default_foot.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage default_foot.php
diff --git a/admin/views/site_views/tmpl/default_head.php b/admin/views/site_views/tmpl/default_head.php
index 732dda7f5..06c65e85a 100644
--- a/admin/views/site_views/tmpl/default_head.php
+++ b/admin/views/site_views/tmpl/default_head.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage default_head.php
diff --git a/admin/views/site_views/tmpl/default_toolbar.php b/admin/views/site_views/tmpl/default_toolbar.php
index e01035677..41feb5058 100644
--- a/admin/views/site_views/tmpl/default_toolbar.php
+++ b/admin/views/site_views/tmpl/default_toolbar.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage default_toolbar.php
diff --git a/admin/views/site_views/view.html.php b/admin/views/site_views/view.html.php
index 1cf01c715..cc5eab6aa 100644
--- a/admin/views/site_views/view.html.php
+++ b/admin/views/site_views/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 51 of this MVC
- @build 17th July, 2017
+ @version @update number 54 of this MVC
+ @build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/admin/views/snippet/submitbutton.js b/admin/views/snippet/submitbutton.js
index 5834fba09..b6a63e31b 100644
--- a/admin/views/snippet/submitbutton.js
+++ b/admin/views/snippet/submitbutton.js
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage submitbutton.js
diff --git a/admin/views/snippet/tmpl/edit.php b/admin/views/snippet/tmpl/edit.php
index ef9d84cac..0cd46d020 100644
--- a/admin/views/snippet/tmpl/edit.php
+++ b/admin/views/snippet/tmpl/edit.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage edit.php
diff --git a/admin/views/snippet/view.html.php b/admin/views/snippet/view.html.php
index f24cbf2d7..d0be913b7 100644
--- a/admin/views/snippet/view.html.php
+++ b/admin/views/snippet/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage view.html.php
@@ -192,7 +192,9 @@ class ComponentbuilderViewSnippet extends JViewLegacy
$isNew = ($this->item->id < 1);
$document = JFactory::getDocument();
$document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_SNIPPET_NEW' : 'COM_COMPONENTBUILDER_SNIPPET_EDIT'));
- $document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/snippet.css");
+ $document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/snippet.css");
+ // Add Ajax Token
+ $document->addScriptDeclaration("var token = '".JSession::getFormToken()."';");
$document->addScript(JURI::root() . $this->script);
$document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/snippet/submitbutton.js");
JText::script('view not acceptable. Error');
diff --git a/admin/views/snippets/tmpl/default.php b/admin/views/snippets/tmpl/default.php
index ce3ac5470..5a1d86e47 100644
--- a/admin/views/snippets/tmpl/default.php
+++ b/admin/views/snippets/tmpl/default.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage default.php
diff --git a/admin/views/snippets/tmpl/default_batch_body.php b/admin/views/snippets/tmpl/default_batch_body.php
index ee2706228..0781a02b2 100644
--- a/admin/views/snippets/tmpl/default_batch_body.php
+++ b/admin/views/snippets/tmpl/default_batch_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage default_batch_body.php
diff --git a/admin/views/snippets/tmpl/default_batch_footer.php b/admin/views/snippets/tmpl/default_batch_footer.php
index 759941eb6..4db859257 100644
--- a/admin/views/snippets/tmpl/default_batch_footer.php
+++ b/admin/views/snippets/tmpl/default_batch_footer.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage default_batch_footer.php
diff --git a/admin/views/snippets/tmpl/default_body.php b/admin/views/snippets/tmpl/default_body.php
index dc7d6bb8d..f2d96e898 100644
--- a/admin/views/snippets/tmpl/default_body.php
+++ b/admin/views/snippets/tmpl/default_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage default_body.php
diff --git a/admin/views/snippets/tmpl/default_foot.php b/admin/views/snippets/tmpl/default_foot.php
index d5a09e81b..c5006ab9c 100644
--- a/admin/views/snippets/tmpl/default_foot.php
+++ b/admin/views/snippets/tmpl/default_foot.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage default_foot.php
diff --git a/admin/views/snippets/tmpl/default_head.php b/admin/views/snippets/tmpl/default_head.php
index 620cc93b1..e077b7b49 100644
--- a/admin/views/snippets/tmpl/default_head.php
+++ b/admin/views/snippets/tmpl/default_head.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage default_head.php
diff --git a/admin/views/snippets/tmpl/default_toolbar.php b/admin/views/snippets/tmpl/default_toolbar.php
index 8fdd74509..e31d7122c 100644
--- a/admin/views/snippets/tmpl/default_toolbar.php
+++ b/admin/views/snippets/tmpl/default_toolbar.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage default_toolbar.php
diff --git a/admin/views/snippets/view.html.php b/admin/views/snippets/view.html.php
index 02833344e..05ab30fad 100644
--- a/admin/views/snippets/view.html.php
+++ b/admin/views/snippets/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 16 of this MVC
- @build 20th October, 2016
+ @version @update number 17 of this MVC
+ @build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/admin/views/template/submitbutton.js b/admin/views/template/submitbutton.js
index 810a74896..0347bf1c8 100644
--- a/admin/views/template/submitbutton.js
+++ b/admin/views/template/submitbutton.js
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage submitbutton.js
diff --git a/admin/views/template/tmpl/edit.php b/admin/views/template/tmpl/edit.php
index ef1e24e8a..7e6b2c4ff 100644
--- a/admin/views/template/tmpl/edit.php
+++ b/admin/views/template/tmpl/edit.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage edit.php
@@ -139,18 +139,18 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
diff --git a/admin/views/template/view.html.php b/admin/views/template/view.html.php
index d7f9bf73e..627df2a75 100644
--- a/admin/views/template/view.html.php
+++ b/admin/views/template/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/admin/views/templates/tmpl/default.php b/admin/views/templates/tmpl/default.php
index c039b0269..b9b869fc5 100644
--- a/admin/views/templates/tmpl/default.php
+++ b/admin/views/templates/tmpl/default.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage default.php
diff --git a/admin/views/templates/tmpl/default_batch_body.php b/admin/views/templates/tmpl/default_batch_body.php
index 39ee1430a..4c9d47b28 100644
--- a/admin/views/templates/tmpl/default_batch_body.php
+++ b/admin/views/templates/tmpl/default_batch_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage default_batch_body.php
diff --git a/admin/views/templates/tmpl/default_batch_footer.php b/admin/views/templates/tmpl/default_batch_footer.php
index 47f056a65..d3444b4af 100644
--- a/admin/views/templates/tmpl/default_batch_footer.php
+++ b/admin/views/templates/tmpl/default_batch_footer.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage default_batch_footer.php
diff --git a/admin/views/templates/tmpl/default_body.php b/admin/views/templates/tmpl/default_body.php
index 411071871..0b6f1c390 100644
--- a/admin/views/templates/tmpl/default_body.php
+++ b/admin/views/templates/tmpl/default_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage default_body.php
diff --git a/admin/views/templates/tmpl/default_foot.php b/admin/views/templates/tmpl/default_foot.php
index 3221f1c9c..0b7891448 100644
--- a/admin/views/templates/tmpl/default_foot.php
+++ b/admin/views/templates/tmpl/default_foot.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage default_foot.php
diff --git a/admin/views/templates/tmpl/default_head.php b/admin/views/templates/tmpl/default_head.php
index bcd685720..2cc6dce50 100644
--- a/admin/views/templates/tmpl/default_head.php
+++ b/admin/views/templates/tmpl/default_head.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage default_head.php
diff --git a/admin/views/templates/tmpl/default_toolbar.php b/admin/views/templates/tmpl/default_toolbar.php
index 92e7b078a..e8901072b 100644
--- a/admin/views/templates/tmpl/default_toolbar.php
+++ b/admin/views/templates/tmpl/default_toolbar.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage default_toolbar.php
diff --git a/admin/views/templates/view.html.php b/admin/views/templates/view.html.php
index cf9b3b24e..787693eb8 100644
--- a/admin/views/templates/view.html.php
+++ b/admin/views/templates/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 40 of this MVC
- @build 1st April, 2017
+ @version @update number 45 of this MVC
+ @build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/componentbuilder.xml b/componentbuilder.xml
index 14a3bce76..4a93062a1 100644
--- a/componentbuilder.xml
+++ b/componentbuilder.xml
@@ -1,19 +1,19 @@
COM_COMPONENTBUILDER
- 20th September, 2017
+ 6th October, 2017Llewellyn van der Merwejoomla@vdm.iohttp://vdm.bz/component-builderCopyright (C) 2015. All Rights ReservedGNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
- 2.5.5
+ 2.5.6Component Builder (v.2.5.5)
+
Component Builder (v.2.5.6)
-
The Component Builder for [Joomla](http://www.joomla.org/) that is highly advanced, truly able to build extremely complex components in a fraction of the time.
+
The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) that is highly advanced, truly able to build extremely complex components in a fraction of the time.
-Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
+Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!