From 4581b310de699713ac81131794ffc313cfc6c0ac Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Sun, 28 Jul 2019 23:48:42 +0200 Subject: [PATCH] Updated the compiler to now add GUI placeholders, resolved gh-451 so we now have easy roundtrip development beyond the original custom-code implementation. Added the files, folders, url option, and added the install fields to the new plugin area. gh-436 --- README.md | 14 +- admin/README.txt | 14 +- admin/access.xml | 21 + .../css/joomla_plugin_files_folders_urls.css | 16 + .../css/joomla_plugins_files_folders_urls.css | 13 + admin/controller.php | 3 +- .../joomla_plugin_files_folders_urls.php | 321 +++++ .../joomla_plugins_files_folders_urls.php | 43 + admin/helpers/compiler/a_Get.php | 1102 ++++++++++++++--- admin/helpers/compiler/c_Fields.php | 30 +- admin/helpers/compiler/e_Interpretation.php | 2 +- .../en-GB/en-GB.com_componentbuilder.ini | 244 +++- .../en-GB/en-GB.com_componentbuilder.sys.ini | 20 + admin/layouts/fieldtype/fields_fullwidth.php | 2 +- .../layouts/joomla_plugin/code_fullwidth.php | 3 +- .../dynamic_integration_left.php | 50 + .../layouts/joomla_plugin/mysql_fullwidth.php | 47 + admin/layouts/joomla_plugin/readme_left.php | 43 + .../joomla_plugin/script_file_fullwidth.php | 55 + .../advance_fullwidth.php | 48 + .../basic_above.php | 44 + .../basic_fullwidth.php | 49 + .../index.html | 1 + .../publishing.php | 45 + .../publlshing.php | 47 + .../server/linked_components_fullwidth.php | 20 +- admin/models/admin_view.php | 159 +-- admin/models/componentbuilder.php | 5 +- admin/models/fieldtype.php | 12 +- admin/models/forms/admin_view.js | 414 +++---- admin/models/forms/class_method.js | 38 +- admin/models/forms/class_property.js | 38 +- admin/models/forms/custom_admin_view.js | 100 +- admin/models/forms/custom_code.js | 84 +- admin/models/forms/dynamic_get.js | 930 +++++++------- admin/models/forms/field.js | 242 ++-- admin/models/forms/fieldtype.js | 546 ++++---- admin/models/forms/help_document.js | 164 +-- admin/models/forms/joomla_plugin.js | 337 +++++ admin/models/forms/joomla_plugin.xml | 485 +++++++- .../forms/joomla_plugin_files_folders_urls.js | 11 + .../joomla_plugin_files_folders_urls.xml | 390 ++++++ admin/models/forms/layout.js | 10 +- admin/models/forms/library.js | 226 ++-- admin/models/forms/server.js | 346 +++--- admin/models/forms/site_view.js | 128 +- admin/models/forms/template.js | 10 +- admin/models/joomla_plugin.php | 202 ++- .../joomla_plugin_files_folders_urls.php | 978 +++++++++++++++ .../joomla_plugins_files_folders_urls.php | 237 ++++ admin/models/server.php | 2 +- admin/sql/install.mysql.utf8.sql | 68 +- admin/sql/uninstall.mysql.utf8.sql | 1 + admin/sql/updates/mysql/2.9.34.sql | 77 ++ .../joomla_plugin_files_folders_urls.php | 321 +++++ admin/views/admin_view/tmpl/edit.php | 356 +++--- admin/views/admin_views/tmpl/default_body.php | 10 +- admin/views/class_method/tmpl/edit.php | 10 +- admin/views/class_property/tmpl/edit.php | 10 +- admin/views/compiler/view.html.php | 14 +- admin/views/custom_admin_view/tmpl/edit.php | 100 +- admin/views/custom_code/tmpl/edit.php | 76 +- admin/views/dynamic_get/tmpl/edit.php | 860 ++++++------- admin/views/field/tmpl/edit.php | 108 +- admin/views/fieldtype/tmpl/edit.php | 312 ++--- admin/views/fieldtype/view.html.php | 2 +- admin/views/help_document/tmpl/edit.php | 60 +- .../joomla_components/tmpl/default_body.php | 18 +- admin/views/joomla_plugin/tmpl/edit.php | 352 ++++++ .../submitbutton.js | 25 + .../tmpl/edit.php | 116 ++ .../tmpl/index.html | 1 + .../view.html.php | 195 +++ .../joomla_plugins/tmpl/default_body.php | 39 +- .../index.html | 1 + .../tmpl/default.php | 85 ++ .../tmpl/default_batch_body.php | 18 + .../tmpl/default_batch_footer.php | 23 + .../tmpl/default_body.php | 94 ++ .../tmpl/default_foot.php | 18 + .../tmpl/default_head.php | 47 + .../tmpl/default_toolbar.php | 45 + .../tmpl/index.html | 1 + .../view.html.php | 226 ++++ admin/views/layout/tmpl/edit.php | 10 +- admin/views/library/tmpl/edit.php | 80 +- admin/views/server/tmpl/edit.php | 132 +- admin/views/server/view.html.php | 2 +- admin/views/site_view/tmpl/edit.php | 110 +- admin/views/template/tmpl/edit.php | 10 +- componentbuilder.xml | 6 +- componentbuilder_update_server.xml | 25 +- script.php | 141 ++- 93 files changed, 9364 insertions(+), 3232 deletions(-) create mode 100644 admin/assets/css/joomla_plugin_files_folders_urls.css create mode 100644 admin/assets/css/joomla_plugins_files_folders_urls.css create mode 100644 admin/controllers/joomla_plugin_files_folders_urls.php create mode 100644 admin/controllers/joomla_plugins_files_folders_urls.php create mode 100644 admin/layouts/joomla_plugin/dynamic_integration_left.php create mode 100644 admin/layouts/joomla_plugin/mysql_fullwidth.php create mode 100644 admin/layouts/joomla_plugin/readme_left.php create mode 100644 admin/layouts/joomla_plugin/script_file_fullwidth.php create mode 100644 admin/layouts/joomla_plugin_files_folders_urls/advance_fullwidth.php create mode 100644 admin/layouts/joomla_plugin_files_folders_urls/basic_above.php create mode 100644 admin/layouts/joomla_plugin_files_folders_urls/basic_fullwidth.php create mode 100644 admin/layouts/joomla_plugin_files_folders_urls/index.html create mode 100644 admin/layouts/joomla_plugin_files_folders_urls/publishing.php create mode 100644 admin/layouts/joomla_plugin_files_folders_urls/publlshing.php create mode 100644 admin/models/forms/joomla_plugin_files_folders_urls.js create mode 100644 admin/models/forms/joomla_plugin_files_folders_urls.xml create mode 100644 admin/models/joomla_plugin_files_folders_urls.php create mode 100644 admin/models/joomla_plugins_files_folders_urls.php create mode 100644 admin/sql/updates/mysql/2.9.34.sql create mode 100644 admin/tables/joomla_plugin_files_folders_urls.php create mode 100644 admin/views/joomla_plugin_files_folders_urls/submitbutton.js create mode 100644 admin/views/joomla_plugin_files_folders_urls/tmpl/edit.php create mode 100644 admin/views/joomla_plugin_files_folders_urls/tmpl/index.html create mode 100644 admin/views/joomla_plugin_files_folders_urls/view.html.php create mode 100644 admin/views/joomla_plugins_files_folders_urls/index.html create mode 100644 admin/views/joomla_plugins_files_folders_urls/tmpl/default.php create mode 100644 admin/views/joomla_plugins_files_folders_urls/tmpl/default_batch_body.php create mode 100644 admin/views/joomla_plugins_files_folders_urls/tmpl/default_batch_footer.php create mode 100644 admin/views/joomla_plugins_files_folders_urls/tmpl/default_body.php create mode 100644 admin/views/joomla_plugins_files_folders_urls/tmpl/default_foot.php create mode 100644 admin/views/joomla_plugins_files_folders_urls/tmpl/default_head.php create mode 100644 admin/views/joomla_plugins_files_folders_urls/tmpl/default_toolbar.php create mode 100644 admin/views/joomla_plugins_files_folders_urls/tmpl/index.html create mode 100644 admin/views/joomla_plugins_files_folders_urls/view.html.php diff --git a/README.md b/README.md index 2f0d14d03..9d0b3bd06 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo 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.9.34) 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.9.35) 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://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -146,14 +146,14 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 19th July, 2019 -+ *Version*: 2.9.34 ++ *Last Build*: 28th July, 2019 ++ *Version*: 2.9.35 + *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **236622** -+ *Field count*: **1239** -+ *File count*: **1528** -+ *Folder count*: **233** ++ *Line count*: **242164** ++ *Field count*: **1302** ++ *File count*: **1562** ++ *Folder count*: **237** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). > Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) diff --git a/admin/README.txt b/admin/README.txt index 2f0d14d03..9d0b3bd06 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -12,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo 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.9.34) 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.9.35) 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://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -146,14 +146,14 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 19th July, 2019 -+ *Version*: 2.9.34 ++ *Last Build*: 28th July, 2019 ++ *Version*: 2.9.35 + *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **236622** -+ *Field count*: **1239** -+ *File count*: **1528** -+ *Folder count*: **233** ++ *Line count*: **242164** ++ *Field count*: **1302** ++ *File count*: **1562** ++ *Folder count*: **237** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). > Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) diff --git a/admin/access.xml b/admin/access.xml index f5d11dd7d..d85296839 100644 --- a/admin/access.xml +++ b/admin/access.xml @@ -342,6 +342,16 @@ + + + + + + + + + + @@ -895,6 +905,17 @@
+
+ + + + + + + + + +
diff --git a/admin/assets/css/joomla_plugin_files_folders_urls.css b/admin/assets/css/joomla_plugin_files_folders_urls.css new file mode 100644 index 000000000..74e74f969 --- /dev/null +++ b/admin/assets/css/joomla_plugin_files_folders_urls.css @@ -0,0 +1,16 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +/* CSS Document */ + + +.control-group, .controls, .controls input[type="url"], .controls input[type="text"], .controls input[type="number"], .controls input[type="email"], .controls select, .controls textarea { + max-width: 100%; +} diff --git a/admin/assets/css/joomla_plugins_files_folders_urls.css b/admin/assets/css/joomla_plugins_files_folders_urls.css new file mode 100644 index 000000000..3d7b98b8f --- /dev/null +++ b/admin/assets/css/joomla_plugins_files_folders_urls.css @@ -0,0 +1,13 @@ +/** + * @package Joomla.Component.Builder + * + * @created 30th April, 2015 + * @author Llewellyn van der Merwe + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +/* CSS Document */ + + diff --git a/admin/controller.php b/admin/controller.php index 4b959669b..14943db18 100644 --- a/admin/controller.php +++ b/admin/controller.php @@ -130,7 +130,8 @@ class ComponentbuilderController extends JControllerLegacy 'library_config' => 'libraries_config', 'library_files_folders_urls' => 'libraries_files_folders_urls', 'class_extends' => 'class_extendings', - 'joomla_plugin_group' => 'joomla_plugin_groups' + 'joomla_plugin_group' => 'joomla_plugin_groups', + 'joomla_plugin_files_folders_urls' => 'joomla_plugins_files_folders_urls' ); // check if this is a list view if (in_array($view, $views)) diff --git a/admin/controllers/joomla_plugin_files_folders_urls.php b/admin/controllers/joomla_plugin_files_folders_urls.php new file mode 100644 index 000000000..af8e3827b --- /dev/null +++ b/admin/controllers/joomla_plugin_files_folders_urls.php @@ -0,0 +1,321 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_plugin_files_folders_urls Controller + */ +class ComponentbuilderControllerJoomla_plugin_files_folders_urls extends JControllerForm +{ + /** + * Current or most recently performed task. + * + * @var string + * @since 12.2 + * @note Replaces _task. + */ + protected $task; + + /** + * Class constructor. + * + * @param array $config A named array of configuration variables. + * + * @since 1.6 + */ + public function __construct($config = array()) + { + $this->view_list = 'Joomla_plugins_files_folders_urls'; // safeguard for setting the return view listing to the main view. + parent::__construct($config); + } + + /** + * Method override to check if you can add a new record. + * + * @param array $data An array of input data. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowAdd($data = array()) + { + // Get user object. + $user = JFactory::getUser(); + // Access check. + $access = $user->authorise('joomla_plugin_files_folders_urls.access', 'com_componentbuilder'); + if (!$access) + { + return false; + } + + // In the absense of better information, revert to the component permissions. + return $user->authorise('joomla_plugin_files_folders_urls.create', $this->option); + } + + /** + * Method override to check if you can edit an existing record. + * + * @param array $data An array of input data. + * @param string $key The name of the key for the primary key. + * + * @return boolean + * + * @since 1.6 + */ + protected function allowEdit($data = array(), $key = 'id') + { + // get user object. + $user = JFactory::getUser(); + // get record id. + $recordId = (int) isset($data[$key]) ? $data[$key] : 0; + + + // Access check. + $access = ($user->authorise('joomla_plugin_files_folders_urls.access', 'com_componentbuilder.joomla_plugin_files_folders_urls.' . (int) $recordId) && $user->authorise('joomla_plugin_files_folders_urls.access', 'com_componentbuilder')); + if (!$access) + { + return false; + } + + if ($recordId) + { + // The record has been set. Check the record permissions. + $permission = $user->authorise('joomla_plugin_files_folders_urls.edit', 'com_componentbuilder.joomla_plugin_files_folders_urls.' . (int) $recordId); + if (!$permission) + { + if ($user->authorise('joomla_plugin_files_folders_urls.edit.own', 'com_componentbuilder.joomla_plugin_files_folders_urls.' . $recordId)) + { + // Now test the owner is the user. + $ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0; + if (empty($ownerId)) + { + // Need to do a lookup from the model. + $record = $this->getModel()->getItem($recordId); + + if (empty($record)) + { + return false; + } + $ownerId = $record->created_by; + } + + // If the owner matches 'me' then allow. + if ($ownerId == $user->id) + { + if ($user->authorise('joomla_plugin_files_folders_urls.edit.own', 'com_componentbuilder')) + { + return true; + } + } + } + return false; + } + } + // Since there is no permission, revert to the component permissions. + return $user->authorise('joomla_plugin_files_folders_urls.edit', $this->option); + } + + /** + * Gets the URL arguments to append to an item redirect. + * + * @param integer $recordId The primary key id for the item. + * @param string $urlVar The name of the URL variable for the id. + * + * @return string The arguments to append to the redirect URL. + * + * @since 1.6 + */ + protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id') + { + // get the referral options (old method use return instead see parent) + $ref = $this->input->get('ref', 0, 'string'); + $refid = $this->input->get('refid', 0, 'int'); + + // get redirect info. + $append = parent::getRedirectToItemAppend($recordId, $urlVar); + + // set the referral options + if ($refid && $ref) + { + $append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append; + } + elseif ($ref) + { + $append = '&ref='. (string)$ref . $append; + } + + return $append; + } + + /** + * Method to run batch operations. + * + * @param object $model The model. + * + * @return boolean True if successful, false otherwise and internal error is set. + * + * @since 2.5 + */ + public function batch($model = null) + { + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + + // Set the model + $model = $this->getModel('Joomla_plugin_files_folders_urls', '', array()); + + // Preset the redirect + $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_plugins_files_folders_urls' . $this->getRedirectToListAppend(), false)); + + return parent::batch($model); + } + + /** + * Method to cancel an edit. + * + * @param string $key The name of the primary key of the URL variable. + * + * @return boolean True if access level checks pass, false otherwise. + * + * @since 12.2 + */ + public function cancel($key = null) + { + // get the referral options + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + // Check if there is a return value + $return = $this->input->get('return', null, 'base64'); + + $cancel = parent::cancel($key); + + if (!is_null($return) && JUri::isInternal(base64_decode($return))) + { + $redirect = base64_decode($return); + + // Redirect to the return value. + $this->setRedirect( + JRoute::_( + $redirect, false + ) + ); + } + elseif ($this->refid && $this->ref) + { + $redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref) + { + $redirect = '&view='.(string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + return $cancel; + } + + /** + * Method to save a record. + * + * @param string $key The name of the primary key of the URL variable. + * @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions). + * + * @return boolean True if successful, false otherwise. + * + * @since 12.2 + */ + public function save($key = null, $urlVar = null) + { + // get the referral options + $this->ref = $this->input->get('ref', 0, 'word'); + $this->refid = $this->input->get('refid', 0, 'int'); + + // Check if there is a return value + $return = $this->input->get('return', null, 'base64'); + $canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return))); + + if ($this->ref || $this->refid || $canReturn) + { + // to make sure the item is checkedin on redirect + $this->task = 'save'; + } + + $saved = parent::save($key, $urlVar); + + // This is not needed since parent save already does this + // Due to the ref and refid implementation we need to add this + if ($canReturn) + { + $redirect = base64_decode($return); + + // Redirect to the return value. + $this->setRedirect( + JRoute::_( + $redirect, false + ) + ); + } + elseif ($this->refid && $this->ref) + { + $redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid; + + // Redirect to the item screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + elseif ($this->ref) + { + $redirect = '&view=' . (string)$this->ref; + + // Redirect to the list screen. + $this->setRedirect( + JRoute::_( + 'index.php?option=' . $this->option . $redirect, false + ) + ); + } + return $saved; + } + + /** + * Function that allows child controller access to model data + * after the data has been saved. + * + * @param JModel &$model The data model object. + * @param array $validData The validated data. + * + * @return void + * + * @since 11.1 + */ + protected function postSaveHook(JModelLegacy $model, $validData = array()) + { + return; + } + +} diff --git a/admin/controllers/joomla_plugins_files_folders_urls.php b/admin/controllers/joomla_plugins_files_folders_urls.php new file mode 100644 index 000000000..f3b2a6316 --- /dev/null +++ b/admin/controllers/joomla_plugins_files_folders_urls.php @@ -0,0 +1,43 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +/** + * Joomla_plugins_files_folders_urls Controller + */ +class ComponentbuilderControllerJoomla_plugins_files_folders_urls extends JControllerAdmin +{ + /** + * The prefix to use with controller messages. + * + * @var string + * @since 1.6 + */ + protected $text_prefix = 'COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS'; + + /** + * Method to get a model object, loading it if required. + * + * @param string $name The model name. Optional. + * @param string $prefix The class prefix. Optional. + * @param array $config Configuration array for model. Optional. + * + * @return JModelLegacy The model. + * + * @since 1.6 + */ + public function getModel($name = 'Joomla_plugin_files_folders_urls', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true)) + { + return parent::getModel($name, $prefix, $config); + } +} diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php index 7df3a6695..ee2ab9e7c 100644 --- a/admin/helpers/compiler/a_Get.php +++ b/admin/helpers/compiler/a_Get.php @@ -746,7 +746,6 @@ class Get /** * Constructor */ - public function __construct($config = array()) { if (isset($config) && count($config)) @@ -946,10 +945,31 @@ class Get if ($this->db->getNumRows()) { $bucket = $this->db->loadAssocList('target', 'value'); + // open all the code foreach ($bucket as $key => &$code) { $code = base64_decode($code); } + // set component place holders + $bucket[$this->hhh . 'component' . $this->hhh] = $this->componentCodeName; + $bucket[$this->hhh . 'Component' . $this->hhh] = ComponentbuilderHelper::safeString($this->componentCodeName, 'F'); + $bucket[$this->hhh . 'COMPONENT' . $this->hhh] = ComponentbuilderHelper::safeString($this->componentCodeName, 'U'); + $bucket[$this->bbb . 'component' . $this->ddd] = $bucket[$this->hhh . 'component' . $this->hhh]; + $bucket[$this->bbb . 'Component' . $this->ddd] = $bucket[$this->hhh . 'Component' . $this->hhh]; + $bucket[$this->bbb . 'COMPONENT' . $this->ddd] = $bucket[$this->hhh . 'COMPONENT' . $this->hhh]; + // get the current components overides + if (($_placeholders = ComponentbuilderHelper::getVar('component_placeholders', $this->componentID, 'joomla_component', 'addplaceholders')) !== false + && ComponentbuilderHelper::checkJson($_placeholders)) + { + $_placeholders = json_decode($_placeholders, true); + if (ComponentbuilderHelper::checkArray($_placeholders)) + { + foreach($_placeholders as $row) + { + $bucket[$row['target']] = $row['value']; + } + } + } } return $bucket; } @@ -966,59 +986,52 @@ class Get { // Create a new query object. $query = $this->db->getQuery(true); - + // selection + $selection = array( + 'b.addadmin_views' => 'addadmin_views', + 'b.id' => 'addadmin_views_id', + 'h.addconfig' => 'addconfig', + 'd.addcustom_admin_views' => 'addcustom_admin_views', + 'g.addcustommenus' => 'addcustommenus', + 'j.addfiles' => 'addfiles', + 'j.addfolders' => 'addfolders', + 'j.addfilesfullpath' => 'addfilesfullpath', + 'j.addfoldersfullpath' => 'addfoldersfullpath', + 'c.addsite_views' => 'addsite_views', + 'l.addjoomla_plugins' => 'addjoomla_plugins', + 'i.dashboard_tab' => 'dashboard_tab', + 'i.php_dashboard_methods' => 'php_dashboard_methods', + 'i.id' => 'component_dashboard_id', + 'f.sql_tweak' => 'sql_tweak', + 'e.version_update' => 'version_update', + 'e.id' => 'version_update_id' + ); $query->select('a.*'); $query->select( $this->db->quoteName( - array( - 'b.addadmin_views', - 'b.id', - 'h.addconfig', - 'd.addcustom_admin_views', - 'g.addcustommenus', - 'j.addfiles', - 'j.addfolders', - 'j.addfilesfullpath', - 'j.addfoldersfullpath', - 'c.addsite_views', - 'i.dashboard_tab', - 'i.php_dashboard_methods', - 'f.sql_tweak', - 'e.version_update', - 'e.id', - 'k.addplaceholders' - ), array( - 'addadmin_views', - 'addadmin_views_id', - 'addconfig', - 'addcustom_admin_views', - 'addcustommenus', - 'addfiles', - 'addfolders', - 'addfilesfullpath', - 'addfoldersfullpath', - 'addsite_views', - 'dashboard_tab', - 'php_dashboard_methods', - 'sql_tweak', - 'version_update', - 'version_update_id', - '_placeholders' - ) + array_keys($selection), array_values($selection) ) ); - // from these tables + // from this table $query->from('#__componentbuilder_joomla_component AS a'); - $query->join('LEFT', $this->db->quoteName('#__componentbuilder_component_admin_views', 'b') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('b.joomla_component') . ')'); - $query->join('LEFT', $this->db->quoteName('#__componentbuilder_component_site_views', 'c') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('c.joomla_component') . ')'); - $query->join('LEFT', $this->db->quoteName('#__componentbuilder_component_custom_admin_views', 'd') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('d.joomla_component') . ')'); - $query->join('LEFT', $this->db->quoteName('#__componentbuilder_component_updates', 'e') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('e.joomla_component') . ')'); - $query->join('LEFT', $this->db->quoteName('#__componentbuilder_component_mysql_tweaks', 'f') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('f.joomla_component') . ')'); - $query->join('LEFT', $this->db->quoteName('#__componentbuilder_component_custom_admin_menus', 'g') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('g.joomla_component') . ')'); - $query->join('LEFT', $this->db->quoteName('#__componentbuilder_component_config', 'h') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('h.joomla_component') . ')'); - $query->join('LEFT', $this->db->quoteName('#__componentbuilder_component_dashboard', 'i') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('i.joomla_component') . ')'); - $query->join('LEFT', $this->db->quoteName('#__componentbuilder_component_files_folders', 'j') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('j.joomla_component') . ')'); - $query->join('LEFT', $this->db->quoteName('#__componentbuilder_component_placeholders', 'k') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('k.joomla_component') . ')'); + // jointer-map + $joiners = array( + 'b' => 'component_admin_views', + 'c' => 'component_site_views', + 'd' => 'component_custom_admin_views', + 'e' => 'component_updates', + 'f' => 'component_mysql_tweaks', + 'g' => 'component_custom_admin_menus', + 'h' => 'component_config', + 'i' => 'component_dashboard', + 'j' => 'component_files_folders', + 'l' => 'component_plugins' + ); + // load the joins + foreach($joiners as $as => $join) + { + $query->join('LEFT', $this->db->quoteName('#__componentbuilder_' . $join, $as) . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName($as . '.joomla_component') . ')'); + } $query->where($this->db->quoteName('a.id') . ' = ' . (int) $this->componentID); // Trigger Event: jcb_ce_onBeforeQueryComponentData @@ -1069,32 +1082,10 @@ class Get // update the repeatable fields $component = ComponentbuilderHelper::convertRepeatableFields($component, $searchRepeatables, $updater); - // set component place holders - $this->placeholders[$this->hhh . 'component' . $this->hhh] = ComponentbuilderHelper::safeString($component->name_code); - $this->placeholders[$this->hhh . 'Component' . $this->hhh] = ComponentbuilderHelper::safeString($component->name_code, 'F'); - $this->placeholders[$this->hhh . 'COMPONENT' . $this->hhh] = ComponentbuilderHelper::safeString($component->name_code, 'U'); - $this->placeholders[$this->bbb . 'component' . $this->ddd] = $this->placeholders[$this->hhh . 'component' . $this->hhh]; - $this->placeholders[$this->bbb . 'Component' . $this->ddd] = $this->placeholders[$this->hhh . 'Component' . $this->hhh]; - $this->placeholders[$this->bbb . 'COMPONENT' . $this->ddd] = $this->placeholders[$this->hhh . 'COMPONENT' . $this->hhh]; - - // set the addcustommenus data - $component->_placeholders = (isset($component->_placeholders) && ComponentbuilderHelper::checkJson($component->_placeholders)) ? json_decode($component->_placeholders, true) : null; - if (ComponentbuilderHelper::checkArray($component->_placeholders)) - { - foreach($component->_placeholders as $row) - { - $this->globalPlaceholders[$row['target']] = $row['value']; - } - } - unset($component->_placeholders); - // load the global placeholders if (ComponentbuilderHelper::checkArray($this->globalPlaceholders)) { - foreach ($this->globalPlaceholders as $globalPlaceholder => $gloabalValue) - { - $this->placeholders[$globalPlaceholder] = $gloabalValue; - } + $this->placeholders = $this->globalPlaceholders; } // set component sales name @@ -1374,10 +1365,19 @@ class Get // unset original value unset($component->addadmin_views); + // set GUI mapper + $guiMapper = array( 'table' => 'joomla_component', 'id' => (int) $this->componentID, 'field' => 'javascript', 'type' => 'js'); + // add_javascript if ($component->add_javascript == 1) { - $this->customScriptBuilder['component_js'] = base64_decode($component->javascript); + $this->setCustomScriptBuilder( + $component->javascript, + 'component_js', + false, + false, + $guiMapper + ); } else { @@ -1392,7 +1392,10 @@ class Get // add_css if found if (isset($component->{'add_css_' . $area}) && $component->{'add_css_' . $area} == 1 && isset($component->{'css_' . $area}) && ComponentbuilderHelper::checkString($component->{'css_' . $area})) { - $this->customScriptBuilder['component_css_' . $area] = base64_decode($component->{'css_' . $area}); + $this->setCustomScriptBuilder( + $component->{'css_' . $area}, + 'component_css_' . $area + ); } else { @@ -1405,13 +1408,23 @@ class Get // add PHP in ADMIN $addScriptMethods = array('php_preflight', 'php_postflight', 'php_method'); $addScriptTypes = array('install', 'update', 'uninstall'); + // update GUI mapper + $guiMapper['type'] = 'php'; foreach ($addScriptMethods as $scriptMethod) { foreach ($addScriptTypes as $scriptType) { if (isset($component->{'add_' . $scriptMethod . '_' . $scriptType}) && $component->{'add_' . $scriptMethod . '_' . $scriptType} == 1 && ComponentbuilderHelper::checkString($component->{$scriptMethod . '_' . $scriptType})) { - $this->customScriptBuilder[$scriptMethod][$scriptType] = $this->setDynamicValues(base64_decode($component->{$scriptMethod . '_' . $scriptType})); + // set GUI mapper field + $guiMapper['field'] = $scriptMethod . '_' . $scriptType; + $this->setCustomScriptBuilder( + $component->{$scriptMethod . '_' . $scriptType}, + $scriptMethod, + $scriptType, + false, + $guiMapper + ); } else { @@ -1424,7 +1437,17 @@ class Get if ($component->add_php_helper_admin == 1 && ComponentbuilderHelper::checkString($component->php_helper_admin)) { $this->lang = 'admin'; - $this->customScriptBuilder['component_php_helper_admin'] = PHP_EOL . PHP_EOL . $this->setDynamicValues(base64_decode($component->php_helper_admin)); + // update GUI mapper + $guiMapper['field'] = 'php_helper_admin'; + $guiMapper['prefix'] = PHP_EOL . PHP_EOL; + $this->setCustomScriptBuilder( + $component->php_helper_admin, + 'component_php_helper_admin', + false, + false, + $guiMapper + ); + unset($guiMapper['prefix']); } else { @@ -1435,7 +1458,15 @@ class Get if ($component->add_admin_event == 1 && ComponentbuilderHelper::checkString($component->php_admin_event)) { $this->lang = 'admin'; - $this->customScriptBuilder['component_php_admin_event'] = $this->setDynamicValues(base64_decode($component->php_admin_event)); + // update GUI mapper field + $guiMapper['field'] = 'php_admin_event'; + $this->setCustomScriptBuilder( + $component->php_admin_event, + 'component_php_admin_event', + false, + false, + $guiMapper + ); } else { @@ -1446,7 +1477,17 @@ class Get if ($component->add_php_helper_both == 1 && ComponentbuilderHelper::checkString($component->php_helper_both)) { $this->lang = 'both'; - $this->customScriptBuilder['component_php_helper_both'] = PHP_EOL . PHP_EOL . $this->setDynamicValues(base64_decode($component->php_helper_both)); + // update GUI mapper field + $guiMapper['field'] = 'php_helper_both'; + $guiMapper['prefix'] = PHP_EOL . PHP_EOL; + $this->setCustomScriptBuilder( + $component->php_helper_both, + 'component_php_helper_both', + false, + false, + $guiMapper + ); + unset($guiMapper['prefix']); } else { @@ -1456,7 +1497,17 @@ class Get if ($component->add_php_helper_site == 1 && ComponentbuilderHelper::checkString($component->php_helper_site)) { $this->lang = 'site'; - $this->customScriptBuilder['component_php_helper_site'] = PHP_EOL . PHP_EOL . $this->setDynamicValues(base64_decode($component->php_helper_site)); + // update GUI mapper field + $guiMapper['field'] = 'php_helper_site'; + $guiMapper['prefix'] = PHP_EOL . PHP_EOL; + $this->setCustomScriptBuilder( + $component->php_helper_site, + 'component_php_helper_site', + false, + false, + $guiMapper + ); + unset($guiMapper['prefix']); } else { @@ -1467,7 +1518,15 @@ class Get if ($component->add_site_event == 1 && ComponentbuilderHelper::checkString($component->php_site_event)) { $this->lang = 'site'; - $this->customScriptBuilder['component_php_site_event'] = $this->setDynamicValues(base64_decode($component->php_site_event)); + // update GUI mapper field + $guiMapper['field'] = 'php_site_event'; + $this->setCustomScriptBuilder( + $component->php_site_event, + 'component_php_site_event', + false, + false, + $guiMapper + ); } else { @@ -1477,13 +1536,20 @@ class Get // add_sql if ($component->add_sql == 1) { - $this->customScriptBuilder['sql']['component_sql'] = base64_decode($component->sql); + $this->setCustomScriptBuilder( + $component->sql, + 'sql', + 'component_sql' + ); } unset($component->sql); // add_sql_uninstall if ($component->add_sql_uninstall == 1) { - $this->customScriptBuilder['sql_uninstall'] = base64_decode($component->sql_uninstall); + $this->setCustomScriptBuilder( + $component->sql_uninstall, + 'sql_uninstall' + ); } unset($component->sql_uninstall); // bom @@ -1527,7 +1593,14 @@ class Get if (isset($component->php_dashboard_methods) && ComponentbuilderHelper::checkString($component->php_dashboard_methods)) { // load the php for the dashboard model - $component->php_dashboard_methods = $this->setDynamicValues(base64_decode($component->php_dashboard_methods)); + $component->php_dashboard_methods = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($component->php_dashboard_methods)), + array( + 'table' => 'component_dashboard', + 'field' => 'php_dashboard_methods', + 'id' => (int) $this->component_dashboard_id, + 'type' => 'php') + ); } else { @@ -1573,6 +1646,20 @@ class Get // the default is to ignore the repo folder $component->toignore = array('.git'); } + // get all plugins + $component->addjoomla_plugins = (isset($component->addjoomla_plugins) && ComponentbuilderHelper::checkJson($component->addjoomla_plugins)) ? json_decode($component->addjoomla_plugins, true) : null; + if (ComponentbuilderHelper::checkArray($component->addjoomla_plugins)) + { + $component->joomla_plugins = array_map(function($array) + { + return $this->getPlugins($array['plugin']); + }, array_values($component->addjoomla_plugins)); + } + else + { + $component->joomla_plugins = ''; + } + unset($component->addjoomla_plugins); // Trigger Event: jcb_ce_onAfterModelComponentData $this->triggerEvent('jcb_ce_onAfterModelComponentData', array(&$this->componentContext, &$component)); @@ -2083,29 +2170,29 @@ class Get { $this->lang = 'both'; } + // set GUI mapper + $guiMapper = array( 'table' => 'admin_view', 'id' => (int) $id, 'type' => 'js'); // add_javascript $addArrayJ = array('javascript_view_file', 'javascript_view_footer', 'javascript_views_file', 'javascript_views_footer'); + // update GUI mapper + $guiMapper['prefix'] = PHP_EOL; foreach ($addArrayJ as $scripter) { if (isset($view->{'add_' . $scripter}) && $view->{'add_' . $scripter} == 1 && ComponentbuilderHelper::checkString($view->$scripter)) { - $view->{$scripter} = $this->setDynamicValues(base64_decode($view->{$scripter})); $scripter_target = str_replace('javascript_', '', $scripter); - if (!isset($this->customScriptBuilder[$scripter_target]) || !isset($this->customScriptBuilder[$scripter_target][$name_single])) - { - // check if the script is set - if (!isset($this->customScriptBuilder[$scripter_target])) - { - $this->customScriptBuilder[$scripter_target] = array(); - } - // check if the script view is set - if (!isset($this->customScriptBuilder[$scripter_target][$name_single])) - { - $this->customScriptBuilder[$scripter_target][$name_single] = ''; - } - } - // load the script to class array - $this->customScriptBuilder[$scripter_target][$name_single] .= PHP_EOL . $view->{$scripter}; + // update GUI mapper field + $guiMapper['field'] = $scripter; + $this->setCustomScriptBuilder( + $view->{$scripter}, + $scripter_target, + $name_single, + false, + $guiMapper, + true, + true, + true + ); // check if a token must be set if (strpos($view->$scripter, "token") !== false || strpos($view->$scripter, "task=ajax") !== false) { @@ -2117,61 +2204,67 @@ class Get unset($view->{$scripter}); } } + unset($guiMapper['prefix']); // add_css $addArrayC = array('css_view', 'css_views'); foreach ($addArrayC as $scripter) { if (isset($view->{'add_' . $scripter}) && $view->{'add_' . $scripter} == 1 && ComponentbuilderHelper::checkString($view->{$scripter})) { - $view->{$scripter} = $this->setDynamicValues(base64_decode($view->{$scripter})); - if (!isset($this->customScriptBuilder[$scripter]) || !isset($this->customScriptBuilder[$scripter][$name_single])) - { - // check if the script is set - if (!isset($this->customScriptBuilder[$scripter])) - { - $this->customScriptBuilder[$scripter] = array(); - } - // check if the script view is set - if (!isset($this->customScriptBuilder[$scripter][$name_single])) - { - $this->customScriptBuilder[$scripter][$name_single] = ''; - } - } - // load the script to class array - $this->customScriptBuilder[$scripter][$name_single] .= PHP_EOL . $view->{$scripter}; + $this->setCustomScriptBuilder( + $view->{$scripter}, + $scripter, + $name_single, + false, + array('prefix' => PHP_EOL), + true, + true, + true + ); unset($view->{$scripter}); } } + // update GUI mapper + $guiMapper['type'] = 'php'; // add_php $addArrayP = array('php_getitem', 'php_before_save', 'php_save', 'php_getform', 'php_postsavehook', 'php_getitems', 'php_getitems_after_all', 'php_getlistquery', 'php_allowadd', 'php_allowedit', 'php_before_cancel', 'php_after_cancel', 'php_before_delete', 'php_after_delete', 'php_before_publish', 'php_after_publish', 'php_batchcopy', 'php_batchmove', 'php_document'); foreach ($addArrayP as $scripter) { if (isset($view->{'add_' . $scripter}) && $view->{'add_' . $scripter} == 1) { - $this->customScriptBuilder[$scripter][$name_single] = $this->setDynamicValues(base64_decode($view->$scripter)); - unset($view->$scripter); + // update GUI mapper field + $guiMapper['field'] = $scripter; + $this->setCustomScriptBuilder( + $view->{$scripter}, + $scripter, + $name_single, + false, + $guiMapper + ); + unset($view->{$scripter}); } } // add the custom buttons if (isset($view->add_custom_button) && $view->add_custom_button == 1) { - // set for the edit views - if (ComponentbuilderHelper::checkString($view->php_model)) + $button_code_array = array( + 'php_model', + 'php_controller', + 'php_model_list', + 'php_controller_list' + ); + // set for the code + foreach ($button_code_array as $button_code_field) { - $view->php_model = $this->setDynamicValues(base64_decode($view->php_model)); - } - if (ComponentbuilderHelper::checkString($view->php_controller)) - { - $view->php_controller = $this->setDynamicValues(base64_decode($view->php_controller)); - } - // set for the list views - if (isset($view->php_model_list) && ComponentbuilderHelper::checkString($view->php_model_list)) - { - $view->php_model_list = $this->setDynamicValues(base64_decode($view->php_model_list)); - } - if (isset($view->php_controller_list) && ComponentbuilderHelper::checkString($view->php_controller_list)) - { - $view->php_controller_list = $this->setDynamicValues(base64_decode($view->php_controller_list)); + if (isset($view->{$button_code_field}) && ComponentbuilderHelper::checkString($view->{$button_code_field})) + { + // set field + $guiMapper['field'] = $button_code_field; + $view->{$button_code_field} = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($view->{$button_code_field})), + $guiMapper + ); + } } // set the button array $view->custom_button = (isset($view->custom_button) && ComponentbuilderHelper::checkJson($view->custom_button)) ? json_decode($view->custom_button, true) : null; @@ -2189,7 +2282,15 @@ class Get { if (isset($view->$importScripter) && strlen($view->$importScripter) > 0) { - $this->customScriptBuilder[$importScripter]['import_' . $name_list] = $this->setDynamicValues(base64_decode($view->$importScripter)); + // update GUI mapper field + $guiMapper['field'] = $importScripter; + $this->setCustomScriptBuilder( + $view->$importScripter, + $importScripter, + 'import_' . $name_list, + false, + $guiMapper + ); unset($view->$importScripter); } else @@ -2229,10 +2330,26 @@ class Get } if (ComponentbuilderHelper::checkString($view->php_ajaxmethod)) { - $this->customScriptBuilder['admin']['ajax_model'][$name_single] = $this->setDynamicValues(base64_decode($view->php_ajaxmethod)); + // update GUI mapper field + $guiMapper['field'] = 'php_ajaxmethod'; + $this->setCustomScriptBuilder( + $view->php_ajaxmethod, + 'admin', + 'ajax_model', + $name_single, + $guiMapper + ); if ($addAjaxSite) { - $this->customScriptBuilder['site']['ajax_model'][$name_single] = $this->customScriptBuilder['admin']['ajax_model'][$name_single]; + $this->setCustomScriptBuilder( + $view->php_ajaxmethod, + 'site', + 'ajax_model', + $name_single, + $guiMapper, + false, + false + ); } // unset anyway unset($view->php_ajaxmethod); @@ -2279,7 +2396,11 @@ class Get elseif ($view->source == 2 && isset($view->sql)) { // add the SQL dump string - $this->customScriptBuilder['sql'][$name_single] = base64_decode($view->sql); + $this->setCustomScriptBuilder( + $view->sql, + 'sql', + $name_single + ); unset($view->sql); } } @@ -2385,8 +2506,14 @@ class Get // update the repeatable fields $view = ComponentbuilderHelper::convertRepeatableFields($view, $searchRepeatables, $updater); + // set GUI mapper + $guiMapper = array( 'table' => $table, 'id' => (int) $id, 'field' => 'default', 'type' => 'html'); + // set the default data - $view->default = $this->setDynamicValues(base64_decode($view->default)); + $view->default = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($view->default)), + $guiMapper + ); // fix alias to use in code $view->code = $this->uniqueCode(ComponentbuilderHelper::safeString($view->codename)); $view->Code = ComponentbuilderHelper::safeString($view->code, 'F'); @@ -2478,11 +2605,26 @@ class Get $view->custom_get = $this->setGetData(json_decode($view->custom_get, true), $view->code, $view->context); // set array adding array of scripts $addArray = array('php_view', 'php_jview', 'php_jview_display', 'php_document', 'javascript_file', 'js_document', 'css_document', 'css'); + // set GUI mapper + $guiMapper['type'] = 'php'; foreach ($addArray as $scripter) { if (isset($view->{'add_' . $scripter}) && $view->{'add_' . $scripter} == 1 && ComponentbuilderHelper::checkString($view->$scripter)) { - $view->$scripter = $this->setDynamicValues(base64_decode($view->$scripter)); + // css does not get placholders yet + if (strpos($scripter, 'css') === false) + { + // set field + $guiMapper['field'] = $scripter; + $view->$scripter = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($view->$scripter)), + $guiMapper + ); + } + else + { + $view->$scripter = $this->setDynamicValues(base64_decode($view->$scripter)); + } if (2 == $this->uikit || 1 == $this->uikit) { if (!isset($this->uikitComp[$view->code])) @@ -2556,7 +2698,15 @@ class Get // load the ajax class mathods (if set) if (ComponentbuilderHelper::checkString($view->php_ajaxmethod)) { - $this->customScriptBuilder[$target]['ajax_model'][$view->code] = $this->setDynamicValues(base64_decode($view->php_ajaxmethod)); + // set field + $guiMapper['field'] = 'php_ajaxmethod'; + $this->setCustomScriptBuilder( + $view->php_ajaxmethod, + $target, + 'ajax_model', + $view->code, + $guiMapper + ); $setAjax = true; } // unset anyway @@ -2578,13 +2728,23 @@ class Get // add the custom buttons if (isset($view->add_custom_button) && $view->add_custom_button == 1) { - if (ComponentbuilderHelper::checkString($view->php_model)) + $button_code_array = array( + 'php_model', + 'php_controller' + ); + // set for the code + foreach ($button_code_array as $button_code_field) { - $view->php_model = base64_decode($view->php_model); - $view->php_model = $this->setDynamicValues($view->php_model); + if (isset($view->{$button_code_field}) && ComponentbuilderHelper::checkString($view->{$button_code_field})) + { + // set field + $guiMapper['field'] = $button_code_field; + $view->{$button_code_field} = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($view->{$button_code_field})), + $guiMapper + ); + } } - $view->php_controller = base64_decode($view->php_controller); - $view->php_controller = $this->setDynamicValues($view->php_controller); // set the button array $view->custom_button = (isset($view->custom_button) && ComponentbuilderHelper::checkJson($view->custom_button)) ? json_decode($view->custom_button, true) : null; if (ComponentbuilderHelper::checkArray($view->custom_button)) @@ -2678,7 +2838,14 @@ class Get if ($this->validationRules[$validationRule] = ComponentbuilderHelper::getVar('validation_rule', $validationRule, 'name', 'php')) { // open and set the validation rule - $this->validationRules[$validationRule] = $this->setPlaceholders($this->setDynamicValues(base64_decode($this->validationRules[$validationRule])), $this->placeholders); + $this->validationRules[$validationRule] = $this->setGuiCodePlaceholder( + $this->setPlaceholders($this->setDynamicValues(base64_decode($this->validationRules[$validationRule])), $this->placeholders), + array( + 'table' => 'validation_rule', + 'field' => 'php', + 'id' => ComponentbuilderHelper::getVar('validation_rule', $validationRule, 'name', 'id'), + 'type' => 'php') + ); } else { @@ -2733,20 +2900,31 @@ class Get // add_javascript_view_footer if ($this->_fieldData[$id]->add_javascript_view_footer == 1 && ComponentbuilderHelper::checkString($this->_fieldData[$id]->javascript_view_footer)) { - if (!isset($this->customScriptBuilder['view_footer'])) + $convert__ = true; + if (isset($this->_fieldData[$id]->javascript_view_footer_decoded) + && $this->_fieldData[$id]->javascript_view_footer_decoded) { - $this->customScriptBuilder['view_footer'] = array(); - } - if (!isset($this->customScriptBuilder['view_footer'][$name_single])) - { - $this->customScriptBuilder['view_footer'][$name_single] = ''; + $convert__ = false; } + $this->setCustomScriptBuilder( + $this->_fieldData[$id]->javascript_view_footer, + 'view_footer', + $name_single, + false, + array( + 'table' => 'field', + 'id' => (int) $id, + 'field' => 'javascript_view_footer', + 'type' => 'js', + 'prefix' => PHP_EOL), + $convert__, + $convert__, + true + ); if (!isset($this->_fieldData[$id]->javascript_view_footer_decoded)) { - $this->_fieldData[$id]->javascript_view_footer = $this->setDynamicValues(base64_decode($this->_fieldData[$id]->javascript_view_footer)); $this->_fieldData[$id]->javascript_view_footer_decoded = true; } - $this->customScriptBuilder['view_footer'][$name_single] .= PHP_EOL . $this->_fieldData[$id]->javascript_view_footer; if (strpos($this->_fieldData[$id]->javascript_view_footer, "token") !== false || strpos($this->_fieldData[$id]->javascript_view_footer, "task=ajax") !== false) { @@ -2764,24 +2942,27 @@ class Get // add_css_view if ($this->_fieldData[$id]->add_css_view == 1) { - if (!isset($this->customScriptBuilder['css_view'])) + $convert__ = true; + if (isset($this->_fieldData[$id]->css_view_decoded) + && $this->_fieldData[$id]->css_view_decoded) { - $this->customScriptBuilder['css_view'] = array(); - } - if (!isset($this->customScriptBuilder['css_view'][$name_single])) - { - $this->customScriptBuilder['css_view'][$name_single] = ''; + $convert__ = false; } + $this->setCustomScriptBuilder( + $this->_fieldData[$id]->css_view, + 'css_view', + $name_single, + false, + array('prefix' => PHP_EOL), + $convert__, + $convert__, + true + ); if (!isset($this->_fieldData[$id]->css_view_decoded)) { - $this->_fieldData[$id]->css_view = base64_decode($this->_fieldData[$id]->css_view); - // check for custom code - $this->setCustomCodeData($this->_fieldData[$id]->css_view); $this->_fieldData[$id]->css_view_decoded = true; } - $this->customScriptBuilder['css_view'][$name_single] .= PHP_EOL . $this->_fieldData[$id]->css_view; } - // add this only once to view. $this->customFieldScript[$name_single][$id] = true; } @@ -2791,20 +2972,31 @@ class Get // add_javascript_views_footer if ($this->_fieldData[$id]->add_javascript_views_footer == 1 && ComponentbuilderHelper::checkString($this->_fieldData[$id]->javascript_views_footer)) { - if (!isset($this->customScriptBuilder['views_footer'])) + $convert__ = true; + if (isset($this->_fieldData[$id]->javascript_views_footer_decoded) + && $this->_fieldData[$id]->javascript_views_footer_decoded) { - $this->customScriptBuilder['views_footer'] = array(); - } - if (!isset($this->customScriptBuilder['views_footer'][$name_single])) - { - $this->customScriptBuilder['views_footer'][$name_single] = ''; + $convert__ = false; } + $this->setCustomScriptBuilder( + $this->_fieldData[$id]->javascript_views_footer, + 'views_footer', + $name_single, + false, + array( + 'table' => 'field', + 'id' => (int) $id, + 'field' => 'javascript_views_footer', + 'type' => 'js', + 'prefix' => PHP_EOL), + $convert__, + $convert__, + true + ); if (!isset($this->_fieldData[$id]->javascript_views_footer_decoded)) { - $this->_fieldData[$id]->javascript_views_footer = $this->setDynamicValues(base64_decode($this->_fieldData[$id]->javascript_views_footer)); $this->_fieldData[$id]->javascript_views_footer_decoded = true; } - $this->customScriptBuilder['views_footer'][$name_single] .= PHP_EOL . $this->_fieldData[$id]->javascript_views_footer; if (strpos($this->_fieldData[$id]->javascript_views_footer, "token") !== false || strpos($this->_fieldData[$id]->javascript_views_footer, "task=ajax") !== false) { @@ -2821,22 +3013,26 @@ class Get // add_css_views if ($this->_fieldData[$id]->add_css_views == 1) { - if (!isset($this->customScriptBuilder['css_views'])) + $convert__ = true; + if (isset($this->_fieldData[$id]->css_views_decoded) + && $this->_fieldData[$id]->css_views_decoded) { - $this->customScriptBuilder['css_views'] = array(); - } - if (!isset($this->customScriptBuilder['css_views'][$name_list])) - { - $this->customScriptBuilder['css_views'][$name_list] = ''; + $convert__ = false; } + $this->setCustomScriptBuilder( + $this->_fieldData[$id]->css_views, + 'css_views', + $name_list, + false, + array('prefix' => PHP_EOL), + $convert__, + $convert__, + true + ); if (!isset($this->_fieldData[$id]->css_views_decoded)) { - $this->_fieldData[$id]->css_views = base64_decode($this->_fieldData[$id]->css_views); - // check for custom code - $this->setCustomCodeData($this->_fieldData[$id]->css_views); $this->_fieldData[$id]->css_views_decoded = true; } - $this->customScriptBuilder['css_views'][$name_list] .= PHP_EOL . $this->_fieldData[$id]->css_views; } // add this only once to view. @@ -2992,7 +3188,7 @@ class Get return 'error'; } // set the type name - $type_name = ComponentbuilderHelper::safeFieldName($field['settings']->type_name); + $type_name = ComponentbuilderHelper::safeTypeName($field['settings']->type_name); // set the name of the field $name = ComponentbuilderHelper::safeFieldName($field['settings']->name); // check that we have the poperties @@ -3159,12 +3355,35 @@ class Get $results = $this->db->loadObjectList(); $typeArray = array(1 => 'LEFT', 2 => 'LEFT OUTER', 3 => 'INNER', 4 => 'RIGHT', 5 => 'RIGHT OUTER'); $operatorArray = array(1 => '=', 2 => '!=', 3 => '<>', 4 => '>', 5 => '<', 6 => '>=', 7 => '<=', 8 => '!<', 9 => '!>', 10 => 'IN', 11 => 'NOT IN'); + $guiMapper = array( 'table' => 'dynamic_get', 'id' => (int) $result->id, 'type' => 'php'); foreach ($results as $_nr => &$result) { // add calculations if set if ($result->addcalculation == 1 && ComponentbuilderHelper::checkString($result->php_calculation)) + { + // set GUI mapper field + $guiMapper['field'] = 'php_calculation'; + $result->php_calculation = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($result->php_calculation)), + $guiMapper + ); + } + // setup the router parse + if (isset($result->add_php_router_parse) + && $result->add_php_router_parse == 1 + && isset($result->php_router_parse) + && ComponentbuilderHelper::checkString($result->php_router_parse)) { - $result->php_calculation = $this->setDynamicValues(base64_decode($result->php_calculation)); + // set GUI mapper field + $guiMapper['field'] = 'php_router_parse'; + $result->php_router_parse = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($result->php_router_parse)), + $guiMapper + ); + } + else + { + $result->add_php_router_parse = 0; } // The array of the php scripts that should be added to the script builder $phpSripts = array('php_before_getitem', 'php_after_getitem', 'php_before_getitems', 'php_after_getitems', 'php_getlistquery'); @@ -3177,19 +3396,35 @@ class Get // move all main gets out to the customscript builder if ($result->gettype <= 2) { - if (!isset($this->customScriptBuilder[$this->target . '_' . $script][$view_code])) - { - $this->customScriptBuilder[$this->target . '_' . $script][$view_code] = ''; - } - $this->customScriptBuilder[$this->target . '_' . $script][$view_code] .= $this->setDynamicValues(PHP_EOL . PHP_EOL . base64_decode($result->{$script})); + // set GUI mapper field + $guiMapper['field'] = $script; + $guiMapper['prefix'] = PHP_EOL . PHP_EOL; + $this->setCustomScriptBuilder( + $result->{$script}, + $this->target . '_' . $script, + $view_code, + false, + $guiMapper, + true, + true, + true + ); + unset($guiMapper['prefix']); // remove from local item unset($result->{$script}); unset($result->{'add_' . $script}); } else { + // set GUI mapper field + $guiMapper['field'] = $script; + $guiMapper['prefix'] = PHP_EOL; // only for custom gets - $result->{$script} = $this->setDynamicValues(PHP_EOL . base64_decode($result->{$script})); + $result->{$script} = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($result->{$script})), + $guiMapper + ); + unset($guiMapper['prefix']); } } else @@ -3236,8 +3471,13 @@ class Get unset($result->db_selection); break; case 3: + // set GUI mapper field + $guiMapper['field'] = 'php_custom_get'; // get the custom query - $customQueryString = $this->setDynamicValues(base64_decode($result->php_custom_get)); + $customQueryString = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($result->php_custom_get)), + $guiMapper + ); // get the table name $_searchQuery = ComponentbuilderHelper::getBetween($customQueryString, '$query->from(', ')'); if (ComponentbuilderHelper::checkString($_searchQuery) && strpos($_searchQuery, '#__') !== false) @@ -3446,6 +3686,121 @@ class Get return false; } + /** + * set the script for the custom script builder + * + * @param string $script The script + * @param string $first The first key + * @param string $second The second key (if not set we use only first key) + * @param string $third The third key (if not set we use only first and second key) + * @param array $config The config options + * @param bool $base64 The switch to decode base64 the script + * default: true + * @param bool $dynamic The switch to dynamic update the script + * default: true + * @param bool $add The switch to add to exiting instead of replace + * default: false + * + * @return boolean true on success + * + */ + public function setCustomScriptBuilder(&$script, $first, $second = false, $third = false, $config = array(), $base64 = true, $dynamic = true, $add = false) + { + // only load if we have a string + if (!ComponentbuilderHelper::checkString($script)) + { + return false; + } + // this needs refactoring (TODO) + if (!isset($this->customScriptBuilder[$first]) || ($second && !isset($this->customScriptBuilder[$first][$second]))) + { + // check if the script first key is set + if ($second && !isset($this->customScriptBuilder[$first])) + { + $this->customScriptBuilder[$first] = array(); + } + elseif ($add && !$second && !isset($this->customScriptBuilder[$first])) + { + $this->customScriptBuilder[$first] = ''; + } + // check if the script second key is set + if ($second && $third && !isset($this->customScriptBuilder[$first][$second])) + { + $this->customScriptBuilder[$first][$second] = array(); + } + elseif ($add && $second && !$third && !isset($this->customScriptBuilder[$first][$second])) + { + $this->customScriptBuilder[$first][$second] = ''; + } + // check if the script third key is set + if ($add && $second && $third && !isset($this->customScriptBuilder[$first][$second][$third])) + { + $this->customScriptBuilder[$first][$second][$third] = ''; + } + } + // prep the script string + if ($base64 && $dynamic) + { + $script = $this->setDynamicValues(base64_decode($script)); + } + elseif ($base64) + { + $script = base64_decode($script); + } + elseif ($dynamic) // this does not happen (just incase) + { + $script = $this->setDynamicValues($script); + } + // check if we still hava a string + if (ComponentbuilderHelper::checkString($script)) + { + // now load the placeholder snippet if needed + if ($base64 || $dynamic) + { + $script = $this->setGuiCodePlaceholder($script, $config); + } + // load the script + if ($first && $second && $third) + { + // now act on loading option + if ($add) + { + $this->customScriptBuilder[$first][$second][$third] .= $script; + } + else + { + $this->customScriptBuilder[$first][$second][$third] = $script; + } + } + elseif ($first && $second) + { + // now act on loading option + if ($add) + { + $this->customScriptBuilder[$first][$second] .= $script; + } + else + { + $this->customScriptBuilder[$first][$second] = $script; + } + } + else + { + // now act on loading option + if ($add) + { + $this->customScriptBuilder[$first] .= $script; + } + else + { + $this->customScriptBuilder[$first] = $script; + } + } + return true; + } + return false; + } + /** * To limit the SQL Demo date build in the views * @@ -3960,9 +4315,23 @@ class Get $php_view = ''; if ($row->add_php_view == 1 && ComponentbuilderHelper::checkString($row->php_view)) { - $php_view = $this->setDynamicValues(base64_decode($row->php_view)); + $php_view = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($row->php_view)), + array( + 'table' => $table, + 'field' => 'php_view', + 'id' => (int) $row->id, + 'type' => 'php') + ); } - $contnent = $this->setDynamicValues(base64_decode($row->{$table})); + $contnent = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($row->{$table})), + array( + 'table' => $table, + 'field' => $table, + 'id' => (int) $row->id, + 'type' => 'html') + ); // load the library if (!isset($this->libManager[$this->target])) { @@ -4045,7 +4414,27 @@ class Get $this->getModule[$this->target][$view] = true; } } - return array('id' => $row->id, 'html' => $contnent, 'php_view' => $php_view); + return array( + 'id' => $row->id, + 'html' => $this->setGuiCodePlaceholder( + $contnent, + array( + 'table' => $table, + 'field' => $table, + 'id' => $row->id, + 'type' => 'html' + ) + ), + 'php_view' => $this->setGuiCodePlaceholder( + $php_view, + array( + 'table' => $table, + 'field' => 'php_view', + 'id' => $row->id, + 'type' => 'php' + ) + ) + ); } } return false; @@ -4218,7 +4607,14 @@ class Get // set Needed PHP if (isset($library->php_setdocument) && ComponentbuilderHelper::checkString($library->php_setdocument)) { - $library->document = $this->setDynamicValues(base64_decode($library->php_setdocument)); + $library->document = $this->setGuiCodePlaceholder( + $this->setDynamicValues(base64_decode($library->php_setdocument)), + array( + 'table' => 'library', + 'field' => 'php_setdocument', + 'id' => (int) $id, + 'type' => 'php') + ); } } // if this lib is controlled by conditions @@ -5752,6 +6148,173 @@ class Get return false; } + /** + * get the plugins linked to a component + * + * @return void + * + */ + public function getPlugins($id) + { + // Create a new query object. + $query = $this->db->getQuery(true); + + $query->select('a.*'); + $query->select( + $this->db->quoteName( + array( + 'g.name', + 'e.name', + 'e.head', + 'e.comment', + 'e.id', + 'j.addfiles', + 'j.addfolders', + 'j.addfilesfullpath', + 'j.addfoldersfullpath' + ), array( + 'group', + 'extends', + 'class_head', + 'comment', + 'class_id', + 'addfiles', + 'addfolders', + 'addfilesfullpath', + 'addfoldersfullpath' + ) + ) + ); + // from these tables + $query->from('#__componentbuilder_joomla_plugin AS a'); + $query->join('LEFT', $this->db->quoteName('#__componentbuilder_joomla_plugin_group', 'g') . ' ON (' . $this->db->quoteName('a.joomla_plugin_group') . ' = ' . $this->db->quoteName('g.id') . ')'); + $query->join('LEFT', $this->db->quoteName('#__componentbuilder_class_extends', 'e') . ' ON (' . $this->db->quoteName('a.class_extends') . ' = ' . $this->db->quoteName('e.id') . ')'); + $query->join('LEFT', $this->db->quoteName('#__componentbuilder_joomla_plugin_files_folders_urls', 'j') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('j.joomla_plugin') . ')'); + $query->where($this->db->quoteName('a.id') . ' = ' . (int) $id); + $query->where($this->db->quoteName('a.published') . ' >= 1'); + $this->db->setQuery($query); + $this->db->execute(); + if ($this->db->getNumRows()) + { + // get the plugin data + $plugin = $this->db->loadObject(); + // tweak system to set stuff to the plugin domain + $_backup_target = $this->target; + $_backup_lang = $this->lang; + $_backup_langPrefix = $this->langPrefix; + $this->target = 'plugin'.$id; + $this->lang = 'plugin'.$id; + $this->langPrefix = 'PLUGIN_PREFIX___'; + // set GUI mapper + $guiMapper = array( 'table' => 'joomla_plugin', 'id' => (int) $id, 'type' => 'php'); + // update the name if it has dynamic values + $plugin->name = $this->setPlaceholders($this->setDynamicValues($plugin->name), $this->placeholders); + // prepare plugin placeholders (TODO) + + // open some base64 strings + if (!empty($plugin->main_class_code)) + { + // set GUI mapper field + $guiMapper['field'] = 'main_class_code'; + // base64 Decode main_class_code. + $plugin->main_class_code = $this->setGuiCodePlaceholder( + $this->setPlaceholders($this->setDynamicValues(base64_decode($plugin->main_class_code)), $this->placeholders), + $guiMapper + ); + } + // set the head :) + if ($plugin->add_head == 1 && !empty($plugin->head)) + { + // set GUI mapper field + $guiMapper['field'] = 'head'; + // base64 Decode head. + $plugin->head = $this->setGuiCodePlaceholder( + $this->setPlaceholders($this->setDynamicValues(base64_decode($plugin->head)), $this->placeholders), + $guiMapper + ); + } + elseif (!empty($plugin->class_head)) + { + // base64 Decode head. + $plugin->head = $this->setGuiCodePlaceholder( + $this->setPlaceholders($this->setDynamicValues(base64_decode($plugin->class_head)), $this->placeholders), + array( + 'table' => 'class_extends', + 'field' => 'head', + 'id' => (int) $plugin->class_id, + 'type' => 'php') + ); + } + unset($plugin->class_head); + // set the comment + if (!empty($plugin->comment)) + { + // base64 Decode comment. + $plugin->comment = $this->setGuiCodePlaceholder( + $this->setPlaceholders($this->setDynamicValues(base64_decode($plugin->comment)), $this->placeholders), + array( + 'table' => 'class_extends', + 'field' => 'comment', + 'id' => (int) $plugin->class_id, + 'type' => 'php') + ); + } + // set the fields data + $plugin->fields = (isset($plugin->fields) && ComponentbuilderHelper::checkJson($plugin->fields)) ? json_decode($plugin->fields, true) : null; + if (ComponentbuilderHelper::checkArray($plugin->fields)) + { + $plugin->config_fields = array_map(function($field) use ($id){ + // make sure the alias and title is 0 + $field['alias'] = 0; + $field['title'] = 0; + // set the field details + $this->setFieldDetails($field, '_plugin_' . $id); + // set unique name counter + $this->setUniqueNameCounter($field['base_name'], '_plugins_' . $id); + // return field + return $field; + }, array_values($plugin->fields)); + + // do some house cleaning (for fields) + foreach ($plugin->config_fields as $field) + { + // so first we lock the field name in + $this->getFieldName($field, '_plugins_' . $id); + } + // unset original value + unset($plugin->fields); + } + // set the add targets + $addArray = array('files' => 'files', 'folders' => 'folders', 'urls' => 'urls', 'filesfullpath' => 'files', 'foldersfullpath' => 'folders'); + foreach ($addArray as $addTarget => $targetHere) + { + // set the add target data + $plugin->{'add' . $addTarget} = (isset($plugin->{'add' . $addTarget}) && ComponentbuilderHelper::checkJson($plugin->{'add' . $addTarget})) ? json_decode($plugin->{'add' . $addTarget}, true) : null; + if (ComponentbuilderHelper::checkArray($plugin->{'add' . $addTarget})) + { + if (isset($plugin->{$targetHere}) && ComponentbuilderHelper::checkArray($plugin->{$targetHere})) + { + foreach ($plugin->{'add' . $addTarget} as $taget) + { + $plugin->{$targetHere}[] = $taget; + } + } + else + { + $plugin->{$targetHere} = array_values($plugin->{'add' . $addTarget}); + } + } + unset($plugin->{'add' . $addTarget}); + } + // rest globals + $this->target = $_backup_target; + $this->lang = $_backup_lang; + $this->langPrefix = $_backup_langPrefix; + return $plugin; + } + return false; + } + /** * check if we already have these ids in local memory * @@ -5865,11 +6428,14 @@ class Get $counter = array(1 => 0, 2 => 0); // file types to get $fileTypes = array('\.php', '\.js', '\.xml'); + // set some local placeholders - $placeholders = array(); + $placeholders = array_flip($this->globalPlaceholders); $placeholders[ComponentbuilderHelper::safeString($this->componentCodeName, 'F') . 'Helper::'] = $this->bbb . 'Component' . $this->ddd . 'Helper::'; $placeholders['COM_' . ComponentbuilderHelper::safeString($this->componentCodeName, 'U')] = 'COM_' . $this->bbb . 'COMPONENT' . $this->ddd; $placeholders['com_' . $this->componentCodeName] = 'com_' . $this->bbb . 'component' . $this->ddd; + // putt the last first + $placeholders = array_reverse($placeholders, true); foreach ($paths as $target => $path) { @@ -5927,6 +6493,8 @@ class Get */ protected function searchFileContent(&$counter, &$file, &$target, &$searchArray, &$placeholders, &$today) { + // we add a new search for the GUI CODE Blocks + $this->guiCodeSearch($file, $placeholders, $today); // reset each time per file $loadEndFingerPrint = false; $endFingerPrint = array(); @@ -6196,6 +6764,140 @@ class Get } } + /** + * Set the JCB GUI code placeholder + * + * @param string $string The code string + * @param array $config The placeholder config values + * + * @return void + * + */ + public function setGuiCodePlaceholder($string, $config) + { + if (ComponentbuilderHelper::checkString($string)) + { + if ($this->addPlaceholders && $this->canAddGuiCodePlaceholder($string) + && ComponentbuilderHelper::checkArray($config) + && isset($config['table']) && ComponentbuilderHelper::checkString($config['table']) + && isset($config['field']) && ComponentbuilderHelper::checkString($config['field']) + && isset($config['type']) && ComponentbuilderHelper::checkString($config['type']) + && isset($config['id']) && is_numeric($config['id'])) + { + // if we have a key we must get the ID + if (isset($config['key']) && ComponentbuilderHelper::checkString($config['key']) && $config['key'] !== 'id') + { + if (($id = ComponentbuilderHelper::getVar($config['table'], $config['id'], $config['key'], 'id')) !== false && is_numeric($id)) + { + $config['id'] = $id; + } + else + { + // we must give a error message to inform the user of this issue. (should never happen) + $this->app->enqueueMessage(JText::sprintf('ID mismatch was detected with the %s.%s.%s.%s GUI code field. So the placeholder was not set.', $config['table'], $config['field'], $config['key'], $config['id']), 'Error'); + // check some config + if (!isset($config['prefix'])) + { + $config['prefix'] = ''; + } + return $config['prefix'] . $string; + } + } + // check some config + if (!isset($config['prefix'])) + { + $config['prefix'] = PHP_EOL; + } + // add placheolder based on type of code + switch (strtolower($config['type'])) + { + // adding with html commenting + case 'html': + $front = $config['prefix'] . '' . PHP_EOL; + $back = ''); + + if (($guiCode = ComponentbuilderHelper::mergeArrays($guiCode)) !== false && ComponentbuilderHelper::checkArray($guiCode, true)) + { + foreach ($guiCode as $code) + { + $first_line = strtok($code, PHP_EOL); + // get the GUI target details + $target = explode('.', trim($first_line, '.')); + // cleanup the newlines around the code + $code = trim(str_replace($first_line, '', $code), PHP_EOL) . PHP_EOL; + // reverse placeholder as much as we can + $code = $this->reversePlaceholders($code, $placeholders, $target[2], $target[1], $target[0]); + // update the GUI/Tables/Database + $object = new stdClass(); + $object->id = (int) $target[2]; + $object->{$target[1]} = base64_encode($code); // (TODO) this may not always work... + // update the value in GUI + $this->db->updateObject('#__componentbuilder_' . (string) $target[0], $object, 'id'); + } + } + } + /** * Check if this line should be added * @@ -6292,16 +6994,18 @@ class Get * Reverse Engineer the dynamic placeholders (TODO hmmmm this is not ideal) * * @param string $string The string to revers - * @param int $id The custom code id * @param array $placeholders The values to search for + * @param int $id The custom code id + * @param string $field The field name + * @param string $table The table name * * @return string * */ - protected function reversePlaceholders($string, &$placeholders, $id = null) + protected function reversePlaceholders($string, &$placeholders, $id = null, $field = 'code', $table = 'custom_code') { // get local code if set - if ($id > 0 && $code = base64_decode(ComponentbuilderHelper::getVar('custom_code', $id, 'id', 'code'))) + if ($id > 0 && $code = base64_decode(ComponentbuilderHelper::getVar($table, $id, 'id', $field))) { $string = $this->setReverseLangPlaceholders($string, $code); } diff --git a/admin/helpers/compiler/c_Fields.php b/admin/helpers/compiler/c_Fields.php index c280b4bf0..e5d63852f 100644 --- a/admin/helpers/compiler/c_Fields.php +++ b/admin/helpers/compiler/c_Fields.php @@ -1123,7 +1123,7 @@ class Fields extends Structure $dynamicField = $this->setField('special', $fieldAttributes, $name, $typeName, $langView, $view_name_single, $view_name_list, $placeholders, $optionArray); } } - elseif (ComponentbuilderHelper::checkArray($fieldAttributes['custom'])) + elseif (isset($fieldAttributes['custom']) && ComponentbuilderHelper::checkArray($fieldAttributes['custom'])) { // set the custom array $custom = $fieldAttributes['custom']; @@ -1399,7 +1399,7 @@ class Fields extends Structure // now add to the field set $field .= $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber); } - elseif (ComponentbuilderHelper::checkArray($r_fieldValues['custom'])) + elseif (isset($r_fieldValues['custom']) && ComponentbuilderHelper::checkArray($r_fieldValues['custom'])) { // add to custom $custom = $r_fieldValues['custom']; @@ -1516,7 +1516,7 @@ class Fields extends Structure $field .= $this->setField('special', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber); } } - elseif (ComponentbuilderHelper::checkArray($r_fieldValues['custom'])) + elseif (isset($r_fieldValues['custom']) && ComponentbuilderHelper::checkArray($r_fieldValues['custom'])) { // add to custom $custom = $r_fieldValues['custom']; @@ -1778,12 +1778,7 @@ class Fields extends Structure // now add to the field set ComponentbuilderHelper::xmlAppend($fieldSetXML, $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray)); } - elseif (ComponentbuilderHelper::fieldCheck($r_typeName, 'plain')) - { - // now add to the field set - ComponentbuilderHelper::xmlAppend($fieldSetXML, $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray)); - } - elseif (ComponentbuilderHelper::checkArray($r_fieldValues['custom'])) + elseif (isset($r_fieldValues['custom']) && ComponentbuilderHelper::checkArray($r_fieldValues['custom'])) { // add to custom $custom = $r_fieldValues['custom']; @@ -1804,6 +1799,11 @@ class Fields extends Structure // set the custom field file $this->setCustomFieldTypeFile($data, $view_name_list, $view_name_single); } + else + { + // now add to the field set + ComponentbuilderHelper::xmlAppend($fieldSetXML, $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray)); + } } } } @@ -1886,11 +1886,6 @@ class Fields extends Structure // now add to the field set ComponentbuilderHelper::xmlAppend($form, $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray)); } - elseif (ComponentbuilderHelper::fieldCheck($r_typeName, 'plain')) - { - // now add to the field set - ComponentbuilderHelper::xmlAppend($form, $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray)); - } elseif ($r_typeName === 'subform') { // set nested depth @@ -1910,7 +1905,7 @@ class Fields extends Structure } } - elseif (ComponentbuilderHelper::checkArray($r_fieldValues['custom'])) + elseif (isset($r_fieldValues['custom']) && ComponentbuilderHelper::checkArray($r_fieldValues['custom'])) { // add to custom $custom = $r_fieldValues['custom']; @@ -1931,6 +1926,11 @@ class Fields extends Structure // set the custom field file $this->setCustomFieldTypeFile($data, $view_name_list, $view_name_single); } + else + { + // now add to the field set + ComponentbuilderHelper::xmlAppend($form, $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray)); + } } } } diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index cc60884ad..1db371306 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -5419,7 +5419,7 @@ class Interpretation extends Fields { // load the custom script for the switch based on dynamic get $routerSwitch[] = PHP_EOL . $this->_t(3) . "case '" . $view . "':"; - $routerSwitch[] = $this->setPlaceholders($this->setDynamicValues(base64_decode($viewArray['settings']->main_get->php_router_parse)), $this->placeholders); + $routerSwitch[] = $this->setPlaceholders($viewArray['settings']->main_get->php_router_parse, $this->placeholders); $routerSwitch[] = $this->_t(4) . "break;"; return implode(PHP_EOL, $routerSwitch); diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini index d52af6caf..b73c16147 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini @@ -1580,7 +1580,7 @@ COM_COMPONENTBUILDER_CLASS_METHOD_COMMENT_HINT="/** * [PARAMS] * */" -COM_COMPONENTBUILDER_CLASS_METHOD_COMMENT_LABEL="Comment" +COM_COMPONENTBUILDER_CLASS_METHOD_COMMENT_LABEL="DocBlock" COM_COMPONENTBUILDER_CLASS_METHOD_COMPONENTS="components" COM_COMPONENTBUILDER_CLASS_METHOD_CREATED_BY_DESC="The user that created this Class Method." COM_COMPONENTBUILDER_CLASS_METHOD_CREATED_BY_LABEL="Created By" @@ -1674,7 +1674,7 @@ COM_COMPONENTBUILDER_CLASS_PROPERTY_COMMENT_HINT="/** * [PARAMS] * */" -COM_COMPONENTBUILDER_CLASS_PROPERTY_COMMENT_LABEL="Comment" +COM_COMPONENTBUILDER_CLASS_PROPERTY_COMMENT_LABEL="DocBlock" COM_COMPONENTBUILDER_CLASS_PROPERTY_COMPONENTS="components" COM_COMPONENTBUILDER_CLASS_PROPERTY_CREATED_BY_DESC="The user that created this Class Property." COM_COMPONENTBUILDER_CLASS_PROPERTY_CREATED_BY_LABEL="Created By" @@ -3018,7 +3018,7 @@ COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_PUBLISHING="Publishing" COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Component Placeholders to customise the alias." COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_STATUS="Status" COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_TARGET_DESCRIPTION="Set the text you would like to target as a placeholder" -COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_TARGET_HINT="[[[core]]]" +COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_TARGET_HINT="coral" COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_TARGET_LABEL="Target String Placeholder" COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_TARGET_MESSAGE="Error! That target placeholder text already exist. Please add an unique placeholder target." COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_VALUE_DESCRIPTION="Set the text you would like to set as the replacement value for the targeted placeholder." @@ -5823,7 +5823,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_TARGET_DESCRIPTION="Select t COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_TARGET_LABEL="Update Server Target" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_URL="Update Server Url" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_URL_DESCRIPTION="Enter Update Server URL" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_URL_HINT="http://www.example.com/update/component.xml" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_URL_HINT="http://www.example.com/update/extension_name.xml" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_URL_LABEL="Update Server" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_URL_MESSAGE="Error! Please add url here." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_USE_DESCRIPTION="How should we link to this contributor." @@ -5885,6 +5885,46 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_STATE="Joomla Plugins Edit State" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla plugin" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_VERSION="Joomla Plugins Edit Version" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla plugins" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS="Joomla Plugins Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_ACCESS="Joomla Plugins Files Folders Urls Access" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_ACCESS_DESC="Allows the users in this group to access access joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_BATCH_OPTIONS="Batch process the selected Joomla Plugins Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_BATCH_TIP="All changes will be applied to all selected Joomla Plugins Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_BATCH_USE="Joomla Plugins Files Folders Urls Batch Use" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_CREATE="Joomla Plugins Files Folders Urls Create" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_CREATE_DESC="Allows the users in this group to create create joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_DELETE="Joomla Plugins Files Folders Urls Delete" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_DELETE_DESC="Allows the users in this group to delete delete joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT="Joomla Plugins Files Folders Urls Edit" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_CREATED_BY="Joomla Plugins Files Folders Urls Edit Created By" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_CREATED_DATE="Joomla Plugins Files Folders Urls Edit Created Date" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_DESC="Allows the users in this group to edit the joomla plugin files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_OWN="Joomla Plugins Files Folders Urls Edit Own" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_OWN_DESC="Allows the users in this group to edit edit own joomla plugins files folders urls created by them" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_STATE="Joomla Plugins Files Folders Urls Edit State" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla plugin files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_VERSION="Joomla Plugins Files Folders Urls Edit Version" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_ARCHIVED="%s Joomla Plugins Files, Folders & URLs archived." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_ARCHIVED_1="%s Joomla Plugin Files, Folders & URLs archived." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_CHECKED_IN_0="No Joomla Plugin Files, Folders & URLs successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_CHECKED_IN_1="%d Joomla Plugin Files, Folders & URLs successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_CHECKED_IN_MORE="%d Joomla Plugins Files, Folders & URLs successfully checked in." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_DELETED="%s Joomla Plugins Files, Folders & URLs deleted." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_DELETED_1="%s Joomla Plugin Files, Folders & URLs deleted." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_FEATURED="%s Joomla Plugins Files, Folders & URLs featured." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_FEATURED_1="%s Joomla Plugin Files, Folders & URLs featured." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_PUBLISHED="%s Joomla Plugins Files, Folders & URLs published." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_PUBLISHED_1="%s Joomla Plugin Files, Folders & URLs published." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_TRASHED="%s Joomla Plugins Files, Folders & URLs trashed." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_TRASHED_1="%s Joomla Plugin Files, Folders & URLs trashed." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_UNFEATURED="%s Joomla Plugins Files, Folders & URLs unfeatured." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_UNFEATURED_1="%s Joomla Plugin Files, Folders & URLs unfeatured." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_UNPUBLISHED="%s Joomla Plugins Files, Folders & URLs unpublished." +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_N_ITEMS_UNPUBLISHED_1="%s Joomla Plugin Files, Folders & URLs unpublished." COM_COMPONENTBUILDER_JOOMLA_PLUGINS_N_ITEMS_ARCHIVED="%s Joomla Plugins archived." COM_COMPONENTBUILDER_JOOMLA_PLUGINS_N_ITEMS_ARCHIVED_1="%s Joomla Plugin archived." COM_COMPONENTBUILDER_JOOMLA_PLUGINS_N_ITEMS_CHECKED_IN_0="No Joomla Plugin successfully checked in." @@ -5904,9 +5944,31 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGINS_N_ITEMS_UNPUBLISHED="%s Joomla Plugins unpub COM_COMPONENTBUILDER_JOOMLA_PLUGINS_N_ITEMS_UNPUBLISHED_1="%s Joomla Plugin unpublished." COM_COMPONENTBUILDER_JOOMLA_PLUGINS_SUBMENU="Joomla Plugins Submenu" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_SUBMENU_DESC="Allows the users in this group to submenu of joomla plugin" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDREADME="Addreadme" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADDREADME_LABEL="Add README" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD="Add Head" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD_DESCRIPTION="You can add your own custom header script, combined with the default header script that make the extended class work." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_HEAD_LABEL="Add Custom Class Header" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_METHOD_UNINSTALL="Add Php Method Uninstall" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_METHOD_UNINSTALL_LABEL="Add PHP Method (uninstall)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_POSTFLIGHT_INSTALL="Add Php Postflight Install" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_POSTFLIGHT_INSTALL_LABEL="Add PHP Postflight (install)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_POSTFLIGHT_UPDATE="Add Php Postflight Update" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_POSTFLIGHT_UPDATE_LABEL="Add PHP Postflight (update)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_PREFLIGHT_INSTALL="Add Php Preflight Install" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_PREFLIGHT_INSTALL_LABEL="Add PHP Preflight (install)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_PREFLIGHT_UNINSTALL="Add Php Preflight Uninstall" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_PREFLIGHT_UNINSTALL_LABEL="Add PHP Preflight (uninstall)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_PREFLIGHT_UPDATE="Add Php Preflight Update" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_PHP_PREFLIGHT_UPDATE_LABEL="Add PHP Preflight (update)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_SALES_SERVER="Add Sales Server" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_SALES_SERVER_LABEL="Add Sales Server" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_SQL="Add Sql" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_SQL_LABEL="Add MySQL - (Install)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_SQL_UNINSTALL="Add Sql Uninstall" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_SQL_UNINSTALL_LABEL="Add MySQL - (Uninstall)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_UPDATE_SERVER="Add Update Server" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ADD_UPDATE_SERVER_LABEL="Add Update Server" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CLASS_EXTENDS="Class Extends" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CLASS_EXTENDS_LABEL="Extends" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CODE="Code" @@ -5918,6 +5980,7 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CREATED_DATE_LABEL="Created Date" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CUSTOM_VALUE_DESCRIPTION="Enter custom value if needed" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CUSTOM_VALUE_HINT="Custom Value Here" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_CUSTOM_VALUE_LABEL="Custom Value" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_DYNAMIC_INTEGRATION="Dynamic Integration" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_EDIT="Editing the Joomla Plugin" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ERROR_UNIQUE_ALIAS="Another Joomla Plugin has the same alias." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FIELD="Field" @@ -5925,6 +5988,122 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FIELDS="Fields" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FIELDS_LABEL="Fields" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FIELD_DESCRIPTION="Select a field" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FIELD_LABEL="Field" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS="Joomla Plugin Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFILES="Addfiles" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFILESFULLPATH="Addfilesfullpath" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFILESFULLPATH_DESCRIPTION="Add files to this component using the full path." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFILESFULLPATH_LABEL="Files (full path)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFILES_DESCRIPTION="Add custom files to this component from the custom folder. Path: /administrator/components/com_componentbuilder/custom/" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFILES_LABEL="Files (custom folder)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFOLDERS="Addfolders" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH="Addfoldersfullpath" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_DESCRIPTION="Add custom folder to this component using the full path." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFOLDERSFULLPATH_LABEL="Folder (full path)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFOLDERS_DESCRIPTION="Add custom folder to this component from the custom folder. Path: /administrator/components/com_componentbuilder/custom/" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDFOLDERS_LABEL="Folder (custom folder)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDURLS="Addurls" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDURLS_DESCRIPTION="Add urls for this library." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADDURLS_LABEL="URLs" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ADVANCE="Advance" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_BASIC="Basic" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_CREATED_BY_DESC="The user that created this Joomla Plugin Files, Folders & URLs." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_CREATED_BY_LABEL="Created By" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_CREATED_DATE_DESC="The date this Joomla Plugin Files, Folders & URLs was created." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_CREATED_DATE_LABEL="Created Date" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_DEFAULT_LINK="Default (link)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_EDIT="Editing the Joomla Plugin Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ERROR_UNIQUE_ALIAS="Another Joomla Plugin Files, Folders & URLs has the same alias." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FILE="File" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FILEPATH_DESCRIPTION="Full System Path" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FILEPATH_HINT="/home/user/folder/file.php" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FILEPATH_LABEL="File Path" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FILEPATH_MESSAGE="Error! Please add folder path here." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FILE_DESCRIPTION="Add the files to custom folder" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FILE_LABEL="File" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FOLDER="Folder" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FOLDERPATH_DESCRIPTION="Full System Path" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FOLDERPATH_HINT="/home/user/folder" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FOLDERPATH_LABEL="Folder Path" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FOLDERPATH_MESSAGE="Error! Please add folder path here." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FOLDER_DESCRIPTION="Add the folder to custom folder" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_FOLDER_LABEL="Folder" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ID="Id" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_JOOMLA_PLUGIN="Joomla Plugin" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_JOOMLA_PLUGIN_LABEL="Joomla Plugins" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_LINK_LOCAL_DYNAMIC="Link & Local (dynamic)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_LOCAL_GET="Local (get)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_MODIFIED_BY_DESC="The last user that modified this Joomla Plugin Files, Folders & URLs." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_MODIFIED_BY_LABEL="Modified By" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_MODIFIED_DATE_DESC="The date this Joomla Plugin Files, Folders & URLs was modified." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_MODIFIED_DATE_LABEL="Modified Date" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NEW="A New Joomla Plugin Files, Folders & URLs" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTE_ADD_FILES_DESCRIPTION="You can add custom files to the component, simply add the files to the administrator/components/com_componentbuilder/custom folder and then select them here." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_DESCRIPTION="You can add any files to the component, by using the full system path. Example: /home/user/folder/file.php (make sure that php has permission to read the file)
Please note that you can also use constant paths in your full path (directly without quotes), this is highly recommended to insure portability.
To see a list of constant paths please read the notes below. Example: JPATH_ROOT/file.php or JPATH_ROOT/components/com_yourcomponentname/helpers/file.php" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTE_ADD_FILES_FULLPATH_LABEL="Adding Files" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTE_ADD_FILES_LABEL="Adding Custom Files" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_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_PLUGIN_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_DESCRIPTION="You can any folders to the component, by using the full system path. Example: /home/user/folder (make sure that php has permission to read the folder)
Please note that you can also use constant paths in your full path (directly without quotes), this is highly recommended to insure portability.
To see a list of constant paths please read the notes below. Example: JPATH_ROOT/folder or JPATH_ROOT/components/com_yourcomponentname/helpers/folder" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_FULLPATH_LABEL="Adding Folders" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTE_ADD_FOLDERS_LABEL="Adding Custom Folders" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTE_ADD_URLS_DESCRIPTION="You can add urls here, and it can be used in three ways. As a direct link (default) or to get the file content and add it to the component (get) or as both local and link (dynamic)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTE_ADD_URLS_LABEL="Adding Urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_DESCRIPTION="

// The path to the administrator folder.
+JPATH_ADMINISTRATOR
+// The path to the installed Joomla! site, or JPATH_ROOT/administrator if executed from the backend.
+JPATH_BASE
+// The path to the cache folder.
+JPATH_CACHE
+// The path to the administration folder of JCB component.
+JPATH_COMPONENT_ADMINISTRATOR no ideal to use
+// The path to the site folder of JCB component.
+JPATH_COMPONENT_SITE no ideal to use
+// The path to the JCB component.
+JPATH_COMPONENT no ideal to use
+// The path to folder containing the configuration.php file.
+JPATH_CONFIGURATION
+// The path to the installation folder.
+JPATH_INSTALLATION
+// The path to the libraries folder.
+JPATH_LIBRARIES
+// The path to the plugins folder.
+JPATH_PLUGINS
+// The path to the installed Joomla! site.
+JPATH_ROOT
+// The path to the installed Joomla! site.
+JPATH_SITE
+// The path to the templates folder.
+JPATH_THEMES

+ +

JPATH_SITE is meant to represent the root path of the JSite application,
+just as JPATH_ADMINISTRATOR is mean to represent the root path of the JAdministrator application.
+JPATH_BASE is the root path for the current requested application.... so if you are in the administrator application:
+JPATH_BASE == JPATH_ADMINISTRATOR
+If you are in the site application:
+JPATH_BASE == JPATH_SITE
+If you are in the installation application:
+JPATH_BASE == JPATH_INSTALLATION.
+JPATH_ROOT is the root path for the Joomla install and does not depend upon any application.

" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTE_CONSTANT_PATHS_LABEL="Constant Paths" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTNEW_DESCRIPTION="Should file be updated." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_NOTNEW_LABEL="Update" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_ORDERING_LABEL="Ordering" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_PATH_DESCRIPTION="Path in relation to the folder structure in the install package, unzip the compiled zip file to see the structure." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_PATH_HINT="Target Path Here" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_PATH_LABEL="Target Path" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_PATH_MESSAGE="Error! Please add target path." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_PERMISSION="Permissions" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_PUBLISHING="Publishing" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_RENAME_LABEL="Rename" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Joomla Plugin Files, Folders & URLs to customise the alias." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_STATUS="Status" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_TYPE_DESCRIPTION="way url is used" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_TYPE_LABEL="Type" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_URL_DESCRIPTION="Enter URL to library file." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_URL_HINT="http://www.example.com/lib.js" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_URL_LABEL="URL" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_URL_MESSAGE="Error! Please add url here." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_VERSION_DESC="A count of the number of times this Joomla Plugin Files, Folders & URLs has been revised." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_FILES_FOLDERS_URLS_VERSION_LABEL="Revision" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GET_BOILERPLATE_BUTTON_ACCESS="Joomla Plugin Get Boilerplate Button Access" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GET_BOILERPLATE_BUTTON_ACCESS_DESC="Allows the users in this group to access the get boilerplate button." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUP="Joomla Plugin Group" @@ -6001,6 +6180,7 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGIN_MODIFIED_BY_DESC="The last user that modified COM_COMPONENTBUILDER_JOOMLA_PLUGIN_MODIFIED_BY_LABEL="Modified By" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_MODIFIED_DATE_DESC="The date this Joomla Plugin was modified." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_MODIFIED_DATE_LABEL="Modified Date" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_MYSQL="MySQL" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME="Name" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_DESCRIPTION="Enter Name Here" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NAME_HINT="Name Here" @@ -6014,8 +6194,34 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_LINKED_TO_NOTICE_DESCRIPTION="
boilerplate repo that can serve as a starting point, simple select them and it will be added to your code.

If you have added any fields in the Config/Params tab, these fields will be available to you in the $this->params object, and can be accessed via the field name $this->params->get('fieldname'); with the get method.

" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_PLUGIN_LABEL="Easy Plugin Build Options" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION="During compilation the file will be moved to the server. You still need to point the above update server url to the xml file location on your server for it to work correctly." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL="Select the server used for your update server." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_OTHER_DESCRIPTION="Not really sure what other options to add.... so let me know. For now this option does not really do anything except adding the link above to your component as an update server. So it really could be called the manual option, since you will need to set the update server your self. You still need to point the above update server url to the manually created xml file for it to work correctly." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_OTHER_LABEL="The Other Options" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION="The update server XML file will be added to the zipped package during compilation. You still need to point the above update server url to the xml wherever you have placed the files online." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL="The ZIP Option" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_NOT_REQUIRED="Not Required" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ORDERING_LABEL="Ordering" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_OTHER="Other" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PERMISSION="Permissions" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_METHOD_UNINSTALL="Php Method Uninstall" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_METHOD_UNINSTALL_DESCRIPTION="PHP script that should run during uninstall." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_METHOD_UNINSTALL_LABEL="PHP Method (uninstall)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_POSTFLIGHT_INSTALL="Php Postflight Install" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_POSTFLIGHT_INSTALL_DESCRIPTION="PHP script that should run postflight during install." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_POSTFLIGHT_INSTALL_LABEL="PHP Postflight (install)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_POSTFLIGHT_UPDATE="Php Postflight Update" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_POSTFLIGHT_UPDATE_DESCRIPTION="PHP script that should run postflight during update." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_POSTFLIGHT_UPDATE_LABEL="PHP Postflight (update)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_INSTALL="Php Preflight Install" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_INSTALL_DESCRIPTION="PHP script that should run preflight during install." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_INSTALL_LABEL="PHP Preflight (install)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_UNINSTALL="Php Preflight Uninstall" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_UNINSTALL_DESCRIPTION="PHP script that should run preflight during uninstall." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_UNINSTALL_LABEL="PHP Preflight (uninstall)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_UPDATE="Php Preflight Update" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_UPDATE_DESCRIPTION="PHP script that should run preflight during update." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PHP_PREFLIGHT_UPDATE_LABEL="PHP Preflight (update)" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PROPERTIES_BUTTON_ACCESS="Joomla Plugin Properties Button Access" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PROPERTIES_BUTTON_ACCESS_DESC="Allows the users in this group to access the properties button." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PROPERTY="Property" @@ -6024,18 +6230,45 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PROPERTY_SELECTION="Property Selection" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PROPERTY_SELECTION_DESCRIPTION="Select properties you want to use in your plugin class." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PROPERTY_SELECTION_LABEL="Property Selection" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_PUBLISHING="Publishing" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_README="Readme" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_README_LABEL="README.md" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_RUN_EXPANSION_BUTTON_ACCESS="Joomla Plugin Run Expansion Button Access" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SALES_SERVER="Sales Server" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SALES_SERVER_DESCRIPTION="Select your sales server for this component" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SALES_SERVER_LABEL="Sales Server" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Joomla Plugin to customise the alias." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SCRIPT_FILE="Script File" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SERVER="Server" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL="Sql" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_DESCRIPTION="Add your MySQL here!" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_HINT="// Add MySQL Table Dump Here" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_LABEL="MySQL - (Install)" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_UNINSTALL="Sql Uninstall" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_UNINSTALL_DESCRIPTION="Add your MySQL here for uninstall!" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_UNINSTALL_HINT="// Add MySQL to uninstall Here" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SQL_UNINSTALL_LABEL="MySQL - (Uninstall)" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_STATUS="Status" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME="System Name" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_DESCRIPTION="Used only in the system." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_HINT="The System Name Here" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_LABEL="System Name" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_SYSTEM_NAME_MESSAGE="Error! Please add some text here." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER="Update Server" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_DESCRIPTION="Select your update server for this component." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_LABEL="Update Server" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_TARGET="Update Server Target" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_TARGET_DESCRIPTION="Select the type of way you would like the update server to be set." +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_TARGET_LABEL="Update Server Target" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL="Update Server Url" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_DESCRIPTION="Enter Update Server URL" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_HINT="http://www.example.com/update/extension_name.xml" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_LABEL="Update Server" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATE_SERVER_URL_MESSAGE="Error! Please add url here." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_VERSION_DESC="A count of the number of times this Joomla Plugin has been revised." COM_COMPONENTBUILDER_JOOMLA_PLUGIN_VERSION_LABEL="Revision" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES="Yes" +COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ZIP="ZIP" COM_COMPONENTBUILDER_JUST_GET_ALL_SNIPPETS="Just Get All Snippets" COM_COMPONENTBUILDER_KEEP_HISTORY="Keep History" COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS="- Keep Original Access -" @@ -6879,7 +7112,7 @@ COM_COMPONENTBUILDER_PLACEHOLDER_SAVE_WARNING="Alias already existed so a number COM_COMPONENTBUILDER_PLACEHOLDER_STATUS="Status" COM_COMPONENTBUILDER_PLACEHOLDER_TARGET="Target" COM_COMPONENTBUILDER_PLACEHOLDER_TARGET_DESCRIPTION="Set the text you would like to target as a placeholder" -COM_COMPONENTBUILDER_PLACEHOLDER_TARGET_HINT="[[[core]]]" +COM_COMPONENTBUILDER_PLACEHOLDER_TARGET_HINT="coral" COM_COMPONENTBUILDER_PLACEHOLDER_TARGET_LABEL="Target String Placeholder" COM_COMPONENTBUILDER_PLACEHOLDER_TARGET_MESSAGE="Error! That target placeholder text already exist. Please add an unique placeholder target." COM_COMPONENTBUILDER_PLACEHOLDER_VALUE="Value" @@ -7956,6 +8189,7 @@ COM_COMPONENTBUILDER_THE_NAME_OF_THIS_LIBRARY_BSB_CAN_NOT_BE_CHANGED_TO_BSB_OR_T COM_COMPONENTBUILDER_THE_NOTICE_BOARD_IS_LOADING="The notice board is loading" COM_COMPONENTBUILDER_THE_PACKAGE_KEY_IS_CODESCODE="The package key is: %s" COM_COMPONENTBUILDER_THE_PACKAGE_KEY_IS_S="The package key is: %s" +COM_COMPONENTBUILDER_THE_PLUGIN_FILES_FOLDERS="The plugin files & folders" COM_COMPONENTBUILDER_THE_PRIVATE_KEY_FIELD_COULD_NOT_BE_LOADED_FOR_BSB_SERVER="The private key field could not be loaded for %s server!" COM_COMPONENTBUILDER_THE_PRIVATE_KEY_FILE_COULD_NOT_BE_LOADEDFOUND_FOR_BSB_SERVER="The private key file could not be loaded/found for %s server!" COM_COMPONENTBUILDER_THE_README_IS_LOADING="The readme is loading" 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 42a278414..4dcfe0b80 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini @@ -660,6 +660,26 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_STATE="Joomla Plugins Edit State" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla plugin" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_VERSION="Joomla Plugins Edit Version" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla plugins" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_ACCESS="Joomla Plugins Files Folders Urls Access" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_ACCESS_DESC="Allows the users in this group to access access joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_BATCH_USE="Joomla Plugins Files Folders Urls Batch Use" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_CREATE="Joomla Plugins Files Folders Urls Create" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_CREATE_DESC="Allows the users in this group to create create joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_DELETE="Joomla Plugins Files Folders Urls Delete" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_DELETE_DESC="Allows the users in this group to delete delete joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT="Joomla Plugins Files Folders Urls Edit" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_CREATED_BY="Joomla Plugins Files Folders Urls Edit Created By" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_CREATED_DATE="Joomla Plugins Files Folders Urls Edit Created Date" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created joomla plugins files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_DESC="Allows the users in this group to edit the joomla plugin files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_OWN="Joomla Plugins Files Folders Urls Edit Own" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_OWN_DESC="Allows the users in this group to edit edit own joomla plugins files folders urls created by them" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_STATE="Joomla Plugins Files Folders Urls Edit State" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla plugin files folders urls" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_VERSION="Joomla Plugins Files Folders Urls Edit Version" +COM_COMPONENTBUILDER_JOOMLA_PLUGINS_FILES_FOLDERS_URLS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla plugins files folders urls" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_SUBMENU="Joomla Plugins Submenu" COM_COMPONENTBUILDER_JOOMLA_PLUGINS_SUBMENU_DESC="Allows the users in this group to submenu of joomla plugin" COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GET_BOILERPLATE_BUTTON_ACCESS="Joomla Plugin Get Boilerplate Button Access" diff --git a/admin/layouts/fieldtype/fields_fullwidth.php b/admin/layouts/fieldtype/fields_fullwidth.php index ad82e0bd2..32758b02f 100644 --- a/admin/layouts/fieldtype/fields_fullwidth.php +++ b/admin/layouts/fieldtype/fields_fullwidth.php @@ -13,7 +13,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vxtfields; +$items = $displayData->vxwfields; $user = JFactory::getUser(); $id = $displayData->item->id; // set the edit URL diff --git a/admin/layouts/joomla_plugin/code_fullwidth.php b/admin/layouts/joomla_plugin/code_fullwidth.php index 25d35c80c..7f50a4885 100644 --- a/admin/layouts/joomla_plugin/code_fullwidth.php +++ b/admin/layouts/joomla_plugin/code_fullwidth.php @@ -28,7 +28,8 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1]; $fields = $displayData->get($fields_tab_layout) ?: array( 'head', 'main_class_code', - 'note_linked_to_notice' + 'note_linked_to_notice', + 'not_required' ); $hiddenFields = $displayData->get('hidden_fields') ?: array(); diff --git a/admin/layouts/joomla_plugin/dynamic_integration_left.php b/admin/layouts/joomla_plugin/dynamic_integration_left.php new file mode 100644 index 000000000..45d0c1960 --- /dev/null +++ b/admin/layouts/joomla_plugin/dynamic_integration_left.php @@ -0,0 +1,50 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'add_update_server', + 'update_server_url', + 'update_server_target', + 'note_update_server_note_ftp', + 'note_update_server_note_zip', + 'note_update_server_note_other', + 'update_server', + 'add_sales_server', + 'sales_server' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_plugin/mysql_fullwidth.php b/admin/layouts/joomla_plugin/mysql_fullwidth.php new file mode 100644 index 000000000..95a45a88b --- /dev/null +++ b/admin/layouts/joomla_plugin/mysql_fullwidth.php @@ -0,0 +1,47 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'add_sql', + 'sql', + 'add_sql_uninstall', + 'sql_uninstall' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_plugin/readme_left.php b/admin/layouts/joomla_plugin/readme_left.php new file mode 100644 index 000000000..bc6fda557 --- /dev/null +++ b/admin/layouts/joomla_plugin/readme_left.php @@ -0,0 +1,43 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'addreadme', + 'readme' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_plugin/script_file_fullwidth.php b/admin/layouts/joomla_plugin/script_file_fullwidth.php new file mode 100644 index 000000000..0b13cdc2b --- /dev/null +++ b/admin/layouts/joomla_plugin/script_file_fullwidth.php @@ -0,0 +1,55 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'add_php_preflight_install', + 'php_preflight_install', + 'add_php_preflight_update', + 'php_preflight_update', + 'add_php_preflight_uninstall', + 'php_preflight_uninstall', + 'add_php_postflight_install', + 'php_postflight_install', + 'add_php_postflight_update', + 'php_postflight_update', + 'add_php_method_uninstall', + 'php_method_uninstall' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_plugin_files_folders_urls/advance_fullwidth.php b/admin/layouts/joomla_plugin_files_folders_urls/advance_fullwidth.php new file mode 100644 index 000000000..b5112d859 --- /dev/null +++ b/admin/layouts/joomla_plugin_files_folders_urls/advance_fullwidth.php @@ -0,0 +1,48 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'note_add_files_fullpath', + 'addfilesfullpath', + 'note_add_folders_fullpath', + 'addfoldersfullpath', + 'note_constant_paths' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_plugin_files_folders_urls/basic_above.php b/admin/layouts/joomla_plugin_files_folders_urls/basic_above.php new file mode 100644 index 000000000..a5b493763 --- /dev/null +++ b/admin/layouts/joomla_plugin_files_folders_urls/basic_above.php @@ -0,0 +1,44 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'joomla_plugin' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_plugin_files_folders_urls/basic_fullwidth.php b/admin/layouts/joomla_plugin_files_folders_urls/basic_fullwidth.php new file mode 100644 index 000000000..60e54aae2 --- /dev/null +++ b/admin/layouts/joomla_plugin_files_folders_urls/basic_fullwidth.php @@ -0,0 +1,49 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'note_add_urls', + 'addurls', + 'note_add_files', + 'addfiles', + 'note_add_folders', + 'addfolders' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + +
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + +
+ diff --git a/admin/layouts/joomla_plugin_files_folders_urls/index.html b/admin/layouts/joomla_plugin_files_folders_urls/index.html new file mode 100644 index 000000000..fa6d84e80 --- /dev/null +++ b/admin/layouts/joomla_plugin_files_folders_urls/index.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/admin/layouts/joomla_plugin_files_folders_urls/publishing.php b/admin/layouts/joomla_plugin_files_folders_urls/publishing.php new file mode 100644 index 000000000..68e3657ce --- /dev/null +++ b/admin/layouts/joomla_plugin_files_folders_urls/publishing.php @@ -0,0 +1,45 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'created', + 'created_by', + 'modified', + 'modified_by' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/joomla_plugin_files_folders_urls/publlshing.php b/admin/layouts/joomla_plugin_files_folders_urls/publlshing.php new file mode 100644 index 000000000..a7ff8580c --- /dev/null +++ b/admin/layouts/joomla_plugin_files_folders_urls/publlshing.php @@ -0,0 +1,47 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// get the form +$form = $displayData->getForm(); + +// get the layout fields override method name (from layout path/ID) +$layout_path_array = explode('.', $this->getLayoutId()); +// Since we cannot pass the layout and tab names as parameters to the model method +// this name combination of tab and layout in the method name is the only work around +// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name. +// example of layout name: details_left.php +// example of method name: getFields_details_left() +$fields_tab_layout = 'fields_' . $layout_path_array[1]; + +// get the fields +$fields = $displayData->get($fields_tab_layout) ?: array( + 'published', + 'ordering', + 'access', + 'version', + 'hits', + 'id' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + + diff --git a/admin/layouts/server/linked_components_fullwidth.php b/admin/layouts/server/linked_components_fullwidth.php index 5cb30c3e3..03920a738 100644 --- a/admin/layouts/server/linked_components_fullwidth.php +++ b/admin/layouts/server/linked_components_fullwidth.php @@ -13,7 +13,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->vydlinked_components; +$items = $displayData->vyglinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; // set the edit URL @@ -83,11 +83,7 @@ else - escape($item->component_version); ?>
- get($_button['view'].'.edit') && ($id = ComponentbuilderHelper::getVar($_button['view'], $item->id, 'joomla_component', 'id')) !== false): ?> - + get($_button['view'].'.create')): ?> - + @@ -172,9 +168,9 @@ else
get($_button['view'].'.edit') && ($id = ComponentbuilderHelper::getVar($_button['view'], $item->id, 'joomla_component', 'id')) !== false): ?> - + get($_button['view'].'.create')): ?> - +
@@ -186,9 +182,9 @@ else
get($_button['view'].'.edit') && ($id = ComponentbuilderHelper::getVar($_button['view'], $item->id, 'joomla_component', 'id')) !== false): ?> - + get($_button['view'].'.create')): ?> - +
diff --git a/admin/models/admin_view.php b/admin/models/admin_view.php index 60b101f90..6b0d9ed2c 100644 --- a/admin/models/admin_view.php +++ b/admin/models/admin_view.php @@ -540,83 +540,83 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->ajax_input = $ajax_input->toArray(); } + if (empty($item->id)) + { + $id = 0; + } + else + { + $id = $item->id; + } + // set the id and view name to session + if ($vdm = ComponentbuilderHelper::get('admin_view__'.$id)) + { + $this->vastDevMod = $vdm; + } + else + { + // set the vast development method key + $this->vastDevMod = ComponentbuilderHelper::randomkey(50); + ComponentbuilderHelper::set($this->vastDevMod, 'admin_view__'.$id); + ComponentbuilderHelper::set('admin_view__'.$id, $this->vastDevMod); + // set a return value if found + $jinput = JFactory::getApplication()->input; + $return = $jinput->get('return', null, 'base64'); + ComponentbuilderHelper::set($this->vastDevMod . '__return', $return); + } - if (empty($item->id)) - { - $id = 0; - } - else - { - $id = $item->id; - } - // set the id and view name to session - if ($vdm = ComponentbuilderHelper::get('admin_view__'.$id)) - { - $this->vastDevMod = $vdm; - } - else - { - // set the vast development method key - $this->vastDevMod = ComponentbuilderHelper::randomkey(50); - ComponentbuilderHelper::set($this->vastDevMod, 'admin_view__'.$id); - ComponentbuilderHelper::set('admin_view__'.$id, $this->vastDevMod); - // set a return value if found - $jinput = JFactory::getApplication()->input; - $return = $jinput->get('return', null, 'base64'); - ComponentbuilderHelper::set($this->vastDevMod . '__return', $return); - } + // update the fields + $objectUpdate = new stdClass(); + $objectUpdate->id = (int) $item->id; + // repeatable values to check + $arrayChecker = array( + 'addlinked_views' => 'adminview', + 'ajax_input' => 'value_name', + 'custom_button' => 'name', + 'addpermissions' => 'action', + 'addtables' => 'table', + 'addtabs' => 'name' + ); + foreach ($arrayChecker as $_value => $checker) + { + // check what type of array we have here (should be subform... but just in case) + // This could happen due to huge data sets + if (isset($item->{$_value}) && isset($item->{$_value}[$checker])) + { + $bucket = array(); + foreach($item->{$_value} as $option => $values) + { + foreach($values as $nr => $value) + { + $bucket[$_value.$nr][$option] = $value; + } + } + $item->{$_value} = $bucket; + $objectUpdate->{$_value} = json_encode($bucket); + } + } + // be sure to update the table if we found repeatable fields that are still not converted + if (count((array) $objectUpdate) > 1) + { + $this->_db->updateObject('#__componentbuilder_admin_view', $objectUpdate, 'id'); + } + + // update the mysql_table_engine defaults + if (isset($item->mysql_table_engine) && is_numeric($item->mysql_table_engine)) + { + $item->mysql_table_engine = 'MyISAM'; + } + // update the mysql_table_charset defaults + if (isset($item->mysql_table_charset) && is_numeric($item->mysql_table_charset)) + { + $item->mysql_table_charset = 'utf8'; + } + // update the mysql_table_collate defaults + if (isset($item->mysql_table_collate) && is_numeric($item->mysql_table_collate)) + { + $item->mysql_table_collate = 'utf8_general_ci'; + } - // update the fields - $objectUpdate = new stdClass(); - $objectUpdate->id = (int) $item->id; - // repeatable values to check - $arrayChecker = array( - 'addlinked_views' => 'adminview', - 'ajax_input' => 'value_name', - 'custom_button' => 'name', - 'addpermissions' => 'action', - 'addtables' => 'table', - 'addtabs' => 'name' - ); - foreach ($arrayChecker as $_value => $checker) - { - // check what type of array we have here (should be subform... but just in case) - // This could happen due to huge data sets - if (isset($item->{$_value}) && isset($item->{$_value}[$checker])) - { - $bucket = array(); - foreach($item->{$_value} as $option => $values) - { - foreach($values as $nr => $value) - { - $bucket[$_value.$nr][$option] = $value; - } - } - $item->{$_value} = $bucket; - $objectUpdate->{$_value} = json_encode($bucket); - } - } - // be sure to update the table if we found repeatable fields that are still not converted - if (count((array) $objectUpdate) > 1) - { - $this->_db->updateObject('#__componentbuilder_admin_view', $objectUpdate, 'id'); - } - - // update the mysql_table_engine defaults - if (isset($item->mysql_table_engine) && is_numeric($item->mysql_table_engine)) - { - $item->mysql_table_engine = 'MyISAM'; - } - // update the mysql_table_charset defaults - if (isset($item->mysql_table_charset) && is_numeric($item->mysql_table_charset)) - { - $item->mysql_table_charset = 'utf8'; - } - // update the mysql_table_collate defaults - if (isset($item->mysql_table_collate) && is_numeric($item->mysql_table_collate)) - { - $item->mysql_table_collate = 'utf8_general_ci'; - } if (!empty($item->id)) { @@ -1414,12 +1414,13 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['metadata'] = (string) $metadata; } - // if system name is empty create from name_single - if (empty($data['system_name']) || !ComponentbuilderHelper::checkString($data['system_name'])) - { - $data['system_name'] = $data['name_single']; + // if system name is empty create a system name from the name_single + if (empty($data['system_name']) || !ComponentbuilderHelper::checkString($data['system_name'])) + { + $data['system_name'] = $data['name_single']; } + // Set the addtables items to data. if (isset($data['addtables']) && is_array($data['addtables'])) { diff --git a/admin/models/componentbuilder.php b/admin/models/componentbuilder.php index 33a6a4115..350c71771 100644 --- a/admin/models/componentbuilder.php +++ b/admin/models/componentbuilder.php @@ -193,7 +193,10 @@ class ComponentbuilderModelComponentbuilder extends JModelList 'class_extendings.access' => 'class_extends.access', 'class_extends.access' => 'class_extends.access', 'joomla_plugin_groups.access' => 'joomla_plugin_group.access', - 'joomla_plugin_group.access' => 'joomla_plugin_group.access'); + 'joomla_plugin_group.access' => 'joomla_plugin_group.access', + 'joomla_plugin_files_folders_urls.create' => 'joomla_plugin_files_folders_urls.create', + 'joomla_plugins_files_folders_urls.access' => 'joomla_plugin_files_folders_urls.access', + 'joomla_plugin_files_folders_urls.access' => 'joomla_plugin_files_folders_urls.access'); // loop over the $views foreach($viewGroups as $group => $views) { diff --git a/admin/models/fieldtype.php b/admin/models/fieldtype.php index 84ebe43eb..3e025683c 100644 --- a/admin/models/fieldtype.php +++ b/admin/models/fieldtype.php @@ -203,7 +203,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getVxtfields() + public function getVxwfields() { // Get the user object. $user = JFactory::getUser(); @@ -285,13 +285,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin foreach ($items as $nr => &$item) { // convert datatype - $item->datatype = $this->selectionTranslationVxtfields($item->datatype, 'datatype'); + $item->datatype = $this->selectionTranslationVxwfields($item->datatype, 'datatype'); // convert indexes - $item->indexes = $this->selectionTranslationVxtfields($item->indexes, 'indexes'); + $item->indexes = $this->selectionTranslationVxwfields($item->indexes, 'indexes'); // convert null_switch - $item->null_switch = $this->selectionTranslationVxtfields($item->null_switch, 'null_switch'); + $item->null_switch = $this->selectionTranslationVxwfields($item->null_switch, 'null_switch'); // convert store - $item->store = $this->selectionTranslationVxtfields($item->store, 'store'); + $item->store = $this->selectionTranslationVxwfields($item->store, 'store'); } } @@ -305,7 +305,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return translatable string */ - public function selectionTranslationVxtfields($value,$name) + public function selectionTranslationVxwfields($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 f251d61ca..db9a4f8b1 100644 --- a/admin/models/forms/admin_view.js +++ b/admin/models/forms/admin_view.js @@ -9,123 +9,123 @@ */ // Some Global Values -jform_vvvvvygvwe_required = false; -jform_vvvvvyhvwf_required = false; -jform_vvvvvylvwg_required = false; -jform_vvvvvylvwh_required = false; -jform_vvvvvylvwi_required = false; -jform_vvvvvylvwj_required = false; -jform_vvvvvylvwk_required = false; -jform_vvvvvylvwl_required = false; -jform_vvvvvylvwm_required = false; +jform_vvvvvyyvwh_required = false; +jform_vvvvvyzvwi_required = false; +jform_vvvvvzdvwj_required = false; +jform_vvvvvzdvwk_required = false; +jform_vvvvvzdvwl_required = false; +jform_vvvvvzdvwm_required = false; +jform_vvvvvzdvwn_required = false; +jform_vvvvvzdvwo_required = false; +jform_vvvvvzdvwp_required = false; // Initial Script jQuery(document).ready(function() { - var add_css_view_vvvvvxg = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvvxg(add_css_view_vvvvvxg); + var add_css_view_vvvvvxy = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvvxy(add_css_view_vvvvvxy); - var add_css_views_vvvvvxh = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvvxh(add_css_views_vvvvvxh); + var add_css_views_vvvvvxz = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvvxz(add_css_views_vvvvvxz); - var add_javascript_view_file_vvvvvxi = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val(); - vvvvvxi(add_javascript_view_file_vvvvvxi); + var add_javascript_view_file_vvvvvya = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val(); + vvvvvya(add_javascript_view_file_vvvvvya); - var add_javascript_views_file_vvvvvxj = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val(); - vvvvvxj(add_javascript_views_file_vvvvvxj); + var add_javascript_views_file_vvvvvyb = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val(); + vvvvvyb(add_javascript_views_file_vvvvvyb); - var add_javascript_view_footer_vvvvvxk = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); - vvvvvxk(add_javascript_view_footer_vvvvvxk); + var add_javascript_view_footer_vvvvvyc = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvvyc(add_javascript_view_footer_vvvvvyc); - var add_javascript_views_footer_vvvvvxl = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); - vvvvvxl(add_javascript_views_footer_vvvvvxl); + var add_javascript_views_footer_vvvvvyd = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvvyd(add_javascript_views_footer_vvvvvyd); - var add_php_ajax_vvvvvxm = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvxm(add_php_ajax_vvvvvxm); + var add_php_ajax_vvvvvye = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvye(add_php_ajax_vvvvvye); - var add_php_getitem_vvvvvxn = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); - vvvvvxn(add_php_getitem_vvvvvxn); + var add_php_getitem_vvvvvyf = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); + vvvvvyf(add_php_getitem_vvvvvyf); - var add_php_getitems_vvvvvxo = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); - vvvvvxo(add_php_getitems_vvvvvxo); + var add_php_getitems_vvvvvyg = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); + vvvvvyg(add_php_getitems_vvvvvyg); - var add_php_getitems_after_all_vvvvvxp = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val(); - vvvvvxp(add_php_getitems_after_all_vvvvvxp); + var add_php_getitems_after_all_vvvvvyh = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val(); + vvvvvyh(add_php_getitems_after_all_vvvvvyh); - var add_php_getlistquery_vvvvvxq = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); - vvvvvxq(add_php_getlistquery_vvvvvxq); + var add_php_getlistquery_vvvvvyi = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); + vvvvvyi(add_php_getlistquery_vvvvvyi); - var add_php_getform_vvvvvxr = jQuery("#jform_add_php_getform input[type='radio']:checked").val(); - vvvvvxr(add_php_getform_vvvvvxr); + var add_php_getform_vvvvvyj = jQuery("#jform_add_php_getform input[type='radio']:checked").val(); + vvvvvyj(add_php_getform_vvvvvyj); - var add_php_before_save_vvvvvxs = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); - vvvvvxs(add_php_before_save_vvvvvxs); + var add_php_before_save_vvvvvyk = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); + vvvvvyk(add_php_before_save_vvvvvyk); - var add_php_save_vvvvvxt = jQuery("#jform_add_php_save input[type='radio']:checked").val(); - vvvvvxt(add_php_save_vvvvvxt); + var add_php_save_vvvvvyl = jQuery("#jform_add_php_save input[type='radio']:checked").val(); + vvvvvyl(add_php_save_vvvvvyl); - var add_php_postsavehook_vvvvvxu = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); - vvvvvxu(add_php_postsavehook_vvvvvxu); + var add_php_postsavehook_vvvvvym = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); + vvvvvym(add_php_postsavehook_vvvvvym); - var add_php_allowadd_vvvvvxv = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val(); - vvvvvxv(add_php_allowadd_vvvvvxv); + var add_php_allowadd_vvvvvyn = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val(); + vvvvvyn(add_php_allowadd_vvvvvyn); - var add_php_allowedit_vvvvvxw = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); - vvvvvxw(add_php_allowedit_vvvvvxw); + var add_php_allowedit_vvvvvyo = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); + vvvvvyo(add_php_allowedit_vvvvvyo); - var add_php_before_cancel_vvvvvxx = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val(); - vvvvvxx(add_php_before_cancel_vvvvvxx); + var add_php_before_cancel_vvvvvyp = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val(); + vvvvvyp(add_php_before_cancel_vvvvvyp); - var add_php_after_cancel_vvvvvxy = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val(); - vvvvvxy(add_php_after_cancel_vvvvvxy); + var add_php_after_cancel_vvvvvyq = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val(); + vvvvvyq(add_php_after_cancel_vvvvvyq); - var add_php_batchcopy_vvvvvxz = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); - vvvvvxz(add_php_batchcopy_vvvvvxz); + var add_php_batchcopy_vvvvvyr = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); + vvvvvyr(add_php_batchcopy_vvvvvyr); - var add_php_batchmove_vvvvvya = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); - vvvvvya(add_php_batchmove_vvvvvya); + var add_php_batchmove_vvvvvys = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); + vvvvvys(add_php_batchmove_vvvvvys); - var add_php_before_publish_vvvvvyb = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); - vvvvvyb(add_php_before_publish_vvvvvyb); + var add_php_before_publish_vvvvvyt = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); + vvvvvyt(add_php_before_publish_vvvvvyt); - var add_php_after_publish_vvvvvyc = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); - vvvvvyc(add_php_after_publish_vvvvvyc); + var add_php_after_publish_vvvvvyu = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); + vvvvvyu(add_php_after_publish_vvvvvyu); - var add_php_before_delete_vvvvvyd = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); - vvvvvyd(add_php_before_delete_vvvvvyd); + var add_php_before_delete_vvvvvyv = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); + vvvvvyv(add_php_before_delete_vvvvvyv); - var add_php_after_delete_vvvvvye = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); - vvvvvye(add_php_after_delete_vvvvvye); + var add_php_after_delete_vvvvvyw = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); + vvvvvyw(add_php_after_delete_vvvvvyw); - var add_php_document_vvvvvyf = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvyf(add_php_document_vvvvvyf); + var add_php_document_vvvvvyx = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvyx(add_php_document_vvvvvyx); - var add_sql_vvvvvyg = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvyg(add_sql_vvvvvyg); + var add_sql_vvvvvyy = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvyy(add_sql_vvvvvyy); - var source_vvvvvyh = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvyh = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvyh(source_vvvvvyh,add_sql_vvvvvyh); + var source_vvvvvyz = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvyz = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvyz(source_vvvvvyz,add_sql_vvvvvyz); - var source_vvvvvyj = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvyj = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvyj(source_vvvvvyj,add_sql_vvvvvyj); + var source_vvvvvzb = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvzb = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvzb(source_vvvvvzb,add_sql_vvvvvzb); - var add_custom_import_vvvvvyl = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvyl(add_custom_import_vvvvvyl); + var add_custom_import_vvvvvzd = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvzd(add_custom_import_vvvvvzd); - var add_custom_import_vvvvvym = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvym(add_custom_import_vvvvvym); + var add_custom_import_vvvvvze = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvze(add_custom_import_vvvvvze); - var add_custom_button_vvvvvyn = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvyn(add_custom_button_vvvvvyn); + var add_custom_button_vvvvvzf = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvzf(add_custom_button_vvvvvzf); }); -// the vvvvvxg function -function vvvvvxg(add_css_view_vvvvvxg) +// the vvvvvxy function +function vvvvvxy(add_css_view_vvvvvxy) { // set the function logic - if (add_css_view_vvvvvxg == 1) + if (add_css_view_vvvvvxy == 1) { jQuery('#jform_css_view-lbl').closest('.control-group').show(); } @@ -135,11 +135,11 @@ function vvvvvxg(add_css_view_vvvvvxg) } } -// the vvvvvxh function -function vvvvvxh(add_css_views_vvvvvxh) +// the vvvvvxz function +function vvvvvxz(add_css_views_vvvvvxz) { // set the function logic - if (add_css_views_vvvvvxh == 1) + if (add_css_views_vvvvvxz == 1) { jQuery('#jform_css_views-lbl').closest('.control-group').show(); } @@ -149,11 +149,11 @@ function vvvvvxh(add_css_views_vvvvvxh) } } -// the vvvvvxi function -function vvvvvxi(add_javascript_view_file_vvvvvxi) +// the vvvvvya function +function vvvvvya(add_javascript_view_file_vvvvvya) { // set the function logic - if (add_javascript_view_file_vvvvvxi == 1) + if (add_javascript_view_file_vvvvvya == 1) { jQuery('#jform_javascript_view_file-lbl').closest('.control-group').show(); } @@ -163,11 +163,11 @@ function vvvvvxi(add_javascript_view_file_vvvvvxi) } } -// the vvvvvxj function -function vvvvvxj(add_javascript_views_file_vvvvvxj) +// the vvvvvyb function +function vvvvvyb(add_javascript_views_file_vvvvvyb) { // set the function logic - if (add_javascript_views_file_vvvvvxj == 1) + if (add_javascript_views_file_vvvvvyb == 1) { jQuery('#jform_javascript_views_file-lbl').closest('.control-group').show(); } @@ -177,11 +177,11 @@ function vvvvvxj(add_javascript_views_file_vvvvvxj) } } -// the vvvvvxk function -function vvvvvxk(add_javascript_view_footer_vvvvvxk) +// the vvvvvyc function +function vvvvvyc(add_javascript_view_footer_vvvvvyc) { // set the function logic - if (add_javascript_view_footer_vvvvvxk == 1) + if (add_javascript_view_footer_vvvvvyc == 1) { jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show(); } @@ -191,11 +191,11 @@ function vvvvvxk(add_javascript_view_footer_vvvvvxk) } } -// the vvvvvxl function -function vvvvvxl(add_javascript_views_footer_vvvvvxl) +// the vvvvvyd function +function vvvvvyd(add_javascript_views_footer_vvvvvyd) { // set the function logic - if (add_javascript_views_footer_vvvvvxl == 1) + if (add_javascript_views_footer_vvvvvyd == 1) { jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show(); } @@ -205,11 +205,11 @@ function vvvvvxl(add_javascript_views_footer_vvvvvxl) } } -// the vvvvvxm function -function vvvvvxm(add_php_ajax_vvvvvxm) +// the vvvvvye function +function vvvvvye(add_php_ajax_vvvvvye) { // set the function logic - if (add_php_ajax_vvvvvxm == 1) + if (add_php_ajax_vvvvvye == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show(); @@ -221,11 +221,11 @@ function vvvvvxm(add_php_ajax_vvvvvxm) } } -// the vvvvvxn function -function vvvvvxn(add_php_getitem_vvvvvxn) +// the vvvvvyf function +function vvvvvyf(add_php_getitem_vvvvvyf) { // set the function logic - if (add_php_getitem_vvvvvxn == 1) + if (add_php_getitem_vvvvvyf == 1) { jQuery('#jform_php_getitem-lbl').closest('.control-group').show(); } @@ -235,11 +235,11 @@ function vvvvvxn(add_php_getitem_vvvvvxn) } } -// the vvvvvxo function -function vvvvvxo(add_php_getitems_vvvvvxo) +// the vvvvvyg function +function vvvvvyg(add_php_getitems_vvvvvyg) { // set the function logic - if (add_php_getitems_vvvvvxo == 1) + if (add_php_getitems_vvvvvyg == 1) { jQuery('#jform_php_getitems-lbl').closest('.control-group').show(); } @@ -249,11 +249,11 @@ function vvvvvxo(add_php_getitems_vvvvvxo) } } -// the vvvvvxp function -function vvvvvxp(add_php_getitems_after_all_vvvvvxp) +// the vvvvvyh function +function vvvvvyh(add_php_getitems_after_all_vvvvvyh) { // set the function logic - if (add_php_getitems_after_all_vvvvvxp == 1) + if (add_php_getitems_after_all_vvvvvyh == 1) { jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').show(); } @@ -263,11 +263,11 @@ function vvvvvxp(add_php_getitems_after_all_vvvvvxp) } } -// the vvvvvxq function -function vvvvvxq(add_php_getlistquery_vvvvvxq) +// the vvvvvyi function +function vvvvvyi(add_php_getlistquery_vvvvvyi) { // set the function logic - if (add_php_getlistquery_vvvvvxq == 1) + if (add_php_getlistquery_vvvvvyi == 1) { jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show(); } @@ -277,11 +277,11 @@ function vvvvvxq(add_php_getlistquery_vvvvvxq) } } -// the vvvvvxr function -function vvvvvxr(add_php_getform_vvvvvxr) +// the vvvvvyj function +function vvvvvyj(add_php_getform_vvvvvyj) { // set the function logic - if (add_php_getform_vvvvvxr == 1) + if (add_php_getform_vvvvvyj == 1) { jQuery('#jform_php_getform-lbl').closest('.control-group').show(); } @@ -291,11 +291,11 @@ function vvvvvxr(add_php_getform_vvvvvxr) } } -// the vvvvvxs function -function vvvvvxs(add_php_before_save_vvvvvxs) +// the vvvvvyk function +function vvvvvyk(add_php_before_save_vvvvvyk) { // set the function logic - if (add_php_before_save_vvvvvxs == 1) + if (add_php_before_save_vvvvvyk == 1) { jQuery('#jform_php_before_save-lbl').closest('.control-group').show(); } @@ -305,11 +305,11 @@ function vvvvvxs(add_php_before_save_vvvvvxs) } } -// the vvvvvxt function -function vvvvvxt(add_php_save_vvvvvxt) +// the vvvvvyl function +function vvvvvyl(add_php_save_vvvvvyl) { // set the function logic - if (add_php_save_vvvvvxt == 1) + if (add_php_save_vvvvvyl == 1) { jQuery('#jform_php_save-lbl').closest('.control-group').show(); } @@ -319,11 +319,11 @@ function vvvvvxt(add_php_save_vvvvvxt) } } -// the vvvvvxu function -function vvvvvxu(add_php_postsavehook_vvvvvxu) +// the vvvvvym function +function vvvvvym(add_php_postsavehook_vvvvvym) { // set the function logic - if (add_php_postsavehook_vvvvvxu == 1) + if (add_php_postsavehook_vvvvvym == 1) { jQuery('#jform_php_postsavehook-lbl').closest('.control-group').show(); } @@ -333,11 +333,11 @@ function vvvvvxu(add_php_postsavehook_vvvvvxu) } } -// the vvvvvxv function -function vvvvvxv(add_php_allowadd_vvvvvxv) +// the vvvvvyn function +function vvvvvyn(add_php_allowadd_vvvvvyn) { // set the function logic - if (add_php_allowadd_vvvvvxv == 1) + if (add_php_allowadd_vvvvvyn == 1) { jQuery('#jform_php_allowadd-lbl').closest('.control-group').show(); } @@ -347,11 +347,11 @@ function vvvvvxv(add_php_allowadd_vvvvvxv) } } -// the vvvvvxw function -function vvvvvxw(add_php_allowedit_vvvvvxw) +// the vvvvvyo function +function vvvvvyo(add_php_allowedit_vvvvvyo) { // set the function logic - if (add_php_allowedit_vvvvvxw == 1) + if (add_php_allowedit_vvvvvyo == 1) { jQuery('#jform_php_allowedit-lbl').closest('.control-group').show(); } @@ -361,11 +361,11 @@ function vvvvvxw(add_php_allowedit_vvvvvxw) } } -// the vvvvvxx function -function vvvvvxx(add_php_before_cancel_vvvvvxx) +// the vvvvvyp function +function vvvvvyp(add_php_before_cancel_vvvvvyp) { // set the function logic - if (add_php_before_cancel_vvvvvxx == 1) + if (add_php_before_cancel_vvvvvyp == 1) { jQuery('#jform_php_before_cancel-lbl').closest('.control-group').show(); } @@ -375,11 +375,11 @@ function vvvvvxx(add_php_before_cancel_vvvvvxx) } } -// the vvvvvxy function -function vvvvvxy(add_php_after_cancel_vvvvvxy) +// the vvvvvyq function +function vvvvvyq(add_php_after_cancel_vvvvvyq) { // set the function logic - if (add_php_after_cancel_vvvvvxy == 1) + if (add_php_after_cancel_vvvvvyq == 1) { jQuery('#jform_php_after_cancel-lbl').closest('.control-group').show(); } @@ -389,11 +389,11 @@ function vvvvvxy(add_php_after_cancel_vvvvvxy) } } -// the vvvvvxz function -function vvvvvxz(add_php_batchcopy_vvvvvxz) +// the vvvvvyr function +function vvvvvyr(add_php_batchcopy_vvvvvyr) { // set the function logic - if (add_php_batchcopy_vvvvvxz == 1) + if (add_php_batchcopy_vvvvvyr == 1) { jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show(); } @@ -403,11 +403,11 @@ function vvvvvxz(add_php_batchcopy_vvvvvxz) } } -// the vvvvvya function -function vvvvvya(add_php_batchmove_vvvvvya) +// the vvvvvys function +function vvvvvys(add_php_batchmove_vvvvvys) { // set the function logic - if (add_php_batchmove_vvvvvya == 1) + if (add_php_batchmove_vvvvvys == 1) { jQuery('#jform_php_batchmove-lbl').closest('.control-group').show(); } @@ -417,11 +417,11 @@ function vvvvvya(add_php_batchmove_vvvvvya) } } -// the vvvvvyb function -function vvvvvyb(add_php_before_publish_vvvvvyb) +// the vvvvvyt function +function vvvvvyt(add_php_before_publish_vvvvvyt) { // set the function logic - if (add_php_before_publish_vvvvvyb == 1) + if (add_php_before_publish_vvvvvyt == 1) { jQuery('#jform_php_before_publish-lbl').closest('.control-group').show(); } @@ -431,11 +431,11 @@ function vvvvvyb(add_php_before_publish_vvvvvyb) } } -// the vvvvvyc function -function vvvvvyc(add_php_after_publish_vvvvvyc) +// the vvvvvyu function +function vvvvvyu(add_php_after_publish_vvvvvyu) { // set the function logic - if (add_php_after_publish_vvvvvyc == 1) + if (add_php_after_publish_vvvvvyu == 1) { jQuery('#jform_php_after_publish-lbl').closest('.control-group').show(); } @@ -445,11 +445,11 @@ function vvvvvyc(add_php_after_publish_vvvvvyc) } } -// the vvvvvyd function -function vvvvvyd(add_php_before_delete_vvvvvyd) +// the vvvvvyv function +function vvvvvyv(add_php_before_delete_vvvvvyv) { // set the function logic - if (add_php_before_delete_vvvvvyd == 1) + if (add_php_before_delete_vvvvvyv == 1) { jQuery('#jform_php_before_delete-lbl').closest('.control-group').show(); } @@ -459,11 +459,11 @@ function vvvvvyd(add_php_before_delete_vvvvvyd) } } -// the vvvvvye function -function vvvvvye(add_php_after_delete_vvvvvye) +// the vvvvvyw function +function vvvvvyw(add_php_after_delete_vvvvvyw) { // set the function logic - if (add_php_after_delete_vvvvvye == 1) + if (add_php_after_delete_vvvvvyw == 1) { jQuery('#jform_php_after_delete-lbl').closest('.control-group').show(); } @@ -473,11 +473,11 @@ function vvvvvye(add_php_after_delete_vvvvvye) } } -// the vvvvvyf function -function vvvvvyf(add_php_document_vvvvvyf) +// the vvvvvyx function +function vvvvvyx(add_php_document_vvvvvyx) { // set the function logic - if (add_php_document_vvvvvyf == 1) + if (add_php_document_vvvvvyx == 1) { jQuery('#jform_php_document-lbl').closest('.control-group').show(); } @@ -487,75 +487,75 @@ function vvvvvyf(add_php_document_vvvvvyf) } } -// the vvvvvyg function -function vvvvvyg(add_sql_vvvvvyg) +// the vvvvvyy function +function vvvvvyy(add_sql_vvvvvyy) { // set the function logic - if (add_sql_vvvvvyg == 1) + if (add_sql_vvvvvyy == 1) { jQuery('#jform_source').closest('.control-group').show(); // add required attribute to source field - if (jform_vvvvvygvwe_required) + if (jform_vvvvvyyvwh_required) { updateFieldRequired('source',0); jQuery('#jform_source').prop('required','required'); jQuery('#jform_source').attr('aria-required',true); jQuery('#jform_source').addClass('required'); - jform_vvvvvygvwe_required = false; + jform_vvvvvyyvwh_required = false; } } else { jQuery('#jform_source').closest('.control-group').hide(); // remove required attribute from source field - if (!jform_vvvvvygvwe_required) + if (!jform_vvvvvyyvwh_required) { updateFieldRequired('source',1); jQuery('#jform_source').removeAttr('required'); jQuery('#jform_source').removeAttr('aria-required'); jQuery('#jform_source').removeClass('required'); - jform_vvvvvygvwe_required = true; + jform_vvvvvyyvwh_required = true; } } } -// the vvvvvyh function -function vvvvvyh(source_vvvvvyh,add_sql_vvvvvyh) +// the vvvvvyz function +function vvvvvyz(source_vvvvvyz,add_sql_vvvvvyz) { // set the function logic - if (source_vvvvvyh == 2 && add_sql_vvvvvyh == 1) + if (source_vvvvvyz == 2 && add_sql_vvvvvyz == 1) { jQuery('#jform_sql').closest('.control-group').show(); // add required attribute to sql field - if (jform_vvvvvyhvwf_required) + if (jform_vvvvvyzvwi_required) { updateFieldRequired('sql',0); jQuery('#jform_sql').prop('required','required'); jQuery('#jform_sql').attr('aria-required',true); jQuery('#jform_sql').addClass('required'); - jform_vvvvvyhvwf_required = false; + jform_vvvvvyzvwi_required = false; } } else { jQuery('#jform_sql').closest('.control-group').hide(); // remove required attribute from sql field - if (!jform_vvvvvyhvwf_required) + if (!jform_vvvvvyzvwi_required) { updateFieldRequired('sql',1); jQuery('#jform_sql').removeAttr('required'); jQuery('#jform_sql').removeAttr('aria-required'); jQuery('#jform_sql').removeClass('required'); - jform_vvvvvyhvwf_required = true; + jform_vvvvvyzvwi_required = true; } } } -// the vvvvvyj function -function vvvvvyj(source_vvvvvyj,add_sql_vvvvvyj) +// the vvvvvzb function +function vvvvvzb(source_vvvvvzb,add_sql_vvvvvzb) { // set the function logic - if (source_vvvvvyj == 1 && add_sql_vvvvvyj == 1) + if (source_vvvvvzb == 1 && add_sql_vvvvvzb == 1) { jQuery('#jform_addtables-lbl').closest('.control-group').show(); } @@ -565,165 +565,165 @@ function vvvvvyj(source_vvvvvyj,add_sql_vvvvvyj) } } -// the vvvvvyl function -function vvvvvyl(add_custom_import_vvvvvyl) +// the vvvvvzd function +function vvvvvzd(add_custom_import_vvvvvzd) { // set the function logic - if (add_custom_import_vvvvvyl == 1) + if (add_custom_import_vvvvvzd == 1) { jQuery('#jform_html_import_view').closest('.control-group').show(); // add required attribute to html_import_view field - if (jform_vvvvvylvwg_required) + if (jform_vvvvvzdvwj_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_vvvvvylvwg_required = false; + jform_vvvvvzdvwj_required = false; } jQuery('.note_advanced_import').closest('.control-group').show(); jQuery('#jform_php_import_display').closest('.control-group').show(); // add required attribute to php_import_display field - if (jform_vvvvvylvwh_required) + if (jform_vvvvvzdvwk_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_vvvvvylvwh_required = false; + jform_vvvvvzdvwk_required = false; } jQuery('#jform_php_import_ext').closest('.control-group').show(); // add required attribute to php_import_ext field - if (jform_vvvvvylvwi_required) + if (jform_vvvvvzdvwl_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_vvvvvylvwi_required = false; + jform_vvvvvzdvwl_required = false; } jQuery('#jform_php_import_headers').closest('.control-group').show(); // add required attribute to php_import_headers field - if (jform_vvvvvylvwj_required) + if (jform_vvvvvzdvwm_required) { updateFieldRequired('php_import_headers',0); jQuery('#jform_php_import_headers').prop('required','required'); jQuery('#jform_php_import_headers').attr('aria-required',true); jQuery('#jform_php_import_headers').addClass('required'); - jform_vvvvvylvwj_required = false; + jform_vvvvvzdvwm_required = false; } jQuery('#jform_php_import').closest('.control-group').show(); // add required attribute to php_import field - if (jform_vvvvvylvwk_required) + if (jform_vvvvvzdvwn_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_vvvvvylvwk_required = false; + jform_vvvvvzdvwn_required = false; } jQuery('#jform_php_import_save').closest('.control-group').show(); // add required attribute to php_import_save field - if (jform_vvvvvylvwl_required) + if (jform_vvvvvzdvwo_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_vvvvvylvwl_required = false; + jform_vvvvvzdvwo_required = false; } jQuery('#jform_php_import_setdata').closest('.control-group').show(); // add required attribute to php_import_setdata field - if (jform_vvvvvylvwm_required) + if (jform_vvvvvzdvwp_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_vvvvvylvwm_required = false; + jform_vvvvvzdvwp_required = false; } } else { jQuery('#jform_html_import_view').closest('.control-group').hide(); // remove required attribute from html_import_view field - if (!jform_vvvvvylvwg_required) + if (!jform_vvvvvzdvwj_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_vvvvvylvwg_required = true; + jform_vvvvvzdvwj_required = true; } jQuery('.note_advanced_import').closest('.control-group').hide(); jQuery('#jform_php_import_display').closest('.control-group').hide(); // remove required attribute from php_import_display field - if (!jform_vvvvvylvwh_required) + if (!jform_vvvvvzdvwk_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_vvvvvylvwh_required = true; + jform_vvvvvzdvwk_required = true; } jQuery('#jform_php_import_ext').closest('.control-group').hide(); // remove required attribute from php_import_ext field - if (!jform_vvvvvylvwi_required) + if (!jform_vvvvvzdvwl_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_vvvvvylvwi_required = true; + jform_vvvvvzdvwl_required = true; } jQuery('#jform_php_import_headers').closest('.control-group').hide(); // remove required attribute from php_import_headers field - if (!jform_vvvvvylvwj_required) + if (!jform_vvvvvzdvwm_required) { updateFieldRequired('php_import_headers',1); jQuery('#jform_php_import_headers').removeAttr('required'); jQuery('#jform_php_import_headers').removeAttr('aria-required'); jQuery('#jform_php_import_headers').removeClass('required'); - jform_vvvvvylvwj_required = true; + jform_vvvvvzdvwm_required = true; } jQuery('#jform_php_import').closest('.control-group').hide(); // remove required attribute from php_import field - if (!jform_vvvvvylvwk_required) + if (!jform_vvvvvzdvwn_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_vvvvvylvwk_required = true; + jform_vvvvvzdvwn_required = true; } jQuery('#jform_php_import_save').closest('.control-group').hide(); // remove required attribute from php_import_save field - if (!jform_vvvvvylvwl_required) + if (!jform_vvvvvzdvwo_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_vvvvvylvwl_required = true; + jform_vvvvvzdvwo_required = true; } jQuery('#jform_php_import_setdata').closest('.control-group').hide(); // remove required attribute from php_import_setdata field - if (!jform_vvvvvylvwm_required) + if (!jform_vvvvvzdvwp_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_vvvvvylvwm_required = true; + jform_vvvvvzdvwp_required = true; } } } -// the vvvvvym function -function vvvvvym(add_custom_import_vvvvvym) +// the vvvvvze function +function vvvvvze(add_custom_import_vvvvvze) { // set the function logic - if (add_custom_import_vvvvvym == 0) + if (add_custom_import_vvvvvze == 0) { jQuery('.note_beginner_import').closest('.control-group').show(); } @@ -733,11 +733,11 @@ function vvvvvym(add_custom_import_vvvvvym) } } -// the vvvvvyn function -function vvvvvyn(add_custom_button_vvvvvyn) +// the vvvvvzf function +function vvvvvzf(add_custom_button_vvvvvzf) { // set the function logic - if (add_custom_button_vvvvvyn == 1) + if (add_custom_button_vvvvvzf == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller-lbl').closest('.control-group').show(); diff --git a/admin/models/forms/class_method.js b/admin/models/forms/class_method.js index 93c07c6a6..e59f29908 100644 --- a/admin/models/forms/class_method.js +++ b/admin/models/forms/class_method.js @@ -9,29 +9,29 @@ */ // Some Global Values -jform_vvvvwarvxf_required = false; +jform_vvvvwbjvxi_required = false; // Initial Script jQuery(document).ready(function() { - var extension_type_vvvvwar = jQuery("#jform_extension_type").val(); - vvvvwar(extension_type_vvvvwar); + var extension_type_vvvvwbj = jQuery("#jform_extension_type").val(); + vvvvwbj(extension_type_vvvvwbj); }); -// the vvvvwar function -function vvvvwar(extension_type_vvvvwar) +// the vvvvwbj function +function vvvvwbj(extension_type_vvvvwbj) { - if (isSet(extension_type_vvvvwar) && extension_type_vvvvwar.constructor !== Array) + if (isSet(extension_type_vvvvwbj) && extension_type_vvvvwbj.constructor !== Array) { - var temp_vvvvwar = extension_type_vvvvwar; - var extension_type_vvvvwar = []; - extension_type_vvvvwar.push(temp_vvvvwar); + var temp_vvvvwbj = extension_type_vvvvwbj; + var extension_type_vvvvwbj = []; + extension_type_vvvvwbj.push(temp_vvvvwbj); } - else if (!isSet(extension_type_vvvvwar)) + else if (!isSet(extension_type_vvvvwbj)) { - var extension_type_vvvvwar = []; + var extension_type_vvvvwbj = []; } - var extension_type = extension_type_vvvvwar.some(extension_type_vvvvwar_SomeFunc); + var extension_type = extension_type_vvvvwbj.some(extension_type_vvvvwbj_SomeFunc); // set this function logic @@ -39,35 +39,35 @@ function vvvvwar(extension_type_vvvvwar) { jQuery('#jform_joomla_plugin_group').closest('.control-group').show(); // add required attribute to joomla_plugin_group field - if (jform_vvvvwarvxf_required) + if (jform_vvvvwbjvxi_required) { updateFieldRequired('joomla_plugin_group',0); jQuery('#jform_joomla_plugin_group').prop('required','required'); jQuery('#jform_joomla_plugin_group').attr('aria-required',true); jQuery('#jform_joomla_plugin_group').addClass('required'); - jform_vvvvwarvxf_required = false; + jform_vvvvwbjvxi_required = false; } } else { jQuery('#jform_joomla_plugin_group').closest('.control-group').hide(); // remove required attribute from joomla_plugin_group field - if (!jform_vvvvwarvxf_required) + if (!jform_vvvvwbjvxi_required) { updateFieldRequired('joomla_plugin_group',1); jQuery('#jform_joomla_plugin_group').removeAttr('required'); jQuery('#jform_joomla_plugin_group').removeAttr('aria-required'); jQuery('#jform_joomla_plugin_group').removeClass('required'); - jform_vvvvwarvxf_required = true; + jform_vvvvwbjvxi_required = true; } } } -// the vvvvwar Some function -function extension_type_vvvvwar_SomeFunc(extension_type_vvvvwar) +// the vvvvwbj Some function +function extension_type_vvvvwbj_SomeFunc(extension_type_vvvvwbj) { // set the function logic - if (extension_type_vvvvwar == 'plugins' || extension_type_vvvvwar == 'plugin') + if (extension_type_vvvvwbj == 'plugins' || extension_type_vvvvwbj == 'plugin') { return true; } diff --git a/admin/models/forms/class_property.js b/admin/models/forms/class_property.js index 71cc40a9b..8b64c5d1a 100644 --- a/admin/models/forms/class_property.js +++ b/admin/models/forms/class_property.js @@ -9,29 +9,29 @@ */ // Some Global Values -jform_vvvvwaqvxe_required = false; +jform_vvvvwbivxh_required = false; // Initial Script jQuery(document).ready(function() { - var extension_type_vvvvwaq = jQuery("#jform_extension_type").val(); - vvvvwaq(extension_type_vvvvwaq); + var extension_type_vvvvwbi = jQuery("#jform_extension_type").val(); + vvvvwbi(extension_type_vvvvwbi); }); -// the vvvvwaq function -function vvvvwaq(extension_type_vvvvwaq) +// the vvvvwbi function +function vvvvwbi(extension_type_vvvvwbi) { - if (isSet(extension_type_vvvvwaq) && extension_type_vvvvwaq.constructor !== Array) + if (isSet(extension_type_vvvvwbi) && extension_type_vvvvwbi.constructor !== Array) { - var temp_vvvvwaq = extension_type_vvvvwaq; - var extension_type_vvvvwaq = []; - extension_type_vvvvwaq.push(temp_vvvvwaq); + var temp_vvvvwbi = extension_type_vvvvwbi; + var extension_type_vvvvwbi = []; + extension_type_vvvvwbi.push(temp_vvvvwbi); } - else if (!isSet(extension_type_vvvvwaq)) + else if (!isSet(extension_type_vvvvwbi)) { - var extension_type_vvvvwaq = []; + var extension_type_vvvvwbi = []; } - var extension_type = extension_type_vvvvwaq.some(extension_type_vvvvwaq_SomeFunc); + var extension_type = extension_type_vvvvwbi.some(extension_type_vvvvwbi_SomeFunc); // set this function logic @@ -39,35 +39,35 @@ function vvvvwaq(extension_type_vvvvwaq) { jQuery('#jform_joomla_plugin_group').closest('.control-group').show(); // add required attribute to joomla_plugin_group field - if (jform_vvvvwaqvxe_required) + if (jform_vvvvwbivxh_required) { updateFieldRequired('joomla_plugin_group',0); jQuery('#jform_joomla_plugin_group').prop('required','required'); jQuery('#jform_joomla_plugin_group').attr('aria-required',true); jQuery('#jform_joomla_plugin_group').addClass('required'); - jform_vvvvwaqvxe_required = false; + jform_vvvvwbivxh_required = false; } } else { jQuery('#jform_joomla_plugin_group').closest('.control-group').hide(); // remove required attribute from joomla_plugin_group field - if (!jform_vvvvwaqvxe_required) + if (!jform_vvvvwbivxh_required) { updateFieldRequired('joomla_plugin_group',1); jQuery('#jform_joomla_plugin_group').removeAttr('required'); jQuery('#jform_joomla_plugin_group').removeAttr('aria-required'); jQuery('#jform_joomla_plugin_group').removeClass('required'); - jform_vvvvwaqvxe_required = true; + jform_vvvvwbivxh_required = true; } } } -// the vvvvwaq Some function -function extension_type_vvvvwaq_SomeFunc(extension_type_vvvvwaq) +// the vvvvwbi Some function +function extension_type_vvvvwbi_SomeFunc(extension_type_vvvvwbi) { // set the function logic - if (extension_type_vvvvwaq == 'plugins' || extension_type_vvvvwaq == 'plugin') + if (extension_type_vvvvwbi == 'plugins' || extension_type_vvvvwbi == 'plugin') { return true; } diff --git a/admin/models/forms/custom_admin_view.js b/admin/models/forms/custom_admin_view.js index ca422ca4e..263c097ae 100644 --- a/admin/models/forms/custom_admin_view.js +++ b/admin/models/forms/custom_admin_view.js @@ -11,42 +11,42 @@ // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvvyo = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvvyo(add_php_view_vvvvvyo); + var add_php_view_vvvvvzg = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvvzg(add_php_view_vvvvvzg); - var add_php_jview_display_vvvvvyp = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); - vvvvvyp(add_php_jview_display_vvvvvyp); + var add_php_jview_display_vvvvvzh = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); + vvvvvzh(add_php_jview_display_vvvvvzh); - var add_php_jview_vvvvvyq = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); - vvvvvyq(add_php_jview_vvvvvyq); + var add_php_jview_vvvvvzi = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); + vvvvvzi(add_php_jview_vvvvvzi); - var add_php_document_vvvvvyr = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvyr(add_php_document_vvvvvyr); + var add_php_document_vvvvvzj = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvzj(add_php_document_vvvvvzj); - var add_css_document_vvvvvys = jQuery("#jform_add_css_document input[type='radio']:checked").val(); - vvvvvys(add_css_document_vvvvvys); + var add_css_document_vvvvvzk = jQuery("#jform_add_css_document input[type='radio']:checked").val(); + vvvvvzk(add_css_document_vvvvvzk); - var add_javascript_file_vvvvvyt = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); - vvvvvyt(add_javascript_file_vvvvvyt); + var add_javascript_file_vvvvvzl = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); + vvvvvzl(add_javascript_file_vvvvvzl); - var add_js_document_vvvvvyu = jQuery("#jform_add_js_document input[type='radio']:checked").val(); - vvvvvyu(add_js_document_vvvvvyu); + var add_js_document_vvvvvzm = jQuery("#jform_add_js_document input[type='radio']:checked").val(); + vvvvvzm(add_js_document_vvvvvzm); - var add_custom_button_vvvvvyv = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvyv(add_custom_button_vvvvvyv); + var add_custom_button_vvvvvzn = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvzn(add_custom_button_vvvvvzn); - var add_css_vvvvvyw = jQuery("#jform_add_css input[type='radio']:checked").val(); - vvvvvyw(add_css_vvvvvyw); + var add_css_vvvvvzo = jQuery("#jform_add_css input[type='radio']:checked").val(); + vvvvvzo(add_css_vvvvvzo); - var add_php_ajax_vvvvvyx = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvyx(add_php_ajax_vvvvvyx); + var add_php_ajax_vvvvvzp = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvzp(add_php_ajax_vvvvvzp); }); -// the vvvvvyo function -function vvvvvyo(add_php_view_vvvvvyo) +// the vvvvvzg function +function vvvvvzg(add_php_view_vvvvvzg) { // set the function logic - if (add_php_view_vvvvvyo == 1) + if (add_php_view_vvvvvzg == 1) { jQuery('#jform_php_view-lbl').closest('.control-group').show(); } @@ -56,11 +56,11 @@ function vvvvvyo(add_php_view_vvvvvyo) } } -// the vvvvvyp function -function vvvvvyp(add_php_jview_display_vvvvvyp) +// the vvvvvzh function +function vvvvvzh(add_php_jview_display_vvvvvzh) { // set the function logic - if (add_php_jview_display_vvvvvyp == 1) + if (add_php_jview_display_vvvvvzh == 1) { jQuery('#jform_php_jview_display-lbl').closest('.control-group').show(); } @@ -70,11 +70,11 @@ function vvvvvyp(add_php_jview_display_vvvvvyp) } } -// the vvvvvyq function -function vvvvvyq(add_php_jview_vvvvvyq) +// the vvvvvzi function +function vvvvvzi(add_php_jview_vvvvvzi) { // set the function logic - if (add_php_jview_vvvvvyq == 1) + if (add_php_jview_vvvvvzi == 1) { jQuery('#jform_php_jview-lbl').closest('.control-group').show(); } @@ -84,11 +84,11 @@ function vvvvvyq(add_php_jview_vvvvvyq) } } -// the vvvvvyr function -function vvvvvyr(add_php_document_vvvvvyr) +// the vvvvvzj function +function vvvvvzj(add_php_document_vvvvvzj) { // set the function logic - if (add_php_document_vvvvvyr == 1) + if (add_php_document_vvvvvzj == 1) { jQuery('#jform_php_document-lbl').closest('.control-group').show(); } @@ -98,11 +98,11 @@ function vvvvvyr(add_php_document_vvvvvyr) } } -// the vvvvvys function -function vvvvvys(add_css_document_vvvvvys) +// the vvvvvzk function +function vvvvvzk(add_css_document_vvvvvzk) { // set the function logic - if (add_css_document_vvvvvys == 1) + if (add_css_document_vvvvvzk == 1) { jQuery('#jform_css_document-lbl').closest('.control-group').show(); } @@ -112,11 +112,11 @@ function vvvvvys(add_css_document_vvvvvys) } } -// the vvvvvyt function -function vvvvvyt(add_javascript_file_vvvvvyt) +// the vvvvvzl function +function vvvvvzl(add_javascript_file_vvvvvzl) { // set the function logic - if (add_javascript_file_vvvvvyt == 1) + if (add_javascript_file_vvvvvzl == 1) { jQuery('#jform_javascript_file-lbl').closest('.control-group').show(); } @@ -126,11 +126,11 @@ function vvvvvyt(add_javascript_file_vvvvvyt) } } -// the vvvvvyu function -function vvvvvyu(add_js_document_vvvvvyu) +// the vvvvvzm function +function vvvvvzm(add_js_document_vvvvvzm) { // set the function logic - if (add_js_document_vvvvvyu == 1) + if (add_js_document_vvvvvzm == 1) { jQuery('#jform_js_document-lbl').closest('.control-group').show(); } @@ -140,11 +140,11 @@ function vvvvvyu(add_js_document_vvvvvyu) } } -// the vvvvvyv function -function vvvvvyv(add_custom_button_vvvvvyv) +// the vvvvvzn function +function vvvvvzn(add_custom_button_vvvvvzn) { // set the function logic - if (add_custom_button_vvvvvyv == 1) + if (add_custom_button_vvvvvzn == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller-lbl').closest('.control-group').show(); @@ -158,11 +158,11 @@ function vvvvvyv(add_custom_button_vvvvvyv) } } -// the vvvvvyw function -function vvvvvyw(add_css_vvvvvyw) +// the vvvvvzo function +function vvvvvzo(add_css_vvvvvzo) { // set the function logic - if (add_css_vvvvvyw == 1) + if (add_css_vvvvvzo == 1) { jQuery('#jform_css-lbl').closest('.control-group').show(); } @@ -172,11 +172,11 @@ function vvvvvyw(add_css_vvvvvyw) } } -// the vvvvvyx function -function vvvvvyx(add_php_ajax_vvvvvyx) +// the vvvvvzp function +function vvvvvzp(add_php_ajax_vvvvvzp) { // set the function logic - if (add_php_ajax_vvvvvyx == 1) + if (add_php_ajax_vvvvvzp == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show(); diff --git a/admin/models/forms/custom_code.js b/admin/models/forms/custom_code.js index a2c1d6ace..eb40aac21 100644 --- a/admin/models/forms/custom_code.js +++ b/admin/models/forms/custom_code.js @@ -9,44 +9,44 @@ */ // Some Global Values -jform_vvvvwamvxa_required = false; -jform_vvvvwanvxb_required = false; -jform_vvvvwanvxc_required = false; -jform_vvvvwanvxd_required = false; +jform_vvvvwbevxd_required = false; +jform_vvvvwbfvxe_required = false; +jform_vvvvwbfvxf_required = false; +jform_vvvvwbfvxg_required = false; // Initial Script jQuery(document).ready(function() { - var target_vvvvwam = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwam(target_vvvvwam); + var target_vvvvwbe = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwbe(target_vvvvwbe); - var target_vvvvwan = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwan(target_vvvvwan); + var target_vvvvwbf = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwbf(target_vvvvwbf); - var target_vvvvwao = jQuery("#jform_target input[type='radio']:checked").val(); - var type_vvvvwao = jQuery("#jform_type input[type='radio']:checked").val(); - vvvvwao(target_vvvvwao,type_vvvvwao); + var target_vvvvwbg = jQuery("#jform_target input[type='radio']:checked").val(); + var type_vvvvwbg = jQuery("#jform_type input[type='radio']:checked").val(); + vvvvwbg(target_vvvvwbg,type_vvvvwbg); - var type_vvvvwap = jQuery("#jform_type input[type='radio']:checked").val(); - var target_vvvvwap = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwap(type_vvvvwap,target_vvvvwap); + var type_vvvvwbh = jQuery("#jform_type input[type='radio']:checked").val(); + var target_vvvvwbh = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwbh(type_vvvvwbh,target_vvvvwbh); }); -// the vvvvwam function -function vvvvwam(target_vvvvwam) +// the vvvvwbe function +function vvvvwbe(target_vvvvwbe) { // set the function logic - if (target_vvvvwam == 2) + if (target_vvvvwbe == 2) { jQuery('#jform_function_name').closest('.control-group').show(); // add required attribute to function_name field - if (jform_vvvvwamvxa_required) + if (jform_vvvvwbevxd_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_vvvvwamvxa_required = false; + jform_vvvvwbevxd_required = false; } jQuery('.note_jcb_placeholder').closest('.control-group').show(); jQuery('#jform_system_name').closest('.control-group').show(); @@ -55,102 +55,102 @@ function vvvvwam(target_vvvvwam) { jQuery('#jform_function_name').closest('.control-group').hide(); // remove required attribute from function_name field - if (!jform_vvvvwamvxa_required) + if (!jform_vvvvwbevxd_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_vvvvwamvxa_required = true; + jform_vvvvwbevxd_required = true; } jQuery('.note_jcb_placeholder').closest('.control-group').hide(); jQuery('#jform_system_name').closest('.control-group').hide(); } } -// the vvvvwan function -function vvvvwan(target_vvvvwan) +// the vvvvwbf function +function vvvvwbf(target_vvvvwbf) { // set the function logic - if (target_vvvvwan == 1) + if (target_vvvvwbf == 1) { jQuery('#jform_component').closest('.control-group').show(); // add required attribute to component field - if (jform_vvvvwanvxb_required) + if (jform_vvvvwbfvxe_required) { updateFieldRequired('component',0); jQuery('#jform_component').prop('required','required'); jQuery('#jform_component').attr('aria-required',true); jQuery('#jform_component').addClass('required'); - jform_vvvvwanvxb_required = false; + jform_vvvvwbfvxe_required = false; } jQuery('#jform_path').closest('.control-group').show(); // add required attribute to path field - if (jform_vvvvwanvxc_required) + if (jform_vvvvwbfvxf_required) { updateFieldRequired('path',0); jQuery('#jform_path').prop('required','required'); jQuery('#jform_path').attr('aria-required',true); jQuery('#jform_path').addClass('required'); - jform_vvvvwanvxc_required = false; + jform_vvvvwbfvxf_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(); // add required attribute to type field - if (jform_vvvvwanvxd_required) + if (jform_vvvvwbfvxg_required) { updateFieldRequired('type',0); jQuery('#jform_type').prop('required','required'); jQuery('#jform_type').attr('aria-required',true); jQuery('#jform_type').addClass('required'); - jform_vvvvwanvxd_required = false; + jform_vvvvwbfvxg_required = false; } } else { jQuery('#jform_component').closest('.control-group').hide(); // remove required attribute from component field - if (!jform_vvvvwanvxb_required) + if (!jform_vvvvwbfvxe_required) { updateFieldRequired('component',1); jQuery('#jform_component').removeAttr('required'); jQuery('#jform_component').removeAttr('aria-required'); jQuery('#jform_component').removeClass('required'); - jform_vvvvwanvxb_required = true; + jform_vvvvwbfvxe_required = true; } jQuery('#jform_path').closest('.control-group').hide(); // remove required attribute from path field - if (!jform_vvvvwanvxc_required) + if (!jform_vvvvwbfvxf_required) { updateFieldRequired('path',1); jQuery('#jform_path').removeAttr('required'); jQuery('#jform_path').removeAttr('aria-required'); jQuery('#jform_path').removeClass('required'); - jform_vvvvwanvxc_required = true; + jform_vvvvwbfvxf_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(); // remove required attribute from type field - if (!jform_vvvvwanvxd_required) + if (!jform_vvvvwbfvxg_required) { updateFieldRequired('type',1); jQuery('#jform_type').removeAttr('required'); jQuery('#jform_type').removeAttr('aria-required'); jQuery('#jform_type').removeClass('required'); - jform_vvvvwanvxd_required = true; + jform_vvvvwbfvxg_required = true; } } } -// the vvvvwao function -function vvvvwao(target_vvvvwao,type_vvvvwao) +// the vvvvwbg function +function vvvvwbg(target_vvvvwbg,type_vvvvwbg) { // set the function logic - if (target_vvvvwao == 1 && type_vvvvwao == 1) + if (target_vvvvwbg == 1 && type_vvvvwbg == 1) { jQuery('#jform_hashendtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); @@ -162,11 +162,11 @@ function vvvvwao(target_vvvvwao,type_vvvvwao) } } -// the vvvvwap function -function vvvvwap(type_vvvvwap,target_vvvvwap) +// the vvvvwbh function +function vvvvwbh(type_vvvvwbh,target_vvvvwbh) { // set the function logic - if (type_vvvvwap == 1 && target_vvvvwap == 1) + if (type_vvvvwbh == 1 && target_vvvvwbh == 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 afb2548da..f71fc3e64 100644 --- a/admin/models/forms/dynamic_get.js +++ b/admin/models/forms/dynamic_get.js @@ -9,112 +9,112 @@ */ // Some Global Values -jform_vvvvvzlvwn_required = false; -jform_vvvvvznvwo_required = false; -jform_vvvvvzovwp_required = false; -jform_vvvvvzpvwq_required = false; -jform_vvvvvzqvwr_required = false; -jform_vvvvwabvws_required = false; -jform_vvvvwabvwt_required = false; -jform_vvvvwagvwu_required = false; -jform_vvvvwagvwv_required = false; -jform_vvvvwagvww_required = false; -jform_vvvvwahvwx_required = false; -jform_vvvvwaivwy_required = false; -jform_vvvvwajvwz_required = false; +jform_vvvvwadvwq_required = false; +jform_vvvvwafvwr_required = false; +jform_vvvvwagvws_required = false; +jform_vvvvwahvwt_required = false; +jform_vvvvwaivwu_required = false; +jform_vvvvwatvwv_required = false; +jform_vvvvwatvww_required = false; +jform_vvvvwayvwx_required = false; +jform_vvvvwayvwy_required = false; +jform_vvvvwayvwz_required = false; +jform_vvvvwazvxa_required = false; +jform_vvvvwbavxb_required = false; +jform_vvvvwbbvxc_required = false; // Initial Script jQuery(document).ready(function() { - var gettype_vvvvvzl = jQuery("#jform_gettype").val(); - vvvvvzl(gettype_vvvvvzl); - - var main_source_vvvvvzm = jQuery("#jform_main_source").val(); - vvvvvzm(main_source_vvvvvzm); - - var main_source_vvvvvzn = jQuery("#jform_main_source").val(); - vvvvvzn(main_source_vvvvvzn); - - var main_source_vvvvvzo = jQuery("#jform_main_source").val(); - vvvvvzo(main_source_vvvvvzo); - - var main_source_vvvvvzp = jQuery("#jform_main_source").val(); - vvvvvzp(main_source_vvvvvzp); - - var main_source_vvvvvzq = jQuery("#jform_main_source").val(); - vvvvvzq(main_source_vvvvvzq); - - var addcalculation_vvvvvzr = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - vvvvvzr(addcalculation_vvvvvzr); - - var addcalculation_vvvvvzs = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - var gettype_vvvvvzs = jQuery("#jform_gettype").val(); - vvvvvzs(addcalculation_vvvvvzs,gettype_vvvvvzs); - - var addcalculation_vvvvvzt = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - var gettype_vvvvvzt = jQuery("#jform_gettype").val(); - vvvvvzt(addcalculation_vvvvvzt,gettype_vvvvvzt); - - var main_source_vvvvvzw = jQuery("#jform_main_source").val(); - vvvvvzw(main_source_vvvvvzw); - - var main_source_vvvvvzx = jQuery("#jform_main_source").val(); - vvvvvzx(main_source_vvvvvzx); - - var add_php_before_getitem_vvvvvzy = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); - var gettype_vvvvvzy = jQuery("#jform_gettype").val(); - vvvvvzy(add_php_before_getitem_vvvvvzy,gettype_vvvvvzy); - - var add_php_after_getitem_vvvvvzz = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); - var gettype_vvvvvzz = jQuery("#jform_gettype").val(); - vvvvvzz(add_php_after_getitem_vvvvvzz,gettype_vvvvvzz); - - var gettype_vvvvwab = jQuery("#jform_gettype").val(); - vvvvwab(gettype_vvvvwab); - - var add_php_getlistquery_vvvvwac = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); - var gettype_vvvvwac = jQuery("#jform_gettype").val(); - vvvvwac(add_php_getlistquery_vvvvwac,gettype_vvvvwac); - - var add_php_before_getitems_vvvvwad = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); var gettype_vvvvwad = jQuery("#jform_gettype").val(); - vvvvwad(add_php_before_getitems_vvvvwad,gettype_vvvvwad); + vvvvwad(gettype_vvvvwad); - var add_php_after_getitems_vvvvwae = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); - var gettype_vvvvwae = jQuery("#jform_gettype").val(); - vvvvwae(add_php_after_getitems_vvvvwae,gettype_vvvvwae); + var main_source_vvvvwae = jQuery("#jform_main_source").val(); + vvvvwae(main_source_vvvvwae); - var gettype_vvvvwag = jQuery("#jform_gettype").val(); - vvvvwag(gettype_vvvvwag); + var main_source_vvvvwaf = jQuery("#jform_main_source").val(); + vvvvwaf(main_source_vvvvwaf); - var gettype_vvvvwah = jQuery("#jform_gettype").val(); - vvvvwah(gettype_vvvvwah); + var main_source_vvvvwag = jQuery("#jform_main_source").val(); + vvvvwag(main_source_vvvvwag); - var gettype_vvvvwai = jQuery("#jform_gettype").val(); - vvvvwai(gettype_vvvvwai); + var main_source_vvvvwah = jQuery("#jform_main_source").val(); + vvvvwah(main_source_vvvvwah); - var gettype_vvvvwaj = jQuery("#jform_gettype").val(); - var add_php_router_parse_vvvvwaj = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); - vvvvwaj(gettype_vvvvwaj,add_php_router_parse_vvvvwaj); + var main_source_vvvvwai = jQuery("#jform_main_source").val(); + vvvvwai(main_source_vvvvwai); + var addcalculation_vvvvwaj = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + vvvvwaj(addcalculation_vvvvwaj); + + var addcalculation_vvvvwak = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + var gettype_vvvvwak = jQuery("#jform_gettype").val(); + vvvvwak(addcalculation_vvvvwak,gettype_vvvvwak); + + var addcalculation_vvvvwal = jQuery("#jform_addcalculation input[type='radio']:checked").val(); var gettype_vvvvwal = jQuery("#jform_gettype").val(); - vvvvwal(gettype_vvvvwal); + vvvvwal(addcalculation_vvvvwal,gettype_vvvvwal); + + var main_source_vvvvwao = jQuery("#jform_main_source").val(); + vvvvwao(main_source_vvvvwao); + + var main_source_vvvvwap = jQuery("#jform_main_source").val(); + vvvvwap(main_source_vvvvwap); + + var add_php_before_getitem_vvvvwaq = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); + var gettype_vvvvwaq = jQuery("#jform_gettype").val(); + vvvvwaq(add_php_before_getitem_vvvvwaq,gettype_vvvvwaq); + + var add_php_after_getitem_vvvvwar = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); + var gettype_vvvvwar = jQuery("#jform_gettype").val(); + vvvvwar(add_php_after_getitem_vvvvwar,gettype_vvvvwar); + + var gettype_vvvvwat = jQuery("#jform_gettype").val(); + vvvvwat(gettype_vvvvwat); + + var add_php_getlistquery_vvvvwau = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); + var gettype_vvvvwau = jQuery("#jform_gettype").val(); + vvvvwau(add_php_getlistquery_vvvvwau,gettype_vvvvwau); + + var add_php_before_getitems_vvvvwav = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); + var gettype_vvvvwav = jQuery("#jform_gettype").val(); + vvvvwav(add_php_before_getitems_vvvvwav,gettype_vvvvwav); + + var add_php_after_getitems_vvvvwaw = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); + var gettype_vvvvwaw = jQuery("#jform_gettype").val(); + vvvvwaw(add_php_after_getitems_vvvvwaw,gettype_vvvvwaw); + + var gettype_vvvvway = jQuery("#jform_gettype").val(); + vvvvway(gettype_vvvvway); + + var gettype_vvvvwaz = jQuery("#jform_gettype").val(); + vvvvwaz(gettype_vvvvwaz); + + var gettype_vvvvwba = jQuery("#jform_gettype").val(); + vvvvwba(gettype_vvvvwba); + + var gettype_vvvvwbb = jQuery("#jform_gettype").val(); + var add_php_router_parse_vvvvwbb = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); + vvvvwbb(gettype_vvvvwbb,add_php_router_parse_vvvvwbb); + + var gettype_vvvvwbd = jQuery("#jform_gettype").val(); + vvvvwbd(gettype_vvvvwbd); }); -// the vvvvvzl function -function vvvvvzl(gettype_vvvvvzl) +// the vvvvwad function +function vvvvwad(gettype_vvvvwad) { - if (isSet(gettype_vvvvvzl) && gettype_vvvvvzl.constructor !== Array) + if (isSet(gettype_vvvvwad) && gettype_vvvvwad.constructor !== Array) { - var temp_vvvvvzl = gettype_vvvvvzl; - var gettype_vvvvvzl = []; - gettype_vvvvvzl.push(temp_vvvvvzl); + var temp_vvvvwad = gettype_vvvvwad; + var gettype_vvvvwad = []; + gettype_vvvvwad.push(temp_vvvvwad); } - else if (!isSet(gettype_vvvvvzl)) + else if (!isSet(gettype_vvvvwad)) { - var gettype_vvvvvzl = []; + var gettype_vvvvwad = []; } - var gettype = gettype_vvvvvzl.some(gettype_vvvvvzl_SomeFunc); + var gettype = gettype_vvvvwad.some(gettype_vvvvwad_SomeFunc); // set this function logic @@ -122,55 +122,55 @@ function vvvvvzl(gettype_vvvvvzl) { jQuery('#jform_getcustom').closest('.control-group').show(); // add required attribute to getcustom field - if (jform_vvvvvzlvwn_required) + if (jform_vvvvwadvwq_required) { updateFieldRequired('getcustom',0); jQuery('#jform_getcustom').prop('required','required'); jQuery('#jform_getcustom').attr('aria-required',true); jQuery('#jform_getcustom').addClass('required'); - jform_vvvvvzlvwn_required = false; + jform_vvvvwadvwq_required = false; } } else { jQuery('#jform_getcustom').closest('.control-group').hide(); // remove required attribute from getcustom field - if (!jform_vvvvvzlvwn_required) + if (!jform_vvvvwadvwq_required) { updateFieldRequired('getcustom',1); jQuery('#jform_getcustom').removeAttr('required'); jQuery('#jform_getcustom').removeAttr('aria-required'); jQuery('#jform_getcustom').removeClass('required'); - jform_vvvvvzlvwn_required = true; + jform_vvvvwadvwq_required = true; } } } -// the vvvvvzl Some function -function gettype_vvvvvzl_SomeFunc(gettype_vvvvvzl) +// the vvvvwad Some function +function gettype_vvvvwad_SomeFunc(gettype_vvvvwad) { // set the function logic - if (gettype_vvvvvzl == 3 || gettype_vvvvvzl == 4) + if (gettype_vvvvwad == 3 || gettype_vvvvwad == 4) { return true; } return false; } -// the vvvvvzm function -function vvvvvzm(main_source_vvvvvzm) +// the vvvvwae function +function vvvvwae(main_source_vvvvwae) { - if (isSet(main_source_vvvvvzm) && main_source_vvvvvzm.constructor !== Array) + if (isSet(main_source_vvvvwae) && main_source_vvvvwae.constructor !== Array) { - var temp_vvvvvzm = main_source_vvvvvzm; - var main_source_vvvvvzm = []; - main_source_vvvvvzm.push(temp_vvvvvzm); + var temp_vvvvwae = main_source_vvvvwae; + var main_source_vvvvwae = []; + main_source_vvvvwae.push(temp_vvvvwae); } - else if (!isSet(main_source_vvvvvzm)) + else if (!isSet(main_source_vvvvwae)) { - var main_source_vvvvvzm = []; + var main_source_vvvvwae = []; } - var main_source = main_source_vvvvvzm.some(main_source_vvvvvzm_SomeFunc); + var main_source = main_source_vvvvwae.some(main_source_vvvvwae_SomeFunc); // set this function logic @@ -184,31 +184,31 @@ function vvvvvzm(main_source_vvvvvzm) } } -// the vvvvvzm Some function -function main_source_vvvvvzm_SomeFunc(main_source_vvvvvzm) +// the vvvvwae Some function +function main_source_vvvvwae_SomeFunc(main_source_vvvvwae) { // set the function logic - if (main_source_vvvvvzm == 1 || main_source_vvvvvzm == 2) + if (main_source_vvvvwae == 1 || main_source_vvvvwae == 2) { return true; } return false; } -// the vvvvvzn function -function vvvvvzn(main_source_vvvvvzn) +// the vvvvwaf function +function vvvvwaf(main_source_vvvvwaf) { - if (isSet(main_source_vvvvvzn) && main_source_vvvvvzn.constructor !== Array) + if (isSet(main_source_vvvvwaf) && main_source_vvvvwaf.constructor !== Array) { - var temp_vvvvvzn = main_source_vvvvvzn; - var main_source_vvvvvzn = []; - main_source_vvvvvzn.push(temp_vvvvvzn); + var temp_vvvvwaf = main_source_vvvvwaf; + var main_source_vvvvwaf = []; + main_source_vvvvwaf.push(temp_vvvvwaf); } - else if (!isSet(main_source_vvvvvzn)) + else if (!isSet(main_source_vvvvwaf)) { - var main_source_vvvvvzn = []; + var main_source_vvvvwaf = []; } - var main_source = main_source_vvvvvzn.some(main_source_vvvvvzn_SomeFunc); + var main_source = main_source_vvvvwaf.some(main_source_vvvvwaf_SomeFunc); // set this function logic @@ -216,55 +216,55 @@ function vvvvvzn(main_source_vvvvvzn) { jQuery('#jform_view_table_main').closest('.control-group').show(); // add required attribute to view_table_main field - if (jform_vvvvvznvwo_required) + if (jform_vvvvwafvwr_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_vvvvvznvwo_required = false; + jform_vvvvwafvwr_required = false; } } else { jQuery('#jform_view_table_main').closest('.control-group').hide(); // remove required attribute from view_table_main field - if (!jform_vvvvvznvwo_required) + if (!jform_vvvvwafvwr_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_vvvvvznvwo_required = true; + jform_vvvvwafvwr_required = true; } } } -// the vvvvvzn Some function -function main_source_vvvvvzn_SomeFunc(main_source_vvvvvzn) +// the vvvvwaf Some function +function main_source_vvvvwaf_SomeFunc(main_source_vvvvwaf) { // set the function logic - if (main_source_vvvvvzn == 1) + if (main_source_vvvvwaf == 1) { return true; } return false; } -// the vvvvvzo function -function vvvvvzo(main_source_vvvvvzo) +// the vvvvwag function +function vvvvwag(main_source_vvvvwag) { - if (isSet(main_source_vvvvvzo) && main_source_vvvvvzo.constructor !== Array) + if (isSet(main_source_vvvvwag) && main_source_vvvvwag.constructor !== Array) { - var temp_vvvvvzo = main_source_vvvvvzo; - var main_source_vvvvvzo = []; - main_source_vvvvvzo.push(temp_vvvvvzo); + var temp_vvvvwag = main_source_vvvvwag; + var main_source_vvvvwag = []; + main_source_vvvvwag.push(temp_vvvvwag); } - else if (!isSet(main_source_vvvvvzo)) + else if (!isSet(main_source_vvvvwag)) { - var main_source_vvvvvzo = []; + var main_source_vvvvwag = []; } - var main_source = main_source_vvvvvzo.some(main_source_vvvvvzo_SomeFunc); + var main_source = main_source_vvvvwag.some(main_source_vvvvwag_SomeFunc); // set this function logic @@ -272,55 +272,55 @@ function vvvvvzo(main_source_vvvvvzo) { jQuery('#jform_view_selection').closest('.control-group').show(); // add required attribute to view_selection field - if (jform_vvvvvzovwp_required) + if (jform_vvvvwagvws_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_vvvvvzovwp_required = false; + jform_vvvvwagvws_required = false; } } else { jQuery('#jform_view_selection').closest('.control-group').hide(); // remove required attribute from view_selection field - if (!jform_vvvvvzovwp_required) + if (!jform_vvvvwagvws_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_vvvvvzovwp_required = true; + jform_vvvvwagvws_required = true; } } } -// the vvvvvzo Some function -function main_source_vvvvvzo_SomeFunc(main_source_vvvvvzo) +// the vvvvwag Some function +function main_source_vvvvwag_SomeFunc(main_source_vvvvwag) { // set the function logic - if (main_source_vvvvvzo == 1) + if (main_source_vvvvwag == 1) { return true; } return false; } -// the vvvvvzp function -function vvvvvzp(main_source_vvvvvzp) +// the vvvvwah function +function vvvvwah(main_source_vvvvwah) { - if (isSet(main_source_vvvvvzp) && main_source_vvvvvzp.constructor !== Array) + if (isSet(main_source_vvvvwah) && main_source_vvvvwah.constructor !== Array) { - var temp_vvvvvzp = main_source_vvvvvzp; - var main_source_vvvvvzp = []; - main_source_vvvvvzp.push(temp_vvvvvzp); + var temp_vvvvwah = main_source_vvvvwah; + var main_source_vvvvwah = []; + main_source_vvvvwah.push(temp_vvvvwah); } - else if (!isSet(main_source_vvvvvzp)) + else if (!isSet(main_source_vvvvwah)) { - var main_source_vvvvvzp = []; + var main_source_vvvvwah = []; } - var main_source = main_source_vvvvvzp.some(main_source_vvvvvzp_SomeFunc); + var main_source = main_source_vvvvwah.some(main_source_vvvvwah_SomeFunc); // set this function logic @@ -328,55 +328,55 @@ function vvvvvzp(main_source_vvvvvzp) { jQuery('#jform_db_table_main').closest('.control-group').show(); // add required attribute to db_table_main field - if (jform_vvvvvzpvwq_required) + if (jform_vvvvwahvwt_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_vvvvvzpvwq_required = false; + jform_vvvvwahvwt_required = false; } } else { jQuery('#jform_db_table_main').closest('.control-group').hide(); // remove required attribute from db_table_main field - if (!jform_vvvvvzpvwq_required) + if (!jform_vvvvwahvwt_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_vvvvvzpvwq_required = true; + jform_vvvvwahvwt_required = true; } } } -// the vvvvvzp Some function -function main_source_vvvvvzp_SomeFunc(main_source_vvvvvzp) +// the vvvvwah Some function +function main_source_vvvvwah_SomeFunc(main_source_vvvvwah) { // set the function logic - if (main_source_vvvvvzp == 2) + if (main_source_vvvvwah == 2) { return true; } return false; } -// the vvvvvzq function -function vvvvvzq(main_source_vvvvvzq) +// the vvvvwai function +function vvvvwai(main_source_vvvvwai) { - if (isSet(main_source_vvvvvzq) && main_source_vvvvvzq.constructor !== Array) + if (isSet(main_source_vvvvwai) && main_source_vvvvwai.constructor !== Array) { - var temp_vvvvvzq = main_source_vvvvvzq; - var main_source_vvvvvzq = []; - main_source_vvvvvzq.push(temp_vvvvvzq); + var temp_vvvvwai = main_source_vvvvwai; + var main_source_vvvvwai = []; + main_source_vvvvwai.push(temp_vvvvwai); } - else if (!isSet(main_source_vvvvvzq)) + else if (!isSet(main_source_vvvvwai)) { - var main_source_vvvvvzq = []; + var main_source_vvvvwai = []; } - var main_source = main_source_vvvvvzq.some(main_source_vvvvvzq_SomeFunc); + var main_source = main_source_vvvvwai.some(main_source_vvvvwai_SomeFunc); // set this function logic @@ -384,46 +384,46 @@ function vvvvvzq(main_source_vvvvvzq) { jQuery('#jform_db_selection').closest('.control-group').show(); // add required attribute to db_selection field - if (jform_vvvvvzqvwr_required) + if (jform_vvvvwaivwu_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_vvvvvzqvwr_required = false; + jform_vvvvwaivwu_required = false; } } else { jQuery('#jform_db_selection').closest('.control-group').hide(); // remove required attribute from db_selection field - if (!jform_vvvvvzqvwr_required) + if (!jform_vvvvwaivwu_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_vvvvvzqvwr_required = true; + jform_vvvvwaivwu_required = true; } } } -// the vvvvvzq Some function -function main_source_vvvvvzq_SomeFunc(main_source_vvvvvzq) +// the vvvvwai Some function +function main_source_vvvvwai_SomeFunc(main_source_vvvvwai) { // set the function logic - if (main_source_vvvvvzq == 2) + if (main_source_vvvvwai == 2) { return true; } return false; } -// the vvvvvzr function -function vvvvvzr(addcalculation_vvvvvzr) +// the vvvvwaj function +function vvvvwaj(addcalculation_vvvvwaj) { // set the function logic - if (addcalculation_vvvvvzr == 1) + if (addcalculation_vvvvwaj == 1) { jQuery('#jform_php_calculation-lbl').closest('.control-group').show(); } @@ -433,32 +433,32 @@ function vvvvvzr(addcalculation_vvvvvzr) } } -// the vvvvvzs function -function vvvvvzs(addcalculation_vvvvvzs,gettype_vvvvvzs) +// the vvvvwak function +function vvvvwak(addcalculation_vvvvwak,gettype_vvvvwak) { - if (isSet(addcalculation_vvvvvzs) && addcalculation_vvvvvzs.constructor !== Array) + if (isSet(addcalculation_vvvvwak) && addcalculation_vvvvwak.constructor !== Array) { - var temp_vvvvvzs = addcalculation_vvvvvzs; - var addcalculation_vvvvvzs = []; - addcalculation_vvvvvzs.push(temp_vvvvvzs); + var temp_vvvvwak = addcalculation_vvvvwak; + var addcalculation_vvvvwak = []; + addcalculation_vvvvwak.push(temp_vvvvwak); } - else if (!isSet(addcalculation_vvvvvzs)) + else if (!isSet(addcalculation_vvvvwak)) { - var addcalculation_vvvvvzs = []; + var addcalculation_vvvvwak = []; } - var addcalculation = addcalculation_vvvvvzs.some(addcalculation_vvvvvzs_SomeFunc); + var addcalculation = addcalculation_vvvvwak.some(addcalculation_vvvvwak_SomeFunc); - if (isSet(gettype_vvvvvzs) && gettype_vvvvvzs.constructor !== Array) + if (isSet(gettype_vvvvwak) && gettype_vvvvwak.constructor !== Array) { - var temp_vvvvvzs = gettype_vvvvvzs; - var gettype_vvvvvzs = []; - gettype_vvvvvzs.push(temp_vvvvvzs); + var temp_vvvvwak = gettype_vvvvwak; + var gettype_vvvvwak = []; + gettype_vvvvwak.push(temp_vvvvwak); } - else if (!isSet(gettype_vvvvvzs)) + else if (!isSet(gettype_vvvvwak)) { - var gettype_vvvvvzs = []; + var gettype_vvvvwak = []; } - var gettype = gettype_vvvvvzs.some(gettype_vvvvvzs_SomeFunc); + var gettype = gettype_vvvvwak.some(gettype_vvvvwak_SomeFunc); // set this function logic @@ -472,54 +472,54 @@ function vvvvvzs(addcalculation_vvvvvzs,gettype_vvvvvzs) } } -// the vvvvvzs Some function -function addcalculation_vvvvvzs_SomeFunc(addcalculation_vvvvvzs) +// the vvvvwak Some function +function addcalculation_vvvvwak_SomeFunc(addcalculation_vvvvwak) { // set the function logic - if (addcalculation_vvvvvzs == 1) + if (addcalculation_vvvvwak == 1) { return true; } return false; } -// the vvvvvzs Some function -function gettype_vvvvvzs_SomeFunc(gettype_vvvvvzs) +// the vvvvwak Some function +function gettype_vvvvwak_SomeFunc(gettype_vvvvwak) { // set the function logic - if (gettype_vvvvvzs == 1 || gettype_vvvvvzs == 3) + if (gettype_vvvvwak == 1 || gettype_vvvvwak == 3) { return true; } return false; } -// the vvvvvzt function -function vvvvvzt(addcalculation_vvvvvzt,gettype_vvvvvzt) +// the vvvvwal function +function vvvvwal(addcalculation_vvvvwal,gettype_vvvvwal) { - if (isSet(addcalculation_vvvvvzt) && addcalculation_vvvvvzt.constructor !== Array) + if (isSet(addcalculation_vvvvwal) && addcalculation_vvvvwal.constructor !== Array) { - var temp_vvvvvzt = addcalculation_vvvvvzt; - var addcalculation_vvvvvzt = []; - addcalculation_vvvvvzt.push(temp_vvvvvzt); + var temp_vvvvwal = addcalculation_vvvvwal; + var addcalculation_vvvvwal = []; + addcalculation_vvvvwal.push(temp_vvvvwal); } - else if (!isSet(addcalculation_vvvvvzt)) + else if (!isSet(addcalculation_vvvvwal)) { - var addcalculation_vvvvvzt = []; + var addcalculation_vvvvwal = []; } - var addcalculation = addcalculation_vvvvvzt.some(addcalculation_vvvvvzt_SomeFunc); + var addcalculation = addcalculation_vvvvwal.some(addcalculation_vvvvwal_SomeFunc); - if (isSet(gettype_vvvvvzt) && gettype_vvvvvzt.constructor !== Array) + if (isSet(gettype_vvvvwal) && gettype_vvvvwal.constructor !== Array) { - var temp_vvvvvzt = gettype_vvvvvzt; - var gettype_vvvvvzt = []; - gettype_vvvvvzt.push(temp_vvvvvzt); + var temp_vvvvwal = gettype_vvvvwal; + var gettype_vvvvwal = []; + gettype_vvvvwal.push(temp_vvvvwal); } - else if (!isSet(gettype_vvvvvzt)) + else if (!isSet(gettype_vvvvwal)) { - var gettype_vvvvvzt = []; + var gettype_vvvvwal = []; } - var gettype = gettype_vvvvvzt.some(gettype_vvvvvzt_SomeFunc); + var gettype = gettype_vvvvwal.some(gettype_vvvvwal_SomeFunc); // set this function logic @@ -533,42 +533,42 @@ function vvvvvzt(addcalculation_vvvvvzt,gettype_vvvvvzt) } } -// the vvvvvzt Some function -function addcalculation_vvvvvzt_SomeFunc(addcalculation_vvvvvzt) +// the vvvvwal Some function +function addcalculation_vvvvwal_SomeFunc(addcalculation_vvvvwal) { // set the function logic - if (addcalculation_vvvvvzt == 1) + if (addcalculation_vvvvwal == 1) { return true; } return false; } -// the vvvvvzt Some function -function gettype_vvvvvzt_SomeFunc(gettype_vvvvvzt) +// the vvvvwal Some function +function gettype_vvvvwal_SomeFunc(gettype_vvvvwal) { // set the function logic - if (gettype_vvvvvzt == 2 || gettype_vvvvvzt == 4) + if (gettype_vvvvwal == 2 || gettype_vvvvwal == 4) { return true; } return false; } -// the vvvvvzw function -function vvvvvzw(main_source_vvvvvzw) +// the vvvvwao function +function vvvvwao(main_source_vvvvwao) { - if (isSet(main_source_vvvvvzw) && main_source_vvvvvzw.constructor !== Array) + if (isSet(main_source_vvvvwao) && main_source_vvvvwao.constructor !== Array) { - var temp_vvvvvzw = main_source_vvvvvzw; - var main_source_vvvvvzw = []; - main_source_vvvvvzw.push(temp_vvvvvzw); + var temp_vvvvwao = main_source_vvvvwao; + var main_source_vvvvwao = []; + main_source_vvvvwao.push(temp_vvvvwao); } - else if (!isSet(main_source_vvvvvzw)) + else if (!isSet(main_source_vvvvwao)) { - var main_source_vvvvvzw = []; + var main_source_vvvvwao = []; } - var main_source = main_source_vvvvvzw.some(main_source_vvvvvzw_SomeFunc); + var main_source = main_source_vvvvwao.some(main_source_vvvvwao_SomeFunc); // set this function logic @@ -582,31 +582,31 @@ function vvvvvzw(main_source_vvvvvzw) } } -// the vvvvvzw Some function -function main_source_vvvvvzw_SomeFunc(main_source_vvvvvzw) +// the vvvvwao Some function +function main_source_vvvvwao_SomeFunc(main_source_vvvvwao) { // set the function logic - if (main_source_vvvvvzw == 3) + if (main_source_vvvvwao == 3) { return true; } return false; } -// the vvvvvzx function -function vvvvvzx(main_source_vvvvvzx) +// the vvvvwap function +function vvvvwap(main_source_vvvvwap) { - if (isSet(main_source_vvvvvzx) && main_source_vvvvvzx.constructor !== Array) + if (isSet(main_source_vvvvwap) && main_source_vvvvwap.constructor !== Array) { - var temp_vvvvvzx = main_source_vvvvvzx; - var main_source_vvvvvzx = []; - main_source_vvvvvzx.push(temp_vvvvvzx); + var temp_vvvvwap = main_source_vvvvwap; + var main_source_vvvvwap = []; + main_source_vvvvwap.push(temp_vvvvwap); } - else if (!isSet(main_source_vvvvvzx)) + else if (!isSet(main_source_vvvvwap)) { - var main_source_vvvvvzx = []; + var main_source_vvvvwap = []; } - var main_source = main_source_vvvvvzx.some(main_source_vvvvvzx_SomeFunc); + var main_source = main_source_vvvvwap.some(main_source_vvvvwap_SomeFunc); // set this function logic @@ -632,43 +632,43 @@ function vvvvvzx(main_source_vvvvvzx) } } -// the vvvvvzx Some function -function main_source_vvvvvzx_SomeFunc(main_source_vvvvvzx) +// the vvvvwap Some function +function main_source_vvvvwap_SomeFunc(main_source_vvvvwap) { // set the function logic - if (main_source_vvvvvzx == 1 || main_source_vvvvvzx == 2) + if (main_source_vvvvwap == 1 || main_source_vvvvwap == 2) { return true; } return false; } -// the vvvvvzy function -function vvvvvzy(add_php_before_getitem_vvvvvzy,gettype_vvvvvzy) +// the vvvvwaq function +function vvvvwaq(add_php_before_getitem_vvvvwaq,gettype_vvvvwaq) { - if (isSet(add_php_before_getitem_vvvvvzy) && add_php_before_getitem_vvvvvzy.constructor !== Array) + if (isSet(add_php_before_getitem_vvvvwaq) && add_php_before_getitem_vvvvwaq.constructor !== Array) { - var temp_vvvvvzy = add_php_before_getitem_vvvvvzy; - var add_php_before_getitem_vvvvvzy = []; - add_php_before_getitem_vvvvvzy.push(temp_vvvvvzy); + var temp_vvvvwaq = add_php_before_getitem_vvvvwaq; + var add_php_before_getitem_vvvvwaq = []; + add_php_before_getitem_vvvvwaq.push(temp_vvvvwaq); } - else if (!isSet(add_php_before_getitem_vvvvvzy)) + else if (!isSet(add_php_before_getitem_vvvvwaq)) { - var add_php_before_getitem_vvvvvzy = []; + var add_php_before_getitem_vvvvwaq = []; } - var add_php_before_getitem = add_php_before_getitem_vvvvvzy.some(add_php_before_getitem_vvvvvzy_SomeFunc); + var add_php_before_getitem = add_php_before_getitem_vvvvwaq.some(add_php_before_getitem_vvvvwaq_SomeFunc); - if (isSet(gettype_vvvvvzy) && gettype_vvvvvzy.constructor !== Array) + if (isSet(gettype_vvvvwaq) && gettype_vvvvwaq.constructor !== Array) { - var temp_vvvvvzy = gettype_vvvvvzy; - var gettype_vvvvvzy = []; - gettype_vvvvvzy.push(temp_vvvvvzy); + var temp_vvvvwaq = gettype_vvvvwaq; + var gettype_vvvvwaq = []; + gettype_vvvvwaq.push(temp_vvvvwaq); } - else if (!isSet(gettype_vvvvvzy)) + else if (!isSet(gettype_vvvvwaq)) { - var gettype_vvvvvzy = []; + var gettype_vvvvwaq = []; } - var gettype = gettype_vvvvvzy.some(gettype_vvvvvzy_SomeFunc); + var gettype = gettype_vvvvwaq.some(gettype_vvvvwaq_SomeFunc); // set this function logic @@ -682,54 +682,54 @@ function vvvvvzy(add_php_before_getitem_vvvvvzy,gettype_vvvvvzy) } } -// the vvvvvzy Some function -function add_php_before_getitem_vvvvvzy_SomeFunc(add_php_before_getitem_vvvvvzy) +// the vvvvwaq Some function +function add_php_before_getitem_vvvvwaq_SomeFunc(add_php_before_getitem_vvvvwaq) { // set the function logic - if (add_php_before_getitem_vvvvvzy == 1) + if (add_php_before_getitem_vvvvwaq == 1) { return true; } return false; } -// the vvvvvzy Some function -function gettype_vvvvvzy_SomeFunc(gettype_vvvvvzy) +// the vvvvwaq Some function +function gettype_vvvvwaq_SomeFunc(gettype_vvvvwaq) { // set the function logic - if (gettype_vvvvvzy == 1 || gettype_vvvvvzy == 3) + if (gettype_vvvvwaq == 1 || gettype_vvvvwaq == 3) { return true; } return false; } -// the vvvvvzz function -function vvvvvzz(add_php_after_getitem_vvvvvzz,gettype_vvvvvzz) +// the vvvvwar function +function vvvvwar(add_php_after_getitem_vvvvwar,gettype_vvvvwar) { - if (isSet(add_php_after_getitem_vvvvvzz) && add_php_after_getitem_vvvvvzz.constructor !== Array) + if (isSet(add_php_after_getitem_vvvvwar) && add_php_after_getitem_vvvvwar.constructor !== Array) { - var temp_vvvvvzz = add_php_after_getitem_vvvvvzz; - var add_php_after_getitem_vvvvvzz = []; - add_php_after_getitem_vvvvvzz.push(temp_vvvvvzz); + var temp_vvvvwar = add_php_after_getitem_vvvvwar; + var add_php_after_getitem_vvvvwar = []; + add_php_after_getitem_vvvvwar.push(temp_vvvvwar); } - else if (!isSet(add_php_after_getitem_vvvvvzz)) + else if (!isSet(add_php_after_getitem_vvvvwar)) { - var add_php_after_getitem_vvvvvzz = []; + var add_php_after_getitem_vvvvwar = []; } - var add_php_after_getitem = add_php_after_getitem_vvvvvzz.some(add_php_after_getitem_vvvvvzz_SomeFunc); + var add_php_after_getitem = add_php_after_getitem_vvvvwar.some(add_php_after_getitem_vvvvwar_SomeFunc); - if (isSet(gettype_vvvvvzz) && gettype_vvvvvzz.constructor !== Array) + if (isSet(gettype_vvvvwar) && gettype_vvvvwar.constructor !== Array) { - var temp_vvvvvzz = gettype_vvvvvzz; - var gettype_vvvvvzz = []; - gettype_vvvvvzz.push(temp_vvvvvzz); + var temp_vvvvwar = gettype_vvvvwar; + var gettype_vvvvwar = []; + gettype_vvvvwar.push(temp_vvvvwar); } - else if (!isSet(gettype_vvvvvzz)) + else if (!isSet(gettype_vvvvwar)) { - var gettype_vvvvvzz = []; + var gettype_vvvvwar = []; } - var gettype = gettype_vvvvvzz.some(gettype_vvvvvzz_SomeFunc); + var gettype = gettype_vvvvwar.some(gettype_vvvvwar_SomeFunc); // set this function logic @@ -743,42 +743,42 @@ function vvvvvzz(add_php_after_getitem_vvvvvzz,gettype_vvvvvzz) } } -// the vvvvvzz Some function -function add_php_after_getitem_vvvvvzz_SomeFunc(add_php_after_getitem_vvvvvzz) +// the vvvvwar Some function +function add_php_after_getitem_vvvvwar_SomeFunc(add_php_after_getitem_vvvvwar) { // set the function logic - if (add_php_after_getitem_vvvvvzz == 1) + if (add_php_after_getitem_vvvvwar == 1) { return true; } return false; } -// the vvvvvzz Some function -function gettype_vvvvvzz_SomeFunc(gettype_vvvvvzz) +// the vvvvwar Some function +function gettype_vvvvwar_SomeFunc(gettype_vvvvwar) { // set the function logic - if (gettype_vvvvvzz == 1 || gettype_vvvvvzz == 3) + if (gettype_vvvvwar == 1 || gettype_vvvvwar == 3) { return true; } return false; } -// the vvvvwab function -function vvvvwab(gettype_vvvvwab) +// the vvvvwat function +function vvvvwat(gettype_vvvvwat) { - if (isSet(gettype_vvvvwab) && gettype_vvvvwab.constructor !== Array) + if (isSet(gettype_vvvvwat) && gettype_vvvvwat.constructor !== Array) { - var temp_vvvvwab = gettype_vvvvwab; - var gettype_vvvvwab = []; - gettype_vvvvwab.push(temp_vvvvwab); + var temp_vvvvwat = gettype_vvvvwat; + var gettype_vvvvwat = []; + gettype_vvvvwat.push(temp_vvvvwat); } - else if (!isSet(gettype_vvvvwab)) + else if (!isSet(gettype_vvvvwat)) { - var gettype_vvvvwab = []; + var gettype_vvvvwat = []; } - var gettype = gettype_vvvvwab.some(gettype_vvvvwab_SomeFunc); + var gettype = gettype_vvvvwat.some(gettype_vvvvwat_SomeFunc); // set this function logic @@ -786,87 +786,87 @@ function vvvvwab(gettype_vvvvwab) { jQuery('#jform_add_php_after_getitem').closest('.control-group').show(); // add required attribute to add_php_after_getitem field - if (jform_vvvvwabvws_required) + if (jform_vvvvwatvwv_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_vvvvwabvws_required = false; + jform_vvvvwatvwv_required = false; } jQuery('#jform_add_php_before_getitem').closest('.control-group').show(); // add required attribute to add_php_before_getitem field - if (jform_vvvvwabvwt_required) + if (jform_vvvvwatvww_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_vvvvwabvwt_required = false; + jform_vvvvwatvww_required = false; } } else { jQuery('#jform_add_php_after_getitem').closest('.control-group').hide(); // remove required attribute from add_php_after_getitem field - if (!jform_vvvvwabvws_required) + if (!jform_vvvvwatvwv_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_vvvvwabvws_required = true; + jform_vvvvwatvwv_required = true; } jQuery('#jform_add_php_before_getitem').closest('.control-group').hide(); // remove required attribute from add_php_before_getitem field - if (!jform_vvvvwabvwt_required) + if (!jform_vvvvwatvww_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_vvvvwabvwt_required = true; + jform_vvvvwatvww_required = true; } } } -// the vvvvwab Some function -function gettype_vvvvwab_SomeFunc(gettype_vvvvwab) +// the vvvvwat Some function +function gettype_vvvvwat_SomeFunc(gettype_vvvvwat) { // set the function logic - if (gettype_vvvvwab == 1 || gettype_vvvvwab == 3) + if (gettype_vvvvwat == 1 || gettype_vvvvwat == 3) { return true; } return false; } -// the vvvvwac function -function vvvvwac(add_php_getlistquery_vvvvwac,gettype_vvvvwac) +// the vvvvwau function +function vvvvwau(add_php_getlistquery_vvvvwau,gettype_vvvvwau) { - if (isSet(add_php_getlistquery_vvvvwac) && add_php_getlistquery_vvvvwac.constructor !== Array) + if (isSet(add_php_getlistquery_vvvvwau) && add_php_getlistquery_vvvvwau.constructor !== Array) { - var temp_vvvvwac = add_php_getlistquery_vvvvwac; - var add_php_getlistquery_vvvvwac = []; - add_php_getlistquery_vvvvwac.push(temp_vvvvwac); + var temp_vvvvwau = add_php_getlistquery_vvvvwau; + var add_php_getlistquery_vvvvwau = []; + add_php_getlistquery_vvvvwau.push(temp_vvvvwau); } - else if (!isSet(add_php_getlistquery_vvvvwac)) + else if (!isSet(add_php_getlistquery_vvvvwau)) { - var add_php_getlistquery_vvvvwac = []; + var add_php_getlistquery_vvvvwau = []; } - var add_php_getlistquery = add_php_getlistquery_vvvvwac.some(add_php_getlistquery_vvvvwac_SomeFunc); + var add_php_getlistquery = add_php_getlistquery_vvvvwau.some(add_php_getlistquery_vvvvwau_SomeFunc); - if (isSet(gettype_vvvvwac) && gettype_vvvvwac.constructor !== Array) + if (isSet(gettype_vvvvwau) && gettype_vvvvwau.constructor !== Array) { - var temp_vvvvwac = gettype_vvvvwac; - var gettype_vvvvwac = []; - gettype_vvvvwac.push(temp_vvvvwac); + var temp_vvvvwau = gettype_vvvvwau; + var gettype_vvvvwau = []; + gettype_vvvvwau.push(temp_vvvvwau); } - else if (!isSet(gettype_vvvvwac)) + else if (!isSet(gettype_vvvvwau)) { - var gettype_vvvvwac = []; + var gettype_vvvvwau = []; } - var gettype = gettype_vvvvwac.some(gettype_vvvvwac_SomeFunc); + var gettype = gettype_vvvvwau.some(gettype_vvvvwau_SomeFunc); // set this function logic @@ -880,54 +880,54 @@ function vvvvwac(add_php_getlistquery_vvvvwac,gettype_vvvvwac) } } -// the vvvvwac Some function -function add_php_getlistquery_vvvvwac_SomeFunc(add_php_getlistquery_vvvvwac) +// the vvvvwau Some function +function add_php_getlistquery_vvvvwau_SomeFunc(add_php_getlistquery_vvvvwau) { // set the function logic - if (add_php_getlistquery_vvvvwac == 1) + if (add_php_getlistquery_vvvvwau == 1) { return true; } return false; } -// the vvvvwac Some function -function gettype_vvvvwac_SomeFunc(gettype_vvvvwac) +// the vvvvwau Some function +function gettype_vvvvwau_SomeFunc(gettype_vvvvwau) { // set the function logic - if (gettype_vvvvwac == 2 || gettype_vvvvwac == 4) + if (gettype_vvvvwau == 2 || gettype_vvvvwau == 4) { return true; } return false; } -// the vvvvwad function -function vvvvwad(add_php_before_getitems_vvvvwad,gettype_vvvvwad) +// the vvvvwav function +function vvvvwav(add_php_before_getitems_vvvvwav,gettype_vvvvwav) { - if (isSet(add_php_before_getitems_vvvvwad) && add_php_before_getitems_vvvvwad.constructor !== Array) + if (isSet(add_php_before_getitems_vvvvwav) && add_php_before_getitems_vvvvwav.constructor !== Array) { - var temp_vvvvwad = add_php_before_getitems_vvvvwad; - var add_php_before_getitems_vvvvwad = []; - add_php_before_getitems_vvvvwad.push(temp_vvvvwad); + var temp_vvvvwav = add_php_before_getitems_vvvvwav; + var add_php_before_getitems_vvvvwav = []; + add_php_before_getitems_vvvvwav.push(temp_vvvvwav); } - else if (!isSet(add_php_before_getitems_vvvvwad)) + else if (!isSet(add_php_before_getitems_vvvvwav)) { - var add_php_before_getitems_vvvvwad = []; + var add_php_before_getitems_vvvvwav = []; } - var add_php_before_getitems = add_php_before_getitems_vvvvwad.some(add_php_before_getitems_vvvvwad_SomeFunc); + var add_php_before_getitems = add_php_before_getitems_vvvvwav.some(add_php_before_getitems_vvvvwav_SomeFunc); - if (isSet(gettype_vvvvwad) && gettype_vvvvwad.constructor !== Array) + if (isSet(gettype_vvvvwav) && gettype_vvvvwav.constructor !== Array) { - var temp_vvvvwad = gettype_vvvvwad; - var gettype_vvvvwad = []; - gettype_vvvvwad.push(temp_vvvvwad); + var temp_vvvvwav = gettype_vvvvwav; + var gettype_vvvvwav = []; + gettype_vvvvwav.push(temp_vvvvwav); } - else if (!isSet(gettype_vvvvwad)) + else if (!isSet(gettype_vvvvwav)) { - var gettype_vvvvwad = []; + var gettype_vvvvwav = []; } - var gettype = gettype_vvvvwad.some(gettype_vvvvwad_SomeFunc); + var gettype = gettype_vvvvwav.some(gettype_vvvvwav_SomeFunc); // set this function logic @@ -941,54 +941,54 @@ function vvvvwad(add_php_before_getitems_vvvvwad,gettype_vvvvwad) } } -// the vvvvwad Some function -function add_php_before_getitems_vvvvwad_SomeFunc(add_php_before_getitems_vvvvwad) +// the vvvvwav Some function +function add_php_before_getitems_vvvvwav_SomeFunc(add_php_before_getitems_vvvvwav) { // set the function logic - if (add_php_before_getitems_vvvvwad == 1) + if (add_php_before_getitems_vvvvwav == 1) { return true; } return false; } -// the vvvvwad Some function -function gettype_vvvvwad_SomeFunc(gettype_vvvvwad) +// the vvvvwav Some function +function gettype_vvvvwav_SomeFunc(gettype_vvvvwav) { // set the function logic - if (gettype_vvvvwad == 2 || gettype_vvvvwad == 4) + if (gettype_vvvvwav == 2 || gettype_vvvvwav == 4) { return true; } return false; } -// the vvvvwae function -function vvvvwae(add_php_after_getitems_vvvvwae,gettype_vvvvwae) +// the vvvvwaw function +function vvvvwaw(add_php_after_getitems_vvvvwaw,gettype_vvvvwaw) { - if (isSet(add_php_after_getitems_vvvvwae) && add_php_after_getitems_vvvvwae.constructor !== Array) + if (isSet(add_php_after_getitems_vvvvwaw) && add_php_after_getitems_vvvvwaw.constructor !== Array) { - var temp_vvvvwae = add_php_after_getitems_vvvvwae; - var add_php_after_getitems_vvvvwae = []; - add_php_after_getitems_vvvvwae.push(temp_vvvvwae); + var temp_vvvvwaw = add_php_after_getitems_vvvvwaw; + var add_php_after_getitems_vvvvwaw = []; + add_php_after_getitems_vvvvwaw.push(temp_vvvvwaw); } - else if (!isSet(add_php_after_getitems_vvvvwae)) + else if (!isSet(add_php_after_getitems_vvvvwaw)) { - var add_php_after_getitems_vvvvwae = []; + var add_php_after_getitems_vvvvwaw = []; } - var add_php_after_getitems = add_php_after_getitems_vvvvwae.some(add_php_after_getitems_vvvvwae_SomeFunc); + var add_php_after_getitems = add_php_after_getitems_vvvvwaw.some(add_php_after_getitems_vvvvwaw_SomeFunc); - if (isSet(gettype_vvvvwae) && gettype_vvvvwae.constructor !== Array) + if (isSet(gettype_vvvvwaw) && gettype_vvvvwaw.constructor !== Array) { - var temp_vvvvwae = gettype_vvvvwae; - var gettype_vvvvwae = []; - gettype_vvvvwae.push(temp_vvvvwae); + var temp_vvvvwaw = gettype_vvvvwaw; + var gettype_vvvvwaw = []; + gettype_vvvvwaw.push(temp_vvvvwaw); } - else if (!isSet(gettype_vvvvwae)) + else if (!isSet(gettype_vvvvwaw)) { - var gettype_vvvvwae = []; + var gettype_vvvvwaw = []; } - var gettype = gettype_vvvvwae.some(gettype_vvvvwae_SomeFunc); + var gettype = gettype_vvvvwaw.some(gettype_vvvvwaw_SomeFunc); // set this function logic @@ -1002,42 +1002,42 @@ function vvvvwae(add_php_after_getitems_vvvvwae,gettype_vvvvwae) } } -// the vvvvwae Some function -function add_php_after_getitems_vvvvwae_SomeFunc(add_php_after_getitems_vvvvwae) +// the vvvvwaw Some function +function add_php_after_getitems_vvvvwaw_SomeFunc(add_php_after_getitems_vvvvwaw) { // set the function logic - if (add_php_after_getitems_vvvvwae == 1) + if (add_php_after_getitems_vvvvwaw == 1) { return true; } return false; } -// the vvvvwae Some function -function gettype_vvvvwae_SomeFunc(gettype_vvvvwae) +// the vvvvwaw Some function +function gettype_vvvvwaw_SomeFunc(gettype_vvvvwaw) { // set the function logic - if (gettype_vvvvwae == 2 || gettype_vvvvwae == 4) + if (gettype_vvvvwaw == 2 || gettype_vvvvwaw == 4) { return true; } return false; } -// the vvvvwag function -function vvvvwag(gettype_vvvvwag) +// the vvvvway function +function vvvvway(gettype_vvvvway) { - if (isSet(gettype_vvvvwag) && gettype_vvvvwag.constructor !== Array) + if (isSet(gettype_vvvvway) && gettype_vvvvway.constructor !== Array) { - var temp_vvvvwag = gettype_vvvvwag; - var gettype_vvvvwag = []; - gettype_vvvvwag.push(temp_vvvvwag); + var temp_vvvvway = gettype_vvvvway; + var gettype_vvvvway = []; + gettype_vvvvway.push(temp_vvvvway); } - else if (!isSet(gettype_vvvvwag)) + else if (!isSet(gettype_vvvvway)) { - var gettype_vvvvwag = []; + var gettype_vvvvway = []; } - var gettype = gettype_vvvvwag.some(gettype_vvvvwag_SomeFunc); + var gettype = gettype_vvvvway.some(gettype_vvvvway_SomeFunc); // set this function logic @@ -1045,95 +1045,95 @@ function vvvvwag(gettype_vvvvwag) { jQuery('#jform_add_php_after_getitems').closest('.control-group').show(); // add required attribute to add_php_after_getitems field - if (jform_vvvvwagvwu_required) + if (jform_vvvvwayvwx_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_vvvvwagvwu_required = false; + jform_vvvvwayvwx_required = false; } jQuery('#jform_add_php_before_getitems').closest('.control-group').show(); // add required attribute to add_php_before_getitems field - if (jform_vvvvwagvwv_required) + if (jform_vvvvwayvwy_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_vvvvwagvwv_required = false; + jform_vvvvwayvwy_required = false; } jQuery('#jform_add_php_getlistquery').closest('.control-group').show(); // add required attribute to add_php_getlistquery field - if (jform_vvvvwagvww_required) + if (jform_vvvvwayvwz_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_vvvvwagvww_required = false; + jform_vvvvwayvwz_required = false; } } else { jQuery('#jform_add_php_after_getitems').closest('.control-group').hide(); // remove required attribute from add_php_after_getitems field - if (!jform_vvvvwagvwu_required) + if (!jform_vvvvwayvwx_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_vvvvwagvwu_required = true; + jform_vvvvwayvwx_required = true; } jQuery('#jform_add_php_before_getitems').closest('.control-group').hide(); // remove required attribute from add_php_before_getitems field - if (!jform_vvvvwagvwv_required) + if (!jform_vvvvwayvwy_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_vvvvwagvwv_required = true; + jform_vvvvwayvwy_required = true; } jQuery('#jform_add_php_getlistquery').closest('.control-group').hide(); // remove required attribute from add_php_getlistquery field - if (!jform_vvvvwagvww_required) + if (!jform_vvvvwayvwz_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_vvvvwagvww_required = true; + jform_vvvvwayvwz_required = true; } } } -// the vvvvwag Some function -function gettype_vvvvwag_SomeFunc(gettype_vvvvwag) +// the vvvvway Some function +function gettype_vvvvway_SomeFunc(gettype_vvvvway) { // set the function logic - if (gettype_vvvvwag == 2 || gettype_vvvvwag == 4) + if (gettype_vvvvway == 2 || gettype_vvvvway == 4) { return true; } return false; } -// the vvvvwah function -function vvvvwah(gettype_vvvvwah) +// the vvvvwaz function +function vvvvwaz(gettype_vvvvwaz) { - if (isSet(gettype_vvvvwah) && gettype_vvvvwah.constructor !== Array) + if (isSet(gettype_vvvvwaz) && gettype_vvvvwaz.constructor !== Array) { - var temp_vvvvwah = gettype_vvvvwah; - var gettype_vvvvwah = []; - gettype_vvvvwah.push(temp_vvvvwah); + var temp_vvvvwaz = gettype_vvvvwaz; + var gettype_vvvvwaz = []; + gettype_vvvvwaz.push(temp_vvvvwaz); } - else if (!isSet(gettype_vvvvwah)) + else if (!isSet(gettype_vvvvwaz)) { - var gettype_vvvvwah = []; + var gettype_vvvvwaz = []; } - var gettype = gettype_vvvvwah.some(gettype_vvvvwah_SomeFunc); + var gettype = gettype_vvvvwaz.some(gettype_vvvvwaz_SomeFunc); // set this function logic @@ -1141,55 +1141,55 @@ function vvvvwah(gettype_vvvvwah) { jQuery('#jform_pagination').closest('.control-group').show(); // add required attribute to pagination field - if (jform_vvvvwahvwx_required) + if (jform_vvvvwazvxa_required) { updateFieldRequired('pagination',0); jQuery('#jform_pagination').prop('required','required'); jQuery('#jform_pagination').attr('aria-required',true); jQuery('#jform_pagination').addClass('required'); - jform_vvvvwahvwx_required = false; + jform_vvvvwazvxa_required = false; } } else { jQuery('#jform_pagination').closest('.control-group').hide(); // remove required attribute from pagination field - if (!jform_vvvvwahvwx_required) + if (!jform_vvvvwazvxa_required) { updateFieldRequired('pagination',1); jQuery('#jform_pagination').removeAttr('required'); jQuery('#jform_pagination').removeAttr('aria-required'); jQuery('#jform_pagination').removeClass('required'); - jform_vvvvwahvwx_required = true; + jform_vvvvwazvxa_required = true; } } } -// the vvvvwah Some function -function gettype_vvvvwah_SomeFunc(gettype_vvvvwah) +// the vvvvwaz Some function +function gettype_vvvvwaz_SomeFunc(gettype_vvvvwaz) { // set the function logic - if (gettype_vvvvwah == 2) + if (gettype_vvvvwaz == 2) { return true; } return false; } -// the vvvvwai function -function vvvvwai(gettype_vvvvwai) +// the vvvvwba function +function vvvvwba(gettype_vvvvwba) { - if (isSet(gettype_vvvvwai) && gettype_vvvvwai.constructor !== Array) + if (isSet(gettype_vvvvwba) && gettype_vvvvwba.constructor !== Array) { - var temp_vvvvwai = gettype_vvvvwai; - var gettype_vvvvwai = []; - gettype_vvvvwai.push(temp_vvvvwai); + var temp_vvvvwba = gettype_vvvvwba; + var gettype_vvvvwba = []; + gettype_vvvvwba.push(temp_vvvvwba); } - else if (!isSet(gettype_vvvvwai)) + else if (!isSet(gettype_vvvvwba)) { - var gettype_vvvvwai = []; + var gettype_vvvvwba = []; } - var gettype = gettype_vvvvwai.some(gettype_vvvvwai_SomeFunc); + var gettype = gettype_vvvvwba.some(gettype_vvvvwba_SomeFunc); // set this function logic @@ -1197,67 +1197,67 @@ function vvvvwai(gettype_vvvvwai) { jQuery('#jform_add_php_router_parse').closest('.control-group').show(); // add required attribute to add_php_router_parse field - if (jform_vvvvwaivwy_required) + if (jform_vvvvwbavxb_required) { updateFieldRequired('add_php_router_parse',0); jQuery('#jform_add_php_router_parse').prop('required','required'); jQuery('#jform_add_php_router_parse').attr('aria-required',true); jQuery('#jform_add_php_router_parse').addClass('required'); - jform_vvvvwaivwy_required = false; + jform_vvvvwbavxb_required = false; } } else { jQuery('#jform_add_php_router_parse').closest('.control-group').hide(); // remove required attribute from add_php_router_parse field - if (!jform_vvvvwaivwy_required) + if (!jform_vvvvwbavxb_required) { updateFieldRequired('add_php_router_parse',1); jQuery('#jform_add_php_router_parse').removeAttr('required'); jQuery('#jform_add_php_router_parse').removeAttr('aria-required'); jQuery('#jform_add_php_router_parse').removeClass('required'); - jform_vvvvwaivwy_required = true; + jform_vvvvwbavxb_required = true; } } } -// the vvvvwai Some function -function gettype_vvvvwai_SomeFunc(gettype_vvvvwai) +// the vvvvwba Some function +function gettype_vvvvwba_SomeFunc(gettype_vvvvwba) { // set the function logic - if (gettype_vvvvwai == 1 || gettype_vvvvwai == 2) + if (gettype_vvvvwba == 1 || gettype_vvvvwba == 2) { return true; } return false; } -// the vvvvwaj function -function vvvvwaj(gettype_vvvvwaj,add_php_router_parse_vvvvwaj) +// the vvvvwbb function +function vvvvwbb(gettype_vvvvwbb,add_php_router_parse_vvvvwbb) { - if (isSet(gettype_vvvvwaj) && gettype_vvvvwaj.constructor !== Array) + if (isSet(gettype_vvvvwbb) && gettype_vvvvwbb.constructor !== Array) { - var temp_vvvvwaj = gettype_vvvvwaj; - var gettype_vvvvwaj = []; - gettype_vvvvwaj.push(temp_vvvvwaj); + var temp_vvvvwbb = gettype_vvvvwbb; + var gettype_vvvvwbb = []; + gettype_vvvvwbb.push(temp_vvvvwbb); } - else if (!isSet(gettype_vvvvwaj)) + else if (!isSet(gettype_vvvvwbb)) { - var gettype_vvvvwaj = []; + var gettype_vvvvwbb = []; } - var gettype = gettype_vvvvwaj.some(gettype_vvvvwaj_SomeFunc); + var gettype = gettype_vvvvwbb.some(gettype_vvvvwbb_SomeFunc); - if (isSet(add_php_router_parse_vvvvwaj) && add_php_router_parse_vvvvwaj.constructor !== Array) + if (isSet(add_php_router_parse_vvvvwbb) && add_php_router_parse_vvvvwbb.constructor !== Array) { - var temp_vvvvwaj = add_php_router_parse_vvvvwaj; - var add_php_router_parse_vvvvwaj = []; - add_php_router_parse_vvvvwaj.push(temp_vvvvwaj); + var temp_vvvvwbb = add_php_router_parse_vvvvwbb; + var add_php_router_parse_vvvvwbb = []; + add_php_router_parse_vvvvwbb.push(temp_vvvvwbb); } - else if (!isSet(add_php_router_parse_vvvvwaj)) + else if (!isSet(add_php_router_parse_vvvvwbb)) { - var add_php_router_parse_vvvvwaj = []; + var add_php_router_parse_vvvvwbb = []; } - var add_php_router_parse = add_php_router_parse_vvvvwaj.some(add_php_router_parse_vvvvwaj_SomeFunc); + var add_php_router_parse = add_php_router_parse_vvvvwbb.some(add_php_router_parse_vvvvwbb_SomeFunc); // set this function logic @@ -1265,66 +1265,66 @@ function vvvvwaj(gettype_vvvvwaj,add_php_router_parse_vvvvwaj) { jQuery('#jform_php_router_parse').closest('.control-group').show(); // add required attribute to php_router_parse field - if (jform_vvvvwajvwz_required) + if (jform_vvvvwbbvxc_required) { updateFieldRequired('php_router_parse',0); jQuery('#jform_php_router_parse').prop('required','required'); jQuery('#jform_php_router_parse').attr('aria-required',true); jQuery('#jform_php_router_parse').addClass('required'); - jform_vvvvwajvwz_required = false; + jform_vvvvwbbvxc_required = false; } } else { jQuery('#jform_php_router_parse').closest('.control-group').hide(); // remove required attribute from php_router_parse field - if (!jform_vvvvwajvwz_required) + if (!jform_vvvvwbbvxc_required) { updateFieldRequired('php_router_parse',1); jQuery('#jform_php_router_parse').removeAttr('required'); jQuery('#jform_php_router_parse').removeAttr('aria-required'); jQuery('#jform_php_router_parse').removeClass('required'); - jform_vvvvwajvwz_required = true; + jform_vvvvwbbvxc_required = true; } } } -// the vvvvwaj Some function -function gettype_vvvvwaj_SomeFunc(gettype_vvvvwaj) +// the vvvvwbb Some function +function gettype_vvvvwbb_SomeFunc(gettype_vvvvwbb) { // set the function logic - if (gettype_vvvvwaj == 1 || gettype_vvvvwaj == 2) + if (gettype_vvvvwbb == 1 || gettype_vvvvwbb == 2) { return true; } return false; } -// the vvvvwaj Some function -function add_php_router_parse_vvvvwaj_SomeFunc(add_php_router_parse_vvvvwaj) +// the vvvvwbb Some function +function add_php_router_parse_vvvvwbb_SomeFunc(add_php_router_parse_vvvvwbb) { // set the function logic - if (add_php_router_parse_vvvvwaj == 1) + if (add_php_router_parse_vvvvwbb == 1) { return true; } return false; } -// the vvvvwal function -function vvvvwal(gettype_vvvvwal) +// the vvvvwbd function +function vvvvwbd(gettype_vvvvwbd) { - if (isSet(gettype_vvvvwal) && gettype_vvvvwal.constructor !== Array) + if (isSet(gettype_vvvvwbd) && gettype_vvvvwbd.constructor !== Array) { - var temp_vvvvwal = gettype_vvvvwal; - var gettype_vvvvwal = []; - gettype_vvvvwal.push(temp_vvvvwal); + var temp_vvvvwbd = gettype_vvvvwbd; + var gettype_vvvvwbd = []; + gettype_vvvvwbd.push(temp_vvvvwbd); } - else if (!isSet(gettype_vvvvwal)) + else if (!isSet(gettype_vvvvwbd)) { - var gettype_vvvvwal = []; + var gettype_vvvvwbd = []; } - var gettype = gettype_vvvvwal.some(gettype_vvvvwal_SomeFunc); + var gettype = gettype_vvvvwbd.some(gettype_vvvvwbd_SomeFunc); // set this function logic @@ -1338,11 +1338,11 @@ function vvvvwal(gettype_vvvvwal) } } -// the vvvvwal Some function -function gettype_vvvvwal_SomeFunc(gettype_vvvvwal) +// the vvvvwbd Some function +function gettype_vvvvwbd_SomeFunc(gettype_vvvvwbd) { // set the function logic - if (gettype_vvvvwal == 1) + if (gettype_vvvvwbd == 1) { return true; } diff --git a/admin/models/forms/field.js b/admin/models/forms/field.js index 6ae2f6468..82bbab7a2 100644 --- a/admin/models/forms/field.js +++ b/admin/models/forms/field.js @@ -9,57 +9,57 @@ */ // Some Global Values -jform_vvvvwbavxi_required = false; -jform_vvvvwbbvxj_required = false; -jform_vvvvwbcvxk_required = false; -jform_vvvvwbdvxl_required = false; +jform_vvvvwbsvxl_required = false; +jform_vvvvwbtvxm_required = false; +jform_vvvvwbuvxn_required = false; +jform_vvvvwbvvxo_required = false; // Initial Script jQuery(document).ready(function() { - var datalenght_vvvvwba = jQuery("#jform_datalenght").val(); - vvvvwba(datalenght_vvvvwba); + var datalenght_vvvvwbs = jQuery("#jform_datalenght").val(); + vvvvwbs(datalenght_vvvvwbs); - var datadefault_vvvvwbb = jQuery("#jform_datadefault").val(); - vvvvwbb(datadefault_vvvvwbb); + var datadefault_vvvvwbt = jQuery("#jform_datadefault").val(); + vvvvwbt(datadefault_vvvvwbt); - var datatype_vvvvwbc = jQuery("#jform_datatype").val(); - vvvvwbc(datatype_vvvvwbc); + var datatype_vvvvwbu = jQuery("#jform_datatype").val(); + vvvvwbu(datatype_vvvvwbu); - var datatype_vvvvwbd = jQuery("#jform_datatype").val(); - vvvvwbd(datatype_vvvvwbd); + var datatype_vvvvwbv = jQuery("#jform_datatype").val(); + vvvvwbv(datatype_vvvvwbv); - var store_vvvvwbe = jQuery("#jform_store").val(); - var datatype_vvvvwbe = jQuery("#jform_datatype").val(); - vvvvwbe(store_vvvvwbe,datatype_vvvvwbe); + var store_vvvvwbw = jQuery("#jform_store").val(); + var datatype_vvvvwbw = jQuery("#jform_datatype").val(); + vvvvwbw(store_vvvvwbw,datatype_vvvvwbw); - var add_css_view_vvvvwbg = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvwbg(add_css_view_vvvvwbg); + var add_css_view_vvvvwby = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvwby(add_css_view_vvvvwby); - var add_css_views_vvvvwbh = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvwbh(add_css_views_vvvvwbh); + var add_css_views_vvvvwbz = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvwbz(add_css_views_vvvvwbz); - var add_javascript_view_footer_vvvvwbi = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); - vvvvwbi(add_javascript_view_footer_vvvvwbi); + var add_javascript_view_footer_vvvvwca = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvwca(add_javascript_view_footer_vvvvwca); - var add_javascript_views_footer_vvvvwbj = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); - vvvvwbj(add_javascript_views_footer_vvvvwbj); + var add_javascript_views_footer_vvvvwcb = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvwcb(add_javascript_views_footer_vvvvwcb); }); -// the vvvvwba function -function vvvvwba(datalenght_vvvvwba) +// the vvvvwbs function +function vvvvwbs(datalenght_vvvvwbs) { - if (isSet(datalenght_vvvvwba) && datalenght_vvvvwba.constructor !== Array) + if (isSet(datalenght_vvvvwbs) && datalenght_vvvvwbs.constructor !== Array) { - var temp_vvvvwba = datalenght_vvvvwba; - var datalenght_vvvvwba = []; - datalenght_vvvvwba.push(temp_vvvvwba); + var temp_vvvvwbs = datalenght_vvvvwbs; + var datalenght_vvvvwbs = []; + datalenght_vvvvwbs.push(temp_vvvvwbs); } - else if (!isSet(datalenght_vvvvwba)) + else if (!isSet(datalenght_vvvvwbs)) { - var datalenght_vvvvwba = []; + var datalenght_vvvvwbs = []; } - var datalenght = datalenght_vvvvwba.some(datalenght_vvvvwba_SomeFunc); + var datalenght = datalenght_vvvvwbs.some(datalenght_vvvvwbs_SomeFunc); // set this function logic @@ -67,55 +67,55 @@ function vvvvwba(datalenght_vvvvwba) { jQuery('#jform_datalenght_other').closest('.control-group').show(); // add required attribute to datalenght_other field - if (jform_vvvvwbavxi_required) + if (jform_vvvvwbsvxl_required) { updateFieldRequired('datalenght_other',0); jQuery('#jform_datalenght_other').prop('required','required'); jQuery('#jform_datalenght_other').attr('aria-required',true); jQuery('#jform_datalenght_other').addClass('required'); - jform_vvvvwbavxi_required = false; + jform_vvvvwbsvxl_required = false; } } else { jQuery('#jform_datalenght_other').closest('.control-group').hide(); // remove required attribute from datalenght_other field - if (!jform_vvvvwbavxi_required) + if (!jform_vvvvwbsvxl_required) { updateFieldRequired('datalenght_other',1); jQuery('#jform_datalenght_other').removeAttr('required'); jQuery('#jform_datalenght_other').removeAttr('aria-required'); jQuery('#jform_datalenght_other').removeClass('required'); - jform_vvvvwbavxi_required = true; + jform_vvvvwbsvxl_required = true; } } } -// the vvvvwba Some function -function datalenght_vvvvwba_SomeFunc(datalenght_vvvvwba) +// the vvvvwbs Some function +function datalenght_vvvvwbs_SomeFunc(datalenght_vvvvwbs) { // set the function logic - if (datalenght_vvvvwba == 'Other') + if (datalenght_vvvvwbs == 'Other') { return true; } return false; } -// the vvvvwbb function -function vvvvwbb(datadefault_vvvvwbb) +// the vvvvwbt function +function vvvvwbt(datadefault_vvvvwbt) { - if (isSet(datadefault_vvvvwbb) && datadefault_vvvvwbb.constructor !== Array) + if (isSet(datadefault_vvvvwbt) && datadefault_vvvvwbt.constructor !== Array) { - var temp_vvvvwbb = datadefault_vvvvwbb; - var datadefault_vvvvwbb = []; - datadefault_vvvvwbb.push(temp_vvvvwbb); + var temp_vvvvwbt = datadefault_vvvvwbt; + var datadefault_vvvvwbt = []; + datadefault_vvvvwbt.push(temp_vvvvwbt); } - else if (!isSet(datadefault_vvvvwbb)) + else if (!isSet(datadefault_vvvvwbt)) { - var datadefault_vvvvwbb = []; + var datadefault_vvvvwbt = []; } - var datadefault = datadefault_vvvvwbb.some(datadefault_vvvvwbb_SomeFunc); + var datadefault = datadefault_vvvvwbt.some(datadefault_vvvvwbt_SomeFunc); // set this function logic @@ -123,55 +123,55 @@ function vvvvwbb(datadefault_vvvvwbb) { jQuery('#jform_datadefault_other').closest('.control-group').show(); // add required attribute to datadefault_other field - if (jform_vvvvwbbvxj_required) + if (jform_vvvvwbtvxm_required) { updateFieldRequired('datadefault_other',0); jQuery('#jform_datadefault_other').prop('required','required'); jQuery('#jform_datadefault_other').attr('aria-required',true); jQuery('#jform_datadefault_other').addClass('required'); - jform_vvvvwbbvxj_required = false; + jform_vvvvwbtvxm_required = false; } } else { jQuery('#jform_datadefault_other').closest('.control-group').hide(); // remove required attribute from datadefault_other field - if (!jform_vvvvwbbvxj_required) + if (!jform_vvvvwbtvxm_required) { updateFieldRequired('datadefault_other',1); jQuery('#jform_datadefault_other').removeAttr('required'); jQuery('#jform_datadefault_other').removeAttr('aria-required'); jQuery('#jform_datadefault_other').removeClass('required'); - jform_vvvvwbbvxj_required = true; + jform_vvvvwbtvxm_required = true; } } } -// the vvvvwbb Some function -function datadefault_vvvvwbb_SomeFunc(datadefault_vvvvwbb) +// the vvvvwbt Some function +function datadefault_vvvvwbt_SomeFunc(datadefault_vvvvwbt) { // set the function logic - if (datadefault_vvvvwbb == 'Other') + if (datadefault_vvvvwbt == 'Other') { return true; } return false; } -// the vvvvwbc function -function vvvvwbc(datatype_vvvvwbc) +// the vvvvwbu function +function vvvvwbu(datatype_vvvvwbu) { - if (isSet(datatype_vvvvwbc) && datatype_vvvvwbc.constructor !== Array) + if (isSet(datatype_vvvvwbu) && datatype_vvvvwbu.constructor !== Array) { - var temp_vvvvwbc = datatype_vvvvwbc; - var datatype_vvvvwbc = []; - datatype_vvvvwbc.push(temp_vvvvwbc); + var temp_vvvvwbu = datatype_vvvvwbu; + var datatype_vvvvwbu = []; + datatype_vvvvwbu.push(temp_vvvvwbu); } - else if (!isSet(datatype_vvvvwbc)) + else if (!isSet(datatype_vvvvwbu)) { - var datatype_vvvvwbc = []; + var datatype_vvvvwbu = []; } - var datatype = datatype_vvvvwbc.some(datatype_vvvvwbc_SomeFunc); + var datatype = datatype_vvvvwbu.some(datatype_vvvvwbu_SomeFunc); // set this function logic @@ -181,13 +181,13 @@ function vvvvwbc(datatype_vvvvwbc) jQuery('#jform_datalenght').closest('.control-group').show(); jQuery('#jform_indexes').closest('.control-group').show(); // add required attribute to indexes field - if (jform_vvvvwbcvxk_required) + if (jform_vvvvwbuvxn_required) { updateFieldRequired('indexes',0); jQuery('#jform_indexes').prop('required','required'); jQuery('#jform_indexes').attr('aria-required',true); jQuery('#jform_indexes').addClass('required'); - jform_vvvvwbcvxk_required = false; + jform_vvvvwbuvxn_required = false; } } else @@ -196,42 +196,42 @@ function vvvvwbc(datatype_vvvvwbc) jQuery('#jform_datalenght').closest('.control-group').hide(); jQuery('#jform_indexes').closest('.control-group').hide(); // remove required attribute from indexes field - if (!jform_vvvvwbcvxk_required) + if (!jform_vvvvwbuvxn_required) { updateFieldRequired('indexes',1); jQuery('#jform_indexes').removeAttr('required'); jQuery('#jform_indexes').removeAttr('aria-required'); jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwbcvxk_required = true; + jform_vvvvwbuvxn_required = true; } } } -// the vvvvwbc Some function -function datatype_vvvvwbc_SomeFunc(datatype_vvvvwbc) +// the vvvvwbu Some function +function datatype_vvvvwbu_SomeFunc(datatype_vvvvwbu) { // set the function logic - if (datatype_vvvvwbc == 'CHAR' || datatype_vvvvwbc == 'VARCHAR' || datatype_vvvvwbc == 'DATETIME' || datatype_vvvvwbc == 'DATE' || datatype_vvvvwbc == 'TIME' || datatype_vvvvwbc == 'INT' || datatype_vvvvwbc == 'TINYINT' || datatype_vvvvwbc == 'BIGINT' || datatype_vvvvwbc == 'FLOAT' || datatype_vvvvwbc == 'DECIMAL' || datatype_vvvvwbc == 'DOUBLE') + if (datatype_vvvvwbu == 'CHAR' || datatype_vvvvwbu == 'VARCHAR' || datatype_vvvvwbu == 'DATETIME' || datatype_vvvvwbu == 'DATE' || datatype_vvvvwbu == 'TIME' || datatype_vvvvwbu == 'INT' || datatype_vvvvwbu == 'TINYINT' || datatype_vvvvwbu == 'BIGINT' || datatype_vvvvwbu == 'FLOAT' || datatype_vvvvwbu == 'DECIMAL' || datatype_vvvvwbu == 'DOUBLE') { return true; } return false; } -// the vvvvwbd function -function vvvvwbd(datatype_vvvvwbd) +// the vvvvwbv function +function vvvvwbv(datatype_vvvvwbv) { - if (isSet(datatype_vvvvwbd) && datatype_vvvvwbd.constructor !== Array) + if (isSet(datatype_vvvvwbv) && datatype_vvvvwbv.constructor !== Array) { - var temp_vvvvwbd = datatype_vvvvwbd; - var datatype_vvvvwbd = []; - datatype_vvvvwbd.push(temp_vvvvwbd); + var temp_vvvvwbv = datatype_vvvvwbv; + var datatype_vvvvwbv = []; + datatype_vvvvwbv.push(temp_vvvvwbv); } - else if (!isSet(datatype_vvvvwbd)) + else if (!isSet(datatype_vvvvwbv)) { - var datatype_vvvvwbd = []; + var datatype_vvvvwbv = []; } - var datatype = datatype_vvvvwbd.some(datatype_vvvvwbd_SomeFunc); + var datatype = datatype_vvvvwbv.some(datatype_vvvvwbv_SomeFunc); // set this function logic @@ -239,67 +239,67 @@ function vvvvwbd(datatype_vvvvwbd) { jQuery('#jform_store').closest('.control-group').show(); // add required attribute to store field - if (jform_vvvvwbdvxl_required) + if (jform_vvvvwbvvxo_required) { updateFieldRequired('store',0); jQuery('#jform_store').prop('required','required'); jQuery('#jform_store').attr('aria-required',true); jQuery('#jform_store').addClass('required'); - jform_vvvvwbdvxl_required = false; + jform_vvvvwbvvxo_required = false; } } else { jQuery('#jform_store').closest('.control-group').hide(); // remove required attribute from store field - if (!jform_vvvvwbdvxl_required) + if (!jform_vvvvwbvvxo_required) { updateFieldRequired('store',1); jQuery('#jform_store').removeAttr('required'); jQuery('#jform_store').removeAttr('aria-required'); jQuery('#jform_store').removeClass('required'); - jform_vvvvwbdvxl_required = true; + jform_vvvvwbvvxo_required = true; } } } -// the vvvvwbd Some function -function datatype_vvvvwbd_SomeFunc(datatype_vvvvwbd) +// the vvvvwbv Some function +function datatype_vvvvwbv_SomeFunc(datatype_vvvvwbv) { // set the function logic - if (datatype_vvvvwbd == 'CHAR' || datatype_vvvvwbd == 'VARCHAR' || datatype_vvvvwbd == 'TEXT' || datatype_vvvvwbd == 'MEDIUMTEXT' || datatype_vvvvwbd == 'LONGTEXT' || datatype_vvvvwbd == 'BLOB' || datatype_vvvvwbd == 'TINYBLOB' || datatype_vvvvwbd == 'MEDIUMBLOB' || datatype_vvvvwbd == 'LONGBLOB') + if (datatype_vvvvwbv == 'CHAR' || datatype_vvvvwbv == 'VARCHAR' || datatype_vvvvwbv == 'TEXT' || datatype_vvvvwbv == 'MEDIUMTEXT' || datatype_vvvvwbv == 'LONGTEXT' || datatype_vvvvwbv == 'BLOB' || datatype_vvvvwbv == 'TINYBLOB' || datatype_vvvvwbv == 'MEDIUMBLOB' || datatype_vvvvwbv == 'LONGBLOB') { return true; } return false; } -// the vvvvwbe function -function vvvvwbe(store_vvvvwbe,datatype_vvvvwbe) +// the vvvvwbw function +function vvvvwbw(store_vvvvwbw,datatype_vvvvwbw) { - if (isSet(store_vvvvwbe) && store_vvvvwbe.constructor !== Array) + if (isSet(store_vvvvwbw) && store_vvvvwbw.constructor !== Array) { - var temp_vvvvwbe = store_vvvvwbe; - var store_vvvvwbe = []; - store_vvvvwbe.push(temp_vvvvwbe); + var temp_vvvvwbw = store_vvvvwbw; + var store_vvvvwbw = []; + store_vvvvwbw.push(temp_vvvvwbw); } - else if (!isSet(store_vvvvwbe)) + else if (!isSet(store_vvvvwbw)) { - var store_vvvvwbe = []; + var store_vvvvwbw = []; } - var store = store_vvvvwbe.some(store_vvvvwbe_SomeFunc); + var store = store_vvvvwbw.some(store_vvvvwbw_SomeFunc); - if (isSet(datatype_vvvvwbe) && datatype_vvvvwbe.constructor !== Array) + if (isSet(datatype_vvvvwbw) && datatype_vvvvwbw.constructor !== Array) { - var temp_vvvvwbe = datatype_vvvvwbe; - var datatype_vvvvwbe = []; - datatype_vvvvwbe.push(temp_vvvvwbe); + var temp_vvvvwbw = datatype_vvvvwbw; + var datatype_vvvvwbw = []; + datatype_vvvvwbw.push(temp_vvvvwbw); } - else if (!isSet(datatype_vvvvwbe)) + else if (!isSet(datatype_vvvvwbw)) { - var datatype_vvvvwbe = []; + var datatype_vvvvwbw = []; } - var datatype = datatype_vvvvwbe.some(datatype_vvvvwbe_SomeFunc); + var datatype = datatype_vvvvwbw.some(datatype_vvvvwbw_SomeFunc); // set this function logic @@ -313,33 +313,33 @@ function vvvvwbe(store_vvvvwbe,datatype_vvvvwbe) } } -// the vvvvwbe Some function -function store_vvvvwbe_SomeFunc(store_vvvvwbe) +// the vvvvwbw Some function +function store_vvvvwbw_SomeFunc(store_vvvvwbw) { // set the function logic - if (store_vvvvwbe == 4) + if (store_vvvvwbw == 4) { return true; } return false; } -// the vvvvwbe Some function -function datatype_vvvvwbe_SomeFunc(datatype_vvvvwbe) +// the vvvvwbw Some function +function datatype_vvvvwbw_SomeFunc(datatype_vvvvwbw) { // set the function logic - if (datatype_vvvvwbe == 'CHAR' || datatype_vvvvwbe == 'VARCHAR' || datatype_vvvvwbe == 'TEXT' || datatype_vvvvwbe == 'MEDIUMTEXT' || datatype_vvvvwbe == 'LONGTEXT' || datatype_vvvvwbe == 'BLOB' || datatype_vvvvwbe == 'TINYBLOB' || datatype_vvvvwbe == 'MEDIUMBLOB' || datatype_vvvvwbe == 'LONGBLOB') + if (datatype_vvvvwbw == 'CHAR' || datatype_vvvvwbw == 'VARCHAR' || datatype_vvvvwbw == 'TEXT' || datatype_vvvvwbw == 'MEDIUMTEXT' || datatype_vvvvwbw == 'LONGTEXT' || datatype_vvvvwbw == 'BLOB' || datatype_vvvvwbw == 'TINYBLOB' || datatype_vvvvwbw == 'MEDIUMBLOB' || datatype_vvvvwbw == 'LONGBLOB') { return true; } return false; } -// the vvvvwbg function -function vvvvwbg(add_css_view_vvvvwbg) +// the vvvvwby function +function vvvvwby(add_css_view_vvvvwby) { // set the function logic - if (add_css_view_vvvvwbg == 1) + if (add_css_view_vvvvwby == 1) { jQuery('#jform_css_view-lbl').closest('.control-group').show(); } @@ -349,11 +349,11 @@ function vvvvwbg(add_css_view_vvvvwbg) } } -// the vvvvwbh function -function vvvvwbh(add_css_views_vvvvwbh) +// the vvvvwbz function +function vvvvwbz(add_css_views_vvvvwbz) { // set the function logic - if (add_css_views_vvvvwbh == 1) + if (add_css_views_vvvvwbz == 1) { jQuery('#jform_css_views-lbl').closest('.control-group').show(); } @@ -363,11 +363,11 @@ function vvvvwbh(add_css_views_vvvvwbh) } } -// the vvvvwbi function -function vvvvwbi(add_javascript_view_footer_vvvvwbi) +// the vvvvwca function +function vvvvwca(add_javascript_view_footer_vvvvwca) { // set the function logic - if (add_javascript_view_footer_vvvvwbi == 1) + if (add_javascript_view_footer_vvvvwca == 1) { jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show(); } @@ -377,11 +377,11 @@ function vvvvwbi(add_javascript_view_footer_vvvvwbi) } } -// the vvvvwbj function -function vvvvwbj(add_javascript_views_footer_vvvvwbj) +// the vvvvwcb function +function vvvvwcb(add_javascript_views_footer_vvvvwcb) { // set the function logic - if (add_javascript_views_footer_vvvvwbj == 1) + if (add_javascript_views_footer_vvvvwcb == 1) { jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show(); } diff --git a/admin/models/forms/fieldtype.js b/admin/models/forms/fieldtype.js index 31671ac67..8184eac22 100644 --- a/admin/models/forms/fieldtype.js +++ b/admin/models/forms/fieldtype.js @@ -9,82 +9,82 @@ */ // Some Global Values -jform_vvvvwbkvxm_required = false; -jform_vvvvwbmvxn_required = false; -jform_vvvvwbovxo_required = false; -jform_vvvvwbpvxp_required = false; -jform_vvvvwbqvxq_required = false; -jform_vvvvwbvvxr_required = false; -jform_vvvvwbvvxs_required = false; +jform_vvvvwccvxp_required = false; +jform_vvvvwcevxq_required = false; +jform_vvvvwcgvxr_required = false; +jform_vvvvwchvxs_required = false; +jform_vvvvwcivxt_required = false; +jform_vvvvwcnvxu_required = false; +jform_vvvvwcnvxv_required = false; // Initial Script jQuery(document).ready(function() { - var datalenght_vvvvwbk = jQuery("#jform_datalenght").val(); - var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbk(datalenght_vvvvwbk,has_defaults_vvvvwbk); + var datalenght_vvvvwcc = jQuery("#jform_datalenght").val(); + var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwcc(datalenght_vvvvwcc,has_defaults_vvvvwcc); - var datadefault_vvvvwbm = jQuery("#jform_datadefault").val(); - var has_defaults_vvvvwbm = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbm(datadefault_vvvvwbm,has_defaults_vvvvwbm); + var datadefault_vvvvwce = jQuery("#jform_datadefault").val(); + var has_defaults_vvvvwce = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwce(datadefault_vvvvwce,has_defaults_vvvvwce); - var datatype_vvvvwbo = jQuery("#jform_datatype").val(); - var has_defaults_vvvvwbo = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbo(datatype_vvvvwbo,has_defaults_vvvvwbo); + var datatype_vvvvwcg = jQuery("#jform_datatype").val(); + var has_defaults_vvvvwcg = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwcg(datatype_vvvvwcg,has_defaults_vvvvwcg); - var has_defaults_vvvvwbp = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - var datatype_vvvvwbp = jQuery("#jform_datatype").val(); - vvvvwbp(has_defaults_vvvvwbp,datatype_vvvvwbp); + var has_defaults_vvvvwch = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + var datatype_vvvvwch = jQuery("#jform_datatype").val(); + vvvvwch(has_defaults_vvvvwch,datatype_vvvvwch); - var datatype_vvvvwbq = jQuery("#jform_datatype").val(); - var has_defaults_vvvvwbq = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbq(datatype_vvvvwbq,has_defaults_vvvvwbq); + var datatype_vvvvwci = jQuery("#jform_datatype").val(); + var has_defaults_vvvvwci = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwci(datatype_vvvvwci,has_defaults_vvvvwci); - var store_vvvvwbs = jQuery("#jform_store").val(); - var datatype_vvvvwbs = jQuery("#jform_datatype").val(); - var has_defaults_vvvvwbs = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbs(store_vvvvwbs,datatype_vvvvwbs,has_defaults_vvvvwbs); + var store_vvvvwck = jQuery("#jform_store").val(); + var datatype_vvvvwck = jQuery("#jform_datatype").val(); + var has_defaults_vvvvwck = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwck(store_vvvvwck,datatype_vvvvwck,has_defaults_vvvvwck); - var datatype_vvvvwbt = jQuery("#jform_datatype").val(); - var store_vvvvwbt = jQuery("#jform_store").val(); - var has_defaults_vvvvwbt = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbt(datatype_vvvvwbt,store_vvvvwbt,has_defaults_vvvvwbt); + var datatype_vvvvwcl = jQuery("#jform_datatype").val(); + var store_vvvvwcl = jQuery("#jform_store").val(); + var has_defaults_vvvvwcl = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwcl(datatype_vvvvwcl,store_vvvvwcl,has_defaults_vvvvwcl); - var has_defaults_vvvvwbu = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - var store_vvvvwbu = jQuery("#jform_store").val(); - var datatype_vvvvwbu = jQuery("#jform_datatype").val(); - vvvvwbu(has_defaults_vvvvwbu,store_vvvvwbu,datatype_vvvvwbu); + var has_defaults_vvvvwcm = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + var store_vvvvwcm = jQuery("#jform_store").val(); + var datatype_vvvvwcm = jQuery("#jform_datatype").val(); + vvvvwcm(has_defaults_vvvvwcm,store_vvvvwcm,datatype_vvvvwcm); - var has_defaults_vvvvwbv = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbv(has_defaults_vvvvwbv); + var has_defaults_vvvvwcn = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwcn(has_defaults_vvvvwcn); }); -// the vvvvwbk function -function vvvvwbk(datalenght_vvvvwbk,has_defaults_vvvvwbk) +// the vvvvwcc function +function vvvvwcc(datalenght_vvvvwcc,has_defaults_vvvvwcc) { - if (isSet(datalenght_vvvvwbk) && datalenght_vvvvwbk.constructor !== Array) + if (isSet(datalenght_vvvvwcc) && datalenght_vvvvwcc.constructor !== Array) { - var temp_vvvvwbk = datalenght_vvvvwbk; - var datalenght_vvvvwbk = []; - datalenght_vvvvwbk.push(temp_vvvvwbk); + var temp_vvvvwcc = datalenght_vvvvwcc; + var datalenght_vvvvwcc = []; + datalenght_vvvvwcc.push(temp_vvvvwcc); } - else if (!isSet(datalenght_vvvvwbk)) + else if (!isSet(datalenght_vvvvwcc)) { - var datalenght_vvvvwbk = []; + var datalenght_vvvvwcc = []; } - var datalenght = datalenght_vvvvwbk.some(datalenght_vvvvwbk_SomeFunc); + var datalenght = datalenght_vvvvwcc.some(datalenght_vvvvwcc_SomeFunc); - if (isSet(has_defaults_vvvvwbk) && has_defaults_vvvvwbk.constructor !== Array) + if (isSet(has_defaults_vvvvwcc) && has_defaults_vvvvwcc.constructor !== Array) { - var temp_vvvvwbk = has_defaults_vvvvwbk; - var has_defaults_vvvvwbk = []; - has_defaults_vvvvwbk.push(temp_vvvvwbk); + var temp_vvvvwcc = has_defaults_vvvvwcc; + var has_defaults_vvvvwcc = []; + has_defaults_vvvvwcc.push(temp_vvvvwcc); } - else if (!isSet(has_defaults_vvvvwbk)) + else if (!isSet(has_defaults_vvvvwcc)) { - var has_defaults_vvvvwbk = []; + var has_defaults_vvvvwcc = []; } - var has_defaults = has_defaults_vvvvwbk.some(has_defaults_vvvvwbk_SomeFunc); + var has_defaults = has_defaults_vvvvwcc.some(has_defaults_vvvvwcc_SomeFunc); // set this function logic @@ -92,78 +92,78 @@ function vvvvwbk(datalenght_vvvvwbk,has_defaults_vvvvwbk) { jQuery('#jform_datalenght_other').closest('.control-group').show(); // add required attribute to datalenght_other field - if (jform_vvvvwbkvxm_required) + if (jform_vvvvwccvxp_required) { updateFieldRequired('datalenght_other',0); jQuery('#jform_datalenght_other').prop('required','required'); jQuery('#jform_datalenght_other').attr('aria-required',true); jQuery('#jform_datalenght_other').addClass('required'); - jform_vvvvwbkvxm_required = false; + jform_vvvvwccvxp_required = false; } } else { jQuery('#jform_datalenght_other').closest('.control-group').hide(); // remove required attribute from datalenght_other field - if (!jform_vvvvwbkvxm_required) + if (!jform_vvvvwccvxp_required) { updateFieldRequired('datalenght_other',1); jQuery('#jform_datalenght_other').removeAttr('required'); jQuery('#jform_datalenght_other').removeAttr('aria-required'); jQuery('#jform_datalenght_other').removeClass('required'); - jform_vvvvwbkvxm_required = true; + jform_vvvvwccvxp_required = true; } } } -// the vvvvwbk Some function -function datalenght_vvvvwbk_SomeFunc(datalenght_vvvvwbk) +// the vvvvwcc Some function +function datalenght_vvvvwcc_SomeFunc(datalenght_vvvvwcc) { // set the function logic - if (datalenght_vvvvwbk == 'Other') + if (datalenght_vvvvwcc == 'Other') { return true; } return false; } -// the vvvvwbk Some function -function has_defaults_vvvvwbk_SomeFunc(has_defaults_vvvvwbk) +// the vvvvwcc Some function +function has_defaults_vvvvwcc_SomeFunc(has_defaults_vvvvwcc) { // set the function logic - if (has_defaults_vvvvwbk == 1) + if (has_defaults_vvvvwcc == 1) { return true; } return false; } -// the vvvvwbm function -function vvvvwbm(datadefault_vvvvwbm,has_defaults_vvvvwbm) +// the vvvvwce function +function vvvvwce(datadefault_vvvvwce,has_defaults_vvvvwce) { - if (isSet(datadefault_vvvvwbm) && datadefault_vvvvwbm.constructor !== Array) + if (isSet(datadefault_vvvvwce) && datadefault_vvvvwce.constructor !== Array) { - var temp_vvvvwbm = datadefault_vvvvwbm; - var datadefault_vvvvwbm = []; - datadefault_vvvvwbm.push(temp_vvvvwbm); + var temp_vvvvwce = datadefault_vvvvwce; + var datadefault_vvvvwce = []; + datadefault_vvvvwce.push(temp_vvvvwce); } - else if (!isSet(datadefault_vvvvwbm)) + else if (!isSet(datadefault_vvvvwce)) { - var datadefault_vvvvwbm = []; + var datadefault_vvvvwce = []; } - var datadefault = datadefault_vvvvwbm.some(datadefault_vvvvwbm_SomeFunc); + var datadefault = datadefault_vvvvwce.some(datadefault_vvvvwce_SomeFunc); - if (isSet(has_defaults_vvvvwbm) && has_defaults_vvvvwbm.constructor !== Array) + if (isSet(has_defaults_vvvvwce) && has_defaults_vvvvwce.constructor !== Array) { - var temp_vvvvwbm = has_defaults_vvvvwbm; - var has_defaults_vvvvwbm = []; - has_defaults_vvvvwbm.push(temp_vvvvwbm); + var temp_vvvvwce = has_defaults_vvvvwce; + var has_defaults_vvvvwce = []; + has_defaults_vvvvwce.push(temp_vvvvwce); } - else if (!isSet(has_defaults_vvvvwbm)) + else if (!isSet(has_defaults_vvvvwce)) { - var has_defaults_vvvvwbm = []; + var has_defaults_vvvvwce = []; } - var has_defaults = has_defaults_vvvvwbm.some(has_defaults_vvvvwbm_SomeFunc); + var has_defaults = has_defaults_vvvvwce.some(has_defaults_vvvvwce_SomeFunc); // set this function logic @@ -171,78 +171,78 @@ function vvvvwbm(datadefault_vvvvwbm,has_defaults_vvvvwbm) { jQuery('#jform_datadefault_other').closest('.control-group').show(); // add required attribute to datadefault_other field - if (jform_vvvvwbmvxn_required) + if (jform_vvvvwcevxq_required) { updateFieldRequired('datadefault_other',0); jQuery('#jform_datadefault_other').prop('required','required'); jQuery('#jform_datadefault_other').attr('aria-required',true); jQuery('#jform_datadefault_other').addClass('required'); - jform_vvvvwbmvxn_required = false; + jform_vvvvwcevxq_required = false; } } else { jQuery('#jform_datadefault_other').closest('.control-group').hide(); // remove required attribute from datadefault_other field - if (!jform_vvvvwbmvxn_required) + if (!jform_vvvvwcevxq_required) { updateFieldRequired('datadefault_other',1); jQuery('#jform_datadefault_other').removeAttr('required'); jQuery('#jform_datadefault_other').removeAttr('aria-required'); jQuery('#jform_datadefault_other').removeClass('required'); - jform_vvvvwbmvxn_required = true; + jform_vvvvwcevxq_required = true; } } } -// the vvvvwbm Some function -function datadefault_vvvvwbm_SomeFunc(datadefault_vvvvwbm) +// the vvvvwce Some function +function datadefault_vvvvwce_SomeFunc(datadefault_vvvvwce) { // set the function logic - if (datadefault_vvvvwbm == 'Other') + if (datadefault_vvvvwce == 'Other') { return true; } return false; } -// the vvvvwbm Some function -function has_defaults_vvvvwbm_SomeFunc(has_defaults_vvvvwbm) +// the vvvvwce Some function +function has_defaults_vvvvwce_SomeFunc(has_defaults_vvvvwce) { // set the function logic - if (has_defaults_vvvvwbm == 1) + if (has_defaults_vvvvwce == 1) { return true; } return false; } -// the vvvvwbo function -function vvvvwbo(datatype_vvvvwbo,has_defaults_vvvvwbo) +// the vvvvwcg function +function vvvvwcg(datatype_vvvvwcg,has_defaults_vvvvwcg) { - if (isSet(datatype_vvvvwbo) && datatype_vvvvwbo.constructor !== Array) + if (isSet(datatype_vvvvwcg) && datatype_vvvvwcg.constructor !== Array) { - var temp_vvvvwbo = datatype_vvvvwbo; - var datatype_vvvvwbo = []; - datatype_vvvvwbo.push(temp_vvvvwbo); + var temp_vvvvwcg = datatype_vvvvwcg; + var datatype_vvvvwcg = []; + datatype_vvvvwcg.push(temp_vvvvwcg); } - else if (!isSet(datatype_vvvvwbo)) + else if (!isSet(datatype_vvvvwcg)) { - var datatype_vvvvwbo = []; + var datatype_vvvvwcg = []; } - var datatype = datatype_vvvvwbo.some(datatype_vvvvwbo_SomeFunc); + var datatype = datatype_vvvvwcg.some(datatype_vvvvwcg_SomeFunc); - if (isSet(has_defaults_vvvvwbo) && has_defaults_vvvvwbo.constructor !== Array) + if (isSet(has_defaults_vvvvwcg) && has_defaults_vvvvwcg.constructor !== Array) { - var temp_vvvvwbo = has_defaults_vvvvwbo; - var has_defaults_vvvvwbo = []; - has_defaults_vvvvwbo.push(temp_vvvvwbo); + var temp_vvvvwcg = has_defaults_vvvvwcg; + var has_defaults_vvvvwcg = []; + has_defaults_vvvvwcg.push(temp_vvvvwcg); } - else if (!isSet(has_defaults_vvvvwbo)) + else if (!isSet(has_defaults_vvvvwcg)) { - var has_defaults_vvvvwbo = []; + var has_defaults_vvvvwcg = []; } - var has_defaults = has_defaults_vvvvwbo.some(has_defaults_vvvvwbo_SomeFunc); + var has_defaults = has_defaults_vvvvwcg.some(has_defaults_vvvvwcg_SomeFunc); // set this function logic @@ -252,13 +252,13 @@ function vvvvwbo(datatype_vvvvwbo,has_defaults_vvvvwbo) jQuery('#jform_datalenght').closest('.control-group').show(); jQuery('#jform_indexes').closest('.control-group').show(); // add required attribute to indexes field - if (jform_vvvvwbovxo_required) + if (jform_vvvvwcgvxr_required) { updateFieldRequired('indexes',0); jQuery('#jform_indexes').prop('required','required'); jQuery('#jform_indexes').attr('aria-required',true); jQuery('#jform_indexes').addClass('required'); - jform_vvvvwbovxo_required = false; + jform_vvvvwcgvxr_required = false; } } else @@ -267,65 +267,65 @@ function vvvvwbo(datatype_vvvvwbo,has_defaults_vvvvwbo) jQuery('#jform_datalenght').closest('.control-group').hide(); jQuery('#jform_indexes').closest('.control-group').hide(); // remove required attribute from indexes field - if (!jform_vvvvwbovxo_required) + if (!jform_vvvvwcgvxr_required) { updateFieldRequired('indexes',1); jQuery('#jform_indexes').removeAttr('required'); jQuery('#jform_indexes').removeAttr('aria-required'); jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwbovxo_required = true; + jform_vvvvwcgvxr_required = true; } } } -// the vvvvwbo Some function -function datatype_vvvvwbo_SomeFunc(datatype_vvvvwbo) +// the vvvvwcg Some function +function datatype_vvvvwcg_SomeFunc(datatype_vvvvwcg) { // set the function logic - if (datatype_vvvvwbo == 'CHAR' || datatype_vvvvwbo == 'VARCHAR' || datatype_vvvvwbo == 'DATETIME' || datatype_vvvvwbo == 'DATE' || datatype_vvvvwbo == 'TIME' || datatype_vvvvwbo == 'INT' || datatype_vvvvwbo == 'TINYINT' || datatype_vvvvwbo == 'BIGINT' || datatype_vvvvwbo == 'FLOAT' || datatype_vvvvwbo == 'DECIMAL' || datatype_vvvvwbo == 'DOUBLE') + if (datatype_vvvvwcg == 'CHAR' || datatype_vvvvwcg == 'VARCHAR' || datatype_vvvvwcg == 'DATETIME' || datatype_vvvvwcg == 'DATE' || datatype_vvvvwcg == 'TIME' || datatype_vvvvwcg == 'INT' || datatype_vvvvwcg == 'TINYINT' || datatype_vvvvwcg == 'BIGINT' || datatype_vvvvwcg == 'FLOAT' || datatype_vvvvwcg == 'DECIMAL' || datatype_vvvvwcg == 'DOUBLE') { return true; } return false; } -// the vvvvwbo Some function -function has_defaults_vvvvwbo_SomeFunc(has_defaults_vvvvwbo) +// the vvvvwcg Some function +function has_defaults_vvvvwcg_SomeFunc(has_defaults_vvvvwcg) { // set the function logic - if (has_defaults_vvvvwbo == 1) + if (has_defaults_vvvvwcg == 1) { return true; } return false; } -// the vvvvwbp function -function vvvvwbp(has_defaults_vvvvwbp,datatype_vvvvwbp) +// the vvvvwch function +function vvvvwch(has_defaults_vvvvwch,datatype_vvvvwch) { - if (isSet(has_defaults_vvvvwbp) && has_defaults_vvvvwbp.constructor !== Array) + if (isSet(has_defaults_vvvvwch) && has_defaults_vvvvwch.constructor !== Array) { - var temp_vvvvwbp = has_defaults_vvvvwbp; - var has_defaults_vvvvwbp = []; - has_defaults_vvvvwbp.push(temp_vvvvwbp); + var temp_vvvvwch = has_defaults_vvvvwch; + var has_defaults_vvvvwch = []; + has_defaults_vvvvwch.push(temp_vvvvwch); } - else if (!isSet(has_defaults_vvvvwbp)) + else if (!isSet(has_defaults_vvvvwch)) { - var has_defaults_vvvvwbp = []; + var has_defaults_vvvvwch = []; } - var has_defaults = has_defaults_vvvvwbp.some(has_defaults_vvvvwbp_SomeFunc); + var has_defaults = has_defaults_vvvvwch.some(has_defaults_vvvvwch_SomeFunc); - if (isSet(datatype_vvvvwbp) && datatype_vvvvwbp.constructor !== Array) + if (isSet(datatype_vvvvwch) && datatype_vvvvwch.constructor !== Array) { - var temp_vvvvwbp = datatype_vvvvwbp; - var datatype_vvvvwbp = []; - datatype_vvvvwbp.push(temp_vvvvwbp); + var temp_vvvvwch = datatype_vvvvwch; + var datatype_vvvvwch = []; + datatype_vvvvwch.push(temp_vvvvwch); } - else if (!isSet(datatype_vvvvwbp)) + else if (!isSet(datatype_vvvvwch)) { - var datatype_vvvvwbp = []; + var datatype_vvvvwch = []; } - var datatype = datatype_vvvvwbp.some(datatype_vvvvwbp_SomeFunc); + var datatype = datatype_vvvvwch.some(datatype_vvvvwch_SomeFunc); // set this function logic @@ -335,13 +335,13 @@ function vvvvwbp(has_defaults_vvvvwbp,datatype_vvvvwbp) jQuery('#jform_datalenght').closest('.control-group').show(); jQuery('#jform_indexes').closest('.control-group').show(); // add required attribute to indexes field - if (jform_vvvvwbpvxp_required) + if (jform_vvvvwchvxs_required) { updateFieldRequired('indexes',0); jQuery('#jform_indexes').prop('required','required'); jQuery('#jform_indexes').attr('aria-required',true); jQuery('#jform_indexes').addClass('required'); - jform_vvvvwbpvxp_required = false; + jform_vvvvwchvxs_required = false; } } else @@ -350,65 +350,65 @@ function vvvvwbp(has_defaults_vvvvwbp,datatype_vvvvwbp) jQuery('#jform_datalenght').closest('.control-group').hide(); jQuery('#jform_indexes').closest('.control-group').hide(); // remove required attribute from indexes field - if (!jform_vvvvwbpvxp_required) + if (!jform_vvvvwchvxs_required) { updateFieldRequired('indexes',1); jQuery('#jform_indexes').removeAttr('required'); jQuery('#jform_indexes').removeAttr('aria-required'); jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwbpvxp_required = true; + jform_vvvvwchvxs_required = true; } } } -// the vvvvwbp Some function -function has_defaults_vvvvwbp_SomeFunc(has_defaults_vvvvwbp) +// the vvvvwch Some function +function has_defaults_vvvvwch_SomeFunc(has_defaults_vvvvwch) { // set the function logic - if (has_defaults_vvvvwbp == 1) + if (has_defaults_vvvvwch == 1) { return true; } return false; } -// the vvvvwbp Some function -function datatype_vvvvwbp_SomeFunc(datatype_vvvvwbp) +// the vvvvwch Some function +function datatype_vvvvwch_SomeFunc(datatype_vvvvwch) { // set the function logic - if (datatype_vvvvwbp == 'CHAR' || datatype_vvvvwbp == 'VARCHAR' || datatype_vvvvwbp == 'DATETIME' || datatype_vvvvwbp == 'DATE' || datatype_vvvvwbp == 'TIME' || datatype_vvvvwbp == 'INT' || datatype_vvvvwbp == 'TINYINT' || datatype_vvvvwbp == 'BIGINT' || datatype_vvvvwbp == 'FLOAT' || datatype_vvvvwbp == 'DECIMAL' || datatype_vvvvwbp == 'DOUBLE') + if (datatype_vvvvwch == 'CHAR' || datatype_vvvvwch == 'VARCHAR' || datatype_vvvvwch == 'DATETIME' || datatype_vvvvwch == 'DATE' || datatype_vvvvwch == 'TIME' || datatype_vvvvwch == 'INT' || datatype_vvvvwch == 'TINYINT' || datatype_vvvvwch == 'BIGINT' || datatype_vvvvwch == 'FLOAT' || datatype_vvvvwch == 'DECIMAL' || datatype_vvvvwch == 'DOUBLE') { return true; } return false; } -// the vvvvwbq function -function vvvvwbq(datatype_vvvvwbq,has_defaults_vvvvwbq) +// the vvvvwci function +function vvvvwci(datatype_vvvvwci,has_defaults_vvvvwci) { - if (isSet(datatype_vvvvwbq) && datatype_vvvvwbq.constructor !== Array) + if (isSet(datatype_vvvvwci) && datatype_vvvvwci.constructor !== Array) { - var temp_vvvvwbq = datatype_vvvvwbq; - var datatype_vvvvwbq = []; - datatype_vvvvwbq.push(temp_vvvvwbq); + var temp_vvvvwci = datatype_vvvvwci; + var datatype_vvvvwci = []; + datatype_vvvvwci.push(temp_vvvvwci); } - else if (!isSet(datatype_vvvvwbq)) + else if (!isSet(datatype_vvvvwci)) { - var datatype_vvvvwbq = []; + var datatype_vvvvwci = []; } - var datatype = datatype_vvvvwbq.some(datatype_vvvvwbq_SomeFunc); + var datatype = datatype_vvvvwci.some(datatype_vvvvwci_SomeFunc); - if (isSet(has_defaults_vvvvwbq) && has_defaults_vvvvwbq.constructor !== Array) + if (isSet(has_defaults_vvvvwci) && has_defaults_vvvvwci.constructor !== Array) { - var temp_vvvvwbq = has_defaults_vvvvwbq; - var has_defaults_vvvvwbq = []; - has_defaults_vvvvwbq.push(temp_vvvvwbq); + var temp_vvvvwci = has_defaults_vvvvwci; + var has_defaults_vvvvwci = []; + has_defaults_vvvvwci.push(temp_vvvvwci); } - else if (!isSet(has_defaults_vvvvwbq)) + else if (!isSet(has_defaults_vvvvwci)) { - var has_defaults_vvvvwbq = []; + var has_defaults_vvvvwci = []; } - var has_defaults = has_defaults_vvvvwbq.some(has_defaults_vvvvwbq_SomeFunc); + var has_defaults = has_defaults_vvvvwci.some(has_defaults_vvvvwci_SomeFunc); // set this function logic @@ -416,90 +416,90 @@ function vvvvwbq(datatype_vvvvwbq,has_defaults_vvvvwbq) { jQuery('#jform_store').closest('.control-group').show(); // add required attribute to store field - if (jform_vvvvwbqvxq_required) + if (jform_vvvvwcivxt_required) { updateFieldRequired('store',0); jQuery('#jform_store').prop('required','required'); jQuery('#jform_store').attr('aria-required',true); jQuery('#jform_store').addClass('required'); - jform_vvvvwbqvxq_required = false; + jform_vvvvwcivxt_required = false; } } else { jQuery('#jform_store').closest('.control-group').hide(); // remove required attribute from store field - if (!jform_vvvvwbqvxq_required) + if (!jform_vvvvwcivxt_required) { updateFieldRequired('store',1); jQuery('#jform_store').removeAttr('required'); jQuery('#jform_store').removeAttr('aria-required'); jQuery('#jform_store').removeClass('required'); - jform_vvvvwbqvxq_required = true; + jform_vvvvwcivxt_required = true; } } } -// the vvvvwbq Some function -function datatype_vvvvwbq_SomeFunc(datatype_vvvvwbq) +// the vvvvwci Some function +function datatype_vvvvwci_SomeFunc(datatype_vvvvwci) { // set the function logic - if (datatype_vvvvwbq == 'CHAR' || datatype_vvvvwbq == 'VARCHAR' || datatype_vvvvwbq == 'TEXT' || datatype_vvvvwbq == 'MEDIUMTEXT' || datatype_vvvvwbq == 'LONGTEXT' || datatype_vvvvwbq == 'BLOB' || datatype_vvvvwbq == 'TINYBLOB' || datatype_vvvvwbq == 'MEDIUMBLOB' || datatype_vvvvwbq == 'LONGBLOB') + if (datatype_vvvvwci == 'CHAR' || datatype_vvvvwci == 'VARCHAR' || datatype_vvvvwci == 'TEXT' || datatype_vvvvwci == 'MEDIUMTEXT' || datatype_vvvvwci == 'LONGTEXT' || datatype_vvvvwci == 'BLOB' || datatype_vvvvwci == 'TINYBLOB' || datatype_vvvvwci == 'MEDIUMBLOB' || datatype_vvvvwci == 'LONGBLOB') { return true; } return false; } -// the vvvvwbq Some function -function has_defaults_vvvvwbq_SomeFunc(has_defaults_vvvvwbq) +// the vvvvwci Some function +function has_defaults_vvvvwci_SomeFunc(has_defaults_vvvvwci) { // set the function logic - if (has_defaults_vvvvwbq == 1) + if (has_defaults_vvvvwci == 1) { return true; } return false; } -// the vvvvwbs function -function vvvvwbs(store_vvvvwbs,datatype_vvvvwbs,has_defaults_vvvvwbs) +// the vvvvwck function +function vvvvwck(store_vvvvwck,datatype_vvvvwck,has_defaults_vvvvwck) { - if (isSet(store_vvvvwbs) && store_vvvvwbs.constructor !== Array) + if (isSet(store_vvvvwck) && store_vvvvwck.constructor !== Array) { - var temp_vvvvwbs = store_vvvvwbs; - var store_vvvvwbs = []; - store_vvvvwbs.push(temp_vvvvwbs); + var temp_vvvvwck = store_vvvvwck; + var store_vvvvwck = []; + store_vvvvwck.push(temp_vvvvwck); } - else if (!isSet(store_vvvvwbs)) + else if (!isSet(store_vvvvwck)) { - var store_vvvvwbs = []; + var store_vvvvwck = []; } - var store = store_vvvvwbs.some(store_vvvvwbs_SomeFunc); + var store = store_vvvvwck.some(store_vvvvwck_SomeFunc); - if (isSet(datatype_vvvvwbs) && datatype_vvvvwbs.constructor !== Array) + if (isSet(datatype_vvvvwck) && datatype_vvvvwck.constructor !== Array) { - var temp_vvvvwbs = datatype_vvvvwbs; - var datatype_vvvvwbs = []; - datatype_vvvvwbs.push(temp_vvvvwbs); + var temp_vvvvwck = datatype_vvvvwck; + var datatype_vvvvwck = []; + datatype_vvvvwck.push(temp_vvvvwck); } - else if (!isSet(datatype_vvvvwbs)) + else if (!isSet(datatype_vvvvwck)) { - var datatype_vvvvwbs = []; + var datatype_vvvvwck = []; } - var datatype = datatype_vvvvwbs.some(datatype_vvvvwbs_SomeFunc); + var datatype = datatype_vvvvwck.some(datatype_vvvvwck_SomeFunc); - if (isSet(has_defaults_vvvvwbs) && has_defaults_vvvvwbs.constructor !== Array) + if (isSet(has_defaults_vvvvwck) && has_defaults_vvvvwck.constructor !== Array) { - var temp_vvvvwbs = has_defaults_vvvvwbs; - var has_defaults_vvvvwbs = []; - has_defaults_vvvvwbs.push(temp_vvvvwbs); + var temp_vvvvwck = has_defaults_vvvvwck; + var has_defaults_vvvvwck = []; + has_defaults_vvvvwck.push(temp_vvvvwck); } - else if (!isSet(has_defaults_vvvvwbs)) + else if (!isSet(has_defaults_vvvvwck)) { - var has_defaults_vvvvwbs = []; + var has_defaults_vvvvwck = []; } - var has_defaults = has_defaults_vvvvwbs.some(has_defaults_vvvvwbs_SomeFunc); + var has_defaults = has_defaults_vvvvwck.some(has_defaults_vvvvwck_SomeFunc); // set this function logic @@ -513,77 +513,77 @@ function vvvvwbs(store_vvvvwbs,datatype_vvvvwbs,has_defaults_vvvvwbs) } } -// the vvvvwbs Some function -function store_vvvvwbs_SomeFunc(store_vvvvwbs) +// the vvvvwck Some function +function store_vvvvwck_SomeFunc(store_vvvvwck) { // set the function logic - if (store_vvvvwbs == 4) + if (store_vvvvwck == 4) { return true; } return false; } -// the vvvvwbs Some function -function datatype_vvvvwbs_SomeFunc(datatype_vvvvwbs) +// the vvvvwck Some function +function datatype_vvvvwck_SomeFunc(datatype_vvvvwck) { // set the function logic - if (datatype_vvvvwbs == 'CHAR' || datatype_vvvvwbs == 'VARCHAR' || datatype_vvvvwbs == 'TEXT' || datatype_vvvvwbs == 'MEDIUMTEXT' || datatype_vvvvwbs == 'LONGTEXT' || datatype_vvvvwbs == 'BLOB' || datatype_vvvvwbs == 'TINYBLOB' || datatype_vvvvwbs == 'MEDIUMBLOB' || datatype_vvvvwbs == 'LONGBLOB') + if (datatype_vvvvwck == 'CHAR' || datatype_vvvvwck == 'VARCHAR' || datatype_vvvvwck == 'TEXT' || datatype_vvvvwck == 'MEDIUMTEXT' || datatype_vvvvwck == 'LONGTEXT' || datatype_vvvvwck == 'BLOB' || datatype_vvvvwck == 'TINYBLOB' || datatype_vvvvwck == 'MEDIUMBLOB' || datatype_vvvvwck == 'LONGBLOB') { return true; } return false; } -// the vvvvwbs Some function -function has_defaults_vvvvwbs_SomeFunc(has_defaults_vvvvwbs) +// the vvvvwck Some function +function has_defaults_vvvvwck_SomeFunc(has_defaults_vvvvwck) { // set the function logic - if (has_defaults_vvvvwbs == 1) + if (has_defaults_vvvvwck == 1) { return true; } return false; } -// the vvvvwbt function -function vvvvwbt(datatype_vvvvwbt,store_vvvvwbt,has_defaults_vvvvwbt) +// the vvvvwcl function +function vvvvwcl(datatype_vvvvwcl,store_vvvvwcl,has_defaults_vvvvwcl) { - if (isSet(datatype_vvvvwbt) && datatype_vvvvwbt.constructor !== Array) + if (isSet(datatype_vvvvwcl) && datatype_vvvvwcl.constructor !== Array) { - var temp_vvvvwbt = datatype_vvvvwbt; - var datatype_vvvvwbt = []; - datatype_vvvvwbt.push(temp_vvvvwbt); + var temp_vvvvwcl = datatype_vvvvwcl; + var datatype_vvvvwcl = []; + datatype_vvvvwcl.push(temp_vvvvwcl); } - else if (!isSet(datatype_vvvvwbt)) + else if (!isSet(datatype_vvvvwcl)) { - var datatype_vvvvwbt = []; + var datatype_vvvvwcl = []; } - var datatype = datatype_vvvvwbt.some(datatype_vvvvwbt_SomeFunc); + var datatype = datatype_vvvvwcl.some(datatype_vvvvwcl_SomeFunc); - if (isSet(store_vvvvwbt) && store_vvvvwbt.constructor !== Array) + if (isSet(store_vvvvwcl) && store_vvvvwcl.constructor !== Array) { - var temp_vvvvwbt = store_vvvvwbt; - var store_vvvvwbt = []; - store_vvvvwbt.push(temp_vvvvwbt); + var temp_vvvvwcl = store_vvvvwcl; + var store_vvvvwcl = []; + store_vvvvwcl.push(temp_vvvvwcl); } - else if (!isSet(store_vvvvwbt)) + else if (!isSet(store_vvvvwcl)) { - var store_vvvvwbt = []; + var store_vvvvwcl = []; } - var store = store_vvvvwbt.some(store_vvvvwbt_SomeFunc); + var store = store_vvvvwcl.some(store_vvvvwcl_SomeFunc); - if (isSet(has_defaults_vvvvwbt) && has_defaults_vvvvwbt.constructor !== Array) + if (isSet(has_defaults_vvvvwcl) && has_defaults_vvvvwcl.constructor !== Array) { - var temp_vvvvwbt = has_defaults_vvvvwbt; - var has_defaults_vvvvwbt = []; - has_defaults_vvvvwbt.push(temp_vvvvwbt); + var temp_vvvvwcl = has_defaults_vvvvwcl; + var has_defaults_vvvvwcl = []; + has_defaults_vvvvwcl.push(temp_vvvvwcl); } - else if (!isSet(has_defaults_vvvvwbt)) + else if (!isSet(has_defaults_vvvvwcl)) { - var has_defaults_vvvvwbt = []; + var has_defaults_vvvvwcl = []; } - var has_defaults = has_defaults_vvvvwbt.some(has_defaults_vvvvwbt_SomeFunc); + var has_defaults = has_defaults_vvvvwcl.some(has_defaults_vvvvwcl_SomeFunc); // set this function logic @@ -597,77 +597,77 @@ function vvvvwbt(datatype_vvvvwbt,store_vvvvwbt,has_defaults_vvvvwbt) } } -// the vvvvwbt Some function -function datatype_vvvvwbt_SomeFunc(datatype_vvvvwbt) +// the vvvvwcl Some function +function datatype_vvvvwcl_SomeFunc(datatype_vvvvwcl) { // set the function logic - if (datatype_vvvvwbt == 'CHAR' || datatype_vvvvwbt == 'VARCHAR' || datatype_vvvvwbt == 'TEXT' || datatype_vvvvwbt == 'MEDIUMTEXT' || datatype_vvvvwbt == 'LONGTEXT' || datatype_vvvvwbt == 'BLOB' || datatype_vvvvwbt == 'TINYBLOB' || datatype_vvvvwbt == 'MEDIUMBLOB' || datatype_vvvvwbt == 'LONGBLOB') + if (datatype_vvvvwcl == 'CHAR' || datatype_vvvvwcl == 'VARCHAR' || datatype_vvvvwcl == 'TEXT' || datatype_vvvvwcl == 'MEDIUMTEXT' || datatype_vvvvwcl == 'LONGTEXT' || datatype_vvvvwcl == 'BLOB' || datatype_vvvvwcl == 'TINYBLOB' || datatype_vvvvwcl == 'MEDIUMBLOB' || datatype_vvvvwcl == 'LONGBLOB') { return true; } return false; } -// the vvvvwbt Some function -function store_vvvvwbt_SomeFunc(store_vvvvwbt) +// the vvvvwcl Some function +function store_vvvvwcl_SomeFunc(store_vvvvwcl) { // set the function logic - if (store_vvvvwbt == 4) + if (store_vvvvwcl == 4) { return true; } return false; } -// the vvvvwbt Some function -function has_defaults_vvvvwbt_SomeFunc(has_defaults_vvvvwbt) +// the vvvvwcl Some function +function has_defaults_vvvvwcl_SomeFunc(has_defaults_vvvvwcl) { // set the function logic - if (has_defaults_vvvvwbt == 1) + if (has_defaults_vvvvwcl == 1) { return true; } return false; } -// the vvvvwbu function -function vvvvwbu(has_defaults_vvvvwbu,store_vvvvwbu,datatype_vvvvwbu) +// the vvvvwcm function +function vvvvwcm(has_defaults_vvvvwcm,store_vvvvwcm,datatype_vvvvwcm) { - if (isSet(has_defaults_vvvvwbu) && has_defaults_vvvvwbu.constructor !== Array) + if (isSet(has_defaults_vvvvwcm) && has_defaults_vvvvwcm.constructor !== Array) { - var temp_vvvvwbu = has_defaults_vvvvwbu; - var has_defaults_vvvvwbu = []; - has_defaults_vvvvwbu.push(temp_vvvvwbu); + var temp_vvvvwcm = has_defaults_vvvvwcm; + var has_defaults_vvvvwcm = []; + has_defaults_vvvvwcm.push(temp_vvvvwcm); } - else if (!isSet(has_defaults_vvvvwbu)) + else if (!isSet(has_defaults_vvvvwcm)) { - var has_defaults_vvvvwbu = []; + var has_defaults_vvvvwcm = []; } - var has_defaults = has_defaults_vvvvwbu.some(has_defaults_vvvvwbu_SomeFunc); + var has_defaults = has_defaults_vvvvwcm.some(has_defaults_vvvvwcm_SomeFunc); - if (isSet(store_vvvvwbu) && store_vvvvwbu.constructor !== Array) + if (isSet(store_vvvvwcm) && store_vvvvwcm.constructor !== Array) { - var temp_vvvvwbu = store_vvvvwbu; - var store_vvvvwbu = []; - store_vvvvwbu.push(temp_vvvvwbu); + var temp_vvvvwcm = store_vvvvwcm; + var store_vvvvwcm = []; + store_vvvvwcm.push(temp_vvvvwcm); } - else if (!isSet(store_vvvvwbu)) + else if (!isSet(store_vvvvwcm)) { - var store_vvvvwbu = []; + var store_vvvvwcm = []; } - var store = store_vvvvwbu.some(store_vvvvwbu_SomeFunc); + var store = store_vvvvwcm.some(store_vvvvwcm_SomeFunc); - if (isSet(datatype_vvvvwbu) && datatype_vvvvwbu.constructor !== Array) + if (isSet(datatype_vvvvwcm) && datatype_vvvvwcm.constructor !== Array) { - var temp_vvvvwbu = datatype_vvvvwbu; - var datatype_vvvvwbu = []; - datatype_vvvvwbu.push(temp_vvvvwbu); + var temp_vvvvwcm = datatype_vvvvwcm; + var datatype_vvvvwcm = []; + datatype_vvvvwcm.push(temp_vvvvwcm); } - else if (!isSet(datatype_vvvvwbu)) + else if (!isSet(datatype_vvvvwcm)) { - var datatype_vvvvwbu = []; + var datatype_vvvvwcm = []; } - var datatype = datatype_vvvvwbu.some(datatype_vvvvwbu_SomeFunc); + var datatype = datatype_vvvvwcm.some(datatype_vvvvwcm_SomeFunc); // set this function logic @@ -681,87 +681,87 @@ function vvvvwbu(has_defaults_vvvvwbu,store_vvvvwbu,datatype_vvvvwbu) } } -// the vvvvwbu Some function -function has_defaults_vvvvwbu_SomeFunc(has_defaults_vvvvwbu) +// the vvvvwcm Some function +function has_defaults_vvvvwcm_SomeFunc(has_defaults_vvvvwcm) { // set the function logic - if (has_defaults_vvvvwbu == 1) + if (has_defaults_vvvvwcm == 1) { return true; } return false; } -// the vvvvwbu Some function -function store_vvvvwbu_SomeFunc(store_vvvvwbu) +// the vvvvwcm Some function +function store_vvvvwcm_SomeFunc(store_vvvvwcm) { // set the function logic - if (store_vvvvwbu == 4) + if (store_vvvvwcm == 4) { return true; } return false; } -// the vvvvwbu Some function -function datatype_vvvvwbu_SomeFunc(datatype_vvvvwbu) +// the vvvvwcm Some function +function datatype_vvvvwcm_SomeFunc(datatype_vvvvwcm) { // set the function logic - if (datatype_vvvvwbu == 'CHAR' || datatype_vvvvwbu == 'VARCHAR' || datatype_vvvvwbu == 'TEXT' || datatype_vvvvwbu == 'MEDIUMTEXT' || datatype_vvvvwbu == 'LONGTEXT' || datatype_vvvvwbu == 'BLOB' || datatype_vvvvwbu == 'TINYBLOB' || datatype_vvvvwbu == 'MEDIUMBLOB' || datatype_vvvvwbu == 'LONGBLOB') + if (datatype_vvvvwcm == 'CHAR' || datatype_vvvvwcm == 'VARCHAR' || datatype_vvvvwcm == 'TEXT' || datatype_vvvvwcm == 'MEDIUMTEXT' || datatype_vvvvwcm == 'LONGTEXT' || datatype_vvvvwcm == 'BLOB' || datatype_vvvvwcm == 'TINYBLOB' || datatype_vvvvwcm == 'MEDIUMBLOB' || datatype_vvvvwcm == 'LONGBLOB') { return true; } return false; } -// the vvvvwbv function -function vvvvwbv(has_defaults_vvvvwbv) +// the vvvvwcn function +function vvvvwcn(has_defaults_vvvvwcn) { // set the function logic - if (has_defaults_vvvvwbv == 1) + if (has_defaults_vvvvwcn == 1) { jQuery('#jform_datatype').closest('.control-group').show(); // add required attribute to datatype field - if (jform_vvvvwbvvxr_required) + if (jform_vvvvwcnvxu_required) { updateFieldRequired('datatype',0); jQuery('#jform_datatype').prop('required','required'); jQuery('#jform_datatype').attr('aria-required',true); jQuery('#jform_datatype').addClass('required'); - jform_vvvvwbvvxr_required = false; + jform_vvvvwcnvxu_required = false; } jQuery('#jform_null_switch').closest('.control-group').show(); // add required attribute to null_switch field - if (jform_vvvvwbvvxs_required) + if (jform_vvvvwcnvxv_required) { updateFieldRequired('null_switch',0); jQuery('#jform_null_switch').prop('required','required'); jQuery('#jform_null_switch').attr('aria-required',true); jQuery('#jform_null_switch').addClass('required'); - jform_vvvvwbvvxs_required = false; + jform_vvvvwcnvxv_required = false; } } else { jQuery('#jform_datatype').closest('.control-group').hide(); // remove required attribute from datatype field - if (!jform_vvvvwbvvxr_required) + if (!jform_vvvvwcnvxu_required) { updateFieldRequired('datatype',1); jQuery('#jform_datatype').removeAttr('required'); jQuery('#jform_datatype').removeAttr('aria-required'); jQuery('#jform_datatype').removeClass('required'); - jform_vvvvwbvvxr_required = true; + jform_vvvvwcnvxu_required = true; } jQuery('#jform_null_switch').closest('.control-group').hide(); // remove required attribute from null_switch field - if (!jform_vvvvwbvvxs_required) + if (!jform_vvvvwcnvxv_required) { updateFieldRequired('null_switch',1); jQuery('#jform_null_switch').removeAttr('required'); jQuery('#jform_null_switch').removeAttr('aria-required'); jQuery('#jform_null_switch').removeClass('required'); - jform_vvvvwbvvxs_required = true; + jform_vvvvwcnvxv_required = true; } } } diff --git a/admin/models/forms/help_document.js b/admin/models/forms/help_document.js index 78daca80f..07882001f 100644 --- a/admin/models/forms/help_document.js +++ b/admin/models/forms/help_document.js @@ -9,112 +9,112 @@ */ // Some Global Values -jform_vvvvwcgvye_required = false; -jform_vvvvwchvyf_required = false; -jform_vvvvwcivyg_required = false; -jform_vvvvwcjvyh_required = false; -jform_vvvvwclvyi_required = false; +jform_vvvvwcyvyh_required = false; +jform_vvvvwczvyi_required = false; +jform_vvvvwdavyj_required = false; +jform_vvvvwdbvyk_required = false; +jform_vvvvwddvyl_required = false; // Initial Script jQuery(document).ready(function() { - var location_vvvvwcg = jQuery("#jform_location input[type='radio']:checked").val(); - vvvvwcg(location_vvvvwcg); + var location_vvvvwcy = jQuery("#jform_location input[type='radio']:checked").val(); + vvvvwcy(location_vvvvwcy); - var location_vvvvwch = jQuery("#jform_location input[type='radio']:checked").val(); - vvvvwch(location_vvvvwch); + var location_vvvvwcz = jQuery("#jform_location input[type='radio']:checked").val(); + vvvvwcz(location_vvvvwcz); - var type_vvvvwci = jQuery("#jform_type").val(); - vvvvwci(type_vvvvwci); + var type_vvvvwda = jQuery("#jform_type").val(); + vvvvwda(type_vvvvwda); - var type_vvvvwcj = jQuery("#jform_type").val(); - vvvvwcj(type_vvvvwcj); + var type_vvvvwdb = jQuery("#jform_type").val(); + vvvvwdb(type_vvvvwdb); - var type_vvvvwck = jQuery("#jform_type").val(); - vvvvwck(type_vvvvwck); + var type_vvvvwdc = jQuery("#jform_type").val(); + vvvvwdc(type_vvvvwdc); - var target_vvvvwcl = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwcl(target_vvvvwcl); + var target_vvvvwdd = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwdd(target_vvvvwdd); }); -// the vvvvwcg function -function vvvvwcg(location_vvvvwcg) +// the vvvvwcy function +function vvvvwcy(location_vvvvwcy) { // set the function logic - if (location_vvvvwcg == 1) + if (location_vvvvwcy == 1) { jQuery('#jform_admin_view').closest('.control-group').show(); // add required attribute to admin_view field - if (jform_vvvvwcgvye_required) + if (jform_vvvvwcyvyh_required) { updateFieldRequired('admin_view',0); jQuery('#jform_admin_view').prop('required','required'); jQuery('#jform_admin_view').attr('aria-required',true); jQuery('#jform_admin_view').addClass('required'); - jform_vvvvwcgvye_required = false; + jform_vvvvwcyvyh_required = false; } } else { jQuery('#jform_admin_view').closest('.control-group').hide(); // remove required attribute from admin_view field - if (!jform_vvvvwcgvye_required) + if (!jform_vvvvwcyvyh_required) { updateFieldRequired('admin_view',1); jQuery('#jform_admin_view').removeAttr('required'); jQuery('#jform_admin_view').removeAttr('aria-required'); jQuery('#jform_admin_view').removeClass('required'); - jform_vvvvwcgvye_required = true; + jform_vvvvwcyvyh_required = true; } } } -// the vvvvwch function -function vvvvwch(location_vvvvwch) +// the vvvvwcz function +function vvvvwcz(location_vvvvwcz) { // set the function logic - if (location_vvvvwch == 2) + if (location_vvvvwcz == 2) { jQuery('#jform_site_view').closest('.control-group').show(); // add required attribute to site_view field - if (jform_vvvvwchvyf_required) + if (jform_vvvvwczvyi_required) { updateFieldRequired('site_view',0); jQuery('#jform_site_view').prop('required','required'); jQuery('#jform_site_view').attr('aria-required',true); jQuery('#jform_site_view').addClass('required'); - jform_vvvvwchvyf_required = false; + jform_vvvvwczvyi_required = false; } } else { jQuery('#jform_site_view').closest('.control-group').hide(); // remove required attribute from site_view field - if (!jform_vvvvwchvyf_required) + if (!jform_vvvvwczvyi_required) { updateFieldRequired('site_view',1); jQuery('#jform_site_view').removeAttr('required'); jQuery('#jform_site_view').removeAttr('aria-required'); jQuery('#jform_site_view').removeClass('required'); - jform_vvvvwchvyf_required = true; + jform_vvvvwczvyi_required = true; } } } -// the vvvvwci function -function vvvvwci(type_vvvvwci) +// the vvvvwda function +function vvvvwda(type_vvvvwda) { - if (isSet(type_vvvvwci) && type_vvvvwci.constructor !== Array) + if (isSet(type_vvvvwda) && type_vvvvwda.constructor !== Array) { - var temp_vvvvwci = type_vvvvwci; - var type_vvvvwci = []; - type_vvvvwci.push(temp_vvvvwci); + var temp_vvvvwda = type_vvvvwda; + var type_vvvvwda = []; + type_vvvvwda.push(temp_vvvvwda); } - else if (!isSet(type_vvvvwci)) + else if (!isSet(type_vvvvwda)) { - var type_vvvvwci = []; + var type_vvvvwda = []; } - var type = type_vvvvwci.some(type_vvvvwci_SomeFunc); + var type = type_vvvvwda.some(type_vvvvwda_SomeFunc); // set this function logic @@ -122,55 +122,55 @@ function vvvvwci(type_vvvvwci) { jQuery('#jform_url').closest('.control-group').show(); // add required attribute to url field - if (jform_vvvvwcivyg_required) + if (jform_vvvvwdavyj_required) { updateFieldRequired('url',0); jQuery('#jform_url').prop('required','required'); jQuery('#jform_url').attr('aria-required',true); jQuery('#jform_url').addClass('required'); - jform_vvvvwcivyg_required = false; + jform_vvvvwdavyj_required = false; } } else { jQuery('#jform_url').closest('.control-group').hide(); // remove required attribute from url field - if (!jform_vvvvwcivyg_required) + if (!jform_vvvvwdavyj_required) { updateFieldRequired('url',1); jQuery('#jform_url').removeAttr('required'); jQuery('#jform_url').removeAttr('aria-required'); jQuery('#jform_url').removeClass('required'); - jform_vvvvwcivyg_required = true; + jform_vvvvwdavyj_required = true; } } } -// the vvvvwci Some function -function type_vvvvwci_SomeFunc(type_vvvvwci) +// the vvvvwda Some function +function type_vvvvwda_SomeFunc(type_vvvvwda) { // set the function logic - if (type_vvvvwci == 3) + if (type_vvvvwda == 3) { return true; } return false; } -// the vvvvwcj function -function vvvvwcj(type_vvvvwcj) +// the vvvvwdb function +function vvvvwdb(type_vvvvwdb) { - if (isSet(type_vvvvwcj) && type_vvvvwcj.constructor !== Array) + if (isSet(type_vvvvwdb) && type_vvvvwdb.constructor !== Array) { - var temp_vvvvwcj = type_vvvvwcj; - var type_vvvvwcj = []; - type_vvvvwcj.push(temp_vvvvwcj); + var temp_vvvvwdb = type_vvvvwdb; + var type_vvvvwdb = []; + type_vvvvwdb.push(temp_vvvvwdb); } - else if (!isSet(type_vvvvwcj)) + else if (!isSet(type_vvvvwdb)) { - var type_vvvvwcj = []; + var type_vvvvwdb = []; } - var type = type_vvvvwcj.some(type_vvvvwcj_SomeFunc); + var type = type_vvvvwdb.some(type_vvvvwdb_SomeFunc); // set this function logic @@ -178,55 +178,55 @@ function vvvvwcj(type_vvvvwcj) { jQuery('#jform_article').closest('.control-group').show(); // add required attribute to article field - if (jform_vvvvwcjvyh_required) + if (jform_vvvvwdbvyk_required) { updateFieldRequired('article',0); jQuery('#jform_article').prop('required','required'); jQuery('#jform_article').attr('aria-required',true); jQuery('#jform_article').addClass('required'); - jform_vvvvwcjvyh_required = false; + jform_vvvvwdbvyk_required = false; } } else { jQuery('#jform_article').closest('.control-group').hide(); // remove required attribute from article field - if (!jform_vvvvwcjvyh_required) + if (!jform_vvvvwdbvyk_required) { updateFieldRequired('article',1); jQuery('#jform_article').removeAttr('required'); jQuery('#jform_article').removeAttr('aria-required'); jQuery('#jform_article').removeClass('required'); - jform_vvvvwcjvyh_required = true; + jform_vvvvwdbvyk_required = true; } } } -// the vvvvwcj Some function -function type_vvvvwcj_SomeFunc(type_vvvvwcj) +// the vvvvwdb Some function +function type_vvvvwdb_SomeFunc(type_vvvvwdb) { // set the function logic - if (type_vvvvwcj == 1) + if (type_vvvvwdb == 1) { return true; } return false; } -// the vvvvwck function -function vvvvwck(type_vvvvwck) +// the vvvvwdc function +function vvvvwdc(type_vvvvwdc) { - if (isSet(type_vvvvwck) && type_vvvvwck.constructor !== Array) + if (isSet(type_vvvvwdc) && type_vvvvwdc.constructor !== Array) { - var temp_vvvvwck = type_vvvvwck; - var type_vvvvwck = []; - type_vvvvwck.push(temp_vvvvwck); + var temp_vvvvwdc = type_vvvvwdc; + var type_vvvvwdc = []; + type_vvvvwdc.push(temp_vvvvwdc); } - else if (!isSet(type_vvvvwck)) + else if (!isSet(type_vvvvwdc)) { - var type_vvvvwck = []; + var type_vvvvwdc = []; } - var type = type_vvvvwck.some(type_vvvvwck_SomeFunc); + var type = type_vvvvwdc.some(type_vvvvwdc_SomeFunc); // set this function logic @@ -240,45 +240,45 @@ function vvvvwck(type_vvvvwck) } } -// the vvvvwck Some function -function type_vvvvwck_SomeFunc(type_vvvvwck) +// the vvvvwdc Some function +function type_vvvvwdc_SomeFunc(type_vvvvwdc) { // set the function logic - if (type_vvvvwck == 2) + if (type_vvvvwdc == 2) { return true; } return false; } -// the vvvvwcl function -function vvvvwcl(target_vvvvwcl) +// the vvvvwdd function +function vvvvwdd(target_vvvvwdd) { // set the function logic - if (target_vvvvwcl == 1) + if (target_vvvvwdd == 1) { jQuery('#jform_groups').closest('.control-group').show(); // add required attribute to groups field - if (jform_vvvvwclvyi_required) + if (jform_vvvvwddvyl_required) { updateFieldRequired('groups',0); jQuery('#jform_groups').prop('required','required'); jQuery('#jform_groups').attr('aria-required',true); jQuery('#jform_groups').addClass('required'); - jform_vvvvwclvyi_required = false; + jform_vvvvwddvyl_required = false; } } else { jQuery('#jform_groups').closest('.control-group').hide(); // remove required attribute from groups field - if (!jform_vvvvwclvyi_required) + if (!jform_vvvvwddvyl_required) { updateFieldRequired('groups',1); jQuery('#jform_groups').removeAttr('required'); jQuery('#jform_groups').removeAttr('aria-required'); jQuery('#jform_groups').removeClass('required'); - jform_vvvvwclvyi_required = true; + jform_vvvvwddvyl_required = true; } } } diff --git a/admin/models/forms/joomla_plugin.js b/admin/models/forms/joomla_plugin.js index b1af96344..93e61d826 100644 --- a/admin/models/forms/joomla_plugin.js +++ b/admin/models/forms/joomla_plugin.js @@ -10,6 +10,9 @@ // Some Global Values jform_vvvvvxevwd_required = false; +jform_vvvvvxsvwe_required = false; +jform_vvvvvxtvwf_required = false; +jform_vvvvvxuvwg_required = false; // Initial Script jQuery(document).ready(function() @@ -28,6 +31,58 @@ jQuery(document).ready(function() var add_head_vvvvvxe = jQuery("#jform_add_head input[type='radio']:checked").val(); var class_extends_vvvvvxe = jQuery("#jform_class_extends").val(); vvvvvxe(add_head_vvvvvxe,class_extends_vvvvvxe); + + var add_php_preflight_install_vvvvvxg = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val(); + vvvvvxg(add_php_preflight_install_vvvvvxg); + + var add_php_preflight_update_vvvvvxh = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val(); + vvvvvxh(add_php_preflight_update_vvvvvxh); + + var add_php_preflight_uninstall_vvvvvxi = jQuery("#jform_add_php_preflight_uninstall input[type='radio']:checked").val(); + vvvvvxi(add_php_preflight_uninstall_vvvvvxi); + + var add_php_postflight_install_vvvvvxj = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val(); + vvvvvxj(add_php_postflight_install_vvvvvxj); + + var add_php_postflight_update_vvvvvxk = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val(); + vvvvvxk(add_php_postflight_update_vvvvvxk); + + var add_php_method_uninstall_vvvvvxl = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val(); + vvvvvxl(add_php_method_uninstall_vvvvvxl); + + var update_server_target_vvvvvxm = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + var add_update_server_vvvvvxm = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvxm(update_server_target_vvvvvxm,add_update_server_vvvvvxm); + + var add_update_server_vvvvvxn = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + var update_server_target_vvvvvxn = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + vvvvvxn(add_update_server_vvvvvxn,update_server_target_vvvvvxn); + + var update_server_target_vvvvvxo = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + var add_update_server_vvvvvxo = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvxo(update_server_target_vvvvvxo,add_update_server_vvvvvxo); + + var update_server_target_vvvvvxq = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + var add_update_server_vvvvvxq = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvxq(update_server_target_vvvvvxq,add_update_server_vvvvvxq); + + var add_update_server_vvvvvxs = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvxs(add_update_server_vvvvvxs); + + var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxt(add_sql_vvvvvxt); + + var add_sql_uninstall_vvvvvxu = jQuery("#jform_add_sql_uninstall input[type='radio']:checked").val(); + vvvvvxu(add_sql_uninstall_vvvvvxu); + + var add_update_server_vvvvvxv = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvxv(add_update_server_vvvvvxv); + + var add_sales_server_vvvvvxw = jQuery("#jform_add_sales_server input[type='radio']:checked").val(); + vvvvvxw(add_sales_server_vvvvvxw); + + var addreadme_vvvvvxx = jQuery("#jform_addreadme input[type='radio']:checked").val(); + vvvvvxx(addreadme_vvvvvxx); }); // the vvvvvxb function @@ -277,6 +332,288 @@ function class_extends_vvvvvxe_SomeFunc(class_extends_vvvvvxe) return false; } +// the vvvvvxg function +function vvvvvxg(add_php_preflight_install_vvvvvxg) +{ + // set the function logic + if (add_php_preflight_install_vvvvvxg == 1) + { + jQuery('#jform_php_preflight_install-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_preflight_install-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxh function +function vvvvvxh(add_php_preflight_update_vvvvvxh) +{ + // set the function logic + if (add_php_preflight_update_vvvvvxh == 1) + { + jQuery('#jform_php_preflight_update-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_preflight_update-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxi function +function vvvvvxi(add_php_preflight_uninstall_vvvvvxi) +{ + // set the function logic + if (add_php_preflight_uninstall_vvvvvxi == 1) + { + jQuery('#jform_php_preflight_uninstall-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_preflight_uninstall-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxj function +function vvvvvxj(add_php_postflight_install_vvvvvxj) +{ + // set the function logic + if (add_php_postflight_install_vvvvvxj == 1) + { + jQuery('#jform_php_postflight_install-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_postflight_install-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxk function +function vvvvvxk(add_php_postflight_update_vvvvvxk) +{ + // set the function logic + if (add_php_postflight_update_vvvvvxk == 1) + { + jQuery('#jform_php_postflight_update-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_postflight_update-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxl function +function vvvvvxl(add_php_method_uninstall_vvvvvxl) +{ + // set the function logic + if (add_php_method_uninstall_vvvvvxl == 1) + { + jQuery('#jform_php_method_uninstall-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_php_method_uninstall-lbl').closest('.control-group').hide(); + } +} + +// the vvvvvxm function +function vvvvvxm(update_server_target_vvvvvxm,add_update_server_vvvvvxm) +{ + // set the function logic + if (update_server_target_vvvvvxm == 1 && add_update_server_vvvvvxm == 1) + { + jQuery('#jform_update_server').closest('.control-group').show(); + jQuery('.note_update_server_note_ftp').closest('.control-group').show(); + } + else + { + jQuery('#jform_update_server').closest('.control-group').hide(); + jQuery('.note_update_server_note_ftp').closest('.control-group').hide(); + } +} + +// the vvvvvxn function +function vvvvvxn(add_update_server_vvvvvxn,update_server_target_vvvvvxn) +{ + // set the function logic + if (add_update_server_vvvvvxn == 1 && update_server_target_vvvvvxn == 1) + { + jQuery('#jform_update_server').closest('.control-group').show(); + jQuery('.note_update_server_note_ftp').closest('.control-group').show(); + } + else + { + jQuery('#jform_update_server').closest('.control-group').hide(); + jQuery('.note_update_server_note_ftp').closest('.control-group').hide(); + } +} + +// the vvvvvxo function +function vvvvvxo(update_server_target_vvvvvxo,add_update_server_vvvvvxo) +{ + // set the function logic + if (update_server_target_vvvvvxo == 2 && add_update_server_vvvvvxo == 1) + { + jQuery('.note_update_server_note_zip').closest('.control-group').show(); + } + else + { + jQuery('.note_update_server_note_zip').closest('.control-group').hide(); + } +} + +// the vvvvvxq function +function vvvvvxq(update_server_target_vvvvvxq,add_update_server_vvvvvxq) +{ + // set the function logic + if (update_server_target_vvvvvxq == 3 && add_update_server_vvvvvxq == 1) + { + jQuery('.note_update_server_note_other').closest('.control-group').show(); + } + else + { + jQuery('.note_update_server_note_other').closest('.control-group').hide(); + } +} + +// the vvvvvxs function +function vvvvvxs(add_update_server_vvvvvxs) +{ + // set the function logic + if (add_update_server_vvvvvxs == 1) + { + jQuery('#jform_update_server_target').closest('.control-group').show(); + // add required attribute to update_server_target field + if (jform_vvvvvxsvwe_required) + { + updateFieldRequired('update_server_target',0); + jQuery('#jform_update_server_target').prop('required','required'); + jQuery('#jform_update_server_target').attr('aria-required',true); + jQuery('#jform_update_server_target').addClass('required'); + jform_vvvvvxsvwe_required = false; + } + } + else + { + jQuery('#jform_update_server_target').closest('.control-group').hide(); + // remove required attribute from update_server_target field + if (!jform_vvvvvxsvwe_required) + { + updateFieldRequired('update_server_target',1); + jQuery('#jform_update_server_target').removeAttr('required'); + jQuery('#jform_update_server_target').removeAttr('aria-required'); + jQuery('#jform_update_server_target').removeClass('required'); + jform_vvvvvxsvwe_required = true; + } + } +} + +// the vvvvvxt function +function vvvvvxt(add_sql_vvvvvxt) +{ + // set the function logic + if (add_sql_vvvvvxt == 1) + { + jQuery('#jform_sql').closest('.control-group').show(); + // add required attribute to sql field + if (jform_vvvvvxtvwf_required) + { + updateFieldRequired('sql',0); + jQuery('#jform_sql').prop('required','required'); + jQuery('#jform_sql').attr('aria-required',true); + jQuery('#jform_sql').addClass('required'); + jform_vvvvvxtvwf_required = false; + } + } + else + { + jQuery('#jform_sql').closest('.control-group').hide(); + // remove required attribute from sql field + if (!jform_vvvvvxtvwf_required) + { + updateFieldRequired('sql',1); + jQuery('#jform_sql').removeAttr('required'); + jQuery('#jform_sql').removeAttr('aria-required'); + jQuery('#jform_sql').removeClass('required'); + jform_vvvvvxtvwf_required = true; + } + } +} + +// the vvvvvxu function +function vvvvvxu(add_sql_uninstall_vvvvvxu) +{ + // set the function logic + if (add_sql_uninstall_vvvvvxu == 1) + { + jQuery('#jform_sql_uninstall').closest('.control-group').show(); + // add required attribute to sql_uninstall field + if (jform_vvvvvxuvwg_required) + { + updateFieldRequired('sql_uninstall',0); + jQuery('#jform_sql_uninstall').prop('required','required'); + jQuery('#jform_sql_uninstall').attr('aria-required',true); + jQuery('#jform_sql_uninstall').addClass('required'); + jform_vvvvvxuvwg_required = false; + } + } + else + { + jQuery('#jform_sql_uninstall').closest('.control-group').hide(); + // remove required attribute from sql_uninstall field + if (!jform_vvvvvxuvwg_required) + { + updateFieldRequired('sql_uninstall',1); + jQuery('#jform_sql_uninstall').removeAttr('required'); + jQuery('#jform_sql_uninstall').removeAttr('aria-required'); + jQuery('#jform_sql_uninstall').removeClass('required'); + jform_vvvvvxuvwg_required = true; + } + } +} + +// the vvvvvxv function +function vvvvvxv(add_update_server_vvvvvxv) +{ + // set the function logic + if (add_update_server_vvvvvxv == 1) + { + jQuery('#jform_update_server_url').closest('.control-group').show(); + } + else + { + jQuery('#jform_update_server_url').closest('.control-group').hide(); + } +} + +// the vvvvvxw function +function vvvvvxw(add_sales_server_vvvvvxw) +{ + // set the function logic + if (add_sales_server_vvvvvxw == 1) + { + jQuery('#jform_sales_server').closest('.control-group').show(); + } + else + { + jQuery('#jform_sales_server').closest('.control-group').hide(); + } +} + +// the vvvvvxx function +function vvvvvxx(addreadme_vvvvvxx) +{ + // set the function logic + if (addreadme_vvvvvxx == 1) + { + jQuery('#jform_readme-lbl').closest('.control-group').show(); + } + else + { + jQuery('#jform_readme-lbl').closest('.control-group').hide(); + } +} + // update required fields function updateFieldRequired(name,status) { diff --git a/admin/models/forms/joomla_plugin.xml b/admin/models/forms/joomla_plugin.xml index e36c0067d..1e34ea6c7 100644 --- a/admin/models/forms/joomla_plugin.xml +++ b/admin/models/forms/joomla_plugin.xml @@ -121,80 +121,96 @@ required="true" button="true" /> - + -