From 34efe32002deed4733d6bea7ca2103e9838b8da7 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Fri, 9 Mar 2018 05:26:44 +0200 Subject: [PATCH] Added the feature to use admin and custom admin views as the dashboard of the back-end of a component, requested in gh-148 --- README.md | 12 +- admin/README.txt | 12 +- admin/assets/css/joomla_component.css | 5 +- admin/compiler/joomla_3/JControllerLegacy.php | 19 +- admin/controller.php | 19 +- admin/helpers/compiler/a_Get.php | 2 +- admin/helpers/compiler/b_Structure.php | 79 +- admin/helpers/compiler/e_Interpretation.php | 41 +- admin/helpers/compiler/f_Infusion.php | 34 +- .../en-GB/en-GB.com_componentbuilder.ini | 45 +- admin/layouts/field/details_left.php | 2 +- admin/layouts/joomla_component/php_left.php | 2 +- admin/layouts/joomla_component/php_right.php | 56 + admin/models/ajax.php | 8 +- admin/models/compiler.php | 23 +- admin/models/fields/dynamicdashboard.php | 217 +++ admin/models/forms/admin_view.js | 674 ++++---- admin/models/forms/custom_admin_view.js | 210 +-- admin/models/forms/custom_code.js | 84 +- admin/models/forms/dynamic_get.js | 1464 ++++++++--------- admin/models/forms/field.js | 474 +++--- admin/models/forms/field.xml | 11 +- admin/models/forms/help_document.js | 326 ++-- admin/models/forms/joomla_component.js | 54 +- admin/models/forms/joomla_component.xml | 736 +++++---- admin/models/forms/layout.js | 20 +- admin/models/forms/library.js | 262 +-- admin/models/forms/server.js | 542 +++--- admin/models/forms/site_view.js | 238 +-- admin/models/forms/template.js | 20 +- admin/models/joomla_component.php | 204 +-- admin/models/joomla_components.php | 36 +- admin/sql/install.mysql.utf8.sql | 34 +- admin/sql/updates/mysql/2.6.17.sql | 5 + admin/views/admin_view/tmpl/edit.php | 328 ++-- admin/views/custom_admin_view/tmpl/edit.php | 100 +- admin/views/custom_code/tmpl/edit.php | 144 +- admin/views/dynamic_get/tmpl/edit.php | 446 ++--- admin/views/field/tmpl/edit.php | 162 +- admin/views/help_document/tmpl/edit.php | 90 +- admin/views/joomla_component/tmpl/edit.php | 44 +- admin/views/layout/tmpl/edit.php | 10 +- admin/views/library/tmpl/edit.php | 70 +- admin/views/server/tmpl/edit.php | 86 +- admin/views/site_view/tmpl/edit.php | 110 +- admin/views/template/tmpl/edit.php | 10 +- componentbuilder.xml | 6 +- componentbuilder_update_server.xml | 17 + script.php | 10 +- 49 files changed, 4086 insertions(+), 3517 deletions(-) create mode 100644 admin/layouts/joomla_component/php_right.php create mode 100644 admin/models/fields/dynamicdashboard.php create mode 100644 admin/sql/updates/mysql/2.6.17.sql diff --git a/README.md b/README.md index 15711b7ae..6f121b995 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,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.6.17) 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.6.18) 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) @@ -126,13 +126,13 @@ Component Builder is mapped as a component in itself on my local development env + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](http://joomlacomponentbuilder.com) + *First Build*: 30th April, 2015 -+ *Last Build*: 6th March, 2018 -+ *Version*: 2.6.17 ++ *Last Build*: 9th March, 2018 ++ *Version*: 2.6.18 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html -+ *Line count*: **183633** -+ *Field count*: **1645** -+ *File count*: **1169** ++ *Line count*: **184097** ++ *Field count*: **1651** ++ *File count*: **1172** + *Folder count*: **189** > This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com). diff --git a/admin/README.txt b/admin/README.txt index 15711b7ae..6f121b995 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -9,7 +9,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.6.17) 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.6.18) 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) @@ -126,13 +126,13 @@ Component Builder is mapped as a component in itself on my local development env + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](http://joomlacomponentbuilder.com) + *First Build*: 30th April, 2015 -+ *Last Build*: 6th March, 2018 -+ *Version*: 2.6.17 ++ *Last Build*: 9th March, 2018 ++ *Version*: 2.6.18 + *Copyright*: Copyright (C) 2015. All Rights Reserved + *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html -+ *Line count*: **183633** -+ *Field count*: **1645** -+ *File count*: **1169** ++ *Line count*: **184097** ++ *Field count*: **1651** ++ *File count*: **1172** + *Folder count*: **189** > This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com). diff --git a/admin/assets/css/joomla_component.css b/admin/assets/css/joomla_component.css index d1060adb5..0017fd394 100644 --- a/admin/assets/css/joomla_component.css +++ b/admin/assets/css/joomla_component.css @@ -24,4 +24,7 @@ /* CSS Document */ - + +#jform_dashboard_chzn { +width: 100% !important; +} diff --git a/admin/compiler/joomla_3/JControllerLegacy.php b/admin/compiler/joomla_3/JControllerLegacy.php index 96a5e8685..93888bf89 100644 --- a/admin/compiler/joomla_3/JControllerLegacy.php +++ b/admin/compiler/joomla_3/JControllerLegacy.php @@ -37,6 +37,23 @@ jimport('joomla.application.component.controller'); */ class ###Component###Controller extends JControllerLegacy { + /** + * Constructor. + * + * @param array $config An optional associative array of configuration settings. + * Recognized key values include 'name', 'default_task', 'model_path', and + * 'view_path' (this list is not meant to be comprehensive). + * + * @since 3.0 + */ + public function __construct($config = array()) + { + // set the default view + $config['default_view'] = '###DASHBOARDVIEW###'; + + parent::__construct($config); + } + /** * display task * @@ -45,7 +62,7 @@ class ###Component###Controller extends JControllerLegacy function display($cachable = false, $urlparams = false) { // set default view if not set - $view = $this->input->getCmd('view', '###Component###'); + $view = $this->input->getCmd('view', '###DASHBOARDVIEW###'); $data = $this->getViewRelation($view); $layout = $this->input->get('layout', null, 'WORD'); $id = $this->input->getInt('id'); diff --git a/admin/controller.php b/admin/controller.php index 94c1b24f3..b433701cf 100644 --- a/admin/controller.php +++ b/admin/controller.php @@ -34,6 +34,23 @@ jimport('joomla.application.component.controller'); */ class ComponentbuilderController extends JControllerLegacy { + /** + * Constructor. + * + * @param array $config An optional associative array of configuration settings. + * Recognized key values include 'name', 'default_task', 'model_path', and + * 'view_path' (this list is not meant to be comprehensive). + * + * @since 3.0 + */ + public function __construct($config = array()) + { + // set the default view + $config['default_view'] = 'componentbuilder'; + + parent::__construct($config); + } + /** * display task * @@ -42,7 +59,7 @@ class ComponentbuilderController extends JControllerLegacy function display($cachable = false, $urlparams = false) { // set default view if not set - $view = $this->input->getCmd('view', 'Componentbuilder'); + $view = $this->input->getCmd('view', 'componentbuilder'); $data = $this->getViewRelation($view); $layout = $this->input->get('layout', null, 'WORD'); $id = $this->input->getInt('id'); diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php index 99f355f86..09e4c4f7e 100644 --- a/admin/helpers/compiler/a_Get.php +++ b/admin/helpers/compiler/a_Get.php @@ -1135,10 +1135,10 @@ class Get { $component->readme = ''; } + // set lang now $nowLang = $this->lang; $this->lang = 'admin'; - // dashboard methods $component->dashboard_tab = (isset($component->dashboard_tab) && ComponentbuilderHelper::checkJson($component->dashboard_tab)) ? json_decode($component->dashboard_tab, true) : null; if (ComponentbuilderHelper::checkArray($component->dashboard_tab)) diff --git a/admin/helpers/compiler/b_Structure.php b/admin/helpers/compiler/b_Structure.php index d0a82d443..d399d1da6 100644 --- a/admin/helpers/compiler/b_Structure.php +++ b/admin/helpers/compiler/b_Structure.php @@ -320,6 +320,13 @@ class Structure extends Get */ protected $lastModifiedDate = array(); + /** + * The default view switch + * + * @var bool/string + */ + public $dynamicDashboard = false; + /** * Constructor */ @@ -349,6 +356,8 @@ class Structure extends Get $this->setLibaries(); // set the Joomla Version Data $this->joomlaVersionData = $this->setJoomlaVersionData(); + // set the dashboard + $this->setDynamicDashboard(); // set the new folders if (!$this->setFolders()) { @@ -524,6 +533,67 @@ class Structure extends Get } } + /** + * set the dynamic dashboard if set + * + * @return void + * + */ + private function setDynamicDashboard() + { + // only do the dashboard stuff it the default is used + if (isset($this->componentData->dashboard_type) && 2 == $this->componentData->dashboard_type + && isset($this->componentData->dashboard) && ComponentbuilderHelper::checkString($this->componentData->dashboard) + && strpos($this->componentData->dashboard, '_') !== false) + { + // set the default view + $getter = explode('_',$this->componentData->dashboard); + if (count($getter) == 2 && is_numeric($getter[1])) + { + $id = $getter[1]; + // custom admin view + if ('C' === $getter[0]) + { + $dashboard = array_filter($this->componentData->custom_admin_views, function($view) use($id){ + if (isset($view['customadminview']) && $id == $view['customadminview']) + { + return true; + } + return false; + }); + // check if somthing was returned + if (count($dashboard) && isset($dashboard[0]['settings']) && isset($dashboard[0]['settings']->code)) + { + $this->dynamicDashboard = $dashboard[0]['settings']->code; + } + } + // admin view + elseif ('A' === $getter[0]) + { + $dashboard = array_filter($this->componentData->admin_views, function($view) use($id){ + if (isset($view['adminview']) && $id == $view['adminview']) + { + return true; + } + return false; + }); + // check if somthing was returned + if (count($dashboard) && isset($dashboard[0]['settings']) && isset($dashboard[0]['settings']->name_list)) + { + $this->dynamicDashboard = ComponentbuilderHelper::safeString($dashboard[0]['settings']->name_list); + } + } + } + // if default was changed to dynamic dashboard the remove default tab and methods + if (ComponentbuilderHelper::checkString($this->dynamicDashboard)) + { + // dynamic dashboard is used + $this->componentData->dashboard_tab = ''; + $this->componentData->php_dashboard_methods = ''; + } + } + } + /** * Write data to file * @@ -797,9 +867,12 @@ class Structure extends Get $front = false; if ((isset($this->joomlaVersionData->move->dynamic) && ComponentbuilderHelper::checkObject($this->joomlaVersionData->move->dynamic)) && (isset($this->componentData->admin_views) && ComponentbuilderHelper::checkArray($this->componentData->admin_views))) { - // setup dashboard - $target = array('admin' => $this->componentData->name_code); - $this->buildDynamique($target, 'dashboard'); + if (!ComponentbuilderHelper::checkString($this->dynamicDashboard)) + { + // setup dashboard + $target = array('admin' => $this->componentData->name_code); + $this->buildDynamique($target, 'dashboard'); + } // now the rest of the views foreach ($this->componentData->admin_views as $nr => $view) { diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index 1ef1ff464..46b4b0d30 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -678,17 +678,17 @@ class Interpretation extends Fields $function[] = "\tpublic static function getMediumCryptKey(\$path)"; $function[] = "\t{"; $function[] = "\t\t//" . $this->setLine(__LINE__) . " Prep the path a little"; - $function[] = "\t\t\$path = '/'. trim('/', str_replace('//', '/', \$path));"; - $function[] = "\t\t/jimport('joomla.filesystem.folder');"; + $function[] = "\t\t\$path = '/'. trim(str_replace('//', '/', \$path), '/');"; + $function[] = "\t\tjimport('joomla.filesystem.folder');"; $function[] = "\t\t///" . $this->setLine(__LINE__) . " Check if folder exist"; - $function[] = "\t\t/if (!JFolder::exists(\$path))"; - $function[] = "\t\t/{"; - $function[] = "\t\t//" . $this->setLine(__LINE__) . " Lock key."; + $function[] = "\t\tif (!JFolder::exists(\$path))"; + $function[] = "\t\t{"; + $function[] = "\t\t\t//" . $this->setLine(__LINE__) . " Lock key."; $function[] = "\t\t\tself::\$mediumCryptKey = 'none';"; - $function[] = "\t\t//" . $this->setLine(__LINE__) . " Set the error message."; + $function[] = "\t\t\t//" . $this->setLine(__LINE__) . " Set the error message."; $function[] = "\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('" . $this->langPrefix . "_CONFIG_MEDIUM_KEY_PATH_ERROR'), 'Error');"; $function[] = "\t\t\treturn false;"; - $function[] = "\t\t/}"; + $function[] = "\t\t}"; $function[] = "\t\t//" . $this->setLine(__LINE__) . " Create FileName and set file path"; $function[] = "\t\t\$filePath = \$path.'/.'.md5('medium_crypt_key_file');"; $function[] = "\t\t//" . $this->setLine(__LINE__) . " Check if we already have the file set"; @@ -699,30 +699,30 @@ class Interpretation extends Fields $function[] = "\t\t//" . $this->setLine(__LINE__) . " Set the key for the first time"; $function[] = "\t\tself::\$mediumCryptKey = self::randomkey(128);"; $function[] = "\t\t//" . $this->setLine(__LINE__) . " Open the key file"; - $function[] = "\t\t\$fh = fopen(\$filePath, 'w');"; + $function[] = "\t\t\$fh = @fopen(\$filePath, 'w');"; $function[] = "\t\tif (!is_resource(\$fh))"; $function[] = "\t\t{"; - $function[] = "\t\t//" . $this->setLine(__LINE__) . " Lock key."; + $function[] = "\t\t\t//" . $this->setLine(__LINE__) . " Lock key."; $function[] = "\t\t\tself::\$mediumCryptKey = 'none';"; - $function[] = "\t\t//" . $this->setLine(__LINE__) . " Set the error message."; + $function[] = "\t\t\t//" . $this->setLine(__LINE__) . " Set the error message."; $function[] = "\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('" . $this->langPrefix . "_CONFIG_MEDIUM_KEY_PATH_ERROR'), 'Error');"; $function[] = "\t\t\treturn false;"; $function[] = "\t\t}"; $function[] = "\t\t//" . $this->setLine(__LINE__) . " Write to the key file"; $function[] = "\t\tif (!fwrite(\$fh, self::\$mediumCryptKey))"; $function[] = "\t\t{"; - $function[] = "\t\t//" . $this->setLine(__LINE__) . " Close key file."; + $function[] = "\t\t\t//" . $this->setLine(__LINE__) . " Close key file."; $function[] = "\t\t\tfclose(\$fh);"; - $function[] = "\t\t//" . $this->setLine(__LINE__) . " Lock key."; + $function[] = "\t\t\t//" . $this->setLine(__LINE__) . " Lock key."; $function[] = "\t\t\tself::\$mediumCryptKey = 'none';"; - $function[] = "\t\t//" . $this->setLine(__LINE__) . " Set the error message."; + $function[] = "\t\t\t//" . $this->setLine(__LINE__) . " Set the error message."; $function[] = "\t\t\tJFactory::getApplication()->enqueueMessage(JText::_('" . $this->langPrefix . "_CONFIG_MEDIUM_KEY_PATH_ERROR'), 'Error');"; $function[] = "\t\t\treturn false;"; $function[] = "\t\t}"; $function[] = "\t\t//" . $this->setLine(__LINE__) . " Close key file."; $function[] = "\t\tfclose(\$fh);"; $function[] = "\t\t//" . $this->setLine(__LINE__) . " Key is set."; - $function[] = PHP_EOL . "\t\treturn true;"; + $function[] = "\t\treturn true;"; $function[] = "\t}"; } // return the help methods @@ -11772,7 +11772,7 @@ class Interpretation extends Fields } else { - if ($item['method'] == 2 || $item['method'] == 3 || $item['method'] == 4) + if ($item['method'] == 2 || $item['method'] == 3 || $item['method'] == 4 || $item['method'] == 5) { $taber = ''; if ($item['method'] == 3) @@ -11803,7 +11803,7 @@ class Interpretation extends Fields } $fix .= PHP_EOL . "\t" . $tab . $taber . "\t\t\t\$item->" . $item['name'] . " = " . $decode . "(\$item->" . $item['name'] . ");"; - if ($item['method'] == 3 || $item['method'] == 4) + if ($item['method'] == 3 || $item['method'] == 4 || $item['method'] == 5) { $fix .= PHP_EOL . "\t" . $tab . "\t\t\t}"; } @@ -12486,9 +12486,12 @@ class Interpretation extends Fields $lang = $this->langPrefix . '_SUBMENU'; // set the code name $codeName = ComponentbuilderHelper::safeString($this->componentData->name_code); - // set dashboard - $menus .= "JHtmlSidebar::addEntry(JText:".":_('" . $lang . "_DASHBOARD'), 'index.php?option=com_" . $codeName . "&view=" . $codeName . "', \$submenu === '" . $codeName . "');"; - $this->langContent[$this->lang][$lang . '_DASHBOARD'] = 'Dashboard'; + // set default dashboard + if (!ComponentbuilderHelper::checkString($this->dynamicDashboard)) + { + $menus .= "JHtmlSidebar::addEntry(JText:".":_('" . $lang . "_DASHBOARD'), 'index.php?option=com_" . $codeName . "&view=" . $codeName . "', \$submenu === '" . $codeName . "');"; + $this->langContent[$this->lang][$lang . '_DASHBOARD'] = 'Dashboard'; + } $catArray = array(); foreach ($this->componentData->admin_views as $view) { diff --git a/admin/helpers/compiler/f_Infusion.php b/admin/helpers/compiler/f_Infusion.php index ec8f27a6b..576062979 100644 --- a/admin/helpers/compiler/f_Infusion.php +++ b/admin/helpers/compiler/f_Infusion.php @@ -752,21 +752,33 @@ class Infusion extends Interpretation // ###UPDATE_VERSION_MYSQL### $this->setVersionController(); + + // only set these if default dashboard it used + if (!ComponentbuilderHelper::checkString($this->dynamicDashboard)) + { + // ###DASHBOARDVIEW### + $this->fileContentStatic['###DASHBOARDVIEW###'] = $this->fileContentStatic['###component###']; + + // ###DASHBOARDICONS### + $this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASHBOARDICONS###'] = $this->setDashboardIcons(); - // ###DASHBOARDICONS### - $this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASHBOARDICONS###'] = $this->setDashboardIcons(); + // ###DASHBOARDICONACCESS### + $this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASHBOARDICONACCESS###'] = $this->setDashboardIconAccess(); - // ###DASHBOARDICONACCESS### - $this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASHBOARDICONACCESS###'] = $this->setDashboardIconAccess(); + // ###DASH_MODEL_METHODS### + $this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASH_MODEL_METHODS###'] = $this->setDashboardModelMethods(); - // ###DASH_MODEL_METHODS### - $this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASH_MODEL_METHODS###'] = $this->setDashboardModelMethods(); + // ###DASH_GET_CUSTOM_DATA### + $this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASH_GET_CUSTOM_DATA###'] = $this->setDashboardGetCustomData(); - // ###DASH_GET_CUSTOM_DATA### - $this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASH_GET_CUSTOM_DATA###'] = $this->setDashboardGetCustomData(); - - // ###DASH_DISPLAY_DATA### - $this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASH_DISPLAY_DATA###'] = $this->setDashboardDisplayData(); + // ###DASH_DISPLAY_DATA### + $this->fileContentDynamic[$this->fileContentStatic['###component###']]['###DASH_DISPLAY_DATA###'] = $this->setDashboardDisplayData(); + } + else + { + // ###DASHBOARDVIEW### + $this->fileContentStatic['###DASHBOARDVIEW###'] = $this->dynamicDashboard; + } // add import if (isset($this->addEximport) && $this->addEximport) diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini index 0e3ae827b..2496f6aad 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini @@ -3830,8 +3830,10 @@ COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_DESCRIPTION="
Searching the database.
" -COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_DESCRIPTION="When using the VDM encryption you need to get a VDM public key from https://www.vdm.io/ " -COM_COMPONENTBUILDER_FIELD_NOTE_VDM_ENCRYPTION_LABEL="The VDM Encryption" +COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_DESCRIPTION="

When using the WHMCS encryption you need to get a WHMCS key from:
https://www.vdm.io, or your own WHMCS install.

Please note that you will need to enable the add-on in the Joomla Component area (Add WHMCS)->Yes.

You can get more info about the WHMCS licensing add-on at the following links.

Helpful Links:
+https://www.whmcs.com/addons/licensing-addon/
+http://docs.whmcs.com/Licensing_Addon/

" +COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_LABEL="The WHMCS Encryption" COM_COMPONENTBUILDER_FIELD_NOT_NULL="NOT NULL" COM_COMPONENTBUILDER_FIELD_NOT_REQUIRED="Not Required" COM_COMPONENTBUILDER_FIELD_NULL="NULL" @@ -4152,8 +4154,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_FOOTABLE_VTWO="Add FooTable V2" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_JAVASCRIPT="Add Javascript" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_JAVASCRIPT_LABEL="Add Javascript" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE="Add License" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_DESCRIPTION="Add the option to use a license in the component." -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_LABEL="Add License (whmcs)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_DESCRIPTION="Add the option to use the whmcs license add-on in the component." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_LICENSE_LABEL="Add WHMCS
(license add-on)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_ADMIN="Add Php Helper Admin" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_ADMIN_LABEL="Add PHP (helper_admin Class)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_BOTH="Add Php Helper Both" @@ -4184,7 +4186,6 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UIKIT_VTWO="Add Uikit v2" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UPDATE_SERVER="Add Update Server" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UPDATE_SERVER_LABEL="Add Update Server" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADMIN_VIEWS="Admin Views" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADVANCED_ENCRYPTION_ONLY_TO_LOCK_DATA="Advanced encryption (only to lock data)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR="Author" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_DESCRIPTION="The Author's Name & Surname." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_HINT="Author Name & Surname Here" @@ -4235,9 +4236,16 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_HINT="// CSS for the entire front COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_LABEL="CSS (site)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_ADMIN_VIEWS="Custom Admin Views" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_USED_IN_CUSTOM_CODE="Custom (used in custom code)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD="Dashboard" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_DESCRIPTION="Select a custom admin view that is already linked to this component as a dynamic dashboard." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_LABEL="Dynamic Dashboard
(admin or custom admin view)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TYPE="Dashboard Type" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TYPE_DESCRIPTION="Select the type of dashboard you would like to use." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TYPE_LABEL="Dashboard Type" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DEBUG_LINENR="Debug Linenr" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DEBUG_LINENR_DESCRIPTION="Add corresponding line numbers to the dynamic comments, so to see where in the compiler the lines of code was build. This will help if you need to get more technical with an issue on github." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DEBUG_LINENR_LABEL="Debug (line numbers)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DEFAULT="Default" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DESCRIPTION="Description" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DESCRIPTION_DESCRIPTION="Add Description Here" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DESCRIPTION_HINT="Add Description Here" @@ -4320,8 +4328,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CONFIG_DESCRIPTION="You can add c COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CONFIG_LABEL="Adding Custom Config Fields" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CUSTOM_MENUS_DESCRIPTION="You can add custom menus to the component here. The normal Menus are already being added so only add custom Menus that you would like to use for custom scripts." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CUSTOM_MENUS_LABEL="Adding Custom Menus" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_DESCRIPTION="

You can add more tabs to the component dashboard.

" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_LABEL="Customize the Component Dashboard" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_DESCRIPTION="

The default dashboard has all the icons of the views you have selected as Dashboard (add record) or Dashboard (list of records), to expand it you can add more tabs.

" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BOTTON_COMPONENT_DASHBOARD_LABEL="Default Dashboard Option" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_DESCRIPTION="You can dynamically build the components back-end views and fields by adding a mySql table dump, that has all the tables, or some more tables with its columns and data types. A very basic and generic set of fields and tables will be created, and added to the existing fields and tables of this component." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_LABEL="Dynamic Builder (mySql) Option" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_COMPONENT_FILES_FOLDERS_DESCRIPTION="You can add custom files and folders to the component, simply add the files to the administrator/components/com_componentbuilder/custom folder and then select them here." @@ -4329,6 +4337,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_COMPONENT_FILES_FOLDERS_LABEL="Adding COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_ADMIN_VIEWS_DESCRIPTION="

Linked Admin Views

Display of the admin views will load here!
" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_CUSTOM_ADMIN_VIEWS_DESCRIPTION="

Linked Custom Admin Views

Display of the custom admin views will load here!
" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_SITE_VIEWS_DESCRIPTION="

Linked Site Views

Display of the site views will load here!
" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DYNAMIC_DASHBOARD_DESCRIPTION="The dynamic dashboard is basically the option of taking an Admin View or Custom Admin View that is already linked to this component, and making it the dashboard." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DYNAMIC_DASHBOARD_LABEL="Dynamic Dashboard Option" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MOVED_VIEWS_DESCRIPTION="We have moved the views in to their own tabs for your convenience." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MOVED_VIEWS_LABEL="To add views, please open the corresponding tab." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MYSQL_TWEAK_OPTIONS_DESCRIPTION="In each admin view you can add data from a MySQL Table (this is done in the admin view MySQL tab). Here you can limit that data in relation to this component. This feature is useful when an admin view with demo data is used in more then one component, and you would like to exclude some demo data without creating a new admin view." @@ -4493,7 +4503,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TOIGNORE_LABEL="Repository Folders or File COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TO_IGNORE_NOTE_DESCRIPTION="During compilation JCB deletes all files and folders from the repository folder, and then adds the newly created files and folders back into the repository folder. Yet there may be files or folders you may not want deleted, like the .git folder, since JCB does not dynamically create that folder and so it will not be placed back, but simply delete it, unless you add it in this text field below, so that it will be ignored, and therefore not deleted in the first place. You can add multiple folders and files, separated by commas. Like: .git, .hg" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TO_IGNORE_NOTE_LABEL="Repository Folders or Files to Ignore" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TRANSLATION="Translation" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATES_USED_IN_JOOMLA_UPDATER="Updates (used in Joomla updater)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATES_NOT_READY="Updates (NOT READY!)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER="Update Server" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_DESCRIPTION="Select your update server for this component." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_LABEL="Update Server" @@ -4518,6 +4528,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_DESCRIPTION="Enter website address COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_HINT="http://www.example.com" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_LABEL="Website" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_MESSAGE="Error! Please add website here." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_ENCRYPTION_ONLY_TO_LOCK_DATAFIELDS="WHMCS encryption (only to lock data/fields)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY="Whmcs Key" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY_DESCRIPTION="Add your WHMCS Secret Key here that is needed for this license" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY_HINT="Secret Key" @@ -5270,6 +5281,7 @@ COM_COMPONENTBUILDER_RIGHT_OF_TABS="Right of Tabs" COM_COMPONENTBUILDER_SAVE_SUCCESS="Great! Item successfully saved." COM_COMPONENTBUILDER_SAVE_WARNING="The value already existed so please select another." COM_COMPONENTBUILDER_SEARCHABLE="Searchable" +COM_COMPONENTBUILDER_SELECT_AN_OPTION="Select an option" COM_COMPONENTBUILDER_SELECT_A_SNIPPET="select a snippet" COM_COMPONENTBUILDER_SELECT_THE_COMPONENT_TO_COMPILE="Select the component to compile" COM_COMPONENTBUILDER_SERVER="Server" @@ -5337,7 +5349,7 @@ COM_COMPONENTBUILDER_SERVER_FTP="FTP" COM_COMPONENTBUILDER_SERVER_HOST="Host" COM_COMPONENTBUILDER_SERVER_HOST_DESCRIPTION="Add the server host name/IP here" COM_COMPONENTBUILDER_SERVER_HOST_HINT="yourhost.com" -COM_COMPONENTBUILDER_SERVER_HOST_LABEL="Host/IP
(basic encryption)" +COM_COMPONENTBUILDER_SERVER_HOST_LABEL="Host/IP
(encrypted field)" COM_COMPONENTBUILDER_SERVER_HOST_MESSAGE="Error! Please add server host name here." COM_COMPONENTBUILDER_SERVER_ID="Id" COM_COMPONENTBUILDER_SERVER_LINKED_COMPONENTS="Linked Components" @@ -5359,17 +5371,17 @@ COM_COMPONENTBUILDER_SERVER_NOT_REQUIRED="Not Required" COM_COMPONENTBUILDER_SERVER_ORDERING_LABEL="Ordering" COM_COMPONENTBUILDER_SERVER_PASSWORD="Password" COM_COMPONENTBUILDER_SERVER_PASSWORD_DESCRIPTION="Enter the password." -COM_COMPONENTBUILDER_SERVER_PASSWORD_LABEL="Password
(basic encryption)" +COM_COMPONENTBUILDER_SERVER_PASSWORD_LABEL="Password
(encrypted field)" COM_COMPONENTBUILDER_SERVER_PATH="Path" COM_COMPONENTBUILDER_SERVER_PATH_DESCRIPTION="Set the path to the remote destination folder. The user must have write permissions to this folder." COM_COMPONENTBUILDER_SERVER_PATH_HINT="/home/username/folder/" -COM_COMPONENTBUILDER_SERVER_PATH_LABEL="Remote Destination Folder Path
(basic encryption)" +COM_COMPONENTBUILDER_SERVER_PATH_LABEL="Remote Destination Folder Path
(encrypted field)" COM_COMPONENTBUILDER_SERVER_PATH_MESSAGE="Error! Please add destination path." COM_COMPONENTBUILDER_SERVER_PERMISSION="Permissions" COM_COMPONENTBUILDER_SERVER_PORT="Port" COM_COMPONENTBUILDER_SERVER_PORT_DESCRIPTION="The port number" COM_COMPONENTBUILDER_SERVER_PORT_HINT="22" -COM_COMPONENTBUILDER_SERVER_PORT_LABEL="Port Number
(basic encryption)" +COM_COMPONENTBUILDER_SERVER_PORT_LABEL="Port Number
(encrypted field)" COM_COMPONENTBUILDER_SERVER_PORT_MESSAGE="Error! Please add port number here." COM_COMPONENTBUILDER_SERVER_PRIVATE="Private" COM_COMPONENTBUILDER_SERVER_PRIVATE_DESCRIPTION="Set the path to the private key." @@ -5392,9 +5404,9 @@ MD4pm2tpMRV52YIRi07J70ex/PbLULd5cCTh6jgXAwz71AVSiBY/jTtKqV3YkzJo 09oGIZIcI/wzk1zLloqNAkB8qHxAtmUZFdo5sssaUDTOB82QAPfiHUqIFPaYuc0f 4NqtXZm+fv4liR3QJEo8zkiBs3NjBnm7Hh3BMSqGh3d+ -----END RSA PRIVATE KEY-----" -COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_LABEL="PRIVATE KEY
(basic encryption)" +COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_LABEL="PRIVATE KEY
(encrypted field)" COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_TEXT_FIELD="Private Key - Text Field" -COM_COMPONENTBUILDER_SERVER_PRIVATE_LABEL="Private Key Path
(basic encryption)" +COM_COMPONENTBUILDER_SERVER_PRIVATE_LABEL="Private Key Path
(encrypted field)" COM_COMPONENTBUILDER_SERVER_PRIVATE_MESSAGE="Error! Please add private key path." COM_COMPONENTBUILDER_SERVER_PROTOCOL="Protocol" COM_COMPONENTBUILDER_SERVER_PROTOCOL_DESCRIPTION="Select the protocol used to connect to this server." @@ -5403,7 +5415,7 @@ COM_COMPONENTBUILDER_SERVER_PUBLISHING="Publishing" COM_COMPONENTBUILDER_SERVER_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Server to customise the alias." COM_COMPONENTBUILDER_SERVER_SECRET="Secret" COM_COMPONENTBUILDER_SERVER_SECRET_DESCRIPTION="If private key file is encrypted (which it should be), the passphrase must be provided." -COM_COMPONENTBUILDER_SERVER_SECRET_LABEL="Passphrase
(basic encryption)" +COM_COMPONENTBUILDER_SERVER_SECRET_LABEL="Passphrase
(encrypted field)" COM_COMPONENTBUILDER_SERVER_SELECT_AN_OPTION="Select an option" COM_COMPONENTBUILDER_SERVER_SFTP="SFTP" COM_COMPONENTBUILDER_SERVER_SIGNATURE="Signature" @@ -5415,7 +5427,7 @@ COM_COMPONENTBUILDER_SERVER_STATUS="Status" COM_COMPONENTBUILDER_SERVER_USERNAME="Username" COM_COMPONENTBUILDER_SERVER_USERNAME_DESCRIPTION="Enter the username." COM_COMPONENTBUILDER_SERVER_USERNAME_HINT="root" -COM_COMPONENTBUILDER_SERVER_USERNAME_LABEL="Username
(basic encryption)" +COM_COMPONENTBUILDER_SERVER_USERNAME_LABEL="Username
(encrypted field)" COM_COMPONENTBUILDER_SERVER_USERNAME_MESSAGE="Error! Please add the username here." COM_COMPONENTBUILDER_SERVER_VERSION_DESC="A count of the number of times this Server has been revised." COM_COMPONENTBUILDER_SERVER_VERSION_LABEL="Revision" @@ -6322,6 +6334,7 @@ COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_IMPORT_A_COMPONENT_PLEASE_CON COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_SHARE_THE_SNIPPETS_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP="You do not have permission to share the snippets, please contact your system administrator for more help." COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE="You have %s %s. Adding more then 50 %s is considered bad practice." COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE_YOUR_S_PAGE_LOAD_IN_JCB_WILL_SLOWDOWN_YOU_SHOULD_CONSIDER_DECOUPLING_SOME_OF_THESE_S="You have %s %s. Adding more then 50 %s is considered bad practice. Your %s page load in JCB will slowdown. You should consider decoupling some of these %s." +COM_COMPONENTBUILDER_YOU_MUST_FIRST_LINK_AN_ADMIN_OR_A_CUSTOM_ADMIN_VIEW_TO_THIS_COMPONENT_THEN_YOU_CAN_SELECT_IT_HERE="You must first link an admin or a custom admin view to this component, then you can select it here" COM_COMPONENTBUILDER_YOU_MUST_SELECT_A_COMPONENT="You must select a component!" COM_COMPONENTBUILDER_YOU_SHOULD_ADD_THE_CORRECT_OWNER_DETAILS="You should add the correct owner details." COM_COMPONENTBUILDER_YOU_SHOULD_ONLY_CONTINUE_THIS_IMPORT_IF_YOU_HAVE_BACKUP_YOUR_COMPONENTS_AND_INSURED_THAT_THE_PACKAGE_OWNER_IS_REPUTABLE="You should only continue this import if you have backup your components, and insured that the package owner is reputable." diff --git a/admin/layouts/field/details_left.php b/admin/layouts/field/details_left.php index dbdbdf562..5b25ca0ef 100644 --- a/admin/layouts/field/details_left.php +++ b/admin/layouts/field/details_left.php @@ -41,7 +41,7 @@ $fields = $displayData->get('fields') ?: array( 'indexes', 'null_switch', 'store', - 'note_vdm_encryption' + 'note_whmcs_encryption' ); $hiddenFields = $displayData->get('hidden_fields') ?: array(); diff --git a/admin/layouts/joomla_component/php_left.php b/admin/layouts/joomla_component/php_left.php index 4c5b5578f..de796f73a 100644 --- a/admin/layouts/joomla_component/php_left.php +++ b/admin/layouts/joomla_component/php_left.php @@ -30,7 +30,7 @@ defined('_JEXEC') or die('Restricted access'); $form = $displayData->getForm(); $fields = $displayData->get('fields') ?: array( - 'note_botton_component_dashboard' + 'dashboard_type' ); $hiddenFields = $displayData->get('hidden_fields') ?: array(); diff --git a/admin/layouts/joomla_component/php_right.php b/admin/layouts/joomla_component/php_right.php new file mode 100644 index 000000000..0064c2852 --- /dev/null +++ b/admin/layouts/joomla_component/php_right.php @@ -0,0 +1,56 @@ + + @github Joomla Component Builder + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file + +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'note_dynamic_dashboard', + 'dashboard', + 'note_botton_component_dashboard' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +foreach ($fields as $field) +{ + $field = is_array($field) ? $field : array($field); + foreach ($field as $f) + { + if ($form->getField($f)) + { + if (in_array($f, $hiddenFields)) + { + $form->setFieldAttribute($f, 'type', 'hidden'); + } + + echo $form->renderField($f); + break; + } + } +} diff --git a/admin/models/ajax.php b/admin/models/ajax.php index 39d61c045..c25995180 100644 --- a/admin/models/ajax.php +++ b/admin/models/ajax.php @@ -274,11 +274,13 @@ class ComponentbuilderModelAjax extends JModelList { // get the view name & id $values = $this->getViewID(); + // set the button ID + $css_class = 'control-group-'.ComponentbuilderHelper::safeString($type. '-' . $size, 'L', '-'); // check if new item $ref = ''; if (!is_null($values['a_id']) && $values['a_id'] > 0 && strlen($values['a_view'])) { - // only load referal if not new item. + // only load referral if not new item. $ref = '&ref=' . $values['a_view'] . '&refid=' . $values['a_id']; // get item id if ($id = ComponentbuilderHelper::getVar($type, $values['a_id'], $values['a_view'], 'id')) @@ -299,7 +301,7 @@ class ComponentbuilderModelAjax extends JModelList $button = array(); if (1 == $size) { - $button[] = '
'; + $button[] = '
'; $button[] = '
'; $button[] = ''; $button[] = '
'; @@ -326,7 +328,7 @@ class ComponentbuilderModelAjax extends JModelList // only return notice if big button if (1 == $size) { - return '
' . JText::sprintf('COM_COMPONENTBUILDER_BUTTON_TO_CREATE_S_WILL_SHOW_ONCE_S_IS_SAVED_FOR_THE_FIRST_TIME', ComponentbuilderHelper::safeString($type, 'w'), ComponentbuilderHelper::safeString($values['a_view'], 'w')) . '
'; + return '
' . JText::sprintf('COM_COMPONENTBUILDER_BUTTON_TO_CREATE_S_WILL_SHOW_ONCE_S_IS_SAVED_FOR_THE_FIRST_TIME', ComponentbuilderHelper::safeString($type, 'w'), ComponentbuilderHelper::safeString($values['a_view'], 'w')) . '
'; } } } diff --git a/admin/models/compiler.php b/admin/models/compiler.php index dc2228a78..cd3bbd26a 100644 --- a/admin/models/compiler.php +++ b/admin/models/compiler.php @@ -228,6 +228,8 @@ class ComponentbuilderModelCompiler extends JModelList public function install($p_file) { + $this->setState('action', 'install'); + // Set FTP credentials, if given. JClientHelper::setCredentialsFromRequest('ftp'); $app = JFactory::getApplication(); @@ -235,7 +237,7 @@ class ComponentbuilderModelCompiler extends JModelList // Load installer plugins for assistance if required: JPluginHelper::importPlugin('installer'); $dispatcher = JEventDispatcher::getInstance(); - + $package = null; // This event allows an input pre-treatment, a custom pre-packing or custom installation. @@ -246,7 +248,8 @@ class ComponentbuilderModelCompiler extends JModelList { return true; } - elseif (in_array(false, $results, true)) + + if (in_array(false, $results, true)) { return false; } @@ -256,8 +259,10 @@ class ComponentbuilderModelCompiler extends JModelList // Unpack the downloaded package file. $package = JInstallerHelper::unpack($tmp_dest . '/' . $p_file, true); - // insure the install type is folder + + // insure the install type is folder (JCB zip file is in the folder) $installType = 'folder'; + // This event allows a custom installation of the package or a customization of the package: $results = $dispatcher->trigger('onInstallerBeforeInstaller', array($this, &$package)); @@ -300,7 +305,7 @@ class ComponentbuilderModelCompiler extends JModelList $dispatcher->trigger('onInstallerAfterInstaller', array($this, &$package, $installer, &$result, &$msg)); // Set some model state values. - $app = JFactory::getApplication(); + $app = JFactory::getApplication(); $app->enqueueMessage($msg, $msgType); $this->setState('name', $installer->get('name')); $this->setState('result', $result); @@ -317,6 +322,16 @@ class ComponentbuilderModelCompiler extends JModelList JInstallerHelper::cleanupInstall($package['packagefile'], $package['extractdir']); + // Clear the cached extension data and menu cache + $this->cleanCache('_system', 0); + $this->cleanCache('_system', 1); + $this->cleanCache('com_modules', 0); + $this->cleanCache('com_modules', 1); + $this->cleanCache('com_plugins', 0); + $this->cleanCache('com_plugins', 1); + $this->cleanCache('mod_menu', 0); + $this->cleanCache('mod_menu', 1); + return $result; } } diff --git a/admin/models/fields/dynamicdashboard.php b/admin/models/fields/dynamicdashboard.php new file mode 100644 index 000000000..5a37c929e --- /dev/null +++ b/admin/models/fields/dynamicdashboard.php @@ -0,0 +1,217 @@ + + @github Joomla Component Builder + @copyright Copyright (C) 2015. All Rights Reserved + @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html + + Builds Complex Joomla Components + +/-----------------------------------------------------------------------------------------------------------------------------*/ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +// import the list field type +jimport('joomla.form.helper'); +JFormHelper::loadFieldClass('list'); + +/** + * Dynamicdashboard Form Field class for the Componentbuilder component + */ +class JFormFieldDynamicdashboard extends JFormFieldList +{ + /** + * The dynamicdashboard field type. + * + * @var string + */ + public $type = 'dynamicdashboard'; + /** + * Override to add new button + * + * @return string The field input markup. + * + * @since 3.2 + */ + protected function getInput() + { + // see if we should add buttons + $setButton = $this->getAttribute('button'); + // get html + $html = parent::getInput(); + // if true set button + if ($setButton === 'true') + { + $button = array(); + $script = array(); + $buttonName = $this->getAttribute('name'); + // get the input from url + $app = JFactory::getApplication(); + $jinput = $app->input; + // get the view name & id + $values = $jinput->getArray(array( + 'id' => 'int', + 'view' => 'word' + )); + // check if new item + $ref = ''; + $refJ = ''; + if (!is_null($values['id']) && strlen($values['view'])) + { + // only load referal if not new item. + $ref = '&ref=' . $values['view'] . '&refid=' . $values['id']; + $refJ = '&ref=' . $values['view'] . '&refid=' . $values['id']; + } + $user = JFactory::getUser(); + // only add if user allowed to create custom_admin_view + if ($user->authorise('core.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + { + // build Create button + $buttonNamee = trim($buttonName); + $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee); + $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee); + $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee); + $buttonNamee = ucfirst(strtolower($buttonNamee)); + $button[] = ' + '; + } + // only add if user allowed to edit custom_admin_view + if (($buttonName === 'custom_admin_view' || $buttonName === 'custom_admin_views') && $user->authorise('core.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area. + { + // build edit button + $buttonNamee = trim($buttonName); + $buttonNamee = preg_replace('/_+/', ' ', $buttonNamee); + $buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee); + $buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee); + $buttonNamee = ucfirst(strtolower($buttonNamee)); + $button[] = ''; + // build script + $script[] = " + jQuery(document).ready(function() { + jQuery('#adminForm').on('change', '#jform_".$buttonName."',function (e) { + e.preventDefault(); + var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val(); + ".$buttonName."Button(".$buttonName."Value); + }); + var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val(); + ".$buttonName."Button(".$buttonName."Value); + }); + function ".$buttonName."Button(value) { + if (value > 0) { + // hide the create button + jQuery('#".$buttonName."Create').hide(); + // show edit button + jQuery('#".$buttonName."Edit').show(); + var url = 'index.php?option=com_componentbuilder&view=custom_admin_views&task=custom_admin_view.edit&id='+value+'".$refJ."'; + jQuery('#".$buttonName."Edit').attr('href', url); + } else { + // show the create button + jQuery('#".$buttonName."Create').show(); + // hide edit button + jQuery('#".$buttonName."Edit').hide(); + } + }"; + } + // check if button was created for custom_admin_view field. + if (is_array($button) && count($button) > 0) + { + // Load the needed script. + $document = JFactory::getDocument(); + $document->addScriptDeclaration(implode(' ',$script)); + // return the button attached to input field. + return '
' .$html . implode('',$button).'
'; + } + } + return $html; + } + + /** + * Method to get a list of options for a list input. + * + * @return array An array of JHtml options. + */ + public function getOptions() + { + // load the db opbject + $db = JFactory::getDBO(); + // get the input from url + $jinput = JFactory::getApplication()->input; + // get the id + $ID = $jinput->getInt('id', 0); + // set the targets + $targets = array('adminview' => 'admin_view', 'customadminview' => 'custom_admin_view'); + $t = array('adminview' => 'A', 'customadminview' => 'C'); + // rest the options + $options = array(); + // reset the custom admin views array + $views = false; + if (is_numeric($ID) && $ID >= 1) + { + // get the linked back-end views + foreach ($targets as $target => $view) + { + if ($result = ComponentbuilderHelper::getVar('component_'.$view.'s', (int) $ID, 'joomla_component', 'add'.$view.'s')) + { + $views[$target] = $result; + } + } + } + else + { + // not linked so there is none available + return array(JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_YOU_MUST_FIRST_LINK_AN_ADMIN_OR_A_CUSTOM_ADMIN_VIEW_TO_THIS_COMPONENT_THEN_YOU_CAN_SELECT_IT_HERE'))); + } + // check if we found any values + if (ComponentbuilderHelper::checkArray($views)) + { + foreach ($targets as $target => $view) + { + if (isset($views[$target]) && ComponentbuilderHelper::checkJson($views[$target])) + { + // convert to an array + $value = json_decode($views[$target], true); + $type = ComponentbuilderHelper::safeString($view, 'w'); + if (ComponentbuilderHelper::checkArray($value)) + { + foreach ($value as $_view) + { + if (isset($_view[$target]) && is_numeric($_view[$target])) + { + // set the view to the selections if found + if ($name = ComponentbuilderHelper::getVar($view, (int) $_view[$target], 'id', 'system_name')) + { + $options[] = JHtml::_('select.option', $t[$target].'_'.$_view[$target], $name.' ['.$type.']'); + } + } + } + } + } + } + } + // return found options + if (ComponentbuilderHelper::checkArray($options)) + { + array_unshift($options , JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_SELECT_AN_OPTION'))); + return $options; + } + // not linked so there is none available + return array(JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_YOU_MUST_FIRST_LINK_AN_ADMIN_OR_A_CUSTOM_ADMIN_VIEW_TO_THIS_COMPONENT_THEN_YOU_CAN_SELECT_IT_HERE'))); + } +} diff --git a/admin/models/forms/admin_view.js b/admin/models/forms/admin_view.js index db75962cd..fd84c3401 100644 --- a/admin/models/forms/admin_view.js +++ b/admin/models/forms/admin_view.js @@ -23,333 +23,333 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvvwxvwo_required = false; -jform_vvvvvwyvwp_required = false; -jform_vvvvvwzvwq_required = false; -jform_vvvvvxavwr_required = false; -jform_vvvvvxbvws_required = false; -jform_vvvvvxcvwt_required = false; -jform_vvvvvxdvwu_required = false; -jform_vvvvvxevwv_required = false; -jform_vvvvvxfvww_required = false; -jform_vvvvvxgvwx_required = false; -jform_vvvvvxhvwy_required = false; -jform_vvvvvxivwz_required = false; -jform_vvvvvxjvxa_required = false; -jform_vvvvvxkvxb_required = false; -jform_vvvvvxlvxc_required = false; -jform_vvvvvxmvxd_required = false; -jform_vvvvvxnvxe_required = false; -jform_vvvvvxovxf_required = false; -jform_vvvvvxpvxg_required = false; -jform_vvvvvxqvxh_required = false; -jform_vvvvvxrvxi_required = false; -jform_vvvvvxsvxj_required = false; -jform_vvvvvxtvxk_required = false; -jform_vvvvvxuvxl_required = false; -jform_vvvvvxyvxm_required = false; -jform_vvvvvxyvxn_required = false; -jform_vvvvvxyvxo_required = false; -jform_vvvvvxyvxp_required = false; -jform_vvvvvxyvxq_required = false; -jform_vvvvvxyvxr_required = false; -jform_vvvvvxyvxs_required = false; -jform_vvvvvyavxt_required = false; -jform_vvvvvyavxu_required = false; -jform_vvvvvyavxv_required = false; -jform_vvvvvyavxw_required = false; +jform_vvvvvwzvwo_required = false; +jform_vvvvvxavwp_required = false; +jform_vvvvvxbvwq_required = false; +jform_vvvvvxcvwr_required = false; +jform_vvvvvxdvws_required = false; +jform_vvvvvxevwt_required = false; +jform_vvvvvxfvwu_required = false; +jform_vvvvvxgvwv_required = false; +jform_vvvvvxhvww_required = false; +jform_vvvvvxivwx_required = false; +jform_vvvvvxjvwy_required = false; +jform_vvvvvxkvwz_required = false; +jform_vvvvvxlvxa_required = false; +jform_vvvvvxmvxb_required = false; +jform_vvvvvxnvxc_required = false; +jform_vvvvvxovxd_required = false; +jform_vvvvvxpvxe_required = false; +jform_vvvvvxqvxf_required = false; +jform_vvvvvxrvxg_required = false; +jform_vvvvvxsvxh_required = false; +jform_vvvvvxtvxi_required = false; +jform_vvvvvxuvxj_required = false; +jform_vvvvvxvvxk_required = false; +jform_vvvvvxwvxl_required = false; +jform_vvvvvyavxm_required = false; +jform_vvvvvyavxn_required = false; +jform_vvvvvyavxo_required = false; +jform_vvvvvyavxp_required = false; +jform_vvvvvyavxq_required = false; +jform_vvvvvyavxr_required = false; +jform_vvvvvyavxs_required = false; +jform_vvvvvycvxt_required = false; +jform_vvvvvycvxu_required = false; +jform_vvvvvycvxv_required = false; +jform_vvvvvycvxw_required = false; // Initial Script jQuery(document).ready(function() { - var add_css_view_vvvvvwx = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvvwx(add_css_view_vvvvvwx); + var add_css_view_vvvvvwz = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvvwz(add_css_view_vvvvvwz); - var add_css_views_vvvvvwy = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvvwy(add_css_views_vvvvvwy); + var add_css_views_vvvvvxa = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvvxa(add_css_views_vvvvvxa); - var add_javascript_view_file_vvvvvwz = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val(); - vvvvvwz(add_javascript_view_file_vvvvvwz); + var add_javascript_view_file_vvvvvxb = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val(); + vvvvvxb(add_javascript_view_file_vvvvvxb); - var add_javascript_views_file_vvvvvxa = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val(); - vvvvvxa(add_javascript_views_file_vvvvvxa); + var add_javascript_views_file_vvvvvxc = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val(); + vvvvvxc(add_javascript_views_file_vvvvvxc); - var add_javascript_view_footer_vvvvvxb = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); - vvvvvxb(add_javascript_view_footer_vvvvvxb); + var add_javascript_view_footer_vvvvvxd = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvvxd(add_javascript_view_footer_vvvvvxd); - var add_javascript_views_footer_vvvvvxc = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); - vvvvvxc(add_javascript_views_footer_vvvvvxc); + var add_javascript_views_footer_vvvvvxe = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvvxe(add_javascript_views_footer_vvvvvxe); - var add_php_ajax_vvvvvxd = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvxd(add_php_ajax_vvvvvxd); + var add_php_ajax_vvvvvxf = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvxf(add_php_ajax_vvvvvxf); - var add_php_getitem_vvvvvxe = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); - vvvvvxe(add_php_getitem_vvvvvxe); + var add_php_getitem_vvvvvxg = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); + vvvvvxg(add_php_getitem_vvvvvxg); - var add_php_getitems_vvvvvxf = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); - vvvvvxf(add_php_getitems_vvvvvxf); + var add_php_getitems_vvvvvxh = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); + vvvvvxh(add_php_getitems_vvvvvxh); - var add_php_getitems_after_all_vvvvvxg = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val(); - vvvvvxg(add_php_getitems_after_all_vvvvvxg); + var add_php_getitems_after_all_vvvvvxi = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val(); + vvvvvxi(add_php_getitems_after_all_vvvvvxi); - var add_php_getlistquery_vvvvvxh = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); - vvvvvxh(add_php_getlistquery_vvvvvxh); + var add_php_getlistquery_vvvvvxj = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); + vvvvvxj(add_php_getlistquery_vvvvvxj); - var add_php_before_save_vvvvvxi = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); - vvvvvxi(add_php_before_save_vvvvvxi); + var add_php_before_save_vvvvvxk = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); + vvvvvxk(add_php_before_save_vvvvvxk); - var add_php_save_vvvvvxj = jQuery("#jform_add_php_save input[type='radio']:checked").val(); - vvvvvxj(add_php_save_vvvvvxj); + var add_php_save_vvvvvxl = jQuery("#jform_add_php_save input[type='radio']:checked").val(); + vvvvvxl(add_php_save_vvvvvxl); - var add_php_postsavehook_vvvvvxk = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); - vvvvvxk(add_php_postsavehook_vvvvvxk); + var add_php_postsavehook_vvvvvxm = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); + vvvvvxm(add_php_postsavehook_vvvvvxm); - var add_php_allowedit_vvvvvxl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); - vvvvvxl(add_php_allowedit_vvvvvxl); + var add_php_allowedit_vvvvvxn = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); + vvvvvxn(add_php_allowedit_vvvvvxn); - var add_php_batchcopy_vvvvvxm = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); - vvvvvxm(add_php_batchcopy_vvvvvxm); + var add_php_batchcopy_vvvvvxo = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); + vvvvvxo(add_php_batchcopy_vvvvvxo); - var add_php_batchmove_vvvvvxn = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); - vvvvvxn(add_php_batchmove_vvvvvxn); + var add_php_batchmove_vvvvvxp = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); + vvvvvxp(add_php_batchmove_vvvvvxp); - var add_php_before_publish_vvvvvxo = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); - vvvvvxo(add_php_before_publish_vvvvvxo); + var add_php_before_publish_vvvvvxq = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); + vvvvvxq(add_php_before_publish_vvvvvxq); - var add_php_after_publish_vvvvvxp = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); - vvvvvxp(add_php_after_publish_vvvvvxp); + var add_php_after_publish_vvvvvxr = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); + vvvvvxr(add_php_after_publish_vvvvvxr); - var add_php_before_delete_vvvvvxq = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); - vvvvvxq(add_php_before_delete_vvvvvxq); + var add_php_before_delete_vvvvvxs = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); + vvvvvxs(add_php_before_delete_vvvvvxs); - var add_php_after_delete_vvvvvxr = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); - vvvvvxr(add_php_after_delete_vvvvvxr); + var add_php_after_delete_vvvvvxt = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); + vvvvvxt(add_php_after_delete_vvvvvxt); - var add_php_document_vvvvvxs = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvxs(add_php_document_vvvvvxs); + var add_php_document_vvvvvxu = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvxu(add_php_document_vvvvvxu); - var add_sql_vvvvvxt = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxt(add_sql_vvvvvxt); - - var source_vvvvvxu = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvxu = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu); + var add_sql_vvvvvxv = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxv(add_sql_vvvvvxv); var source_vvvvvxw = jQuery("#jform_source input[type='radio']:checked").val(); var add_sql_vvvvvxw = jQuery("#jform_add_sql input[type='radio']:checked").val(); vvvvvxw(source_vvvvvxw,add_sql_vvvvvxw); - var add_custom_import_vvvvvxy = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvxy(add_custom_import_vvvvvxy); + var source_vvvvvxy = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxy = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxy(source_vvvvvxy,add_sql_vvvvvxy); - var add_custom_import_vvvvvxz = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvxz(add_custom_import_vvvvvxz); + var add_custom_import_vvvvvya = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvya(add_custom_import_vvvvvya); - var add_custom_button_vvvvvya = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvya(add_custom_button_vvvvvya); + var add_custom_import_vvvvvyb = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvyb(add_custom_import_vvvvvyb); + + var add_custom_button_vvvvvyc = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvyc(add_custom_button_vvvvvyc); }); -// the vvvvvwx function -function vvvvvwx(add_css_view_vvvvvwx) +// the vvvvvwz function +function vvvvvwz(add_css_view_vvvvvwz) { // set the function logic - if (add_css_view_vvvvvwx == 1) + if (add_css_view_vvvvvwz == 1) { jQuery('#jform_css_view').closest('.control-group').show(); - if (jform_vvvvvwxvwo_required) + if (jform_vvvvvwzvwo_required) { updateFieldRequired('css_view',0); jQuery('#jform_css_view').prop('required','required'); jQuery('#jform_css_view').attr('aria-required',true); jQuery('#jform_css_view').addClass('required'); - jform_vvvvvwxvwo_required = false; + jform_vvvvvwzvwo_required = false; } } else { jQuery('#jform_css_view').closest('.control-group').hide(); - if (!jform_vvvvvwxvwo_required) + if (!jform_vvvvvwzvwo_required) { updateFieldRequired('css_view',1); jQuery('#jform_css_view').removeAttr('required'); jQuery('#jform_css_view').removeAttr('aria-required'); jQuery('#jform_css_view').removeClass('required'); - jform_vvvvvwxvwo_required = true; + jform_vvvvvwzvwo_required = true; } } } -// the vvvvvwy function -function vvvvvwy(add_css_views_vvvvvwy) +// the vvvvvxa function +function vvvvvxa(add_css_views_vvvvvxa) { // set the function logic - if (add_css_views_vvvvvwy == 1) + if (add_css_views_vvvvvxa == 1) { jQuery('#jform_css_views').closest('.control-group').show(); - if (jform_vvvvvwyvwp_required) + if (jform_vvvvvxavwp_required) { updateFieldRequired('css_views',0); jQuery('#jform_css_views').prop('required','required'); jQuery('#jform_css_views').attr('aria-required',true); jQuery('#jform_css_views').addClass('required'); - jform_vvvvvwyvwp_required = false; + jform_vvvvvxavwp_required = false; } } else { jQuery('#jform_css_views').closest('.control-group').hide(); - if (!jform_vvvvvwyvwp_required) + if (!jform_vvvvvxavwp_required) { updateFieldRequired('css_views',1); jQuery('#jform_css_views').removeAttr('required'); jQuery('#jform_css_views').removeAttr('aria-required'); jQuery('#jform_css_views').removeClass('required'); - jform_vvvvvwyvwp_required = true; + jform_vvvvvxavwp_required = true; } } } -// the vvvvvwz function -function vvvvvwz(add_javascript_view_file_vvvvvwz) +// the vvvvvxb function +function vvvvvxb(add_javascript_view_file_vvvvvxb) { // set the function logic - if (add_javascript_view_file_vvvvvwz == 1) + if (add_javascript_view_file_vvvvvxb == 1) { jQuery('#jform_javascript_view_file').closest('.control-group').show(); - if (jform_vvvvvwzvwq_required) + if (jform_vvvvvxbvwq_required) { updateFieldRequired('javascript_view_file',0); jQuery('#jform_javascript_view_file').prop('required','required'); jQuery('#jform_javascript_view_file').attr('aria-required',true); jQuery('#jform_javascript_view_file').addClass('required'); - jform_vvvvvwzvwq_required = false; + jform_vvvvvxbvwq_required = false; } } else { jQuery('#jform_javascript_view_file').closest('.control-group').hide(); - if (!jform_vvvvvwzvwq_required) + if (!jform_vvvvvxbvwq_required) { updateFieldRequired('javascript_view_file',1); jQuery('#jform_javascript_view_file').removeAttr('required'); jQuery('#jform_javascript_view_file').removeAttr('aria-required'); jQuery('#jform_javascript_view_file').removeClass('required'); - jform_vvvvvwzvwq_required = true; + jform_vvvvvxbvwq_required = true; } } } -// the vvvvvxa function -function vvvvvxa(add_javascript_views_file_vvvvvxa) +// the vvvvvxc function +function vvvvvxc(add_javascript_views_file_vvvvvxc) { // set the function logic - if (add_javascript_views_file_vvvvvxa == 1) + if (add_javascript_views_file_vvvvvxc == 1) { jQuery('#jform_javascript_views_file').closest('.control-group').show(); - if (jform_vvvvvxavwr_required) + if (jform_vvvvvxcvwr_required) { updateFieldRequired('javascript_views_file',0); jQuery('#jform_javascript_views_file').prop('required','required'); jQuery('#jform_javascript_views_file').attr('aria-required',true); jQuery('#jform_javascript_views_file').addClass('required'); - jform_vvvvvxavwr_required = false; + jform_vvvvvxcvwr_required = false; } } else { jQuery('#jform_javascript_views_file').closest('.control-group').hide(); - if (!jform_vvvvvxavwr_required) + if (!jform_vvvvvxcvwr_required) { updateFieldRequired('javascript_views_file',1); jQuery('#jform_javascript_views_file').removeAttr('required'); jQuery('#jform_javascript_views_file').removeAttr('aria-required'); jQuery('#jform_javascript_views_file').removeClass('required'); - jform_vvvvvxavwr_required = true; + jform_vvvvvxcvwr_required = true; } } } -// the vvvvvxb function -function vvvvvxb(add_javascript_view_footer_vvvvvxb) +// the vvvvvxd function +function vvvvvxd(add_javascript_view_footer_vvvvvxd) { // set the function logic - if (add_javascript_view_footer_vvvvvxb == 1) + if (add_javascript_view_footer_vvvvvxd == 1) { jQuery('#jform_javascript_view_footer').closest('.control-group').show(); - if (jform_vvvvvxbvws_required) + if (jform_vvvvvxdvws_required) { updateFieldRequired('javascript_view_footer',0); jQuery('#jform_javascript_view_footer').prop('required','required'); jQuery('#jform_javascript_view_footer').attr('aria-required',true); jQuery('#jform_javascript_view_footer').addClass('required'); - jform_vvvvvxbvws_required = false; + jform_vvvvvxdvws_required = false; } } else { jQuery('#jform_javascript_view_footer').closest('.control-group').hide(); - if (!jform_vvvvvxbvws_required) + if (!jform_vvvvvxdvws_required) { updateFieldRequired('javascript_view_footer',1); jQuery('#jform_javascript_view_footer').removeAttr('required'); jQuery('#jform_javascript_view_footer').removeAttr('aria-required'); jQuery('#jform_javascript_view_footer').removeClass('required'); - jform_vvvvvxbvws_required = true; + jform_vvvvvxdvws_required = true; } } } -// the vvvvvxc function -function vvvvvxc(add_javascript_views_footer_vvvvvxc) +// the vvvvvxe function +function vvvvvxe(add_javascript_views_footer_vvvvvxe) { // set the function logic - if (add_javascript_views_footer_vvvvvxc == 1) + if (add_javascript_views_footer_vvvvvxe == 1) { jQuery('#jform_javascript_views_footer').closest('.control-group').show(); - if (jform_vvvvvxcvwt_required) + if (jform_vvvvvxevwt_required) { updateFieldRequired('javascript_views_footer',0); jQuery('#jform_javascript_views_footer').prop('required','required'); jQuery('#jform_javascript_views_footer').attr('aria-required',true); jQuery('#jform_javascript_views_footer').addClass('required'); - jform_vvvvvxcvwt_required = false; + jform_vvvvvxevwt_required = false; } } else { jQuery('#jform_javascript_views_footer').closest('.control-group').hide(); - if (!jform_vvvvvxcvwt_required) + if (!jform_vvvvvxevwt_required) { updateFieldRequired('javascript_views_footer',1); jQuery('#jform_javascript_views_footer').removeAttr('required'); jQuery('#jform_javascript_views_footer').removeAttr('aria-required'); jQuery('#jform_javascript_views_footer').removeClass('required'); - jform_vvvvvxcvwt_required = true; + jform_vvvvvxevwt_required = true; } } } -// the vvvvvxd function -function vvvvvxd(add_php_ajax_vvvvvxd) +// the vvvvvxf function +function vvvvvxf(add_php_ajax_vvvvvxf) { // set the function logic - if (add_php_ajax_vvvvvxd == 1) + if (add_php_ajax_vvvvvxf == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod').closest('.control-group').show(); - if (jform_vvvvvxdvwu_required) + if (jform_vvvvvxfvwu_required) { updateFieldRequired('php_ajaxmethod',0); jQuery('#jform_php_ajaxmethod').prop('required','required'); jQuery('#jform_php_ajaxmethod').attr('aria-required',true); jQuery('#jform_php_ajaxmethod').addClass('required'); - jform_vvvvvxdvwu_required = false; + jform_vvvvvxfvwu_required = false; } } @@ -357,540 +357,509 @@ function vvvvvxd(add_php_ajax_vvvvvxd) { jQuery('#jform_ajax_input-lbl').closest('.control-group').hide(); jQuery('#jform_php_ajaxmethod').closest('.control-group').hide(); - if (!jform_vvvvvxdvwu_required) + if (!jform_vvvvvxfvwu_required) { updateFieldRequired('php_ajaxmethod',1); jQuery('#jform_php_ajaxmethod').removeAttr('required'); jQuery('#jform_php_ajaxmethod').removeAttr('aria-required'); jQuery('#jform_php_ajaxmethod').removeClass('required'); - jform_vvvvvxdvwu_required = true; + jform_vvvvvxfvwu_required = true; } } } -// the vvvvvxe function -function vvvvvxe(add_php_getitem_vvvvvxe) +// the vvvvvxg function +function vvvvvxg(add_php_getitem_vvvvvxg) { // set the function logic - if (add_php_getitem_vvvvvxe == 1) + if (add_php_getitem_vvvvvxg == 1) { jQuery('#jform_php_getitem').closest('.control-group').show(); - if (jform_vvvvvxevwv_required) + if (jform_vvvvvxgvwv_required) { updateFieldRequired('php_getitem',0); jQuery('#jform_php_getitem').prop('required','required'); jQuery('#jform_php_getitem').attr('aria-required',true); jQuery('#jform_php_getitem').addClass('required'); - jform_vvvvvxevwv_required = false; + jform_vvvvvxgvwv_required = false; } } else { jQuery('#jform_php_getitem').closest('.control-group').hide(); - if (!jform_vvvvvxevwv_required) + if (!jform_vvvvvxgvwv_required) { updateFieldRequired('php_getitem',1); jQuery('#jform_php_getitem').removeAttr('required'); jQuery('#jform_php_getitem').removeAttr('aria-required'); jQuery('#jform_php_getitem').removeClass('required'); - jform_vvvvvxevwv_required = true; + jform_vvvvvxgvwv_required = true; } } } -// the vvvvvxf function -function vvvvvxf(add_php_getitems_vvvvvxf) +// the vvvvvxh function +function vvvvvxh(add_php_getitems_vvvvvxh) { // set the function logic - if (add_php_getitems_vvvvvxf == 1) + if (add_php_getitems_vvvvvxh == 1) { jQuery('#jform_php_getitems').closest('.control-group').show(); - if (jform_vvvvvxfvww_required) + if (jform_vvvvvxhvww_required) { updateFieldRequired('php_getitems',0); jQuery('#jform_php_getitems').prop('required','required'); jQuery('#jform_php_getitems').attr('aria-required',true); jQuery('#jform_php_getitems').addClass('required'); - jform_vvvvvxfvww_required = false; + jform_vvvvvxhvww_required = false; } } else { jQuery('#jform_php_getitems').closest('.control-group').hide(); - if (!jform_vvvvvxfvww_required) + if (!jform_vvvvvxhvww_required) { updateFieldRequired('php_getitems',1); jQuery('#jform_php_getitems').removeAttr('required'); jQuery('#jform_php_getitems').removeAttr('aria-required'); jQuery('#jform_php_getitems').removeClass('required'); - jform_vvvvvxfvww_required = true; + jform_vvvvvxhvww_required = true; } } } -// the vvvvvxg function -function vvvvvxg(add_php_getitems_after_all_vvvvvxg) +// the vvvvvxi function +function vvvvvxi(add_php_getitems_after_all_vvvvvxi) { // set the function logic - if (add_php_getitems_after_all_vvvvvxg == 1) + if (add_php_getitems_after_all_vvvvvxi == 1) { jQuery('#jform_php_getitems_after_all').closest('.control-group').show(); - if (jform_vvvvvxgvwx_required) + if (jform_vvvvvxivwx_required) { updateFieldRequired('php_getitems_after_all',0); jQuery('#jform_php_getitems_after_all').prop('required','required'); jQuery('#jform_php_getitems_after_all').attr('aria-required',true); jQuery('#jform_php_getitems_after_all').addClass('required'); - jform_vvvvvxgvwx_required = false; + jform_vvvvvxivwx_required = false; } } else { jQuery('#jform_php_getitems_after_all').closest('.control-group').hide(); - if (!jform_vvvvvxgvwx_required) + if (!jform_vvvvvxivwx_required) { updateFieldRequired('php_getitems_after_all',1); jQuery('#jform_php_getitems_after_all').removeAttr('required'); jQuery('#jform_php_getitems_after_all').removeAttr('aria-required'); jQuery('#jform_php_getitems_after_all').removeClass('required'); - jform_vvvvvxgvwx_required = true; + jform_vvvvvxivwx_required = true; } } } -// the vvvvvxh function -function vvvvvxh(add_php_getlistquery_vvvvvxh) +// the vvvvvxj function +function vvvvvxj(add_php_getlistquery_vvvvvxj) { // set the function logic - if (add_php_getlistquery_vvvvvxh == 1) + if (add_php_getlistquery_vvvvvxj == 1) { jQuery('#jform_php_getlistquery').closest('.control-group').show(); - if (jform_vvvvvxhvwy_required) + if (jform_vvvvvxjvwy_required) { updateFieldRequired('php_getlistquery',0); jQuery('#jform_php_getlistquery').prop('required','required'); jQuery('#jform_php_getlistquery').attr('aria-required',true); jQuery('#jform_php_getlistquery').addClass('required'); - jform_vvvvvxhvwy_required = false; + jform_vvvvvxjvwy_required = false; } } else { jQuery('#jform_php_getlistquery').closest('.control-group').hide(); - if (!jform_vvvvvxhvwy_required) + if (!jform_vvvvvxjvwy_required) { updateFieldRequired('php_getlistquery',1); jQuery('#jform_php_getlistquery').removeAttr('required'); jQuery('#jform_php_getlistquery').removeAttr('aria-required'); jQuery('#jform_php_getlistquery').removeClass('required'); - jform_vvvvvxhvwy_required = true; + jform_vvvvvxjvwy_required = true; } } } -// the vvvvvxi function -function vvvvvxi(add_php_before_save_vvvvvxi) +// the vvvvvxk function +function vvvvvxk(add_php_before_save_vvvvvxk) { // set the function logic - if (add_php_before_save_vvvvvxi == 1) + if (add_php_before_save_vvvvvxk == 1) { jQuery('#jform_php_before_save').closest('.control-group').show(); - if (jform_vvvvvxivwz_required) + if (jform_vvvvvxkvwz_required) { updateFieldRequired('php_before_save',0); jQuery('#jform_php_before_save').prop('required','required'); jQuery('#jform_php_before_save').attr('aria-required',true); jQuery('#jform_php_before_save').addClass('required'); - jform_vvvvvxivwz_required = false; + jform_vvvvvxkvwz_required = false; } } else { jQuery('#jform_php_before_save').closest('.control-group').hide(); - if (!jform_vvvvvxivwz_required) + if (!jform_vvvvvxkvwz_required) { updateFieldRequired('php_before_save',1); jQuery('#jform_php_before_save').removeAttr('required'); jQuery('#jform_php_before_save').removeAttr('aria-required'); jQuery('#jform_php_before_save').removeClass('required'); - jform_vvvvvxivwz_required = true; + jform_vvvvvxkvwz_required = true; } } } -// the vvvvvxj function -function vvvvvxj(add_php_save_vvvvvxj) +// the vvvvvxl function +function vvvvvxl(add_php_save_vvvvvxl) { // set the function logic - if (add_php_save_vvvvvxj == 1) + if (add_php_save_vvvvvxl == 1) { jQuery('#jform_php_save').closest('.control-group').show(); - if (jform_vvvvvxjvxa_required) + if (jform_vvvvvxlvxa_required) { updateFieldRequired('php_save',0); jQuery('#jform_php_save').prop('required','required'); jQuery('#jform_php_save').attr('aria-required',true); jQuery('#jform_php_save').addClass('required'); - jform_vvvvvxjvxa_required = false; + jform_vvvvvxlvxa_required = false; } } else { jQuery('#jform_php_save').closest('.control-group').hide(); - if (!jform_vvvvvxjvxa_required) + if (!jform_vvvvvxlvxa_required) { updateFieldRequired('php_save',1); jQuery('#jform_php_save').removeAttr('required'); jQuery('#jform_php_save').removeAttr('aria-required'); jQuery('#jform_php_save').removeClass('required'); - jform_vvvvvxjvxa_required = true; + jform_vvvvvxlvxa_required = true; } } } -// the vvvvvxk function -function vvvvvxk(add_php_postsavehook_vvvvvxk) +// the vvvvvxm function +function vvvvvxm(add_php_postsavehook_vvvvvxm) { // set the function logic - if (add_php_postsavehook_vvvvvxk == 1) + if (add_php_postsavehook_vvvvvxm == 1) { jQuery('#jform_php_postsavehook').closest('.control-group').show(); - if (jform_vvvvvxkvxb_required) + if (jform_vvvvvxmvxb_required) { updateFieldRequired('php_postsavehook',0); jQuery('#jform_php_postsavehook').prop('required','required'); jQuery('#jform_php_postsavehook').attr('aria-required',true); jQuery('#jform_php_postsavehook').addClass('required'); - jform_vvvvvxkvxb_required = false; + jform_vvvvvxmvxb_required = false; } } else { jQuery('#jform_php_postsavehook').closest('.control-group').hide(); - if (!jform_vvvvvxkvxb_required) + if (!jform_vvvvvxmvxb_required) { updateFieldRequired('php_postsavehook',1); jQuery('#jform_php_postsavehook').removeAttr('required'); jQuery('#jform_php_postsavehook').removeAttr('aria-required'); jQuery('#jform_php_postsavehook').removeClass('required'); - jform_vvvvvxkvxb_required = true; + jform_vvvvvxmvxb_required = true; } } } -// the vvvvvxl function -function vvvvvxl(add_php_allowedit_vvvvvxl) +// the vvvvvxn function +function vvvvvxn(add_php_allowedit_vvvvvxn) { // set the function logic - if (add_php_allowedit_vvvvvxl == 1) + if (add_php_allowedit_vvvvvxn == 1) { jQuery('#jform_php_allowedit').closest('.control-group').show(); - if (jform_vvvvvxlvxc_required) + if (jform_vvvvvxnvxc_required) { updateFieldRequired('php_allowedit',0); jQuery('#jform_php_allowedit').prop('required','required'); jQuery('#jform_php_allowedit').attr('aria-required',true); jQuery('#jform_php_allowedit').addClass('required'); - jform_vvvvvxlvxc_required = false; + jform_vvvvvxnvxc_required = false; } } else { jQuery('#jform_php_allowedit').closest('.control-group').hide(); - if (!jform_vvvvvxlvxc_required) + if (!jform_vvvvvxnvxc_required) { updateFieldRequired('php_allowedit',1); jQuery('#jform_php_allowedit').removeAttr('required'); jQuery('#jform_php_allowedit').removeAttr('aria-required'); jQuery('#jform_php_allowedit').removeClass('required'); - jform_vvvvvxlvxc_required = true; + jform_vvvvvxnvxc_required = true; } } } -// the vvvvvxm function -function vvvvvxm(add_php_batchcopy_vvvvvxm) +// the vvvvvxo function +function vvvvvxo(add_php_batchcopy_vvvvvxo) { // set the function logic - if (add_php_batchcopy_vvvvvxm == 1) + if (add_php_batchcopy_vvvvvxo == 1) { jQuery('#jform_php_batchcopy').closest('.control-group').show(); - if (jform_vvvvvxmvxd_required) + if (jform_vvvvvxovxd_required) { updateFieldRequired('php_batchcopy',0); jQuery('#jform_php_batchcopy').prop('required','required'); jQuery('#jform_php_batchcopy').attr('aria-required',true); jQuery('#jform_php_batchcopy').addClass('required'); - jform_vvvvvxmvxd_required = false; + jform_vvvvvxovxd_required = false; } } else { jQuery('#jform_php_batchcopy').closest('.control-group').hide(); - if (!jform_vvvvvxmvxd_required) + if (!jform_vvvvvxovxd_required) { updateFieldRequired('php_batchcopy',1); jQuery('#jform_php_batchcopy').removeAttr('required'); jQuery('#jform_php_batchcopy').removeAttr('aria-required'); jQuery('#jform_php_batchcopy').removeClass('required'); - jform_vvvvvxmvxd_required = true; + jform_vvvvvxovxd_required = true; } } } -// the vvvvvxn function -function vvvvvxn(add_php_batchmove_vvvvvxn) +// the vvvvvxp function +function vvvvvxp(add_php_batchmove_vvvvvxp) { // set the function logic - if (add_php_batchmove_vvvvvxn == 1) + if (add_php_batchmove_vvvvvxp == 1) { jQuery('#jform_php_batchmove').closest('.control-group').show(); - if (jform_vvvvvxnvxe_required) + if (jform_vvvvvxpvxe_required) { updateFieldRequired('php_batchmove',0); jQuery('#jform_php_batchmove').prop('required','required'); jQuery('#jform_php_batchmove').attr('aria-required',true); jQuery('#jform_php_batchmove').addClass('required'); - jform_vvvvvxnvxe_required = false; + jform_vvvvvxpvxe_required = false; } } else { jQuery('#jform_php_batchmove').closest('.control-group').hide(); - if (!jform_vvvvvxnvxe_required) + if (!jform_vvvvvxpvxe_required) { updateFieldRequired('php_batchmove',1); jQuery('#jform_php_batchmove').removeAttr('required'); jQuery('#jform_php_batchmove').removeAttr('aria-required'); jQuery('#jform_php_batchmove').removeClass('required'); - jform_vvvvvxnvxe_required = true; + jform_vvvvvxpvxe_required = true; } } } -// the vvvvvxo function -function vvvvvxo(add_php_before_publish_vvvvvxo) +// the vvvvvxq function +function vvvvvxq(add_php_before_publish_vvvvvxq) { // set the function logic - if (add_php_before_publish_vvvvvxo == 1) + if (add_php_before_publish_vvvvvxq == 1) { jQuery('#jform_php_before_publish').closest('.control-group').show(); - if (jform_vvvvvxovxf_required) + if (jform_vvvvvxqvxf_required) { updateFieldRequired('php_before_publish',0); jQuery('#jform_php_before_publish').prop('required','required'); jQuery('#jform_php_before_publish').attr('aria-required',true); jQuery('#jform_php_before_publish').addClass('required'); - jform_vvvvvxovxf_required = false; + jform_vvvvvxqvxf_required = false; } } else { jQuery('#jform_php_before_publish').closest('.control-group').hide(); - if (!jform_vvvvvxovxf_required) + if (!jform_vvvvvxqvxf_required) { updateFieldRequired('php_before_publish',1); jQuery('#jform_php_before_publish').removeAttr('required'); jQuery('#jform_php_before_publish').removeAttr('aria-required'); jQuery('#jform_php_before_publish').removeClass('required'); - jform_vvvvvxovxf_required = true; + jform_vvvvvxqvxf_required = true; } } } -// the vvvvvxp function -function vvvvvxp(add_php_after_publish_vvvvvxp) +// the vvvvvxr function +function vvvvvxr(add_php_after_publish_vvvvvxr) { // set the function logic - if (add_php_after_publish_vvvvvxp == 1) + if (add_php_after_publish_vvvvvxr == 1) { jQuery('#jform_php_after_publish').closest('.control-group').show(); - if (jform_vvvvvxpvxg_required) + if (jform_vvvvvxrvxg_required) { updateFieldRequired('php_after_publish',0); jQuery('#jform_php_after_publish').prop('required','required'); jQuery('#jform_php_after_publish').attr('aria-required',true); jQuery('#jform_php_after_publish').addClass('required'); - jform_vvvvvxpvxg_required = false; + jform_vvvvvxrvxg_required = false; } } else { jQuery('#jform_php_after_publish').closest('.control-group').hide(); - if (!jform_vvvvvxpvxg_required) + if (!jform_vvvvvxrvxg_required) { updateFieldRequired('php_after_publish',1); jQuery('#jform_php_after_publish').removeAttr('required'); jQuery('#jform_php_after_publish').removeAttr('aria-required'); jQuery('#jform_php_after_publish').removeClass('required'); - jform_vvvvvxpvxg_required = true; + jform_vvvvvxrvxg_required = true; } } } -// the vvvvvxq function -function vvvvvxq(add_php_before_delete_vvvvvxq) +// the vvvvvxs function +function vvvvvxs(add_php_before_delete_vvvvvxs) { // set the function logic - if (add_php_before_delete_vvvvvxq == 1) + if (add_php_before_delete_vvvvvxs == 1) { jQuery('#jform_php_before_delete').closest('.control-group').show(); - if (jform_vvvvvxqvxh_required) + if (jform_vvvvvxsvxh_required) { updateFieldRequired('php_before_delete',0); jQuery('#jform_php_before_delete').prop('required','required'); jQuery('#jform_php_before_delete').attr('aria-required',true); jQuery('#jform_php_before_delete').addClass('required'); - jform_vvvvvxqvxh_required = false; + jform_vvvvvxsvxh_required = false; } } else { jQuery('#jform_php_before_delete').closest('.control-group').hide(); - if (!jform_vvvvvxqvxh_required) + if (!jform_vvvvvxsvxh_required) { updateFieldRequired('php_before_delete',1); jQuery('#jform_php_before_delete').removeAttr('required'); jQuery('#jform_php_before_delete').removeAttr('aria-required'); jQuery('#jform_php_before_delete').removeClass('required'); - jform_vvvvvxqvxh_required = true; + jform_vvvvvxsvxh_required = true; } } } -// the vvvvvxr function -function vvvvvxr(add_php_after_delete_vvvvvxr) +// the vvvvvxt function +function vvvvvxt(add_php_after_delete_vvvvvxt) { // set the function logic - if (add_php_after_delete_vvvvvxr == 1) + if (add_php_after_delete_vvvvvxt == 1) { jQuery('#jform_php_after_delete').closest('.control-group').show(); - if (jform_vvvvvxrvxi_required) + if (jform_vvvvvxtvxi_required) { updateFieldRequired('php_after_delete',0); jQuery('#jform_php_after_delete').prop('required','required'); jQuery('#jform_php_after_delete').attr('aria-required',true); jQuery('#jform_php_after_delete').addClass('required'); - jform_vvvvvxrvxi_required = false; + jform_vvvvvxtvxi_required = false; } } else { jQuery('#jform_php_after_delete').closest('.control-group').hide(); - if (!jform_vvvvvxrvxi_required) + if (!jform_vvvvvxtvxi_required) { updateFieldRequired('php_after_delete',1); jQuery('#jform_php_after_delete').removeAttr('required'); jQuery('#jform_php_after_delete').removeAttr('aria-required'); jQuery('#jform_php_after_delete').removeClass('required'); - jform_vvvvvxrvxi_required = true; + jform_vvvvvxtvxi_required = true; } } } -// the vvvvvxs function -function vvvvvxs(add_php_document_vvvvvxs) +// the vvvvvxu function +function vvvvvxu(add_php_document_vvvvvxu) { // set the function logic - if (add_php_document_vvvvvxs == 1) + if (add_php_document_vvvvvxu == 1) { jQuery('#jform_php_document').closest('.control-group').show(); - if (jform_vvvvvxsvxj_required) + if (jform_vvvvvxuvxj_required) { updateFieldRequired('php_document',0); jQuery('#jform_php_document').prop('required','required'); jQuery('#jform_php_document').attr('aria-required',true); jQuery('#jform_php_document').addClass('required'); - jform_vvvvvxsvxj_required = false; + jform_vvvvvxuvxj_required = false; } } else { jQuery('#jform_php_document').closest('.control-group').hide(); - if (!jform_vvvvvxsvxj_required) + if (!jform_vvvvvxuvxj_required) { updateFieldRequired('php_document',1); jQuery('#jform_php_document').removeAttr('required'); jQuery('#jform_php_document').removeAttr('aria-required'); jQuery('#jform_php_document').removeClass('required'); - jform_vvvvvxsvxj_required = true; + jform_vvvvvxuvxj_required = true; } } } -// the vvvvvxt function -function vvvvvxt(add_sql_vvvvvxt) +// the vvvvvxv function +function vvvvvxv(add_sql_vvvvvxv) { // set the function logic - if (add_sql_vvvvvxt == 1) + if (add_sql_vvvvvxv == 1) { jQuery('#jform_source').closest('.control-group').show(); - if (jform_vvvvvxtvxk_required) + if (jform_vvvvvxvvxk_required) { updateFieldRequired('source',0); jQuery('#jform_source').prop('required','required'); jQuery('#jform_source').attr('aria-required',true); jQuery('#jform_source').addClass('required'); - jform_vvvvvxtvxk_required = false; + jform_vvvvvxvvxk_required = false; } } else { jQuery('#jform_source').closest('.control-group').hide(); - if (!jform_vvvvvxtvxk_required) + if (!jform_vvvvvxvvxk_required) { updateFieldRequired('source',1); jQuery('#jform_source').removeAttr('required'); jQuery('#jform_source').removeAttr('aria-required'); jQuery('#jform_source').removeClass('required'); - jform_vvvvvxtvxk_required = true; - } - } -} - -// the vvvvvxu function -function vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu) -{ - // set the function logic - if (source_vvvvvxu == 2 && add_sql_vvvvvxu == 1) - { - jQuery('#jform_sql').closest('.control-group').show(); - if (jform_vvvvvxuvxl_required) - { - updateFieldRequired('sql',0); - jQuery('#jform_sql').prop('required','required'); - jQuery('#jform_sql').attr('aria-required',true); - jQuery('#jform_sql').addClass('required'); - jform_vvvvvxuvxl_required = false; - } - - } - else - { - jQuery('#jform_sql').closest('.control-group').hide(); - if (!jform_vvvvvxuvxl_required) - { - updateFieldRequired('sql',1); - jQuery('#jform_sql').removeAttr('required'); - jQuery('#jform_sql').removeAttr('aria-required'); - jQuery('#jform_sql').removeClass('required'); - jform_vvvvvxuvxl_required = true; + jform_vvvvvxvvxk_required = true; } } } @@ -899,7 +868,38 @@ function vvvvvxu(source_vvvvvxu,add_sql_vvvvvxu) function vvvvvxw(source_vvvvvxw,add_sql_vvvvvxw) { // set the function logic - if (source_vvvvvxw == 1 && add_sql_vvvvvxw == 1) + if (source_vvvvvxw == 2 && add_sql_vvvvvxw == 1) + { + jQuery('#jform_sql').closest('.control-group').show(); + if (jform_vvvvvxwvxl_required) + { + updateFieldRequired('sql',0); + jQuery('#jform_sql').prop('required','required'); + jQuery('#jform_sql').attr('aria-required',true); + jQuery('#jform_sql').addClass('required'); + jform_vvvvvxwvxl_required = false; + } + + } + else + { + jQuery('#jform_sql').closest('.control-group').hide(); + if (!jform_vvvvvxwvxl_required) + { + updateFieldRequired('sql',1); + jQuery('#jform_sql').removeAttr('required'); + jQuery('#jform_sql').removeAttr('aria-required'); + jQuery('#jform_sql').removeClass('required'); + jform_vvvvvxwvxl_required = true; + } + } +} + +// the vvvvvxy function +function vvvvvxy(source_vvvvvxy,add_sql_vvvvvxy) +{ + // set the function logic + if (source_vvvvvxy == 1 && add_sql_vvvvvxy == 1) { jQuery('#jform_addtables-lbl').closest('.control-group').show(); } @@ -909,158 +909,158 @@ function vvvvvxw(source_vvvvvxw,add_sql_vvvvvxw) } } -// the vvvvvxy function -function vvvvvxy(add_custom_import_vvvvvxy) +// the vvvvvya function +function vvvvvya(add_custom_import_vvvvvya) { // set the function logic - if (add_custom_import_vvvvvxy == 1) + if (add_custom_import_vvvvvya == 1) { jQuery('#jform_html_import_view').closest('.control-group').show(); - if (jform_vvvvvxyvxm_required) + if (jform_vvvvvyavxm_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_vvvvvxyvxm_required = false; + jform_vvvvvyavxm_required = false; } jQuery('.note_advanced_import').closest('.control-group').show(); jQuery('#jform_php_import_display').closest('.control-group').show(); - if (jform_vvvvvxyvxn_required) + if (jform_vvvvvyavxn_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_vvvvvxyvxn_required = false; + jform_vvvvvyavxn_required = false; } jQuery('#jform_php_import_ext').closest('.control-group').show(); - if (jform_vvvvvxyvxo_required) + if (jform_vvvvvyavxo_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_vvvvvxyvxo_required = false; + jform_vvvvvyavxo_required = false; } jQuery('#jform_php_import_headers').closest('.control-group').show(); - if (jform_vvvvvxyvxp_required) + if (jform_vvvvvyavxp_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_vvvvvxyvxp_required = false; + jform_vvvvvyavxp_required = false; } jQuery('#jform_php_import').closest('.control-group').show(); - if (jform_vvvvvxyvxq_required) + if (jform_vvvvvyavxq_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_vvvvvxyvxq_required = false; + jform_vvvvvyavxq_required = false; } jQuery('#jform_php_import_save').closest('.control-group').show(); - if (jform_vvvvvxyvxr_required) + if (jform_vvvvvyavxr_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_vvvvvxyvxr_required = false; + jform_vvvvvyavxr_required = false; } jQuery('#jform_php_import_setdata').closest('.control-group').show(); - if (jform_vvvvvxyvxs_required) + if (jform_vvvvvyavxs_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_vvvvvxyvxs_required = false; + jform_vvvvvyavxs_required = false; } } else { jQuery('#jform_html_import_view').closest('.control-group').hide(); - if (!jform_vvvvvxyvxm_required) + if (!jform_vvvvvyavxm_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_vvvvvxyvxm_required = true; + jform_vvvvvyavxm_required = true; } jQuery('.note_advanced_import').closest('.control-group').hide(); jQuery('#jform_php_import_display').closest('.control-group').hide(); - if (!jform_vvvvvxyvxn_required) + if (!jform_vvvvvyavxn_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_vvvvvxyvxn_required = true; + jform_vvvvvyavxn_required = true; } jQuery('#jform_php_import_ext').closest('.control-group').hide(); - if (!jform_vvvvvxyvxo_required) + if (!jform_vvvvvyavxo_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_vvvvvxyvxo_required = true; + jform_vvvvvyavxo_required = true; } jQuery('#jform_php_import_headers').closest('.control-group').hide(); - if (!jform_vvvvvxyvxp_required) + if (!jform_vvvvvyavxp_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_vvvvvxyvxp_required = true; + jform_vvvvvyavxp_required = true; } jQuery('#jform_php_import').closest('.control-group').hide(); - if (!jform_vvvvvxyvxq_required) + if (!jform_vvvvvyavxq_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_vvvvvxyvxq_required = true; + jform_vvvvvyavxq_required = true; } jQuery('#jform_php_import_save').closest('.control-group').hide(); - if (!jform_vvvvvxyvxr_required) + if (!jform_vvvvvyavxr_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_vvvvvxyvxr_required = true; + jform_vvvvvyavxr_required = true; } jQuery('#jform_php_import_setdata').closest('.control-group').hide(); - if (!jform_vvvvvxyvxs_required) + if (!jform_vvvvvyavxs_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_vvvvvxyvxs_required = true; + jform_vvvvvyavxs_required = true; } } } -// the vvvvvxz function -function vvvvvxz(add_custom_import_vvvvvxz) +// the vvvvvyb function +function vvvvvyb(add_custom_import_vvvvvyb) { // set the function logic - if (add_custom_import_vvvvvxz == 0) + if (add_custom_import_vvvvvyb == 0) { jQuery('.note_beginner_import').closest('.control-group').show(); } @@ -1070,51 +1070,51 @@ function vvvvvxz(add_custom_import_vvvvvxz) } } -// the vvvvvya function -function vvvvvya(add_custom_button_vvvvvya) +// the vvvvvyc function +function vvvvvyc(add_custom_button_vvvvvyc) { // set the function logic - if (add_custom_button_vvvvvya == 1) + if (add_custom_button_vvvvvyc == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller').closest('.control-group').show(); - if (jform_vvvvvyavxt_required) + if (jform_vvvvvycvxt_required) { updateFieldRequired('php_controller',0); jQuery('#jform_php_controller').prop('required','required'); jQuery('#jform_php_controller').attr('aria-required',true); jQuery('#jform_php_controller').addClass('required'); - jform_vvvvvyavxt_required = false; + jform_vvvvvycvxt_required = false; } jQuery('#jform_php_controller_list').closest('.control-group').show(); - if (jform_vvvvvyavxu_required) + if (jform_vvvvvycvxu_required) { updateFieldRequired('php_controller_list',0); jQuery('#jform_php_controller_list').prop('required','required'); jQuery('#jform_php_controller_list').attr('aria-required',true); jQuery('#jform_php_controller_list').addClass('required'); - jform_vvvvvyavxu_required = false; + jform_vvvvvycvxu_required = false; } jQuery('#jform_php_model').closest('.control-group').show(); - if (jform_vvvvvyavxv_required) + if (jform_vvvvvycvxv_required) { updateFieldRequired('php_model',0); jQuery('#jform_php_model').prop('required','required'); jQuery('#jform_php_model').attr('aria-required',true); jQuery('#jform_php_model').addClass('required'); - jform_vvvvvyavxv_required = false; + jform_vvvvvycvxv_required = false; } jQuery('#jform_php_model_list').closest('.control-group').show(); - if (jform_vvvvvyavxw_required) + if (jform_vvvvvycvxw_required) { updateFieldRequired('php_model_list',0); jQuery('#jform_php_model_list').prop('required','required'); jQuery('#jform_php_model_list').attr('aria-required',true); jQuery('#jform_php_model_list').addClass('required'); - jform_vvvvvyavxw_required = false; + jform_vvvvvycvxw_required = false; } } @@ -1122,40 +1122,40 @@ function vvvvvya(add_custom_button_vvvvvya) { jQuery('#jform_custom_button-lbl').closest('.control-group').hide(); jQuery('#jform_php_controller').closest('.control-group').hide(); - if (!jform_vvvvvyavxt_required) + if (!jform_vvvvvycvxt_required) { updateFieldRequired('php_controller',1); jQuery('#jform_php_controller').removeAttr('required'); jQuery('#jform_php_controller').removeAttr('aria-required'); jQuery('#jform_php_controller').removeClass('required'); - jform_vvvvvyavxt_required = true; + jform_vvvvvycvxt_required = true; } jQuery('#jform_php_controller_list').closest('.control-group').hide(); - if (!jform_vvvvvyavxu_required) + if (!jform_vvvvvycvxu_required) { updateFieldRequired('php_controller_list',1); jQuery('#jform_php_controller_list').removeAttr('required'); jQuery('#jform_php_controller_list').removeAttr('aria-required'); jQuery('#jform_php_controller_list').removeClass('required'); - jform_vvvvvyavxu_required = true; + jform_vvvvvycvxu_required = true; } jQuery('#jform_php_model').closest('.control-group').hide(); - if (!jform_vvvvvyavxv_required) + if (!jform_vvvvvycvxv_required) { updateFieldRequired('php_model',1); jQuery('#jform_php_model').removeAttr('required'); jQuery('#jform_php_model').removeAttr('aria-required'); jQuery('#jform_php_model').removeClass('required'); - jform_vvvvvyavxv_required = true; + jform_vvvvvycvxv_required = true; } jQuery('#jform_php_model_list').closest('.control-group').hide(); - if (!jform_vvvvvyavxw_required) + if (!jform_vvvvvycvxw_required) { updateFieldRequired('php_model_list',1); jQuery('#jform_php_model_list').removeAttr('required'); jQuery('#jform_php_model_list').removeAttr('aria-required'); jQuery('#jform_php_model_list').removeClass('required'); - jform_vvvvvyavxw_required = true; + jform_vvvvvycvxw_required = true; } } } diff --git a/admin/models/forms/custom_admin_view.js b/admin/models/forms/custom_admin_view.js index 251e6f816..cb811b55e 100644 --- a/admin/models/forms/custom_admin_view.js +++ b/admin/models/forms/custom_admin_view.js @@ -23,294 +23,294 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvvybvxx_required = false; -jform_vvvvvycvxy_required = false; -jform_vvvvvydvxz_required = false; -jform_vvvvvyevya_required = false; -jform_vvvvvyfvyb_required = false; -jform_vvvvvygvyc_required = false; -jform_vvvvvyhvyd_required = false; -jform_vvvvvyivye_required = false; -jform_vvvvvyivyf_required = false; -jform_vvvvvyjvyg_required = false; -jform_vvvvvykvyh_required = false; +jform_vvvvvydvxx_required = false; +jform_vvvvvyevxy_required = false; +jform_vvvvvyfvxz_required = false; +jform_vvvvvygvya_required = false; +jform_vvvvvyhvyb_required = false; +jform_vvvvvyivyc_required = false; +jform_vvvvvyjvyd_required = false; +jform_vvvvvykvye_required = false; +jform_vvvvvykvyf_required = false; +jform_vvvvvylvyg_required = false; +jform_vvvvvymvyh_required = false; // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvvyb = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvvyb(add_php_view_vvvvvyb); + var add_php_view_vvvvvyd = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvvyd(add_php_view_vvvvvyd); - var add_php_jview_display_vvvvvyc = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); - vvvvvyc(add_php_jview_display_vvvvvyc); + var add_php_jview_display_vvvvvye = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); + vvvvvye(add_php_jview_display_vvvvvye); - var add_php_jview_vvvvvyd = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); - vvvvvyd(add_php_jview_vvvvvyd); + var add_php_jview_vvvvvyf = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); + vvvvvyf(add_php_jview_vvvvvyf); - var add_php_document_vvvvvye = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvye(add_php_document_vvvvvye); + var add_php_document_vvvvvyg = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvyg(add_php_document_vvvvvyg); - var add_css_document_vvvvvyf = jQuery("#jform_add_css_document input[type='radio']:checked").val(); - vvvvvyf(add_css_document_vvvvvyf); + var add_css_document_vvvvvyh = jQuery("#jform_add_css_document input[type='radio']:checked").val(); + vvvvvyh(add_css_document_vvvvvyh); - var add_javascript_file_vvvvvyg = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); - vvvvvyg(add_javascript_file_vvvvvyg); + var add_javascript_file_vvvvvyi = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); + vvvvvyi(add_javascript_file_vvvvvyi); - var add_js_document_vvvvvyh = jQuery("#jform_add_js_document input[type='radio']:checked").val(); - vvvvvyh(add_js_document_vvvvvyh); + var add_js_document_vvvvvyj = jQuery("#jform_add_js_document input[type='radio']:checked").val(); + vvvvvyj(add_js_document_vvvvvyj); - var add_custom_button_vvvvvyi = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvyi(add_custom_button_vvvvvyi); + var add_custom_button_vvvvvyk = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvyk(add_custom_button_vvvvvyk); - var add_css_vvvvvyj = jQuery("#jform_add_css input[type='radio']:checked").val(); - vvvvvyj(add_css_vvvvvyj); + var add_css_vvvvvyl = jQuery("#jform_add_css input[type='radio']:checked").val(); + vvvvvyl(add_css_vvvvvyl); - var add_php_ajax_vvvvvyk = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvyk(add_php_ajax_vvvvvyk); + var add_php_ajax_vvvvvym = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvym(add_php_ajax_vvvvvym); }); -// the vvvvvyb function -function vvvvvyb(add_php_view_vvvvvyb) +// the vvvvvyd function +function vvvvvyd(add_php_view_vvvvvyd) { // set the function logic - if (add_php_view_vvvvvyb == 1) + if (add_php_view_vvvvvyd == 1) { jQuery('#jform_php_view').closest('.control-group').show(); - if (jform_vvvvvybvxx_required) + if (jform_vvvvvydvxx_required) { updateFieldRequired('php_view',0); jQuery('#jform_php_view').prop('required','required'); jQuery('#jform_php_view').attr('aria-required',true); jQuery('#jform_php_view').addClass('required'); - jform_vvvvvybvxx_required = false; + jform_vvvvvydvxx_required = false; } } else { jQuery('#jform_php_view').closest('.control-group').hide(); - if (!jform_vvvvvybvxx_required) + if (!jform_vvvvvydvxx_required) { updateFieldRequired('php_view',1); jQuery('#jform_php_view').removeAttr('required'); jQuery('#jform_php_view').removeAttr('aria-required'); jQuery('#jform_php_view').removeClass('required'); - jform_vvvvvybvxx_required = true; + jform_vvvvvydvxx_required = true; } } } -// the vvvvvyc function -function vvvvvyc(add_php_jview_display_vvvvvyc) +// the vvvvvye function +function vvvvvye(add_php_jview_display_vvvvvye) { // set the function logic - if (add_php_jview_display_vvvvvyc == 1) + if (add_php_jview_display_vvvvvye == 1) { jQuery('#jform_php_jview_display').closest('.control-group').show(); - if (jform_vvvvvycvxy_required) + if (jform_vvvvvyevxy_required) { updateFieldRequired('php_jview_display',0); jQuery('#jform_php_jview_display').prop('required','required'); jQuery('#jform_php_jview_display').attr('aria-required',true); jQuery('#jform_php_jview_display').addClass('required'); - jform_vvvvvycvxy_required = false; + jform_vvvvvyevxy_required = false; } } else { jQuery('#jform_php_jview_display').closest('.control-group').hide(); - if (!jform_vvvvvycvxy_required) + if (!jform_vvvvvyevxy_required) { updateFieldRequired('php_jview_display',1); jQuery('#jform_php_jview_display').removeAttr('required'); jQuery('#jform_php_jview_display').removeAttr('aria-required'); jQuery('#jform_php_jview_display').removeClass('required'); - jform_vvvvvycvxy_required = true; + jform_vvvvvyevxy_required = true; } } } -// the vvvvvyd function -function vvvvvyd(add_php_jview_vvvvvyd) +// the vvvvvyf function +function vvvvvyf(add_php_jview_vvvvvyf) { // set the function logic - if (add_php_jview_vvvvvyd == 1) + if (add_php_jview_vvvvvyf == 1) { jQuery('#jform_php_jview').closest('.control-group').show(); - if (jform_vvvvvydvxz_required) + if (jform_vvvvvyfvxz_required) { updateFieldRequired('php_jview',0); jQuery('#jform_php_jview').prop('required','required'); jQuery('#jform_php_jview').attr('aria-required',true); jQuery('#jform_php_jview').addClass('required'); - jform_vvvvvydvxz_required = false; + jform_vvvvvyfvxz_required = false; } } else { jQuery('#jform_php_jview').closest('.control-group').hide(); - if (!jform_vvvvvydvxz_required) + if (!jform_vvvvvyfvxz_required) { updateFieldRequired('php_jview',1); jQuery('#jform_php_jview').removeAttr('required'); jQuery('#jform_php_jview').removeAttr('aria-required'); jQuery('#jform_php_jview').removeClass('required'); - jform_vvvvvydvxz_required = true; + jform_vvvvvyfvxz_required = true; } } } -// the vvvvvye function -function vvvvvye(add_php_document_vvvvvye) +// the vvvvvyg function +function vvvvvyg(add_php_document_vvvvvyg) { // set the function logic - if (add_php_document_vvvvvye == 1) + if (add_php_document_vvvvvyg == 1) { jQuery('#jform_php_document').closest('.control-group').show(); - if (jform_vvvvvyevya_required) + if (jform_vvvvvygvya_required) { updateFieldRequired('php_document',0); jQuery('#jform_php_document').prop('required','required'); jQuery('#jform_php_document').attr('aria-required',true); jQuery('#jform_php_document').addClass('required'); - jform_vvvvvyevya_required = false; + jform_vvvvvygvya_required = false; } } else { jQuery('#jform_php_document').closest('.control-group').hide(); - if (!jform_vvvvvyevya_required) + if (!jform_vvvvvygvya_required) { updateFieldRequired('php_document',1); jQuery('#jform_php_document').removeAttr('required'); jQuery('#jform_php_document').removeAttr('aria-required'); jQuery('#jform_php_document').removeClass('required'); - jform_vvvvvyevya_required = true; + jform_vvvvvygvya_required = true; } } } -// the vvvvvyf function -function vvvvvyf(add_css_document_vvvvvyf) +// the vvvvvyh function +function vvvvvyh(add_css_document_vvvvvyh) { // set the function logic - if (add_css_document_vvvvvyf == 1) + if (add_css_document_vvvvvyh == 1) { jQuery('#jform_css_document').closest('.control-group').show(); - if (jform_vvvvvyfvyb_required) + if (jform_vvvvvyhvyb_required) { updateFieldRequired('css_document',0); jQuery('#jform_css_document').prop('required','required'); jQuery('#jform_css_document').attr('aria-required',true); jQuery('#jform_css_document').addClass('required'); - jform_vvvvvyfvyb_required = false; + jform_vvvvvyhvyb_required = false; } } else { jQuery('#jform_css_document').closest('.control-group').hide(); - if (!jform_vvvvvyfvyb_required) + if (!jform_vvvvvyhvyb_required) { updateFieldRequired('css_document',1); jQuery('#jform_css_document').removeAttr('required'); jQuery('#jform_css_document').removeAttr('aria-required'); jQuery('#jform_css_document').removeClass('required'); - jform_vvvvvyfvyb_required = true; + jform_vvvvvyhvyb_required = true; } } } -// the vvvvvyg function -function vvvvvyg(add_javascript_file_vvvvvyg) +// the vvvvvyi function +function vvvvvyi(add_javascript_file_vvvvvyi) { // set the function logic - if (add_javascript_file_vvvvvyg == 1) + if (add_javascript_file_vvvvvyi == 1) { jQuery('#jform_javascript_file').closest('.control-group').show(); - if (jform_vvvvvygvyc_required) + if (jform_vvvvvyivyc_required) { updateFieldRequired('javascript_file',0); jQuery('#jform_javascript_file').prop('required','required'); jQuery('#jform_javascript_file').attr('aria-required',true); jQuery('#jform_javascript_file').addClass('required'); - jform_vvvvvygvyc_required = false; + jform_vvvvvyivyc_required = false; } } else { jQuery('#jform_javascript_file').closest('.control-group').hide(); - if (!jform_vvvvvygvyc_required) + if (!jform_vvvvvyivyc_required) { updateFieldRequired('javascript_file',1); jQuery('#jform_javascript_file').removeAttr('required'); jQuery('#jform_javascript_file').removeAttr('aria-required'); jQuery('#jform_javascript_file').removeClass('required'); - jform_vvvvvygvyc_required = true; + jform_vvvvvyivyc_required = true; } } } -// the vvvvvyh function -function vvvvvyh(add_js_document_vvvvvyh) +// the vvvvvyj function +function vvvvvyj(add_js_document_vvvvvyj) { // set the function logic - if (add_js_document_vvvvvyh == 1) + if (add_js_document_vvvvvyj == 1) { jQuery('#jform_js_document').closest('.control-group').show(); - if (jform_vvvvvyhvyd_required) + if (jform_vvvvvyjvyd_required) { updateFieldRequired('js_document',0); jQuery('#jform_js_document').prop('required','required'); jQuery('#jform_js_document').attr('aria-required',true); jQuery('#jform_js_document').addClass('required'); - jform_vvvvvyhvyd_required = false; + jform_vvvvvyjvyd_required = false; } } else { jQuery('#jform_js_document').closest('.control-group').hide(); - if (!jform_vvvvvyhvyd_required) + if (!jform_vvvvvyjvyd_required) { updateFieldRequired('js_document',1); jQuery('#jform_js_document').removeAttr('required'); jQuery('#jform_js_document').removeAttr('aria-required'); jQuery('#jform_js_document').removeClass('required'); - jform_vvvvvyhvyd_required = true; + jform_vvvvvyjvyd_required = true; } } } -// the vvvvvyi function -function vvvvvyi(add_custom_button_vvvvvyi) +// the vvvvvyk function +function vvvvvyk(add_custom_button_vvvvvyk) { // set the function logic - if (add_custom_button_vvvvvyi == 1) + if (add_custom_button_vvvvvyk == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller').closest('.control-group').show(); - if (jform_vvvvvyivye_required) + if (jform_vvvvvykvye_required) { updateFieldRequired('php_controller',0); jQuery('#jform_php_controller').prop('required','required'); jQuery('#jform_php_controller').attr('aria-required',true); jQuery('#jform_php_controller').addClass('required'); - jform_vvvvvyivye_required = false; + jform_vvvvvykvye_required = false; } jQuery('#jform_php_model').closest('.control-group').show(); - if (jform_vvvvvyivyf_required) + if (jform_vvvvvykvyf_required) { updateFieldRequired('php_model',0); jQuery('#jform_php_model').prop('required','required'); jQuery('#jform_php_model').attr('aria-required',true); jQuery('#jform_php_model').addClass('required'); - jform_vvvvvyivyf_required = false; + jform_vvvvvykvyf_required = false; } } @@ -318,72 +318,72 @@ function vvvvvyi(add_custom_button_vvvvvyi) { jQuery('#jform_custom_button-lbl').closest('.control-group').hide(); jQuery('#jform_php_controller').closest('.control-group').hide(); - if (!jform_vvvvvyivye_required) + if (!jform_vvvvvykvye_required) { updateFieldRequired('php_controller',1); jQuery('#jform_php_controller').removeAttr('required'); jQuery('#jform_php_controller').removeAttr('aria-required'); jQuery('#jform_php_controller').removeClass('required'); - jform_vvvvvyivye_required = true; + jform_vvvvvykvye_required = true; } jQuery('#jform_php_model').closest('.control-group').hide(); - if (!jform_vvvvvyivyf_required) + if (!jform_vvvvvykvyf_required) { updateFieldRequired('php_model',1); jQuery('#jform_php_model').removeAttr('required'); jQuery('#jform_php_model').removeAttr('aria-required'); jQuery('#jform_php_model').removeClass('required'); - jform_vvvvvyivyf_required = true; + jform_vvvvvykvyf_required = true; } } } -// the vvvvvyj function -function vvvvvyj(add_css_vvvvvyj) +// the vvvvvyl function +function vvvvvyl(add_css_vvvvvyl) { // set the function logic - if (add_css_vvvvvyj == 1) + if (add_css_vvvvvyl == 1) { jQuery('#jform_css').closest('.control-group').show(); - if (jform_vvvvvyjvyg_required) + if (jform_vvvvvylvyg_required) { updateFieldRequired('css',0); jQuery('#jform_css').prop('required','required'); jQuery('#jform_css').attr('aria-required',true); jQuery('#jform_css').addClass('required'); - jform_vvvvvyjvyg_required = false; + jform_vvvvvylvyg_required = false; } } else { jQuery('#jform_css').closest('.control-group').hide(); - if (!jform_vvvvvyjvyg_required) + if (!jform_vvvvvylvyg_required) { updateFieldRequired('css',1); jQuery('#jform_css').removeAttr('required'); jQuery('#jform_css').removeAttr('aria-required'); jQuery('#jform_css').removeClass('required'); - jform_vvvvvyjvyg_required = true; + jform_vvvvvylvyg_required = true; } } } -// the vvvvvyk function -function vvvvvyk(add_php_ajax_vvvvvyk) +// the vvvvvym function +function vvvvvym(add_php_ajax_vvvvvym) { // set the function logic - if (add_php_ajax_vvvvvyk == 1) + if (add_php_ajax_vvvvvym == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod').closest('.control-group').show(); - if (jform_vvvvvykvyh_required) + if (jform_vvvvvymvyh_required) { updateFieldRequired('php_ajaxmethod',0); jQuery('#jform_php_ajaxmethod').prop('required','required'); jQuery('#jform_php_ajaxmethod').attr('aria-required',true); jQuery('#jform_php_ajaxmethod').addClass('required'); - jform_vvvvvykvyh_required = false; + jform_vvvvvymvyh_required = false; } } @@ -391,13 +391,13 @@ function vvvvvyk(add_php_ajax_vvvvvyk) { jQuery('#jform_ajax_input-lbl').closest('.control-group').hide(); jQuery('#jform_php_ajaxmethod').closest('.control-group').hide(); - if (!jform_vvvvvykvyh_required) + if (!jform_vvvvvymvyh_required) { updateFieldRequired('php_ajaxmethod',1); jQuery('#jform_php_ajaxmethod').removeAttr('required'); jQuery('#jform_php_ajaxmethod').removeAttr('aria-required'); jQuery('#jform_php_ajaxmethod').removeClass('required'); - jform_vvvvvykvyh_required = true; + jform_vvvvvymvyh_required = true; } } } diff --git a/admin/models/forms/custom_code.js b/admin/models/forms/custom_code.js index 42be4eb39..00423e98d 100644 --- a/admin/models/forms/custom_code.js +++ b/admin/models/forms/custom_code.js @@ -23,43 +23,43 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvvzxvzp_required = false; -jform_vvvvvzyvzq_required = false; -jform_vvvvvzyvzr_required = false; -jform_vvvvvzyvzs_required = false; +jform_vvvvvzzvzp_required = false; +jform_vvvvwaavzq_required = false; +jform_vvvvwaavzr_required = false; +jform_vvvvwaavzs_required = false; // Initial Script jQuery(document).ready(function() { - var target_vvvvvzx = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvvzx(target_vvvvvzx); - - var target_vvvvvzy = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvvzy(target_vvvvvzy); - var target_vvvvvzz = jQuery("#jform_target input[type='radio']:checked").val(); - var type_vvvvvzz = jQuery("#jform_type input[type='radio']:checked").val(); - vvvvvzz(target_vvvvvzz,type_vvvvvzz); + vvvvvzz(target_vvvvvzz); - var type_vvvvwaa = jQuery("#jform_type input[type='radio']:checked").val(); var target_vvvvwaa = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwaa(type_vvvvwaa,target_vvvvwaa); + vvvvwaa(target_vvvvwaa); + + var target_vvvvwab = jQuery("#jform_target input[type='radio']:checked").val(); + var type_vvvvwab = jQuery("#jform_type input[type='radio']:checked").val(); + vvvvwab(target_vvvvwab,type_vvvvwab); + + var type_vvvvwac = jQuery("#jform_type input[type='radio']:checked").val(); + var target_vvvvwac = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwac(type_vvvvwac,target_vvvvwac); }); -// the vvvvvzx function -function vvvvvzx(target_vvvvvzx) +// the vvvvvzz function +function vvvvvzz(target_vvvvvzz) { // set the function logic - if (target_vvvvvzx == 2) + if (target_vvvvvzz == 2) { jQuery('#jform_function_name').closest('.control-group').show(); - if (jform_vvvvvzxvzp_required) + if (jform_vvvvvzzvzp_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_vvvvvzxvzp_required = false; + jform_vvvvvzzvzp_required = false; } jQuery('.note_jcb_placeholder').closest('.control-group').show(); @@ -68,99 +68,99 @@ function vvvvvzx(target_vvvvvzx) else { jQuery('#jform_function_name').closest('.control-group').hide(); - if (!jform_vvvvvzxvzp_required) + if (!jform_vvvvvzzvzp_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_vvvvvzxvzp_required = true; + jform_vvvvvzzvzp_required = true; } jQuery('.note_jcb_placeholder').closest('.control-group').hide(); jQuery('#jform_system_name').closest('.control-group').hide(); } } -// the vvvvvzy function -function vvvvvzy(target_vvvvvzy) +// the vvvvwaa function +function vvvvwaa(target_vvvvwaa) { // set the function logic - if (target_vvvvvzy == 1) + if (target_vvvvwaa == 1) { jQuery('#jform_component').closest('.control-group').show(); - if (jform_vvvvvzyvzq_required) + if (jform_vvvvwaavzq_required) { updateFieldRequired('component',0); jQuery('#jform_component').prop('required','required'); jQuery('#jform_component').attr('aria-required',true); jQuery('#jform_component').addClass('required'); - jform_vvvvvzyvzq_required = false; + jform_vvvvwaavzq_required = false; } jQuery('#jform_path').closest('.control-group').show(); - if (jform_vvvvvzyvzr_required) + if (jform_vvvvwaavzr_required) { updateFieldRequired('path',0); jQuery('#jform_path').prop('required','required'); jQuery('#jform_path').attr('aria-required',true); jQuery('#jform_path').addClass('required'); - jform_vvvvvzyvzr_required = false; + jform_vvvvwaavzr_required = false; } jQuery('#jform_from_line').closest('.control-group').show(); jQuery('#jform_hashtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); jQuery('#jform_type').closest('.control-group').show(); - if (jform_vvvvvzyvzs_required) + if (jform_vvvvwaavzs_required) { updateFieldRequired('type',0); jQuery('#jform_type').prop('required','required'); jQuery('#jform_type').attr('aria-required',true); jQuery('#jform_type').addClass('required'); - jform_vvvvvzyvzs_required = false; + jform_vvvvwaavzs_required = false; } } else { jQuery('#jform_component').closest('.control-group').hide(); - if (!jform_vvvvvzyvzq_required) + if (!jform_vvvvwaavzq_required) { updateFieldRequired('component',1); jQuery('#jform_component').removeAttr('required'); jQuery('#jform_component').removeAttr('aria-required'); jQuery('#jform_component').removeClass('required'); - jform_vvvvvzyvzq_required = true; + jform_vvvvwaavzq_required = true; } jQuery('#jform_path').closest('.control-group').hide(); - if (!jform_vvvvvzyvzr_required) + if (!jform_vvvvwaavzr_required) { updateFieldRequired('path',1); jQuery('#jform_path').removeAttr('required'); jQuery('#jform_path').removeAttr('aria-required'); jQuery('#jform_path').removeClass('required'); - jform_vvvvvzyvzr_required = true; + jform_vvvvwaavzr_required = true; } jQuery('#jform_from_line').closest('.control-group').hide(); jQuery('#jform_hashtarget').closest('.control-group').hide(); jQuery('#jform_to_line').closest('.control-group').hide(); jQuery('#jform_type').closest('.control-group').hide(); - if (!jform_vvvvvzyvzs_required) + if (!jform_vvvvwaavzs_required) { updateFieldRequired('type',1); jQuery('#jform_type').removeAttr('required'); jQuery('#jform_type').removeAttr('aria-required'); jQuery('#jform_type').removeClass('required'); - jform_vvvvvzyvzs_required = true; + jform_vvvvwaavzs_required = true; } } } -// the vvvvvzz function -function vvvvvzz(target_vvvvvzz,type_vvvvvzz) +// the vvvvwab function +function vvvvwab(target_vvvvwab,type_vvvvwab) { // set the function logic - if (target_vvvvvzz == 1 && type_vvvvvzz == 1) + if (target_vvvvwab == 1 && type_vvvvwab == 1) { jQuery('#jform_hashendtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); @@ -172,11 +172,11 @@ function vvvvvzz(target_vvvvvzz,type_vvvvvzz) } } -// the vvvvwaa function -function vvvvwaa(type_vvvvwaa,target_vvvvwaa) +// the vvvvwac function +function vvvvwac(type_vvvvwac,target_vvvvwac) { // set the function logic - if (type_vvvvwaa == 1 && target_vvvvwaa == 1) + if (type_vvvvwac == 1 && target_vvvvwac == 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 e505bd47e..e2fc7b332 100644 --- a/admin/models/forms/dynamic_get.js +++ b/admin/models/forms/dynamic_get.js @@ -23,38 +23,32 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvvyyvyv_required = false; -jform_vvvvvyzvyw_required = false; -jform_vvvvvzavyx_required = false; -jform_vvvvvzbvyy_required = false; -jform_vvvvvzcvyz_required = false; -jform_vvvvvzdvza_required = false; -jform_vvvvvzivzb_required = false; -jform_vvvvvzkvzc_required = false; -jform_vvvvvzlvzd_required = false; -jform_vvvvvznvze_required = false; -jform_vvvvvznvzf_required = false; -jform_vvvvvzovzg_required = false; -jform_vvvvvzpvzh_required = false; -jform_vvvvvzqvzi_required = false; -jform_vvvvvzsvzj_required = false; -jform_vvvvvzsvzk_required = false; -jform_vvvvvzsvzl_required = false; -jform_vvvvvztvzm_required = false; -jform_vvvvvzuvzn_required = false; -jform_vvvvvzvvzo_required = false; +jform_vvvvvzavyv_required = false; +jform_vvvvvzbvyw_required = false; +jform_vvvvvzcvyx_required = false; +jform_vvvvvzdvyy_required = false; +jform_vvvvvzevyz_required = false; +jform_vvvvvzfvza_required = false; +jform_vvvvvzkvzb_required = false; +jform_vvvvvzmvzc_required = false; +jform_vvvvvznvzd_required = false; +jform_vvvvvzpvze_required = false; +jform_vvvvvzpvzf_required = false; +jform_vvvvvzqvzg_required = false; +jform_vvvvvzrvzh_required = false; +jform_vvvvvzsvzi_required = false; +jform_vvvvvzuvzj_required = false; +jform_vvvvvzuvzk_required = false; +jform_vvvvvzuvzl_required = false; +jform_vvvvvzvvzm_required = false; +jform_vvvvvzwvzn_required = false; +jform_vvvvvzxvzo_required = false; // Initial Script jQuery(document).ready(function() { - var gettype_vvvvvyy = jQuery("#jform_gettype").val(); - vvvvvyy(gettype_vvvvvyy); - - var main_source_vvvvvyz = jQuery("#jform_main_source").val(); - vvvvvyz(main_source_vvvvvyz); - - var main_source_vvvvvza = jQuery("#jform_main_source").val(); - vvvvvza(main_source_vvvvvza); + var gettype_vvvvvza = jQuery("#jform_gettype").val(); + vvvvvza(gettype_vvvvvza); var main_source_vvvvvzb = jQuery("#jform_main_source").val(); vvvvvzb(main_source_vvvvvzb); @@ -62,219 +56,115 @@ jQuery(document).ready(function() var main_source_vvvvvzc = jQuery("#jform_main_source").val(); vvvvvzc(main_source_vvvvvzc); - var addcalculation_vvvvvzd = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - vvvvvzd(addcalculation_vvvvvzd); + var main_source_vvvvvzd = jQuery("#jform_main_source").val(); + vvvvvzd(main_source_vvvvvzd); - var addcalculation_vvvvvze = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - var gettype_vvvvvze = jQuery("#jform_gettype").val(); - vvvvvze(addcalculation_vvvvvze,gettype_vvvvvze); + var main_source_vvvvvze = jQuery("#jform_main_source").val(); + vvvvvze(main_source_vvvvvze); var addcalculation_vvvvvzf = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - var gettype_vvvvvzf = jQuery("#jform_gettype").val(); - vvvvvzf(addcalculation_vvvvvzf,gettype_vvvvvzf); + vvvvvzf(addcalculation_vvvvvzf); - var main_source_vvvvvzi = jQuery("#jform_main_source").val(); - vvvvvzi(main_source_vvvvvzi); + var addcalculation_vvvvvzg = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + var gettype_vvvvvzg = jQuery("#jform_gettype").val(); + vvvvvzg(addcalculation_vvvvvzg,gettype_vvvvvzg); - var main_source_vvvvvzj = jQuery("#jform_main_source").val(); - vvvvvzj(main_source_vvvvvzj); + var addcalculation_vvvvvzh = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + var gettype_vvvvvzh = jQuery("#jform_gettype").val(); + vvvvvzh(addcalculation_vvvvvzh,gettype_vvvvvzh); - var add_php_before_getitem_vvvvvzk = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); - var gettype_vvvvvzk = jQuery("#jform_gettype").val(); - vvvvvzk(add_php_before_getitem_vvvvvzk,gettype_vvvvvzk); + var main_source_vvvvvzk = jQuery("#jform_main_source").val(); + vvvvvzk(main_source_vvvvvzk); - var add_php_after_getitem_vvvvvzl = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); - var gettype_vvvvvzl = jQuery("#jform_gettype").val(); - vvvvvzl(add_php_after_getitem_vvvvvzl,gettype_vvvvvzl); + var main_source_vvvvvzl = jQuery("#jform_main_source").val(); + vvvvvzl(main_source_vvvvvzl); + var add_php_before_getitem_vvvvvzm = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); + var gettype_vvvvvzm = jQuery("#jform_gettype").val(); + vvvvvzm(add_php_before_getitem_vvvvvzm,gettype_vvvvvzm); + + var add_php_after_getitem_vvvvvzn = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); var gettype_vvvvvzn = jQuery("#jform_gettype").val(); - vvvvvzn(gettype_vvvvvzn); + vvvvvzn(add_php_after_getitem_vvvvvzn,gettype_vvvvvzn); - var add_php_getlistquery_vvvvvzo = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); - var gettype_vvvvvzo = jQuery("#jform_gettype").val(); - vvvvvzo(add_php_getlistquery_vvvvvzo,gettype_vvvvvzo); - - var add_php_before_getitems_vvvvvzp = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); var gettype_vvvvvzp = jQuery("#jform_gettype").val(); - vvvvvzp(add_php_before_getitems_vvvvvzp,gettype_vvvvvzp); + vvvvvzp(gettype_vvvvvzp); - var add_php_after_getitems_vvvvvzq = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); + var add_php_getlistquery_vvvvvzq = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); var gettype_vvvvvzq = jQuery("#jform_gettype").val(); - vvvvvzq(add_php_after_getitems_vvvvvzq,gettype_vvvvvzq); + vvvvvzq(add_php_getlistquery_vvvvvzq,gettype_vvvvvzq); + var add_php_before_getitems_vvvvvzr = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); + var gettype_vvvvvzr = jQuery("#jform_gettype").val(); + vvvvvzr(add_php_before_getitems_vvvvvzr,gettype_vvvvvzr); + + var add_php_after_getitems_vvvvvzs = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); var gettype_vvvvvzs = jQuery("#jform_gettype").val(); - vvvvvzs(gettype_vvvvvzs); - - var gettype_vvvvvzt = jQuery("#jform_gettype").val(); - vvvvvzt(gettype_vvvvvzt); + vvvvvzs(add_php_after_getitems_vvvvvzs,gettype_vvvvvzs); var gettype_vvvvvzu = jQuery("#jform_gettype").val(); vvvvvzu(gettype_vvvvvzu); var gettype_vvvvvzv = jQuery("#jform_gettype").val(); - var add_php_router_parse_vvvvvzv = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); - vvvvvzv(gettype_vvvvvzv,add_php_router_parse_vvvvvzv); + vvvvvzv(gettype_vvvvvzv); + + var gettype_vvvvvzw = jQuery("#jform_gettype").val(); + vvvvvzw(gettype_vvvvvzw); + + var gettype_vvvvvzx = jQuery("#jform_gettype").val(); + var add_php_router_parse_vvvvvzx = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); + vvvvvzx(gettype_vvvvvzx,add_php_router_parse_vvvvvzx); }); -// the vvvvvyy function -function vvvvvyy(gettype_vvvvvyy) +// the vvvvvza function +function vvvvvza(gettype_vvvvvza) { - if (isSet(gettype_vvvvvyy) && gettype_vvvvvyy.constructor !== Array) + if (isSet(gettype_vvvvvza) && gettype_vvvvvza.constructor !== Array) { - var temp_vvvvvyy = gettype_vvvvvyy; - var gettype_vvvvvyy = []; - gettype_vvvvvyy.push(temp_vvvvvyy); + var temp_vvvvvza = gettype_vvvvvza; + var gettype_vvvvvza = []; + gettype_vvvvvza.push(temp_vvvvvza); } - else if (!isSet(gettype_vvvvvyy)) + else if (!isSet(gettype_vvvvvza)) { - var gettype_vvvvvyy = []; + var gettype_vvvvvza = []; } - var gettype = gettype_vvvvvyy.some(gettype_vvvvvyy_SomeFunc); + var gettype = gettype_vvvvvza.some(gettype_vvvvvza_SomeFunc); // set this function logic if (gettype) { jQuery('#jform_getcustom').closest('.control-group').show(); - if (jform_vvvvvyyvyv_required) + if (jform_vvvvvzavyv_required) { updateFieldRequired('getcustom',0); jQuery('#jform_getcustom').prop('required','required'); jQuery('#jform_getcustom').attr('aria-required',true); jQuery('#jform_getcustom').addClass('required'); - jform_vvvvvyyvyv_required = false; + jform_vvvvvzavyv_required = false; } } else { jQuery('#jform_getcustom').closest('.control-group').hide(); - if (!jform_vvvvvyyvyv_required) + if (!jform_vvvvvzavyv_required) { updateFieldRequired('getcustom',1); jQuery('#jform_getcustom').removeAttr('required'); jQuery('#jform_getcustom').removeAttr('aria-required'); jQuery('#jform_getcustom').removeClass('required'); - jform_vvvvvyyvyv_required = true; - } - } -} - -// the vvvvvyy Some function -function gettype_vvvvvyy_SomeFunc(gettype_vvvvvyy) -{ - // set the function logic - if (gettype_vvvvvyy == 3 || gettype_vvvvvyy == 4) - { - return true; - } - return false; -} - -// the vvvvvyz function -function vvvvvyz(main_source_vvvvvyz) -{ - if (isSet(main_source_vvvvvyz) && main_source_vvvvvyz.constructor !== Array) - { - var temp_vvvvvyz = main_source_vvvvvyz; - var main_source_vvvvvyz = []; - main_source_vvvvvyz.push(temp_vvvvvyz); - } - else if (!isSet(main_source_vvvvvyz)) - { - var main_source_vvvvvyz = []; - } - var main_source = main_source_vvvvvyz.some(main_source_vvvvvyz_SomeFunc); - - - // set this function logic - if (main_source) - { - jQuery('#jform_view_table_main').closest('.control-group').show(); - if (jform_vvvvvyzvyw_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_vvvvvyzvyw_required = false; - } - - } - else - { - jQuery('#jform_view_table_main').closest('.control-group').hide(); - if (!jform_vvvvvyzvyw_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_vvvvvyzvyw_required = true; - } - } -} - -// the vvvvvyz Some function -function main_source_vvvvvyz_SomeFunc(main_source_vvvvvyz) -{ - // set the function logic - if (main_source_vvvvvyz == 1) - { - return true; - } - return false; -} - -// the vvvvvza function -function vvvvvza(main_source_vvvvvza) -{ - if (isSet(main_source_vvvvvza) && main_source_vvvvvza.constructor !== Array) - { - var temp_vvvvvza = main_source_vvvvvza; - var main_source_vvvvvza = []; - main_source_vvvvvza.push(temp_vvvvvza); - } - else if (!isSet(main_source_vvvvvza)) - { - var main_source_vvvvvza = []; - } - var main_source = main_source_vvvvvza.some(main_source_vvvvvza_SomeFunc); - - - // set this function logic - if (main_source) - { - jQuery('#jform_view_selection').closest('.control-group').show(); - if (jform_vvvvvzavyx_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_vvvvvzavyx_required = false; - } - - } - else - { - jQuery('#jform_view_selection').closest('.control-group').hide(); - if (!jform_vvvvvzavyx_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_vvvvvzavyx_required = true; + jform_vvvvvzavyv_required = true; } } } // the vvvvvza Some function -function main_source_vvvvvza_SomeFunc(main_source_vvvvvza) +function gettype_vvvvvza_SomeFunc(gettype_vvvvvza) { // set the function logic - if (main_source_vvvvvza == 1) + if (gettype_vvvvvza == 3 || gettype_vvvvvza == 4) { return true; } @@ -300,27 +190,27 @@ function vvvvvzb(main_source_vvvvvzb) // set this function logic if (main_source) { - jQuery('#jform_db_table_main').closest('.control-group').show(); - if (jform_vvvvvzbvyy_required) + jQuery('#jform_view_table_main').closest('.control-group').show(); + if (jform_vvvvvzbvyw_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_vvvvvzbvyy_required = false; + 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_vvvvvzbvyw_required = false; } } else { - jQuery('#jform_db_table_main').closest('.control-group').hide(); - if (!jform_vvvvvzbvyy_required) + jQuery('#jform_view_table_main').closest('.control-group').hide(); + if (!jform_vvvvvzbvyw_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_vvvvvzbvyy_required = true; + 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_vvvvvzbvyw_required = true; } } } @@ -329,7 +219,7 @@ function vvvvvzb(main_source_vvvvvzb) function main_source_vvvvvzb_SomeFunc(main_source_vvvvvzb) { // set the function logic - if (main_source_vvvvvzb == 2) + if (main_source_vvvvvzb == 1) { return true; } @@ -355,27 +245,27 @@ function vvvvvzc(main_source_vvvvvzc) // set this function logic if (main_source) { - jQuery('#jform_db_selection').closest('.control-group').show(); - if (jform_vvvvvzcvyz_required) + jQuery('#jform_view_selection').closest('.control-group').show(); + if (jform_vvvvvzcvyx_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_vvvvvzcvyz_required = false; + 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_vvvvvzcvyx_required = false; } } else { - jQuery('#jform_db_selection').closest('.control-group').hide(); - if (!jform_vvvvvzcvyz_required) + jQuery('#jform_view_selection').closest('.control-group').hide(); + if (!jform_vvvvvzcvyx_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_vvvvvzcvyz_required = true; + updateFieldRequired('view_selection',1); + jQuery('#jform_view_selection').removeAttr('required'); + jQuery('#jform_view_selection').removeAttr('aria-required'); + jQuery('#jform_view_selection').removeClass('required'); + jform_vvvvvzcvyx_required = true; } } } @@ -384,7 +274,7 @@ function vvvvvzc(main_source_vvvvvzc) function main_source_vvvvvzc_SomeFunc(main_source_vvvvvzc) { // set the function logic - if (main_source_vvvvvzc == 2) + if (main_source_vvvvvzc == 1) { return true; } @@ -392,62 +282,172 @@ function main_source_vvvvvzc_SomeFunc(main_source_vvvvvzc) } // the vvvvvzd function -function vvvvvzd(addcalculation_vvvvvzd) +function vvvvvzd(main_source_vvvvvzd) +{ + if (isSet(main_source_vvvvvzd) && main_source_vvvvvzd.constructor !== Array) + { + var temp_vvvvvzd = main_source_vvvvvzd; + var main_source_vvvvvzd = []; + main_source_vvvvvzd.push(temp_vvvvvzd); + } + else if (!isSet(main_source_vvvvvzd)) + { + var main_source_vvvvvzd = []; + } + var main_source = main_source_vvvvvzd.some(main_source_vvvvvzd_SomeFunc); + + + // set this function logic + if (main_source) + { + jQuery('#jform_db_table_main').closest('.control-group').show(); + if (jform_vvvvvzdvyy_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_vvvvvzdvyy_required = false; + } + + } + else + { + jQuery('#jform_db_table_main').closest('.control-group').hide(); + if (!jform_vvvvvzdvyy_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_vvvvvzdvyy_required = true; + } + } +} + +// the vvvvvzd Some function +function main_source_vvvvvzd_SomeFunc(main_source_vvvvvzd) { // set the function logic - if (addcalculation_vvvvvzd == 1) + if (main_source_vvvvvzd == 2) + { + return true; + } + return false; +} + +// the vvvvvze function +function vvvvvze(main_source_vvvvvze) +{ + if (isSet(main_source_vvvvvze) && main_source_vvvvvze.constructor !== Array) + { + var temp_vvvvvze = main_source_vvvvvze; + var main_source_vvvvvze = []; + main_source_vvvvvze.push(temp_vvvvvze); + } + else if (!isSet(main_source_vvvvvze)) + { + var main_source_vvvvvze = []; + } + var main_source = main_source_vvvvvze.some(main_source_vvvvvze_SomeFunc); + + + // set this function logic + if (main_source) + { + jQuery('#jform_db_selection').closest('.control-group').show(); + if (jform_vvvvvzevyz_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_vvvvvzevyz_required = false; + } + + } + else + { + jQuery('#jform_db_selection').closest('.control-group').hide(); + if (!jform_vvvvvzevyz_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_vvvvvzevyz_required = true; + } + } +} + +// the vvvvvze Some function +function main_source_vvvvvze_SomeFunc(main_source_vvvvvze) +{ + // set the function logic + if (main_source_vvvvvze == 2) + { + return true; + } + return false; +} + +// the vvvvvzf function +function vvvvvzf(addcalculation_vvvvvzf) +{ + // set the function logic + if (addcalculation_vvvvvzf == 1) { jQuery('#jform_php_calculation').closest('.control-group').show(); - if (jform_vvvvvzdvza_required) + if (jform_vvvvvzfvza_required) { updateFieldRequired('php_calculation',0); jQuery('#jform_php_calculation').prop('required','required'); jQuery('#jform_php_calculation').attr('aria-required',true); jQuery('#jform_php_calculation').addClass('required'); - jform_vvvvvzdvza_required = false; + jform_vvvvvzfvza_required = false; } } else { jQuery('#jform_php_calculation').closest('.control-group').hide(); - if (!jform_vvvvvzdvza_required) + if (!jform_vvvvvzfvza_required) { updateFieldRequired('php_calculation',1); jQuery('#jform_php_calculation').removeAttr('required'); jQuery('#jform_php_calculation').removeAttr('aria-required'); jQuery('#jform_php_calculation').removeClass('required'); - jform_vvvvvzdvza_required = true; + jform_vvvvvzfvza_required = true; } } } -// the vvvvvze function -function vvvvvze(addcalculation_vvvvvze,gettype_vvvvvze) +// the vvvvvzg function +function vvvvvzg(addcalculation_vvvvvzg,gettype_vvvvvzg) { - if (isSet(addcalculation_vvvvvze) && addcalculation_vvvvvze.constructor !== Array) + if (isSet(addcalculation_vvvvvzg) && addcalculation_vvvvvzg.constructor !== Array) { - var temp_vvvvvze = addcalculation_vvvvvze; - var addcalculation_vvvvvze = []; - addcalculation_vvvvvze.push(temp_vvvvvze); + var temp_vvvvvzg = addcalculation_vvvvvzg; + var addcalculation_vvvvvzg = []; + addcalculation_vvvvvzg.push(temp_vvvvvzg); } - else if (!isSet(addcalculation_vvvvvze)) + else if (!isSet(addcalculation_vvvvvzg)) { - var addcalculation_vvvvvze = []; + var addcalculation_vvvvvzg = []; } - var addcalculation = addcalculation_vvvvvze.some(addcalculation_vvvvvze_SomeFunc); + var addcalculation = addcalculation_vvvvvzg.some(addcalculation_vvvvvzg_SomeFunc); - if (isSet(gettype_vvvvvze) && gettype_vvvvvze.constructor !== Array) + if (isSet(gettype_vvvvvzg) && gettype_vvvvvzg.constructor !== Array) { - var temp_vvvvvze = gettype_vvvvvze; - var gettype_vvvvvze = []; - gettype_vvvvvze.push(temp_vvvvvze); + var temp_vvvvvzg = gettype_vvvvvzg; + var gettype_vvvvvzg = []; + gettype_vvvvvzg.push(temp_vvvvvzg); } - else if (!isSet(gettype_vvvvvze)) + else if (!isSet(gettype_vvvvvzg)) { - var gettype_vvvvvze = []; + var gettype_vvvvvzg = []; } - var gettype = gettype_vvvvvze.some(gettype_vvvvvze_SomeFunc); + var gettype = gettype_vvvvvzg.some(gettype_vvvvvzg_SomeFunc); // set this function logic @@ -461,54 +461,54 @@ function vvvvvze(addcalculation_vvvvvze,gettype_vvvvvze) } } -// the vvvvvze Some function -function addcalculation_vvvvvze_SomeFunc(addcalculation_vvvvvze) +// the vvvvvzg Some function +function addcalculation_vvvvvzg_SomeFunc(addcalculation_vvvvvzg) { // set the function logic - if (addcalculation_vvvvvze == 1) + if (addcalculation_vvvvvzg == 1) { return true; } return false; } -// the vvvvvze Some function -function gettype_vvvvvze_SomeFunc(gettype_vvvvvze) +// the vvvvvzg Some function +function gettype_vvvvvzg_SomeFunc(gettype_vvvvvzg) { // set the function logic - if (gettype_vvvvvze == 1 || gettype_vvvvvze == 3) + if (gettype_vvvvvzg == 1 || gettype_vvvvvzg == 3) { return true; } return false; } -// the vvvvvzf function -function vvvvvzf(addcalculation_vvvvvzf,gettype_vvvvvzf) +// the vvvvvzh function +function vvvvvzh(addcalculation_vvvvvzh,gettype_vvvvvzh) { - if (isSet(addcalculation_vvvvvzf) && addcalculation_vvvvvzf.constructor !== Array) + if (isSet(addcalculation_vvvvvzh) && addcalculation_vvvvvzh.constructor !== Array) { - var temp_vvvvvzf = addcalculation_vvvvvzf; - var addcalculation_vvvvvzf = []; - addcalculation_vvvvvzf.push(temp_vvvvvzf); + var temp_vvvvvzh = addcalculation_vvvvvzh; + var addcalculation_vvvvvzh = []; + addcalculation_vvvvvzh.push(temp_vvvvvzh); } - else if (!isSet(addcalculation_vvvvvzf)) + else if (!isSet(addcalculation_vvvvvzh)) { - var addcalculation_vvvvvzf = []; + var addcalculation_vvvvvzh = []; } - var addcalculation = addcalculation_vvvvvzf.some(addcalculation_vvvvvzf_SomeFunc); + var addcalculation = addcalculation_vvvvvzh.some(addcalculation_vvvvvzh_SomeFunc); - if (isSet(gettype_vvvvvzf) && gettype_vvvvvzf.constructor !== Array) + if (isSet(gettype_vvvvvzh) && gettype_vvvvvzh.constructor !== Array) { - var temp_vvvvvzf = gettype_vvvvvzf; - var gettype_vvvvvzf = []; - gettype_vvvvvzf.push(temp_vvvvvzf); + var temp_vvvvvzh = gettype_vvvvvzh; + var gettype_vvvvvzh = []; + gettype_vvvvvzh.push(temp_vvvvvzh); } - else if (!isSet(gettype_vvvvvzf)) + else if (!isSet(gettype_vvvvvzh)) { - var gettype_vvvvvzf = []; + var gettype_vvvvvzh = []; } - var gettype = gettype_vvvvvzf.some(gettype_vvvvvzf_SomeFunc); + var gettype = gettype_vvvvvzh.some(gettype_vvvvvzh_SomeFunc); // set this function logic @@ -522,97 +522,97 @@ function vvvvvzf(addcalculation_vvvvvzf,gettype_vvvvvzf) } } -// the vvvvvzf Some function -function addcalculation_vvvvvzf_SomeFunc(addcalculation_vvvvvzf) +// the vvvvvzh Some function +function addcalculation_vvvvvzh_SomeFunc(addcalculation_vvvvvzh) { // set the function logic - if (addcalculation_vvvvvzf == 1) + if (addcalculation_vvvvvzh == 1) { return true; } return false; } -// the vvvvvzf Some function -function gettype_vvvvvzf_SomeFunc(gettype_vvvvvzf) +// the vvvvvzh Some function +function gettype_vvvvvzh_SomeFunc(gettype_vvvvvzh) { // set the function logic - if (gettype_vvvvvzf == 2 || gettype_vvvvvzf == 4) + if (gettype_vvvvvzh == 2 || gettype_vvvvvzh == 4) { return true; } return false; } -// the vvvvvzi function -function vvvvvzi(main_source_vvvvvzi) +// the vvvvvzk function +function vvvvvzk(main_source_vvvvvzk) { - if (isSet(main_source_vvvvvzi) && main_source_vvvvvzi.constructor !== Array) + if (isSet(main_source_vvvvvzk) && main_source_vvvvvzk.constructor !== Array) { - var temp_vvvvvzi = main_source_vvvvvzi; - var main_source_vvvvvzi = []; - main_source_vvvvvzi.push(temp_vvvvvzi); + var temp_vvvvvzk = main_source_vvvvvzk; + var main_source_vvvvvzk = []; + main_source_vvvvvzk.push(temp_vvvvvzk); } - else if (!isSet(main_source_vvvvvzi)) + else if (!isSet(main_source_vvvvvzk)) { - var main_source_vvvvvzi = []; + var main_source_vvvvvzk = []; } - var main_source = main_source_vvvvvzi.some(main_source_vvvvvzi_SomeFunc); + var main_source = main_source_vvvvvzk.some(main_source_vvvvvzk_SomeFunc); // set this function logic if (main_source) { jQuery('#jform_php_custom_get').closest('.control-group').show(); - if (jform_vvvvvzivzb_required) + if (jform_vvvvvzkvzb_required) { updateFieldRequired('php_custom_get',0); jQuery('#jform_php_custom_get').prop('required','required'); jQuery('#jform_php_custom_get').attr('aria-required',true); jQuery('#jform_php_custom_get').addClass('required'); - jform_vvvvvzivzb_required = false; + jform_vvvvvzkvzb_required = false; } } else { jQuery('#jform_php_custom_get').closest('.control-group').hide(); - if (!jform_vvvvvzivzb_required) + if (!jform_vvvvvzkvzb_required) { updateFieldRequired('php_custom_get',1); jQuery('#jform_php_custom_get').removeAttr('required'); jQuery('#jform_php_custom_get').removeAttr('aria-required'); jQuery('#jform_php_custom_get').removeClass('required'); - jform_vvvvvzivzb_required = true; + jform_vvvvvzkvzb_required = true; } } } -// the vvvvvzi Some function -function main_source_vvvvvzi_SomeFunc(main_source_vvvvvzi) +// the vvvvvzk Some function +function main_source_vvvvvzk_SomeFunc(main_source_vvvvvzk) { // set the function logic - if (main_source_vvvvvzi == 3) + if (main_source_vvvvvzk == 3) { return true; } return false; } -// the vvvvvzj function -function vvvvvzj(main_source_vvvvvzj) +// the vvvvvzl function +function vvvvvzl(main_source_vvvvvzl) { - if (isSet(main_source_vvvvvzj) && main_source_vvvvvzj.constructor !== Array) + if (isSet(main_source_vvvvvzl) && main_source_vvvvvzl.constructor !== Array) { - var temp_vvvvvzj = main_source_vvvvvzj; - var main_source_vvvvvzj = []; - main_source_vvvvvzj.push(temp_vvvvvzj); + var temp_vvvvvzl = main_source_vvvvvzl; + var main_source_vvvvvzl = []; + main_source_vvvvvzl.push(temp_vvvvvzl); } - else if (!isSet(main_source_vvvvvzj)) + else if (!isSet(main_source_vvvvvzl)) { - var main_source_vvvvvzj = []; + var main_source_vvvvvzl = []; } - var main_source = main_source_vvvvvzj.some(main_source_vvvvvzj_SomeFunc); + var main_source = main_source_vvvvvzl.some(main_source_vvvvvzl_SomeFunc); // set this function logic @@ -636,167 +636,89 @@ function vvvvvzj(main_source_vvvvvzj) } } -// the vvvvvzj Some function -function main_source_vvvvvzj_SomeFunc(main_source_vvvvvzj) +// the vvvvvzl Some function +function main_source_vvvvvzl_SomeFunc(main_source_vvvvvzl) { // set the function logic - if (main_source_vvvvvzj == 1 || main_source_vvvvvzj == 2) + if (main_source_vvvvvzl == 1 || main_source_vvvvvzl == 2) { return true; } return false; } -// the vvvvvzk function -function vvvvvzk(add_php_before_getitem_vvvvvzk,gettype_vvvvvzk) +// the vvvvvzm function +function vvvvvzm(add_php_before_getitem_vvvvvzm,gettype_vvvvvzm) { - if (isSet(add_php_before_getitem_vvvvvzk) && add_php_before_getitem_vvvvvzk.constructor !== Array) + if (isSet(add_php_before_getitem_vvvvvzm) && add_php_before_getitem_vvvvvzm.constructor !== Array) { - var temp_vvvvvzk = add_php_before_getitem_vvvvvzk; - var add_php_before_getitem_vvvvvzk = []; - add_php_before_getitem_vvvvvzk.push(temp_vvvvvzk); + var temp_vvvvvzm = add_php_before_getitem_vvvvvzm; + var add_php_before_getitem_vvvvvzm = []; + add_php_before_getitem_vvvvvzm.push(temp_vvvvvzm); } - else if (!isSet(add_php_before_getitem_vvvvvzk)) + else if (!isSet(add_php_before_getitem_vvvvvzm)) { - var add_php_before_getitem_vvvvvzk = []; + var add_php_before_getitem_vvvvvzm = []; } - var add_php_before_getitem = add_php_before_getitem_vvvvvzk.some(add_php_before_getitem_vvvvvzk_SomeFunc); + var add_php_before_getitem = add_php_before_getitem_vvvvvzm.some(add_php_before_getitem_vvvvvzm_SomeFunc); - if (isSet(gettype_vvvvvzk) && gettype_vvvvvzk.constructor !== Array) + if (isSet(gettype_vvvvvzm) && gettype_vvvvvzm.constructor !== Array) { - var temp_vvvvvzk = gettype_vvvvvzk; - var gettype_vvvvvzk = []; - gettype_vvvvvzk.push(temp_vvvvvzk); + var temp_vvvvvzm = gettype_vvvvvzm; + var gettype_vvvvvzm = []; + gettype_vvvvvzm.push(temp_vvvvvzm); } - else if (!isSet(gettype_vvvvvzk)) + else if (!isSet(gettype_vvvvvzm)) { - var gettype_vvvvvzk = []; + var gettype_vvvvvzm = []; } - var gettype = gettype_vvvvvzk.some(gettype_vvvvvzk_SomeFunc); + var gettype = gettype_vvvvvzm.some(gettype_vvvvvzm_SomeFunc); // set this function logic if (add_php_before_getitem && gettype) { jQuery('#jform_php_before_getitem').closest('.control-group').show(); - if (jform_vvvvvzkvzc_required) + if (jform_vvvvvzmvzc_required) { updateFieldRequired('php_before_getitem',0); jQuery('#jform_php_before_getitem').prop('required','required'); jQuery('#jform_php_before_getitem').attr('aria-required',true); jQuery('#jform_php_before_getitem').addClass('required'); - jform_vvvvvzkvzc_required = false; + jform_vvvvvzmvzc_required = false; } } else { jQuery('#jform_php_before_getitem').closest('.control-group').hide(); - if (!jform_vvvvvzkvzc_required) + if (!jform_vvvvvzmvzc_required) { updateFieldRequired('php_before_getitem',1); jQuery('#jform_php_before_getitem').removeAttr('required'); jQuery('#jform_php_before_getitem').removeAttr('aria-required'); jQuery('#jform_php_before_getitem').removeClass('required'); - jform_vvvvvzkvzc_required = true; + jform_vvvvvzmvzc_required = true; } } } -// the vvvvvzk Some function -function add_php_before_getitem_vvvvvzk_SomeFunc(add_php_before_getitem_vvvvvzk) +// the vvvvvzm Some function +function add_php_before_getitem_vvvvvzm_SomeFunc(add_php_before_getitem_vvvvvzm) { // set the function logic - if (add_php_before_getitem_vvvvvzk == 1) + if (add_php_before_getitem_vvvvvzm == 1) { return true; } return false; } -// the vvvvvzk Some function -function gettype_vvvvvzk_SomeFunc(gettype_vvvvvzk) +// the vvvvvzm Some function +function gettype_vvvvvzm_SomeFunc(gettype_vvvvvzm) { // set the function logic - if (gettype_vvvvvzk == 1 || gettype_vvvvvzk == 3) - { - return true; - } - return false; -} - -// the vvvvvzl function -function vvvvvzl(add_php_after_getitem_vvvvvzl,gettype_vvvvvzl) -{ - if (isSet(add_php_after_getitem_vvvvvzl) && add_php_after_getitem_vvvvvzl.constructor !== Array) - { - var temp_vvvvvzl = add_php_after_getitem_vvvvvzl; - var add_php_after_getitem_vvvvvzl = []; - add_php_after_getitem_vvvvvzl.push(temp_vvvvvzl); - } - else if (!isSet(add_php_after_getitem_vvvvvzl)) - { - var add_php_after_getitem_vvvvvzl = []; - } - var add_php_after_getitem = add_php_after_getitem_vvvvvzl.some(add_php_after_getitem_vvvvvzl_SomeFunc); - - if (isSet(gettype_vvvvvzl) && gettype_vvvvvzl.constructor !== Array) - { - var temp_vvvvvzl = gettype_vvvvvzl; - var gettype_vvvvvzl = []; - gettype_vvvvvzl.push(temp_vvvvvzl); - } - else if (!isSet(gettype_vvvvvzl)) - { - var gettype_vvvvvzl = []; - } - var gettype = gettype_vvvvvzl.some(gettype_vvvvvzl_SomeFunc); - - - // set this function logic - if (add_php_after_getitem && gettype) - { - jQuery('#jform_php_after_getitem').closest('.control-group').show(); - if (jform_vvvvvzlvzd_required) - { - updateFieldRequired('php_after_getitem',0); - jQuery('#jform_php_after_getitem').prop('required','required'); - jQuery('#jform_php_after_getitem').attr('aria-required',true); - jQuery('#jform_php_after_getitem').addClass('required'); - jform_vvvvvzlvzd_required = false; - } - - } - else - { - jQuery('#jform_php_after_getitem').closest('.control-group').hide(); - if (!jform_vvvvvzlvzd_required) - { - updateFieldRequired('php_after_getitem',1); - jQuery('#jform_php_after_getitem').removeAttr('required'); - jQuery('#jform_php_after_getitem').removeAttr('aria-required'); - jQuery('#jform_php_after_getitem').removeClass('required'); - jform_vvvvvzlvzd_required = true; - } - } -} - -// the vvvvvzl Some function -function add_php_after_getitem_vvvvvzl_SomeFunc(add_php_after_getitem_vvvvvzl) -{ - // set the function logic - if (add_php_after_getitem_vvvvvzl == 1) - { - return true; - } - return false; -} - -// the vvvvvzl Some function -function gettype_vvvvvzl_SomeFunc(gettype_vvvvvzl) -{ - // set the function logic - if (gettype_vvvvvzl == 1 || gettype_vvvvvzl == 3) + if (gettype_vvvvvzm == 1 || gettype_vvvvvzm == 3) { return true; } @@ -804,8 +726,20 @@ function gettype_vvvvvzl_SomeFunc(gettype_vvvvvzl) } // the vvvvvzn function -function vvvvvzn(gettype_vvvvvzn) +function vvvvvzn(add_php_after_getitem_vvvvvzn,gettype_vvvvvzn) { + if (isSet(add_php_after_getitem_vvvvvzn) && add_php_after_getitem_vvvvvzn.constructor !== Array) + { + var temp_vvvvvzn = add_php_after_getitem_vvvvvzn; + var add_php_after_getitem_vvvvvzn = []; + add_php_after_getitem_vvvvvzn.push(temp_vvvvvzn); + } + else if (!isSet(add_php_after_getitem_vvvvvzn)) + { + var add_php_after_getitem_vvvvvzn = []; + } + var add_php_after_getitem = add_php_after_getitem_vvvvvzn.some(add_php_after_getitem_vvvvvzn_SomeFunc); + if (isSet(gettype_vvvvvzn) && gettype_vvvvvzn.constructor !== Array) { var temp_vvvvvzn = gettype_vvvvvzn; @@ -820,52 +754,44 @@ function vvvvvzn(gettype_vvvvvzn) // set this function logic - if (gettype) + if (add_php_after_getitem && gettype) { - jQuery('#jform_add_php_after_getitem').closest('.control-group').show(); - if (jform_vvvvvznvze_required) + jQuery('#jform_php_after_getitem').closest('.control-group').show(); + if (jform_vvvvvznvzd_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_vvvvvznvze_required = false; - } - - jQuery('#jform_add_php_before_getitem').closest('.control-group').show(); - if (jform_vvvvvznvzf_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_vvvvvznvzf_required = false; + updateFieldRequired('php_after_getitem',0); + jQuery('#jform_php_after_getitem').prop('required','required'); + jQuery('#jform_php_after_getitem').attr('aria-required',true); + jQuery('#jform_php_after_getitem').addClass('required'); + jform_vvvvvznvzd_required = false; } } else { - jQuery('#jform_add_php_after_getitem').closest('.control-group').hide(); - if (!jform_vvvvvznvze_required) + jQuery('#jform_php_after_getitem').closest('.control-group').hide(); + if (!jform_vvvvvznvzd_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_vvvvvznvze_required = true; - } - jQuery('#jform_add_php_before_getitem').closest('.control-group').hide(); - if (!jform_vvvvvznvzf_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_vvvvvznvzf_required = true; + updateFieldRequired('php_after_getitem',1); + jQuery('#jform_php_after_getitem').removeAttr('required'); + jQuery('#jform_php_after_getitem').removeAttr('aria-required'); + jQuery('#jform_php_after_getitem').removeClass('required'); + jform_vvvvvznvzd_required = true; } } } +// the vvvvvzn Some function +function add_php_after_getitem_vvvvvzn_SomeFunc(add_php_after_getitem_vvvvvzn) +{ + // set the function logic + if (add_php_after_getitem_vvvvvzn == 1) + { + return true; + } + return false; +} + // the vvvvvzn Some function function gettype_vvvvvzn_SomeFunc(gettype_vvvvvzn) { @@ -877,99 +803,9 @@ function gettype_vvvvvzn_SomeFunc(gettype_vvvvvzn) return false; } -// the vvvvvzo function -function vvvvvzo(add_php_getlistquery_vvvvvzo,gettype_vvvvvzo) -{ - if (isSet(add_php_getlistquery_vvvvvzo) && add_php_getlistquery_vvvvvzo.constructor !== Array) - { - var temp_vvvvvzo = add_php_getlistquery_vvvvvzo; - var add_php_getlistquery_vvvvvzo = []; - add_php_getlistquery_vvvvvzo.push(temp_vvvvvzo); - } - else if (!isSet(add_php_getlistquery_vvvvvzo)) - { - var add_php_getlistquery_vvvvvzo = []; - } - var add_php_getlistquery = add_php_getlistquery_vvvvvzo.some(add_php_getlistquery_vvvvvzo_SomeFunc); - - if (isSet(gettype_vvvvvzo) && gettype_vvvvvzo.constructor !== Array) - { - var temp_vvvvvzo = gettype_vvvvvzo; - var gettype_vvvvvzo = []; - gettype_vvvvvzo.push(temp_vvvvvzo); - } - else if (!isSet(gettype_vvvvvzo)) - { - var gettype_vvvvvzo = []; - } - var gettype = gettype_vvvvvzo.some(gettype_vvvvvzo_SomeFunc); - - - // set this function logic - if (add_php_getlistquery && gettype) - { - jQuery('#jform_php_getlistquery').closest('.control-group').show(); - if (jform_vvvvvzovzg_required) - { - updateFieldRequired('php_getlistquery',0); - jQuery('#jform_php_getlistquery').prop('required','required'); - jQuery('#jform_php_getlistquery').attr('aria-required',true); - jQuery('#jform_php_getlistquery').addClass('required'); - jform_vvvvvzovzg_required = false; - } - - } - else - { - jQuery('#jform_php_getlistquery').closest('.control-group').hide(); - if (!jform_vvvvvzovzg_required) - { - updateFieldRequired('php_getlistquery',1); - jQuery('#jform_php_getlistquery').removeAttr('required'); - jQuery('#jform_php_getlistquery').removeAttr('aria-required'); - jQuery('#jform_php_getlistquery').removeClass('required'); - jform_vvvvvzovzg_required = true; - } - } -} - -// the vvvvvzo Some function -function add_php_getlistquery_vvvvvzo_SomeFunc(add_php_getlistquery_vvvvvzo) -{ - // set the function logic - if (add_php_getlistquery_vvvvvzo == 1) - { - return true; - } - return false; -} - -// the vvvvvzo Some function -function gettype_vvvvvzo_SomeFunc(gettype_vvvvvzo) -{ - // set the function logic - if (gettype_vvvvvzo == 2 || gettype_vvvvvzo == 4) - { - return true; - } - return false; -} - // the vvvvvzp function -function vvvvvzp(add_php_before_getitems_vvvvvzp,gettype_vvvvvzp) +function vvvvvzp(gettype_vvvvvzp) { - if (isSet(add_php_before_getitems_vvvvvzp) && add_php_before_getitems_vvvvvzp.constructor !== Array) - { - var temp_vvvvvzp = add_php_before_getitems_vvvvvzp; - var add_php_before_getitems_vvvvvzp = []; - add_php_before_getitems_vvvvvzp.push(temp_vvvvvzp); - } - else if (!isSet(add_php_before_getitems_vvvvvzp)) - { - var add_php_before_getitems_vvvvvzp = []; - } - var add_php_before_getitems = add_php_before_getitems_vvvvvzp.some(add_php_before_getitems_vvvvvzp_SomeFunc); - if (isSet(gettype_vvvvvzp) && gettype_vvvvvzp.constructor !== Array) { var temp_vvvvvzp = gettype_vvvvvzp; @@ -984,49 +820,57 @@ function vvvvvzp(add_php_before_getitems_vvvvvzp,gettype_vvvvvzp) // set this function logic - if (add_php_before_getitems && gettype) + if (gettype) { - jQuery('#jform_php_before_getitems').closest('.control-group').show(); - if (jform_vvvvvzpvzh_required) + jQuery('#jform_add_php_after_getitem').closest('.control-group').show(); + if (jform_vvvvvzpvze_required) { - updateFieldRequired('php_before_getitems',0); - jQuery('#jform_php_before_getitems').prop('required','required'); - jQuery('#jform_php_before_getitems').attr('aria-required',true); - jQuery('#jform_php_before_getitems').addClass('required'); - jform_vvvvvzpvzh_required = false; + 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_vvvvvzpvze_required = false; + } + + jQuery('#jform_add_php_before_getitem').closest('.control-group').show(); + if (jform_vvvvvzpvzf_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_vvvvvzpvzf_required = false; } } else { - jQuery('#jform_php_before_getitems').closest('.control-group').hide(); - if (!jform_vvvvvzpvzh_required) + jQuery('#jform_add_php_after_getitem').closest('.control-group').hide(); + if (!jform_vvvvvzpvze_required) { - updateFieldRequired('php_before_getitems',1); - jQuery('#jform_php_before_getitems').removeAttr('required'); - jQuery('#jform_php_before_getitems').removeAttr('aria-required'); - jQuery('#jform_php_before_getitems').removeClass('required'); - jform_vvvvvzpvzh_required = true; + 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_vvvvvzpvze_required = true; + } + jQuery('#jform_add_php_before_getitem').closest('.control-group').hide(); + if (!jform_vvvvvzpvzf_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_vvvvvzpvzf_required = true; } } } -// the vvvvvzp Some function -function add_php_before_getitems_vvvvvzp_SomeFunc(add_php_before_getitems_vvvvvzp) -{ - // set the function logic - if (add_php_before_getitems_vvvvvzp == 1) - { - return true; - } - return false; -} - // the vvvvvzp Some function function gettype_vvvvvzp_SomeFunc(gettype_vvvvvzp) { // set the function logic - if (gettype_vvvvvzp == 2 || gettype_vvvvvzp == 4) + if (gettype_vvvvvzp == 1 || gettype_vvvvvzp == 3) { return true; } @@ -1034,19 +878,19 @@ function gettype_vvvvvzp_SomeFunc(gettype_vvvvvzp) } // the vvvvvzq function -function vvvvvzq(add_php_after_getitems_vvvvvzq,gettype_vvvvvzq) +function vvvvvzq(add_php_getlistquery_vvvvvzq,gettype_vvvvvzq) { - if (isSet(add_php_after_getitems_vvvvvzq) && add_php_after_getitems_vvvvvzq.constructor !== Array) + if (isSet(add_php_getlistquery_vvvvvzq) && add_php_getlistquery_vvvvvzq.constructor !== Array) { - var temp_vvvvvzq = add_php_after_getitems_vvvvvzq; - var add_php_after_getitems_vvvvvzq = []; - add_php_after_getitems_vvvvvzq.push(temp_vvvvvzq); + var temp_vvvvvzq = add_php_getlistquery_vvvvvzq; + var add_php_getlistquery_vvvvvzq = []; + add_php_getlistquery_vvvvvzq.push(temp_vvvvvzq); } - else if (!isSet(add_php_after_getitems_vvvvvzq)) + else if (!isSet(add_php_getlistquery_vvvvvzq)) { - var add_php_after_getitems_vvvvvzq = []; + var add_php_getlistquery_vvvvvzq = []; } - var add_php_after_getitems = add_php_after_getitems_vvvvvzq.some(add_php_after_getitems_vvvvvzq_SomeFunc); + var add_php_getlistquery = add_php_getlistquery_vvvvvzq.some(add_php_getlistquery_vvvvvzq_SomeFunc); if (isSet(gettype_vvvvvzq) && gettype_vvvvvzq.constructor !== Array) { @@ -1062,38 +906,38 @@ function vvvvvzq(add_php_after_getitems_vvvvvzq,gettype_vvvvvzq) // set this function logic - if (add_php_after_getitems && gettype) + if (add_php_getlistquery && gettype) { - jQuery('#jform_php_after_getitems').closest('.control-group').show(); - if (jform_vvvvvzqvzi_required) + jQuery('#jform_php_getlistquery').closest('.control-group').show(); + if (jform_vvvvvzqvzg_required) { - updateFieldRequired('php_after_getitems',0); - jQuery('#jform_php_after_getitems').prop('required','required'); - jQuery('#jform_php_after_getitems').attr('aria-required',true); - jQuery('#jform_php_after_getitems').addClass('required'); - jform_vvvvvzqvzi_required = false; + updateFieldRequired('php_getlistquery',0); + jQuery('#jform_php_getlistquery').prop('required','required'); + jQuery('#jform_php_getlistquery').attr('aria-required',true); + jQuery('#jform_php_getlistquery').addClass('required'); + jform_vvvvvzqvzg_required = false; } } else { - jQuery('#jform_php_after_getitems').closest('.control-group').hide(); - if (!jform_vvvvvzqvzi_required) + jQuery('#jform_php_getlistquery').closest('.control-group').hide(); + if (!jform_vvvvvzqvzg_required) { - updateFieldRequired('php_after_getitems',1); - jQuery('#jform_php_after_getitems').removeAttr('required'); - jQuery('#jform_php_after_getitems').removeAttr('aria-required'); - jQuery('#jform_php_after_getitems').removeClass('required'); - jform_vvvvvzqvzi_required = true; + updateFieldRequired('php_getlistquery',1); + jQuery('#jform_php_getlistquery').removeAttr('required'); + jQuery('#jform_php_getlistquery').removeAttr('aria-required'); + jQuery('#jform_php_getlistquery').removeClass('required'); + jform_vvvvvzqvzg_required = true; } } } // the vvvvvzq Some function -function add_php_after_getitems_vvvvvzq_SomeFunc(add_php_after_getitems_vvvvvzq) +function add_php_getlistquery_vvvvvzq_SomeFunc(add_php_getlistquery_vvvvvzq) { // set the function logic - if (add_php_after_getitems_vvvvvzq == 1) + if (add_php_getlistquery_vvvvvzq == 1) { return true; } @@ -1111,9 +955,99 @@ function gettype_vvvvvzq_SomeFunc(gettype_vvvvvzq) return false; } -// the vvvvvzs function -function vvvvvzs(gettype_vvvvvzs) +// the vvvvvzr function +function vvvvvzr(add_php_before_getitems_vvvvvzr,gettype_vvvvvzr) { + if (isSet(add_php_before_getitems_vvvvvzr) && add_php_before_getitems_vvvvvzr.constructor !== Array) + { + var temp_vvvvvzr = add_php_before_getitems_vvvvvzr; + var add_php_before_getitems_vvvvvzr = []; + add_php_before_getitems_vvvvvzr.push(temp_vvvvvzr); + } + else if (!isSet(add_php_before_getitems_vvvvvzr)) + { + var add_php_before_getitems_vvvvvzr = []; + } + var add_php_before_getitems = add_php_before_getitems_vvvvvzr.some(add_php_before_getitems_vvvvvzr_SomeFunc); + + if (isSet(gettype_vvvvvzr) && gettype_vvvvvzr.constructor !== Array) + { + var temp_vvvvvzr = gettype_vvvvvzr; + var gettype_vvvvvzr = []; + gettype_vvvvvzr.push(temp_vvvvvzr); + } + else if (!isSet(gettype_vvvvvzr)) + { + var gettype_vvvvvzr = []; + } + var gettype = gettype_vvvvvzr.some(gettype_vvvvvzr_SomeFunc); + + + // set this function logic + if (add_php_before_getitems && gettype) + { + jQuery('#jform_php_before_getitems').closest('.control-group').show(); + if (jform_vvvvvzrvzh_required) + { + updateFieldRequired('php_before_getitems',0); + jQuery('#jform_php_before_getitems').prop('required','required'); + jQuery('#jform_php_before_getitems').attr('aria-required',true); + jQuery('#jform_php_before_getitems').addClass('required'); + jform_vvvvvzrvzh_required = false; + } + + } + else + { + jQuery('#jform_php_before_getitems').closest('.control-group').hide(); + if (!jform_vvvvvzrvzh_required) + { + updateFieldRequired('php_before_getitems',1); + jQuery('#jform_php_before_getitems').removeAttr('required'); + jQuery('#jform_php_before_getitems').removeAttr('aria-required'); + jQuery('#jform_php_before_getitems').removeClass('required'); + jform_vvvvvzrvzh_required = true; + } + } +} + +// the vvvvvzr Some function +function add_php_before_getitems_vvvvvzr_SomeFunc(add_php_before_getitems_vvvvvzr) +{ + // set the function logic + if (add_php_before_getitems_vvvvvzr == 1) + { + return true; + } + return false; +} + +// the vvvvvzr Some function +function gettype_vvvvvzr_SomeFunc(gettype_vvvvvzr) +{ + // set the function logic + if (gettype_vvvvvzr == 2 || gettype_vvvvvzr == 4) + { + return true; + } + return false; +} + +// the vvvvvzs function +function vvvvvzs(add_php_after_getitems_vvvvvzs,gettype_vvvvvzs) +{ + if (isSet(add_php_after_getitems_vvvvvzs) && add_php_after_getitems_vvvvvzs.constructor !== Array) + { + var temp_vvvvvzs = add_php_after_getitems_vvvvvzs; + var add_php_after_getitems_vvvvvzs = []; + add_php_after_getitems_vvvvvzs.push(temp_vvvvvzs); + } + else if (!isSet(add_php_after_getitems_vvvvvzs)) + { + var add_php_after_getitems_vvvvvzs = []; + } + var add_php_after_getitems = add_php_after_getitems_vvvvvzs.some(add_php_after_getitems_vvvvvzs_SomeFunc); + if (isSet(gettype_vvvvvzs) && gettype_vvvvvzs.constructor !== Array) { var temp_vvvvvzs = gettype_vvvvvzs; @@ -1128,71 +1062,44 @@ function vvvvvzs(gettype_vvvvvzs) // set this function logic - if (gettype) + if (add_php_after_getitems && gettype) { - jQuery('#jform_add_php_after_getitems').closest('.control-group').show(); - if (jform_vvvvvzsvzj_required) + jQuery('#jform_php_after_getitems').closest('.control-group').show(); + if (jform_vvvvvzsvzi_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_vvvvvzsvzj_required = false; - } - - jQuery('#jform_add_php_before_getitems').closest('.control-group').show(); - if (jform_vvvvvzsvzk_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_vvvvvzsvzk_required = false; - } - - jQuery('#jform_add_php_getlistquery').closest('.control-group').show(); - if (jform_vvvvvzsvzl_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_vvvvvzsvzl_required = false; + updateFieldRequired('php_after_getitems',0); + jQuery('#jform_php_after_getitems').prop('required','required'); + jQuery('#jform_php_after_getitems').attr('aria-required',true); + jQuery('#jform_php_after_getitems').addClass('required'); + jform_vvvvvzsvzi_required = false; } } else { - jQuery('#jform_add_php_after_getitems').closest('.control-group').hide(); - if (!jform_vvvvvzsvzj_required) + jQuery('#jform_php_after_getitems').closest('.control-group').hide(); + if (!jform_vvvvvzsvzi_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_vvvvvzsvzj_required = true; - } - jQuery('#jform_add_php_before_getitems').closest('.control-group').hide(); - if (!jform_vvvvvzsvzk_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_vvvvvzsvzk_required = true; - } - jQuery('#jform_add_php_getlistquery').closest('.control-group').hide(); - if (!jform_vvvvvzsvzl_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_vvvvvzsvzl_required = true; + updateFieldRequired('php_after_getitems',1); + jQuery('#jform_php_after_getitems').removeAttr('required'); + jQuery('#jform_php_after_getitems').removeAttr('aria-required'); + jQuery('#jform_php_after_getitems').removeClass('required'); + jform_vvvvvzsvzi_required = true; } } } +// the vvvvvzs Some function +function add_php_after_getitems_vvvvvzs_SomeFunc(add_php_after_getitems_vvvvvzs) +{ + // set the function logic + if (add_php_after_getitems_vvvvvzs == 1) + { + return true; + } + return false; +} + // the vvvvvzs Some function function gettype_vvvvvzs_SomeFunc(gettype_vvvvvzs) { @@ -1204,61 +1111,6 @@ function gettype_vvvvvzs_SomeFunc(gettype_vvvvvzs) return false; } -// the vvvvvzt function -function vvvvvzt(gettype_vvvvvzt) -{ - if (isSet(gettype_vvvvvzt) && gettype_vvvvvzt.constructor !== Array) - { - var temp_vvvvvzt = gettype_vvvvvzt; - var gettype_vvvvvzt = []; - gettype_vvvvvzt.push(temp_vvvvvzt); - } - else if (!isSet(gettype_vvvvvzt)) - { - var gettype_vvvvvzt = []; - } - var gettype = gettype_vvvvvzt.some(gettype_vvvvvzt_SomeFunc); - - - // set this function logic - if (gettype) - { - jQuery('#jform_pagination').closest('.control-group').show(); - if (jform_vvvvvztvzm_required) - { - updateFieldRequired('pagination',0); - jQuery('#jform_pagination').prop('required','required'); - jQuery('#jform_pagination').attr('aria-required',true); - jQuery('#jform_pagination').addClass('required'); - jform_vvvvvztvzm_required = false; - } - - } - else - { - jQuery('#jform_pagination').closest('.control-group').hide(); - if (!jform_vvvvvztvzm_required) - { - updateFieldRequired('pagination',1); - jQuery('#jform_pagination').removeAttr('required'); - jQuery('#jform_pagination').removeAttr('aria-required'); - jQuery('#jform_pagination').removeClass('required'); - jform_vvvvvztvzm_required = true; - } - } -} - -// the vvvvvzt Some function -function gettype_vvvvvzt_SomeFunc(gettype_vvvvvzt) -{ - // set the function logic - if (gettype_vvvvvzt == 2) - { - return true; - } - return false; -} - // the vvvvvzu function function vvvvvzu(gettype_vvvvvzu) { @@ -1278,27 +1130,65 @@ function vvvvvzu(gettype_vvvvvzu) // set this function logic if (gettype) { - jQuery('#jform_add_php_router_parse').closest('.control-group').show(); - if (jform_vvvvvzuvzn_required) + jQuery('#jform_add_php_after_getitems').closest('.control-group').show(); + if (jform_vvvvvzuvzj_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_vvvvvzuvzn_required = false; + 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_vvvvvzuvzj_required = false; + } + + jQuery('#jform_add_php_before_getitems').closest('.control-group').show(); + if (jform_vvvvvzuvzk_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_vvvvvzuvzk_required = false; + } + + jQuery('#jform_add_php_getlistquery').closest('.control-group').show(); + if (jform_vvvvvzuvzl_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_vvvvvzuvzl_required = false; } } else { - jQuery('#jform_add_php_router_parse').closest('.control-group').hide(); - if (!jform_vvvvvzuvzn_required) + jQuery('#jform_add_php_after_getitems').closest('.control-group').hide(); + if (!jform_vvvvvzuvzj_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_vvvvvzuvzn_required = true; + 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_vvvvvzuvzj_required = true; + } + jQuery('#jform_add_php_before_getitems').closest('.control-group').hide(); + if (!jform_vvvvvzuvzk_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_vvvvvzuvzk_required = true; + } + jQuery('#jform_add_php_getlistquery').closest('.control-group').hide(); + if (!jform_vvvvvzuvzl_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_vvvvvzuvzl_required = true; } } } @@ -1307,7 +1197,7 @@ function vvvvvzu(gettype_vvvvvzu) function gettype_vvvvvzu_SomeFunc(gettype_vvvvvzu) { // set the function logic - if (gettype_vvvvvzu == 1 || gettype_vvvvvzu == 2) + if (gettype_vvvvvzu == 2 || gettype_vvvvvzu == 4) { return true; } @@ -1315,7 +1205,7 @@ function gettype_vvvvvzu_SomeFunc(gettype_vvvvvzu) } // the vvvvvzv function -function vvvvvzv(gettype_vvvvvzv,add_php_router_parse_vvvvvzv) +function vvvvvzv(gettype_vvvvvzv) { if (isSet(gettype_vvvvvzv) && gettype_vvvvvzv.constructor !== Array) { @@ -1329,43 +1219,31 @@ function vvvvvzv(gettype_vvvvvzv,add_php_router_parse_vvvvvzv) } var gettype = gettype_vvvvvzv.some(gettype_vvvvvzv_SomeFunc); - if (isSet(add_php_router_parse_vvvvvzv) && add_php_router_parse_vvvvvzv.constructor !== Array) - { - var temp_vvvvvzv = add_php_router_parse_vvvvvzv; - var add_php_router_parse_vvvvvzv = []; - add_php_router_parse_vvvvvzv.push(temp_vvvvvzv); - } - else if (!isSet(add_php_router_parse_vvvvvzv)) - { - var add_php_router_parse_vvvvvzv = []; - } - var add_php_router_parse = add_php_router_parse_vvvvvzv.some(add_php_router_parse_vvvvvzv_SomeFunc); - // set this function logic - if (gettype && add_php_router_parse) + if (gettype) { - jQuery('#jform_php_router_parse').closest('.control-group').show(); - if (jform_vvvvvzvvzo_required) + jQuery('#jform_pagination').closest('.control-group').show(); + if (jform_vvvvvzvvzm_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_vvvvvzvvzo_required = false; + updateFieldRequired('pagination',0); + jQuery('#jform_pagination').prop('required','required'); + jQuery('#jform_pagination').attr('aria-required',true); + jQuery('#jform_pagination').addClass('required'); + jform_vvvvvzvvzm_required = false; } } else { - jQuery('#jform_php_router_parse').closest('.control-group').hide(); - if (!jform_vvvvvzvvzo_required) + jQuery('#jform_pagination').closest('.control-group').hide(); + if (!jform_vvvvvzvvzm_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_vvvvvzvvzo_required = true; + updateFieldRequired('pagination',1); + jQuery('#jform_pagination').removeAttr('required'); + jQuery('#jform_pagination').removeAttr('aria-required'); + jQuery('#jform_pagination').removeClass('required'); + jform_vvvvvzvvzm_required = true; } } } @@ -1374,18 +1252,140 @@ function vvvvvzv(gettype_vvvvvzv,add_php_router_parse_vvvvvzv) function gettype_vvvvvzv_SomeFunc(gettype_vvvvvzv) { // set the function logic - if (gettype_vvvvvzv == 1 || gettype_vvvvvzv == 2) + if (gettype_vvvvvzv == 2) { return true; } return false; } -// the vvvvvzv Some function -function add_php_router_parse_vvvvvzv_SomeFunc(add_php_router_parse_vvvvvzv) +// the vvvvvzw function +function vvvvvzw(gettype_vvvvvzw) +{ + if (isSet(gettype_vvvvvzw) && gettype_vvvvvzw.constructor !== Array) + { + var temp_vvvvvzw = gettype_vvvvvzw; + var gettype_vvvvvzw = []; + gettype_vvvvvzw.push(temp_vvvvvzw); + } + else if (!isSet(gettype_vvvvvzw)) + { + var gettype_vvvvvzw = []; + } + var gettype = gettype_vvvvvzw.some(gettype_vvvvvzw_SomeFunc); + + + // set this function logic + if (gettype) + { + jQuery('#jform_add_php_router_parse').closest('.control-group').show(); + if (jform_vvvvvzwvzn_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_vvvvvzwvzn_required = false; + } + + } + else + { + jQuery('#jform_add_php_router_parse').closest('.control-group').hide(); + if (!jform_vvvvvzwvzn_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_vvvvvzwvzn_required = true; + } + } +} + +// the vvvvvzw Some function +function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw) { // set the function logic - if (add_php_router_parse_vvvvvzv == 1) + if (gettype_vvvvvzw == 1 || gettype_vvvvvzw == 2) + { + return true; + } + return false; +} + +// the vvvvvzx function +function vvvvvzx(gettype_vvvvvzx,add_php_router_parse_vvvvvzx) +{ + if (isSet(gettype_vvvvvzx) && gettype_vvvvvzx.constructor !== Array) + { + var temp_vvvvvzx = gettype_vvvvvzx; + var gettype_vvvvvzx = []; + gettype_vvvvvzx.push(temp_vvvvvzx); + } + else if (!isSet(gettype_vvvvvzx)) + { + var gettype_vvvvvzx = []; + } + var gettype = gettype_vvvvvzx.some(gettype_vvvvvzx_SomeFunc); + + if (isSet(add_php_router_parse_vvvvvzx) && add_php_router_parse_vvvvvzx.constructor !== Array) + { + var temp_vvvvvzx = add_php_router_parse_vvvvvzx; + var add_php_router_parse_vvvvvzx = []; + add_php_router_parse_vvvvvzx.push(temp_vvvvvzx); + } + else if (!isSet(add_php_router_parse_vvvvvzx)) + { + var add_php_router_parse_vvvvvzx = []; + } + var add_php_router_parse = add_php_router_parse_vvvvvzx.some(add_php_router_parse_vvvvvzx_SomeFunc); + + + // set this function logic + if (gettype && add_php_router_parse) + { + jQuery('#jform_php_router_parse').closest('.control-group').show(); + if (jform_vvvvvzxvzo_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_vvvvvzxvzo_required = false; + } + + } + else + { + jQuery('#jform_php_router_parse').closest('.control-group').hide(); + if (!jform_vvvvvzxvzo_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_vvvvvzxvzo_required = true; + } + } +} + +// the vvvvvzx Some function +function gettype_vvvvvzx_SomeFunc(gettype_vvvvvzx) +{ + // set the function logic + if (gettype_vvvvvzx == 1 || gettype_vvvvvzx == 2) + { + return true; + } + return false; +} + +// the vvvvvzx Some function +function add_php_router_parse_vvvvvzx_SomeFunc(add_php_router_parse_vvvvvzx) +{ + // set the function logic + if (add_php_router_parse_vvvvvzx == 1) { return true; } diff --git a/admin/models/forms/field.js b/admin/models/forms/field.js index 840bb9ad1..7135f33df 100644 --- a/admin/models/forms/field.js +++ b/admin/models/forms/field.js @@ -23,210 +23,96 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvwajvzv_required = false; -jform_vvvvwakvzw_required = false; -jform_vvvvwalvzx_required = false; -jform_vvvvwamvzy_required = false; -jform_vvvvwapvzz_required = false; -jform_vvvvwaqwaa_required = false; -jform_vvvvwarwab_required = false; -jform_vvvvwaswac_required = false; +jform_vvvvwalvzv_required = false; +jform_vvvvwamvzw_required = false; +jform_vvvvwanvzx_required = false; +jform_vvvvwaovzy_required = false; +jform_vvvvwarvzz_required = false; +jform_vvvvwaswaa_required = false; +jform_vvvvwatwab_required = false; +jform_vvvvwauwac_required = false; // Initial Script jQuery(document).ready(function() { - var datalenght_vvvvwaj = jQuery("#jform_datalenght").val(); - vvvvwaj(datalenght_vvvvwaj); + var datalenght_vvvvwal = jQuery("#jform_datalenght").val(); + vvvvwal(datalenght_vvvvwal); - var datadefault_vvvvwak = jQuery("#jform_datadefault").val(); - vvvvwak(datadefault_vvvvwak); + var datadefault_vvvvwam = jQuery("#jform_datadefault").val(); + vvvvwam(datadefault_vvvvwam); - var datatype_vvvvwal = jQuery("#jform_datatype").val(); - vvvvwal(datatype_vvvvwal); - - var datatype_vvvvwam = jQuery("#jform_datatype").val(); - vvvvwam(datatype_vvvvwam); - - var store_vvvvwan = jQuery("#jform_store").val(); var datatype_vvvvwan = jQuery("#jform_datatype").val(); - vvvvwan(store_vvvvwan,datatype_vvvvwan); + vvvvwan(datatype_vvvvwan); - var add_css_view_vvvvwap = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvwap(add_css_view_vvvvwap); + var datatype_vvvvwao = jQuery("#jform_datatype").val(); + vvvvwao(datatype_vvvvwao); - var add_css_views_vvvvwaq = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvwaq(add_css_views_vvvvwaq); + var store_vvvvwap = jQuery("#jform_store").val(); + var datatype_vvvvwap = jQuery("#jform_datatype").val(); + vvvvwap(store_vvvvwap,datatype_vvvvwap); - var add_javascript_view_footer_vvvvwar = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); - vvvvwar(add_javascript_view_footer_vvvvwar); + var add_css_view_vvvvwar = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvwar(add_css_view_vvvvwar); - var add_javascript_views_footer_vvvvwas = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); - vvvvwas(add_javascript_views_footer_vvvvwas); + var add_css_views_vvvvwas = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvwas(add_css_views_vvvvwas); + + var add_javascript_view_footer_vvvvwat = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvwat(add_javascript_view_footer_vvvvwat); + + var add_javascript_views_footer_vvvvwau = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvwau(add_javascript_views_footer_vvvvwau); }); -// the vvvvwaj function -function vvvvwaj(datalenght_vvvvwaj) +// the vvvvwal function +function vvvvwal(datalenght_vvvvwal) { - if (isSet(datalenght_vvvvwaj) && datalenght_vvvvwaj.constructor !== Array) + if (isSet(datalenght_vvvvwal) && datalenght_vvvvwal.constructor !== Array) { - var temp_vvvvwaj = datalenght_vvvvwaj; - var datalenght_vvvvwaj = []; - datalenght_vvvvwaj.push(temp_vvvvwaj); + var temp_vvvvwal = datalenght_vvvvwal; + var datalenght_vvvvwal = []; + datalenght_vvvvwal.push(temp_vvvvwal); } - else if (!isSet(datalenght_vvvvwaj)) + else if (!isSet(datalenght_vvvvwal)) { - var datalenght_vvvvwaj = []; + var datalenght_vvvvwal = []; } - var datalenght = datalenght_vvvvwaj.some(datalenght_vvvvwaj_SomeFunc); + var datalenght = datalenght_vvvvwal.some(datalenght_vvvvwal_SomeFunc); // set this function logic if (datalenght) { jQuery('#jform_datalenght_other').closest('.control-group').show(); - if (jform_vvvvwajvzv_required) + if (jform_vvvvwalvzv_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_vvvvwajvzv_required = false; + jform_vvvvwalvzv_required = false; } } else { jQuery('#jform_datalenght_other').closest('.control-group').hide(); - if (!jform_vvvvwajvzv_required) + if (!jform_vvvvwalvzv_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_vvvvwajvzv_required = true; - } - } -} - -// the vvvvwaj Some function -function datalenght_vvvvwaj_SomeFunc(datalenght_vvvvwaj) -{ - // set the function logic - if (datalenght_vvvvwaj == 'Other') - { - return true; - } - return false; -} - -// the vvvvwak function -function vvvvwak(datadefault_vvvvwak) -{ - if (isSet(datadefault_vvvvwak) && datadefault_vvvvwak.constructor !== Array) - { - var temp_vvvvwak = datadefault_vvvvwak; - var datadefault_vvvvwak = []; - datadefault_vvvvwak.push(temp_vvvvwak); - } - else if (!isSet(datadefault_vvvvwak)) - { - var datadefault_vvvvwak = []; - } - var datadefault = datadefault_vvvvwak.some(datadefault_vvvvwak_SomeFunc); - - - // set this function logic - if (datadefault) - { - jQuery('#jform_datadefault_other').closest('.control-group').show(); - if (jform_vvvvwakvzw_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_vvvvwakvzw_required = false; - } - - } - else - { - jQuery('#jform_datadefault_other').closest('.control-group').hide(); - if (!jform_vvvvwakvzw_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_vvvvwakvzw_required = true; - } - } -} - -// the vvvvwak Some function -function datadefault_vvvvwak_SomeFunc(datadefault_vvvvwak) -{ - // set the function logic - if (datadefault_vvvvwak == 'Other') - { - return true; - } - return false; -} - -// the vvvvwal function -function vvvvwal(datatype_vvvvwal) -{ - if (isSet(datatype_vvvvwal) && datatype_vvvvwal.constructor !== Array) - { - var temp_vvvvwal = datatype_vvvvwal; - var datatype_vvvvwal = []; - datatype_vvvvwal.push(temp_vvvvwal); - } - else if (!isSet(datatype_vvvvwal)) - { - var datatype_vvvvwal = []; - } - var datatype = datatype_vvvvwal.some(datatype_vvvvwal_SomeFunc); - - - // set this function logic - if (datatype) - { - jQuery('#jform_datadefault').closest('.control-group').show(); - jQuery('#jform_datalenght').closest('.control-group').show(); - jQuery('#jform_indexes').closest('.control-group').show(); - if (jform_vvvvwalvzx_required) - { - updateFieldRequired('indexes',0); - jQuery('#jform_indexes').prop('required','required'); - jQuery('#jform_indexes').attr('aria-required',true); - jQuery('#jform_indexes').addClass('required'); - jform_vvvvwalvzx_required = false; - } - - } - else - { - jQuery('#jform_datadefault').closest('.control-group').hide(); - jQuery('#jform_datalenght').closest('.control-group').hide(); - jQuery('#jform_indexes').closest('.control-group').hide(); - if (!jform_vvvvwalvzx_required) - { - updateFieldRequired('indexes',1); - jQuery('#jform_indexes').removeAttr('required'); - jQuery('#jform_indexes').removeAttr('aria-required'); - jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwalvzx_required = true; + jform_vvvvwalvzv_required = true; } } } // the vvvvwal Some function -function datatype_vvvvwal_SomeFunc(datatype_vvvvwal) +function datalenght_vvvvwal_SomeFunc(datalenght_vvvvwal) { // set the function logic - if (datatype_vvvvwal == 'CHAR' || datatype_vvvvwal == 'VARCHAR' || datatype_vvvvwal == 'DATETIME' || datatype_vvvvwal == 'DATE' || datatype_vvvvwal == 'TIME' || datatype_vvvvwal == 'INT' || datatype_vvvvwal == 'TINYINT' || datatype_vvvvwal == 'BIGINT' || datatype_vvvvwal == 'FLOAT' || datatype_vvvvwal == 'DECIMAL' || datatype_vvvvwal == 'DOUBLE') + if (datalenght_vvvvwal == 'Other') { return true; } @@ -234,54 +120,54 @@ function datatype_vvvvwal_SomeFunc(datatype_vvvvwal) } // the vvvvwam function -function vvvvwam(datatype_vvvvwam) +function vvvvwam(datadefault_vvvvwam) { - if (isSet(datatype_vvvvwam) && datatype_vvvvwam.constructor !== Array) + if (isSet(datadefault_vvvvwam) && datadefault_vvvvwam.constructor !== Array) { - var temp_vvvvwam = datatype_vvvvwam; - var datatype_vvvvwam = []; - datatype_vvvvwam.push(temp_vvvvwam); + var temp_vvvvwam = datadefault_vvvvwam; + var datadefault_vvvvwam = []; + datadefault_vvvvwam.push(temp_vvvvwam); } - else if (!isSet(datatype_vvvvwam)) + else if (!isSet(datadefault_vvvvwam)) { - var datatype_vvvvwam = []; + var datadefault_vvvvwam = []; } - var datatype = datatype_vvvvwam.some(datatype_vvvvwam_SomeFunc); + var datadefault = datadefault_vvvvwam.some(datadefault_vvvvwam_SomeFunc); // set this function logic - if (datatype) + if (datadefault) { - jQuery('#jform_store').closest('.control-group').show(); - if (jform_vvvvwamvzy_required) + jQuery('#jform_datadefault_other').closest('.control-group').show(); + if (jform_vvvvwamvzw_required) { - updateFieldRequired('store',0); - jQuery('#jform_store').prop('required','required'); - jQuery('#jform_store').attr('aria-required',true); - jQuery('#jform_store').addClass('required'); - jform_vvvvwamvzy_required = false; + 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_vvvvwamvzw_required = false; } } else { - jQuery('#jform_store').closest('.control-group').hide(); - if (!jform_vvvvwamvzy_required) + jQuery('#jform_datadefault_other').closest('.control-group').hide(); + if (!jform_vvvvwamvzw_required) { - updateFieldRequired('store',1); - jQuery('#jform_store').removeAttr('required'); - jQuery('#jform_store').removeAttr('aria-required'); - jQuery('#jform_store').removeClass('required'); - jform_vvvvwamvzy_required = true; + updateFieldRequired('datadefault_other',1); + jQuery('#jform_datadefault_other').removeAttr('required'); + jQuery('#jform_datadefault_other').removeAttr('aria-required'); + jQuery('#jform_datadefault_other').removeClass('required'); + jform_vvvvwamvzw_required = true; } } } // the vvvvwam Some function -function datatype_vvvvwam_SomeFunc(datatype_vvvvwam) +function datadefault_vvvvwam_SomeFunc(datadefault_vvvvwam) { // set the function logic - if (datatype_vvvvwam == 'CHAR' || datatype_vvvvwam == 'VARCHAR' || datatype_vvvvwam == 'TEXT' || datatype_vvvvwam == 'MEDIUMTEXT' || datatype_vvvvwam == 'LONGTEXT') + if (datadefault_vvvvwam == 'Other') { return true; } @@ -289,20 +175,8 @@ function datatype_vvvvwam_SomeFunc(datatype_vvvvwam) } // the vvvvwan function -function vvvvwan(store_vvvvwan,datatype_vvvvwan) +function vvvvwan(datatype_vvvvwan) { - if (isSet(store_vvvvwan) && store_vvvvwan.constructor !== Array) - { - var temp_vvvvwan = store_vvvvwan; - var store_vvvvwan = []; - store_vvvvwan.push(temp_vvvvwan); - } - else if (!isSet(store_vvvvwan)) - { - var store_vvvvwan = []; - } - var store = store_vvvvwan.some(store_vvvvwan_SomeFunc); - if (isSet(datatype_vvvvwan) && datatype_vvvvwan.constructor !== Array) { var temp_vvvvwan = datatype_vvvvwan; @@ -317,32 +191,97 @@ function vvvvwan(store_vvvvwan,datatype_vvvvwan) // set this function logic - if (store && datatype) + if (datatype) { - jQuery('.note_vdm_encryption').closest('.control-group').show(); + jQuery('#jform_datadefault').closest('.control-group').show(); + jQuery('#jform_datalenght').closest('.control-group').show(); + jQuery('#jform_indexes').closest('.control-group').show(); + if (jform_vvvvwanvzx_required) + { + updateFieldRequired('indexes',0); + jQuery('#jform_indexes').prop('required','required'); + jQuery('#jform_indexes').attr('aria-required',true); + jQuery('#jform_indexes').addClass('required'); + jform_vvvvwanvzx_required = false; + } + } else { - jQuery('.note_vdm_encryption').closest('.control-group').hide(); + jQuery('#jform_datadefault').closest('.control-group').hide(); + jQuery('#jform_datalenght').closest('.control-group').hide(); + jQuery('#jform_indexes').closest('.control-group').hide(); + if (!jform_vvvvwanvzx_required) + { + updateFieldRequired('indexes',1); + jQuery('#jform_indexes').removeAttr('required'); + jQuery('#jform_indexes').removeAttr('aria-required'); + jQuery('#jform_indexes').removeClass('required'); + jform_vvvvwanvzx_required = true; + } } } -// the vvvvwan Some function -function store_vvvvwan_SomeFunc(store_vvvvwan) -{ - // set the function logic - if (store_vvvvwan == 4) - { - return true; - } - return false; -} - // the vvvvwan Some function function datatype_vvvvwan_SomeFunc(datatype_vvvvwan) { // set the function logic - if (datatype_vvvvwan == 'CHAR' || datatype_vvvvwan == 'VARCHAR' || datatype_vvvvwan == 'TEXT' || datatype_vvvvwan == 'MEDIUMTEXT' || datatype_vvvvwan == 'LONGTEXT') + if (datatype_vvvvwan == 'CHAR' || datatype_vvvvwan == 'VARCHAR' || datatype_vvvvwan == 'DATETIME' || datatype_vvvvwan == 'DATE' || datatype_vvvvwan == 'TIME' || datatype_vvvvwan == 'INT' || datatype_vvvvwan == 'TINYINT' || datatype_vvvvwan == 'BIGINT' || datatype_vvvvwan == 'FLOAT' || datatype_vvvvwan == 'DECIMAL' || datatype_vvvvwan == 'DOUBLE') + { + return true; + } + return false; +} + +// the vvvvwao function +function vvvvwao(datatype_vvvvwao) +{ + if (isSet(datatype_vvvvwao) && datatype_vvvvwao.constructor !== Array) + { + var temp_vvvvwao = datatype_vvvvwao; + var datatype_vvvvwao = []; + datatype_vvvvwao.push(temp_vvvvwao); + } + else if (!isSet(datatype_vvvvwao)) + { + var datatype_vvvvwao = []; + } + var datatype = datatype_vvvvwao.some(datatype_vvvvwao_SomeFunc); + + + // set this function logic + if (datatype) + { + jQuery('#jform_store').closest('.control-group').show(); + if (jform_vvvvwaovzy_required) + { + updateFieldRequired('store',0); + jQuery('#jform_store').prop('required','required'); + jQuery('#jform_store').attr('aria-required',true); + jQuery('#jform_store').addClass('required'); + jform_vvvvwaovzy_required = false; + } + + } + else + { + jQuery('#jform_store').closest('.control-group').hide(); + if (!jform_vvvvwaovzy_required) + { + updateFieldRequired('store',1); + jQuery('#jform_store').removeAttr('required'); + jQuery('#jform_store').removeAttr('aria-required'); + jQuery('#jform_store').removeClass('required'); + jform_vvvvwaovzy_required = true; + } + } +} + +// the vvvvwao Some function +function datatype_vvvvwao_SomeFunc(datatype_vvvvwao) +{ + // set the function logic + if (datatype_vvvvwao == 'CHAR' || datatype_vvvvwao == 'VARCHAR' || datatype_vvvvwao == 'TEXT' || datatype_vvvvwao == 'MEDIUMTEXT' || datatype_vvvvwao == 'LONGTEXT') { return true; } @@ -350,125 +289,186 @@ function datatype_vvvvwan_SomeFunc(datatype_vvvvwan) } // the vvvvwap function -function vvvvwap(add_css_view_vvvvwap) +function vvvvwap(store_vvvvwap,datatype_vvvvwap) +{ + if (isSet(store_vvvvwap) && store_vvvvwap.constructor !== Array) + { + var temp_vvvvwap = store_vvvvwap; + var store_vvvvwap = []; + store_vvvvwap.push(temp_vvvvwap); + } + else if (!isSet(store_vvvvwap)) + { + var store_vvvvwap = []; + } + var store = store_vvvvwap.some(store_vvvvwap_SomeFunc); + + if (isSet(datatype_vvvvwap) && datatype_vvvvwap.constructor !== Array) + { + var temp_vvvvwap = datatype_vvvvwap; + var datatype_vvvvwap = []; + datatype_vvvvwap.push(temp_vvvvwap); + } + else if (!isSet(datatype_vvvvwap)) + { + var datatype_vvvvwap = []; + } + var datatype = datatype_vvvvwap.some(datatype_vvvvwap_SomeFunc); + + + // set this function logic + if (store && datatype) + { + jQuery('.note_whmcs_encryption').closest('.control-group').show(); + } + else + { + jQuery('.note_whmcs_encryption').closest('.control-group').hide(); + } +} + +// the vvvvwap Some function +function store_vvvvwap_SomeFunc(store_vvvvwap) { // set the function logic - if (add_css_view_vvvvwap == 1) + if (store_vvvvwap == 4) + { + return true; + } + return false; +} + +// the vvvvwap Some function +function datatype_vvvvwap_SomeFunc(datatype_vvvvwap) +{ + // set the function logic + if (datatype_vvvvwap == 'CHAR' || datatype_vvvvwap == 'VARCHAR' || datatype_vvvvwap == 'TEXT' || datatype_vvvvwap == 'MEDIUMTEXT' || datatype_vvvvwap == 'LONGTEXT') + { + return true; + } + return false; +} + +// the vvvvwar function +function vvvvwar(add_css_view_vvvvwar) +{ + // set the function logic + if (add_css_view_vvvvwar == 1) { jQuery('#jform_css_view').closest('.control-group').show(); - if (jform_vvvvwapvzz_required) + if (jform_vvvvwarvzz_required) { updateFieldRequired('css_view',0); jQuery('#jform_css_view').prop('required','required'); jQuery('#jform_css_view').attr('aria-required',true); jQuery('#jform_css_view').addClass('required'); - jform_vvvvwapvzz_required = false; + jform_vvvvwarvzz_required = false; } } else { jQuery('#jform_css_view').closest('.control-group').hide(); - if (!jform_vvvvwapvzz_required) + if (!jform_vvvvwarvzz_required) { updateFieldRequired('css_view',1); jQuery('#jform_css_view').removeAttr('required'); jQuery('#jform_css_view').removeAttr('aria-required'); jQuery('#jform_css_view').removeClass('required'); - jform_vvvvwapvzz_required = true; + jform_vvvvwarvzz_required = true; } } } -// the vvvvwaq function -function vvvvwaq(add_css_views_vvvvwaq) +// the vvvvwas function +function vvvvwas(add_css_views_vvvvwas) { // set the function logic - if (add_css_views_vvvvwaq == 1) + if (add_css_views_vvvvwas == 1) { jQuery('#jform_css_views').closest('.control-group').show(); - if (jform_vvvvwaqwaa_required) + if (jform_vvvvwaswaa_required) { updateFieldRequired('css_views',0); jQuery('#jform_css_views').prop('required','required'); jQuery('#jform_css_views').attr('aria-required',true); jQuery('#jform_css_views').addClass('required'); - jform_vvvvwaqwaa_required = false; + jform_vvvvwaswaa_required = false; } } else { jQuery('#jform_css_views').closest('.control-group').hide(); - if (!jform_vvvvwaqwaa_required) + if (!jform_vvvvwaswaa_required) { updateFieldRequired('css_views',1); jQuery('#jform_css_views').removeAttr('required'); jQuery('#jform_css_views').removeAttr('aria-required'); jQuery('#jform_css_views').removeClass('required'); - jform_vvvvwaqwaa_required = true; + jform_vvvvwaswaa_required = true; } } } -// the vvvvwar function -function vvvvwar(add_javascript_view_footer_vvvvwar) +// the vvvvwat function +function vvvvwat(add_javascript_view_footer_vvvvwat) { // set the function logic - if (add_javascript_view_footer_vvvvwar == 1) + if (add_javascript_view_footer_vvvvwat == 1) { jQuery('#jform_javascript_view_footer').closest('.control-group').show(); - if (jform_vvvvwarwab_required) + if (jform_vvvvwatwab_required) { updateFieldRequired('javascript_view_footer',0); jQuery('#jform_javascript_view_footer').prop('required','required'); jQuery('#jform_javascript_view_footer').attr('aria-required',true); jQuery('#jform_javascript_view_footer').addClass('required'); - jform_vvvvwarwab_required = false; + jform_vvvvwatwab_required = false; } } else { jQuery('#jform_javascript_view_footer').closest('.control-group').hide(); - if (!jform_vvvvwarwab_required) + if (!jform_vvvvwatwab_required) { updateFieldRequired('javascript_view_footer',1); jQuery('#jform_javascript_view_footer').removeAttr('required'); jQuery('#jform_javascript_view_footer').removeAttr('aria-required'); jQuery('#jform_javascript_view_footer').removeClass('required'); - jform_vvvvwarwab_required = true; + jform_vvvvwatwab_required = true; } } } -// the vvvvwas function -function vvvvwas(add_javascript_views_footer_vvvvwas) +// the vvvvwau function +function vvvvwau(add_javascript_views_footer_vvvvwau) { // set the function logic - if (add_javascript_views_footer_vvvvwas == 1) + if (add_javascript_views_footer_vvvvwau == 1) { jQuery('#jform_javascript_views_footer').closest('.control-group').show(); - if (jform_vvvvwaswac_required) + if (jform_vvvvwauwac_required) { updateFieldRequired('javascript_views_footer',0); jQuery('#jform_javascript_views_footer').prop('required','required'); jQuery('#jform_javascript_views_footer').attr('aria-required',true); jQuery('#jform_javascript_views_footer').addClass('required'); - jform_vvvvwaswac_required = false; + jform_vvvvwauwac_required = false; } } else { jQuery('#jform_javascript_views_footer').closest('.control-group').hide(); - if (!jform_vvvvwaswac_required) + if (!jform_vvvvwauwac_required) { updateFieldRequired('javascript_views_footer',1); jQuery('#jform_javascript_views_footer').removeAttr('required'); jQuery('#jform_javascript_views_footer').removeAttr('aria-required'); jQuery('#jform_javascript_views_footer').removeClass('required'); - jform_vvvvwaswac_required = true; + jform_vvvvwauwac_required = true; } } } diff --git a/admin/models/forms/field.xml b/admin/models/forms/field.xml index 8a17c1fd1..00f29eda9 100644 --- a/admin/models/forms/field.xml +++ b/admin/models/forms/field.xml @@ -342,14 +342,13 @@ filter="raw" hint="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_HINT" required="true" /> - + + class="alert alert-success note_whmcs_encryption" /> - - + + + - - + - - - - + button="true" /> - + + class="alert alert-info note_dynamic_dashboard" /> COM_COMPONENTBUILDER_JOOMLA_COMPONENT_USE_ONLY_FIRST_TWO_NUMBER_OF_GLOBAL_VERSION_ONEZEROX - - + - - + + - - + + - + - - + + + - - - - - - + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ZIP - - - - - - + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES - - - - - - - - - - - - - + @@ -428,17 +417,17 @@ validated="url" message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_MESSAGE" hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WEBSITE_HINT" /> - - - - - - + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES - - - - - - + + - - + + - - - - - - + + - - + + - - + + - + + + + + - - + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES - - - - COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES + + + + - - + + + + + + - + - - - + + - + @@ -696,17 +707,17 @@ name="spacer_hr_b" hr="true" class="spacer_hr_b" /> - - + + + + + + - - + + + + + + - - + + + + + + - - + + + + + + - - + + + + + + - - + + + + + + - - + + + + + + - - + + + + + + - - - - - - + + - + @@ -880,10 +888,10 @@ filter="STRING" message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_KEY_MESSAGE" hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_KEY_HINT" /> - + @@ -904,10 +912,10 @@ validated="url" message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_PACKAGE_LINK_MESSAGE" hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_PACKAGE_LINK_HINT" /> - + @@ -928,10 +936,10 @@ validated="url" message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_BUY_LINK_MESSAGE" hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_BUY_LINK_HINT" /> - + @@ -944,10 +952,10 @@ name="spacer_hr_f" hr="true" class="spacer_hr_f" /> - + @@ -962,12 +970,13 @@ description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CONTRIBUTORS_DESCRIPTION" heading="h4" class="alert alert-info note_on_contributors" /> - + + default="0" + required="true"> @@ -1069,13 +1078,16 @@ - - + + + + + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES + + + + - - - - + + + + - + + name="note_on_site_views" + label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_SITE_VIEWS_LABEL" + description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_SITE_VIEWS_DESCRIPTION" + heading="h4" + class="alert alert-info note_on_site_views" /> COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES - + + name="note_display_component_site_views" + description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_SITE_VIEWS_DESCRIPTION" + class="note_display_component_site_views" /> - + + name="note_on_custom_admin_views" + label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CUSTOM_ADMIN_VIEWS_LABEL" + description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CUSTOM_ADMIN_VIEWS_DESCRIPTION" + heading="h4" + class="alert alert-info note_on_custom_admin_views" /> addcontributors = $addcontributors->toArray(); } + if (!empty($item->php_postflight_install)) + { + // base64 Decode php_postflight_install. + $item->php_postflight_install = base64_decode($item->php_postflight_install); + } + + if (!empty($item->php_site_event)) + { + // base64 Decode php_site_event. + $item->php_site_event = base64_decode($item->php_site_event); + } + if (!empty($item->readme)) { // base64 Decode readme. $item->readme = base64_decode($item->readme); } - if (!empty($item->php_postflight_install)) + if (!empty($item->css_admin)) { - // base64 Decode php_postflight_install. - $item->php_postflight_install = base64_decode($item->php_postflight_install); + // base64 Decode css_admin. + $item->css_admin = base64_decode($item->css_admin); } if (!empty($item->php_preflight_install)) @@ -132,6 +144,42 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $item->php_method_uninstall = base64_decode($item->php_method_uninstall); } + if (!empty($item->php_helper_both)) + { + // base64 Decode php_helper_both. + $item->php_helper_both = base64_decode($item->php_helper_both); + } + + if (!empty($item->php_admin_event)) + { + // base64 Decode php_admin_event. + $item->php_admin_event = base64_decode($item->php_admin_event); + } + + if (!empty($item->php_helper_admin)) + { + // base64 Decode php_helper_admin. + $item->php_helper_admin = base64_decode($item->php_helper_admin); + } + + if (!empty($item->php_helper_site)) + { + // base64 Decode php_helper_site. + $item->php_helper_site = base64_decode($item->php_helper_site); + } + + if (!empty($item->javascript)) + { + // base64 Decode javascript. + $item->javascript = base64_decode($item->javascript); + } + + if (!empty($item->css_site)) + { + // base64 Decode css_site. + $item->css_site = base64_decode($item->css_site); + } + if (!empty($item->php_preflight_update)) { // base64 Decode php_preflight_update. @@ -150,54 +198,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $item->sql = base64_decode($item->sql); } - if (!empty($item->php_helper_both)) - { - // base64 Decode php_helper_both. - $item->php_helper_both = base64_decode($item->php_helper_both); - } - - if (!empty($item->php_helper_admin)) - { - // base64 Decode php_helper_admin. - $item->php_helper_admin = base64_decode($item->php_helper_admin); - } - - if (!empty($item->php_admin_event)) - { - // base64 Decode php_admin_event. - $item->php_admin_event = base64_decode($item->php_admin_event); - } - - if (!empty($item->php_helper_site)) - { - // base64 Decode php_helper_site. - $item->php_helper_site = base64_decode($item->php_helper_site); - } - - if (!empty($item->php_site_event)) - { - // base64 Decode php_site_event. - $item->php_site_event = base64_decode($item->php_site_event); - } - - if (!empty($item->javascript)) - { - // base64 Decode javascript. - $item->javascript = base64_decode($item->javascript); - } - - if (!empty($item->css_admin)) - { - // base64 Decode css_admin. - $item->css_admin = base64_decode($item->css_admin); - } - - if (!empty($item->css_site)) - { - // base64 Decode css_site. - $item->css_site = base64_decode($item->css_site); - } - if (!empty($item->buildcompsql)) { // base64 Decode buildcompsql. @@ -1247,16 +1247,28 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $data['addcontributors'] = ''; } + // Set the php_postflight_install string to base64 string. + if (isset($data['php_postflight_install'])) + { + $data['php_postflight_install'] = base64_encode($data['php_postflight_install']); + } + + // Set the php_site_event string to base64 string. + if (isset($data['php_site_event'])) + { + $data['php_site_event'] = base64_encode($data['php_site_event']); + } + // Set the readme string to base64 string. if (isset($data['readme'])) { $data['readme'] = base64_encode($data['readme']); } - // Set the php_postflight_install string to base64 string. - if (isset($data['php_postflight_install'])) + // Set the css_admin string to base64 string. + if (isset($data['css_admin'])) { - $data['php_postflight_install'] = base64_encode($data['php_postflight_install']); + $data['css_admin'] = base64_encode($data['css_admin']); } // Set the php_preflight_install string to base64 string. @@ -1271,6 +1283,42 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']); } + // Set the php_helper_both string to base64 string. + if (isset($data['php_helper_both'])) + { + $data['php_helper_both'] = base64_encode($data['php_helper_both']); + } + + // Set the php_admin_event string to base64 string. + if (isset($data['php_admin_event'])) + { + $data['php_admin_event'] = base64_encode($data['php_admin_event']); + } + + // Set the php_helper_admin string to base64 string. + if (isset($data['php_helper_admin'])) + { + $data['php_helper_admin'] = base64_encode($data['php_helper_admin']); + } + + // Set the php_helper_site string to base64 string. + if (isset($data['php_helper_site'])) + { + $data['php_helper_site'] = base64_encode($data['php_helper_site']); + } + + // Set the javascript string to base64 string. + if (isset($data['javascript'])) + { + $data['javascript'] = base64_encode($data['javascript']); + } + + // Set the css_site string to base64 string. + if (isset($data['css_site'])) + { + $data['css_site'] = base64_encode($data['css_site']); + } + // Set the php_preflight_update string to base64 string. if (isset($data['php_preflight_update'])) { @@ -1289,54 +1337,6 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $data['sql'] = base64_encode($data['sql']); } - // Set the php_helper_both string to base64 string. - if (isset($data['php_helper_both'])) - { - $data['php_helper_both'] = base64_encode($data['php_helper_both']); - } - - // Set the php_helper_admin string to base64 string. - if (isset($data['php_helper_admin'])) - { - $data['php_helper_admin'] = base64_encode($data['php_helper_admin']); - } - - // Set the php_admin_event string to base64 string. - if (isset($data['php_admin_event'])) - { - $data['php_admin_event'] = base64_encode($data['php_admin_event']); - } - - // Set the php_helper_site string to base64 string. - if (isset($data['php_helper_site'])) - { - $data['php_helper_site'] = base64_encode($data['php_helper_site']); - } - - // Set the php_site_event string to base64 string. - if (isset($data['php_site_event'])) - { - $data['php_site_event'] = base64_encode($data['php_site_event']); - } - - // Set the javascript string to base64 string. - if (isset($data['javascript'])) - { - $data['javascript'] = base64_encode($data['javascript']); - } - - // Set the css_admin string to base64 string. - if (isset($data['css_admin'])) - { - $data['css_admin'] = base64_encode($data['css_admin']); - } - - // Set the css_site string to base64 string. - if (isset($data['css_site'])) - { - $data['css_site'] = base64_encode($data['css_site']); - } - // Set the buildcompsql string to base64 string. if (isset($data['buildcompsql'])) { diff --git a/admin/models/joomla_components.php b/admin/models/joomla_components.php index 7185358c6..cf76bfa50 100644 --- a/admin/models/joomla_components.php +++ b/admin/models/joomla_components.php @@ -1723,14 +1723,30 @@ class ComponentbuilderModelJoomla_components extends JModelList continue; } - // decode readme - $item->readme = base64_decode($item->readme); // decode php_postflight_install $item->php_postflight_install = base64_decode($item->php_postflight_install); + // decode php_site_event + $item->php_site_event = base64_decode($item->php_site_event); + // decode readme + $item->readme = base64_decode($item->readme); + // decode css_admin + $item->css_admin = base64_decode($item->css_admin); // decode php_preflight_install $item->php_preflight_install = base64_decode($item->php_preflight_install); // decode php_method_uninstall $item->php_method_uninstall = base64_decode($item->php_method_uninstall); + // decode php_helper_both + $item->php_helper_both = base64_decode($item->php_helper_both); + // decode php_admin_event + $item->php_admin_event = base64_decode($item->php_admin_event); + // decode php_helper_admin + $item->php_helper_admin = base64_decode($item->php_helper_admin); + // decode php_helper_site + $item->php_helper_site = base64_decode($item->php_helper_site); + // decode javascript + $item->javascript = base64_decode($item->javascript); + // decode css_site + $item->css_site = base64_decode($item->css_site); if ($basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true))) { // decrypt whmcs_key @@ -1742,22 +1758,6 @@ class ComponentbuilderModelJoomla_components extends JModelList $item->php_postflight_update = base64_decode($item->php_postflight_update); // decode sql $item->sql = base64_decode($item->sql); - // decode php_helper_both - $item->php_helper_both = base64_decode($item->php_helper_both); - // decode php_helper_admin - $item->php_helper_admin = base64_decode($item->php_helper_admin); - // decode php_admin_event - $item->php_admin_event = base64_decode($item->php_admin_event); - // decode php_helper_site - $item->php_helper_site = base64_decode($item->php_helper_site); - // decode php_site_event - $item->php_site_event = base64_decode($item->php_site_event); - // decode javascript - $item->javascript = base64_decode($item->javascript); - // decode css_admin - $item->css_admin = base64_decode($item->css_admin); - // decode css_site - $item->css_site = base64_decode($item->css_site); if ($basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true))) { // decrypt export_key diff --git a/admin/sql/install.mysql.utf8.sql b/admin/sql/install.mysql.utf8.sql index ad32a28d1..57b2fac51 100644 --- a/admin/sql/install.mysql.utf8.sql +++ b/admin/sql/install.mysql.utf8.sql @@ -34,6 +34,8 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( `creatuserhelper` TINYINT(1) NOT NULL DEFAULT 0, `css_admin` TEXT NOT NULL, `css_site` TEXT NOT NULL, + `dashboard` VARCHAR(64) NOT NULL DEFAULT '', + `dashboard_type` TINYINT(1) NOT NULL DEFAULT 1, `debug_linenr` TINYINT(1) NOT NULL DEFAULT 0, `description` TEXT NOT NULL, `email` VARCHAR(255) NOT NULL DEFAULT '', @@ -95,25 +97,25 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( KEY `idx_state` (`published`), KEY `idx_system_name` (`system_name`), KEY `idx_name_code` (`name_code`), - KEY `idx_add_css_site` (`add_css_site`), KEY `idx_mvc_versiondate` (`mvc_versiondate`), KEY `idx_add_placeholders` (`add_placeholders`), - KEY `idx_addfootable` (`addfootable`), - KEY `idx_add_php_helper_admin` (`add_php_helper_admin`), - KEY `idx_update_server_target` (`update_server_target`), - KEY `idx_add_php_helper_site` (`add_php_helper_site`), - KEY `idx_debug_linenr` (`debug_linenr`), - KEY `idx_add_javascript` (`add_javascript`), - KEY `idx_creatuserhelper` (`creatuserhelper`), - KEY `idx_add_php_helper_both` (`add_php_helper_both`), - KEY `idx_add_admin_event` (`add_admin_event`), - KEY `idx_add_license` (`add_license`), - KEY `idx_add_site_event` (`add_site_event`), - KEY `idx_license_type` (`license_type`), - KEY `idx_add_css_admin` (`add_css_admin`), - KEY `idx_add_update_server` (`add_update_server`), KEY `idx_adduikit` (`adduikit`), + KEY `idx_update_server_target` (`update_server_target`), + KEY `idx_debug_linenr` (`debug_linenr`), KEY `idx_add_email_helper` (`add_email_helper`), + KEY `idx_add_license` (`add_license`), + KEY `idx_license_type` (`license_type`), + KEY `idx_add_update_server` (`add_update_server`), + KEY `idx_creatuserhelper` (`creatuserhelper`), + KEY `idx_addfootable` (`addfootable`), + KEY `idx_add_php_helper_both` (`add_php_helper_both`), + KEY `idx_add_php_helper_admin` (`add_php_helper_admin`), + KEY `idx_add_admin_event` (`add_admin_event`), + KEY `idx_add_php_helper_site` (`add_php_helper_site`), + KEY `idx_add_site_event` (`add_site_event`), + KEY `idx_add_javascript` (`add_javascript`), + KEY `idx_add_css_admin` (`add_css_admin`), + KEY `idx_add_css_site` (`add_css_site`), KEY `idx_add_php_preflight_install` (`add_php_preflight_install`), KEY `idx_add_php_preflight_update` (`add_php_preflight_update`), KEY `idx_add_php_postflight_install` (`add_php_postflight_install`), @@ -1248,7 +1250,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_library_files_folders_urls` ( -- INSERT INTO `#__componentbuilder_joomla_component` (`id`, `add_license`, `license_type`, `mvc_versiondate`, `add_css_admin`, `add_css_site`, `add_email_helper`, `add_javascript`, `add_php_helper_admin`, `add_php_helper_both`, `add_php_helper_site`, `add_php_postflight_install`, `add_php_method_uninstall`, `add_php_postflight_update`, `add_php_preflight_install`, `add_php_preflight_update`, `add_placeholders`, `add_sql`, `addfootable`, `adduikit`, `add_admin_event`, `add_site_event`, `add_update_server`, `add_sales_server`, `sales_server`, `update_server`, `update_server_target`, `update_server_url`, `php_admin_event`, `php_site_event`, `addreadme`, `readme`, `author`, `bom`, `buildcomp`, `buildcompsql`, `companyname`, `component_version`, `copyright`, `creatuserhelper`, `css_admin`, `css_site`, `debug_linenr`, `description`, `email`, `emptycontributors`, `export_buy_link`, `export_package_link`, `export_key`, `image`, `javascript`, `license`, `name`, `system_name`, `toignore`, `name_code`, `number`, `php_helper_admin`, `php_helper_both`, `php_helper_site`, `php_postflight_install`, `php_method_uninstall`, `php_postflight_update`, `php_preflight_install`, `php_preflight_update`, `short_description`, `sql`, `website`, `published`, `created`, `modified`, `hits`, `ordering`, `whmcs_key`, `whmcs_url`) VALUES -(25, '', 1, '', '', '', '', '', '', '', 1, 1, '', '', '', '', '', '', '', 1, '', '', 1, '', '', '', 2, 'https://www.vdm.io/updates/demo_update_server.xml', '', '', 1, 'IyAjIyNDb21wb25lbnRfbmFtZSMjIyAoIyMjVkVSU0lPTiMjIykNCg0KIVsjIyNDb21wb25lbnRfbmFtZSMjIyBpbWFnZV0oaHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL25hbWliaWEvZGVtby1qb29tbGEtMy1jb21wb25lbnQvbWFzdGVyL2FkbWluL2Fzc2V0cy9pbWFnZXMvdmRtLWNvbXBvbmVudC5qcGcgIlRoZSAjIyNDb21wb25lbnRfbmFtZSMjIyIpDQoNCiMjI0RFU0NSSVBUSU9OIyMjDQoNCiMgQnVpbGQgRGV0YWlscw0KDQorICpDb21wYW55KjogWyMjI0NPTVBBTllOQU1FIyMjXSgjIyNBVVRIT1JXRUJTSVRFIyMjKQ0KKyAqQXV0aG9yKjogWyMjI0FVVEhPUiMjI10obWFpbHRvOiMjI0FVVEhPUkVNQUlMIyMjKQ0KKyAqTmFtZSo6IFsjIyNDb21wb25lbnRfbmFtZSMjI10oIyMjQVVUSE9SV0VCU0lURSMjIykNCisgKkZpcnN0IEJ1aWxkKjogIyMjQ1JFQVRJT05EQVRFIyMjDQorICpMYXN0IEJ1aWxkKjogIyMjQlVJTEREQVRFIyMjDQorICpWZXJzaW9uKjogIyMjVkVSU0lPTiMjIw0KKyAqQ29weXJpZ2h0KjogIyMjQ09QWVJJR0hUIyMjDQorICpMaWNlbnNlKjogIyMjTElDRU5TRSMjIw0KDQojIyBCdWlsZCBUaW1lDQoNCioqIyMjdG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjdG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqIChhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNhdmVkIC0NCmR1ZSB0byBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKSkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gbmV2ZXIgbWFraW5nIG9uZSBtaXN0YWtlIG9yIHRha2luZyBhbnkgY29mZmVlIGJyZWFrLikNCg0KKyAqTGluZSBjb3VudCo6ICoqIyMjTElORV9DT1VOVCMjIyoqDQorICpGaWxlIGNvdW50KjogKiojIyNGSUxFX0NPVU5UIyMjKioNCisgKkZvbGRlciBjb3VudCo6ICoqIyMjRk9MREVSX0NPVU5UIyMjKioNCg0KKiojIyNhY3R1YWxIb3Vyc1NwZW50IyMjIEhvdXJzKiogb3IgKiojIyNhY3R1YWxEYXlzU3BlbnQjIyMgRWlnaHQgSG91ciBEYXlzKiogKHRoZSBhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNwZW50KQ0KDQo+ICh3aXRoIHRoZSBmb2xsb3dpbmcgYnJlYWsgZG93bjoNCj4gKipkZWJ1Z2dpbmcgQCMjI2RlYnVnZ2luZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA0Ow0KPiAqKnBsYW5uaW5nIEAjIyNwbGFubmluZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA3Ow0KPiAqKm1hcHBpbmcgQCMjI21hcHBpbmdIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gMTA7DQo+ICoqb2ZmaWNlIEAjIyNvZmZpY2VIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gNjspDQoNCioqIyMjYWN0dWFsVG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjYWN0dWFsVG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqDQooYSB0b3RhbCBvZiB0aGUgcmVhbGlzdGljIHRpbWUgZnJhbWUgZm9yIHRoaXMgcHJvamVjdCkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gd2l0aCB0aGUgbm9ybWFsIGV2ZXJ5ZGF5IHJlYWxpdGllcyBhdCB0aGUgb2ZmaWNlLCB0aGF0IGluY2x1ZGVzIHRoZSBjb21wb25lbnQgcGxhbm5pbmcsIG1hcHBpbmcgJiBkZWJ1Z2dpbmcuKQ0KDQpQcm9qZWN0IGR1cmF0aW9uOiAqKiMjI3Byb2plY3RXZWVrVGltZSMjIyB3ZWVrcyoqIG9yICoqIyMjcHJvamVjdE1vbnRoVGltZSMjIyBtb250aHMqKg0KDQo+IFRoaXMgKipjb21wb25lbnQqKiB3YXMgYnVpbGQgd2l0aCBhIEpvb21sYSBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKS4NCj4gRGV2ZWxvcGVkIGJ5IFtMbGV3ZWxseW4gdmFuIGRlciBNZXJ3ZV0obWFpbHRvOmpvb21sYUB2ZG0uaW8pDQoNCiMjIERvbmF0aW9ucw0KDQpJZiB5b3Ugd2FudCB0byBzdXBwb3J0IHRoaXMgcHJvamVjdCwgcGxlYXNlIGNvbnNpZGVyIGRvbmF0aW5nOg0KKiBQYXlQYWw6IFtwYXlwYWwubWUvcGF5dmRtXShodHRwczovL3d3dy5wYXlwYWwubWUvcGF5dmRtKQ0KKiBCaXRjb2luOiAxRkx4aVQ2d3l4Z1ozYm9ldmlMa1lKMURScHA0MXV6cHhhDQoqIEV0aGVyZXVtOiAweDI0MzM5MmRhYTNjOWM4YmM4NDFmY2FjZjdjN2Y3MjU0MWNiMTY4MjMg', 'Llewellyn van der Merwe', 'default.txt', '', '', 'Vast Development Method', '2.0.0', 'Copyright (C) 2015. All Rights Reserved', '', '', '', '', 'Just a basic demo of the most basic implementations of the [Joomla](http://www.joomla.org) Component Builder\'s ability.', 'info@vdm.io', '', '', '', 'q59UiiKBVT2mWzkz3EPBrdIANxfa0dSmp+5sEgzgC+s=', 'images/vdm/demo500.jpg', '', 'GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html', 'Demo', 'Demo', '', 'demo', 4, '', '', 'CS8qKg0KCSAqCUNoYW5nZSB0byBuaWNlIGZhbmN5IGRhdGUNCgkgKi8NCglwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGZhbmN5RGF0ZSgkZGF0ZSkNCgl7DQoJCWlmICghc2VsZjo6aXNWYWxpZFRpbWVTdGFtcCgkZGF0ZSkpDQoJCXsNCgkJCSRkYXRlID0gc3RydG90aW1lKCRkYXRlKTsNCgkJfQ0KCQlyZXR1cm4gZGF0ZSgnalMgXG9cZiBGIFknLCRkYXRlKTsNCgl9DQoNCgkvKioNCgkgKglDaGFuZ2UgdG8gbmljZSBmYW5jeSB0aW1lIGFuZCBkYXRlDQoJICovDQoJcHVibGljIHN0YXRpYyBmdW5jdGlvbiBmYW5jeURhdGVUaW1lKCR0aW1lKQ0KCXsNCgkJaWYgKCFzZWxmOjppc1ZhbGlkVGltZVN0YW1wKCR0aW1lKSkNCgkJew0KCQkJJHRpbWUgPSBzdHJ0b3RpbWUoJHRpbWUpOw0KCQl9DQoJCXJldHVybiBkYXRlKCcoRzppKSBqUyBcb1xmIEYgWScsJHRpbWUpOw0KCX0NCg0KCS8qKg0KCSAqCUNoYW5nZSB0byBuaWNlIGhvdXI6bWludXRlcyB0aW1lDQoJICovDQoJcHVibGljIHN0YXRpYyBmdW5jdGlvbiBmYW5jeVRpbWUoJHRpbWUpDQoJew0KCQlpZiAoIXNlbGY6OmlzVmFsaWRUaW1lU3RhbXAoJHRpbWUpKQ0KCQl7DQoJCQkkdGltZSA9IHN0cnRvdGltZSgkdGltZSk7DQoJCX0NCgkJcmV0dXJuIGRhdGUoJ0c6aScsJHRpbWUpOw0KCX0NCg0KCS8qKg0KCSAqCUNoZWNrIGlmIHN0cmluZyBpcyBhIHZhbGlkIHRpbWUgc3RhbXANCgkgKi8NCglwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGlzVmFsaWRUaW1lU3RhbXAoJHRpbWVzdGFtcCkNCgl7DQoJCXJldHVybiAoKGludCkgJHRpbWVzdGFtcCA9PT0gJHRpbWVzdGFtcCkNCgkJJiYgKCR0aW1lc3RhbXAgPD0gUEhQX0lOVF9NQVgpDQoJCSYmICgkdGltZXN0YW1wID49IH5QSFBfSU5UX01BWCk7DQoJfQ0K', 'CQkvLyBHZXQgQXBwbGljYXRpb24gb2JqZWN0DQoJCSRhcHAgPSBKRmFjdG9yeTo6Z2V0QXBwbGljYXRpb24oKTsNCgkJJGFwcC0+ZW5xdWV1ZU1lc3NhZ2UoJ1RoaXMgaXMgYSBkZW1vIGNvbXBvbmVudCBkZXZlbG9wZWQgaW4gPGEgaHJlZj0iaHR0cDovL3ZkbS5iei9jb21wb25lbnQtYnVpbGRlciIgdGFnZXQ9Il9iYWxuayIgdGl0bGU9Ikpvb21sYSBDb21wb25lbnQgQnVpbGRlciI+SkNCPC9hPiEgWW91IGNhbiBidWlsZCBtb3JlIGNvbXBvbmVudHMgbGlrZSB0aGlzIHdpdGggSkNCLCBjaGVja291dCBvdXIgcGFnZSBvbiA8YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vdmRtLWlvL0pvb21sYS1Db21wb25lbnQtQnVpbGRlciIgdGFnZXQ9Il9iYWxuayIgdGl0bGU9Ikpvb21sYSBDb21wb25lbnQgQnVpbGRlciI+Z2l0aHViPC9hPiBmb3IgbW9yZSBpbmZvLiBUaGUgZnV0dXJlIG9mIDxhIGhyZWY9Imh0dHA6Ly92ZG0uYnovY29tcG9uZW50LWJ1aWxkZXIiIHRhZ2V0PSJfYmFsbmsiIHRpdGxlPSJKb29tbGEgQ29tcG9uZW50IEJ1aWxkZXIiPkpvb21sYSBDb21wb25lbnQgRGV2ZWxvcG1lbnQ8L2E+IGlzIEhlcmUhJywgJ0luZm8nKTs=', '', '', '', '', 'Demo Component', '', 'https://www.vdm.io/', 1, '2016-10-18 11:44:09', '2017-08-25 00:36:01', '', 3, 'V6inNhoApqD2JvhSrOd+R/OzoW8mTod30wXoypEZacY=', ''); +(25, '', 1, '', '', '', '', '', '', '', 1, 1, '', '', '', '', '', '', '', 1, '', '', 1, '', '', '', 2, 'https://www.vdm.io/updates/demo_update_server.xml', '', '', 1, 'IyAjIyNDb21wb25lbnRfbmFtZSMjIyAoIyMjVkVSU0lPTiMjIykNCg0KIVsjIyNDb21wb25lbnRfbmFtZSMjIyBpbWFnZV0oaHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL25hbWliaWEvZGVtby1qb29tbGEtMy1jb21wb25lbnQvbWFzdGVyL2FkbWluL2Fzc2V0cy9pbWFnZXMvdmRtLWNvbXBvbmVudC5qcGcgIlRoZSAjIyNDb21wb25lbnRfbmFtZSMjIyIpDQoNCiMjI0RFU0NSSVBUSU9OIyMjDQoNCiMgQnVpbGQgRGV0YWlscw0KDQorICpDb21wYW55KjogWyMjI0NPTVBBTllOQU1FIyMjXSgjIyNBVVRIT1JXRUJTSVRFIyMjKQ0KKyAqQXV0aG9yKjogWyMjI0FVVEhPUiMjI10obWFpbHRvOiMjI0FVVEhPUkVNQUlMIyMjKQ0KKyAqTmFtZSo6IFsjIyNDb21wb25lbnRfbmFtZSMjI10oIyMjQVVUSE9SV0VCU0lURSMjIykNCisgKkZpcnN0IEJ1aWxkKjogIyMjQ1JFQVRJT05EQVRFIyMjDQorICpMYXN0IEJ1aWxkKjogIyMjQlVJTEREQVRFIyMjDQorICpWZXJzaW9uKjogIyMjVkVSU0lPTiMjIw0KKyAqQ29weXJpZ2h0KjogIyMjQ09QWVJJR0hUIyMjDQorICpMaWNlbnNlKjogIyMjTElDRU5TRSMjIw0KDQojIyBCdWlsZCBUaW1lDQoNCioqIyMjdG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjdG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqIChhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNhdmVkIC0NCmR1ZSB0byBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKSkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gbmV2ZXIgbWFraW5nIG9uZSBtaXN0YWtlIG9yIHRha2luZyBhbnkgY29mZmVlIGJyZWFrLikNCg0KKyAqTGluZSBjb3VudCo6ICoqIyMjTElORV9DT1VOVCMjIyoqDQorICpGaWxlIGNvdW50KjogKiojIyNGSUxFX0NPVU5UIyMjKioNCisgKkZvbGRlciBjb3VudCo6ICoqIyMjRk9MREVSX0NPVU5UIyMjKioNCg0KKiojIyNhY3R1YWxIb3Vyc1NwZW50IyMjIEhvdXJzKiogb3IgKiojIyNhY3R1YWxEYXlzU3BlbnQjIyMgRWlnaHQgSG91ciBEYXlzKiogKHRoZSBhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNwZW50KQ0KDQo+ICh3aXRoIHRoZSBmb2xsb3dpbmcgYnJlYWsgZG93bjoNCj4gKipkZWJ1Z2dpbmcgQCMjI2RlYnVnZ2luZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA0Ow0KPiAqKnBsYW5uaW5nIEAjIyNwbGFubmluZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA3Ow0KPiAqKm1hcHBpbmcgQCMjI21hcHBpbmdIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gMTA7DQo+ICoqb2ZmaWNlIEAjIyNvZmZpY2VIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gNjspDQoNCioqIyMjYWN0dWFsVG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjYWN0dWFsVG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqDQooYSB0b3RhbCBvZiB0aGUgcmVhbGlzdGljIHRpbWUgZnJhbWUgZm9yIHRoaXMgcHJvamVjdCkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gd2l0aCB0aGUgbm9ybWFsIGV2ZXJ5ZGF5IHJlYWxpdGllcyBhdCB0aGUgb2ZmaWNlLCB0aGF0IGluY2x1ZGVzIHRoZSBjb21wb25lbnQgcGxhbm5pbmcsIG1hcHBpbmcgJiBkZWJ1Z2dpbmcuKQ0KDQpQcm9qZWN0IGR1cmF0aW9uOiAqKiMjI3Byb2plY3RXZWVrVGltZSMjIyB3ZWVrcyoqIG9yICoqIyMjcHJvamVjdE1vbnRoVGltZSMjIyBtb250aHMqKg0KDQo+IFRoaXMgKipjb21wb25lbnQqKiB3YXMgYnVpbGQgd2l0aCBhIEpvb21sYSBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKS4NCj4gRGV2ZWxvcGVkIGJ5IFtMbGV3ZWxseW4gdmFuIGRlciBNZXJ3ZV0obWFpbHRvOmpvb21sYUB2ZG0uaW8pDQoNCiMjIERvbmF0aW9ucw0KDQpJZiB5b3Ugd2FudCB0byBzdXBwb3J0IHRoaXMgcHJvamVjdCwgcGxlYXNlIGNvbnNpZGVyIGRvbmF0aW5nOg0KKiBQYXlQYWw6IFtwYXlwYWwubWUvcGF5dmRtXShodHRwczovL3d3dy5wYXlwYWwubWUvcGF5dmRtKQ0KKiBCaXRjb2luOiAxRkx4aVQ2d3l4Z1ozYm9ldmlMa1lKMURScHA0MXV6cHhhDQoqIEV0aGVyZXVtOiAweDI0MzM5MmRhYTNjOWM4YmM4NDFmY2FjZjdjN2Y3MjU0MWNiMTY4MjMg', 'Llewellyn van der Merwe', 'default.txt', '', '', 'Vast Development Method', '2.0.0', 'Copyright (C) 2015. All Rights Reserved', '', '', '', '', 'Just a basic demo of the most basic implementations of the [Joomla](http://www.joomla.org) Component Builder\'s ability.', 'info@vdm.io', '', '', '', 'pEbqtHNWsk82loVJzK07J13WDeeZbwQTiOmFRIPBopA=', 'images/vdm/demo500.jpg', '', 'GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html', 'Demo', 'Demo', '.git', 'demo', 4, '', '', 'CS8qKg0KCSAqCUNoYW5nZSB0byBuaWNlIGZhbmN5IGRhdGUNCgkgKi8NCglwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGZhbmN5RGF0ZSgkZGF0ZSkNCgl7DQoJCWlmICghc2VsZjo6aXNWYWxpZFRpbWVTdGFtcCgkZGF0ZSkpDQoJCXsNCgkJCSRkYXRlID0gc3RydG90aW1lKCRkYXRlKTsNCgkJfQ0KCQlyZXR1cm4gZGF0ZSgnalMgXG9cZiBGIFknLCRkYXRlKTsNCgl9DQoNCgkvKioNCgkgKglDaGFuZ2UgdG8gbmljZSBmYW5jeSB0aW1lIGFuZCBkYXRlDQoJICovDQoJcHVibGljIHN0YXRpYyBmdW5jdGlvbiBmYW5jeURhdGVUaW1lKCR0aW1lKQ0KCXsNCgkJaWYgKCFzZWxmOjppc1ZhbGlkVGltZVN0YW1wKCR0aW1lKSkNCgkJew0KCQkJJHRpbWUgPSBzdHJ0b3RpbWUoJHRpbWUpOw0KCQl9DQoJCXJldHVybiBkYXRlKCcoRzppKSBqUyBcb1xmIEYgWScsJHRpbWUpOw0KCX0NCg0KCS8qKg0KCSAqCUNoYW5nZSB0byBuaWNlIGhvdXI6bWludXRlcyB0aW1lDQoJICovDQoJcHVibGljIHN0YXRpYyBmdW5jdGlvbiBmYW5jeVRpbWUoJHRpbWUpDQoJew0KCQlpZiAoIXNlbGY6OmlzVmFsaWRUaW1lU3RhbXAoJHRpbWUpKQ0KCQl7DQoJCQkkdGltZSA9IHN0cnRvdGltZSgkdGltZSk7DQoJCX0NCgkJcmV0dXJuIGRhdGUoJ0c6aScsJHRpbWUpOw0KCX0NCg0KCS8qKg0KCSAqCUNoZWNrIGlmIHN0cmluZyBpcyBhIHZhbGlkIHRpbWUgc3RhbXANCgkgKi8NCglwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGlzVmFsaWRUaW1lU3RhbXAoJHRpbWVzdGFtcCkNCgl7DQoJCXJldHVybiAoKGludCkgJHRpbWVzdGFtcCA9PT0gJHRpbWVzdGFtcCkNCgkJJiYgKCR0aW1lc3RhbXAgPD0gUEhQX0lOVF9NQVgpDQoJCSYmICgkdGltZXN0YW1wID49IH5QSFBfSU5UX01BWCk7DQoJfQ0K', 'CQkvLyBHZXQgQXBwbGljYXRpb24gb2JqZWN0DQoJCSRhcHAgPSBKRmFjdG9yeTo6Z2V0QXBwbGljYXRpb24oKTsNCgkJJGFwcC0+ZW5xdWV1ZU1lc3NhZ2UoJ1RoaXMgaXMgYSBkZW1vIGNvbXBvbmVudCBkZXZlbG9wZWQgaW4gPGEgaHJlZj0iaHR0cDovL3ZkbS5iei9jb21wb25lbnQtYnVpbGRlciIgdGFnZXQ9Il9iYWxuayIgdGl0bGU9Ikpvb21sYSBDb21wb25lbnQgQnVpbGRlciI+SkNCPC9hPiEgWW91IGNhbiBidWlsZCBtb3JlIGNvbXBvbmVudHMgbGlrZSB0aGlzIHdpdGggSkNCLCBjaGVja291dCBvdXIgcGFnZSBvbiA8YSBocmVmPSJodHRwczovL2dpdGh1Yi5jb20vdmRtLWlvL0pvb21sYS1Db21wb25lbnQtQnVpbGRlciIgdGFnZXQ9Il9iYWxuayIgdGl0bGU9Ikpvb21sYSBDb21wb25lbnQgQnVpbGRlciI+Z2l0aHViPC9hPiBmb3IgbW9yZSBpbmZvLiBUaGUgZnV0dXJlIG9mIDxhIGhyZWY9Imh0dHA6Ly92ZG0uYnovY29tcG9uZW50LWJ1aWxkZXIiIHRhZ2V0PSJfYmFsbmsiIHRpdGxlPSJKb29tbGEgQ29tcG9uZW50IEJ1aWxkZXIiPkpvb21sYSBDb21wb25lbnQgRGV2ZWxvcG1lbnQ8L2E+IGlzIEhlcmUhJywgJ0luZm8nKTs=', '', '', '', '', 'Demo Component', '', 'https://www.vdm.io/', 1, '2016-10-18 11:44:09', '2018-03-09 01:39:43', '', 3, 'MoZ1EnRkgwqdXsh+agHqjLOfJjOUAJrG54AV3lM3/nA=', ''); -- -- Dumping data for table `#__componentbuilder_admin_view` diff --git a/admin/sql/updates/mysql/2.6.17.sql b/admin/sql/updates/mysql/2.6.17.sql new file mode 100644 index 000000000..e83365825 --- /dev/null +++ b/admin/sql/updates/mysql/2.6.17.sql @@ -0,0 +1,5 @@ +ALTER TABLE `#__componentbuilder_joomla_component` ADD `dashboard` VARCHAR(64) NOT NULL DEFAULT '' AFTER `css_site`; + +ALTER TABLE `#__componentbuilder_joomla_component` ADD `dashboard_type` TINYINT(1) NOT NULL DEFAULT 1 AFTER `dashboard`; + +UPDATE `#__componentbuilder_joomla_component` SET `dashboard_type`=1; diff --git a/admin/views/admin_view/tmpl/edit.php b/admin/views/admin_view/tmpl/edit.php index 347952ce9..cd45a4936 100644 --- a/admin/views/admin_view/tmpl/edit.php +++ b/admin/views/admin_view/tmpl/edit.php @@ -219,382 +219,348 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder'); diff --git a/admin/views/layout/tmpl/edit.php b/admin/views/layout/tmpl/edit.php index 7233cd52a..60fb0627a 100644 --- a/admin/views/layout/tmpl/edit.php +++ b/admin/views/layout/tmpl/edit.php @@ -139,18 +139,18 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder'); diff --git a/admin/views/site_view/tmpl/edit.php b/admin/views/site_view/tmpl/edit.php index 2f3d422c8..0756f1c60 100644 --- a/admin/views/site_view/tmpl/edit.php +++ b/admin/views/site_view/tmpl/edit.php @@ -176,168 +176,168 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');