From e04db1b5b240bf7fe587e0264c1c2c4d9ddb6ce1 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Fri, 11 May 2018 06:08:14 +0200 Subject: [PATCH] Added the email field type to resolve gh-283. Fixed the CSS inclution error to resolve gh-278. Added the option to add sql_uninstall dump value to a component. Did some class formating on the compiler. --- README.md | 12 +- admin/README.txt | 12 +- admin/helpers/compiler.php | 2 +- admin/helpers/compiler/a_Get.php | 60 +- admin/helpers/compiler/b_Structure.php | 2 +- admin/helpers/compiler/c_Fields.php | 10 +- admin/helpers/compiler/e_Interpretation.php | 52 +- admin/helpers/compiler/f_Infusion.php | 22 +- .../en-GB/en-GB.com_componentbuilder.ini | 14 +- admin/layouts/fieldtype/fields_fullwidth.php | 2 +- .../joomla_component/mysql_fullwidth.php | 4 +- .../server/linked_components_fullwidth.php | 2 +- admin/models/fields/adminviewsreadonly.php | 35 +- admin/models/fields/joomlacomponents.php | 35 +- admin/models/fieldtype.php | 12 +- admin/models/forms/admin_view.js | 880 ++++++------- admin/models/forms/custom_admin_view.js | 336 ++--- admin/models/forms/custom_code.js | 76 +- admin/models/forms/dynamic_get.js | 1148 ++++++++--------- admin/models/forms/field.js | 430 +++--- admin/models/forms/help_document.js | 238 ++-- admin/models/forms/joomla_component.js | 531 ++++---- admin/models/forms/joomla_component.xml | 473 +++---- admin/models/forms/layout.js | 20 +- admin/models/forms/library.js | 186 +-- admin/models/forms/server.js | 542 ++++---- admin/models/forms/site_view.js | 330 ++--- admin/models/forms/template.js | 20 +- admin/models/joomla_component.php | 96 +- admin/models/joomla_components.php | 22 +- admin/models/server.php | 2 +- admin/sql/install.mysql.utf8.sql | 20 +- admin/sql/uninstall.mysql.utf8.sql | 1 + admin/sql/updates/mysql/2.7.9.sql | 3 + admin/views/admin_view/tmpl/edit.php | 344 ++--- admin/views/custom_admin_view/tmpl/edit.php | 100 +- admin/views/custom_code/tmpl/edit.php | 114 +- admin/views/dynamic_get/tmpl/edit.php | 326 ++--- admin/views/field/tmpl/edit.php | 132 +- admin/views/fieldtype/view.html.php | 2 +- admin/views/help_document/tmpl/edit.php | 54 +- admin/views/joomla_component/tmpl/edit.php | 359 +++--- admin/views/layout/tmpl/edit.php | 10 +- admin/views/library/tmpl/edit.php | 40 +- admin/views/server/tmpl/edit.php | 156 +-- admin/views/server/view.html.php | 2 +- admin/views/site_view/tmpl/edit.php | 110 +- admin/views/template/tmpl/edit.php | 10 +- componentbuilder.xml | 6 +- componentbuilder_update_server.xml | 17 + script.php | 10 +- 51 files changed, 3782 insertions(+), 3640 deletions(-) create mode 100644 admin/sql/updates/mysql/2.7.9.sql diff --git a/README.md b/README.md index 6df3c6bd7..d094258f1 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.7.9) 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.7.10) 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*: 5th May, 2018 -+ *Version*: 2.7.9 ++ *Last Build*: 11th May, 2018 ++ *Version*: 2.7.10 + *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*: **193874** -+ *Field count*: **1034** -+ *File count*: **1202** ++ *Line count*: **194639** ++ *Field count*: **1036** ++ *File count*: **1203** + *Folder count*: **193** > This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com). diff --git a/admin/README.txt b/admin/README.txt index 6df3c6bd7..d094258f1 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.7.9) 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.7.10) 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*: 5th May, 2018 -+ *Version*: 2.7.9 ++ *Last Build*: 11th May, 2018 ++ *Version*: 2.7.10 + *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*: **193874** -+ *Field count*: **1034** -+ *File count*: **1202** ++ *Line count*: **194639** ++ *Field count*: **1036** ++ *File count*: **1203** + *Folder count*: **193** > This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com). diff --git a/admin/helpers/compiler.php b/admin/helpers/compiler.php index 0aa5b18b2..1b372ba15 100644 --- a/admin/helpers/compiler.php +++ b/admin/helpers/compiler.php @@ -11,7 +11,7 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.6.x + @version 2.7.x @created 30th April, 2015 @package Component Builder @subpackage compiler.php diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php index 8b08bdfa6..be9e32bec 100644 --- a/admin/helpers/compiler/a_Get.php +++ b/admin/helpers/compiler/a_Get.php @@ -11,7 +11,7 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.6.x + @version 2.7.x @created 30th April, 2015 @package Component Builder @subpackage compiler.php @@ -947,7 +947,8 @@ class Get // build the admin_views settings $component->admin_views = array_map(function($array) { - $array = array_map(function($value) { + $array = array_map(function($value) + { if (!ComponentbuilderHelper::checkArray($value) && !ComponentbuilderHelper::checkObject($value) && strval($value) === strval(intval($value))) { return (int) $value; @@ -1213,6 +1214,12 @@ class Get $this->customScriptBuilder['sql']['component_sql'] = base64_decode($component->sql); } unset($component->sql); + // add_sql_uninstall + if ($component->add_sql_uninstall == 1) + { + $this->customScriptBuilder['sql_uninstall'] = base64_decode($component->sql_uninstall); + } + unset($component->sql_uninstall); // bom if (ComponentbuilderHelper::checkString($component->bom)) { @@ -1783,27 +1790,28 @@ class Get } } // activate alias builder - if (!isset($this->customAliasBuilder[$name_single]) && isset($view->alias_builder_type) && 2 == $view->alias_builder_type - && isset($view->alias_builder) && ComponentbuilderHelper::checkJson($view->alias_builder)) + if (!isset($this->customAliasBuilder[$name_single]) && isset($view->alias_builder_type) && 2 == $view->alias_builder_type && isset($view->alias_builder) && ComponentbuilderHelper::checkJson($view->alias_builder)) { // get the aliasFields $alias_fields = (array) json_decode($view->alias_builder, true); // get the active fields - $alias_fields = (array) array_filter($view->fields, function($field) use($alias_fields) { - // check if field is in view fields - if (in_array($field['field'], $alias_fields)) + $alias_fields = (array) array_filter($view->fields, function($field) use($alias_fields) { - return true; - } - return false; - }); + // check if field is in view fields + if (in_array($field['field'], $alias_fields)) + { + return true; + } + return false; + }); // check if all is well if (ComponentbuilderHelper::checkArray($alias_fields)) { // load the field names - $this->customAliasBuilder[$name_single] = (array) array_map(function ($field) use($name_list) { + $this->customAliasBuilder[$name_single] = (array) array_map(function ($field) use($name_list) + { return $this->getFieldName($field, $name_list); - },$alias_fields + }, $alias_fields ); } } @@ -2167,7 +2175,7 @@ class Get if (!in_array($validationRule, (array) $coreValidationRules)) { // get the class methods for this rule if it exists - if ($this->validationRules[$validationRule] = ComponentbuilderHelper::getVar('validation_rule', $validationRule, 'name','php')) + if ($this->validationRules[$validationRule] = ComponentbuilderHelper::getVar('validation_rule', $validationRule, 'name', 'php')) { // open and set the validation rule $this->validationRules[$validationRule] = $this->setDynamicValues(base64_decode($this->validationRules[$validationRule])); @@ -5497,13 +5505,13 @@ class Get // get targets to search for $langStringTargets = array_filter( $this->langStringTargets, function($get) use($string) + { + if (strpos($string, $get) !== false) { - if (strpos($string, $get) !== false) - { - return true; - } - return false; - }); + return true; + } + return false; + }); // check if we should continue if (ComponentbuilderHelper::checkArray($langStringTargets)) { @@ -5745,31 +5753,31 @@ class Get public function bcmath($type, $val1, $val2) { // build function name - $function = 'bc'.$type; + $function = 'bc' . $type; // use the bcmath function of available if (function_exists($function)) { return $function($val1, $val2); } // if function does not exist we use +-*/ operators (since it realy not that serious) - switch($type) + switch ($type) { // Multiply two numbers case 'mul': return round($val1 * $val2); - break; + break; // Divide of two numbers case 'div': return round($val1 / $val2); - break; + break; // Adding two numbers case 'add': return round($val1 + $val2); - break; + break; // Subtract one number from the other case 'add': return round($val1 - $val2); - break; + break; } return false; } diff --git a/admin/helpers/compiler/b_Structure.php b/admin/helpers/compiler/b_Structure.php index acc8df02a..b30c62375 100644 --- a/admin/helpers/compiler/b_Structure.php +++ b/admin/helpers/compiler/b_Structure.php @@ -11,7 +11,7 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.6.x + @version 2.7.x @created 30th April, 2015 @package Component Builder @subpackage compiler.php diff --git a/admin/helpers/compiler/c_Fields.php b/admin/helpers/compiler/c_Fields.php index f0eb83aac..70640673d 100644 --- a/admin/helpers/compiler/c_Fields.php +++ b/admin/helpers/compiler/c_Fields.php @@ -11,7 +11,7 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.6.x + @version 2.7.x @created 30th April, 2015 @package Component Builder @subpackage compiler.php @@ -2179,7 +2179,7 @@ class Fields extends Structure // dont load the button to repeatable $xmlValue = (string) ComponentbuilderHelper::safeString(ComponentbuilderHelper::getBetween($field['settings']->xml, 'button="', '"')); // add to custom values - $fieldAttributes['custom']['add_button'] = (ComponentbuilderHelper::checkString($xmlValue) || 1 == $xmlValue) ? $xmlValue: 'false'; + $fieldAttributes['custom']['add_button'] = (ComponentbuilderHelper::checkString($xmlValue) || 1 == $xmlValue) ? $xmlValue : 'false'; } elseif ($property['name'] === 'required' && $repeatable) { @@ -2829,7 +2829,7 @@ class Fields extends Structure if (isset($fieldData['add_button']) && ($fieldData['add_button'] === 'true' || 1 == $fieldData['add_button']) && isset($fieldData['view']) && isset($fieldData['views']) && ComponentbuilderHelper::checkString($fieldData['view']) && ComponentbuilderHelper::checkString($fieldData['views'])) - { + { // check that the component value is set if (!isset($fieldData['component']) || !ComponentbuilderHelper::checkString($fieldData['component'])) { @@ -2841,7 +2841,7 @@ class Fields extends Structure $fieldData['component'] = "com_" . $fieldData['component']; } // make sure the component is update if ### or [[[ component placeholder is used - if (strpos($fieldData['component'], '###') !== false || strpos($fieldData['component'], '[[[') !== false ) // should not be needed... but + if (strpos($fieldData['component'], '###') !== false || strpos($fieldData['component'], '[[[') !== false) // should not be needed... but { $fieldData['component'] = $this->setPlaceholders($fieldData['component'], $this->placeholders); } @@ -2923,7 +2923,7 @@ class Fields extends Structure $addButton[] = "\t\t\t}"; } $addButton[] = "\t\t\t\$user = JFactory::getUser();"; - $addButton[] = "\t\t\t//" . $this->setLine(__LINE__) . " only add if user allowed to create " . $fieldData['view']; + $addButton[] = "\t\t\t//" . $this->setLine(__LINE__) . " only add if user allowed to create " . $fieldData['view']; // check if the item has permissions. if ($coreLoad && isset($core['core.create']) && isset($this->permissionBuilder['global'][$core['core.create']]) && ComponentbuilderHelper::checkArray($this->permissionBuilder['global'][$core['core.create']]) && in_array($fieldData['view'], $this->permissionBuilder['global'][$core['core.create']])) { diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index ec001eee0..e93397217 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -11,7 +11,7 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.6.x + @version 2.7.x @created 30th April, 2015 @package Component Builder @subpackage compiler.php @@ -1270,7 +1270,7 @@ class Interpretation extends Fields $method[] = "\t\t\$lang = JFactory::getLanguage();"; $method[] = "\t\t\$extension = 'com_users';"; $method[] = "\t\t\$base_dir = JPATH_SITE;"; - $method[] = "\t\t\$language_tag = '".$this->langTag."';"; + $method[] = "\t\t\$language_tag = '" . $this->langTag . "';"; $method[] = "\t\t\$reload = true;"; $method[] = "\t\t\$lang->load(\$extension, \$base_dir, \$language_tag, \$reload);"; $method[] = "\t\t//" . $this->setLine(__LINE__) . " load the user regestration model"; @@ -1351,7 +1351,7 @@ class Interpretation extends Fields $method[] = "\t\t\$lang = JFactory::getLanguage();"; $method[] = "\t\t\$extension = 'com_users';"; $method[] = "\t\t\$base_dir = JPATH_ADMINISTRATOR;"; - $method[] = "\t\t\$language_tag = '".$this->langTag."';"; + $method[] = "\t\t\$language_tag = '" . $this->langTag . "';"; $method[] = "\t\t\$reload = true;"; $method[] = "\t\t\$lang->load(\$extension, \$base_dir, \$language_tag, \$reload);"; $method[] = "\t\t// load the user model"; @@ -5472,7 +5472,7 @@ class Interpretation extends Fields elseif (!$category && !$alias && ($title && count($titles) == 1 && !in_array('user', $titles) && !in_array('jobnumber', $titles))) // TODO [jobnumber] just for one project (not ideal) { $batchcopy[] = PHP_EOL . "\t\t\t//" . $this->setLine(__LINE__) . " Only for strings"; - $batchcopy[] = "\t\t\tif (" . $Helper . "::checkString(\$this->table->" . implode('', $titles). ") && !is_numeric(\$this->table->" . implode('', $titles) . "))"; + $batchcopy[] = "\t\t\tif (" . $Helper . "::checkString(\$this->table->" . implode('', $titles) . ") && !is_numeric(\$this->table->" . implode('', $titles) . "))"; $batchcopy[] = "\t\t\t{"; $batchcopy[] = "\t\t\t\t\$this->table->" . implode('', $titles) . " = \$this->generateUniqe('" . implode('', $titles) . "',\$this->table->" . implode('', $titles) . ");"; $batchcopy[] = "\t\t\t}"; @@ -5546,7 +5546,7 @@ class Interpretation extends Fields { $fixUniqe = array(); // only load this if these two items are set - if (array_key_exists($viewName_single, $this->aliasBuilder) && + if (array_key_exists($viewName_single, $this->aliasBuilder) && (array_key_exists($viewName_single, $this->titleBuilder) || isset($this->customAliasBuilder[$viewName_single]))) { // set needed defaults @@ -5572,7 +5572,7 @@ class Interpretation extends Fields $titles = array($this->titleBuilder[$viewName_single]); } // start building the fix - $fixUniqe[] = PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " Alter the " . implode(', ',$titles) . " for save as copy"; + $fixUniqe[] = PHP_EOL . "\t\t//" . $this->setLine(__LINE__) . " Alter the " . implode(', ', $titles) . " for save as copy"; $fixUniqe[] = "\t\tif (\$input->get('task') === 'save2copy')"; $fixUniqe[] = "\t\t{"; $fixUniqe[] = "\t\t\t\$origTable = clone \$this->getTable();"; @@ -5594,15 +5594,15 @@ class Interpretation extends Fields $fixUniqe[] = "\t\t\t{"; if ($setCategory && count($titles) == 1) { - $fixUniqe[] = "\t\t\t\tlist(" . implode('',$titleVars) . ", \$" . $alias . ") = \$this->generateNewTitle(\$data['" . $category . "'], \$data['" . $alias . "'], " . implode('',$titleData) . ");"; + $fixUniqe[] = "\t\t\t\tlist(" . implode('', $titleVars) . ", \$" . $alias . ") = \$this->generateNewTitle(\$data['" . $category . "'], \$data['" . $alias . "'], " . implode('', $titleData) . ");"; } elseif (count($titles) == 1) { - $fixUniqe[] = "\t\t\t\tlist(" . implode(', ',$titleVars) . ", \$" . $alias . ") = \$this->_generateNewTitle(\$data['" . $alias . "'], " . implode('',$titleData) . ");"; + $fixUniqe[] = "\t\t\t\tlist(" . implode(', ', $titleVars) . ", \$" . $alias . ") = \$this->_generateNewTitle(\$data['" . $alias . "'], " . implode('', $titleData) . ");"; } else { - $fixUniqe[] = "\t\t\t\tlist(" . implode(', ',$titleVars) . ", \$" . $alias . ") = \$this->_generateNewTitle(\$data['" . $alias . "'], array(" . implode(', ',$titleData) . "));"; + $fixUniqe[] = "\t\t\t\tlist(" . implode(', ', $titleVars) . ", \$" . $alias . ") = \$this->_generateNewTitle(\$data['" . $alias . "'], array(" . implode(', ', $titleData) . "));"; } $fixUniqe[] = implode("\n", $titleUpdate); $fixUniqe[] = "\t\t\t\t\$data['" . $alias . "'] = \$" . $alias . ";"; @@ -5627,7 +5627,7 @@ class Interpretation extends Fields $fixUniqe[] = "\t\t\t\t}"; $fixUniqe[] = "\t\t\t\telse"; $fixUniqe[] = "\t\t\t\t{"; - $fixUniqe[] = "\t\t\t\t\t\$data['" . $alias . "'] = JFilterOutput::stringURLSafe(". implode(' . " " . ', $titleData) .");"; + $fixUniqe[] = "\t\t\t\t\t\$data['" . $alias . "'] = JFilterOutput::stringURLSafe(" . implode(' . " " . ', $titleData) . ");"; $fixUniqe[] = "\t\t\t\t}"; $fixUniqe[] = PHP_EOL . "\t\t\t\t\$table = JTable::getInstance('" . $viewName_single . "', '" . $this->fileContentStatic['###component###'] . "Table');"; if ($setCategory && count($titles) == 1) @@ -5636,7 +5636,7 @@ class Interpretation extends Fields $fixUniqe[] = "\t\t\t\t{"; $fixUniqe[] = "\t\t\t\t\t\$msg = JText:" . ":_('COM_" . $this->fileContentStatic['###COMPONENT###'] . "_" . $VIEW . "_SAVE_WARNING');"; $fixUniqe[] = "\t\t\t\t}"; - $fixUniqe[] = PHP_EOL . "\t\t\t\tlist(" . implode('',$titleVars) . ", \$" . $alias . ") = \$this->generateNewTitle(\$data['" . $category . "'], \$data['" . $alias . "'], " . implode('',$titleData) . ");"; + $fixUniqe[] = PHP_EOL . "\t\t\t\tlist(" . implode('', $titleVars) . ", \$" . $alias . ") = \$this->generateNewTitle(\$data['" . $category . "'], \$data['" . $alias . "'], " . implode('', $titleData) . ");"; $fixUniqe[] = "\t\t\t\t\$data['" . $alias . "'] = \$" . $alias . ";"; } else @@ -5675,7 +5675,7 @@ class Interpretation extends Fields public function setGenerateNewTitle($viewName_single) { // if category is added to this view then do nothing - if (array_key_exists($viewName_single, $this->aliasBuilder) && + if (array_key_exists($viewName_single, $this->aliasBuilder) && (array_key_exists($viewName_single, $this->titleBuilder) || isset($this->customAliasBuilder[$viewName_single]))) { // get component name @@ -5698,7 +5698,7 @@ class Interpretation extends Fields $newFunction[] = PHP_EOL . "\t\twhile (\$table->load(array('alias' => \$alias)))"; $newFunction[] = "\t\t{"; $newFunction[] = "\t\t\t//" . $this->setLine(__LINE__) . " Check if this is an array of titles"; - $newFunction[] = "\t\t\tif (".$Component."Helper::checkArray(\$title))"; + $newFunction[] = "\t\t\tif (" . $Component . "Helper::checkArray(\$title))"; $newFunction[] = "\t\t\t{"; $newFunction[] = "\t\t\t\tforeach(\$title as \$nr => &\$_title)"; $newFunction[] = "\t\t\t\t{"; @@ -5713,7 +5713,7 @@ class Interpretation extends Fields $newFunction[] = "\t\t\t\$alias = JString::increment(\$alias, 'dash');"; $newFunction[] = "\t\t}"; $newFunction[] = "\t\t//" . $this->setLine(__LINE__) . " Check if this is an array of titles"; - $newFunction[] = "\t\tif (".$Component."Helper::checkArray(\$title))"; + $newFunction[] = "\t\tif (" . $Component . "Helper::checkArray(\$title))"; $newFunction[] = "\t\t{"; $newFunction[] = "\t\t\t\$title[] = \$alias;"; $newFunction[] = "\t\t\treturn \$title;"; @@ -5794,14 +5794,14 @@ class Interpretation extends Fields $newFunction[] = "\t{"; $newFunction[] = "\t\tif (empty(\$this->alias))"; $newFunction[] = "\t\t{"; - $newFunction[] = "\t\t\t\$this->alias = ".implode(".' '.",$titleData).';'; + $newFunction[] = "\t\t\t\$this->alias = " . implode(".' '.", $titleData) . ';'; $newFunction[] = "\t\t}"; - $newFunction[] = PHP_EOL ."\t\t\$this->alias = JApplication::stringURLSafe(\$this->alias);"; - $newFunction[] = PHP_EOL ."\t\tif (trim(str_replace('-', '', \$this->alias)) == '')"; + $newFunction[] = PHP_EOL . "\t\t\$this->alias = JApplication::stringURLSafe(\$this->alias);"; + $newFunction[] = PHP_EOL . "\t\tif (trim(str_replace('-', '', \$this->alias)) == '')"; $newFunction[] = "\t\t{"; $newFunction[] = "\t\t\t\$this->alias = JFactory::getDate()->format('Y-m-d-H-i-s');"; $newFunction[] = "\t\t}"; - $newFunction[] = PHP_EOL ."\t\treturn \$this->alias;"; + $newFunction[] = PHP_EOL . "\t\treturn \$this->alias;"; $newFunction[] = "\t}"; return implode(PHP_EOL, $newFunction); } @@ -6048,6 +6048,7 @@ class Interpretation extends Fields $placeholders = array('[[[component]]]' => $component, '[[[view]]]' => $for); $db .= $this->setPlaceholders($customSql, $placeholders) . PHP_EOL . PHP_EOL; } + unset($this->customScriptBuilder['sql']); } return $db; } @@ -6056,16 +6057,21 @@ class Interpretation extends Fields public function setUninstall() { + $db = ''; if (isset($this->queryBuilder) && ComponentbuilderHelper::checkArray($this->queryBuilder)) { - $bd = ''; foreach ($this->uninstallBuilder as $line) { - $bd .= $line . PHP_EOL; + $db .= $line . PHP_EOL; } - return $bd; } - return ''; + // add custom sql uninstall dump to the file + if (isset($this->customScriptBuilder['sql_uninstall']) && ComponentbuilderHelper::checkString($this->customScriptBuilder['sql_uninstall'])) + { + $db .= $this->setPlaceholders($this->customScriptBuilder['sql_uninstall'], $this->placeholders) . PHP_EOL; + unset($this->customScriptBuilder['sql_uninstall']); + } + return $db; } public function setLangAdmin() @@ -11924,7 +11930,7 @@ class Interpretation extends Fields { $keyTableNAme = $item['custom']['table']; } - $fix .= PHP_EOL . "\t" . $tab . "\t\t\t\$item->" . $item['name'] . " = " . $Component . "Helper::jsonToString(\$item->" . $item['name'] . ", ', ', '" . $keyTableNAme . "', '".$item['custom']['id']."', '".$item['custom']['text']."');"; + $fix .= PHP_EOL . "\t" . $tab . "\t\t\t\$item->" . $item['name'] . " = " . $Component . "Helper::jsonToString(\$item->" . $item['name'] . ", ', ', '" . $keyTableNAme . "', '" . $item['custom']['id'] . "', '" . $item['custom']['text'] . "');"; } else { diff --git a/admin/helpers/compiler/f_Infusion.php b/admin/helpers/compiler/f_Infusion.php index 5f900f1ed..1d2bda590 100644 --- a/admin/helpers/compiler/f_Infusion.php +++ b/admin/helpers/compiler/f_Infusion.php @@ -11,7 +11,7 @@ |_| /-------------------------------------------------------------------------------------------------------------------------------/ - @version 2.6.x + @version 2.7.x @created 30th April, 2015 @package Component Builder @subpackage compiler.php @@ -479,10 +479,10 @@ class Infusion extends Interpretation $this->fileContentDynamic[$viewName_list]['###JVIEWLISTCANDO###'] = $this->setJviewListCanDo($viewName_single, $viewName_list); // ###VIEWSCSS### <<>> - $this->fileContentDynamic[$viewName_list]['###VIEWSCSS###'] = $this->getCustomScriptBuilder('css_views', $viewName_list, '', null, true); + $this->fileContentDynamic[$viewName_list]['###VIEWSCSS###'] = $this->getCustomScriptBuilder('css_views', $viewName_single, '', null, true); // ###VIEWS_FOOTER_SCRIPT### <<>> - $scriptNote = PHP_EOL . '//' . $this->setLine(__LINE__) . ' ' . $viewName_list.' footer script'; + $scriptNote = PHP_EOL . '//' . $this->setLine(__LINE__) . ' ' . $viewName_list . ' footer script'; if ($footerScript = $this->getCustomScriptBuilder('views_footer', $viewName_single, '', $scriptNote, true, false, PHP_EOL)) { // only minfy if no php is added to the footer script @@ -765,7 +765,7 @@ class Infusion extends Interpretation // set the module $this->fileContentDynamic['ajax']['###AJAX_SITE_MODEL_METHODS###'] = $this->setAjaxModelMethods('site'); } - + // build the validation rules if (isset($this->validationRules) && ComponentbuilderHelper::checkArray($this->validationRules)) { @@ -775,9 +775,9 @@ class Infusion extends Interpretation $target = array('admin' => 'a_rule_zi'); $this->buildDynamique($target, 'rule', $rule); // set the JFormRule Name - $this->fileContentDynamic['a_rule_zi_'.$rule]['###Name###'] = ucfirst($rule); + $this->fileContentDynamic['a_rule_zi_' . $rule]['###Name###'] = ucfirst($rule); // set the JFormRule PHP - $this->fileContentDynamic['a_rule_zi_'.$rule]['###VALIDATION_RULE_METHODS###'] = PHP_EOL . $_php; + $this->fileContentDynamic['a_rule_zi_' . $rule]['###VALIDATION_RULE_METHODS###'] = PHP_EOL . $_php; } } @@ -1135,12 +1135,12 @@ class Infusion extends Interpretation if ($percentage < $this->percentageLanguageAdd) { // dont add - $this->langNot[$area . ' ' . $tag] = '' . $mainLangLoader[$area] . '(total '.$this->langTag.' strings) only ' . $langStringNr . '' . $stringNAme . ' = ' . $percentage; + $this->langNot[$area . ' ' . $tag] = '' . $mainLangLoader[$area] . '(total ' . $this->langTag . ' strings) only ' . $langStringNr . '' . $stringNAme . ' = ' . $percentage; continue; } } // show if it was added as well - $this->langSet[$area . ' ' . $tag] = '' . $mainLangLoader[$area] . '(total '.$this->langTag.' strings) and ' . $langStringNr . '' . $stringNAme . ' = ' . $percentage; + $this->langSet[$area . ' ' . $tag] = '' . $mainLangLoader[$area] . '(total ' . $this->langTag . ' strings) and ' . $langStringNr . '' . $stringNAme . ' = ' . $percentage; } // set naming convention $p = 'admin'; @@ -1172,13 +1172,14 @@ class Infusion extends Interpretation // count the file created $this->fileCount++; // add content to it - $lang = array_map(function ($langstring, $placeholder) { + $lang = array_map(function ($langstring, $placeholder) + { return $placeholder . '="' . $langstring . '"'; }, $languageStrings, array_keys($languageStrings)); // add to language file $this->writeFile($path . '/' . $fileName, implode(PHP_EOL, $lang)); // set the line counter - $this->lineCount = $this->lineCount + count((array)$lang); + $this->lineCount = $this->lineCount + count((array) $lang); // build xml strings if (!isset($langXML[$p])) { @@ -1210,4 +1211,5 @@ class Infusion extends Interpretation } } } + } diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini index ab619d877..b73c76453 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini @@ -347,7 +347,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_POSTSAVEHOOK_LABEL="Add PHP (postSaveHoo COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_SAVE="Add Php Save" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_SAVE_LABEL="Add PHP (save Method - after data modeling)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_SQL="Add Sql" -COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_SQL_LABEL="Add MySQL (to view table)" +COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_SQL_LABEL="Add MySQL - (Install)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADMINVIEW="Adminview" COM_COMPONENTBUILDER_ADMIN_VIEW_ADMINVIEW_DESCRIPTION="Select an admin view" COM_COMPONENTBUILDER_ADMIN_VIEW_ADMINVIEW_LABEL="View" @@ -810,7 +810,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_SOURCE_LABEL="Select MySql Source" COM_COMPONENTBUILDER_ADMIN_VIEW_SQL="Sql" COM_COMPONENTBUILDER_ADMIN_VIEW_SQL_DESCRIPTION="Add your MySQL here!" COM_COMPONENTBUILDER_ADMIN_VIEW_SQL_HINT="// Add MySQL Table Dump Here" -COM_COMPONENTBUILDER_ADMIN_VIEW_SQL_LABEL="MySQL" +COM_COMPONENTBUILDER_ADMIN_VIEW_SQL_LABEL="MySQL - (Install)" COM_COMPONENTBUILDER_ADMIN_VIEW_SQUARE="Square" COM_COMPONENTBUILDER_ADMIN_VIEW_STACK="Stack" COM_COMPONENTBUILDER_ADMIN_VIEW_STAR_TWO="Star 2" @@ -4377,7 +4377,9 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SALES_SERVER_LABEL="Add Sales Server" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SITE_EVENT="Add Site Event" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SITE_EVENT_LABEL="Add Global Site Event" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SQL="Add Sql" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SQL_LABEL="Add MySQL (to view table)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SQL_LABEL="Add MySQL - (Install)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SQL_UNINSTALL="Add Sql Uninstall" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SQL_UNINSTALL_LABEL="Add MySQL - (Uninstall)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UIKIT_VTHREE="Add Uikit v3" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UIKIT_VTWO="Add Uikit v2" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UPDATE_SERVER="Add Update Server" @@ -4684,7 +4686,11 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SITE_VIEWS="Site Views" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL="Sql" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_DESCRIPTION="Add your MySQL here!" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_HINT="// Add MySQL Table Dump Here" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_LABEL="MySQL" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_LABEL="MySQL - (Install)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_UNINSTALL="Sql Uninstall" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_UNINSTALL_DESCRIPTION="Add your MySQL here for uninstall!" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_UNINSTALL_HINT="// Add MySQL to uninstall Here" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_UNINSTALL_LABEL="MySQL - (Uninstall)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_STATUS="Status" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SYSTEM_NAME="System Name" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SYSTEM_NAME_DESCRIPTION="Used only in the system." diff --git a/admin/layouts/fieldtype/fields_fullwidth.php b/admin/layouts/fieldtype/fields_fullwidth.php index 756a78bda..813b39b81 100644 --- a/admin/layouts/fieldtype/fields_fullwidth.php +++ b/admin/layouts/fieldtype/fields_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->wacfields; +$items = $displayData->wadfields; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit"; diff --git a/admin/layouts/joomla_component/mysql_fullwidth.php b/admin/layouts/joomla_component/mysql_fullwidth.php index 3f5df3367..36d8d0ae8 100644 --- a/admin/layouts/joomla_component/mysql_fullwidth.php +++ b/admin/layouts/joomla_component/mysql_fullwidth.php @@ -31,7 +31,9 @@ $form = $displayData->getForm(); $fields = $displayData->get('fields') ?: array( 'add_sql', - 'sql' + 'sql', + 'add_sql_uninstall', + 'sql_uninstall' ); ?> diff --git a/admin/layouts/server/linked_components_fullwidth.php b/admin/layouts/server/linked_components_fullwidth.php index 24b4f63f1..bc26a1ad4 100644 --- a/admin/layouts/server/linked_components_fullwidth.php +++ b/admin/layouts/server/linked_components_fullwidth.php @@ -28,7 +28,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->wamlinked_components; +$items = $displayData->wanlinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit"; diff --git a/admin/models/fields/adminviewsreadonly.php b/admin/models/fields/adminviewsreadonly.php index e76c84fa1..e213acbd4 100644 --- a/admin/models/fields/adminviewsreadonly.php +++ b/admin/models/fields/adminviewsreadonly.php @@ -49,22 +49,23 @@ class JFormFieldAdminviewsreadonly extends JFormFieldList */ public function getOptions() { - $db = JFactory::getDBO(); - $query = $db->getQuery(true); - $query->select($db->quoteName(array('a.id','a.system_name'),array('id','admin_view_system_name'))); - $query->from($db->quoteName('#__componentbuilder_admin_view', 'a')); - $query->order('a.system_name ASC'); - $db->setQuery((string)$query); - $items = $db->loadObjectList(); - $options = array(); - if ($items) - { - $options[] = JHtml::_('select.option', '', 'Select an option'); - foreach($items as $item) - { - $options[] = JHtml::_('select.option', $item->id, $item->admin_view_system_name); - } - } - return $options; + $db = JFactory::getDBO(); +$query = $db->getQuery(true); +$query->select($db->quoteName(array('a.id','a.system_name'),array('id','admin_view_system_name'))); +$query->from($db->quoteName('#__componentbuilder_admin_view', 'a')); +$query->order('a.system_name ASC'); +$db->setQuery((string)$query); +$items = $db->loadObjectList(); +$options = array(); +if ($items) +{ + $options[] = JHtml::_('select.option', '', 'Select an option'); + foreach($items as $item) + { + $options[] = JHtml::_('select.option', $item->id, $item->admin_view_system_name); + } +} + +return $options; } } diff --git a/admin/models/fields/joomlacomponents.php b/admin/models/fields/joomlacomponents.php index 4a0ccdaee..b6a467699 100644 --- a/admin/models/fields/joomlacomponents.php +++ b/admin/models/fields/joomlacomponents.php @@ -49,22 +49,23 @@ class JFormFieldJoomlacomponents extends JFormFieldList */ public function getOptions() { - $db = JFactory::getDBO(); - $query = $db->getQuery(true); - $query->select($db->quoteName(array('a.id','a.system_name'),array('id','joomla_component_system_name'))); - $query->from($db->quoteName('#__componentbuilder_joomla_component', 'a')); - $query->order('a.system_name ASC'); - $db->setQuery((string)$query); - $items = $db->loadObjectList(); - $options = array(); - if ($items) - { - $options[] = JHtml::_('select.option', '', 'Select an option'); - foreach($items as $item) - { - $options[] = JHtml::_('select.option', $item->id, $item->joomla_component_system_name); - } - } - return $options; + $db = JFactory::getDBO(); +$query = $db->getQuery(true); +$query->select($db->quoteName(array('a.id','a.system_name'),array('id','joomla_component_system_name'))); +$query->from($db->quoteName('#__componentbuilder_joomla_component', 'a')); +$query->order('a.system_name ASC'); +$db->setQuery((string)$query); +$items = $db->loadObjectList(); +$options = array(); +if ($items) +{ + $options[] = JHtml::_('select.option', '', 'Select an option'); + foreach($items as $item) + { + $options[] = JHtml::_('select.option', $item->id, $item->joomla_component_system_name); + } +} + +return $options; } } diff --git a/admin/models/fieldtype.php b/admin/models/fieldtype.php index 481f23eff..044171840 100644 --- a/admin/models/fieldtype.php +++ b/admin/models/fieldtype.php @@ -139,7 +139,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getWacfields() + public function getWadfields() { // Get the user object. $user = JFactory::getUser(); @@ -223,13 +223,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin foreach ($items as $nr => &$item) { // convert datatype - $item->datatype = $this->selectionTranslationWacfields($item->datatype, 'datatype'); + $item->datatype = $this->selectionTranslationWadfields($item->datatype, 'datatype'); // convert indexes - $item->indexes = $this->selectionTranslationWacfields($item->indexes, 'indexes'); + $item->indexes = $this->selectionTranslationWadfields($item->indexes, 'indexes'); // convert null_switch - $item->null_switch = $this->selectionTranslationWacfields($item->null_switch, 'null_switch'); + $item->null_switch = $this->selectionTranslationWadfields($item->null_switch, 'null_switch'); // convert store - $item->store = $this->selectionTranslationWacfields($item->store, 'store'); + $item->store = $this->selectionTranslationWadfields($item->store, 'store'); } } @@ -243,7 +243,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return translatable string */ - public function selectionTranslationWacfields($value,$name) + public function selectionTranslationWadfields($value,$name) { // Array of datatype language strings if ($name === 'datatype') diff --git a/admin/models/forms/admin_view.js b/admin/models/forms/admin_view.js index d43e0bae6..76e542a68 100644 --- a/admin/models/forms/admin_view.js +++ b/admin/models/forms/admin_view.js @@ -23,7 +23,6 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvvwzvwn_required = false; jform_vvvvvxavwo_required = false; jform_vvvvvxbvwp_required = false; jform_vvvvvxcvwq_required = false; @@ -47,309 +46,310 @@ jform_vvvvvxtvxh_required = false; jform_vvvvvxuvxi_required = false; jform_vvvvvxvvxj_required = false; jform_vvvvvxwvxk_required = false; -jform_vvvvvyavxl_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_vvvvvycvxs_required = false; -jform_vvvvvycvxt_required = false; -jform_vvvvvycvxu_required = false; -jform_vvvvvycvxv_required = false; +jform_vvvvvxxvxl_required = false; +jform_vvvvvybvxm_required = false; +jform_vvvvvybvxn_required = false; +jform_vvvvvybvxo_required = false; +jform_vvvvvybvxp_required = false; +jform_vvvvvybvxq_required = false; +jform_vvvvvybvxr_required = false; +jform_vvvvvybvxs_required = false; +jform_vvvvvydvxt_required = false; +jform_vvvvvydvxu_required = false; +jform_vvvvvydvxv_required = false; +jform_vvvvvydvxw_required = false; // Initial Script jQuery(document).ready(function() { - var add_css_view_vvvvvwz = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvvwz(add_css_view_vvvvvwz); + var add_css_view_vvvvvxa = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvvxa(add_css_view_vvvvvxa); - var add_css_views_vvvvvxa = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvvxa(add_css_views_vvvvvxa); + var add_css_views_vvvvvxb = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvvxb(add_css_views_vvvvvxb); - 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_view_file_vvvvvxc = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val(); + vvvvvxc(add_javascript_view_file_vvvvvxc); - 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_views_file_vvvvvxd = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val(); + vvvvvxd(add_javascript_views_file_vvvvvxd); - 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_view_footer_vvvvvxe = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvvxe(add_javascript_view_footer_vvvvvxe); - 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_javascript_views_footer_vvvvvxf = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvvxf(add_javascript_views_footer_vvvvvxf); - var add_php_ajax_vvvvvxf = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvxf(add_php_ajax_vvvvvxf); + var add_php_ajax_vvvvvxg = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvxg(add_php_ajax_vvvvvxg); - var add_php_getitem_vvvvvxg = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); - vvvvvxg(add_php_getitem_vvvvvxg); + var add_php_getitem_vvvvvxh = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); + vvvvvxh(add_php_getitem_vvvvvxh); - var add_php_getitems_vvvvvxh = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); - vvvvvxh(add_php_getitems_vvvvvxh); + var add_php_getitems_vvvvvxi = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); + vvvvvxi(add_php_getitems_vvvvvxi); - 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_getitems_after_all_vvvvvxj = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val(); + vvvvvxj(add_php_getitems_after_all_vvvvvxj); - var add_php_getlistquery_vvvvvxj = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); - vvvvvxj(add_php_getlistquery_vvvvvxj); + var add_php_getlistquery_vvvvvxk = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); + vvvvvxk(add_php_getlistquery_vvvvvxk); - 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_before_save_vvvvvxl = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); + vvvvvxl(add_php_before_save_vvvvvxl); - var add_php_save_vvvvvxl = jQuery("#jform_add_php_save input[type='radio']:checked").val(); - vvvvvxl(add_php_save_vvvvvxl); + var add_php_save_vvvvvxm = jQuery("#jform_add_php_save input[type='radio']:checked").val(); + vvvvvxm(add_php_save_vvvvvxm); - var add_php_postsavehook_vvvvvxm = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); - vvvvvxm(add_php_postsavehook_vvvvvxm); + var add_php_postsavehook_vvvvvxn = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); + vvvvvxn(add_php_postsavehook_vvvvvxn); - var add_php_allowedit_vvvvvxn = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); - vvvvvxn(add_php_allowedit_vvvvvxn); + var add_php_allowedit_vvvvvxo = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); + vvvvvxo(add_php_allowedit_vvvvvxo); - var add_php_batchcopy_vvvvvxo = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); - vvvvvxo(add_php_batchcopy_vvvvvxo); + var add_php_batchcopy_vvvvvxp = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); + vvvvvxp(add_php_batchcopy_vvvvvxp); - var add_php_batchmove_vvvvvxp = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); - vvvvvxp(add_php_batchmove_vvvvvxp); + var add_php_batchmove_vvvvvxq = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); + vvvvvxq(add_php_batchmove_vvvvvxq); - 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_before_publish_vvvvvxr = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); + vvvvvxr(add_php_before_publish_vvvvvxr); - 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_after_publish_vvvvvxs = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); + vvvvvxs(add_php_after_publish_vvvvvxs); - 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_before_delete_vvvvvxt = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); + vvvvvxt(add_php_before_delete_vvvvvxt); - 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_after_delete_vvvvvxu = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); + vvvvvxu(add_php_after_delete_vvvvvxu); - var add_php_document_vvvvvxu = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvxu(add_php_document_vvvvvxu); + var add_php_document_vvvvvxv = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvxv(add_php_document_vvvvvxv); - 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); + vvvvvxw(add_sql_vvvvvxw); - 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 source_vvvvvxx = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxx = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxx(source_vvvvvxx,add_sql_vvvvvxx); - var add_custom_import_vvvvvya = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvya(add_custom_import_vvvvvya); + var source_vvvvvxz = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxz = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxz(source_vvvvvxz,add_sql_vvvvvxz); 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); + var add_custom_import_vvvvvyc = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvyc(add_custom_import_vvvvvyc); + + var add_custom_button_vvvvvyd = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvyd(add_custom_button_vvvvvyd); }); -// the vvvvvwz function -function vvvvvwz(add_css_view_vvvvvwz) +// the vvvvvxa function +function vvvvvxa(add_css_view_vvvvvxa) { // set the function logic - if (add_css_view_vvvvvwz == 1) + if (add_css_view_vvvvvxa == 1) { jQuery('#jform_css_view').closest('.control-group').show(); - if (jform_vvvvvwzvwn_required) + if (jform_vvvvvxavwo_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_vvvvvwzvwn_required = false; - } - - } - else - { - jQuery('#jform_css_view').closest('.control-group').hide(); - if (!jform_vvvvvwzvwn_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_vvvvvwzvwn_required = true; - } - } -} - -// the vvvvvxa function -function vvvvvxa(add_css_views_vvvvvxa) -{ - // set the function logic - if (add_css_views_vvvvvxa == 1) - { - jQuery('#jform_css_views').closest('.control-group').show(); - if (jform_vvvvvxavwo_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_vvvvvxavwo_required = false; } } else { - jQuery('#jform_css_views').closest('.control-group').hide(); + jQuery('#jform_css_view').closest('.control-group').hide(); if (!jform_vvvvvxavwo_required) { - updateFieldRequired('css_views',1); - jQuery('#jform_css_views').removeAttr('required'); - jQuery('#jform_css_views').removeAttr('aria-required'); - jQuery('#jform_css_views').removeClass('required'); + updateFieldRequired('css_view',1); + jQuery('#jform_css_view').removeAttr('required'); + jQuery('#jform_css_view').removeAttr('aria-required'); + jQuery('#jform_css_view').removeClass('required'); jform_vvvvvxavwo_required = true; } } } // the vvvvvxb function -function vvvvvxb(add_javascript_view_file_vvvvvxb) +function vvvvvxb(add_css_views_vvvvvxb) { // set the function logic - if (add_javascript_view_file_vvvvvxb == 1) + if (add_css_views_vvvvvxb == 1) { - jQuery('#jform_javascript_view_file').closest('.control-group').show(); + jQuery('#jform_css_views').closest('.control-group').show(); if (jform_vvvvvxbvwp_required) { - updateFieldRequired('javascript_view_file',0); - jQuery('#jform_javascript_view_file').prop('required','required'); - jQuery('#jform_javascript_view_file').attr('aria-required',true); - jQuery('#jform_javascript_view_file').addClass('required'); + updateFieldRequired('css_views',0); + jQuery('#jform_css_views').prop('required','required'); + jQuery('#jform_css_views').attr('aria-required',true); + jQuery('#jform_css_views').addClass('required'); jform_vvvvvxbvwp_required = false; } } else { - jQuery('#jform_javascript_view_file').closest('.control-group').hide(); + jQuery('#jform_css_views').closest('.control-group').hide(); if (!jform_vvvvvxbvwp_required) { - updateFieldRequired('javascript_view_file',1); - jQuery('#jform_javascript_view_file').removeAttr('required'); - jQuery('#jform_javascript_view_file').removeAttr('aria-required'); - jQuery('#jform_javascript_view_file').removeClass('required'); + updateFieldRequired('css_views',1); + jQuery('#jform_css_views').removeAttr('required'); + jQuery('#jform_css_views').removeAttr('aria-required'); + jQuery('#jform_css_views').removeClass('required'); jform_vvvvvxbvwp_required = true; } } } // the vvvvvxc function -function vvvvvxc(add_javascript_views_file_vvvvvxc) +function vvvvvxc(add_javascript_view_file_vvvvvxc) { // set the function logic - if (add_javascript_views_file_vvvvvxc == 1) + if (add_javascript_view_file_vvvvvxc == 1) { - jQuery('#jform_javascript_views_file').closest('.control-group').show(); + jQuery('#jform_javascript_view_file').closest('.control-group').show(); if (jform_vvvvvxcvwq_required) { - updateFieldRequired('javascript_views_file',0); - jQuery('#jform_javascript_views_file').prop('required','required'); - jQuery('#jform_javascript_views_file').attr('aria-required',true); - jQuery('#jform_javascript_views_file').addClass('required'); + updateFieldRequired('javascript_view_file',0); + jQuery('#jform_javascript_view_file').prop('required','required'); + jQuery('#jform_javascript_view_file').attr('aria-required',true); + jQuery('#jform_javascript_view_file').addClass('required'); jform_vvvvvxcvwq_required = false; } } else { - jQuery('#jform_javascript_views_file').closest('.control-group').hide(); + jQuery('#jform_javascript_view_file').closest('.control-group').hide(); if (!jform_vvvvvxcvwq_required) { - updateFieldRequired('javascript_views_file',1); - jQuery('#jform_javascript_views_file').removeAttr('required'); - jQuery('#jform_javascript_views_file').removeAttr('aria-required'); - jQuery('#jform_javascript_views_file').removeClass('required'); + updateFieldRequired('javascript_view_file',1); + jQuery('#jform_javascript_view_file').removeAttr('required'); + jQuery('#jform_javascript_view_file').removeAttr('aria-required'); + jQuery('#jform_javascript_view_file').removeClass('required'); jform_vvvvvxcvwq_required = true; } } } // the vvvvvxd function -function vvvvvxd(add_javascript_view_footer_vvvvvxd) +function vvvvvxd(add_javascript_views_file_vvvvvxd) { // set the function logic - if (add_javascript_view_footer_vvvvvxd == 1) + if (add_javascript_views_file_vvvvvxd == 1) { - jQuery('#jform_javascript_view_footer').closest('.control-group').show(); + jQuery('#jform_javascript_views_file').closest('.control-group').show(); if (jform_vvvvvxdvwr_required) { - updateFieldRequired('javascript_view_footer',0); - jQuery('#jform_javascript_view_footer').prop('required','required'); - jQuery('#jform_javascript_view_footer').attr('aria-required',true); - jQuery('#jform_javascript_view_footer').addClass('required'); + updateFieldRequired('javascript_views_file',0); + jQuery('#jform_javascript_views_file').prop('required','required'); + jQuery('#jform_javascript_views_file').attr('aria-required',true); + jQuery('#jform_javascript_views_file').addClass('required'); jform_vvvvvxdvwr_required = false; } } else { - jQuery('#jform_javascript_view_footer').closest('.control-group').hide(); + jQuery('#jform_javascript_views_file').closest('.control-group').hide(); if (!jform_vvvvvxdvwr_required) { - updateFieldRequired('javascript_view_footer',1); - jQuery('#jform_javascript_view_footer').removeAttr('required'); - jQuery('#jform_javascript_view_footer').removeAttr('aria-required'); - jQuery('#jform_javascript_view_footer').removeClass('required'); + updateFieldRequired('javascript_views_file',1); + jQuery('#jform_javascript_views_file').removeAttr('required'); + jQuery('#jform_javascript_views_file').removeAttr('aria-required'); + jQuery('#jform_javascript_views_file').removeClass('required'); jform_vvvvvxdvwr_required = true; } } } // the vvvvvxe function -function vvvvvxe(add_javascript_views_footer_vvvvvxe) +function vvvvvxe(add_javascript_view_footer_vvvvvxe) { // set the function logic - if (add_javascript_views_footer_vvvvvxe == 1) + if (add_javascript_view_footer_vvvvvxe == 1) { - jQuery('#jform_javascript_views_footer').closest('.control-group').show(); + jQuery('#jform_javascript_view_footer').closest('.control-group').show(); if (jform_vvvvvxevws_required) { - updateFieldRequired('javascript_views_footer',0); - jQuery('#jform_javascript_views_footer').prop('required','required'); - jQuery('#jform_javascript_views_footer').attr('aria-required',true); - jQuery('#jform_javascript_views_footer').addClass('required'); + updateFieldRequired('javascript_view_footer',0); + jQuery('#jform_javascript_view_footer').prop('required','required'); + jQuery('#jform_javascript_view_footer').attr('aria-required',true); + jQuery('#jform_javascript_view_footer').addClass('required'); jform_vvvvvxevws_required = false; } } else { - jQuery('#jform_javascript_views_footer').closest('.control-group').hide(); + jQuery('#jform_javascript_view_footer').closest('.control-group').hide(); if (!jform_vvvvvxevws_required) { - updateFieldRequired('javascript_views_footer',1); - jQuery('#jform_javascript_views_footer').removeAttr('required'); - jQuery('#jform_javascript_views_footer').removeAttr('aria-required'); - jQuery('#jform_javascript_views_footer').removeClass('required'); + updateFieldRequired('javascript_view_footer',1); + jQuery('#jform_javascript_view_footer').removeAttr('required'); + jQuery('#jform_javascript_view_footer').removeAttr('aria-required'); + jQuery('#jform_javascript_view_footer').removeClass('required'); jform_vvvvvxevws_required = true; } } } // the vvvvvxf function -function vvvvvxf(add_php_ajax_vvvvvxf) +function vvvvvxf(add_javascript_views_footer_vvvvvxf) { // set the function logic - if (add_php_ajax_vvvvvxf == 1) + if (add_javascript_views_footer_vvvvvxf == 1) + { + jQuery('#jform_javascript_views_footer').closest('.control-group').show(); + if (jform_vvvvvxfvwt_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_vvvvvxfvwt_required = false; + } + + } + else + { + jQuery('#jform_javascript_views_footer').closest('.control-group').hide(); + if (!jform_vvvvvxfvwt_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_vvvvvxfvwt_required = true; + } + } +} + +// the vvvvvxg function +function vvvvvxg(add_php_ajax_vvvvvxg) +{ + // set the function logic + if (add_php_ajax_vvvvvxg == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod').closest('.control-group').show(); - if (jform_vvvvvxfvwt_required) + if (jform_vvvvvxgvwu_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_vvvvvxfvwt_required = false; + jform_vvvvvxgvwu_required = false; } } @@ -357,549 +357,549 @@ function vvvvvxf(add_php_ajax_vvvvvxf) { jQuery('#jform_ajax_input-lbl').closest('.control-group').hide(); jQuery('#jform_php_ajaxmethod').closest('.control-group').hide(); - if (!jform_vvvvvxfvwt_required) + if (!jform_vvvvvxgvwu_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_vvvvvxfvwt_required = true; - } - } -} - -// the vvvvvxg function -function vvvvvxg(add_php_getitem_vvvvvxg) -{ - // set the function logic - if (add_php_getitem_vvvvvxg == 1) - { - jQuery('#jform_php_getitem').closest('.control-group').show(); - if (jform_vvvvvxgvwu_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_vvvvvxgvwu_required = false; - } - - } - else - { - jQuery('#jform_php_getitem').closest('.control-group').hide(); - if (!jform_vvvvvxgvwu_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_vvvvvxgvwu_required = true; } } } // the vvvvvxh function -function vvvvvxh(add_php_getitems_vvvvvxh) +function vvvvvxh(add_php_getitem_vvvvvxh) { // set the function logic - if (add_php_getitems_vvvvvxh == 1) + if (add_php_getitem_vvvvvxh == 1) { - jQuery('#jform_php_getitems').closest('.control-group').show(); + jQuery('#jform_php_getitem').closest('.control-group').show(); if (jform_vvvvvxhvwv_required) { - updateFieldRequired('php_getitems',0); - jQuery('#jform_php_getitems').prop('required','required'); - jQuery('#jform_php_getitems').attr('aria-required',true); - jQuery('#jform_php_getitems').addClass('required'); + updateFieldRequired('php_getitem',0); + jQuery('#jform_php_getitem').prop('required','required'); + jQuery('#jform_php_getitem').attr('aria-required',true); + jQuery('#jform_php_getitem').addClass('required'); jform_vvvvvxhvwv_required = false; } } else { - jQuery('#jform_php_getitems').closest('.control-group').hide(); + jQuery('#jform_php_getitem').closest('.control-group').hide(); if (!jform_vvvvvxhvwv_required) { - updateFieldRequired('php_getitems',1); - jQuery('#jform_php_getitems').removeAttr('required'); - jQuery('#jform_php_getitems').removeAttr('aria-required'); - jQuery('#jform_php_getitems').removeClass('required'); + updateFieldRequired('php_getitem',1); + jQuery('#jform_php_getitem').removeAttr('required'); + jQuery('#jform_php_getitem').removeAttr('aria-required'); + jQuery('#jform_php_getitem').removeClass('required'); jform_vvvvvxhvwv_required = true; } } } // the vvvvvxi function -function vvvvvxi(add_php_getitems_after_all_vvvvvxi) +function vvvvvxi(add_php_getitems_vvvvvxi) { // set the function logic - if (add_php_getitems_after_all_vvvvvxi == 1) + if (add_php_getitems_vvvvvxi == 1) { - jQuery('#jform_php_getitems_after_all').closest('.control-group').show(); + jQuery('#jform_php_getitems').closest('.control-group').show(); if (jform_vvvvvxivww_required) { - updateFieldRequired('php_getitems_after_all',0); - jQuery('#jform_php_getitems_after_all').prop('required','required'); - jQuery('#jform_php_getitems_after_all').attr('aria-required',true); - jQuery('#jform_php_getitems_after_all').addClass('required'); + updateFieldRequired('php_getitems',0); + jQuery('#jform_php_getitems').prop('required','required'); + jQuery('#jform_php_getitems').attr('aria-required',true); + jQuery('#jform_php_getitems').addClass('required'); jform_vvvvvxivww_required = false; } } else { - jQuery('#jform_php_getitems_after_all').closest('.control-group').hide(); + jQuery('#jform_php_getitems').closest('.control-group').hide(); if (!jform_vvvvvxivww_required) { - updateFieldRequired('php_getitems_after_all',1); - jQuery('#jform_php_getitems_after_all').removeAttr('required'); - jQuery('#jform_php_getitems_after_all').removeAttr('aria-required'); - jQuery('#jform_php_getitems_after_all').removeClass('required'); + updateFieldRequired('php_getitems',1); + jQuery('#jform_php_getitems').removeAttr('required'); + jQuery('#jform_php_getitems').removeAttr('aria-required'); + jQuery('#jform_php_getitems').removeClass('required'); jform_vvvvvxivww_required = true; } } } // the vvvvvxj function -function vvvvvxj(add_php_getlistquery_vvvvvxj) +function vvvvvxj(add_php_getitems_after_all_vvvvvxj) { // set the function logic - if (add_php_getlistquery_vvvvvxj == 1) + if (add_php_getitems_after_all_vvvvvxj == 1) { - jQuery('#jform_php_getlistquery').closest('.control-group').show(); + jQuery('#jform_php_getitems_after_all').closest('.control-group').show(); if (jform_vvvvvxjvwx_required) { - updateFieldRequired('php_getlistquery',0); - jQuery('#jform_php_getlistquery').prop('required','required'); - jQuery('#jform_php_getlistquery').attr('aria-required',true); - jQuery('#jform_php_getlistquery').addClass('required'); + updateFieldRequired('php_getitems_after_all',0); + jQuery('#jform_php_getitems_after_all').prop('required','required'); + jQuery('#jform_php_getitems_after_all').attr('aria-required',true); + jQuery('#jform_php_getitems_after_all').addClass('required'); jform_vvvvvxjvwx_required = false; } } else { - jQuery('#jform_php_getlistquery').closest('.control-group').hide(); + jQuery('#jform_php_getitems_after_all').closest('.control-group').hide(); if (!jform_vvvvvxjvwx_required) { - updateFieldRequired('php_getlistquery',1); - jQuery('#jform_php_getlistquery').removeAttr('required'); - jQuery('#jform_php_getlistquery').removeAttr('aria-required'); - jQuery('#jform_php_getlistquery').removeClass('required'); + updateFieldRequired('php_getitems_after_all',1); + jQuery('#jform_php_getitems_after_all').removeAttr('required'); + jQuery('#jform_php_getitems_after_all').removeAttr('aria-required'); + jQuery('#jform_php_getitems_after_all').removeClass('required'); jform_vvvvvxjvwx_required = true; } } } // the vvvvvxk function -function vvvvvxk(add_php_before_save_vvvvvxk) +function vvvvvxk(add_php_getlistquery_vvvvvxk) { // set the function logic - if (add_php_before_save_vvvvvxk == 1) + if (add_php_getlistquery_vvvvvxk == 1) { - jQuery('#jform_php_before_save').closest('.control-group').show(); + jQuery('#jform_php_getlistquery').closest('.control-group').show(); if (jform_vvvvvxkvwy_required) { - updateFieldRequired('php_before_save',0); - jQuery('#jform_php_before_save').prop('required','required'); - jQuery('#jform_php_before_save').attr('aria-required',true); - jQuery('#jform_php_before_save').addClass('required'); + updateFieldRequired('php_getlistquery',0); + jQuery('#jform_php_getlistquery').prop('required','required'); + jQuery('#jform_php_getlistquery').attr('aria-required',true); + jQuery('#jform_php_getlistquery').addClass('required'); jform_vvvvvxkvwy_required = false; } } else { - jQuery('#jform_php_before_save').closest('.control-group').hide(); + jQuery('#jform_php_getlistquery').closest('.control-group').hide(); if (!jform_vvvvvxkvwy_required) { - updateFieldRequired('php_before_save',1); - jQuery('#jform_php_before_save').removeAttr('required'); - jQuery('#jform_php_before_save').removeAttr('aria-required'); - jQuery('#jform_php_before_save').removeClass('required'); + updateFieldRequired('php_getlistquery',1); + jQuery('#jform_php_getlistquery').removeAttr('required'); + jQuery('#jform_php_getlistquery').removeAttr('aria-required'); + jQuery('#jform_php_getlistquery').removeClass('required'); jform_vvvvvxkvwy_required = true; } } } // the vvvvvxl function -function vvvvvxl(add_php_save_vvvvvxl) +function vvvvvxl(add_php_before_save_vvvvvxl) { // set the function logic - if (add_php_save_vvvvvxl == 1) + if (add_php_before_save_vvvvvxl == 1) { - jQuery('#jform_php_save').closest('.control-group').show(); + jQuery('#jform_php_before_save').closest('.control-group').show(); if (jform_vvvvvxlvwz_required) { - updateFieldRequired('php_save',0); - jQuery('#jform_php_save').prop('required','required'); - jQuery('#jform_php_save').attr('aria-required',true); - jQuery('#jform_php_save').addClass('required'); + updateFieldRequired('php_before_save',0); + jQuery('#jform_php_before_save').prop('required','required'); + jQuery('#jform_php_before_save').attr('aria-required',true); + jQuery('#jform_php_before_save').addClass('required'); jform_vvvvvxlvwz_required = false; } } else { - jQuery('#jform_php_save').closest('.control-group').hide(); + jQuery('#jform_php_before_save').closest('.control-group').hide(); if (!jform_vvvvvxlvwz_required) { - updateFieldRequired('php_save',1); - jQuery('#jform_php_save').removeAttr('required'); - jQuery('#jform_php_save').removeAttr('aria-required'); - jQuery('#jform_php_save').removeClass('required'); + updateFieldRequired('php_before_save',1); + jQuery('#jform_php_before_save').removeAttr('required'); + jQuery('#jform_php_before_save').removeAttr('aria-required'); + jQuery('#jform_php_before_save').removeClass('required'); jform_vvvvvxlvwz_required = true; } } } // the vvvvvxm function -function vvvvvxm(add_php_postsavehook_vvvvvxm) +function vvvvvxm(add_php_save_vvvvvxm) { // set the function logic - if (add_php_postsavehook_vvvvvxm == 1) + if (add_php_save_vvvvvxm == 1) { - jQuery('#jform_php_postsavehook').closest('.control-group').show(); + jQuery('#jform_php_save').closest('.control-group').show(); if (jform_vvvvvxmvxa_required) { - updateFieldRequired('php_postsavehook',0); - jQuery('#jform_php_postsavehook').prop('required','required'); - jQuery('#jform_php_postsavehook').attr('aria-required',true); - jQuery('#jform_php_postsavehook').addClass('required'); + updateFieldRequired('php_save',0); + jQuery('#jform_php_save').prop('required','required'); + jQuery('#jform_php_save').attr('aria-required',true); + jQuery('#jform_php_save').addClass('required'); jform_vvvvvxmvxa_required = false; } } else { - jQuery('#jform_php_postsavehook').closest('.control-group').hide(); + jQuery('#jform_php_save').closest('.control-group').hide(); if (!jform_vvvvvxmvxa_required) { - updateFieldRequired('php_postsavehook',1); - jQuery('#jform_php_postsavehook').removeAttr('required'); - jQuery('#jform_php_postsavehook').removeAttr('aria-required'); - jQuery('#jform_php_postsavehook').removeClass('required'); + updateFieldRequired('php_save',1); + jQuery('#jform_php_save').removeAttr('required'); + jQuery('#jform_php_save').removeAttr('aria-required'); + jQuery('#jform_php_save').removeClass('required'); jform_vvvvvxmvxa_required = true; } } } // the vvvvvxn function -function vvvvvxn(add_php_allowedit_vvvvvxn) +function vvvvvxn(add_php_postsavehook_vvvvvxn) { // set the function logic - if (add_php_allowedit_vvvvvxn == 1) + if (add_php_postsavehook_vvvvvxn == 1) { - jQuery('#jform_php_allowedit').closest('.control-group').show(); + jQuery('#jform_php_postsavehook').closest('.control-group').show(); if (jform_vvvvvxnvxb_required) { - updateFieldRequired('php_allowedit',0); - jQuery('#jform_php_allowedit').prop('required','required'); - jQuery('#jform_php_allowedit').attr('aria-required',true); - jQuery('#jform_php_allowedit').addClass('required'); + updateFieldRequired('php_postsavehook',0); + jQuery('#jform_php_postsavehook').prop('required','required'); + jQuery('#jform_php_postsavehook').attr('aria-required',true); + jQuery('#jform_php_postsavehook').addClass('required'); jform_vvvvvxnvxb_required = false; } } else { - jQuery('#jform_php_allowedit').closest('.control-group').hide(); + jQuery('#jform_php_postsavehook').closest('.control-group').hide(); if (!jform_vvvvvxnvxb_required) { - updateFieldRequired('php_allowedit',1); - jQuery('#jform_php_allowedit').removeAttr('required'); - jQuery('#jform_php_allowedit').removeAttr('aria-required'); - jQuery('#jform_php_allowedit').removeClass('required'); + updateFieldRequired('php_postsavehook',1); + jQuery('#jform_php_postsavehook').removeAttr('required'); + jQuery('#jform_php_postsavehook').removeAttr('aria-required'); + jQuery('#jform_php_postsavehook').removeClass('required'); jform_vvvvvxnvxb_required = true; } } } // the vvvvvxo function -function vvvvvxo(add_php_batchcopy_vvvvvxo) +function vvvvvxo(add_php_allowedit_vvvvvxo) { // set the function logic - if (add_php_batchcopy_vvvvvxo == 1) + if (add_php_allowedit_vvvvvxo == 1) { - jQuery('#jform_php_batchcopy').closest('.control-group').show(); + jQuery('#jform_php_allowedit').closest('.control-group').show(); if (jform_vvvvvxovxc_required) { - updateFieldRequired('php_batchcopy',0); - jQuery('#jform_php_batchcopy').prop('required','required'); - jQuery('#jform_php_batchcopy').attr('aria-required',true); - jQuery('#jform_php_batchcopy').addClass('required'); + updateFieldRequired('php_allowedit',0); + jQuery('#jform_php_allowedit').prop('required','required'); + jQuery('#jform_php_allowedit').attr('aria-required',true); + jQuery('#jform_php_allowedit').addClass('required'); jform_vvvvvxovxc_required = false; } } else { - jQuery('#jform_php_batchcopy').closest('.control-group').hide(); + jQuery('#jform_php_allowedit').closest('.control-group').hide(); if (!jform_vvvvvxovxc_required) { - updateFieldRequired('php_batchcopy',1); - jQuery('#jform_php_batchcopy').removeAttr('required'); - jQuery('#jform_php_batchcopy').removeAttr('aria-required'); - jQuery('#jform_php_batchcopy').removeClass('required'); + updateFieldRequired('php_allowedit',1); + jQuery('#jform_php_allowedit').removeAttr('required'); + jQuery('#jform_php_allowedit').removeAttr('aria-required'); + jQuery('#jform_php_allowedit').removeClass('required'); jform_vvvvvxovxc_required = true; } } } // the vvvvvxp function -function vvvvvxp(add_php_batchmove_vvvvvxp) +function vvvvvxp(add_php_batchcopy_vvvvvxp) { // set the function logic - if (add_php_batchmove_vvvvvxp == 1) + if (add_php_batchcopy_vvvvvxp == 1) { - jQuery('#jform_php_batchmove').closest('.control-group').show(); + jQuery('#jform_php_batchcopy').closest('.control-group').show(); if (jform_vvvvvxpvxd_required) { - updateFieldRequired('php_batchmove',0); - jQuery('#jform_php_batchmove').prop('required','required'); - jQuery('#jform_php_batchmove').attr('aria-required',true); - jQuery('#jform_php_batchmove').addClass('required'); + updateFieldRequired('php_batchcopy',0); + jQuery('#jform_php_batchcopy').prop('required','required'); + jQuery('#jform_php_batchcopy').attr('aria-required',true); + jQuery('#jform_php_batchcopy').addClass('required'); jform_vvvvvxpvxd_required = false; } } else { - jQuery('#jform_php_batchmove').closest('.control-group').hide(); + jQuery('#jform_php_batchcopy').closest('.control-group').hide(); if (!jform_vvvvvxpvxd_required) { - updateFieldRequired('php_batchmove',1); - jQuery('#jform_php_batchmove').removeAttr('required'); - jQuery('#jform_php_batchmove').removeAttr('aria-required'); - jQuery('#jform_php_batchmove').removeClass('required'); + updateFieldRequired('php_batchcopy',1); + jQuery('#jform_php_batchcopy').removeAttr('required'); + jQuery('#jform_php_batchcopy').removeAttr('aria-required'); + jQuery('#jform_php_batchcopy').removeClass('required'); jform_vvvvvxpvxd_required = true; } } } // the vvvvvxq function -function vvvvvxq(add_php_before_publish_vvvvvxq) +function vvvvvxq(add_php_batchmove_vvvvvxq) { // set the function logic - if (add_php_before_publish_vvvvvxq == 1) + if (add_php_batchmove_vvvvvxq == 1) { - jQuery('#jform_php_before_publish').closest('.control-group').show(); + jQuery('#jform_php_batchmove').closest('.control-group').show(); if (jform_vvvvvxqvxe_required) { - updateFieldRequired('php_before_publish',0); - jQuery('#jform_php_before_publish').prop('required','required'); - jQuery('#jform_php_before_publish').attr('aria-required',true); - jQuery('#jform_php_before_publish').addClass('required'); + updateFieldRequired('php_batchmove',0); + jQuery('#jform_php_batchmove').prop('required','required'); + jQuery('#jform_php_batchmove').attr('aria-required',true); + jQuery('#jform_php_batchmove').addClass('required'); jform_vvvvvxqvxe_required = false; } } else { - jQuery('#jform_php_before_publish').closest('.control-group').hide(); + jQuery('#jform_php_batchmove').closest('.control-group').hide(); if (!jform_vvvvvxqvxe_required) { - updateFieldRequired('php_before_publish',1); - jQuery('#jform_php_before_publish').removeAttr('required'); - jQuery('#jform_php_before_publish').removeAttr('aria-required'); - jQuery('#jform_php_before_publish').removeClass('required'); + updateFieldRequired('php_batchmove',1); + jQuery('#jform_php_batchmove').removeAttr('required'); + jQuery('#jform_php_batchmove').removeAttr('aria-required'); + jQuery('#jform_php_batchmove').removeClass('required'); jform_vvvvvxqvxe_required = true; } } } // the vvvvvxr function -function vvvvvxr(add_php_after_publish_vvvvvxr) +function vvvvvxr(add_php_before_publish_vvvvvxr) { // set the function logic - if (add_php_after_publish_vvvvvxr == 1) + if (add_php_before_publish_vvvvvxr == 1) { - jQuery('#jform_php_after_publish').closest('.control-group').show(); + jQuery('#jform_php_before_publish').closest('.control-group').show(); if (jform_vvvvvxrvxf_required) { - updateFieldRequired('php_after_publish',0); - jQuery('#jform_php_after_publish').prop('required','required'); - jQuery('#jform_php_after_publish').attr('aria-required',true); - jQuery('#jform_php_after_publish').addClass('required'); + updateFieldRequired('php_before_publish',0); + jQuery('#jform_php_before_publish').prop('required','required'); + jQuery('#jform_php_before_publish').attr('aria-required',true); + jQuery('#jform_php_before_publish').addClass('required'); jform_vvvvvxrvxf_required = false; } } else { - jQuery('#jform_php_after_publish').closest('.control-group').hide(); + jQuery('#jform_php_before_publish').closest('.control-group').hide(); if (!jform_vvvvvxrvxf_required) { - updateFieldRequired('php_after_publish',1); - jQuery('#jform_php_after_publish').removeAttr('required'); - jQuery('#jform_php_after_publish').removeAttr('aria-required'); - jQuery('#jform_php_after_publish').removeClass('required'); + updateFieldRequired('php_before_publish',1); + jQuery('#jform_php_before_publish').removeAttr('required'); + jQuery('#jform_php_before_publish').removeAttr('aria-required'); + jQuery('#jform_php_before_publish').removeClass('required'); jform_vvvvvxrvxf_required = true; } } } // the vvvvvxs function -function vvvvvxs(add_php_before_delete_vvvvvxs) +function vvvvvxs(add_php_after_publish_vvvvvxs) { // set the function logic - if (add_php_before_delete_vvvvvxs == 1) + if (add_php_after_publish_vvvvvxs == 1) { - jQuery('#jform_php_before_delete').closest('.control-group').show(); + jQuery('#jform_php_after_publish').closest('.control-group').show(); if (jform_vvvvvxsvxg_required) { - updateFieldRequired('php_before_delete',0); - jQuery('#jform_php_before_delete').prop('required','required'); - jQuery('#jform_php_before_delete').attr('aria-required',true); - jQuery('#jform_php_before_delete').addClass('required'); + updateFieldRequired('php_after_publish',0); + jQuery('#jform_php_after_publish').prop('required','required'); + jQuery('#jform_php_after_publish').attr('aria-required',true); + jQuery('#jform_php_after_publish').addClass('required'); jform_vvvvvxsvxg_required = false; } } else { - jQuery('#jform_php_before_delete').closest('.control-group').hide(); + jQuery('#jform_php_after_publish').closest('.control-group').hide(); if (!jform_vvvvvxsvxg_required) { - updateFieldRequired('php_before_delete',1); - jQuery('#jform_php_before_delete').removeAttr('required'); - jQuery('#jform_php_before_delete').removeAttr('aria-required'); - jQuery('#jform_php_before_delete').removeClass('required'); + updateFieldRequired('php_after_publish',1); + jQuery('#jform_php_after_publish').removeAttr('required'); + jQuery('#jform_php_after_publish').removeAttr('aria-required'); + jQuery('#jform_php_after_publish').removeClass('required'); jform_vvvvvxsvxg_required = true; } } } // the vvvvvxt function -function vvvvvxt(add_php_after_delete_vvvvvxt) +function vvvvvxt(add_php_before_delete_vvvvvxt) { // set the function logic - if (add_php_after_delete_vvvvvxt == 1) + if (add_php_before_delete_vvvvvxt == 1) { - jQuery('#jform_php_after_delete').closest('.control-group').show(); + jQuery('#jform_php_before_delete').closest('.control-group').show(); if (jform_vvvvvxtvxh_required) { - updateFieldRequired('php_after_delete',0); - jQuery('#jform_php_after_delete').prop('required','required'); - jQuery('#jform_php_after_delete').attr('aria-required',true); - jQuery('#jform_php_after_delete').addClass('required'); + updateFieldRequired('php_before_delete',0); + jQuery('#jform_php_before_delete').prop('required','required'); + jQuery('#jform_php_before_delete').attr('aria-required',true); + jQuery('#jform_php_before_delete').addClass('required'); jform_vvvvvxtvxh_required = false; } } else { - jQuery('#jform_php_after_delete').closest('.control-group').hide(); + jQuery('#jform_php_before_delete').closest('.control-group').hide(); if (!jform_vvvvvxtvxh_required) { - updateFieldRequired('php_after_delete',1); - jQuery('#jform_php_after_delete').removeAttr('required'); - jQuery('#jform_php_after_delete').removeAttr('aria-required'); - jQuery('#jform_php_after_delete').removeClass('required'); + updateFieldRequired('php_before_delete',1); + jQuery('#jform_php_before_delete').removeAttr('required'); + jQuery('#jform_php_before_delete').removeAttr('aria-required'); + jQuery('#jform_php_before_delete').removeClass('required'); jform_vvvvvxtvxh_required = true; } } } // the vvvvvxu function -function vvvvvxu(add_php_document_vvvvvxu) +function vvvvvxu(add_php_after_delete_vvvvvxu) { // set the function logic - if (add_php_document_vvvvvxu == 1) + if (add_php_after_delete_vvvvvxu == 1) { - jQuery('#jform_php_document').closest('.control-group').show(); + jQuery('#jform_php_after_delete').closest('.control-group').show(); if (jform_vvvvvxuvxi_required) { - updateFieldRequired('php_document',0); - jQuery('#jform_php_document').prop('required','required'); - jQuery('#jform_php_document').attr('aria-required',true); - jQuery('#jform_php_document').addClass('required'); + updateFieldRequired('php_after_delete',0); + jQuery('#jform_php_after_delete').prop('required','required'); + jQuery('#jform_php_after_delete').attr('aria-required',true); + jQuery('#jform_php_after_delete').addClass('required'); jform_vvvvvxuvxi_required = false; } } else { - jQuery('#jform_php_document').closest('.control-group').hide(); + jQuery('#jform_php_after_delete').closest('.control-group').hide(); if (!jform_vvvvvxuvxi_required) { - updateFieldRequired('php_document',1); - jQuery('#jform_php_document').removeAttr('required'); - jQuery('#jform_php_document').removeAttr('aria-required'); - jQuery('#jform_php_document').removeClass('required'); + updateFieldRequired('php_after_delete',1); + jQuery('#jform_php_after_delete').removeAttr('required'); + jQuery('#jform_php_after_delete').removeAttr('aria-required'); + jQuery('#jform_php_after_delete').removeClass('required'); jform_vvvvvxuvxi_required = true; } } } // the vvvvvxv function -function vvvvvxv(add_sql_vvvvvxv) +function vvvvvxv(add_php_document_vvvvvxv) { // set the function logic - if (add_sql_vvvvvxv == 1) + if (add_php_document_vvvvvxv == 1) { - jQuery('#jform_source').closest('.control-group').show(); + jQuery('#jform_php_document').closest('.control-group').show(); if (jform_vvvvvxvvxj_required) { - updateFieldRequired('source',0); - jQuery('#jform_source').prop('required','required'); - jQuery('#jform_source').attr('aria-required',true); - jQuery('#jform_source').addClass('required'); + updateFieldRequired('php_document',0); + jQuery('#jform_php_document').prop('required','required'); + jQuery('#jform_php_document').attr('aria-required',true); + jQuery('#jform_php_document').addClass('required'); jform_vvvvvxvvxj_required = false; } } else { - jQuery('#jform_source').closest('.control-group').hide(); + jQuery('#jform_php_document').closest('.control-group').hide(); if (!jform_vvvvvxvvxj_required) { - updateFieldRequired('source',1); - jQuery('#jform_source').removeAttr('required'); - jQuery('#jform_source').removeAttr('aria-required'); - jQuery('#jform_source').removeClass('required'); + updateFieldRequired('php_document',1); + jQuery('#jform_php_document').removeAttr('required'); + jQuery('#jform_php_document').removeAttr('aria-required'); + jQuery('#jform_php_document').removeClass('required'); jform_vvvvvxvvxj_required = true; } } } // the vvvvvxw function -function vvvvvxw(source_vvvvvxw,add_sql_vvvvvxw) +function vvvvvxw(add_sql_vvvvvxw) { // set the function logic - if (source_vvvvvxw == 2 && add_sql_vvvvvxw == 1) + if (add_sql_vvvvvxw == 1) { - jQuery('#jform_sql').closest('.control-group').show(); + jQuery('#jform_source').closest('.control-group').show(); if (jform_vvvvvxwvxk_required) { - updateFieldRequired('sql',0); - jQuery('#jform_sql').prop('required','required'); - jQuery('#jform_sql').attr('aria-required',true); - jQuery('#jform_sql').addClass('required'); + updateFieldRequired('source',0); + jQuery('#jform_source').prop('required','required'); + jQuery('#jform_source').attr('aria-required',true); + jQuery('#jform_source').addClass('required'); jform_vvvvvxwvxk_required = false; } } else { - jQuery('#jform_sql').closest('.control-group').hide(); + jQuery('#jform_source').closest('.control-group').hide(); if (!jform_vvvvvxwvxk_required) { - updateFieldRequired('sql',1); - jQuery('#jform_sql').removeAttr('required'); - jQuery('#jform_sql').removeAttr('aria-required'); - jQuery('#jform_sql').removeClass('required'); + updateFieldRequired('source',1); + jQuery('#jform_source').removeAttr('required'); + jQuery('#jform_source').removeAttr('aria-required'); + jQuery('#jform_source').removeClass('required'); jform_vvvvvxwvxk_required = true; } } } -// the vvvvvxy function -function vvvvvxy(source_vvvvvxy,add_sql_vvvvvxy) +// the vvvvvxx function +function vvvvvxx(source_vvvvvxx,add_sql_vvvvvxx) { // set the function logic - if (source_vvvvvxy == 1 && add_sql_vvvvvxy == 1) + if (source_vvvvvxx == 2 && add_sql_vvvvvxx == 1) + { + jQuery('#jform_sql').closest('.control-group').show(); + if (jform_vvvvvxxvxl_required) + { + updateFieldRequired('sql',0); + jQuery('#jform_sql').prop('required','required'); + jQuery('#jform_sql').attr('aria-required',true); + jQuery('#jform_sql').addClass('required'); + jform_vvvvvxxvxl_required = false; + } + + } + else + { + jQuery('#jform_sql').closest('.control-group').hide(); + if (!jform_vvvvvxxvxl_required) + { + updateFieldRequired('sql',1); + jQuery('#jform_sql').removeAttr('required'); + jQuery('#jform_sql').removeAttr('aria-required'); + jQuery('#jform_sql').removeClass('required'); + jform_vvvvvxxvxl_required = true; + } + } +} + +// the vvvvvxz function +function vvvvvxz(source_vvvvvxz,add_sql_vvvvvxz) +{ + // set the function logic + if (source_vvvvvxz == 1 && add_sql_vvvvvxz == 1) { jQuery('#jform_addtables-lbl').closest('.control-group').show(); } @@ -909,158 +909,158 @@ function vvvvvxy(source_vvvvvxy,add_sql_vvvvvxy) } } -// the vvvvvya function -function vvvvvya(add_custom_import_vvvvvya) +// the vvvvvyb function +function vvvvvyb(add_custom_import_vvvvvyb) { // set the function logic - if (add_custom_import_vvvvvya == 1) + if (add_custom_import_vvvvvyb == 1) { jQuery('#jform_html_import_view').closest('.control-group').show(); - if (jform_vvvvvyavxl_required) + if (jform_vvvvvybvxm_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_vvvvvyavxl_required = false; + jform_vvvvvybvxm_required = false; } jQuery('.note_advanced_import').closest('.control-group').show(); jQuery('#jform_php_import_display').closest('.control-group').show(); - if (jform_vvvvvyavxm_required) + if (jform_vvvvvybvxn_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_vvvvvyavxm_required = false; + jform_vvvvvybvxn_required = false; } jQuery('#jform_php_import_ext').closest('.control-group').show(); - if (jform_vvvvvyavxn_required) + if (jform_vvvvvybvxo_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_vvvvvyavxn_required = false; + jform_vvvvvybvxo_required = false; } jQuery('#jform_php_import_headers').closest('.control-group').show(); - if (jform_vvvvvyavxo_required) + if (jform_vvvvvybvxp_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_vvvvvyavxo_required = false; + jform_vvvvvybvxp_required = false; } jQuery('#jform_php_import').closest('.control-group').show(); - if (jform_vvvvvyavxp_required) + if (jform_vvvvvybvxq_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_vvvvvyavxp_required = false; + jform_vvvvvybvxq_required = false; } jQuery('#jform_php_import_save').closest('.control-group').show(); - if (jform_vvvvvyavxq_required) + if (jform_vvvvvybvxr_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_vvvvvyavxq_required = false; + jform_vvvvvybvxr_required = false; } jQuery('#jform_php_import_setdata').closest('.control-group').show(); - if (jform_vvvvvyavxr_required) + if (jform_vvvvvybvxs_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_vvvvvyavxr_required = false; + jform_vvvvvybvxs_required = false; } } else { jQuery('#jform_html_import_view').closest('.control-group').hide(); - if (!jform_vvvvvyavxl_required) + if (!jform_vvvvvybvxm_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_vvvvvyavxl_required = true; + jform_vvvvvybvxm_required = true; } jQuery('.note_advanced_import').closest('.control-group').hide(); jQuery('#jform_php_import_display').closest('.control-group').hide(); - if (!jform_vvvvvyavxm_required) + if (!jform_vvvvvybvxn_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_vvvvvyavxm_required = true; + jform_vvvvvybvxn_required = true; } jQuery('#jform_php_import_ext').closest('.control-group').hide(); - if (!jform_vvvvvyavxn_required) + if (!jform_vvvvvybvxo_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_vvvvvyavxn_required = true; + jform_vvvvvybvxo_required = true; } jQuery('#jform_php_import_headers').closest('.control-group').hide(); - if (!jform_vvvvvyavxo_required) + if (!jform_vvvvvybvxp_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_vvvvvyavxo_required = true; + jform_vvvvvybvxp_required = true; } jQuery('#jform_php_import').closest('.control-group').hide(); - if (!jform_vvvvvyavxp_required) + if (!jform_vvvvvybvxq_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_vvvvvyavxp_required = true; + jform_vvvvvybvxq_required = true; } jQuery('#jform_php_import_save').closest('.control-group').hide(); - if (!jform_vvvvvyavxq_required) + if (!jform_vvvvvybvxr_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_vvvvvyavxq_required = true; + jform_vvvvvybvxr_required = true; } jQuery('#jform_php_import_setdata').closest('.control-group').hide(); - if (!jform_vvvvvyavxr_required) + if (!jform_vvvvvybvxs_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_vvvvvyavxr_required = true; + jform_vvvvvybvxs_required = true; } } } -// the vvvvvyb function -function vvvvvyb(add_custom_import_vvvvvyb) +// the vvvvvyc function +function vvvvvyc(add_custom_import_vvvvvyc) { // set the function logic - if (add_custom_import_vvvvvyb == 0) + if (add_custom_import_vvvvvyc == 0) { jQuery('.note_beginner_import').closest('.control-group').show(); } @@ -1070,51 +1070,51 @@ function vvvvvyb(add_custom_import_vvvvvyb) } } -// the vvvvvyc function -function vvvvvyc(add_custom_button_vvvvvyc) +// the vvvvvyd function +function vvvvvyd(add_custom_button_vvvvvyd) { // set the function logic - if (add_custom_button_vvvvvyc == 1) + if (add_custom_button_vvvvvyd == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller').closest('.control-group').show(); - if (jform_vvvvvycvxs_required) + if (jform_vvvvvydvxt_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_vvvvvycvxs_required = false; + jform_vvvvvydvxt_required = false; } jQuery('#jform_php_controller_list').closest('.control-group').show(); - if (jform_vvvvvycvxt_required) + if (jform_vvvvvydvxu_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_vvvvvycvxt_required = false; + jform_vvvvvydvxu_required = false; } jQuery('#jform_php_model').closest('.control-group').show(); - if (jform_vvvvvycvxu_required) + if (jform_vvvvvydvxv_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_vvvvvycvxu_required = false; + jform_vvvvvydvxv_required = false; } jQuery('#jform_php_model_list').closest('.control-group').show(); - if (jform_vvvvvycvxv_required) + if (jform_vvvvvydvxw_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_vvvvvycvxv_required = false; + jform_vvvvvydvxw_required = false; } } @@ -1122,40 +1122,40 @@ function vvvvvyc(add_custom_button_vvvvvyc) { jQuery('#jform_custom_button-lbl').closest('.control-group').hide(); jQuery('#jform_php_controller').closest('.control-group').hide(); - if (!jform_vvvvvycvxs_required) + if (!jform_vvvvvydvxt_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_vvvvvycvxs_required = true; + jform_vvvvvydvxt_required = true; } jQuery('#jform_php_controller_list').closest('.control-group').hide(); - if (!jform_vvvvvycvxt_required) + if (!jform_vvvvvydvxu_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_vvvvvycvxt_required = true; + jform_vvvvvydvxu_required = true; } jQuery('#jform_php_model').closest('.control-group').hide(); - if (!jform_vvvvvycvxu_required) + if (!jform_vvvvvydvxv_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_vvvvvycvxu_required = true; + jform_vvvvvydvxv_required = true; } jQuery('#jform_php_model_list').closest('.control-group').hide(); - if (!jform_vvvvvycvxv_required) + if (!jform_vvvvvydvxw_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_vvvvvycvxv_required = true; + jform_vvvvvydvxw_required = true; } } } diff --git a/admin/models/forms/custom_admin_view.js b/admin/models/forms/custom_admin_view.js index f0d873db7..3a555cac3 100644 --- a/admin/models/forms/custom_admin_view.js +++ b/admin/models/forms/custom_admin_view.js @@ -23,7 +23,6 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvvydvxw_required = false; jform_vvvvvyevxx_required = false; jform_vvvvvyfvxy_required = false; jform_vvvvvygvxz_required = false; @@ -31,286 +30,287 @@ jform_vvvvvyhvya_required = false; jform_vvvvvyivyb_required = false; jform_vvvvvyjvyc_required = false; jform_vvvvvykvyd_required = false; -jform_vvvvvykvye_required = false; +jform_vvvvvylvye_required = false; jform_vvvvvylvyf_required = false; jform_vvvvvymvyg_required = false; +jform_vvvvvynvyh_required = false; // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvvyd = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvvyd(add_php_view_vvvvvyd); + var add_php_view_vvvvvye = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvvye(add_php_view_vvvvvye); - 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_display_vvvvvyf = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); + vvvvvyf(add_php_jview_display_vvvvvyf); - var add_php_jview_vvvvvyf = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); - vvvvvyf(add_php_jview_vvvvvyf); + var add_php_jview_vvvvvyg = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); + vvvvvyg(add_php_jview_vvvvvyg); - var add_php_document_vvvvvyg = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvyg(add_php_document_vvvvvyg); + var add_php_document_vvvvvyh = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvyh(add_php_document_vvvvvyh); - var add_css_document_vvvvvyh = jQuery("#jform_add_css_document input[type='radio']:checked").val(); - vvvvvyh(add_css_document_vvvvvyh); + var add_css_document_vvvvvyi = jQuery("#jform_add_css_document input[type='radio']:checked").val(); + vvvvvyi(add_css_document_vvvvvyi); - var add_javascript_file_vvvvvyi = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); - vvvvvyi(add_javascript_file_vvvvvyi); + var add_javascript_file_vvvvvyj = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); + vvvvvyj(add_javascript_file_vvvvvyj); - var add_js_document_vvvvvyj = jQuery("#jform_add_js_document input[type='radio']:checked").val(); - vvvvvyj(add_js_document_vvvvvyj); + var add_js_document_vvvvvyk = jQuery("#jform_add_js_document input[type='radio']:checked").val(); + vvvvvyk(add_js_document_vvvvvyk); - var add_custom_button_vvvvvyk = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvyk(add_custom_button_vvvvvyk); + var add_custom_button_vvvvvyl = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvyl(add_custom_button_vvvvvyl); - var add_css_vvvvvyl = jQuery("#jform_add_css input[type='radio']:checked").val(); - vvvvvyl(add_css_vvvvvyl); + var add_css_vvvvvym = jQuery("#jform_add_css input[type='radio']:checked").val(); + vvvvvym(add_css_vvvvvym); - var add_php_ajax_vvvvvym = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvym(add_php_ajax_vvvvvym); + var add_php_ajax_vvvvvyn = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvyn(add_php_ajax_vvvvvyn); }); -// the vvvvvyd function -function vvvvvyd(add_php_view_vvvvvyd) +// the vvvvvye function +function vvvvvye(add_php_view_vvvvvye) { // set the function logic - if (add_php_view_vvvvvyd == 1) + if (add_php_view_vvvvvye == 1) { jQuery('#jform_php_view').closest('.control-group').show(); - if (jform_vvvvvydvxw_required) + if (jform_vvvvvyevxx_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_vvvvvydvxw_required = false; - } - - } - else - { - jQuery('#jform_php_view').closest('.control-group').hide(); - if (!jform_vvvvvydvxw_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_vvvvvydvxw_required = true; - } - } -} - -// the vvvvvye function -function vvvvvye(add_php_jview_display_vvvvvye) -{ - // set the function logic - if (add_php_jview_display_vvvvvye == 1) - { - jQuery('#jform_php_jview_display').closest('.control-group').show(); - if (jform_vvvvvyevxx_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_vvvvvyevxx_required = false; } } else { - jQuery('#jform_php_jview_display').closest('.control-group').hide(); + jQuery('#jform_php_view').closest('.control-group').hide(); if (!jform_vvvvvyevxx_required) { - updateFieldRequired('php_jview_display',1); - jQuery('#jform_php_jview_display').removeAttr('required'); - jQuery('#jform_php_jview_display').removeAttr('aria-required'); - jQuery('#jform_php_jview_display').removeClass('required'); + updateFieldRequired('php_view',1); + jQuery('#jform_php_view').removeAttr('required'); + jQuery('#jform_php_view').removeAttr('aria-required'); + jQuery('#jform_php_view').removeClass('required'); jform_vvvvvyevxx_required = true; } } } // the vvvvvyf function -function vvvvvyf(add_php_jview_vvvvvyf) +function vvvvvyf(add_php_jview_display_vvvvvyf) { // set the function logic - if (add_php_jview_vvvvvyf == 1) + if (add_php_jview_display_vvvvvyf == 1) { - jQuery('#jform_php_jview').closest('.control-group').show(); + jQuery('#jform_php_jview_display').closest('.control-group').show(); if (jform_vvvvvyfvxy_required) { - updateFieldRequired('php_jview',0); - jQuery('#jform_php_jview').prop('required','required'); - jQuery('#jform_php_jview').attr('aria-required',true); - jQuery('#jform_php_jview').addClass('required'); + updateFieldRequired('php_jview_display',0); + jQuery('#jform_php_jview_display').prop('required','required'); + jQuery('#jform_php_jview_display').attr('aria-required',true); + jQuery('#jform_php_jview_display').addClass('required'); jform_vvvvvyfvxy_required = false; } } else { - jQuery('#jform_php_jview').closest('.control-group').hide(); + jQuery('#jform_php_jview_display').closest('.control-group').hide(); if (!jform_vvvvvyfvxy_required) { - updateFieldRequired('php_jview',1); - jQuery('#jform_php_jview').removeAttr('required'); - jQuery('#jform_php_jview').removeAttr('aria-required'); - jQuery('#jform_php_jview').removeClass('required'); + updateFieldRequired('php_jview_display',1); + jQuery('#jform_php_jview_display').removeAttr('required'); + jQuery('#jform_php_jview_display').removeAttr('aria-required'); + jQuery('#jform_php_jview_display').removeClass('required'); jform_vvvvvyfvxy_required = true; } } } // the vvvvvyg function -function vvvvvyg(add_php_document_vvvvvyg) +function vvvvvyg(add_php_jview_vvvvvyg) { // set the function logic - if (add_php_document_vvvvvyg == 1) + if (add_php_jview_vvvvvyg == 1) { - jQuery('#jform_php_document').closest('.control-group').show(); + jQuery('#jform_php_jview').closest('.control-group').show(); if (jform_vvvvvygvxz_required) { - updateFieldRequired('php_document',0); - jQuery('#jform_php_document').prop('required','required'); - jQuery('#jform_php_document').attr('aria-required',true); - jQuery('#jform_php_document').addClass('required'); + updateFieldRequired('php_jview',0); + jQuery('#jform_php_jview').prop('required','required'); + jQuery('#jform_php_jview').attr('aria-required',true); + jQuery('#jform_php_jview').addClass('required'); jform_vvvvvygvxz_required = false; } } else { - jQuery('#jform_php_document').closest('.control-group').hide(); + jQuery('#jform_php_jview').closest('.control-group').hide(); if (!jform_vvvvvygvxz_required) { - updateFieldRequired('php_document',1); - jQuery('#jform_php_document').removeAttr('required'); - jQuery('#jform_php_document').removeAttr('aria-required'); - jQuery('#jform_php_document').removeClass('required'); + updateFieldRequired('php_jview',1); + jQuery('#jform_php_jview').removeAttr('required'); + jQuery('#jform_php_jview').removeAttr('aria-required'); + jQuery('#jform_php_jview').removeClass('required'); jform_vvvvvygvxz_required = true; } } } // the vvvvvyh function -function vvvvvyh(add_css_document_vvvvvyh) +function vvvvvyh(add_php_document_vvvvvyh) { // set the function logic - if (add_css_document_vvvvvyh == 1) + if (add_php_document_vvvvvyh == 1) { - jQuery('#jform_css_document').closest('.control-group').show(); + jQuery('#jform_php_document').closest('.control-group').show(); if (jform_vvvvvyhvya_required) { - updateFieldRequired('css_document',0); - jQuery('#jform_css_document').prop('required','required'); - jQuery('#jform_css_document').attr('aria-required',true); - jQuery('#jform_css_document').addClass('required'); + updateFieldRequired('php_document',0); + jQuery('#jform_php_document').prop('required','required'); + jQuery('#jform_php_document').attr('aria-required',true); + jQuery('#jform_php_document').addClass('required'); jform_vvvvvyhvya_required = false; } } else { - jQuery('#jform_css_document').closest('.control-group').hide(); + jQuery('#jform_php_document').closest('.control-group').hide(); if (!jform_vvvvvyhvya_required) { - updateFieldRequired('css_document',1); - jQuery('#jform_css_document').removeAttr('required'); - jQuery('#jform_css_document').removeAttr('aria-required'); - jQuery('#jform_css_document').removeClass('required'); + updateFieldRequired('php_document',1); + jQuery('#jform_php_document').removeAttr('required'); + jQuery('#jform_php_document').removeAttr('aria-required'); + jQuery('#jform_php_document').removeClass('required'); jform_vvvvvyhvya_required = true; } } } // the vvvvvyi function -function vvvvvyi(add_javascript_file_vvvvvyi) +function vvvvvyi(add_css_document_vvvvvyi) { // set the function logic - if (add_javascript_file_vvvvvyi == 1) + if (add_css_document_vvvvvyi == 1) { - jQuery('#jform_javascript_file').closest('.control-group').show(); + jQuery('#jform_css_document').closest('.control-group').show(); if (jform_vvvvvyivyb_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'); + 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_vvvvvyivyb_required = false; } } else { - jQuery('#jform_javascript_file').closest('.control-group').hide(); + jQuery('#jform_css_document').closest('.control-group').hide(); if (!jform_vvvvvyivyb_required) { - updateFieldRequired('javascript_file',1); - jQuery('#jform_javascript_file').removeAttr('required'); - jQuery('#jform_javascript_file').removeAttr('aria-required'); - jQuery('#jform_javascript_file').removeClass('required'); + updateFieldRequired('css_document',1); + jQuery('#jform_css_document').removeAttr('required'); + jQuery('#jform_css_document').removeAttr('aria-required'); + jQuery('#jform_css_document').removeClass('required'); jform_vvvvvyivyb_required = true; } } } // the vvvvvyj function -function vvvvvyj(add_js_document_vvvvvyj) +function vvvvvyj(add_javascript_file_vvvvvyj) { // set the function logic - if (add_js_document_vvvvvyj == 1) + if (add_javascript_file_vvvvvyj == 1) { - jQuery('#jform_js_document').closest('.control-group').show(); + jQuery('#jform_javascript_file').closest('.control-group').show(); if (jform_vvvvvyjvyc_required) { - updateFieldRequired('js_document',0); - jQuery('#jform_js_document').prop('required','required'); - jQuery('#jform_js_document').attr('aria-required',true); - jQuery('#jform_js_document').addClass('required'); + updateFieldRequired('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_vvvvvyjvyc_required = false; } } else { - jQuery('#jform_js_document').closest('.control-group').hide(); + jQuery('#jform_javascript_file').closest('.control-group').hide(); if (!jform_vvvvvyjvyc_required) { - updateFieldRequired('js_document',1); - jQuery('#jform_js_document').removeAttr('required'); - jQuery('#jform_js_document').removeAttr('aria-required'); - jQuery('#jform_js_document').removeClass('required'); + updateFieldRequired('javascript_file',1); + jQuery('#jform_javascript_file').removeAttr('required'); + jQuery('#jform_javascript_file').removeAttr('aria-required'); + jQuery('#jform_javascript_file').removeClass('required'); jform_vvvvvyjvyc_required = true; } } } // the vvvvvyk function -function vvvvvyk(add_custom_button_vvvvvyk) +function vvvvvyk(add_js_document_vvvvvyk) { // set the function logic - if (add_custom_button_vvvvvyk == 1) + if (add_js_document_vvvvvyk == 1) + { + jQuery('#jform_js_document').closest('.control-group').show(); + if (jform_vvvvvykvyd_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_vvvvvykvyd_required = false; + } + + } + else + { + jQuery('#jform_js_document').closest('.control-group').hide(); + if (!jform_vvvvvykvyd_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_vvvvvykvyd_required = true; + } + } +} + +// the vvvvvyl function +function vvvvvyl(add_custom_button_vvvvvyl) +{ + // set the function logic + if (add_custom_button_vvvvvyl == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller').closest('.control-group').show(); - if (jform_vvvvvykvyd_required) + if (jform_vvvvvylvye_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_vvvvvykvyd_required = false; + jform_vvvvvylvye_required = false; } jQuery('#jform_php_model').closest('.control-group').show(); - if (jform_vvvvvykvye_required) + if (jform_vvvvvylvyf_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_vvvvvykvye_required = false; + jform_vvvvvylvyf_required = false; } } @@ -318,72 +318,72 @@ function vvvvvyk(add_custom_button_vvvvvyk) { jQuery('#jform_custom_button-lbl').closest('.control-group').hide(); jQuery('#jform_php_controller').closest('.control-group').hide(); - if (!jform_vvvvvykvyd_required) + if (!jform_vvvvvylvye_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_vvvvvykvyd_required = true; + jform_vvvvvylvye_required = true; } jQuery('#jform_php_model').closest('.control-group').hide(); - if (!jform_vvvvvykvye_required) + if (!jform_vvvvvylvyf_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_vvvvvykvye_required = true; - } - } -} - -// the vvvvvyl function -function vvvvvyl(add_css_vvvvvyl) -{ - // set the function logic - if (add_css_vvvvvyl == 1) - { - jQuery('#jform_css').closest('.control-group').show(); - if (jform_vvvvvylvyf_required) - { - updateFieldRequired('css',0); - jQuery('#jform_css').prop('required','required'); - jQuery('#jform_css').attr('aria-required',true); - jQuery('#jform_css').addClass('required'); - jform_vvvvvylvyf_required = false; - } - - } - else - { - jQuery('#jform_css').closest('.control-group').hide(); - if (!jform_vvvvvylvyf_required) - { - updateFieldRequired('css',1); - jQuery('#jform_css').removeAttr('required'); - jQuery('#jform_css').removeAttr('aria-required'); - jQuery('#jform_css').removeClass('required'); jform_vvvvvylvyf_required = true; } } } // the vvvvvym function -function vvvvvym(add_php_ajax_vvvvvym) +function vvvvvym(add_css_vvvvvym) { // set the function logic - if (add_php_ajax_vvvvvym == 1) + if (add_css_vvvvvym == 1) + { + jQuery('#jform_css').closest('.control-group').show(); + if (jform_vvvvvymvyg_required) + { + updateFieldRequired('css',0); + jQuery('#jform_css').prop('required','required'); + jQuery('#jform_css').attr('aria-required',true); + jQuery('#jform_css').addClass('required'); + jform_vvvvvymvyg_required = false; + } + + } + else + { + jQuery('#jform_css').closest('.control-group').hide(); + if (!jform_vvvvvymvyg_required) + { + updateFieldRequired('css',1); + jQuery('#jform_css').removeAttr('required'); + jQuery('#jform_css').removeAttr('aria-required'); + jQuery('#jform_css').removeClass('required'); + jform_vvvvvymvyg_required = true; + } + } +} + +// the vvvvvyn function +function vvvvvyn(add_php_ajax_vvvvvyn) +{ + // set the function logic + if (add_php_ajax_vvvvvyn == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod').closest('.control-group').show(); - if (jform_vvvvvymvyg_required) + if (jform_vvvvvynvyh_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_vvvvvymvyg_required = false; + jform_vvvvvynvyh_required = false; } } @@ -391,13 +391,13 @@ function vvvvvym(add_php_ajax_vvvvvym) { jQuery('#jform_ajax_input-lbl').closest('.control-group').hide(); jQuery('#jform_php_ajaxmethod').closest('.control-group').hide(); - if (!jform_vvvvvymvyg_required) + if (!jform_vvvvvynvyh_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_vvvvvymvyg_required = true; + jform_vvvvvynvyh_required = true; } } } diff --git a/admin/models/forms/custom_code.js b/admin/models/forms/custom_code.js index 0d95373e6..dceb46319 100644 --- a/admin/models/forms/custom_code.js +++ b/admin/models/forms/custom_code.js @@ -23,43 +23,43 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvvzzvzo_required = false; jform_vvvvwaavzp_required = false; -jform_vvvvwaavzq_required = false; -jform_vvvvwaavzr_required = false; +jform_vvvvwabvzq_required = false; +jform_vvvvwabvzr_required = false; +jform_vvvvwabvzs_required = false; // Initial Script jQuery(document).ready(function() { - var target_vvvvvzz = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvvzz(target_vvvvvzz); - var target_vvvvwaa = jQuery("#jform_target input[type='radio']:checked").val(); 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); + vvvvwab(target_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); + var type_vvvvwac = jQuery("#jform_type input[type='radio']:checked").val(); + vvvvwac(target_vvvvwac,type_vvvvwac); + + var type_vvvvwad = jQuery("#jform_type input[type='radio']:checked").val(); + var target_vvvvwad = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwad(type_vvvvwad,target_vvvvwad); }); -// the vvvvvzz function -function vvvvvzz(target_vvvvvzz) +// the vvvvwaa function +function vvvvwaa(target_vvvvwaa) { // set the function logic - if (target_vvvvvzz == 2) + if (target_vvvvwaa == 2) { jQuery('#jform_function_name').closest('.control-group').show(); - if (jform_vvvvvzzvzo_required) + if (jform_vvvvwaavzp_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_vvvvvzzvzo_required = false; + jform_vvvvwaavzp_required = false; } jQuery('.note_jcb_placeholder').closest('.control-group').show(); @@ -68,99 +68,99 @@ function vvvvvzz(target_vvvvvzz) else { jQuery('#jform_function_name').closest('.control-group').hide(); - if (!jform_vvvvvzzvzo_required) + if (!jform_vvvvwaavzp_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_vvvvvzzvzo_required = true; + jform_vvvvwaavzp_required = true; } jQuery('.note_jcb_placeholder').closest('.control-group').hide(); jQuery('#jform_system_name').closest('.control-group').hide(); } } -// the vvvvwaa function -function vvvvwaa(target_vvvvwaa) +// the vvvvwab function +function vvvvwab(target_vvvvwab) { // set the function logic - if (target_vvvvwaa == 1) + if (target_vvvvwab == 1) { jQuery('#jform_component').closest('.control-group').show(); - if (jform_vvvvwaavzp_required) + if (jform_vvvvwabvzq_required) { updateFieldRequired('component',0); jQuery('#jform_component').prop('required','required'); jQuery('#jform_component').attr('aria-required',true); jQuery('#jform_component').addClass('required'); - jform_vvvvwaavzp_required = false; + jform_vvvvwabvzq_required = false; } jQuery('#jform_path').closest('.control-group').show(); - if (jform_vvvvwaavzq_required) + if (jform_vvvvwabvzr_required) { updateFieldRequired('path',0); jQuery('#jform_path').prop('required','required'); jQuery('#jform_path').attr('aria-required',true); jQuery('#jform_path').addClass('required'); - jform_vvvvwaavzq_required = false; + jform_vvvvwabvzr_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_vvvvwaavzr_required) + if (jform_vvvvwabvzs_required) { updateFieldRequired('type',0); jQuery('#jform_type').prop('required','required'); jQuery('#jform_type').attr('aria-required',true); jQuery('#jform_type').addClass('required'); - jform_vvvvwaavzr_required = false; + jform_vvvvwabvzs_required = false; } } else { jQuery('#jform_component').closest('.control-group').hide(); - if (!jform_vvvvwaavzp_required) + if (!jform_vvvvwabvzq_required) { updateFieldRequired('component',1); jQuery('#jform_component').removeAttr('required'); jQuery('#jform_component').removeAttr('aria-required'); jQuery('#jform_component').removeClass('required'); - jform_vvvvwaavzp_required = true; + jform_vvvvwabvzq_required = true; } jQuery('#jform_path').closest('.control-group').hide(); - if (!jform_vvvvwaavzq_required) + if (!jform_vvvvwabvzr_required) { updateFieldRequired('path',1); jQuery('#jform_path').removeAttr('required'); jQuery('#jform_path').removeAttr('aria-required'); jQuery('#jform_path').removeClass('required'); - jform_vvvvwaavzq_required = true; + jform_vvvvwabvzr_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_vvvvwaavzr_required) + if (!jform_vvvvwabvzs_required) { updateFieldRequired('type',1); jQuery('#jform_type').removeAttr('required'); jQuery('#jform_type').removeAttr('aria-required'); jQuery('#jform_type').removeClass('required'); - jform_vvvvwaavzr_required = true; + jform_vvvvwabvzs_required = true; } } } -// the vvvvwab function -function vvvvwab(target_vvvvwab,type_vvvvwab) +// the vvvvwac function +function vvvvwac(target_vvvvwac,type_vvvvwac) { // set the function logic - if (target_vvvvwab == 1 && type_vvvvwab == 1) + if (target_vvvvwac == 1 && type_vvvvwac == 1) { jQuery('#jform_hashendtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); @@ -172,11 +172,11 @@ function vvvvwab(target_vvvvwab,type_vvvvwab) } } -// the vvvvwac function -function vvvvwac(type_vvvvwac,target_vvvvwac) +// the vvvvwad function +function vvvvwad(type_vvvvwad,target_vvvvwad) { // set the function logic - if (type_vvvvwac == 1 && target_vvvvwac == 1) + if (type_vvvvwad == 1 && target_vvvvwad == 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 82e323fc5..c8bf98c11 100644 --- a/admin/models/forms/dynamic_get.js +++ b/admin/models/forms/dynamic_get.js @@ -23,35 +23,32 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvvzavyu_required = false; jform_vvvvvzbvyv_required = false; jform_vvvvvzcvyw_required = false; jform_vvvvvzdvyx_required = false; jform_vvvvvzevyy_required = false; jform_vvvvvzfvyz_required = false; -jform_vvvvvzkvza_required = false; -jform_vvvvvzmvzb_required = false; +jform_vvvvvzgvza_required = false; +jform_vvvvvzlvzb_required = false; jform_vvvvvznvzc_required = false; -jform_vvvvvzpvzd_required = false; -jform_vvvvvzpvze_required = false; +jform_vvvvvzovzd_required = false; +jform_vvvvvzqvze_required = false; jform_vvvvvzqvzf_required = false; jform_vvvvvzrvzg_required = false; jform_vvvvvzsvzh_required = false; -jform_vvvvvzuvzi_required = false; -jform_vvvvvzuvzj_required = false; -jform_vvvvvzuvzk_required = false; +jform_vvvvvztvzi_required = false; +jform_vvvvvzvvzj_required = false; +jform_vvvvvzvvzk_required = false; jform_vvvvvzvvzl_required = false; jform_vvvvvzwvzm_required = false; jform_vvvvvzxvzn_required = false; +jform_vvvvvzyvzo_required = false; // Initial Script jQuery(document).ready(function() { - var gettype_vvvvvza = jQuery("#jform_gettype").val(); - vvvvvza(gettype_vvvvvza); - - var main_source_vvvvvzb = jQuery("#jform_main_source").val(); - vvvvvzb(main_source_vvvvvzb); + var gettype_vvvvvzb = jQuery("#jform_gettype").val(); + vvvvvzb(gettype_vvvvvzb); var main_source_vvvvvzc = jQuery("#jform_main_source").val(); vvvvvzc(main_source_vvvvvzc); @@ -62,48 +59,48 @@ jQuery(document).ready(function() var main_source_vvvvvze = jQuery("#jform_main_source").val(); vvvvvze(main_source_vvvvvze); - var addcalculation_vvvvvzf = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - vvvvvzf(addcalculation_vvvvvzf); + var main_source_vvvvvzf = jQuery("#jform_main_source").val(); + vvvvvzf(main_source_vvvvvzf); var addcalculation_vvvvvzg = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - var gettype_vvvvvzg = jQuery("#jform_gettype").val(); - vvvvvzg(addcalculation_vvvvvzg,gettype_vvvvvzg); + vvvvvzg(addcalculation_vvvvvzg); var addcalculation_vvvvvzh = jQuery("#jform_addcalculation input[type='radio']:checked").val(); var gettype_vvvvvzh = jQuery("#jform_gettype").val(); vvvvvzh(addcalculation_vvvvvzh,gettype_vvvvvzh); - var main_source_vvvvvzk = jQuery("#jform_main_source").val(); - vvvvvzk(main_source_vvvvvzk); + var addcalculation_vvvvvzi = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + var gettype_vvvvvzi = jQuery("#jform_gettype").val(); + vvvvvzi(addcalculation_vvvvvzi,gettype_vvvvvzi); 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 main_source_vvvvvzm = jQuery("#jform_main_source").val(); + vvvvvzm(main_source_vvvvvzm); - var add_php_after_getitem_vvvvvzn = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); + var add_php_before_getitem_vvvvvzn = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); var gettype_vvvvvzn = jQuery("#jform_gettype").val(); - vvvvvzn(add_php_after_getitem_vvvvvzn,gettype_vvvvvzn); + vvvvvzn(add_php_before_getitem_vvvvvzn,gettype_vvvvvzn); - var gettype_vvvvvzp = jQuery("#jform_gettype").val(); - vvvvvzp(gettype_vvvvvzp); + var add_php_after_getitem_vvvvvzo = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); + var gettype_vvvvvzo = jQuery("#jform_gettype").val(); + vvvvvzo(add_php_after_getitem_vvvvvzo,gettype_vvvvvzo); - 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_getlistquery_vvvvvzq,gettype_vvvvvzq); + vvvvvzq(gettype_vvvvvzq); - var add_php_before_getitems_vvvvvzr = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); + var add_php_getlistquery_vvvvvzr = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); var gettype_vvvvvzr = jQuery("#jform_gettype").val(); - vvvvvzr(add_php_before_getitems_vvvvvzr,gettype_vvvvvzr); + vvvvvzr(add_php_getlistquery_vvvvvzr,gettype_vvvvvzr); - var add_php_after_getitems_vvvvvzs = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); + var add_php_before_getitems_vvvvvzs = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); var gettype_vvvvvzs = jQuery("#jform_gettype").val(); - vvvvvzs(add_php_after_getitems_vvvvvzs,gettype_vvvvvzs); + vvvvvzs(add_php_before_getitems_vvvvvzs,gettype_vvvvvzs); - var gettype_vvvvvzu = jQuery("#jform_gettype").val(); - vvvvvzu(gettype_vvvvvzu); + var add_php_after_getitems_vvvvvzt = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); + var gettype_vvvvvzt = jQuery("#jform_gettype").val(); + vvvvvzt(add_php_after_getitems_vvvvvzt,gettype_vvvvvzt); var gettype_vvvvvzv = jQuery("#jform_gettype").val(); vvvvvzv(gettype_vvvvvzv); @@ -112,114 +109,62 @@ jQuery(document).ready(function() 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); + vvvvvzx(gettype_vvvvvzx); + + var gettype_vvvvvzy = jQuery("#jform_gettype").val(); + var add_php_router_parse_vvvvvzy = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); + vvvvvzy(gettype_vvvvvzy,add_php_router_parse_vvvvvzy); }); -// the vvvvvza function -function vvvvvza(gettype_vvvvvza) +// the vvvvvzb function +function vvvvvzb(gettype_vvvvvzb) { - if (isSet(gettype_vvvvvza) && gettype_vvvvvza.constructor !== Array) + if (isSet(gettype_vvvvvzb) && gettype_vvvvvzb.constructor !== Array) { - var temp_vvvvvza = gettype_vvvvvza; - var gettype_vvvvvza = []; - gettype_vvvvvza.push(temp_vvvvvza); + var temp_vvvvvzb = gettype_vvvvvzb; + var gettype_vvvvvzb = []; + gettype_vvvvvzb.push(temp_vvvvvzb); } - else if (!isSet(gettype_vvvvvza)) + else if (!isSet(gettype_vvvvvzb)) { - var gettype_vvvvvza = []; + var gettype_vvvvvzb = []; } - var gettype = gettype_vvvvvza.some(gettype_vvvvvza_SomeFunc); + var gettype = gettype_vvvvvzb.some(gettype_vvvvvzb_SomeFunc); // set this function logic if (gettype) { jQuery('#jform_getcustom').closest('.control-group').show(); - if (jform_vvvvvzavyu_required) + if (jform_vvvvvzbvyv_required) { updateFieldRequired('getcustom',0); jQuery('#jform_getcustom').prop('required','required'); jQuery('#jform_getcustom').attr('aria-required',true); jQuery('#jform_getcustom').addClass('required'); - jform_vvvvvzavyu_required = false; - } - - } - else - { - jQuery('#jform_getcustom').closest('.control-group').hide(); - if (!jform_vvvvvzavyu_required) - { - updateFieldRequired('getcustom',1); - jQuery('#jform_getcustom').removeAttr('required'); - jQuery('#jform_getcustom').removeAttr('aria-required'); - jQuery('#jform_getcustom').removeClass('required'); - jform_vvvvvzavyu_required = true; - } - } -} - -// the vvvvvza Some function -function gettype_vvvvvza_SomeFunc(gettype_vvvvvza) -{ - // set the function logic - if (gettype_vvvvvza == 3 || gettype_vvvvvza == 4) - { - return true; - } - return false; -} - -// the vvvvvzb function -function vvvvvzb(main_source_vvvvvzb) -{ - if (isSet(main_source_vvvvvzb) && main_source_vvvvvzb.constructor !== Array) - { - var temp_vvvvvzb = main_source_vvvvvzb; - var main_source_vvvvvzb = []; - main_source_vvvvvzb.push(temp_vvvvvzb); - } - else if (!isSet(main_source_vvvvvzb)) - { - var main_source_vvvvvzb = []; - } - var main_source = main_source_vvvvvzb.some(main_source_vvvvvzb_SomeFunc); - - - // set this function logic - if (main_source) - { - jQuery('#jform_view_table_main').closest('.control-group').show(); - if (jform_vvvvvzbvyv_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_vvvvvzbvyv_required = false; } } else { - jQuery('#jform_view_table_main').closest('.control-group').hide(); + jQuery('#jform_getcustom').closest('.control-group').hide(); if (!jform_vvvvvzbvyv_required) { - updateFieldRequired('view_table_main',1); - jQuery('#jform_view_table_main').removeAttr('required'); - jQuery('#jform_view_table_main').removeAttr('aria-required'); - jQuery('#jform_view_table_main').removeClass('required'); + updateFieldRequired('getcustom',1); + jQuery('#jform_getcustom').removeAttr('required'); + jQuery('#jform_getcustom').removeAttr('aria-required'); + jQuery('#jform_getcustom').removeClass('required'); jform_vvvvvzbvyv_required = true; } } } // the vvvvvzb Some function -function main_source_vvvvvzb_SomeFunc(main_source_vvvvvzb) +function gettype_vvvvvzb_SomeFunc(gettype_vvvvvzb) { // set the function logic - if (main_source_vvvvvzb == 1) + if (gettype_vvvvvzb == 3 || gettype_vvvvvzb == 4) { return true; } @@ -245,26 +190,26 @@ function vvvvvzc(main_source_vvvvvzc) // set this function logic if (main_source) { - jQuery('#jform_view_selection').closest('.control-group').show(); + jQuery('#jform_view_table_main').closest('.control-group').show(); if (jform_vvvvvzcvyw_required) { - updateFieldRequired('view_selection',0); - jQuery('#jform_view_selection').prop('required','required'); - jQuery('#jform_view_selection').attr('aria-required',true); - jQuery('#jform_view_selection').addClass('required'); + updateFieldRequired('view_table_main',0); + jQuery('#jform_view_table_main').prop('required','required'); + jQuery('#jform_view_table_main').attr('aria-required',true); + jQuery('#jform_view_table_main').addClass('required'); jform_vvvvvzcvyw_required = false; } } else { - jQuery('#jform_view_selection').closest('.control-group').hide(); + jQuery('#jform_view_table_main').closest('.control-group').hide(); if (!jform_vvvvvzcvyw_required) { - updateFieldRequired('view_selection',1); - jQuery('#jform_view_selection').removeAttr('required'); - jQuery('#jform_view_selection').removeAttr('aria-required'); - jQuery('#jform_view_selection').removeClass('required'); + updateFieldRequired('view_table_main',1); + jQuery('#jform_view_table_main').removeAttr('required'); + jQuery('#jform_view_table_main').removeAttr('aria-required'); + jQuery('#jform_view_table_main').removeClass('required'); jform_vvvvvzcvyw_required = true; } } @@ -300,26 +245,26 @@ function vvvvvzd(main_source_vvvvvzd) // set this function logic if (main_source) { - jQuery('#jform_db_table_main').closest('.control-group').show(); + jQuery('#jform_view_selection').closest('.control-group').show(); if (jform_vvvvvzdvyx_required) { - updateFieldRequired('db_table_main',0); - jQuery('#jform_db_table_main').prop('required','required'); - jQuery('#jform_db_table_main').attr('aria-required',true); - jQuery('#jform_db_table_main').addClass('required'); + updateFieldRequired('view_selection',0); + jQuery('#jform_view_selection').prop('required','required'); + jQuery('#jform_view_selection').attr('aria-required',true); + jQuery('#jform_view_selection').addClass('required'); jform_vvvvvzdvyx_required = false; } } else { - jQuery('#jform_db_table_main').closest('.control-group').hide(); + jQuery('#jform_view_selection').closest('.control-group').hide(); if (!jform_vvvvvzdvyx_required) { - updateFieldRequired('db_table_main',1); - jQuery('#jform_db_table_main').removeAttr('required'); - jQuery('#jform_db_table_main').removeAttr('aria-required'); - jQuery('#jform_db_table_main').removeClass('required'); + updateFieldRequired('view_selection',1); + jQuery('#jform_view_selection').removeAttr('required'); + jQuery('#jform_view_selection').removeAttr('aria-required'); + jQuery('#jform_view_selection').removeClass('required'); jform_vvvvvzdvyx_required = true; } } @@ -329,7 +274,7 @@ function vvvvvzd(main_source_vvvvvzd) function main_source_vvvvvzd_SomeFunc(main_source_vvvvvzd) { // set the function logic - if (main_source_vvvvvzd == 2) + if (main_source_vvvvvzd == 1) { return true; } @@ -355,26 +300,26 @@ function vvvvvze(main_source_vvvvvze) // set this function logic if (main_source) { - jQuery('#jform_db_selection').closest('.control-group').show(); + jQuery('#jform_db_table_main').closest('.control-group').show(); if (jform_vvvvvzevyy_required) { - updateFieldRequired('db_selection',0); - jQuery('#jform_db_selection').prop('required','required'); - jQuery('#jform_db_selection').attr('aria-required',true); - jQuery('#jform_db_selection').addClass('required'); + updateFieldRequired('db_table_main',0); + jQuery('#jform_db_table_main').prop('required','required'); + jQuery('#jform_db_table_main').attr('aria-required',true); + jQuery('#jform_db_table_main').addClass('required'); jform_vvvvvzevyy_required = false; } } else { - jQuery('#jform_db_selection').closest('.control-group').hide(); + jQuery('#jform_db_table_main').closest('.control-group').hide(); if (!jform_vvvvvzevyy_required) { - updateFieldRequired('db_selection',1); - jQuery('#jform_db_selection').removeAttr('required'); - jQuery('#jform_db_selection').removeAttr('aria-required'); - jQuery('#jform_db_selection').removeClass('required'); + updateFieldRequired('db_table_main',1); + jQuery('#jform_db_table_main').removeAttr('required'); + jQuery('#jform_db_table_main').removeAttr('aria-required'); + jQuery('#jform_db_table_main').removeClass('required'); jform_vvvvvzevyy_required = true; } } @@ -392,95 +337,89 @@ function main_source_vvvvvze_SomeFunc(main_source_vvvvvze) } // the vvvvvzf function -function vvvvvzf(addcalculation_vvvvvzf) +function vvvvvzf(main_source_vvvvvzf) { - // set the function logic - if (addcalculation_vvvvvzf == 1) + if (isSet(main_source_vvvvvzf) && main_source_vvvvvzf.constructor !== Array) { - jQuery('#jform_php_calculation').closest('.control-group').show(); + var temp_vvvvvzf = main_source_vvvvvzf; + var main_source_vvvvvzf = []; + main_source_vvvvvzf.push(temp_vvvvvzf); + } + else if (!isSet(main_source_vvvvvzf)) + { + var main_source_vvvvvzf = []; + } + var main_source = main_source_vvvvvzf.some(main_source_vvvvvzf_SomeFunc); + + + // set this function logic + if (main_source) + { + jQuery('#jform_db_selection').closest('.control-group').show(); if (jform_vvvvvzfvyz_required) { - updateFieldRequired('php_calculation',0); - jQuery('#jform_php_calculation').prop('required','required'); - jQuery('#jform_php_calculation').attr('aria-required',true); - jQuery('#jform_php_calculation').addClass('required'); + updateFieldRequired('db_selection',0); + jQuery('#jform_db_selection').prop('required','required'); + jQuery('#jform_db_selection').attr('aria-required',true); + jQuery('#jform_db_selection').addClass('required'); jform_vvvvvzfvyz_required = false; } } else { - jQuery('#jform_php_calculation').closest('.control-group').hide(); + jQuery('#jform_db_selection').closest('.control-group').hide(); if (!jform_vvvvvzfvyz_required) { - updateFieldRequired('php_calculation',1); - jQuery('#jform_php_calculation').removeAttr('required'); - jQuery('#jform_php_calculation').removeAttr('aria-required'); - jQuery('#jform_php_calculation').removeClass('required'); + updateFieldRequired('db_selection',1); + jQuery('#jform_db_selection').removeAttr('required'); + jQuery('#jform_db_selection').removeAttr('aria-required'); + jQuery('#jform_db_selection').removeClass('required'); jform_vvvvvzfvyz_required = true; } } } -// the vvvvvzg function -function vvvvvzg(addcalculation_vvvvvzg,gettype_vvvvvzg) +// the vvvvvzf Some function +function main_source_vvvvvzf_SomeFunc(main_source_vvvvvzf) { - if (isSet(addcalculation_vvvvvzg) && addcalculation_vvvvvzg.constructor !== Array) + // set the function logic + if (main_source_vvvvvzf == 2) { - var temp_vvvvvzg = addcalculation_vvvvvzg; - var addcalculation_vvvvvzg = []; - addcalculation_vvvvvzg.push(temp_vvvvvzg); - } - else if (!isSet(addcalculation_vvvvvzg)) - { - var addcalculation_vvvvvzg = []; - } - var addcalculation = addcalculation_vvvvvzg.some(addcalculation_vvvvvzg_SomeFunc); - - if (isSet(gettype_vvvvvzg) && gettype_vvvvvzg.constructor !== Array) - { - var temp_vvvvvzg = gettype_vvvvvzg; - var gettype_vvvvvzg = []; - gettype_vvvvvzg.push(temp_vvvvvzg); - } - else if (!isSet(gettype_vvvvvzg)) - { - var gettype_vvvvvzg = []; - } - var gettype = gettype_vvvvvzg.some(gettype_vvvvvzg_SomeFunc); - - - // set this function logic - if (addcalculation && gettype) - { - jQuery('.note_calculation_item').closest('.control-group').show(); - } - else - { - jQuery('.note_calculation_item').closest('.control-group').hide(); + return true; } + return false; } -// the vvvvvzg Some function -function addcalculation_vvvvvzg_SomeFunc(addcalculation_vvvvvzg) +// the vvvvvzg function +function vvvvvzg(addcalculation_vvvvvzg) { // set the function logic if (addcalculation_vvvvvzg == 1) { - return true; - } - return false; -} + jQuery('#jform_php_calculation').closest('.control-group').show(); + if (jform_vvvvvzgvza_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_vvvvvzgvza_required = false; + } -// the vvvvvzg Some function -function gettype_vvvvvzg_SomeFunc(gettype_vvvvvzg) -{ - // set the function logic - if (gettype_vvvvvzg == 1 || gettype_vvvvvzg == 3) - { - return true; } - return false; + else + { + jQuery('#jform_php_calculation').closest('.control-group').hide(); + if (!jform_vvvvvzgvza_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_vvvvvzgvza_required = true; + } + } } // the vvvvvzh function @@ -514,11 +453,11 @@ function vvvvvzh(addcalculation_vvvvvzh,gettype_vvvvvzh) // set this function logic if (addcalculation && gettype) { - jQuery('.note_calculation_items').closest('.control-group').show(); + jQuery('.note_calculation_item').closest('.control-group').show(); } else { - jQuery('.note_calculation_items').closest('.control-group').hide(); + jQuery('.note_calculation_item').closest('.control-group').hide(); } } @@ -537,62 +476,68 @@ function addcalculation_vvvvvzh_SomeFunc(addcalculation_vvvvvzh) function gettype_vvvvvzh_SomeFunc(gettype_vvvvvzh) { // set the function logic - if (gettype_vvvvvzh == 2 || gettype_vvvvvzh == 4) + if (gettype_vvvvvzh == 1 || gettype_vvvvvzh == 3) { return true; } return false; } -// the vvvvvzk function -function vvvvvzk(main_source_vvvvvzk) +// the vvvvvzi function +function vvvvvzi(addcalculation_vvvvvzi,gettype_vvvvvzi) { - if (isSet(main_source_vvvvvzk) && main_source_vvvvvzk.constructor !== Array) + if (isSet(addcalculation_vvvvvzi) && addcalculation_vvvvvzi.constructor !== Array) { - var temp_vvvvvzk = main_source_vvvvvzk; - var main_source_vvvvvzk = []; - main_source_vvvvvzk.push(temp_vvvvvzk); + var temp_vvvvvzi = addcalculation_vvvvvzi; + var addcalculation_vvvvvzi = []; + addcalculation_vvvvvzi.push(temp_vvvvvzi); } - else if (!isSet(main_source_vvvvvzk)) + else if (!isSet(addcalculation_vvvvvzi)) { - var main_source_vvvvvzk = []; + var addcalculation_vvvvvzi = []; } - var main_source = main_source_vvvvvzk.some(main_source_vvvvvzk_SomeFunc); + var addcalculation = addcalculation_vvvvvzi.some(addcalculation_vvvvvzi_SomeFunc); + + if (isSet(gettype_vvvvvzi) && gettype_vvvvvzi.constructor !== Array) + { + var temp_vvvvvzi = gettype_vvvvvzi; + var gettype_vvvvvzi = []; + gettype_vvvvvzi.push(temp_vvvvvzi); + } + else if (!isSet(gettype_vvvvvzi)) + { + var gettype_vvvvvzi = []; + } + var gettype = gettype_vvvvvzi.some(gettype_vvvvvzi_SomeFunc); // set this function logic - if (main_source) + if (addcalculation && gettype) { - jQuery('#jform_php_custom_get').closest('.control-group').show(); - if (jform_vvvvvzkvza_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_vvvvvzkvza_required = false; - } - + jQuery('.note_calculation_items').closest('.control-group').show(); } else { - jQuery('#jform_php_custom_get').closest('.control-group').hide(); - if (!jform_vvvvvzkvza_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_vvvvvzkvza_required = true; - } + jQuery('.note_calculation_items').closest('.control-group').hide(); } } -// the vvvvvzk Some function -function main_source_vvvvvzk_SomeFunc(main_source_vvvvvzk) +// the vvvvvzi Some function +function addcalculation_vvvvvzi_SomeFunc(addcalculation_vvvvvzi) { // set the function logic - if (main_source_vvvvvzk == 3) + if (addcalculation_vvvvvzi == 1) + { + return true; + } + return false; +} + +// the vvvvvzi Some function +function gettype_vvvvvzi_SomeFunc(gettype_vvvvvzi) +{ + // set the function logic + if (gettype_vvvvvzi == 2 || gettype_vvvvvzi == 4) { return true; } @@ -615,6 +560,61 @@ function vvvvvzl(main_source_vvvvvzl) var main_source = main_source_vvvvvzl.some(main_source_vvvvvzl_SomeFunc); + // set this function logic + if (main_source) + { + jQuery('#jform_php_custom_get').closest('.control-group').show(); + if (jform_vvvvvzlvzb_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_vvvvvzlvzb_required = false; + } + + } + else + { + jQuery('#jform_php_custom_get').closest('.control-group').hide(); + if (!jform_vvvvvzlvzb_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_vvvvvzlvzb_required = true; + } + } +} + +// the vvvvvzl Some function +function main_source_vvvvvzl_SomeFunc(main_source_vvvvvzl) +{ + // set the function logic + if (main_source_vvvvvzl == 3) + { + return true; + } + return false; +} + +// the vvvvvzm function +function vvvvvzm(main_source_vvvvvzm) +{ + if (isSet(main_source_vvvvvzm) && main_source_vvvvvzm.constructor !== Array) + { + var temp_vvvvvzm = main_source_vvvvvzm; + var main_source_vvvvvzm = []; + main_source_vvvvvzm.push(temp_vvvvvzm); + } + else if (!isSet(main_source_vvvvvzm)) + { + var main_source_vvvvvzm = []; + } + var main_source = main_source_vvvvvzm.some(main_source_vvvvvzm_SomeFunc); + + // set this function logic if (main_source) { @@ -636,89 +636,11 @@ function vvvvvzl(main_source_vvvvvzl) } } -// the vvvvvzl Some function -function main_source_vvvvvzl_SomeFunc(main_source_vvvvvzl) -{ - // set the function logic - if (main_source_vvvvvzl == 1 || main_source_vvvvvzl == 2) - { - return true; - } - return false; -} - -// the vvvvvzm function -function vvvvvzm(add_php_before_getitem_vvvvvzm,gettype_vvvvvzm) -{ - if (isSet(add_php_before_getitem_vvvvvzm) && add_php_before_getitem_vvvvvzm.constructor !== Array) - { - 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_vvvvvzm)) - { - var add_php_before_getitem_vvvvvzm = []; - } - var add_php_before_getitem = add_php_before_getitem_vvvvvzm.some(add_php_before_getitem_vvvvvzm_SomeFunc); - - if (isSet(gettype_vvvvvzm) && gettype_vvvvvzm.constructor !== Array) - { - var temp_vvvvvzm = gettype_vvvvvzm; - var gettype_vvvvvzm = []; - gettype_vvvvvzm.push(temp_vvvvvzm); - } - else if (!isSet(gettype_vvvvvzm)) - { - var gettype_vvvvvzm = []; - } - var gettype = gettype_vvvvvzm.some(gettype_vvvvvzm_SomeFunc); - - - // set this function logic - if (add_php_before_getitem && gettype) - { - jQuery('#jform_php_before_getitem').closest('.control-group').show(); - if (jform_vvvvvzmvzb_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_vvvvvzmvzb_required = false; - } - - } - else - { - jQuery('#jform_php_before_getitem').closest('.control-group').hide(); - if (!jform_vvvvvzmvzb_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_vvvvvzmvzb_required = true; - } - } -} - // the vvvvvzm Some function -function add_php_before_getitem_vvvvvzm_SomeFunc(add_php_before_getitem_vvvvvzm) +function main_source_vvvvvzm_SomeFunc(main_source_vvvvvzm) { // set the function logic - if (add_php_before_getitem_vvvvvzm == 1) - { - return true; - } - return false; -} - -// the vvvvvzm Some function -function gettype_vvvvvzm_SomeFunc(gettype_vvvvvzm) -{ - // set the function logic - if (gettype_vvvvvzm == 1 || gettype_vvvvvzm == 3) + if (main_source_vvvvvzm == 1 || main_source_vvvvvzm == 2) { return true; } @@ -726,19 +648,19 @@ function gettype_vvvvvzm_SomeFunc(gettype_vvvvvzm) } // the vvvvvzn function -function vvvvvzn(add_php_after_getitem_vvvvvzn,gettype_vvvvvzn) +function vvvvvzn(add_php_before_getitem_vvvvvzn,gettype_vvvvvzn) { - if (isSet(add_php_after_getitem_vvvvvzn) && add_php_after_getitem_vvvvvzn.constructor !== Array) + if (isSet(add_php_before_getitem_vvvvvzn) && add_php_before_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); + var temp_vvvvvzn = add_php_before_getitem_vvvvvzn; + var add_php_before_getitem_vvvvvzn = []; + add_php_before_getitem_vvvvvzn.push(temp_vvvvvzn); } - else if (!isSet(add_php_after_getitem_vvvvvzn)) + else if (!isSet(add_php_before_getitem_vvvvvzn)) { - var add_php_after_getitem_vvvvvzn = []; + var add_php_before_getitem_vvvvvzn = []; } - var add_php_after_getitem = add_php_after_getitem_vvvvvzn.some(add_php_after_getitem_vvvvvzn_SomeFunc); + var add_php_before_getitem = add_php_before_getitem_vvvvvzn.some(add_php_before_getitem_vvvvvzn_SomeFunc); if (isSet(gettype_vvvvvzn) && gettype_vvvvvzn.constructor !== Array) { @@ -754,38 +676,38 @@ function vvvvvzn(add_php_after_getitem_vvvvvzn,gettype_vvvvvzn) // set this function logic - if (add_php_after_getitem && gettype) + if (add_php_before_getitem && gettype) { - jQuery('#jform_php_after_getitem').closest('.control-group').show(); + jQuery('#jform_php_before_getitem').closest('.control-group').show(); if (jform_vvvvvznvzc_required) { - updateFieldRequired('php_after_getitem',0); - jQuery('#jform_php_after_getitem').prop('required','required'); - jQuery('#jform_php_after_getitem').attr('aria-required',true); - jQuery('#jform_php_after_getitem').addClass('required'); + updateFieldRequired('php_before_getitem',0); + jQuery('#jform_php_before_getitem').prop('required','required'); + jQuery('#jform_php_before_getitem').attr('aria-required',true); + jQuery('#jform_php_before_getitem').addClass('required'); jform_vvvvvznvzc_required = false; } } else { - jQuery('#jform_php_after_getitem').closest('.control-group').hide(); + jQuery('#jform_php_before_getitem').closest('.control-group').hide(); if (!jform_vvvvvznvzc_required) { - updateFieldRequired('php_after_getitem',1); - jQuery('#jform_php_after_getitem').removeAttr('required'); - jQuery('#jform_php_after_getitem').removeAttr('aria-required'); - jQuery('#jform_php_after_getitem').removeClass('required'); + updateFieldRequired('php_before_getitem',1); + jQuery('#jform_php_before_getitem').removeAttr('required'); + jQuery('#jform_php_before_getitem').removeAttr('aria-required'); + jQuery('#jform_php_before_getitem').removeClass('required'); jform_vvvvvznvzc_required = true; } } } // the vvvvvzn Some function -function add_php_after_getitem_vvvvvzn_SomeFunc(add_php_after_getitem_vvvvvzn) +function add_php_before_getitem_vvvvvzn_SomeFunc(add_php_before_getitem_vvvvvzn) { // set the function logic - if (add_php_after_getitem_vvvvvzn == 1) + if (add_php_before_getitem_vvvvvzn == 1) { return true; } @@ -803,74 +725,78 @@ function gettype_vvvvvzn_SomeFunc(gettype_vvvvvzn) return false; } -// the vvvvvzp function -function vvvvvzp(gettype_vvvvvzp) +// the vvvvvzo function +function vvvvvzo(add_php_after_getitem_vvvvvzo,gettype_vvvvvzo) { - if (isSet(gettype_vvvvvzp) && gettype_vvvvvzp.constructor !== Array) + if (isSet(add_php_after_getitem_vvvvvzo) && add_php_after_getitem_vvvvvzo.constructor !== Array) { - var temp_vvvvvzp = gettype_vvvvvzp; - var gettype_vvvvvzp = []; - gettype_vvvvvzp.push(temp_vvvvvzp); + var temp_vvvvvzo = add_php_after_getitem_vvvvvzo; + var add_php_after_getitem_vvvvvzo = []; + add_php_after_getitem_vvvvvzo.push(temp_vvvvvzo); } - else if (!isSet(gettype_vvvvvzp)) + else if (!isSet(add_php_after_getitem_vvvvvzo)) { - var gettype_vvvvvzp = []; + var add_php_after_getitem_vvvvvzo = []; } - var gettype = gettype_vvvvvzp.some(gettype_vvvvvzp_SomeFunc); + var add_php_after_getitem = add_php_after_getitem_vvvvvzo.some(add_php_after_getitem_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 (gettype) + if (add_php_after_getitem && gettype) { - jQuery('#jform_add_php_after_getitem').closest('.control-group').show(); - if (jform_vvvvvzpvzd_required) + jQuery('#jform_php_after_getitem').closest('.control-group').show(); + if (jform_vvvvvzovzd_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_vvvvvzpvzd_required = false; - } - - jQuery('#jform_add_php_before_getitem').closest('.control-group').show(); - if (jform_vvvvvzpvze_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_vvvvvzpvze_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_vvvvvzovzd_required = false; } } else { - jQuery('#jform_add_php_after_getitem').closest('.control-group').hide(); - if (!jform_vvvvvzpvzd_required) + jQuery('#jform_php_after_getitem').closest('.control-group').hide(); + if (!jform_vvvvvzovzd_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_vvvvvzpvzd_required = true; - } - jQuery('#jform_add_php_before_getitem').closest('.control-group').hide(); - if (!jform_vvvvvzpvze_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_vvvvvzpvze_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_vvvvvzovzd_required = true; } } } -// the vvvvvzp Some function -function gettype_vvvvvzp_SomeFunc(gettype_vvvvvzp) +// the vvvvvzo Some function +function add_php_after_getitem_vvvvvzo_SomeFunc(add_php_after_getitem_vvvvvzo) { // set the function logic - if (gettype_vvvvvzp == 1 || gettype_vvvvvzp == 3) + if (add_php_after_getitem_vvvvvzo == 1) + { + return true; + } + return false; +} + +// the vvvvvzo Some function +function gettype_vvvvvzo_SomeFunc(gettype_vvvvvzo) +{ + // set the function logic + if (gettype_vvvvvzo == 1 || gettype_vvvvvzo == 3) { return true; } @@ -878,20 +804,8 @@ function gettype_vvvvvzp_SomeFunc(gettype_vvvvvzp) } // the vvvvvzq function -function vvvvvzq(add_php_getlistquery_vvvvvzq,gettype_vvvvvzq) +function vvvvvzq(gettype_vvvvvzq) { - if (isSet(add_php_getlistquery_vvvvvzq) && add_php_getlistquery_vvvvvzq.constructor !== Array) - { - var temp_vvvvvzq = add_php_getlistquery_vvvvvzq; - var add_php_getlistquery_vvvvvzq = []; - add_php_getlistquery_vvvvvzq.push(temp_vvvvvzq); - } - else if (!isSet(add_php_getlistquery_vvvvvzq)) - { - var add_php_getlistquery_vvvvvzq = []; - } - var add_php_getlistquery = add_php_getlistquery_vvvvvzq.some(add_php_getlistquery_vvvvvzq_SomeFunc); - if (isSet(gettype_vvvvvzq) && gettype_vvvvvzq.constructor !== Array) { var temp_vvvvvzq = gettype_vvvvvzq; @@ -906,49 +820,57 @@ function vvvvvzq(add_php_getlistquery_vvvvvzq,gettype_vvvvvzq) // set this function logic - if (add_php_getlistquery && gettype) + if (gettype) { - jQuery('#jform_php_getlistquery').closest('.control-group').show(); + jQuery('#jform_add_php_after_getitem').closest('.control-group').show(); + if (jform_vvvvvzqvze_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_vvvvvzqvze_required = false; + } + + jQuery('#jform_add_php_before_getitem').closest('.control-group').show(); if (jform_vvvvvzqvzf_required) { - updateFieldRequired('php_getlistquery',0); - jQuery('#jform_php_getlistquery').prop('required','required'); - jQuery('#jform_php_getlistquery').attr('aria-required',true); - jQuery('#jform_php_getlistquery').addClass('required'); + updateFieldRequired('add_php_before_getitem',0); + jQuery('#jform_add_php_before_getitem').prop('required','required'); + jQuery('#jform_add_php_before_getitem').attr('aria-required',true); + jQuery('#jform_add_php_before_getitem').addClass('required'); jform_vvvvvzqvzf_required = false; } } else { - jQuery('#jform_php_getlistquery').closest('.control-group').hide(); + jQuery('#jform_add_php_after_getitem').closest('.control-group').hide(); + if (!jform_vvvvvzqvze_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_vvvvvzqvze_required = true; + } + jQuery('#jform_add_php_before_getitem').closest('.control-group').hide(); if (!jform_vvvvvzqvzf_required) { - updateFieldRequired('php_getlistquery',1); - jQuery('#jform_php_getlistquery').removeAttr('required'); - jQuery('#jform_php_getlistquery').removeAttr('aria-required'); - jQuery('#jform_php_getlistquery').removeClass('required'); + updateFieldRequired('add_php_before_getitem',1); + jQuery('#jform_add_php_before_getitem').removeAttr('required'); + jQuery('#jform_add_php_before_getitem').removeAttr('aria-required'); + jQuery('#jform_add_php_before_getitem').removeClass('required'); jform_vvvvvzqvzf_required = true; } } } -// the vvvvvzq Some function -function add_php_getlistquery_vvvvvzq_SomeFunc(add_php_getlistquery_vvvvvzq) -{ - // set the function logic - if (add_php_getlistquery_vvvvvzq == 1) - { - return true; - } - return false; -} - // the vvvvvzq Some function function gettype_vvvvvzq_SomeFunc(gettype_vvvvvzq) { // set the function logic - if (gettype_vvvvvzq == 2 || gettype_vvvvvzq == 4) + if (gettype_vvvvvzq == 1 || gettype_vvvvvzq == 3) { return true; } @@ -956,19 +878,19 @@ function gettype_vvvvvzq_SomeFunc(gettype_vvvvvzq) } // the vvvvvzr function -function vvvvvzr(add_php_before_getitems_vvvvvzr,gettype_vvvvvzr) +function vvvvvzr(add_php_getlistquery_vvvvvzr,gettype_vvvvvzr) { - if (isSet(add_php_before_getitems_vvvvvzr) && add_php_before_getitems_vvvvvzr.constructor !== Array) + if (isSet(add_php_getlistquery_vvvvvzr) && add_php_getlistquery_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); + var temp_vvvvvzr = add_php_getlistquery_vvvvvzr; + var add_php_getlistquery_vvvvvzr = []; + add_php_getlistquery_vvvvvzr.push(temp_vvvvvzr); } - else if (!isSet(add_php_before_getitems_vvvvvzr)) + else if (!isSet(add_php_getlistquery_vvvvvzr)) { - var add_php_before_getitems_vvvvvzr = []; + var add_php_getlistquery_vvvvvzr = []; } - var add_php_before_getitems = add_php_before_getitems_vvvvvzr.some(add_php_before_getitems_vvvvvzr_SomeFunc); + var add_php_getlistquery = add_php_getlistquery_vvvvvzr.some(add_php_getlistquery_vvvvvzr_SomeFunc); if (isSet(gettype_vvvvvzr) && gettype_vvvvvzr.constructor !== Array) { @@ -984,38 +906,38 @@ function vvvvvzr(add_php_before_getitems_vvvvvzr,gettype_vvvvvzr) // set this function logic - if (add_php_before_getitems && gettype) + if (add_php_getlistquery && gettype) { - jQuery('#jform_php_before_getitems').closest('.control-group').show(); + jQuery('#jform_php_getlistquery').closest('.control-group').show(); if (jform_vvvvvzrvzg_required) { - updateFieldRequired('php_before_getitems',0); - jQuery('#jform_php_before_getitems').prop('required','required'); - jQuery('#jform_php_before_getitems').attr('aria-required',true); - jQuery('#jform_php_before_getitems').addClass('required'); + updateFieldRequired('php_getlistquery',0); + jQuery('#jform_php_getlistquery').prop('required','required'); + jQuery('#jform_php_getlistquery').attr('aria-required',true); + jQuery('#jform_php_getlistquery').addClass('required'); jform_vvvvvzrvzg_required = false; } } else { - jQuery('#jform_php_before_getitems').closest('.control-group').hide(); + jQuery('#jform_php_getlistquery').closest('.control-group').hide(); if (!jform_vvvvvzrvzg_required) { - updateFieldRequired('php_before_getitems',1); - jQuery('#jform_php_before_getitems').removeAttr('required'); - jQuery('#jform_php_before_getitems').removeAttr('aria-required'); - jQuery('#jform_php_before_getitems').removeClass('required'); + updateFieldRequired('php_getlistquery',1); + jQuery('#jform_php_getlistquery').removeAttr('required'); + jQuery('#jform_php_getlistquery').removeAttr('aria-required'); + jQuery('#jform_php_getlistquery').removeClass('required'); jform_vvvvvzrvzg_required = true; } } } // the vvvvvzr Some function -function add_php_before_getitems_vvvvvzr_SomeFunc(add_php_before_getitems_vvvvvzr) +function add_php_getlistquery_vvvvvzr_SomeFunc(add_php_getlistquery_vvvvvzr) { // set the function logic - if (add_php_before_getitems_vvvvvzr == 1) + if (add_php_getlistquery_vvvvvzr == 1) { return true; } @@ -1034,19 +956,19 @@ function gettype_vvvvvzr_SomeFunc(gettype_vvvvvzr) } // the vvvvvzs function -function vvvvvzs(add_php_after_getitems_vvvvvzs,gettype_vvvvvzs) +function vvvvvzs(add_php_before_getitems_vvvvvzs,gettype_vvvvvzs) { - if (isSet(add_php_after_getitems_vvvvvzs) && add_php_after_getitems_vvvvvzs.constructor !== Array) + if (isSet(add_php_before_getitems_vvvvvzs) && add_php_before_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); + var temp_vvvvvzs = add_php_before_getitems_vvvvvzs; + var add_php_before_getitems_vvvvvzs = []; + add_php_before_getitems_vvvvvzs.push(temp_vvvvvzs); } - else if (!isSet(add_php_after_getitems_vvvvvzs)) + else if (!isSet(add_php_before_getitems_vvvvvzs)) { - var add_php_after_getitems_vvvvvzs = []; + var add_php_before_getitems_vvvvvzs = []; } - var add_php_after_getitems = add_php_after_getitems_vvvvvzs.some(add_php_after_getitems_vvvvvzs_SomeFunc); + var add_php_before_getitems = add_php_before_getitems_vvvvvzs.some(add_php_before_getitems_vvvvvzs_SomeFunc); if (isSet(gettype_vvvvvzs) && gettype_vvvvvzs.constructor !== Array) { @@ -1062,38 +984,38 @@ function vvvvvzs(add_php_after_getitems_vvvvvzs,gettype_vvvvvzs) // set this function logic - if (add_php_after_getitems && gettype) + if (add_php_before_getitems && gettype) { - jQuery('#jform_php_after_getitems').closest('.control-group').show(); + jQuery('#jform_php_before_getitems').closest('.control-group').show(); if (jform_vvvvvzsvzh_required) { - updateFieldRequired('php_after_getitems',0); - jQuery('#jform_php_after_getitems').prop('required','required'); - jQuery('#jform_php_after_getitems').attr('aria-required',true); - jQuery('#jform_php_after_getitems').addClass('required'); + updateFieldRequired('php_before_getitems',0); + jQuery('#jform_php_before_getitems').prop('required','required'); + jQuery('#jform_php_before_getitems').attr('aria-required',true); + jQuery('#jform_php_before_getitems').addClass('required'); jform_vvvvvzsvzh_required = false; } } else { - jQuery('#jform_php_after_getitems').closest('.control-group').hide(); + jQuery('#jform_php_before_getitems').closest('.control-group').hide(); if (!jform_vvvvvzsvzh_required) { - updateFieldRequired('php_after_getitems',1); - jQuery('#jform_php_after_getitems').removeAttr('required'); - jQuery('#jform_php_after_getitems').removeAttr('aria-required'); - jQuery('#jform_php_after_getitems').removeClass('required'); + updateFieldRequired('php_before_getitems',1); + jQuery('#jform_php_before_getitems').removeAttr('required'); + jQuery('#jform_php_before_getitems').removeAttr('aria-required'); + jQuery('#jform_php_before_getitems').removeClass('required'); jform_vvvvvzsvzh_required = true; } } } // the vvvvvzs Some function -function add_php_after_getitems_vvvvvzs_SomeFunc(add_php_after_getitems_vvvvvzs) +function add_php_before_getitems_vvvvvzs_SomeFunc(add_php_before_getitems_vvvvvzs) { // set the function logic - if (add_php_after_getitems_vvvvvzs == 1) + if (add_php_before_getitems_vvvvvzs == 1) { return true; } @@ -1111,93 +1033,78 @@ function gettype_vvvvvzs_SomeFunc(gettype_vvvvvzs) return false; } -// the vvvvvzu function -function vvvvvzu(gettype_vvvvvzu) +// the vvvvvzt function +function vvvvvzt(add_php_after_getitems_vvvvvzt,gettype_vvvvvzt) { - if (isSet(gettype_vvvvvzu) && gettype_vvvvvzu.constructor !== Array) + if (isSet(add_php_after_getitems_vvvvvzt) && add_php_after_getitems_vvvvvzt.constructor !== Array) { - var temp_vvvvvzu = gettype_vvvvvzu; - var gettype_vvvvvzu = []; - gettype_vvvvvzu.push(temp_vvvvvzu); + var temp_vvvvvzt = add_php_after_getitems_vvvvvzt; + var add_php_after_getitems_vvvvvzt = []; + add_php_after_getitems_vvvvvzt.push(temp_vvvvvzt); } - else if (!isSet(gettype_vvvvvzu)) + else if (!isSet(add_php_after_getitems_vvvvvzt)) { - var gettype_vvvvvzu = []; + var add_php_after_getitems_vvvvvzt = []; } - var gettype = gettype_vvvvvzu.some(gettype_vvvvvzu_SomeFunc); + var add_php_after_getitems = add_php_after_getitems_vvvvvzt.some(add_php_after_getitems_vvvvvzt_SomeFunc); + + 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) + if (add_php_after_getitems && gettype) { - jQuery('#jform_add_php_after_getitems').closest('.control-group').show(); - if (jform_vvvvvzuvzi_required) + jQuery('#jform_php_after_getitems').closest('.control-group').show(); + if (jform_vvvvvztvzi_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_vvvvvzuvzi_required = false; - } - - jQuery('#jform_add_php_before_getitems').closest('.control-group').show(); - if (jform_vvvvvzuvzj_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_vvvvvzuvzj_required = false; - } - - jQuery('#jform_add_php_getlistquery').closest('.control-group').show(); - if (jform_vvvvvzuvzk_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_vvvvvzuvzk_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_vvvvvztvzi_required = false; } } else { - jQuery('#jform_add_php_after_getitems').closest('.control-group').hide(); - if (!jform_vvvvvzuvzi_required) + jQuery('#jform_php_after_getitems').closest('.control-group').hide(); + if (!jform_vvvvvztvzi_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_vvvvvzuvzi_required = true; - } - jQuery('#jform_add_php_before_getitems').closest('.control-group').hide(); - if (!jform_vvvvvzuvzj_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_vvvvvzuvzj_required = true; - } - jQuery('#jform_add_php_getlistquery').closest('.control-group').hide(); - if (!jform_vvvvvzuvzk_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_vvvvvzuvzk_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_vvvvvztvzi_required = true; } } } -// the vvvvvzu Some function -function gettype_vvvvvzu_SomeFunc(gettype_vvvvvzu) +// the vvvvvzt Some function +function add_php_after_getitems_vvvvvzt_SomeFunc(add_php_after_getitems_vvvvvzt) { // set the function logic - if (gettype_vvvvvzu == 2 || gettype_vvvvvzu == 4) + if (add_php_after_getitems_vvvvvzt == 1) + { + return true; + } + return false; +} + +// the vvvvvzt Some function +function gettype_vvvvvzt_SomeFunc(gettype_vvvvvzt) +{ + // set the function logic + if (gettype_vvvvvzt == 2 || gettype_vvvvvzt == 4) { return true; } @@ -1223,26 +1130,64 @@ function vvvvvzv(gettype_vvvvvzv) // set this function logic if (gettype) { - jQuery('#jform_pagination').closest('.control-group').show(); + jQuery('#jform_add_php_after_getitems').closest('.control-group').show(); + if (jform_vvvvvzvvzj_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_vvvvvzvvzj_required = false; + } + + jQuery('#jform_add_php_before_getitems').closest('.control-group').show(); + if (jform_vvvvvzvvzk_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_vvvvvzvvzk_required = false; + } + + jQuery('#jform_add_php_getlistquery').closest('.control-group').show(); if (jform_vvvvvzvvzl_required) { - updateFieldRequired('pagination',0); - jQuery('#jform_pagination').prop('required','required'); - jQuery('#jform_pagination').attr('aria-required',true); - jQuery('#jform_pagination').addClass('required'); + updateFieldRequired('add_php_getlistquery',0); + jQuery('#jform_add_php_getlistquery').prop('required','required'); + jQuery('#jform_add_php_getlistquery').attr('aria-required',true); + jQuery('#jform_add_php_getlistquery').addClass('required'); jform_vvvvvzvvzl_required = false; } } else { - jQuery('#jform_pagination').closest('.control-group').hide(); + jQuery('#jform_add_php_after_getitems').closest('.control-group').hide(); + if (!jform_vvvvvzvvzj_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_vvvvvzvvzj_required = true; + } + jQuery('#jform_add_php_before_getitems').closest('.control-group').hide(); + if (!jform_vvvvvzvvzk_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_vvvvvzvvzk_required = true; + } + jQuery('#jform_add_php_getlistquery').closest('.control-group').hide(); if (!jform_vvvvvzvvzl_required) { - updateFieldRequired('pagination',1); - jQuery('#jform_pagination').removeAttr('required'); - jQuery('#jform_pagination').removeAttr('aria-required'); - jQuery('#jform_pagination').removeClass('required'); + updateFieldRequired('add_php_getlistquery',1); + jQuery('#jform_add_php_getlistquery').removeAttr('required'); + jQuery('#jform_add_php_getlistquery').removeAttr('aria-required'); + jQuery('#jform_add_php_getlistquery').removeClass('required'); jform_vvvvvzvvzl_required = true; } } @@ -1252,7 +1197,7 @@ function vvvvvzv(gettype_vvvvvzv) function gettype_vvvvvzv_SomeFunc(gettype_vvvvvzv) { // set the function logic - if (gettype_vvvvvzv == 2) + if (gettype_vvvvvzv == 2 || gettype_vvvvvzv == 4) { return true; } @@ -1278,26 +1223,26 @@ function vvvvvzw(gettype_vvvvvzw) // set this function logic if (gettype) { - jQuery('#jform_add_php_router_parse').closest('.control-group').show(); + jQuery('#jform_pagination').closest('.control-group').show(); if (jform_vvvvvzwvzm_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'); + updateFieldRequired('pagination',0); + jQuery('#jform_pagination').prop('required','required'); + jQuery('#jform_pagination').attr('aria-required',true); + jQuery('#jform_pagination').addClass('required'); jform_vvvvvzwvzm_required = false; } } else { - jQuery('#jform_add_php_router_parse').closest('.control-group').hide(); + jQuery('#jform_pagination').closest('.control-group').hide(); if (!jform_vvvvvzwvzm_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'); + updateFieldRequired('pagination',1); + jQuery('#jform_pagination').removeAttr('required'); + jQuery('#jform_pagination').removeAttr('aria-required'); + jQuery('#jform_pagination').removeClass('required'); jform_vvvvvzwvzm_required = true; } } @@ -1307,7 +1252,7 @@ function vvvvvzw(gettype_vvvvvzw) function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw) { // set the function logic - if (gettype_vvvvvzw == 1 || gettype_vvvvvzw == 2) + if (gettype_vvvvvzw == 2) { return true; } @@ -1315,7 +1260,7 @@ function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw) } // the vvvvvzx function -function vvvvvzx(gettype_vvvvvzx,add_php_router_parse_vvvvvzx) +function vvvvvzx(gettype_vvvvvzx) { if (isSet(gettype_vvvvvzx) && gettype_vvvvvzx.constructor !== Array) { @@ -1329,42 +1274,30 @@ function vvvvvzx(gettype_vvvvvzx,add_php_router_parse_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) + if (gettype) { - jQuery('#jform_php_router_parse').closest('.control-group').show(); + jQuery('#jform_add_php_router_parse').closest('.control-group').show(); if (jform_vvvvvzxvzn_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'); + 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_vvvvvzxvzn_required = false; } } else { - jQuery('#jform_php_router_parse').closest('.control-group').hide(); + jQuery('#jform_add_php_router_parse').closest('.control-group').hide(); if (!jform_vvvvvzxvzn_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'); + 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_vvvvvzxvzn_required = true; } } @@ -1381,11 +1314,78 @@ function gettype_vvvvvzx_SomeFunc(gettype_vvvvvzx) return false; } -// the vvvvvzx Some function -function add_php_router_parse_vvvvvzx_SomeFunc(add_php_router_parse_vvvvvzx) +// the vvvvvzy function +function vvvvvzy(gettype_vvvvvzy,add_php_router_parse_vvvvvzy) +{ + if (isSet(gettype_vvvvvzy) && gettype_vvvvvzy.constructor !== Array) + { + var temp_vvvvvzy = gettype_vvvvvzy; + var gettype_vvvvvzy = []; + gettype_vvvvvzy.push(temp_vvvvvzy); + } + else if (!isSet(gettype_vvvvvzy)) + { + var gettype_vvvvvzy = []; + } + var gettype = gettype_vvvvvzy.some(gettype_vvvvvzy_SomeFunc); + + if (isSet(add_php_router_parse_vvvvvzy) && add_php_router_parse_vvvvvzy.constructor !== Array) + { + var temp_vvvvvzy = add_php_router_parse_vvvvvzy; + var add_php_router_parse_vvvvvzy = []; + add_php_router_parse_vvvvvzy.push(temp_vvvvvzy); + } + else if (!isSet(add_php_router_parse_vvvvvzy)) + { + var add_php_router_parse_vvvvvzy = []; + } + var add_php_router_parse = add_php_router_parse_vvvvvzy.some(add_php_router_parse_vvvvvzy_SomeFunc); + + + // set this function logic + if (gettype && add_php_router_parse) + { + jQuery('#jform_php_router_parse').closest('.control-group').show(); + if (jform_vvvvvzyvzo_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_vvvvvzyvzo_required = false; + } + + } + else + { + jQuery('#jform_php_router_parse').closest('.control-group').hide(); + if (!jform_vvvvvzyvzo_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_vvvvvzyvzo_required = true; + } + } +} + +// the vvvvvzy Some function +function gettype_vvvvvzy_SomeFunc(gettype_vvvvvzy) { // set the function logic - if (add_php_router_parse_vvvvvzx == 1) + if (gettype_vvvvvzy == 1 || gettype_vvvvvzy == 2) + { + return true; + } + return false; +} + +// the vvvvvzy Some function +function add_php_router_parse_vvvvvzy_SomeFunc(add_php_router_parse_vvvvvzy) +{ + // set the function logic + if (add_php_router_parse_vvvvvzy == 1) { return true; } diff --git a/admin/models/forms/field.js b/admin/models/forms/field.js index c61d5fb1b..88104b5d0 100644 --- a/admin/models/forms/field.js +++ b/admin/models/forms/field.js @@ -23,151 +23,96 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvwalvzu_required = false; jform_vvvvwamvzv_required = false; jform_vvvvwanvzw_required = false; jform_vvvvwaovzx_required = false; -jform_vvvvwarvzy_required = false; +jform_vvvvwapvzy_required = false; jform_vvvvwasvzz_required = false; jform_vvvvwatwaa_required = false; jform_vvvvwauwab_required = false; +jform_vvvvwavwac_required = false; // Initial Script jQuery(document).ready(function() { - var datalenght_vvvvwal = jQuery("#jform_datalenght").val(); - vvvvwal(datalenght_vvvvwal); + var datalenght_vvvvwam = jQuery("#jform_datalenght").val(); + vvvvwam(datalenght_vvvvwam); - var datadefault_vvvvwam = jQuery("#jform_datadefault").val(); - vvvvwam(datadefault_vvvvwam); - - var datatype_vvvvwan = jQuery("#jform_datatype").val(); - vvvvwan(datatype_vvvvwan); + var datadefault_vvvvwan = jQuery("#jform_datadefault").val(); + vvvvwan(datadefault_vvvvwan); var datatype_vvvvwao = jQuery("#jform_datatype").val(); vvvvwao(datatype_vvvvwao); - var store_vvvvwap = jQuery("#jform_store").val(); var datatype_vvvvwap = jQuery("#jform_datatype").val(); - vvvvwap(store_vvvvwap,datatype_vvvvwap); + vvvvwap(datatype_vvvvwap); - var add_css_view_vvvvwar = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvwar(add_css_view_vvvvwar); + var store_vvvvwaq = jQuery("#jform_store").val(); + var datatype_vvvvwaq = jQuery("#jform_datatype").val(); + vvvvwaq(store_vvvvwaq,datatype_vvvvwaq); - var add_css_views_vvvvwas = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvwas(add_css_views_vvvvwas); + var add_css_view_vvvvwas = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvwas(add_css_view_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_css_views_vvvvwat = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvwat(add_css_views_vvvvwat); - var add_javascript_views_footer_vvvvwau = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); - vvvvwau(add_javascript_views_footer_vvvvwau); + var add_javascript_view_footer_vvvvwau = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvwau(add_javascript_view_footer_vvvvwau); + + var add_javascript_views_footer_vvvvwav = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvwav(add_javascript_views_footer_vvvvwav); }); -// the vvvvwal function -function vvvvwal(datalenght_vvvvwal) +// the vvvvwam function +function vvvvwam(datalenght_vvvvwam) { - if (isSet(datalenght_vvvvwal) && datalenght_vvvvwal.constructor !== Array) + if (isSet(datalenght_vvvvwam) && datalenght_vvvvwam.constructor !== Array) { - var temp_vvvvwal = datalenght_vvvvwal; - var datalenght_vvvvwal = []; - datalenght_vvvvwal.push(temp_vvvvwal); + var temp_vvvvwam = datalenght_vvvvwam; + var datalenght_vvvvwam = []; + datalenght_vvvvwam.push(temp_vvvvwam); } - else if (!isSet(datalenght_vvvvwal)) + else if (!isSet(datalenght_vvvvwam)) { - var datalenght_vvvvwal = []; + var datalenght_vvvvwam = []; } - var datalenght = datalenght_vvvvwal.some(datalenght_vvvvwal_SomeFunc); + var datalenght = datalenght_vvvvwam.some(datalenght_vvvvwam_SomeFunc); // set this function logic if (datalenght) { jQuery('#jform_datalenght_other').closest('.control-group').show(); - if (jform_vvvvwalvzu_required) + if (jform_vvvvwamvzv_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_vvvvwalvzu_required = false; - } - - } - else - { - jQuery('#jform_datalenght_other').closest('.control-group').hide(); - if (!jform_vvvvwalvzu_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_vvvvwalvzu_required = true; - } - } -} - -// the vvvvwal Some function -function datalenght_vvvvwal_SomeFunc(datalenght_vvvvwal) -{ - // set the function logic - if (datalenght_vvvvwal == 'Other') - { - return true; - } - return false; -} - -// the vvvvwam function -function vvvvwam(datadefault_vvvvwam) -{ - if (isSet(datadefault_vvvvwam) && datadefault_vvvvwam.constructor !== Array) - { - var temp_vvvvwam = datadefault_vvvvwam; - var datadefault_vvvvwam = []; - datadefault_vvvvwam.push(temp_vvvvwam); - } - else if (!isSet(datadefault_vvvvwam)) - { - var datadefault_vvvvwam = []; - } - var datadefault = datadefault_vvvvwam.some(datadefault_vvvvwam_SomeFunc); - - - // set this function logic - if (datadefault) - { - jQuery('#jform_datadefault_other').closest('.control-group').show(); - if (jform_vvvvwamvzv_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_vvvvwamvzv_required = false; } } else { - jQuery('#jform_datadefault_other').closest('.control-group').hide(); + jQuery('#jform_datalenght_other').closest('.control-group').hide(); if (!jform_vvvvwamvzv_required) { - updateFieldRequired('datadefault_other',1); - jQuery('#jform_datadefault_other').removeAttr('required'); - jQuery('#jform_datadefault_other').removeAttr('aria-required'); - jQuery('#jform_datadefault_other').removeClass('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_vvvvwamvzv_required = true; } } } // the vvvvwam Some function -function datadefault_vvvvwam_SomeFunc(datadefault_vvvvwam) +function datalenght_vvvvwam_SomeFunc(datalenght_vvvvwam) { // set the function logic - if (datadefault_vvvvwam == 'Other') + if (datalenght_vvvvwam == 'Other') { return true; } @@ -175,58 +120,54 @@ function datadefault_vvvvwam_SomeFunc(datadefault_vvvvwam) } // the vvvvwan function -function vvvvwan(datatype_vvvvwan) +function vvvvwan(datadefault_vvvvwan) { - if (isSet(datatype_vvvvwan) && datatype_vvvvwan.constructor !== Array) + if (isSet(datadefault_vvvvwan) && datadefault_vvvvwan.constructor !== Array) { - var temp_vvvvwan = datatype_vvvvwan; - var datatype_vvvvwan = []; - datatype_vvvvwan.push(temp_vvvvwan); + var temp_vvvvwan = datadefault_vvvvwan; + var datadefault_vvvvwan = []; + datadefault_vvvvwan.push(temp_vvvvwan); } - else if (!isSet(datatype_vvvvwan)) + else if (!isSet(datadefault_vvvvwan)) { - var datatype_vvvvwan = []; + var datadefault_vvvvwan = []; } - var datatype = datatype_vvvvwan.some(datatype_vvvvwan_SomeFunc); + var datadefault = datadefault_vvvvwan.some(datadefault_vvvvwan_SomeFunc); // set this function logic - if (datatype) + if (datadefault) { - jQuery('#jform_datadefault').closest('.control-group').show(); - jQuery('#jform_datalenght').closest('.control-group').show(); - jQuery('#jform_indexes').closest('.control-group').show(); + jQuery('#jform_datadefault_other').closest('.control-group').show(); if (jform_vvvvwanvzw_required) { - updateFieldRequired('indexes',0); - jQuery('#jform_indexes').prop('required','required'); - jQuery('#jform_indexes').attr('aria-required',true); - jQuery('#jform_indexes').addClass('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_vvvvwanvzw_required = false; } } else { - jQuery('#jform_datadefault').closest('.control-group').hide(); - jQuery('#jform_datalenght').closest('.control-group').hide(); - jQuery('#jform_indexes').closest('.control-group').hide(); + jQuery('#jform_datadefault_other').closest('.control-group').hide(); if (!jform_vvvvwanvzw_required) { - updateFieldRequired('indexes',1); - jQuery('#jform_indexes').removeAttr('required'); - jQuery('#jform_indexes').removeAttr('aria-required'); - jQuery('#jform_indexes').removeClass('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_vvvvwanvzw_required = true; } } } // the vvvvwan Some function -function datatype_vvvvwan_SomeFunc(datatype_vvvvwan) +function datadefault_vvvvwan_SomeFunc(datadefault_vvvvwan) { // set the function logic - 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') + if (datadefault_vvvvwan == 'Other') { return true; } @@ -252,26 +193,30 @@ function vvvvwao(datatype_vvvvwao) // set this function logic if (datatype) { - jQuery('#jform_store').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_vvvvwaovzx_required) { - updateFieldRequired('store',0); - jQuery('#jform_store').prop('required','required'); - jQuery('#jform_store').attr('aria-required',true); - jQuery('#jform_store').addClass('required'); + updateFieldRequired('indexes',0); + jQuery('#jform_indexes').prop('required','required'); + jQuery('#jform_indexes').attr('aria-required',true); + jQuery('#jform_indexes').addClass('required'); jform_vvvvwaovzx_required = false; } } else { - jQuery('#jform_store').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_vvvvwaovzx_required) { - updateFieldRequired('store',1); - jQuery('#jform_store').removeAttr('required'); - jQuery('#jform_store').removeAttr('aria-required'); - jQuery('#jform_store').removeClass('required'); + updateFieldRequired('indexes',1); + jQuery('#jform_indexes').removeAttr('required'); + jQuery('#jform_indexes').removeAttr('aria-required'); + jQuery('#jform_indexes').removeClass('required'); jform_vvvvwaovzx_required = true; } } @@ -281,7 +226,7 @@ function vvvvwao(datatype_vvvvwao) 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') + if (datatype_vvvvwao == 'CHAR' || datatype_vvvvwao == 'VARCHAR' || datatype_vvvvwao == 'DATETIME' || datatype_vvvvwao == 'DATE' || datatype_vvvvwao == 'TIME' || datatype_vvvvwao == 'INT' || datatype_vvvvwao == 'TINYINT' || datatype_vvvvwao == 'BIGINT' || datatype_vvvvwao == 'FLOAT' || datatype_vvvvwao == 'DECIMAL' || datatype_vvvvwao == 'DOUBLE') { return true; } @@ -289,20 +234,8 @@ function datatype_vvvvwao_SomeFunc(datatype_vvvvwao) } // the vvvvwap function -function vvvvwap(store_vvvvwap,datatype_vvvvwap) +function 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; @@ -317,27 +250,33 @@ function vvvvwap(store_vvvvwap,datatype_vvvvwap) // set this function logic - if (store && datatype) + if (datatype) { - jQuery('.note_whmcs_encryption').closest('.control-group').show(); + jQuery('#jform_store').closest('.control-group').show(); + if (jform_vvvvwapvzy_required) + { + updateFieldRequired('store',0); + jQuery('#jform_store').prop('required','required'); + jQuery('#jform_store').attr('aria-required',true); + jQuery('#jform_store').addClass('required'); + jform_vvvvwapvzy_required = false; + } + } else { - jQuery('.note_whmcs_encryption').closest('.control-group').hide(); + jQuery('#jform_store').closest('.control-group').hide(); + if (!jform_vvvvwapvzy_required) + { + updateFieldRequired('store',1); + jQuery('#jform_store').removeAttr('required'); + jQuery('#jform_store').removeAttr('aria-required'); + jQuery('#jform_store').removeClass('required'); + jform_vvvvwapvzy_required = true; + } } } -// the vvvvwap Some function -function store_vvvvwap_SomeFunc(store_vvvvwap) -{ - // set the function logic - if (store_vvvvwap == 4) - { - return true; - } - return false; -} - // the vvvvwap Some function function datatype_vvvvwap_SomeFunc(datatype_vvvvwap) { @@ -349,126 +288,187 @@ function datatype_vvvvwap_SomeFunc(datatype_vvvvwap) return false; } -// the vvvvwar function -function vvvvwar(add_css_view_vvvvwar) +// the vvvvwaq function +function vvvvwaq(store_vvvvwaq,datatype_vvvvwaq) +{ + if (isSet(store_vvvvwaq) && store_vvvvwaq.constructor !== Array) + { + var temp_vvvvwaq = store_vvvvwaq; + var store_vvvvwaq = []; + store_vvvvwaq.push(temp_vvvvwaq); + } + else if (!isSet(store_vvvvwaq)) + { + var store_vvvvwaq = []; + } + var store = store_vvvvwaq.some(store_vvvvwaq_SomeFunc); + + if (isSet(datatype_vvvvwaq) && datatype_vvvvwaq.constructor !== Array) + { + var temp_vvvvwaq = datatype_vvvvwaq; + var datatype_vvvvwaq = []; + datatype_vvvvwaq.push(temp_vvvvwaq); + } + else if (!isSet(datatype_vvvvwaq)) + { + var datatype_vvvvwaq = []; + } + var datatype = datatype_vvvvwaq.some(datatype_vvvvwaq_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 vvvvwaq Some function +function store_vvvvwaq_SomeFunc(store_vvvvwaq) { // set the function logic - if (add_css_view_vvvvwar == 1) + if (store_vvvvwaq == 4) + { + return true; + } + return false; +} + +// the vvvvwaq Some function +function datatype_vvvvwaq_SomeFunc(datatype_vvvvwaq) +{ + // set the function logic + if (datatype_vvvvwaq == 'CHAR' || datatype_vvvvwaq == 'VARCHAR' || datatype_vvvvwaq == 'TEXT' || datatype_vvvvwaq == 'MEDIUMTEXT' || datatype_vvvvwaq == 'LONGTEXT') + { + return true; + } + return false; +} + +// the vvvvwas function +function vvvvwas(add_css_view_vvvvwas) +{ + // set the function logic + if (add_css_view_vvvvwas == 1) { jQuery('#jform_css_view').closest('.control-group').show(); - if (jform_vvvvwarvzy_required) + if (jform_vvvvwasvzz_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_vvvvwarvzy_required = false; - } - - } - else - { - jQuery('#jform_css_view').closest('.control-group').hide(); - if (!jform_vvvvwarvzy_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_vvvvwarvzy_required = true; - } - } -} - -// the vvvvwas function -function vvvvwas(add_css_views_vvvvwas) -{ - // set the function logic - if (add_css_views_vvvvwas == 1) - { - jQuery('#jform_css_views').closest('.control-group').show(); - if (jform_vvvvwasvzz_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_vvvvwasvzz_required = false; } } else { - jQuery('#jform_css_views').closest('.control-group').hide(); + jQuery('#jform_css_view').closest('.control-group').hide(); if (!jform_vvvvwasvzz_required) { - updateFieldRequired('css_views',1); - jQuery('#jform_css_views').removeAttr('required'); - jQuery('#jform_css_views').removeAttr('aria-required'); - jQuery('#jform_css_views').removeClass('required'); + updateFieldRequired('css_view',1); + jQuery('#jform_css_view').removeAttr('required'); + jQuery('#jform_css_view').removeAttr('aria-required'); + jQuery('#jform_css_view').removeClass('required'); jform_vvvvwasvzz_required = true; } } } // the vvvvwat function -function vvvvwat(add_javascript_view_footer_vvvvwat) +function vvvvwat(add_css_views_vvvvwat) { // set the function logic - if (add_javascript_view_footer_vvvvwat == 1) + if (add_css_views_vvvvwat == 1) { - jQuery('#jform_javascript_view_footer').closest('.control-group').show(); + jQuery('#jform_css_views').closest('.control-group').show(); if (jform_vvvvwatwaa_required) { - updateFieldRequired('javascript_view_footer',0); - jQuery('#jform_javascript_view_footer').prop('required','required'); - jQuery('#jform_javascript_view_footer').attr('aria-required',true); - jQuery('#jform_javascript_view_footer').addClass('required'); + updateFieldRequired('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_vvvvwatwaa_required = false; } } else { - jQuery('#jform_javascript_view_footer').closest('.control-group').hide(); + jQuery('#jform_css_views').closest('.control-group').hide(); if (!jform_vvvvwatwaa_required) { - updateFieldRequired('javascript_view_footer',1); - jQuery('#jform_javascript_view_footer').removeAttr('required'); - jQuery('#jform_javascript_view_footer').removeAttr('aria-required'); - jQuery('#jform_javascript_view_footer').removeClass('required'); + updateFieldRequired('css_views',1); + jQuery('#jform_css_views').removeAttr('required'); + jQuery('#jform_css_views').removeAttr('aria-required'); + jQuery('#jform_css_views').removeClass('required'); jform_vvvvwatwaa_required = true; } } } // the vvvvwau function -function vvvvwau(add_javascript_views_footer_vvvvwau) +function vvvvwau(add_javascript_view_footer_vvvvwau) { // set the function logic - if (add_javascript_views_footer_vvvvwau == 1) + if (add_javascript_view_footer_vvvvwau == 1) { - jQuery('#jform_javascript_views_footer').closest('.control-group').show(); + jQuery('#jform_javascript_view_footer').closest('.control-group').show(); if (jform_vvvvwauwab_required) { - updateFieldRequired('javascript_views_footer',0); - jQuery('#jform_javascript_views_footer').prop('required','required'); - jQuery('#jform_javascript_views_footer').attr('aria-required',true); - jQuery('#jform_javascript_views_footer').addClass('required'); + updateFieldRequired('javascript_view_footer',0); + jQuery('#jform_javascript_view_footer').prop('required','required'); + jQuery('#jform_javascript_view_footer').attr('aria-required',true); + jQuery('#jform_javascript_view_footer').addClass('required'); jform_vvvvwauwab_required = false; } } else { - jQuery('#jform_javascript_views_footer').closest('.control-group').hide(); + jQuery('#jform_javascript_view_footer').closest('.control-group').hide(); if (!jform_vvvvwauwab_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_vvvvwauwab_required = true; + } + } +} + +// the vvvvwav function +function vvvvwav(add_javascript_views_footer_vvvvwav) +{ + // set the function logic + if (add_javascript_views_footer_vvvvwav == 1) + { + jQuery('#jform_javascript_views_footer').closest('.control-group').show(); + if (jform_vvvvwavwac_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_vvvvwavwac_required = false; + } + + } + else + { + jQuery('#jform_javascript_views_footer').closest('.control-group').hide(); + if (!jform_vvvvwavwac_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_vvvvwauwab_required = true; + jform_vvvvwavwac_required = true; } } } diff --git a/admin/models/forms/help_document.js b/admin/models/forms/help_document.js index a711e8134..17a9dc9dc 100644 --- a/admin/models/forms/help_document.js +++ b/admin/models/forms/help_document.js @@ -23,24 +23,21 @@ /-----------------------------------------------------------------------------------------------------------------------------*/ // Some Global Values -jform_vvvvwbfwan_required = false; jform_vvvvwbgwao_required = false; jform_vvvvwbhwap_required = false; jform_vvvvwbiwaq_required = false; jform_vvvvwbjwar_required = false; jform_vvvvwbkwas_required = false; +jform_vvvvwblwat_required = false; // Initial Script jQuery(document).ready(function() { - var location_vvvvwbf = jQuery("#jform_location input[type='radio']:checked").val(); - vvvvwbf(location_vvvvwbf); - var location_vvvvwbg = jQuery("#jform_location input[type='radio']:checked").val(); vvvvwbg(location_vvvvwbg); - var type_vvvvwbh = jQuery("#jform_type").val(); - vvvvwbh(type_vvvvwbh); + var location_vvvvwbh = jQuery("#jform_location input[type='radio']:checked").val(); + vvvvwbh(location_vvvvwbh); var type_vvvvwbi = jQuery("#jform_type").val(); vvvvwbi(type_vvvvwbi); @@ -48,127 +45,75 @@ jQuery(document).ready(function() var type_vvvvwbj = jQuery("#jform_type").val(); vvvvwbj(type_vvvvwbj); - var target_vvvvwbk = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwbk(target_vvvvwbk); + var type_vvvvwbk = jQuery("#jform_type").val(); + vvvvwbk(type_vvvvwbk); + + var target_vvvvwbl = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwbl(target_vvvvwbl); }); -// the vvvvwbf function -function vvvvwbf(location_vvvvwbf) -{ - // set the function logic - if (location_vvvvwbf == 1) - { - jQuery('#jform_admin_view').closest('.control-group').show(); - if (jform_vvvvwbfwan_required) - { - updateFieldRequired('admin_view',0); - jQuery('#jform_admin_view').prop('required','required'); - jQuery('#jform_admin_view').attr('aria-required',true); - jQuery('#jform_admin_view').addClass('required'); - jform_vvvvwbfwan_required = false; - } - - } - else - { - jQuery('#jform_admin_view').closest('.control-group').hide(); - if (!jform_vvvvwbfwan_required) - { - updateFieldRequired('admin_view',1); - jQuery('#jform_admin_view').removeAttr('required'); - jQuery('#jform_admin_view').removeAttr('aria-required'); - jQuery('#jform_admin_view').removeClass('required'); - jform_vvvvwbfwan_required = true; - } - } -} - // the vvvvwbg function function vvvvwbg(location_vvvvwbg) { // set the function logic - if (location_vvvvwbg == 2) + if (location_vvvvwbg == 1) { - jQuery('#jform_site_view').closest('.control-group').show(); + jQuery('#jform_admin_view').closest('.control-group').show(); if (jform_vvvvwbgwao_required) { - updateFieldRequired('site_view',0); - jQuery('#jform_site_view').prop('required','required'); - jQuery('#jform_site_view').attr('aria-required',true); - jQuery('#jform_site_view').addClass('required'); + updateFieldRequired('admin_view',0); + jQuery('#jform_admin_view').prop('required','required'); + jQuery('#jform_admin_view').attr('aria-required',true); + jQuery('#jform_admin_view').addClass('required'); jform_vvvvwbgwao_required = false; } } else { - jQuery('#jform_site_view').closest('.control-group').hide(); + jQuery('#jform_admin_view').closest('.control-group').hide(); if (!jform_vvvvwbgwao_required) { - updateFieldRequired('site_view',1); - jQuery('#jform_site_view').removeAttr('required'); - jQuery('#jform_site_view').removeAttr('aria-required'); - jQuery('#jform_site_view').removeClass('required'); + updateFieldRequired('admin_view',1); + jQuery('#jform_admin_view').removeAttr('required'); + jQuery('#jform_admin_view').removeAttr('aria-required'); + jQuery('#jform_admin_view').removeClass('required'); jform_vvvvwbgwao_required = true; } } } // the vvvvwbh function -function vvvvwbh(type_vvvvwbh) +function vvvvwbh(location_vvvvwbh) { - if (isSet(type_vvvvwbh) && type_vvvvwbh.constructor !== Array) + // set the function logic + if (location_vvvvwbh == 2) { - var temp_vvvvwbh = type_vvvvwbh; - var type_vvvvwbh = []; - type_vvvvwbh.push(temp_vvvvwbh); - } - else if (!isSet(type_vvvvwbh)) - { - var type_vvvvwbh = []; - } - var type = type_vvvvwbh.some(type_vvvvwbh_SomeFunc); - - - // set this function logic - if (type) - { - jQuery('#jform_url').closest('.control-group').show(); + jQuery('#jform_site_view').closest('.control-group').show(); if (jform_vvvvwbhwap_required) { - updateFieldRequired('url',0); - jQuery('#jform_url').prop('required','required'); - jQuery('#jform_url').attr('aria-required',true); - jQuery('#jform_url').addClass('required'); + updateFieldRequired('site_view',0); + jQuery('#jform_site_view').prop('required','required'); + jQuery('#jform_site_view').attr('aria-required',true); + jQuery('#jform_site_view').addClass('required'); jform_vvvvwbhwap_required = false; } } else { - jQuery('#jform_url').closest('.control-group').hide(); + jQuery('#jform_site_view').closest('.control-group').hide(); if (!jform_vvvvwbhwap_required) { - updateFieldRequired('url',1); - jQuery('#jform_url').removeAttr('required'); - jQuery('#jform_url').removeAttr('aria-required'); - jQuery('#jform_url').removeClass('required'); + updateFieldRequired('site_view',1); + jQuery('#jform_site_view').removeAttr('required'); + jQuery('#jform_site_view').removeAttr('aria-required'); + jQuery('#jform_site_view').removeClass('required'); jform_vvvvwbhwap_required = true; } } } -// the vvvvwbh Some function -function type_vvvvwbh_SomeFunc(type_vvvvwbh) -{ - // set the function logic - if (type_vvvvwbh == 3) - { - return true; - } - return false; -} - // the vvvvwbi function function vvvvwbi(type_vvvvwbi) { @@ -188,26 +133,26 @@ function vvvvwbi(type_vvvvwbi) // set this function logic if (type) { - jQuery('#jform_article').closest('.control-group').show(); + jQuery('#jform_url').closest('.control-group').show(); if (jform_vvvvwbiwaq_required) { - updateFieldRequired('article',0); - jQuery('#jform_article').prop('required','required'); - jQuery('#jform_article').attr('aria-required',true); - jQuery('#jform_article').addClass('required'); + updateFieldRequired('url',0); + jQuery('#jform_url').prop('required','required'); + jQuery('#jform_url').attr('aria-required',true); + jQuery('#jform_url').addClass('required'); jform_vvvvwbiwaq_required = false; } } else { - jQuery('#jform_article').closest('.control-group').hide(); + jQuery('#jform_url').closest('.control-group').hide(); if (!jform_vvvvwbiwaq_required) { - updateFieldRequired('article',1); - jQuery('#jform_article').removeAttr('required'); - jQuery('#jform_article').removeAttr('aria-required'); - jQuery('#jform_article').removeClass('required'); + updateFieldRequired('url',1); + jQuery('#jform_url').removeAttr('required'); + jQuery('#jform_url').removeAttr('aria-required'); + jQuery('#jform_url').removeClass('required'); jform_vvvvwbiwaq_required = true; } } @@ -217,7 +162,7 @@ function vvvvwbi(type_vvvvwbi) function type_vvvvwbi_SomeFunc(type_vvvvwbi) { // set the function logic - if (type_vvvvwbi == 1) + if (type_vvvvwbi == 3) { return true; } @@ -243,26 +188,26 @@ function vvvvwbj(type_vvvvwbj) // set this function logic if (type) { - jQuery('#jform_content-lbl').closest('.control-group').show(); + jQuery('#jform_article').closest('.control-group').show(); if (jform_vvvvwbjwar_required) { - updateFieldRequired('content',0); - jQuery('#jform_content').prop('required','required'); - jQuery('#jform_content').attr('aria-required',true); - jQuery('#jform_content').addClass('required'); + updateFieldRequired('article',0); + jQuery('#jform_article').prop('required','required'); + jQuery('#jform_article').attr('aria-required',true); + jQuery('#jform_article').addClass('required'); jform_vvvvwbjwar_required = false; } } else { - jQuery('#jform_content-lbl').closest('.control-group').hide(); + jQuery('#jform_article').closest('.control-group').hide(); if (!jform_vvvvwbjwar_required) { - updateFieldRequired('content',1); - jQuery('#jform_content').removeAttr('required'); - jQuery('#jform_content').removeAttr('aria-required'); - jQuery('#jform_content').removeClass('required'); + updateFieldRequired('article',1); + jQuery('#jform_article').removeAttr('required'); + jQuery('#jform_article').removeAttr('aria-required'); + jQuery('#jform_article').removeClass('required'); jform_vvvvwbjwar_required = true; } } @@ -272,7 +217,7 @@ function vvvvwbj(type_vvvvwbj) function type_vvvvwbj_SomeFunc(type_vvvvwbj) { // set the function logic - if (type_vvvvwbj == 2) + if (type_vvvvwbj == 1) { return true; } @@ -280,32 +225,87 @@ function type_vvvvwbj_SomeFunc(type_vvvvwbj) } // the vvvvwbk function -function vvvvwbk(target_vvvvwbk) +function vvvvwbk(type_vvvvwbk) { - // set the function logic - if (target_vvvvwbk == 1) + if (isSet(type_vvvvwbk) && type_vvvvwbk.constructor !== Array) { - jQuery('#jform_groups').closest('.control-group').show(); + var temp_vvvvwbk = type_vvvvwbk; + var type_vvvvwbk = []; + type_vvvvwbk.push(temp_vvvvwbk); + } + else if (!isSet(type_vvvvwbk)) + { + var type_vvvvwbk = []; + } + var type = type_vvvvwbk.some(type_vvvvwbk_SomeFunc); + + + // set this function logic + if (type) + { + jQuery('#jform_content-lbl').closest('.control-group').show(); if (jform_vvvvwbkwas_required) { - updateFieldRequired('groups',0); - jQuery('#jform_groups').prop('required','required'); - jQuery('#jform_groups').attr('aria-required',true); - jQuery('#jform_groups').addClass('required'); + updateFieldRequired('content',0); + jQuery('#jform_content').prop('required','required'); + jQuery('#jform_content').attr('aria-required',true); + jQuery('#jform_content').addClass('required'); jform_vvvvwbkwas_required = false; } } else { - jQuery('#jform_groups').closest('.control-group').hide(); + jQuery('#jform_content-lbl').closest('.control-group').hide(); if (!jform_vvvvwbkwas_required) + { + updateFieldRequired('content',1); + jQuery('#jform_content').removeAttr('required'); + jQuery('#jform_content').removeAttr('aria-required'); + jQuery('#jform_content').removeClass('required'); + jform_vvvvwbkwas_required = true; + } + } +} + +// the vvvvwbk Some function +function type_vvvvwbk_SomeFunc(type_vvvvwbk) +{ + // set the function logic + if (type_vvvvwbk == 2) + { + return true; + } + return false; +} + +// the vvvvwbl function +function vvvvwbl(target_vvvvwbl) +{ + // set the function logic + if (target_vvvvwbl == 1) + { + jQuery('#jform_groups').closest('.control-group').show(); + if (jform_vvvvwblwat_required) + { + updateFieldRequired('groups',0); + jQuery('#jform_groups').prop('required','required'); + jQuery('#jform_groups').attr('aria-required',true); + jQuery('#jform_groups').addClass('required'); + jform_vvvvwblwat_required = false; + } + + } + else + { + jQuery('#jform_groups').closest('.control-group').hide(); + if (!jform_vvvvwblwat_required) { updateFieldRequired('groups',1); jQuery('#jform_groups').removeAttr('required'); jQuery('#jform_groups').removeAttr('aria-required'); jQuery('#jform_groups').removeClass('required'); - jform_vvvvwbkwas_required = true; + jform_vvvvwblwat_required = true; } } } diff --git a/admin/models/forms/joomla_component.js b/admin/models/forms/joomla_component.js index 618bf90e7..eb748b947 100644 --- a/admin/models/forms/joomla_component.js +++ b/admin/models/forms/joomla_component.js @@ -30,17 +30,18 @@ jform_vvvvvvyvvy_required = false; jform_vvvvvvzvvz_required = false; jform_vvvvvwavwa_required = false; jform_vvvvvwbvwb_required = false; -jform_vvvvvwdvwc_required = false; +jform_vvvvvwcvwc_required = false; jform_vvvvvwevwd_required = false; jform_vvvvvwfvwe_required = false; jform_vvvvvwgvwf_required = false; -jform_vvvvvwkvwg_required = false; +jform_vvvvvwhvwg_required = false; jform_vvvvvwlvwh_required = false; jform_vvvvvwmvwi_required = false; jform_vvvvvwnvwj_required = false; jform_vvvvvwovwk_required = false; -jform_vvvvvwvvwl_required = false; +jform_vvvvvwpvwl_required = false; jform_vvvvvwwvwm_required = false; +jform_vvvvvwxvwn_required = false; // Initial Script jQuery(document).ready(function() @@ -66,72 +67,75 @@ jQuery(document).ready(function() var add_sql_vvvvvwb = jQuery("#jform_add_sql input[type='radio']:checked").val(); vvvvvwb(add_sql_vvvvvwb); - var emptycontributors_vvvvvwc = jQuery("#jform_emptycontributors input[type='radio']:checked").val(); - vvvvvwc(emptycontributors_vvvvvwc); + var add_sql_uninstall_vvvvvwc = jQuery("#jform_add_sql_uninstall input[type='radio']:checked").val(); + vvvvvwc(add_sql_uninstall_vvvvvwc); - var add_license_vvvvvwd = jQuery("#jform_add_license input[type='radio']:checked").val(); - vvvvvwd(add_license_vvvvvwd); + var emptycontributors_vvvvvwd = jQuery("#jform_emptycontributors input[type='radio']:checked").val(); + vvvvvwd(emptycontributors_vvvvvwd); - var add_admin_event_vvvvvwe = jQuery("#jform_add_admin_event input[type='radio']:checked").val(); - vvvvvwe(add_admin_event_vvvvvwe); + var add_license_vvvvvwe = jQuery("#jform_add_license input[type='radio']:checked").val(); + vvvvvwe(add_license_vvvvvwe); - var add_site_event_vvvvvwf = jQuery("#jform_add_site_event input[type='radio']:checked").val(); - vvvvvwf(add_site_event_vvvvvwf); + var add_admin_event_vvvvvwf = jQuery("#jform_add_admin_event input[type='radio']:checked").val(); + vvvvvwf(add_admin_event_vvvvvwf); - var addreadme_vvvvvwg = jQuery("#jform_addreadme input[type='radio']:checked").val(); - vvvvvwg(addreadme_vvvvvwg); + var add_site_event_vvvvvwg = jQuery("#jform_add_site_event input[type='radio']:checked").val(); + vvvvvwg(add_site_event_vvvvvwg); - var add_update_server_vvvvvwh = jQuery("#jform_add_update_server input[type='radio']:checked").val(); - vvvvvwh(add_update_server_vvvvvwh); + var addreadme_vvvvvwh = jQuery("#jform_addreadme input[type='radio']:checked").val(); + vvvvvwh(addreadme_vvvvvwh); - var add_sales_server_vvvvvwi = jQuery("#jform_add_sales_server input[type='radio']:checked").val(); - vvvvvwi(add_sales_server_vvvvvwi); + var add_update_server_vvvvvwi = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvwi(add_update_server_vvvvvwi); - var add_license_vvvvvwj = jQuery("#jform_add_license input[type='radio']:checked").val(); - vvvvvwj(add_license_vvvvvwj); + var add_sales_server_vvvvvwj = jQuery("#jform_add_sales_server input[type='radio']:checked").val(); + vvvvvwj(add_sales_server_vvvvvwj); - var add_php_postflight_install_vvvvvwk = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val(); - vvvvvwk(add_php_postflight_install_vvvvvwk); + var add_license_vvvvvwk = jQuery("#jform_add_license input[type='radio']:checked").val(); + vvvvvwk(add_license_vvvvvwk); - var add_php_postflight_update_vvvvvwl = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val(); - vvvvvwl(add_php_postflight_update_vvvvvwl); + var add_php_postflight_install_vvvvvwl = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val(); + vvvvvwl(add_php_postflight_install_vvvvvwl); - var add_php_method_uninstall_vvvvvwm = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val(); - vvvvvwm(add_php_method_uninstall_vvvvvwm); + var add_php_postflight_update_vvvvvwm = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val(); + vvvvvwm(add_php_postflight_update_vvvvvwm); - var add_php_preflight_install_vvvvvwn = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val(); - vvvvvwn(add_php_preflight_install_vvvvvwn); + var add_php_method_uninstall_vvvvvwn = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val(); + vvvvvwn(add_php_method_uninstall_vvvvvwn); - var add_php_preflight_update_vvvvvwo = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val(); - vvvvvwo(add_php_preflight_update_vvvvvwo); + var add_php_preflight_install_vvvvvwo = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val(); + vvvvvwo(add_php_preflight_install_vvvvvwo); - var update_server_target_vvvvvwp = jQuery("#jform_update_server_target input[type='radio']:checked").val(); - var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val(); - vvvvvwp(update_server_target_vvvvvwp,add_update_server_vvvvvwp); + var add_php_preflight_update_vvvvvwp = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val(); + vvvvvwp(add_php_preflight_update_vvvvvwp); - var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val(); var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val(); - vvvvvwq(add_update_server_vvvvvwq,update_server_target_vvvvvwq); + var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq); - var update_server_target_vvvvvwr = jQuery("#jform_update_server_target input[type='radio']:checked").val(); var add_update_server_vvvvvwr = jQuery("#jform_add_update_server input[type='radio']:checked").val(); - vvvvvwr(update_server_target_vvvvvwr,add_update_server_vvvvvwr); + var update_server_target_vvvvvwr = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + vvvvvwr(add_update_server_vvvvvwr,update_server_target_vvvvvwr); - var update_server_target_vvvvvwt = jQuery("#jform_update_server_target input[type='radio']:checked").val(); - var add_update_server_vvvvvwt = jQuery("#jform_add_update_server input[type='radio']:checked").val(); - vvvvvwt(update_server_target_vvvvvwt,add_update_server_vvvvvwt); + var update_server_target_vvvvvws = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + var add_update_server_vvvvvws = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws); - var add_update_server_vvvvvwv = jQuery("#jform_add_update_server input[type='radio']:checked").val(); - vvvvvwv(add_update_server_vvvvvwv); + var update_server_target_vvvvvwu = jQuery("#jform_update_server_target input[type='radio']:checked").val(); + var add_update_server_vvvvvwu = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvwu(update_server_target_vvvvvwu,add_update_server_vvvvvwu); - var buildcomp_vvvvvww = jQuery("#jform_buildcomp input[type='radio']:checked").val(); - vvvvvww(buildcomp_vvvvvww); + var add_update_server_vvvvvww = jQuery("#jform_add_update_server input[type='radio']:checked").val(); + vvvvvww(add_update_server_vvvvvww); - var dashboard_type_vvvvvwx = jQuery("#jform_dashboard_type input[type='radio']:checked").val(); - vvvvvwx(dashboard_type_vvvvvwx); + var buildcomp_vvvvvwx = jQuery("#jform_buildcomp input[type='radio']:checked").val(); + vvvvvwx(buildcomp_vvvvvwx); var dashboard_type_vvvvvwy = jQuery("#jform_dashboard_type input[type='radio']:checked").val(); vvvvvwy(dashboard_type_vvvvvwy); + + var dashboard_type_vvvvvwz = jQuery("#jform_dashboard_type input[type='radio']:checked").val(); + vvvvvwz(dashboard_type_vvvvvwz); }); // the vvvvvvv function @@ -352,10 +356,41 @@ function vvvvvwb(add_sql_vvvvvwb) } // the vvvvvwc function -function vvvvvwc(emptycontributors_vvvvvwc) +function vvvvvwc(add_sql_uninstall_vvvvvwc) { // set the function logic - if (emptycontributors_vvvvvwc == 1) + if (add_sql_uninstall_vvvvvwc == 1) + { + jQuery('#jform_sql_uninstall').closest('.control-group').show(); + if (jform_vvvvvwcvwc_required) + { + updateFieldRequired('sql_uninstall',0); + jQuery('#jform_sql_uninstall').prop('required','required'); + jQuery('#jform_sql_uninstall').attr('aria-required',true); + jQuery('#jform_sql_uninstall').addClass('required'); + jform_vvvvvwcvwc_required = false; + } + + } + else + { + jQuery('#jform_sql_uninstall').closest('.control-group').hide(); + if (!jform_vvvvvwcvwc_required) + { + updateFieldRequired('sql_uninstall',1); + jQuery('#jform_sql_uninstall').removeAttr('required'); + jQuery('#jform_sql_uninstall').removeAttr('aria-required'); + jQuery('#jform_sql_uninstall').removeClass('required'); + jform_vvvvvwcvwc_required = true; + } + } +} + +// the vvvvvwd function +function vvvvvwd(emptycontributors_vvvvvwd) +{ + // set the function logic + if (emptycontributors_vvvvvwd == 1) { jQuery('#jform_number').closest('.control-group').show(); } @@ -365,114 +400,114 @@ function vvvvvwc(emptycontributors_vvvvvwc) } } -// the vvvvvwd function -function vvvvvwd(add_license_vvvvvwd) +// the vvvvvwe function +function vvvvvwe(add_license_vvvvvwe) { // set the function logic - if (add_license_vvvvvwd == 1) + if (add_license_vvvvvwe == 1) { jQuery('#jform_license_type').closest('.control-group').show(); - if (jform_vvvvvwdvwc_required) + if (jform_vvvvvwevwd_required) { updateFieldRequired('license_type',0); jQuery('#jform_license_type').prop('required','required'); jQuery('#jform_license_type').attr('aria-required',true); jQuery('#jform_license_type').addClass('required'); - jform_vvvvvwdvwc_required = false; - } - - } - else - { - jQuery('#jform_license_type').closest('.control-group').hide(); - if (!jform_vvvvvwdvwc_required) - { - updateFieldRequired('license_type',1); - jQuery('#jform_license_type').removeAttr('required'); - jQuery('#jform_license_type').removeAttr('aria-required'); - jQuery('#jform_license_type').removeClass('required'); - jform_vvvvvwdvwc_required = true; - } - } -} - -// the vvvvvwe function -function vvvvvwe(add_admin_event_vvvvvwe) -{ - // set the function logic - if (add_admin_event_vvvvvwe == 1) - { - jQuery('#jform_php_admin_event').closest('.control-group').show(); - if (jform_vvvvvwevwd_required) - { - updateFieldRequired('php_admin_event',0); - jQuery('#jform_php_admin_event').prop('required','required'); - jQuery('#jform_php_admin_event').attr('aria-required',true); - jQuery('#jform_php_admin_event').addClass('required'); jform_vvvvvwevwd_required = false; } } else { - jQuery('#jform_php_admin_event').closest('.control-group').hide(); + jQuery('#jform_license_type').closest('.control-group').hide(); if (!jform_vvvvvwevwd_required) { - updateFieldRequired('php_admin_event',1); - jQuery('#jform_php_admin_event').removeAttr('required'); - jQuery('#jform_php_admin_event').removeAttr('aria-required'); - jQuery('#jform_php_admin_event').removeClass('required'); + updateFieldRequired('license_type',1); + jQuery('#jform_license_type').removeAttr('required'); + jQuery('#jform_license_type').removeAttr('aria-required'); + jQuery('#jform_license_type').removeClass('required'); jform_vvvvvwevwd_required = true; } } } // the vvvvvwf function -function vvvvvwf(add_site_event_vvvvvwf) +function vvvvvwf(add_admin_event_vvvvvwf) { // set the function logic - if (add_site_event_vvvvvwf == 1) + if (add_admin_event_vvvvvwf == 1) { - jQuery('#jform_php_site_event').closest('.control-group').show(); + jQuery('#jform_php_admin_event').closest('.control-group').show(); if (jform_vvvvvwfvwe_required) { - updateFieldRequired('php_site_event',0); - jQuery('#jform_php_site_event').prop('required','required'); - jQuery('#jform_php_site_event').attr('aria-required',true); - jQuery('#jform_php_site_event').addClass('required'); + updateFieldRequired('php_admin_event',0); + jQuery('#jform_php_admin_event').prop('required','required'); + jQuery('#jform_php_admin_event').attr('aria-required',true); + jQuery('#jform_php_admin_event').addClass('required'); jform_vvvvvwfvwe_required = false; } } else { - jQuery('#jform_php_site_event').closest('.control-group').hide(); + jQuery('#jform_php_admin_event').closest('.control-group').hide(); if (!jform_vvvvvwfvwe_required) { - updateFieldRequired('php_site_event',1); - jQuery('#jform_php_site_event').removeAttr('required'); - jQuery('#jform_php_site_event').removeAttr('aria-required'); - jQuery('#jform_php_site_event').removeClass('required'); + updateFieldRequired('php_admin_event',1); + jQuery('#jform_php_admin_event').removeAttr('required'); + jQuery('#jform_php_admin_event').removeAttr('aria-required'); + jQuery('#jform_php_admin_event').removeClass('required'); jform_vvvvvwfvwe_required = true; } } } // the vvvvvwg function -function vvvvvwg(addreadme_vvvvvwg) +function vvvvvwg(add_site_event_vvvvvwg) { // set the function logic - if (addreadme_vvvvvwg == 1) + if (add_site_event_vvvvvwg == 1) + { + jQuery('#jform_php_site_event').closest('.control-group').show(); + if (jform_vvvvvwgvwf_required) + { + updateFieldRequired('php_site_event',0); + jQuery('#jform_php_site_event').prop('required','required'); + jQuery('#jform_php_site_event').attr('aria-required',true); + jQuery('#jform_php_site_event').addClass('required'); + jform_vvvvvwgvwf_required = false; + } + + } + else + { + jQuery('#jform_php_site_event').closest('.control-group').hide(); + if (!jform_vvvvvwgvwf_required) + { + updateFieldRequired('php_site_event',1); + jQuery('#jform_php_site_event').removeAttr('required'); + jQuery('#jform_php_site_event').removeAttr('aria-required'); + jQuery('#jform_php_site_event').removeClass('required'); + jform_vvvvvwgvwf_required = true; + } + } +} + +// the vvvvvwh function +function vvvvvwh(addreadme_vvvvvwh) +{ + // set the function logic + if (addreadme_vvvvvwh == 1) { jQuery('.note_readme').closest('.control-group').show(); jQuery('#jform_readme-lbl').closest('.control-group').show(); - if (jform_vvvvvwgvwf_required) + if (jform_vvvvvwhvwg_required) { updateFieldRequired('readme',0); jQuery('#jform_readme').prop('required','required'); jQuery('#jform_readme').attr('aria-required',true); jQuery('#jform_readme').addClass('required'); - jform_vvvvvwgvwf_required = false; + jform_vvvvvwhvwg_required = false; } } @@ -480,22 +515,22 @@ function vvvvvwg(addreadme_vvvvvwg) { jQuery('.note_readme').closest('.control-group').hide(); jQuery('#jform_readme-lbl').closest('.control-group').hide(); - if (!jform_vvvvvwgvwf_required) + if (!jform_vvvvvwhvwg_required) { updateFieldRequired('readme',1); jQuery('#jform_readme').removeAttr('required'); jQuery('#jform_readme').removeAttr('aria-required'); jQuery('#jform_readme').removeClass('required'); - jform_vvvvvwgvwf_required = true; + jform_vvvvvwhvwg_required = true; } } } -// the vvvvvwh function -function vvvvvwh(add_update_server_vvvvvwh) +// the vvvvvwi function +function vvvvvwi(add_update_server_vvvvvwi) { // set the function logic - if (add_update_server_vvvvvwh == 1) + if (add_update_server_vvvvvwi == 1) { jQuery('#jform_update_server_url').closest('.control-group').show(); } @@ -505,11 +540,11 @@ function vvvvvwh(add_update_server_vvvvvwh) } } -// the vvvvvwi function -function vvvvvwi(add_sales_server_vvvvvwi) +// the vvvvvwj function +function vvvvvwj(add_sales_server_vvvvvwj) { // set the function logic - if (add_sales_server_vvvvvwi == 1) + if (add_sales_server_vvvvvwj == 1) { jQuery('#jform_sales_server').closest('.control-group').show(); } @@ -519,11 +554,11 @@ function vvvvvwi(add_sales_server_vvvvvwi) } } -// the vvvvvwj function -function vvvvvwj(add_license_vvvvvwj) +// the vvvvvwk function +function vvvvvwk(add_license_vvvvvwk) { // set the function logic - if (add_license_vvvvvwj == 1) + if (add_license_vvvvvwk == 1) { jQuery('.note_whmcs_lisencing_note').closest('.control-group').show(); jQuery('#jform_whmcs_key').closest('.control-group').show(); @@ -537,182 +572,166 @@ function vvvvvwj(add_license_vvvvvwj) } } -// the vvvvvwk function -function vvvvvwk(add_php_postflight_install_vvvvvwk) +// the vvvvvwl function +function vvvvvwl(add_php_postflight_install_vvvvvwl) { // set the function logic - if (add_php_postflight_install_vvvvvwk == 1) + if (add_php_postflight_install_vvvvvwl == 1) { jQuery('#jform_php_postflight_install').closest('.control-group').show(); - if (jform_vvvvvwkvwg_required) + if (jform_vvvvvwlvwh_required) { updateFieldRequired('php_postflight_install',0); jQuery('#jform_php_postflight_install').prop('required','required'); jQuery('#jform_php_postflight_install').attr('aria-required',true); jQuery('#jform_php_postflight_install').addClass('required'); - jform_vvvvvwkvwg_required = false; - } - - } - else - { - jQuery('#jform_php_postflight_install').closest('.control-group').hide(); - if (!jform_vvvvvwkvwg_required) - { - updateFieldRequired('php_postflight_install',1); - jQuery('#jform_php_postflight_install').removeAttr('required'); - jQuery('#jform_php_postflight_install').removeAttr('aria-required'); - jQuery('#jform_php_postflight_install').removeClass('required'); - jform_vvvvvwkvwg_required = true; - } - } -} - -// the vvvvvwl function -function vvvvvwl(add_php_postflight_update_vvvvvwl) -{ - // set the function logic - if (add_php_postflight_update_vvvvvwl == 1) - { - jQuery('#jform_php_postflight_update').closest('.control-group').show(); - if (jform_vvvvvwlvwh_required) - { - updateFieldRequired('php_postflight_update',0); - jQuery('#jform_php_postflight_update').prop('required','required'); - jQuery('#jform_php_postflight_update').attr('aria-required',true); - jQuery('#jform_php_postflight_update').addClass('required'); jform_vvvvvwlvwh_required = false; } } else { - jQuery('#jform_php_postflight_update').closest('.control-group').hide(); + jQuery('#jform_php_postflight_install').closest('.control-group').hide(); if (!jform_vvvvvwlvwh_required) { - updateFieldRequired('php_postflight_update',1); - jQuery('#jform_php_postflight_update').removeAttr('required'); - jQuery('#jform_php_postflight_update').removeAttr('aria-required'); - jQuery('#jform_php_postflight_update').removeClass('required'); + updateFieldRequired('php_postflight_install',1); + jQuery('#jform_php_postflight_install').removeAttr('required'); + jQuery('#jform_php_postflight_install').removeAttr('aria-required'); + jQuery('#jform_php_postflight_install').removeClass('required'); jform_vvvvvwlvwh_required = true; } } } // the vvvvvwm function -function vvvvvwm(add_php_method_uninstall_vvvvvwm) +function vvvvvwm(add_php_postflight_update_vvvvvwm) { // set the function logic - if (add_php_method_uninstall_vvvvvwm == 1) + if (add_php_postflight_update_vvvvvwm == 1) { - jQuery('#jform_php_method_uninstall').closest('.control-group').show(); + jQuery('#jform_php_postflight_update').closest('.control-group').show(); if (jform_vvvvvwmvwi_required) { - updateFieldRequired('php_method_uninstall',0); - jQuery('#jform_php_method_uninstall').prop('required','required'); - jQuery('#jform_php_method_uninstall').attr('aria-required',true); - jQuery('#jform_php_method_uninstall').addClass('required'); + updateFieldRequired('php_postflight_update',0); + jQuery('#jform_php_postflight_update').prop('required','required'); + jQuery('#jform_php_postflight_update').attr('aria-required',true); + jQuery('#jform_php_postflight_update').addClass('required'); jform_vvvvvwmvwi_required = false; } } else { - jQuery('#jform_php_method_uninstall').closest('.control-group').hide(); + jQuery('#jform_php_postflight_update').closest('.control-group').hide(); if (!jform_vvvvvwmvwi_required) { - updateFieldRequired('php_method_uninstall',1); - jQuery('#jform_php_method_uninstall').removeAttr('required'); - jQuery('#jform_php_method_uninstall').removeAttr('aria-required'); - jQuery('#jform_php_method_uninstall').removeClass('required'); + updateFieldRequired('php_postflight_update',1); + jQuery('#jform_php_postflight_update').removeAttr('required'); + jQuery('#jform_php_postflight_update').removeAttr('aria-required'); + jQuery('#jform_php_postflight_update').removeClass('required'); jform_vvvvvwmvwi_required = true; } } } // the vvvvvwn function -function vvvvvwn(add_php_preflight_install_vvvvvwn) +function vvvvvwn(add_php_method_uninstall_vvvvvwn) { // set the function logic - if (add_php_preflight_install_vvvvvwn == 1) + if (add_php_method_uninstall_vvvvvwn == 1) { - jQuery('#jform_php_preflight_install').closest('.control-group').show(); + jQuery('#jform_php_method_uninstall').closest('.control-group').show(); if (jform_vvvvvwnvwj_required) { - updateFieldRequired('php_preflight_install',0); - jQuery('#jform_php_preflight_install').prop('required','required'); - jQuery('#jform_php_preflight_install').attr('aria-required',true); - jQuery('#jform_php_preflight_install').addClass('required'); + updateFieldRequired('php_method_uninstall',0); + jQuery('#jform_php_method_uninstall').prop('required','required'); + jQuery('#jform_php_method_uninstall').attr('aria-required',true); + jQuery('#jform_php_method_uninstall').addClass('required'); jform_vvvvvwnvwj_required = false; } } else { - jQuery('#jform_php_preflight_install').closest('.control-group').hide(); + jQuery('#jform_php_method_uninstall').closest('.control-group').hide(); if (!jform_vvvvvwnvwj_required) { - updateFieldRequired('php_preflight_install',1); - jQuery('#jform_php_preflight_install').removeAttr('required'); - jQuery('#jform_php_preflight_install').removeAttr('aria-required'); - jQuery('#jform_php_preflight_install').removeClass('required'); + updateFieldRequired('php_method_uninstall',1); + jQuery('#jform_php_method_uninstall').removeAttr('required'); + jQuery('#jform_php_method_uninstall').removeAttr('aria-required'); + jQuery('#jform_php_method_uninstall').removeClass('required'); jform_vvvvvwnvwj_required = true; } } } // the vvvvvwo function -function vvvvvwo(add_php_preflight_update_vvvvvwo) +function vvvvvwo(add_php_preflight_install_vvvvvwo) { // set the function logic - if (add_php_preflight_update_vvvvvwo == 1) + if (add_php_preflight_install_vvvvvwo == 1) { - jQuery('#jform_php_preflight_update').closest('.control-group').show(); + jQuery('#jform_php_preflight_install').closest('.control-group').show(); if (jform_vvvvvwovwk_required) { - updateFieldRequired('php_preflight_update',0); - jQuery('#jform_php_preflight_update').prop('required','required'); - jQuery('#jform_php_preflight_update').attr('aria-required',true); - jQuery('#jform_php_preflight_update').addClass('required'); + updateFieldRequired('php_preflight_install',0); + jQuery('#jform_php_preflight_install').prop('required','required'); + jQuery('#jform_php_preflight_install').attr('aria-required',true); + jQuery('#jform_php_preflight_install').addClass('required'); jform_vvvvvwovwk_required = false; } } else { - jQuery('#jform_php_preflight_update').closest('.control-group').hide(); + jQuery('#jform_php_preflight_install').closest('.control-group').hide(); if (!jform_vvvvvwovwk_required) { - updateFieldRequired('php_preflight_update',1); - jQuery('#jform_php_preflight_update').removeAttr('required'); - jQuery('#jform_php_preflight_update').removeAttr('aria-required'); - jQuery('#jform_php_preflight_update').removeClass('required'); + updateFieldRequired('php_preflight_install',1); + jQuery('#jform_php_preflight_install').removeAttr('required'); + jQuery('#jform_php_preflight_install').removeAttr('aria-required'); + jQuery('#jform_php_preflight_install').removeClass('required'); jform_vvvvvwovwk_required = true; } } } // the vvvvvwp function -function vvvvvwp(update_server_target_vvvvvwp,add_update_server_vvvvvwp) +function vvvvvwp(add_php_preflight_update_vvvvvwp) { // set the function logic - if (update_server_target_vvvvvwp == 1 && add_update_server_vvvvvwp == 1) + if (add_php_preflight_update_vvvvvwp == 1) { - jQuery('#jform_update_server').closest('.control-group').show(); - jQuery('.note_update_server_note_ftp').closest('.control-group').show(); + jQuery('#jform_php_preflight_update').closest('.control-group').show(); + if (jform_vvvvvwpvwl_required) + { + updateFieldRequired('php_preflight_update',0); + jQuery('#jform_php_preflight_update').prop('required','required'); + jQuery('#jform_php_preflight_update').attr('aria-required',true); + jQuery('#jform_php_preflight_update').addClass('required'); + jform_vvvvvwpvwl_required = false; + } + } else { - jQuery('#jform_update_server').closest('.control-group').hide(); - jQuery('.note_update_server_note_ftp').closest('.control-group').hide(); + jQuery('#jform_php_preflight_update').closest('.control-group').hide(); + if (!jform_vvvvvwpvwl_required) + { + updateFieldRequired('php_preflight_update',1); + jQuery('#jform_php_preflight_update').removeAttr('required'); + jQuery('#jform_php_preflight_update').removeAttr('aria-required'); + jQuery('#jform_php_preflight_update').removeClass('required'); + jform_vvvvvwpvwl_required = true; + } } } // the vvvvvwq function -function vvvvvwq(add_update_server_vvvvvwq,update_server_target_vvvvvwq) +function vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq) { // set the function logic - if (add_update_server_vvvvvwq == 1 && update_server_target_vvvvvwq == 1) + if (update_server_target_vvvvvwq == 1 && add_update_server_vvvvvwq == 1) { jQuery('#jform_update_server').closest('.control-group').show(); jQuery('.note_update_server_note_ftp').closest('.control-group').show(); @@ -725,10 +744,26 @@ function vvvvvwq(add_update_server_vvvvvwq,update_server_target_vvvvvwq) } // the vvvvvwr function -function vvvvvwr(update_server_target_vvvvvwr,add_update_server_vvvvvwr) +function vvvvvwr(add_update_server_vvvvvwr,update_server_target_vvvvvwr) { // set the function logic - if (update_server_target_vvvvvwr == 2 && add_update_server_vvvvvwr == 1) + if (add_update_server_vvvvvwr == 1 && update_server_target_vvvvvwr == 1) + { + jQuery('#jform_update_server').closest('.control-group').show(); + jQuery('.note_update_server_note_ftp').closest('.control-group').show(); + } + else + { + jQuery('#jform_update_server').closest('.control-group').hide(); + jQuery('.note_update_server_note_ftp').closest('.control-group').hide(); + } +} + +// the vvvvvws function +function vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws) +{ + // set the function logic + if (update_server_target_vvvvvws == 2 && add_update_server_vvvvvws == 1) { jQuery('.note_update_server_note_zip').closest('.control-group').show(); } @@ -738,11 +773,11 @@ function vvvvvwr(update_server_target_vvvvvwr,add_update_server_vvvvvwr) } } -// the vvvvvwt function -function vvvvvwt(update_server_target_vvvvvwt,add_update_server_vvvvvwt) +// the vvvvvwu function +function vvvvvwu(update_server_target_vvvvvwu,add_update_server_vvvvvwu) { // set the function logic - if (update_server_target_vvvvvwt == 3 && add_update_server_vvvvvwt == 1) + if (update_server_target_vvvvvwu == 3 && add_update_server_vvvvvwu == 1) { jQuery('.note_update_server_note_other').closest('.control-group').show(); } @@ -752,73 +787,73 @@ function vvvvvwt(update_server_target_vvvvvwt,add_update_server_vvvvvwt) } } -// the vvvvvwv function -function vvvvvwv(add_update_server_vvvvvwv) +// the vvvvvww function +function vvvvvww(add_update_server_vvvvvww) { // set the function logic - if (add_update_server_vvvvvwv == 1) + if (add_update_server_vvvvvww == 1) { jQuery('#jform_update_server_target').closest('.control-group').show(); - if (jform_vvvvvwvvwl_required) + if (jform_vvvvvwwvwm_required) { updateFieldRequired('update_server_target',0); jQuery('#jform_update_server_target').prop('required','required'); jQuery('#jform_update_server_target').attr('aria-required',true); jQuery('#jform_update_server_target').addClass('required'); - jform_vvvvvwvvwl_required = false; - } - - } - else - { - jQuery('#jform_update_server_target').closest('.control-group').hide(); - if (!jform_vvvvvwvvwl_required) - { - updateFieldRequired('update_server_target',1); - jQuery('#jform_update_server_target').removeAttr('required'); - jQuery('#jform_update_server_target').removeAttr('aria-required'); - jQuery('#jform_update_server_target').removeClass('required'); - jform_vvvvvwvvwl_required = true; - } - } -} - -// the vvvvvww function -function vvvvvww(buildcomp_vvvvvww) -{ - // set the function logic - if (buildcomp_vvvvvww == 1) - { - jQuery('#jform_buildcompsql').closest('.control-group').show(); - if (jform_vvvvvwwvwm_required) - { - updateFieldRequired('buildcompsql',0); - jQuery('#jform_buildcompsql').prop('required','required'); - jQuery('#jform_buildcompsql').attr('aria-required',true); - jQuery('#jform_buildcompsql').addClass('required'); jform_vvvvvwwvwm_required = false; } } else { - jQuery('#jform_buildcompsql').closest('.control-group').hide(); + jQuery('#jform_update_server_target').closest('.control-group').hide(); if (!jform_vvvvvwwvwm_required) { - updateFieldRequired('buildcompsql',1); - jQuery('#jform_buildcompsql').removeAttr('required'); - jQuery('#jform_buildcompsql').removeAttr('aria-required'); - jQuery('#jform_buildcompsql').removeClass('required'); + updateFieldRequired('update_server_target',1); + jQuery('#jform_update_server_target').removeAttr('required'); + jQuery('#jform_update_server_target').removeAttr('aria-required'); + jQuery('#jform_update_server_target').removeClass('required'); jform_vvvvvwwvwm_required = true; } } } // the vvvvvwx function -function vvvvvwx(dashboard_type_vvvvvwx) +function vvvvvwx(buildcomp_vvvvvwx) { // set the function logic - if (dashboard_type_vvvvvwx == 2) + if (buildcomp_vvvvvwx == 1) + { + jQuery('#jform_buildcompsql').closest('.control-group').show(); + if (jform_vvvvvwxvwn_required) + { + updateFieldRequired('buildcompsql',0); + jQuery('#jform_buildcompsql').prop('required','required'); + jQuery('#jform_buildcompsql').attr('aria-required',true); + jQuery('#jform_buildcompsql').addClass('required'); + jform_vvvvvwxvwn_required = false; + } + + } + else + { + jQuery('#jform_buildcompsql').closest('.control-group').hide(); + if (!jform_vvvvvwxvwn_required) + { + updateFieldRequired('buildcompsql',1); + jQuery('#jform_buildcompsql').removeAttr('required'); + jQuery('#jform_buildcompsql').removeAttr('aria-required'); + jQuery('#jform_buildcompsql').removeClass('required'); + jform_vvvvvwxvwn_required = true; + } + } +} + +// the vvvvvwy function +function vvvvvwy(dashboard_type_vvvvvwy) +{ + // set the function logic + if (dashboard_type_vvvvvwy == 2) { jQuery('#jform_dashboard').closest('.control-group').show(); jQuery('.note_dynamic_dashboard').closest('.control-group').show(); @@ -830,11 +865,11 @@ function vvvvvwx(dashboard_type_vvvvvwx) } } -// the vvvvvwy function -function vvvvvwy(dashboard_type_vvvvvwy) +// the vvvvvwz function +function vvvvvwz(dashboard_type_vvvvvwz) { // set the function logic - if (dashboard_type_vvvvvwy == 1) + if (dashboard_type_vvvvvwz == 1) { jQuery('.note_botton_component_dashboard').closest('.control-group').show(); } diff --git a/admin/models/forms/joomla_component.xml b/admin/models/forms/joomla_component.xml index c20590534..741272668 100644 --- a/admin/models/forms/joomla_component.xml +++ b/admin/models/forms/joomla_component.xml @@ -191,21 +191,6 @@ message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_MESSAGE" hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_HINT" /> - - - - - - - - + + + + + + - + + + + + - - - - - - @@ -343,6 +352,34 @@ + + + + + + + + - - - + + + @@ -383,32 +410,21 @@ - + - - - - COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UIKIT_VTHREE - - - - - + @@ -498,17 +486,17 @@ - + @@ -532,6 +520,21 @@ + + + + - - - - - - + + - + @@ -616,6 +604,29 @@ hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_LICENSE_HINT" required="true" /> + + + + - - - - + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_OTHER - + + type="radio" + name="add_update_server" + label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UPDATE_SERVER_LABEL" + class="btn-group btn-group-yesno" + default="0" + required="true"> + + + + + + + + + + - - - - - - - - - - - - @@ -1173,13 +1172,14 @@ - + + default="0" + required="true"> @@ -1197,10 +1197,25 @@ max="40" step="1" /> - - + + + + + + + + + + - - - - - - + + + + + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO - - - - + + + + + + + + metadata = $registry->toArray(); } - if (!empty($item->php_postflight_update)) - { - // base64 Decode php_postflight_update. - $item->php_postflight_update = base64_decode($item->php_postflight_update); - } - if (!empty($item->php_preflight_update)) { // base64 Decode php_preflight_update. $item->php_preflight_update = base64_decode($item->php_preflight_update); } - 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->sql)) + if (!empty($item->php_helper_site)) { - // base64 Decode sql. - $item->sql = base64_decode($item->sql); + // 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->php_helper_admin)) @@ -136,10 +130,22 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $item->php_helper_admin = base64_decode($item->php_helper_admin); } - if (!empty($item->php_helper_site)) + if (!empty($item->readme)) { - // base64 Decode php_helper_site. - $item->php_helper_site = base64_decode($item->php_helper_site); + // base64 Decode readme. + $item->readme = base64_decode($item->readme); + } + + if (!empty($item->php_postflight_update)) + { + // base64 Decode php_postflight_update. + $item->php_postflight_update = base64_decode($item->php_postflight_update); + } + + if (!empty($item->sql)) + { + // base64 Decode sql. + $item->sql = base64_decode($item->sql); } if (!empty($item->php_helper_both)) @@ -184,10 +190,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $item->php_method_uninstall = base64_decode($item->php_method_uninstall); } - if (!empty($item->readme)) + if (!empty($item->sql_uninstall)) { - // base64 Decode readme. - $item->readme = base64_decode($item->readme); + // base64 Decode sql_uninstall. + $item->sql_uninstall = base64_decode($item->sql_uninstall); } if (!empty($item->buildcompsql)) @@ -1063,34 +1069,28 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $data['addcontributors'] = ''; } - // Set the php_postflight_update string to base64 string. - if (isset($data['php_postflight_update'])) - { - $data['php_postflight_update'] = base64_encode($data['php_postflight_update']); - } - // Set the php_preflight_update string to base64 string. if (isset($data['php_preflight_update'])) { $data['php_preflight_update'] = base64_encode($data['php_preflight_update']); } - // 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 sql string to base64 string. - if (isset($data['sql'])) + // Set the php_helper_site string to base64 string. + if (isset($data['php_helper_site'])) { - $data['sql'] = base64_encode($data['sql']); + $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 php_helper_admin string to base64 string. @@ -1099,10 +1099,22 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $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'])) + // Set the readme string to base64 string. + if (isset($data['readme'])) { - $data['php_helper_site'] = base64_encode($data['php_helper_site']); + $data['readme'] = base64_encode($data['readme']); + } + + // Set the php_postflight_update string to base64 string. + if (isset($data['php_postflight_update'])) + { + $data['php_postflight_update'] = base64_encode($data['php_postflight_update']); + } + + // Set the sql string to base64 string. + if (isset($data['sql'])) + { + $data['sql'] = base64_encode($data['sql']); } // Set the php_helper_both string to base64 string. @@ -1147,10 +1159,10 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']); } - // Set the readme string to base64 string. - if (isset($data['readme'])) + // Set the sql_uninstall string to base64 string. + if (isset($data['sql_uninstall'])) { - $data['readme'] = base64_encode($data['readme']); + $data['sql_uninstall'] = base64_encode($data['sql_uninstall']); } // Set the buildcompsql string to base64 string. diff --git a/admin/models/joomla_components.php b/admin/models/joomla_components.php index 9cf3c5d47..91cc7d2fd 100644 --- a/admin/models/joomla_components.php +++ b/admin/models/joomla_components.php @@ -1921,20 +1921,22 @@ class ComponentbuilderModelJoomla_components extends JModelList continue; } - // decode php_postflight_update - $item->php_postflight_update = base64_decode($item->php_postflight_update); // decode php_preflight_update $item->php_preflight_update = base64_decode($item->php_preflight_update); - // decode javascript - $item->javascript = base64_decode($item->javascript); // decode css_site $item->css_site = base64_decode($item->css_site); - // decode sql - $item->sql = base64_decode($item->sql); - // 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 php_helper_admin + $item->php_helper_admin = base64_decode($item->php_helper_admin); + // decode readme + $item->readme = base64_decode($item->readme); + // decode php_postflight_update + $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_admin_event @@ -1954,8 +1956,8 @@ class ComponentbuilderModelJoomla_components extends JModelList $item->php_postflight_install = base64_decode($item->php_postflight_install); // decode php_method_uninstall $item->php_method_uninstall = base64_decode($item->php_method_uninstall); - // decode readme - $item->readme = base64_decode($item->readme); + // decode sql_uninstall + $item->sql_uninstall = base64_decode($item->sql_uninstall); 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/models/server.php b/admin/models/server.php index 18a3839b2..fc21d4772 100644 --- a/admin/models/server.php +++ b/admin/models/server.php @@ -170,7 +170,7 @@ class ComponentbuilderModelServer extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getWamlinked_components() + public function getWanlinked_components() { // Get the user object. $user = JFactory::getUser(); diff --git a/admin/sql/install.mysql.utf8.sql b/admin/sql/install.mysql.utf8.sql index 9f73b4727..b905feafd 100644 --- a/admin/sql/install.mysql.utf8.sql +++ b/admin/sql/install.mysql.utf8.sql @@ -19,6 +19,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( `add_sales_server` TINYINT(1) NOT NULL DEFAULT 0, `add_site_event` TINYINT(1) NOT NULL DEFAULT 0, `add_sql` TINYINT(1) NOT NULL DEFAULT 0, + `add_sql_uninstall` TINYINT(1) NOT NULL DEFAULT 0, `add_update_server` TINYINT(1) NOT NULL DEFAULT 0, `addcontributors` TEXT NOT NULL, `addfootable` TINYINT(1) NOT NULL DEFAULT 0, @@ -66,6 +67,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( `sales_server` INT(11) NOT NULL DEFAULT 0, `short_description` VARCHAR(255) NOT NULL DEFAULT '', `sql` MEDIUMTEXT NOT NULL, + `sql_uninstall` MEDIUMTEXT NOT NULL, `system_name` VARCHAR(255) NOT NULL DEFAULT '', `toignore` TEXT NOT NULL, `update_server` INT(11) NOT NULL DEFAULT 0, @@ -97,16 +99,15 @@ 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_debug_linenr` (`debug_linenr`), - KEY `idx_add_email_helper` (`add_email_helper`), KEY `idx_add_placeholders` (`add_placeholders`), KEY `idx_mvc_versiondate` (`mvc_versiondate`), - KEY `idx_add_update_server` (`add_update_server`), + KEY `idx_add_email_helper` (`add_email_helper`), + KEY `idx_debug_linenr` (`debug_linenr`), KEY `idx_adduikit` (`adduikit`), KEY `idx_add_license` (`add_license`), KEY `idx_license_type` (`license_type`), KEY `idx_update_server_target` (`update_server_target`), - KEY `idx_creatuserhelper` (`creatuserhelper`), + KEY `idx_add_update_server` (`add_update_server`), KEY `idx_addfootable` (`addfootable`), KEY `idx_add_php_helper_both` (`add_php_helper_both`), KEY `idx_add_php_helper_admin` (`add_php_helper_admin`), @@ -123,8 +124,10 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( KEY `idx_add_php_method_uninstall` (`add_php_method_uninstall`), KEY `idx_add_sql` (`add_sql`), KEY `idx_emptycontributors` (`emptycontributors`), + KEY `idx_add_sql_uninstall` (`add_sql_uninstall`), KEY `idx_addreadme` (`addreadme`), - KEY `idx_add_sales_server` (`add_sales_server`) + KEY `idx_add_sales_server` (`add_sales_server`), + KEY `idx_creatuserhelper` (`creatuserhelper`) ) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` ( @@ -1277,8 +1280,8 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_library_files_folders_urls` ( -- Dumping data for table `#__componentbuilder_joomla_component` -- -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`, `dashboard`, `dashboard_type`, `debug_linenr`, `description`, `email`, `emptycontributors`, `export_buy_link`, `joomla_source_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://raw.githubusercontent.com/namibia/demo-joomla-3-component/master/demo_updateserver.xml', '', '', 1, 'IyAjIyNDb21wb25lbnRfbmFtZSMjIyAoIyMjVkVSU0lPTiMjIykNCg0KIVsjIyNDb21wb25lbnRfbmFtZSMjIyBpbWFnZV0oaHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL25hbWliaWEvZGVtby1qb29tbGEtMy1jb21wb25lbnQvbWFzdGVyL2FkbWluL2Fzc2V0cy9pbWFnZXMvdmRtLWNvbXBvbmVudC5qcGcgIlRoZSAjIyNDb21wb25lbnRfbmFtZSMjIyIpDQoNCiMjI0RFU0NSSVBUSU9OIyMjDQoNCiMgQnVpbGQgRGV0YWlscw0KDQorICpDb21wYW55KjogWyMjI0NPTVBBTllOQU1FIyMjXSgjIyNBVVRIT1JXRUJTSVRFIyMjKQ0KKyAqQXV0aG9yKjogWyMjI0FVVEhPUiMjI10obWFpbHRvOiMjI0FVVEhPUkVNQUlMIyMjKQ0KKyAqTmFtZSo6IFsjIyNDb21wb25lbnRfbmFtZSMjI10oIyMjQVVUSE9SV0VCU0lURSMjIykNCisgKkZpcnN0IEJ1aWxkKjogIyMjQ1JFQVRJT05EQVRFIyMjDQorICpMYXN0IEJ1aWxkKjogIyMjQlVJTEREQVRFIyMjDQorICpWZXJzaW9uKjogIyMjVkVSU0lPTiMjIw0KKyAqQ29weXJpZ2h0KjogIyMjQ09QWVJJR0hUIyMjDQorICpMaWNlbnNlKjogIyMjTElDRU5TRSMjIw0KDQojIyBCdWlsZCBUaW1lDQoNCioqIyMjdG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjdG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqIChhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNhdmVkIC0NCmR1ZSB0byBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKSkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gbmV2ZXIgbWFraW5nIG9uZSBtaXN0YWtlIG9yIHRha2luZyBhbnkgY29mZmVlIGJyZWFrLikNCg0KKyAqTGluZSBjb3VudCo6ICoqIyMjTElORV9DT1VOVCMjIyoqDQorICpGaWxlIGNvdW50KjogKiojIyNGSUxFX0NPVU5UIyMjKioNCisgKkZvbGRlciBjb3VudCo6ICoqIyMjRk9MREVSX0NPVU5UIyMjKioNCg0KKiojIyNhY3R1YWxIb3Vyc1NwZW50IyMjIEhvdXJzKiogb3IgKiojIyNhY3R1YWxEYXlzU3BlbnQjIyMgRWlnaHQgSG91ciBEYXlzKiogKHRoZSBhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNwZW50KQ0KDQo+ICh3aXRoIHRoZSBmb2xsb3dpbmcgYnJlYWsgZG93bjoNCj4gKipkZWJ1Z2dpbmcgQCMjI2RlYnVnZ2luZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA0Ow0KPiAqKnBsYW5uaW5nIEAjIyNwbGFubmluZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA3Ow0KPiAqKm1hcHBpbmcgQCMjI21hcHBpbmdIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gMTA7DQo+ICoqb2ZmaWNlIEAjIyNvZmZpY2VIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gNjspDQoNCioqIyMjYWN0dWFsVG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjYWN0dWFsVG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqDQooYSB0b3RhbCBvZiB0aGUgcmVhbGlzdGljIHRpbWUgZnJhbWUgZm9yIHRoaXMgcHJvamVjdCkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gd2l0aCB0aGUgbm9ybWFsIGV2ZXJ5ZGF5IHJlYWxpdGllcyBhdCB0aGUgb2ZmaWNlLCB0aGF0IGluY2x1ZGVzIHRoZSBjb21wb25lbnQgcGxhbm5pbmcsIG1hcHBpbmcgJiBkZWJ1Z2dpbmcuKQ0KDQpQcm9qZWN0IGR1cmF0aW9uOiAqKiMjI3Byb2plY3RXZWVrVGltZSMjIyB3ZWVrcyoqIG9yICoqIyMjcHJvamVjdE1vbnRoVGltZSMjIyBtb250aHMqKg0KDQo+IFRoaXMgKipjb21wb25lbnQqKiB3YXMgYnVpbGQgd2l0aCBhIEpvb21sYSBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKS4NCj4gRGV2ZWxvcGVkIGJ5IFtMbGV3ZWxseW4gdmFuIGRlciBNZXJ3ZV0obWFpbHRvOmpvb21sYUB2ZG0uaW8pDQoNCiMjIERvbmF0aW9ucw0KDQpJZiB5b3Ugd2FudCB0byBzdXBwb3J0IHRoaXMgcHJvamVjdCwgcGxlYXNlIGNvbnNpZGVyIGRvbmF0aW5nOg0KKiBQYXlQYWw6IFtwYXlwYWwubWUvcGF5dmRtXShodHRwczovL3d3dy5wYXlwYWwubWUvcGF5dmRtKQ0KKiBCaXRjb2luOiAxRkx4aVQ2d3l4Z1ozYm9ldmlMa1lKMURScHA0MXV6cHhhDQoqIEV0aGVyZXVtOiAweDI0MzM5MmRhYTNjOWM4YmM4NDFmY2FjZjdjN2Y3MjU0MWNiMTY4MjMg', 'Llewellyn van der Merwe', 'default.txt', '', '', 'Vast Development Method', '2.0.0', 'Copyright (C) 2015. All Rights Reserved', '', '', '', '', 1, '', 'Just a basic demo of the most basic implementations of the [Joomla](http://www.joomla.org) Component Builder\'s ability.', 'joomla@vdm.io', '', '', 'https://github.com/namibia/demo-joomla-3-component', 'RwiK8HuaQC08/cxtksjDithxSsskmEEl1C8Hnm4nxDY=', '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-05-05 13:24:21', '', 3, '5HwMIpP4dQ9R+g5iJus4DgNfra9VosE6DEhoKY+3wfM=', ''); +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`, `add_sql_uninstall`, `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`, `dashboard`, `dashboard_type`, `debug_linenr`, `description`, `email`, `emptycontributors`, `export_buy_link`, `joomla_source_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`, `sql_uninstall`, `website`, `published`, `created`, `modified`, `hits`, `ordering`, `whmcs_key`, `whmcs_url`) VALUES +(25, '', 1, '', '', '', '', '', '', '', 1, 1, '', '', '', '', '', '', '', '', 1, '', '', 1, '', '', '', 2, 'https://raw.githubusercontent.com/namibia/demo-joomla-3-component/master/demo_updateserver.xml', '', '', 1, 'IyAjIyNDb21wb25lbnRfbmFtZSMjIyAoIyMjVkVSU0lPTiMjIykNCg0KIVsjIyNDb21wb25lbnRfbmFtZSMjIyBpbWFnZV0oaHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL25hbWliaWEvZGVtby1qb29tbGEtMy1jb21wb25lbnQvbWFzdGVyL2FkbWluL2Fzc2V0cy9pbWFnZXMvdmRtLWNvbXBvbmVudC5qcGcgIlRoZSAjIyNDb21wb25lbnRfbmFtZSMjIyIpDQoNCiMjI0RFU0NSSVBUSU9OIyMjDQoNCiMgQnVpbGQgRGV0YWlscw0KDQorICpDb21wYW55KjogWyMjI0NPTVBBTllOQU1FIyMjXSgjIyNBVVRIT1JXRUJTSVRFIyMjKQ0KKyAqQXV0aG9yKjogWyMjI0FVVEhPUiMjI10obWFpbHRvOiMjI0FVVEhPUkVNQUlMIyMjKQ0KKyAqTmFtZSo6IFsjIyNDb21wb25lbnRfbmFtZSMjI10oIyMjQVVUSE9SV0VCU0lURSMjIykNCisgKkZpcnN0IEJ1aWxkKjogIyMjQ1JFQVRJT05EQVRFIyMjDQorICpMYXN0IEJ1aWxkKjogIyMjQlVJTEREQVRFIyMjDQorICpWZXJzaW9uKjogIyMjVkVSU0lPTiMjIw0KKyAqQ29weXJpZ2h0KjogIyMjQ09QWVJJR0hUIyMjDQorICpMaWNlbnNlKjogIyMjTElDRU5TRSMjIw0KDQojIyBCdWlsZCBUaW1lDQoNCioqIyMjdG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjdG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqIChhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNhdmVkIC0NCmR1ZSB0byBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKSkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gbmV2ZXIgbWFraW5nIG9uZSBtaXN0YWtlIG9yIHRha2luZyBhbnkgY29mZmVlIGJyZWFrLikNCg0KKyAqTGluZSBjb3VudCo6ICoqIyMjTElORV9DT1VOVCMjIyoqDQorICpGaWxlIGNvdW50KjogKiojIyNGSUxFX0NPVU5UIyMjKioNCisgKkZvbGRlciBjb3VudCo6ICoqIyMjRk9MREVSX0NPVU5UIyMjKioNCg0KKiojIyNhY3R1YWxIb3Vyc1NwZW50IyMjIEhvdXJzKiogb3IgKiojIyNhY3R1YWxEYXlzU3BlbnQjIyMgRWlnaHQgSG91ciBEYXlzKiogKHRoZSBhY3R1YWwgdGltZSB0aGUgYXV0aG9yIHNwZW50KQ0KDQo+ICh3aXRoIHRoZSBmb2xsb3dpbmcgYnJlYWsgZG93bjoNCj4gKipkZWJ1Z2dpbmcgQCMjI2RlYnVnZ2luZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA0Ow0KPiAqKnBsYW5uaW5nIEAjIyNwbGFubmluZ0hvdXJzIyMjaG91cnMqKiA9IGNvZGluZ3RpbWUgLyA3Ow0KPiAqKm1hcHBpbmcgQCMjI21hcHBpbmdIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gMTA7DQo+ICoqb2ZmaWNlIEAjIyNvZmZpY2VIb3VycyMjI2hvdXJzKiogPSBjb2Rpbmd0aW1lIC8gNjspDQoNCioqIyMjYWN0dWFsVG90YWxIb3VycyMjIyBIb3VycyoqIG9yICoqIyMjYWN0dWFsVG90YWxEYXlzIyMjIEVpZ2h0IEhvdXIgRGF5cyoqDQooYSB0b3RhbCBvZiB0aGUgcmVhbGlzdGljIHRpbWUgZnJhbWUgZm9yIHRoaXMgcHJvamVjdCkNCg0KPiAoaWYgY3JlYXRpbmcgYSBmb2xkZXIgYW5kIGZpbGUgdG9vayAqKjUgc2Vjb25kcyoqIGFuZCB3cml0aW5nIG9uZSBsaW5lIG9mIGNvZGUgdG9vayAqKjEwIHNlY29uZHMqKiwNCj4gd2l0aCB0aGUgbm9ybWFsIGV2ZXJ5ZGF5IHJlYWxpdGllcyBhdCB0aGUgb2ZmaWNlLCB0aGF0IGluY2x1ZGVzIHRoZSBjb21wb25lbnQgcGxhbm5pbmcsIG1hcHBpbmcgJiBkZWJ1Z2dpbmcuKQ0KDQpQcm9qZWN0IGR1cmF0aW9uOiAqKiMjI3Byb2plY3RXZWVrVGltZSMjIyB3ZWVrcyoqIG9yICoqIyMjcHJvamVjdE1vbnRoVGltZSMjIyBtb250aHMqKg0KDQo+IFRoaXMgKipjb21wb25lbnQqKiB3YXMgYnVpbGQgd2l0aCBhIEpvb21sYSBbQXV0b21hdGVkIENvbXBvbmVudCBCdWlsZGVyXShodHRwczovL3d3dy52ZG0uaW8vam9vbWxhLWNvbXBvbmVudC1idWlsZGVyKS4NCj4gRGV2ZWxvcGVkIGJ5IFtMbGV3ZWxseW4gdmFuIGRlciBNZXJ3ZV0obWFpbHRvOmpvb21sYUB2ZG0uaW8pDQoNCiMjIERvbmF0aW9ucw0KDQpJZiB5b3Ugd2FudCB0byBzdXBwb3J0IHRoaXMgcHJvamVjdCwgcGxlYXNlIGNvbnNpZGVyIGRvbmF0aW5nOg0KKiBQYXlQYWw6IFtwYXlwYWwubWUvcGF5dmRtXShodHRwczovL3d3dy5wYXlwYWwubWUvcGF5dmRtKQ0KKiBCaXRjb2luOiAxRkx4aVQ2d3l4Z1ozYm9ldmlMa1lKMURScHA0MXV6cHhhDQoqIEV0aGVyZXVtOiAweDI0MzM5MmRhYTNjOWM4YmM4NDFmY2FjZjdjN2Y3MjU0MWNiMTY4MjMg', 'Llewellyn van der Merwe', 'default.txt', '', '', 'Vast Development Method', '2.0.0', 'Copyright (C) 2015. All Rights Reserved', '', '', '', '', 1, '', 'Just a basic demo of the most basic implementations of the [Joomla](http://www.joomla.org) Component Builder\'s ability.', 'joomla@vdm.io', '', '', 'https://github.com/namibia/demo-joomla-3-component', 'RwiK8HuaQC08/cxtksjDithxSsskmEEl1C8Hnm4nxDY=', '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-05-05 13:24:21', '', 3, '5HwMIpP4dQ9R+g5iJus4DgNfra9VosE6DEhoKY+3wfM=', ''); -- -- Dumping data for table `#__componentbuilder_admin_view` @@ -1525,7 +1528,8 @@ INSERT INTO `#__componentbuilder_fieldtype` (`id`, `catid`, `description`, `name (32, '', 'Note: When using the file input type you should always add the attribute enctype=\"multipart/form-data\" to your form tag. Otherwise, the uploaded files will not be attached correctly.\r\n\r\nNote 2: You can put a soft limit file size by adding a hidden field with name=\"MAX_FILE_SIZE\" and value the maximum allowed bytes which is handled by php, but you must also handle it in your code with or without it.', 'File', '{\"properties0\":{\"name\":\"type\",\"example\":\"file\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be file.\"},\"properties1\":{\"name\":\"name\",\"example\":\"myfilevalue\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Enter some text\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"description\",\"example\":\"Choose an image from your computer with maximum 100KB\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties4\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) (not translatable) is the default value, but doesn\'t mean much for a file.\"},\"properties5\":{\"name\":\"size\",\"example\":\"10\",\"adjustable\":\"1\",\"description\":\"(optional) is the width of the file box in characters.\"},\"properties6\":{\"name\":\"accept\",\"example\":\"image\\/*\",\"adjustable\":\"1\",\"description\":\"(optional) Tells the browser what MIME types<\\/a> your form will allow to be uploaded.\"},\"properties7\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field.\"},\"properties8\":{\"name\":\"labelclass\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) adds a CSS class for form field\'s label; for Joomla 2.5.4+\"},\"properties9\":{\"name\":\"disabled\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) HTML equivalent attribute\"},\"properties10\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) HTML equivalent attribute (javascript use)\"},\"properties11\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) For Joomla form validating it to be filled in\"},\"properties12\":{\"name\":\"validate\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Whether to Joomla validate the field according to rules\"},\"properties13\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\"}}', 'Provides an input field for files', '', 1, 7, '', 3), (33, '', 'The menuitem form field type provides a drop down grouped list of the available menu items from your Joomla site.', 'menuitem', '{\"properties0\":{\"name\":\"type\",\"example\":\"menuitem\",\"adjustable\":\"0\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) must be menuitem.\"},\"properties1\":{\"name\":\"name\",\"example\":\"mymenuitem\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select a menu item\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) is the default menu item. Note that this is the ItemID number of the menu item.\"},\"properties4\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties5\":{\"name\":\"published\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) determines whether all menu items are listed or only published menu items. If state is \'0\' then all menu items will be listed. If state is \'1\' then only published menu items will be listed.\"},\"properties6\":{\"name\":\"filter\",\"example\":\"int\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"0\",\"description\":\"(optional) allow the system to save certain html tags or raw data.\"},\"properties7\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"mandatory\":\"0\",\"translatable\":\"0\",\"description\":\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\"}}', 'provides a drop down list of the available menu items from your Joomla site.', '', 1, 2, '', 4), (34, '', 'Remember all views already have [accesslevel] added by default, only add this if you need more custom access selection! Provides a dropdown list of accesslevel options with the current option selected.', 'Accesslevel', '{\"properties0\":{\"name\":\"type\",\"example\":\"accesslevel\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be accesslevel\"},\"properties1\":{\"name\":\"name\",\"example\":\"accesstwo\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field. This must match the name of the query results column that contains the values that will be shown to the user in the drop-down list, unless a different name is specified in the value_field attribute. \"},\"properties2\":{\"name\":\"label\",\"example\":\"Access Two\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"description\",\"example\":\"Select an access level to this concept.\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties4\":{\"name\":\"class\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field.\"},\"properties5\":{\"name\":\"required\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) is the field required true if yes.\"},\"properties6\":{\"name\":\"multiple\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) If set to multiple then allows more than one usergroup to be selected.\"},\"properties7\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'List of accesslevels', '', 1, 2, '', 5), -(35, '', 'Provides a form with rows of fields that you specify. As many options can be added as desired. Note this form field has a jQuery based javascript file as a dependency.', 'Subform', '{\"properties0\":{\"name\":\"type\",\"example\":\"subform\",\"description\":\"(mandatory) must be subform.\"},\"properties1\":{\"name\":\"name\",\"example\":\"options\",\"adjustable\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter\"},\"properties2\":{\"name\":\"label\",\"example\":\"The Option List\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"layout\",\"example\":\"joomla.form.field.subform.repeatable-table\",\"adjustable\":\"1\",\"description\":\"(mandatory) The layout for the repeatable table.\"},\"properties4\":{\"name\":\"component\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) To change the component where it should search for layout\"},\"properties5\":{\"name\":\"client\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Function to initialise the application client
Frontend: site<\\/code> or 0<\\/code>
Backend: admin<\\/code> or 1<\\/code>\"},\"properties6\":{\"name\":\"multiple\",\"example\":\"true\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The rows to be multiple.\"},\"properties7\":{\"name\":\"buttons\",\"example\":\"add,remove,move\",\"adjustable\":\"1\",\"description\":\"(optional) Which buttons to show if multiple mode is true.
Options: add,remove,move<\\/code>\"},\"properties8\":{\"name\":\"fields\",\"example\":\"1,2,3\",\"adjustable\":\"1\",\"description\":\"(mandatory) The fields to add to the modal. All fields must first be created in component builder as a field before you can add them here, since you must use the id of the field. Separate the field ids with commas. Do not add custom fields that are not also used in this component.\"},\"properties9\":{\"name\":\"formsource\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) you can add a path to a xml file containing the fields.\"},\"properties10\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) description text for the form field. Displays at the top of the modal with the name as well as in the usual position in the form\"},\"properties11\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The default value for the form field if the field is left empty. Note this has to be a json string compatible with the contents of the form field.\"},\"properties12\":{\"name\":\"icon\",\"example\":\"list\",\"adjustable\":\"1\",\"description\":\"(optional) The icon to show on the select button (is prefixed with \\\"icon-\\\").\"},\"properties13\":{\"name\":\"max\",\"example\":\"50\",\"adjustable\":\"1\",\"description\":\"(optional) The maximum number of rows of fields allowed (by default 999 to be effectively infinite)\"},\"properties14\":{\"name\":\"min\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The minimum number of rows of fields required\"},\"properties15\":{\"name\":\"filter\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Use only if you would like to save raw data, since the default is best.\"},\"properties16\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Allows form fields which can have as many options as the user desires.', '', 1, 12, '', 6); +(35, '', 'Provides a form with rows of fields that you specify. As many options can be added as desired. Note this form field has a jQuery based javascript file as a dependency.', 'Subform', '{\"properties0\":{\"name\":\"type\",\"example\":\"subform\",\"description\":\"(mandatory) must be subform.\"},\"properties1\":{\"name\":\"name\",\"example\":\"options\",\"adjustable\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter\"},\"properties2\":{\"name\":\"label\",\"example\":\"The Option List\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"layout\",\"example\":\"joomla.form.field.subform.repeatable-table\",\"adjustable\":\"1\",\"description\":\"(mandatory) The layout for the repeatable table.\"},\"properties4\":{\"name\":\"component\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) To change the component where it should search for layout\"},\"properties5\":{\"name\":\"client\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Function to initialise the application client
Frontend: site<\\/code> or 0<\\/code>
Backend: admin<\\/code> or 1<\\/code>\"},\"properties6\":{\"name\":\"multiple\",\"example\":\"true\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) The rows to be multiple.\"},\"properties7\":{\"name\":\"buttons\",\"example\":\"add,remove,move\",\"adjustable\":\"1\",\"description\":\"(optional) Which buttons to show if multiple mode is true.
Options: add,remove,move<\\/code>\"},\"properties8\":{\"name\":\"fields\",\"example\":\"1,2,3\",\"adjustable\":\"1\",\"description\":\"(mandatory) The fields to add to the modal. All fields must first be created in component builder as a field before you can add them here, since you must use the id of the field. Separate the field ids with commas. Do not add custom fields that are not also used in this component.\"},\"properties9\":{\"name\":\"formsource\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) you can add a path to a xml file containing the fields.\"},\"properties10\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) description text for the form field. Displays at the top of the modal with the name as well as in the usual position in the form\"},\"properties11\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The default value for the form field if the field is left empty. Note this has to be a json string compatible with the contents of the form field.\"},\"properties12\":{\"name\":\"icon\",\"example\":\"list\",\"adjustable\":\"1\",\"description\":\"(optional) The icon to show on the select button (is prefixed with \\\"icon-\\\").\"},\"properties13\":{\"name\":\"max\",\"example\":\"50\",\"adjustable\":\"1\",\"description\":\"(optional) The maximum number of rows of fields allowed (by default 999 to be effectively infinite)\"},\"properties14\":{\"name\":\"min\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) The minimum number of rows of fields required\"},\"properties15\":{\"name\":\"filter\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Use only if you would like to save raw data, since the default is best.\"},\"properties16\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Allows form fields which can have as many options as the user desires.', '', 1, 12, '', 6), +(36, '', 'Provides an input field for an email address.', 'Email', '{\"properties0\":{\"name\":\"type\",\"example\":\"email\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be email.\"},\"properties1\":{\"name\":\"name\",\"example\":\"email\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Email Address\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"size\",\"example\":\"10\",\"adjustable\":\"1\",\"description\":\"(optional) is the width of the text box in characters. If omitted the width is determined by the browser. The value of size does not limit the number of characters that may be entered.\"},\"properties4\":{\"name\":\"maxlength\",\"example\":\"50\",\"adjustable\":\"1\",\"description\":\"(optional) limits the number of characters that may be entered.\"},\"properties5\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) (not translatable) is the default value.\"},\"properties6\":{\"name\":\"description\",\"example\":\"Enter some description\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.\"},\"properties7\":{\"name\":\"class\",\"example\":\"inputbox\",\"adjustable\":\"1\",\"description\":\"(optional) is a CSS class name for the HTML form field. If omitted this will default to \'text_area\'.\"},\"properties8\":{\"name\":\"readonly\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value\"},\"properties9\":{\"name\":\"disabled\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field cannot be changed and will automatically inherit the default value - it will also not submit\"},\"properties10\":{\"name\":\"required\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) The field must be filled before submitting the form.\"},\"properties11\":{\"name\":\"filter\",\"example\":\"STRING\",\"adjustable\":\"1\",\"description\":\"(optional) allow the system to save certain html tags or raw data.\"},\"properties12\":{\"name\":\"validate\",\"example\":\"email\",\"adjustable\":\"1\",\"description\":\"(optional) The validation method for the form field. This value will determine which method is used to validate the value for a field.\"},\"properties13\":{\"name\":\"message\",\"example\":\"Error! Please add some text here.\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) The error message that will be displayed instead of the default message.\"},\"properties14\":{\"name\":\"hint\",\"example\":\"your@email.com\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) The placeholder to display inside the text box.\"},\"properties15\":{\"name\":\"autocomplete\",\"example\":\"on\",\"adjustable\":\"1\",\"description\":\"(optional) The autocomplete state for the form field. If \'off\' element will not be automatically completed by browser.\"},\"properties16\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) Allows you to hide the field based on the value(s) of another field; for Joomla 3.2.4+\"},\"properties17\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) HTML equivalent attribute (javascript use)\"}}', 'Email form field type', '', 1, 3, '', 7); -- -- Dumping data for table `#__componentbuilder_language` diff --git a/admin/sql/uninstall.mysql.utf8.sql b/admin/sql/uninstall.mysql.utf8.sql index 9ee07fb83..4824505af 100644 --- a/admin/sql/uninstall.mysql.utf8.sql +++ b/admin/sql/uninstall.mysql.utf8.sql @@ -29,3 +29,4 @@ DROP TABLE IF EXISTS `#__componentbuilder_component_files_folders`; DROP TABLE IF EXISTS `#__componentbuilder_snippet_type`; DROP TABLE IF EXISTS `#__componentbuilder_library_config`; DROP TABLE IF EXISTS `#__componentbuilder_library_files_folders_urls`; +DROP TABLE IF EXISTS `#__componentbuilder_external_code`; diff --git a/admin/sql/updates/mysql/2.7.9.sql b/admin/sql/updates/mysql/2.7.9.sql new file mode 100644 index 000000000..9b90b7d0a --- /dev/null +++ b/admin/sql/updates/mysql/2.7.9.sql @@ -0,0 +1,3 @@ +ALTER TABLE `#__componentbuilder_joomla_component` ADD `add_sql_uninstall` TINYINT(1) NOT NULL DEFAULT 0 AFTER `add_sql`; + +ALTER TABLE `#__componentbuilder_joomla_component` ADD `sql_uninstall` MEDIUMTEXT NOT NULL AFTER `sql`; diff --git a/admin/views/admin_view/tmpl/edit.php b/admin/views/admin_view/tmpl/edit.php index 5c7104d83..1dcde7363 100644 --- a/admin/views/admin_view/tmpl/edit.php +++ b/admin/views/admin_view/tmpl/edit.php @@ -219,431 +219,416 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');