diff --git a/README.md b/README.md index 9c362e788..7628886d5 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.16) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.18) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -146,13 +146,13 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 6th May, 2019 -+ *Version*: 2.9.16 ++ *Last Build*: 15th May, 2019 ++ *Version*: 2.9.18 + *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **205396** -+ *Field count*: **1130** -+ *File count*: **1342** ++ *Line count*: **206359** ++ *Field count*: **1136** ++ *File count*: **1344** + *Folder count*: **209** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). diff --git a/admin/README.txt b/admin/README.txt index 9c362e788..7628886d5 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -12,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.16) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.18) with **ALL** its features and **ALL** concepts totally open-source and free! > Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45) @@ -146,13 +146,13 @@ TODO + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 6th May, 2019 -+ *Version*: 2.9.16 ++ *Last Build*: 15th May, 2019 ++ *Version*: 2.9.18 + *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **205396** -+ *Field count*: **1130** -+ *File count*: **1342** ++ *Line count*: **206359** ++ *Field count*: **1136** ++ *File count*: **1344** + *Folder count*: **209** > This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com). diff --git a/admin/access.xml b/admin/access.xml index 8bfa040e9..f2126b51a 100644 --- a/admin/access.xml +++ b/admin/access.xml @@ -76,6 +76,7 @@ + diff --git a/admin/controllers/ajax.json.php b/admin/controllers/ajax.json.php index 72ad10904..8bcc6b72d 100644 --- a/admin/controllers/ajax.json.php +++ b/admin/controllers/ajax.json.php @@ -30,6 +30,7 @@ class ComponentbuilderControllerAjax extends JControllerLegacy $this->registerTask('getComponentDetails', 'ajax'); $this->registerTask('getCronPath', 'ajax'); $this->registerTask('getJCBpackageInfo', 'ajax'); + $this->registerTask('getCrowdinDetails', 'ajax'); $this->registerTask('tableColumns', 'ajax'); $this->registerTask('fieldSelectOptions', 'ajax'); $this->registerTask('getDynamicScripts', 'ajax'); @@ -261,6 +262,45 @@ class ComponentbuilderControllerAjax extends JControllerLegacy } } break; + case 'getCrowdinDetails': + try + { + $returnRaw = $jinput->get('raw', false, 'BOOLEAN'); + $identifierValue = $jinput->get('identifier', NULL, 'CMD'); + $keyValue = $jinput->get('key', NULL, 'ALNUM'); + if($identifierValue && $keyValue && $user->id != 0) + { + $result = $this->getModel('ajax')->getCrowdinDetails($identifierValue, $keyValue); + } + else + { + $result = false; + } + if($callback = $jinput->get('callback', null, 'CMD')) + { + echo $callback . "(".json_encode($result).");"; + } + elseif($returnRaw) + { + echo json_encode($result); + } + else + { + echo "(".json_encode($result).");"; + } + } + catch(Exception $e) + { + if($callback = $jinput->get('callback', null, 'CMD')) + { + echo $callback."(".json_encode($e).");"; + } + else + { + echo "(".json_encode($e).");"; + } + } + break; case 'tableColumns': try { diff --git a/admin/controllers/compiler.php b/admin/controllers/compiler.php index edd87cc0f..0e5770100 100644 --- a/admin/controllers/compiler.php +++ b/admin/controllers/compiler.php @@ -35,79 +35,6 @@ class ComponentbuilderControllerCompiler extends JControllerAdmin return; } - - /** - * Run the Expansion - * - * @return void - */ - public function runExpansion() - { - // Check for request forgeries - JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); - // check if user has the right - $user = JFactory::getUser(); - // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=compiler', false); - // set massage - $message = JText::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE'); - // check if this user has the right to run expansion - if($user->authorise('compiler.run_expansion', 'com_componentbuilder')) - { - // set massage - $message = JText::_('COM_COMPONENTBUILDER_EXPANSION_FAILED_PLEASE_CHECK_YOUR_SETTINGS_IN_THE_GLOBAL_OPTIONS_OF_JCB_UNDER_THE_DEVELOPMENT_METHOD_TAB'); - // run expansion via API - $result = ComponentbuilderHelper::getFileContents(JURI::root() . 'index.php?option=com_componentbuilder&task=api.expand'); - // is there a message returned - if (!is_numeric($result) && ComponentbuilderHelper::checkString($result)) - { - $this->setRedirect($redirect_url, $result); - return true; - } - elseif (is_numeric($result) && 1 == $result) - { - $message = JText::_('COM_COMPONENTBUILDER_BTHE_EXPANSION_WAS_SUCCESSFULLYB_TO_SEE_MORE_INFORMATION_CHANGE_THE_BRETURN_OPTIONS_FOR_BUILDB_TO_BDISPLAY_MESSAGEB_IN_THE_GLOBAL_OPTIONS_OF_JCB_UNDER_THE_DEVELOPMENT_METHOD_TABB'); - $this->setRedirect($redirect_url, $message, 'message'); - return true; - } - } - $this->setRedirect($redirect_url, $message, 'error'); - return false; - } - - - /** - * Clear tmp folder - * - * @return true on success - */ - public function clearTmp() - { - // Check for request forgeries - JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); - // check if user has the right - $user = JFactory::getUser(); - // set page redirect - $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=compiler', false); - $message = JText::_('COM_COMPONENTBUILDER_COULD_NOT_CLEAR_THE_TMP_FOLDER'); - if($user->authorise('core.admin', 'com_componentbuilder')) - { - // get the model - $model = $this->getModel('compiler'); - // get tmp folder - $comConfig = JFactory::getConfig(); - $tmp = $comConfig->get('tmp_path'); - if ($model->emptyFolder($tmp)) - { - $message = JText::_('COM_COMPONENTBUILDER_BTHE_TMP_FOLDER_HAS_BEEN_CLEAR_SUCCESSFULLYB'); - $this->setRedirect($redirect_url, $message, 'message'); - return true; - } - } - $this->setRedirect($redirect_url, $message, 'error'); - return false; - } - /** * Run the Compiler * @@ -234,4 +161,111 @@ class ComponentbuilderControllerCompiler extends JControllerAdmin $this->setRedirect($redirect_url,$message,'error'); return false; } + + /** + * Run the Expansion + * + * @return void + */ + public function runExpansion() + { + // Check for request forgeries + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + // check if user has the right + $user = JFactory::getUser(); + // set page redirect + $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=compiler', false); + // set massage + $message = JText::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE'); + // check if this user has the right to run expansion + if($user->authorise('compiler.run_expansion', 'com_componentbuilder')) + { + // set massage + $message = JText::_('COM_COMPONENTBUILDER_EXPANSION_FAILED_PLEASE_CHECK_YOUR_SETTINGS_IN_THE_GLOBAL_OPTIONS_OF_JCB_UNDER_THE_DEVELOPMENT_METHOD_TAB'); + // run expansion via API + $result = ComponentbuilderHelper::getFileContents(JURI::root() . 'index.php?option=com_componentbuilder&task=api.expand'); + // is there a message returned + if (!is_numeric($result) && ComponentbuilderHelper::checkString($result)) + { + $this->setRedirect($redirect_url, $result); + return true; + } + elseif (is_numeric($result) && 1 == $result) + { + $message = JText::_('COM_COMPONENTBUILDER_BTHE_EXPANSION_WAS_SUCCESSFULLYB_TO_SEE_MORE_INFORMATION_CHANGE_THE_BRETURN_OPTIONS_FOR_BUILDB_TO_BDISPLAY_MESSAGEB_IN_THE_GLOBAL_OPTIONS_OF_JCB_UNDER_THE_DEVELOPMENT_METHOD_TABB'); + $this->setRedirect($redirect_url, $message, 'message'); + return true; + } + } + $this->setRedirect($redirect_url, $message, 'error'); + return false; + } + + + /** + * Clear tmp folder + * + * @return true on success + */ + public function clearTmp() + { + // Check for request forgeries + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + // check if user has the right + $user = JFactory::getUser(); + // set page redirect + $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=compiler', false); + $message = JText::_('COM_COMPONENTBUILDER_COULD_NOT_CLEAR_THE_TMP_FOLDER'); + if($user->authorise('core.admin', 'com_componentbuilder')) + { + // get the model + $model = $this->getModel('compiler'); + // get tmp folder + $comConfig = JFactory::getConfig(); + $tmp = $comConfig->get('tmp_path'); + if ($model->emptyFolder($tmp)) + { + $message = JText::_('COM_COMPONENTBUILDER_BTHE_TMP_FOLDER_HAS_BEEN_CLEAR_SUCCESSFULLYB'); + $this->setRedirect($redirect_url, $message, 'message'); + return true; + } + } + $this->setRedirect($redirect_url, $message, 'error'); + return false; + } + + + /** + * Run the Translator + * + * @return void + */ + public function runTranslator() + { + // Check for request forgeries + JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN')); + // check if user has the right + $user = JFactory::getUser(); + // set page redirect + $redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=compiler', false); + // set massage + $message = JText::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_TRANSLATOR_MODULE'); + // check if this user has the right to run expansion + if($user->authorise('compiler.run_translator', 'com_componentbuilder')) + { + // set massage + $message = JText::_('COM_COMPONENTBUILDER_TRANSLATION_FAILED_SINCE_THERE_ARE_NO_COMPONENTS_LINKED_WITH_TRANSLATION_TOOLS'); + // run translator via API + $result = ComponentbuilderHelper::getFileContents(JURI::root() . 'index.php?option=com_componentbuilder&task=api.translator'); + // is there a message returned + if (!is_numeric($result) && ComponentbuilderHelper::checkString($result)) + { + $this->setRedirect($redirect_url, $result); + return true; + } + } + $this->setRedirect($redirect_url, $message, 'error'); + return false; + } + } diff --git a/admin/controllers/joomla_component.php b/admin/controllers/joomla_component.php index a94f57d06..3cd654e60 100644 --- a/admin/controllers/joomla_component.php +++ b/admin/controllers/joomla_component.php @@ -360,6 +360,7 @@ class ComponentbuilderControllerJoomla_component extends JControllerForm 'component_config' => 'joomla_component', 'component_dashboard' => 'joomla_component', 'component_files_folders' => 'joomla_component', + 'component_placeholders' => 'joomla_component', 'custom_code' => 'component' ); foreach($_tablesArray as $_updateTable => $_key) diff --git a/admin/helpers/compiler/a_Get.php b/admin/helpers/compiler/a_Get.php index 50adbd094..5e90575d7 100644 --- a/admin/helpers/compiler/a_Get.php +++ b/admin/helpers/compiler/a_Get.php @@ -17,7 +17,7 @@ defined('_JEXEC') or die('Restricted access'); */ class Get { - + /** * The hash placeholder * diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index 39b8d4f9e..04443a66f 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -13465,7 +13465,7 @@ class Interpretation extends Fields if (isset($this->categoryBuilder[$nameList]) && ComponentbuilderHelper::checkArray($this->categoryBuilder[$nameList]) && !in_array($otherViews, $catArray)) { // get the extention array - $_extetion_array = explode('.', $this->categoryBuilder[$nameList]['extension']); + $_extetion_array = (array) explode('.', $this->categoryBuilder[$nameList]['extension']); // set the meny selection if (isset($_extetion_array[1])) { diff --git a/admin/helpers/componentbuilder.php b/admin/helpers/componentbuilder.php index f710fb68a..5db1f8202 100644 --- a/admin/helpers/componentbuilder.php +++ b/admin/helpers/componentbuilder.php @@ -2612,7 +2612,7 @@ abstract class ComponentbuilderHelper 'sessionhandler', 'spacer', 'sql', 'subform', 'tag', 'tel', 'templatestyle', 'text', 'textarea', 'timezone', 'url', 'user', 'usergroup' ), 'plain' => array( - 'cachehandler', 'calendar', 'checkbox', 'chromestyle', 'color', 'componentlayout', 'contenttype', 'editor', 'editors', + 'cachehandler', 'calendar', 'checkbox', 'chromestyle', 'color', 'componentlayout', 'contenttype', 'editor', 'editors', 'captcha', 'email', 'file', 'headertag', 'helpsite', 'hidden', 'integer', 'language', 'media', 'menu', 'menuitem', 'meter', 'modulelayout', 'moduleorder', 'moduletag', 'number', 'password', 'range', 'rules', 'tag', 'tel', 'text', 'textarea', 'timezone', 'url', 'user', 'usergroup' ), @@ -4459,6 +4459,115 @@ abstract class ComponentbuilderHelper return implode("\n", $table); } + + /** + * Change to nice fancy date + */ + public static function fancyDate($date) + { + if (!self::isValidTimeStamp($date)) + { + $date = strtotime($date); + } + return date('jS \o\f F Y',$date); + } + + /** + * get date based in period past + */ + public static function fancyDynamicDate($date) + { + if (!self::isValidTimeStamp($date)) + { + $date = strtotime($date); + } + // older then year + $lastyear = date("Y", strtotime("-1 year")); + $tragetyear = date("Y", $date); + if ($tragetyear <= $lastyear) + { + return date('m/d/y', $date); + } + // same day + $yesterday = strtotime("-1 day"); + if ($date > $yesterday) + { + return date('g:i A', $date); + } + // just month day + return date('M j', $date); + } + + /** + * Change to nice fancy day time and date + */ + public static function fancyDayTimeDate($time) + { + if (!self::isValidTimeStamp($time)) + { + $time = strtotime($time); + } + return date('D ga jS \o\f F Y',$time); + } + + /** + * Change to nice fancy time and date + */ + public static function fancyDateTime($time) + { + if (!self::isValidTimeStamp($time)) + { + $time = strtotime($time); + } + return date('(G:i) jS \o\f F Y',$time); + } + + /** + * Change to nice hour:minutes time + */ + public static function fancyTime($time) + { + if (!self::isValidTimeStamp($time)) + { + $time = strtotime($time); + } + return date('G:i',$time); + } + + /** + * set the date as 2004/05 (for charts) + */ + public static function setYearMonth($date) + { + if (!self::isValidTimeStamp($date)) + { + $date = strtotime($date); + } + return date('Y/m', $date); + } + + /** + * set the date as 2004/05/03 (for charts) + */ + public static function setYearMonthDay($date) + { + if (!self::isValidTimeStamp($date)) + { + $date = strtotime($date); + } + return date('Y/m/d', $date); + } + + /** + * Check if string is a valid time stamp + */ + public static function isValidTimeStamp($timestamp) + { + return ((int) $timestamp === $timestamp) + && ($timestamp <= PHP_INT_MAX) + && ($timestamp >= ~PHP_INT_MAX); + } + /** * Load the Component xml manifest. **/ diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini index 57af20c7e..980a285a3 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini @@ -1443,6 +1443,8 @@ COM_COMPONENTBUILDER_COMPILER_RUN_EXPANSION_BUTTON_ACCESS="Compiler Run Expansio COM_COMPONENTBUILDER_COMPILER_RUN_EXPANSION_BUTTON_ACCESS_DESC=" Allows the users in this group to access the run expansion button." COM_COMPONENTBUILDER_COMPILER_SUBMENU="Compiler Submenu" COM_COMPONENTBUILDER_COMPILER_SUBMENU_DESC="Allows the users in this group to submenu of Compiler" +COM_COMPONENTBUILDER_COMPILER_TRANSLATE_BUTTON_ACCESS="Compiler Translate Button Access" +COM_COMPONENTBUILDER_COMPILER_TRANSLATE_BUTTON_ACCESS_DESC=" Allows the users in this group to access the translate button." COM_COMPONENTBUILDER_COMPILE_COMPONENT="Compile Component" COM_COMPONENTBUILDER_COMPONENTS="Components" COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS="Components Admin Views" @@ -2724,6 +2726,7 @@ COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_STATUS="Status" COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_VERSION_DESC="A count of the number of times this Component Site Views has been revised." COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_VERSION_LABEL="Revision" COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_VIEWS="Views" +COM_COMPONENTBUILDER_COMPONENT_SUCCESSFULLY_LINKED="Component Successfully Linked" COM_COMPONENTBUILDER_COMPONENT_UPDATES="Component Updates" COM_COMPONENTBUILDER_COMPONENT_UPDATES_CREATED_BY_DESC="The user that created this Component Updates." COM_COMPONENTBUILDER_COMPONENT_UPDATES_CREATED_BY_LABEL="Created By" @@ -5104,6 +5107,23 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATED_DATE_DESC="The date this Joomla Co COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATED_DATE_LABEL="Created Date" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATUSERHELPER="Creatuserhelper" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATUSERHELPER_LABEL="Add Create User Helper Method" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN="Crowdin" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_ACCOUNT_API_KEY="Crowdin Account Api Key" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_ACCOUNT_API_KEY_DESCRIPTION="Your crowdin API key will be used to interact with your account in relation to global API methods." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_ACCOUNT_API_KEY_LABEL="Crowdin Account API (Key)
(encrypted field)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_ACCOUNT_API_KEY_MESSAGE="Error! Please add api key here." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_API_KEY="Crowdin Project Api Key" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_API_KEY_DESCRIPTION="The crowdin project API key will be used to interact with this project's API methods." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_API_KEY_LABEL="Crowdin Project API (Key)
(encrypted field)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_API_KEY_MESSAGE="Error! Please add api key here." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_IDENTIFIER="Crowdin Project Identifier" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_IDENTIFIER_DESCRIPTION="Add the crowdin project identifier here." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_IDENTIFIER_LABEL="Crowdin Project Identifier" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_PROJECT_IDENTIFIER_MESSAGE="Error! Please add identifier here." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_USERNAME="Crowdin Username" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_USERNAME_DESCRIPTION="Add the crowdin username here." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_USERNAME_LABEL="Crowdin Username
(encrypted field)" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CROWDIN_USERNAME_MESSAGE="Error! Please add username here." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN="Css Admin" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_DESCRIPTION="Add CSS for the entire back-end of your component. Do not add the style tags." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_LABEL="CSS (admin)" @@ -5216,6 +5236,24 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_DESCRIPTION=" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_LABEL="Dynamic Builder (mySql) Option" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_COMPONENT_FILES_FOLDERS_DESCRIPTION="You can add custom files and folders to the component, simply add the files to the administrator/components/com_componentbuilder/custom folder and then select them here." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_COMPONENT_FILES_FOLDERS_LABEL="Adding Custom Files & Folder" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_CROWDIN_DESCRIPTION=" +
+

Feature not ready?

+

We are still working on this integration, so it is not fully ready. Hopefully with the next update.

+
+
+
+

How to use Crowdin with JCB?

+

You will need an account with Crowdin https://crowdin.com/, then setup a project following these steps https://support.crowdin.com/creating-project/
+Once your project is created get the project API key following these steps https://support.crowdin.com/api/api-integration-setup/
+Then add the Project API key and identifier details below, and your done! Next time you compile this component JCB will automatically sync your project with Crowdin.

+
+
+
+
+
+
" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_CROWDIN_LABEL="Crowdin" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_DISPLAY_COMPONENT_ADMIN_VIEWS_DESCRIPTION="

Linked Admin Views

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

Linked Custom Admin Views

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

Linked Site Views

Display of the site views will load here!
" @@ -5379,6 +5417,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TOIGNORE_HINT="Coma separated names of fol COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TOIGNORE_LABEL="Repository Folders or Files to Ignore" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TO_IGNORE_NOTE_DESCRIPTION="During compilation JCB deletes all files and folders from the repository folder, and then adds the newly created files and folders back into the repository folder. Yet there may be files or folders you may not want deleted, like the .git folder, since JCB does not dynamically create that folder and so it will not be placed back, but simply delete it, unless you add it in this text field below, so that it will be ignored, and therefore not deleted in the first place. You can add multiple folders and files, separated by commas. Like: .git, .hg" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TO_IGNORE_NOTE_LABEL="Repository Folders or Files to Ignore" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TRANSLATION_TOOL="Translation Tool" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TRANSLATION_TOOL_LABEL="Translation Tool" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATES_NOT_READY="Updates (NOT READY!)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER="Update Server" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_DESCRIPTION="Select your update server for this component." @@ -7353,6 +7393,8 @@ COM_COMPONENTBUILDER_TO_CHANGE_THE_PACKAGE_OWNER_DEFAULTS_OPEN_THE_BJCB_GLOBAL_O COM_COMPONENTBUILDER_TO_CHANGE_THE_PACKAGE_OWNER_DEFAULTS_OPEN_THE_JCB_GLOBAL_OPTIONS_GO_TO_THE_COMPANY_TAB_AND_ADD_THE_CORRECT_COMPANY_DETAILS_THERE="To change the package owner defaults. Open the JCB Global Options, go to the Company tab and add the correct company details there." COM_COMPONENTBUILDER_TO_SHARE_THESE_SNIPPETS_WITH_THE_REST_OF_THE_JCB_COMMUNITY="To share these snippets with the rest of the JCB community," COM_COMPONENTBUILDER_TO_SHARE_THIS_SNIPPET_WITH_THE_REST_OF_THE_JCB_COMMUNITY="To share this snippet with the rest of the JCB community," +COM_COMPONENTBUILDER_TRANSLATE="Translate" +COM_COMPONENTBUILDER_TRANSLATION_FAILED_SINCE_THERE_ARE_NO_COMPONENTS_LINKED_WITH_TRANSLATION_TOOLS="Translation failed, since there are no components linked with translation tools!" COM_COMPONENTBUILDER_TRASHED="Trashed" COM_COMPONENTBUILDER_TUTORIAL_ON_FORKING_JCB_SNIPPETS_BSB="Tutorial on forking JCB snippets: %s" COM_COMPONENTBUILDER_TUTORIAL_ON_MAKING_A_PULL_REQUEST_BSB="Tutorial on making a pull request: %s" @@ -7488,6 +7530,7 @@ COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_ACCESS_THE_SERVER_DETAILS_BS_ COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_CLONE_A_COMPONENT_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP="You do not have permission to clone a component, please contact your system administrator for more help." COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_IMPORT_A_COMPONENT_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP="You do not have permission to import a component, please contact your system administrator for more help." COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_EXPANSION_MODULE="You do not have permission to run the expansion module!" +COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_TRANSLATOR_MODULE="You do not have permission to run the translator module!" COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_SHARE_THE_SNIPPETS_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP="You do not have permission to share the snippets, please contact your system administrator for more help." COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_S_S_IS_CONSIDERED_BAD_PRACTICE="You have %s %s. Adding more then %s %s is considered bad practice." COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_S_S_IS_CONSIDERED_BAD_PRACTICE_YOUR_S_PAGE_LOAD_IN_JCB_WILL_SLOWDOWN_YOU_SHOULD_CONSIDER_DECOUPLING_SOME_OF_THESE_S="You have %s %s. Adding more then %s %s is considered bad practice. Your %s page load in JCB will slowdown. You should consider decoupling some of these %s." diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini index 7cb2361b6..3bf832b79 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.sys.ini @@ -121,6 +121,8 @@ COM_COMPONENTBUILDER_COMPILER_RUN_EXPANSION_BUTTON_ACCESS="Compiler Run Expansio COM_COMPONENTBUILDER_COMPILER_RUN_EXPANSION_BUTTON_ACCESS_DESC=" Allows the users in this group to access the run expansion button." COM_COMPONENTBUILDER_COMPILER_SUBMENU="Compiler Submenu" COM_COMPONENTBUILDER_COMPILER_SUBMENU_DESC="Allows the users in this group to submenu of Compiler" +COM_COMPONENTBUILDER_COMPILER_TRANSLATE_BUTTON_ACCESS="Compiler Translate Button Access" +COM_COMPONENTBUILDER_COMPILER_TRANSLATE_BUTTON_ACCESS_DESC=" Allows the users in this group to access the translate button." COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS="Components Admin Views Access" COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_ACCESS_DESC="Allows the users in this group to access access components admin views" COM_COMPONENTBUILDER_COMPONENTS_ADMIN_VIEWS_BATCH_USE="Components Admin Views Batch Use" diff --git a/admin/layouts/fieldtype/fields_fullwidth.php b/admin/layouts/fieldtype/fields_fullwidth.php index 1f3953212..9e78718bf 100644 --- a/admin/layouts/fieldtype/fields_fullwidth.php +++ b/admin/layouts/fieldtype/fields_fullwidth.php @@ -13,7 +13,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->wamfields; +$items = $displayData->wapfields; $user = JFactory::getUser(); $id = $displayData->item->id; // set the edit URL diff --git a/admin/layouts/joomla_component/dynamic_integration_fullwidth.php b/admin/layouts/joomla_component/dynamic_integration_left.php similarity index 71% rename from admin/layouts/joomla_component/dynamic_integration_fullwidth.php rename to admin/layouts/joomla_component/dynamic_integration_left.php index 327d114b6..36818ddf9 100644 --- a/admin/layouts/joomla_component/dynamic_integration_fullwidth.php +++ b/admin/layouts/joomla_component/dynamic_integration_left.php @@ -29,11 +29,9 @@ $fields = $displayData->get('fields') ?: array( $hiddenFields = $displayData->get('hidden_fields') ?: array(); ?> -
- - - setFieldAttribute($field, 'type', 'hidden'); ?> - - renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> - -
+ + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + diff --git a/admin/layouts/joomla_component/dynamic_integration_right.php b/admin/layouts/joomla_component/dynamic_integration_right.php new file mode 100644 index 000000000..f5315bdb4 --- /dev/null +++ b/admin/layouts/joomla_component/dynamic_integration_right.php @@ -0,0 +1,34 @@ + + * @github Joomla Component Builder + * @copyright Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved. + * @license GNU General Public License version 2 or later; see LICENSE.txt + */ + +// No direct access to this file +defined('_JEXEC') or die('Restricted access'); + +$form = $displayData->getForm(); + +$fields = $displayData->get('fields') ?: array( + 'translation_tool', + 'note_crowdin', + 'crowdin_project_identifier', + 'crowdin_project_api_key', + 'crowdin_username', + 'crowdin_account_api_key' +); + +$hiddenFields = $displayData->get('hidden_fields') ?: array(); + +?> + + + setFieldAttribute($field, 'type', 'hidden'); ?> + + renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?> + diff --git a/admin/layouts/server/linked_components_fullwidth.php b/admin/layouts/server/linked_components_fullwidth.php index e74ac9248..1b07ca66f 100644 --- a/admin/layouts/server/linked_components_fullwidth.php +++ b/admin/layouts/server/linked_components_fullwidth.php @@ -13,7 +13,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->wawlinked_components; +$items = $displayData->wazlinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; // set the edit URL diff --git a/admin/models/ajax.php b/admin/models/ajax.php index 90839e748..6c09e19d2 100644 --- a/admin/models/ajax.php +++ b/admin/models/ajax.php @@ -76,6 +76,58 @@ class ComponentbuilderModelAjax extends JModelList } return false; } + /** + * get the crowdin project details (html) + **/ + public function getCrowdinDetails($identifier, $key) + { + // set the url + $url = "https://api.crowdin.com/api/project/$identifier/info?key=$key&json"; + // get the details + if (($details = ComponentbuilderHelper::getFileContents($url, false)) !== false && ComponentbuilderHelper::checkJson($details)) + { + $details = json_decode($details, true); + // check if there is an error + if (isset($details['error'])) + { + return array('error' => '
' . $details['error']['message'] . '

Identifier: ' . $identifier . '
'); + } + // build the details html + if (isset($details['details'])) + { + $html = '
'; + $html .= '

' . JText::_('COM_COMPONENTBUILDER_COMPONENT_SUCCESSFULLY_LINKED') . '

'; + $html .= '

' . $details['details']['name'] . '

'; + if (ComponentbuilderHelper::checkString($details['details']['description'])) + { + $html .= '

'; + $html .= $details['details']['description']; + $html .= '

'; + } + $html .= '
    '; + $html .= '
  • Number of participants: '; + $html .= $details['details']['participants_count']; + $html .= '
  • '; + $html .= '
  • Total strings count: '; + $html .= $details['details']['total_strings_count']; + $html .= '
  • '; + $html .= '
  • Total words count: '; + $html .= $details['details']['total_words_count']; + $html .= '
  • '; + $html .= '
  • Created: '; + $html .= ComponentbuilderHelper::fancyDate($details['details']['created']); + $html .= '
  • '; + $html .= '
  • Last activity: '; + $html .= ComponentbuilderHelper::fancyDate($details['details']['last_activity']); + $html .= '
  • '; + $html .= '
'; + $html .= '
'; + return array('html' => $html); + } + } + return false; + } + /** * get the component details (html) **/ diff --git a/admin/models/fieldtype.php b/admin/models/fieldtype.php index 40c90c7cf..6a2d0300e 100644 --- a/admin/models/fieldtype.php +++ b/admin/models/fieldtype.php @@ -155,7 +155,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getWamfields() + public function getWapfields() { // Get the user object. $user = JFactory::getUser(); @@ -237,13 +237,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin foreach ($items as $nr => &$item) { // convert datatype - $item->datatype = $this->selectionTranslationWamfields($item->datatype, 'datatype'); + $item->datatype = $this->selectionTranslationWapfields($item->datatype, 'datatype'); // convert indexes - $item->indexes = $this->selectionTranslationWamfields($item->indexes, 'indexes'); + $item->indexes = $this->selectionTranslationWapfields($item->indexes, 'indexes'); // convert null_switch - $item->null_switch = $this->selectionTranslationWamfields($item->null_switch, 'null_switch'); + $item->null_switch = $this->selectionTranslationWapfields($item->null_switch, 'null_switch'); // convert store - $item->store = $this->selectionTranslationWamfields($item->store, 'store'); + $item->store = $this->selectionTranslationWapfields($item->store, 'store'); } } @@ -257,7 +257,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return translatable string */ - public function selectionTranslationWamfields($value,$name) + public function selectionTranslationWapfields($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 b9910c7de..e08365bb0 100644 --- a/admin/models/forms/admin_view.js +++ b/admin/models/forms/admin_view.js @@ -9,348 +9,348 @@ */ // Some Global Values -jform_vvvvvxavwo_required = false; -jform_vvvvvxbvwp_required = false; -jform_vvvvvxcvwq_required = false; -jform_vvvvvxdvwr_required = false; -jform_vvvvvxevws_required = false; -jform_vvvvvxfvwt_required = false; -jform_vvvvvxgvwu_required = false; -jform_vvvvvxhvwv_required = false; -jform_vvvvvxivww_required = false; -jform_vvvvvxjvwx_required = false; -jform_vvvvvxkvwy_required = false; -jform_vvvvvxlvwz_required = false; -jform_vvvvvxmvxa_required = false; -jform_vvvvvxnvxb_required = false; -jform_vvvvvxovxc_required = false; -jform_vvvvvxpvxd_required = false; -jform_vvvvvxqvxe_required = false; -jform_vvvvvxrvxf_required = false; -jform_vvvvvxsvxg_required = false; -jform_vvvvvxtvxh_required = false; -jform_vvvvvxuvxi_required = false; -jform_vvvvvxvvxj_required = false; -jform_vvvvvxwvxk_required = false; -jform_vvvvvxxvxl_required = false; -jform_vvvvvxyvxm_required = false; -jform_vvvvvxzvxn_required = false; -jform_vvvvvydvxo_required = false; -jform_vvvvvydvxp_required = false; -jform_vvvvvydvxq_required = false; -jform_vvvvvydvxr_required = false; -jform_vvvvvydvxs_required = false; -jform_vvvvvydvxt_required = false; -jform_vvvvvydvxu_required = false; -jform_vvvvvyfvxv_required = false; -jform_vvvvvyfvxw_required = false; -jform_vvvvvyfvxx_required = false; -jform_vvvvvyfvxy_required = false; +jform_vvvvvxbvwr_required = false; +jform_vvvvvxcvws_required = false; +jform_vvvvvxdvwt_required = false; +jform_vvvvvxevwu_required = false; +jform_vvvvvxfvwv_required = false; +jform_vvvvvxgvww_required = false; +jform_vvvvvxhvwx_required = false; +jform_vvvvvxivwy_required = false; +jform_vvvvvxjvwz_required = false; +jform_vvvvvxkvxa_required = false; +jform_vvvvvxlvxb_required = false; +jform_vvvvvxmvxc_required = false; +jform_vvvvvxnvxd_required = false; +jform_vvvvvxovxe_required = false; +jform_vvvvvxpvxf_required = false; +jform_vvvvvxqvxg_required = false; +jform_vvvvvxrvxh_required = false; +jform_vvvvvxsvxi_required = false; +jform_vvvvvxtvxj_required = false; +jform_vvvvvxuvxk_required = false; +jform_vvvvvxvvxl_required = false; +jform_vvvvvxwvxm_required = false; +jform_vvvvvxxvxn_required = false; +jform_vvvvvxyvxo_required = false; +jform_vvvvvxzvxp_required = false; +jform_vvvvvyavxq_required = false; +jform_vvvvvyevxr_required = false; +jform_vvvvvyevxs_required = false; +jform_vvvvvyevxt_required = false; +jform_vvvvvyevxu_required = false; +jform_vvvvvyevxv_required = false; +jform_vvvvvyevxw_required = false; +jform_vvvvvyevxx_required = false; +jform_vvvvvygvxy_required = false; +jform_vvvvvygvxz_required = false; +jform_vvvvvygvya_required = false; +jform_vvvvvygvyb_required = false; // Initial Script jQuery(document).ready(function() { - var add_css_view_vvvvvxa = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvvxa(add_css_view_vvvvvxa); + var add_css_view_vvvvvxb = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvvxb(add_css_view_vvvvvxb); - var add_css_views_vvvvvxb = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvvxb(add_css_views_vvvvvxb); + var add_css_views_vvvvvxc = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvvxc(add_css_views_vvvvvxc); - 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_view_file_vvvvvxd = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val(); + vvvvvxd(add_javascript_view_file_vvvvvxd); - 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_views_file_vvvvvxe = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val(); + vvvvvxe(add_javascript_views_file_vvvvvxe); - 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_view_footer_vvvvvxf = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvvxf(add_javascript_view_footer_vvvvvxf); - 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_javascript_views_footer_vvvvvxg = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvvxg(add_javascript_views_footer_vvvvvxg); - var add_php_ajax_vvvvvxg = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvxg(add_php_ajax_vvvvvxg); + var add_php_ajax_vvvvvxh = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvxh(add_php_ajax_vvvvvxh); - var add_php_getitem_vvvvvxh = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); - vvvvvxh(add_php_getitem_vvvvvxh); + var add_php_getitem_vvvvvxi = jQuery("#jform_add_php_getitem input[type='radio']:checked").val(); + vvvvvxi(add_php_getitem_vvvvvxi); - var add_php_getitems_vvvvvxi = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); - vvvvvxi(add_php_getitems_vvvvvxi); + var add_php_getitems_vvvvvxj = jQuery("#jform_add_php_getitems input[type='radio']:checked").val(); + vvvvvxj(add_php_getitems_vvvvvxj); - 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_getitems_after_all_vvvvvxk = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val(); + vvvvvxk(add_php_getitems_after_all_vvvvvxk); - var add_php_getlistquery_vvvvvxk = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); - vvvvvxk(add_php_getlistquery_vvvvvxk); + var add_php_getlistquery_vvvvvxl = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); + vvvvvxl(add_php_getlistquery_vvvvvxl); - var add_php_getform_vvvvvxl = jQuery("#jform_add_php_getform input[type='radio']:checked").val(); - vvvvvxl(add_php_getform_vvvvvxl); + var add_php_getform_vvvvvxm = jQuery("#jform_add_php_getform input[type='radio']:checked").val(); + vvvvvxm(add_php_getform_vvvvvxm); - var add_php_before_save_vvvvvxm = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); - vvvvvxm(add_php_before_save_vvvvvxm); + var add_php_before_save_vvvvvxn = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); + vvvvvxn(add_php_before_save_vvvvvxn); - var add_php_save_vvvvvxn = jQuery("#jform_add_php_save input[type='radio']:checked").val(); - vvvvvxn(add_php_save_vvvvvxn); + var add_php_save_vvvvvxo = jQuery("#jform_add_php_save input[type='radio']:checked").val(); + vvvvvxo(add_php_save_vvvvvxo); - var add_php_postsavehook_vvvvvxo = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); - vvvvvxo(add_php_postsavehook_vvvvvxo); + var add_php_postsavehook_vvvvvxp = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); + vvvvvxp(add_php_postsavehook_vvvvvxp); - var add_php_allowadd_vvvvvxp = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val(); - vvvvvxp(add_php_allowadd_vvvvvxp); + var add_php_allowadd_vvvvvxq = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val(); + vvvvvxq(add_php_allowadd_vvvvvxq); - var add_php_allowedit_vvvvvxq = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); - vvvvvxq(add_php_allowedit_vvvvvxq); + var add_php_allowedit_vvvvvxr = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); + vvvvvxr(add_php_allowedit_vvvvvxr); - var add_php_batchcopy_vvvvvxr = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); - vvvvvxr(add_php_batchcopy_vvvvvxr); + var add_php_batchcopy_vvvvvxs = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); + vvvvvxs(add_php_batchcopy_vvvvvxs); - var add_php_batchmove_vvvvvxs = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); - vvvvvxs(add_php_batchmove_vvvvvxs); + var add_php_batchmove_vvvvvxt = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); + vvvvvxt(add_php_batchmove_vvvvvxt); - var add_php_before_publish_vvvvvxt = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); - vvvvvxt(add_php_before_publish_vvvvvxt); + var add_php_before_publish_vvvvvxu = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); + vvvvvxu(add_php_before_publish_vvvvvxu); - var add_php_after_publish_vvvvvxu = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); - vvvvvxu(add_php_after_publish_vvvvvxu); + var add_php_after_publish_vvvvvxv = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); + vvvvvxv(add_php_after_publish_vvvvvxv); - var add_php_before_delete_vvvvvxv = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); - vvvvvxv(add_php_before_delete_vvvvvxv); + var add_php_before_delete_vvvvvxw = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); + vvvvvxw(add_php_before_delete_vvvvvxw); - var add_php_after_delete_vvvvvxw = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); - vvvvvxw(add_php_after_delete_vvvvvxw); + var add_php_after_delete_vvvvvxx = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); + vvvvvxx(add_php_after_delete_vvvvvxx); - var add_php_document_vvvvvxx = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvxx(add_php_document_vvvvvxx); + var add_php_document_vvvvvxy = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvxy(add_php_document_vvvvvxy); - var add_sql_vvvvvxy = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxy(add_sql_vvvvvxy); - - 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); + vvvvvxz(add_sql_vvvvvxz); - var source_vvvvvyb = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvyb = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvyb(source_vvvvvyb,add_sql_vvvvvyb); + var source_vvvvvya = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvya = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvya(source_vvvvvya,add_sql_vvvvvya); - var add_custom_import_vvvvvyd = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvyd(add_custom_import_vvvvvyd); + var source_vvvvvyc = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvyc = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvyc(source_vvvvvyc,add_sql_vvvvvyc); var add_custom_import_vvvvvye = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); vvvvvye(add_custom_import_vvvvvye); - var add_custom_button_vvvvvyf = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvyf(add_custom_button_vvvvvyf); + var add_custom_import_vvvvvyf = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvyf(add_custom_import_vvvvvyf); + + var add_custom_button_vvvvvyg = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvyg(add_custom_button_vvvvvyg); }); -// the vvvvvxa function -function vvvvvxa(add_css_view_vvvvvxa) +// the vvvvvxb function +function vvvvvxb(add_css_view_vvvvvxb) { // set the function logic - if (add_css_view_vvvvvxa == 1) + if (add_css_view_vvvvvxb == 1) { jQuery('#jform_css_view-lbl').closest('.control-group').show(); // add required attribute to css_view field - if (jform_vvvvvxavwo_required) + if (jform_vvvvvxbvwr_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_vvvvvxavwo_required = false; + jform_vvvvvxbvwr_required = false; } } else { jQuery('#jform_css_view-lbl').closest('.control-group').hide(); // remove required attribute from css_view field - if (!jform_vvvvvxavwo_required) + if (!jform_vvvvvxbvwr_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; + jform_vvvvvxbvwr_required = true; } } } -// the vvvvvxb function -function vvvvvxb(add_css_views_vvvvvxb) +// the vvvvvxc function +function vvvvvxc(add_css_views_vvvvvxc) { // set the function logic - if (add_css_views_vvvvvxb == 1) + if (add_css_views_vvvvvxc == 1) { jQuery('#jform_css_views-lbl').closest('.control-group').show(); // add required attribute to css_views field - if (jform_vvvvvxbvwp_required) + if (jform_vvvvvxcvws_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; + jform_vvvvvxcvws_required = false; } } else { jQuery('#jform_css_views-lbl').closest('.control-group').hide(); // remove required attribute from css_views field - if (!jform_vvvvvxbvwp_required) + if (!jform_vvvvvxcvws_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; + jform_vvvvvxcvws_required = true; } } } -// the vvvvvxc function -function vvvvvxc(add_javascript_view_file_vvvvvxc) +// the vvvvvxd function +function vvvvvxd(add_javascript_view_file_vvvvvxd) { // set the function logic - if (add_javascript_view_file_vvvvvxc == 1) + if (add_javascript_view_file_vvvvvxd == 1) { jQuery('#jform_javascript_view_file-lbl').closest('.control-group').show(); // add required attribute to javascript_view_file field - if (jform_vvvvvxcvwq_required) + if (jform_vvvvvxdvwt_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; + jform_vvvvvxdvwt_required = false; } } else { jQuery('#jform_javascript_view_file-lbl').closest('.control-group').hide(); // remove required attribute from javascript_view_file field - if (!jform_vvvvvxcvwq_required) + if (!jform_vvvvvxdvwt_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; + jform_vvvvvxdvwt_required = true; } } } -// the vvvvvxd function -function vvvvvxd(add_javascript_views_file_vvvvvxd) +// the vvvvvxe function +function vvvvvxe(add_javascript_views_file_vvvvvxe) { // set the function logic - if (add_javascript_views_file_vvvvvxd == 1) + if (add_javascript_views_file_vvvvvxe == 1) { jQuery('#jform_javascript_views_file-lbl').closest('.control-group').show(); // add required attribute to javascript_views_file field - if (jform_vvvvvxdvwr_required) + if (jform_vvvvvxevwu_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; + jform_vvvvvxevwu_required = false; } } else { jQuery('#jform_javascript_views_file-lbl').closest('.control-group').hide(); // remove required attribute from javascript_views_file field - if (!jform_vvvvvxdvwr_required) + if (!jform_vvvvvxevwu_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; + jform_vvvvvxevwu_required = true; } } } -// the vvvvvxe function -function vvvvvxe(add_javascript_view_footer_vvvvvxe) +// the vvvvvxf function +function vvvvvxf(add_javascript_view_footer_vvvvvxf) { // set the function logic - if (add_javascript_view_footer_vvvvvxe == 1) + if (add_javascript_view_footer_vvvvvxf == 1) { jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show(); // add required attribute to javascript_view_footer field - if (jform_vvvvvxevws_required) + if (jform_vvvvvxfvwv_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; + jform_vvvvvxfvwv_required = false; } } else { jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').hide(); // remove required attribute from javascript_view_footer field - if (!jform_vvvvvxevws_required) + if (!jform_vvvvvxfvwv_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; + jform_vvvvvxfvwv_required = true; } } } -// the vvvvvxf function -function vvvvvxf(add_javascript_views_footer_vvvvvxf) +// the vvvvvxg function +function vvvvvxg(add_javascript_views_footer_vvvvvxg) { // set the function logic - if (add_javascript_views_footer_vvvvvxf == 1) + if (add_javascript_views_footer_vvvvvxg == 1) { jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show(); // add required attribute to javascript_views_footer field - if (jform_vvvvvxfvwt_required) + if (jform_vvvvvxgvww_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; + jform_vvvvvxgvww_required = false; } } else { jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').hide(); // remove required attribute from javascript_views_footer field - if (!jform_vvvvvxfvwt_required) + if (!jform_vvvvvxgvww_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; + jform_vvvvvxgvww_required = true; } } } -// the vvvvvxg function -function vvvvvxg(add_php_ajax_vvvvvxg) +// the vvvvvxh function +function vvvvvxh(add_php_ajax_vvvvvxh) { // set the function logic - if (add_php_ajax_vvvvvxg == 1) + if (add_php_ajax_vvvvvxh == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show(); // add required attribute to php_ajaxmethod field - if (jform_vvvvvxgvwu_required) + if (jform_vvvvvxhvwx_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_vvvvvxgvwu_required = false; + jform_vvvvvxhvwx_required = false; } } else @@ -358,630 +358,630 @@ function vvvvvxg(add_php_ajax_vvvvvxg) jQuery('#jform_ajax_input-lbl').closest('.control-group').hide(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').hide(); // remove required attribute from php_ajaxmethod field - if (!jform_vvvvvxgvwu_required) + if (!jform_vvvvvxhvwx_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_vvvvvxgvwu_required = true; + jform_vvvvvxhvwx_required = true; } } } -// the vvvvvxh function -function vvvvvxh(add_php_getitem_vvvvvxh) +// the vvvvvxi function +function vvvvvxi(add_php_getitem_vvvvvxi) { // set the function logic - if (add_php_getitem_vvvvvxh == 1) + if (add_php_getitem_vvvvvxi == 1) { jQuery('#jform_php_getitem-lbl').closest('.control-group').show(); // add required attribute to php_getitem field - if (jform_vvvvvxhvwv_required) + if (jform_vvvvvxivwy_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; + jform_vvvvvxivwy_required = false; } } else { jQuery('#jform_php_getitem-lbl').closest('.control-group').hide(); // remove required attribute from php_getitem field - if (!jform_vvvvvxhvwv_required) + if (!jform_vvvvvxivwy_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; + jform_vvvvvxivwy_required = true; } } } -// the vvvvvxi function -function vvvvvxi(add_php_getitems_vvvvvxi) +// the vvvvvxj function +function vvvvvxj(add_php_getitems_vvvvvxj) { // set the function logic - if (add_php_getitems_vvvvvxi == 1) + if (add_php_getitems_vvvvvxj == 1) { jQuery('#jform_php_getitems-lbl').closest('.control-group').show(); // add required attribute to php_getitems field - if (jform_vvvvvxivww_required) + if (jform_vvvvvxjvwz_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; + jform_vvvvvxjvwz_required = false; } } else { jQuery('#jform_php_getitems-lbl').closest('.control-group').hide(); // remove required attribute from php_getitems field - if (!jform_vvvvvxivww_required) + if (!jform_vvvvvxjvwz_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; + jform_vvvvvxjvwz_required = true; } } } -// the vvvvvxj function -function vvvvvxj(add_php_getitems_after_all_vvvvvxj) +// the vvvvvxk function +function vvvvvxk(add_php_getitems_after_all_vvvvvxk) { // set the function logic - if (add_php_getitems_after_all_vvvvvxj == 1) + if (add_php_getitems_after_all_vvvvvxk == 1) { jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').show(); // add required attribute to php_getitems_after_all field - if (jform_vvvvvxjvwx_required) + if (jform_vvvvvxkvxa_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; + jform_vvvvvxkvxa_required = false; } } else { jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').hide(); // remove required attribute from php_getitems_after_all field - if (!jform_vvvvvxjvwx_required) + if (!jform_vvvvvxkvxa_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; + jform_vvvvvxkvxa_required = true; } } } -// the vvvvvxk function -function vvvvvxk(add_php_getlistquery_vvvvvxk) +// the vvvvvxl function +function vvvvvxl(add_php_getlistquery_vvvvvxl) { // set the function logic - if (add_php_getlistquery_vvvvvxk == 1) + if (add_php_getlistquery_vvvvvxl == 1) { jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show(); // add required attribute to php_getlistquery field - if (jform_vvvvvxkvwy_required) + if (jform_vvvvvxlvxb_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; + jform_vvvvvxlvxb_required = false; } } else { jQuery('#jform_php_getlistquery-lbl').closest('.control-group').hide(); // remove required attribute from php_getlistquery field - if (!jform_vvvvvxkvwy_required) + if (!jform_vvvvvxlvxb_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; + jform_vvvvvxlvxb_required = true; } } } -// the vvvvvxl function -function vvvvvxl(add_php_getform_vvvvvxl) +// the vvvvvxm function +function vvvvvxm(add_php_getform_vvvvvxm) { // set the function logic - if (add_php_getform_vvvvvxl == 1) + if (add_php_getform_vvvvvxm == 1) { jQuery('#jform_php_getform-lbl').closest('.control-group').show(); // add required attribute to php_getform field - if (jform_vvvvvxlvwz_required) + if (jform_vvvvvxmvxc_required) { updateFieldRequired('php_getform',0); jQuery('#jform_php_getform').prop('required','required'); jQuery('#jform_php_getform').attr('aria-required',true); jQuery('#jform_php_getform').addClass('required'); - jform_vvvvvxlvwz_required = false; + jform_vvvvvxmvxc_required = false; } } else { jQuery('#jform_php_getform-lbl').closest('.control-group').hide(); // remove required attribute from php_getform field - if (!jform_vvvvvxlvwz_required) + if (!jform_vvvvvxmvxc_required) { updateFieldRequired('php_getform',1); jQuery('#jform_php_getform').removeAttr('required'); jQuery('#jform_php_getform').removeAttr('aria-required'); jQuery('#jform_php_getform').removeClass('required'); - jform_vvvvvxlvwz_required = true; + jform_vvvvvxmvxc_required = true; } } } -// the vvvvvxm function -function vvvvvxm(add_php_before_save_vvvvvxm) +// the vvvvvxn function +function vvvvvxn(add_php_before_save_vvvvvxn) { // set the function logic - if (add_php_before_save_vvvvvxm == 1) + if (add_php_before_save_vvvvvxn == 1) { jQuery('#jform_php_before_save-lbl').closest('.control-group').show(); // add required attribute to php_before_save field - if (jform_vvvvvxmvxa_required) + if (jform_vvvvvxnvxd_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_vvvvvxmvxa_required = false; + jform_vvvvvxnvxd_required = false; } } else { jQuery('#jform_php_before_save-lbl').closest('.control-group').hide(); // remove required attribute from php_before_save field - if (!jform_vvvvvxmvxa_required) + if (!jform_vvvvvxnvxd_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_vvvvvxmvxa_required = true; + jform_vvvvvxnvxd_required = true; } } } -// the vvvvvxn function -function vvvvvxn(add_php_save_vvvvvxn) +// the vvvvvxo function +function vvvvvxo(add_php_save_vvvvvxo) { // set the function logic - if (add_php_save_vvvvvxn == 1) + if (add_php_save_vvvvvxo == 1) { jQuery('#jform_php_save-lbl').closest('.control-group').show(); // add required attribute to php_save field - if (jform_vvvvvxnvxb_required) + if (jform_vvvvvxovxe_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_vvvvvxnvxb_required = false; + jform_vvvvvxovxe_required = false; } } else { jQuery('#jform_php_save-lbl').closest('.control-group').hide(); // remove required attribute from php_save field - if (!jform_vvvvvxnvxb_required) + if (!jform_vvvvvxovxe_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_vvvvvxnvxb_required = true; + jform_vvvvvxovxe_required = true; } } } -// the vvvvvxo function -function vvvvvxo(add_php_postsavehook_vvvvvxo) +// the vvvvvxp function +function vvvvvxp(add_php_postsavehook_vvvvvxp) { // set the function logic - if (add_php_postsavehook_vvvvvxo == 1) + if (add_php_postsavehook_vvvvvxp == 1) { jQuery('#jform_php_postsavehook-lbl').closest('.control-group').show(); // add required attribute to php_postsavehook field - if (jform_vvvvvxovxc_required) + if (jform_vvvvvxpvxf_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_vvvvvxovxc_required = false; + jform_vvvvvxpvxf_required = false; } } else { jQuery('#jform_php_postsavehook-lbl').closest('.control-group').hide(); // remove required attribute from php_postsavehook field - if (!jform_vvvvvxovxc_required) + if (!jform_vvvvvxpvxf_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_vvvvvxovxc_required = true; + jform_vvvvvxpvxf_required = true; } } } -// the vvvvvxp function -function vvvvvxp(add_php_allowadd_vvvvvxp) +// the vvvvvxq function +function vvvvvxq(add_php_allowadd_vvvvvxq) { // set the function logic - if (add_php_allowadd_vvvvvxp == 1) + if (add_php_allowadd_vvvvvxq == 1) { jQuery('#jform_php_allowadd-lbl').closest('.control-group').show(); // add required attribute to php_allowadd field - if (jform_vvvvvxpvxd_required) + if (jform_vvvvvxqvxg_required) { updateFieldRequired('php_allowadd',0); jQuery('#jform_php_allowadd').prop('required','required'); jQuery('#jform_php_allowadd').attr('aria-required',true); jQuery('#jform_php_allowadd').addClass('required'); - jform_vvvvvxpvxd_required = false; + jform_vvvvvxqvxg_required = false; } } else { jQuery('#jform_php_allowadd-lbl').closest('.control-group').hide(); // remove required attribute from php_allowadd field - if (!jform_vvvvvxpvxd_required) + if (!jform_vvvvvxqvxg_required) { updateFieldRequired('php_allowadd',1); jQuery('#jform_php_allowadd').removeAttr('required'); jQuery('#jform_php_allowadd').removeAttr('aria-required'); jQuery('#jform_php_allowadd').removeClass('required'); - jform_vvvvvxpvxd_required = true; + jform_vvvvvxqvxg_required = true; } } } -// the vvvvvxq function -function vvvvvxq(add_php_allowedit_vvvvvxq) +// the vvvvvxr function +function vvvvvxr(add_php_allowedit_vvvvvxr) { // set the function logic - if (add_php_allowedit_vvvvvxq == 1) + if (add_php_allowedit_vvvvvxr == 1) { jQuery('#jform_php_allowedit-lbl').closest('.control-group').show(); // add required attribute to php_allowedit field - if (jform_vvvvvxqvxe_required) + if (jform_vvvvvxrvxh_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_vvvvvxqvxe_required = false; + jform_vvvvvxrvxh_required = false; } } else { jQuery('#jform_php_allowedit-lbl').closest('.control-group').hide(); // remove required attribute from php_allowedit field - if (!jform_vvvvvxqvxe_required) + if (!jform_vvvvvxrvxh_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_vvvvvxqvxe_required = true; + jform_vvvvvxrvxh_required = true; } } } -// the vvvvvxr function -function vvvvvxr(add_php_batchcopy_vvvvvxr) +// the vvvvvxs function +function vvvvvxs(add_php_batchcopy_vvvvvxs) { // set the function logic - if (add_php_batchcopy_vvvvvxr == 1) + if (add_php_batchcopy_vvvvvxs == 1) { jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show(); // add required attribute to php_batchcopy field - if (jform_vvvvvxrvxf_required) + if (jform_vvvvvxsvxi_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_vvvvvxrvxf_required = false; + jform_vvvvvxsvxi_required = false; } } else { jQuery('#jform_php_batchcopy-lbl').closest('.control-group').hide(); // remove required attribute from php_batchcopy field - if (!jform_vvvvvxrvxf_required) + if (!jform_vvvvvxsvxi_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_vvvvvxrvxf_required = true; + jform_vvvvvxsvxi_required = true; } } } -// the vvvvvxs function -function vvvvvxs(add_php_batchmove_vvvvvxs) +// the vvvvvxt function +function vvvvvxt(add_php_batchmove_vvvvvxt) { // set the function logic - if (add_php_batchmove_vvvvvxs == 1) + if (add_php_batchmove_vvvvvxt == 1) { jQuery('#jform_php_batchmove-lbl').closest('.control-group').show(); // add required attribute to php_batchmove field - if (jform_vvvvvxsvxg_required) + if (jform_vvvvvxtvxj_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_vvvvvxsvxg_required = false; + jform_vvvvvxtvxj_required = false; } } else { jQuery('#jform_php_batchmove-lbl').closest('.control-group').hide(); // remove required attribute from php_batchmove field - if (!jform_vvvvvxsvxg_required) + if (!jform_vvvvvxtvxj_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_vvvvvxsvxg_required = true; + jform_vvvvvxtvxj_required = true; } } } -// the vvvvvxt function -function vvvvvxt(add_php_before_publish_vvvvvxt) +// the vvvvvxu function +function vvvvvxu(add_php_before_publish_vvvvvxu) { // set the function logic - if (add_php_before_publish_vvvvvxt == 1) + if (add_php_before_publish_vvvvvxu == 1) { jQuery('#jform_php_before_publish-lbl').closest('.control-group').show(); // add required attribute to php_before_publish field - if (jform_vvvvvxtvxh_required) + if (jform_vvvvvxuvxk_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_vvvvvxtvxh_required = false; + jform_vvvvvxuvxk_required = false; } } else { jQuery('#jform_php_before_publish-lbl').closest('.control-group').hide(); // remove required attribute from php_before_publish field - if (!jform_vvvvvxtvxh_required) + if (!jform_vvvvvxuvxk_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_vvvvvxtvxh_required = true; + jform_vvvvvxuvxk_required = true; } } } -// the vvvvvxu function -function vvvvvxu(add_php_after_publish_vvvvvxu) +// the vvvvvxv function +function vvvvvxv(add_php_after_publish_vvvvvxv) { // set the function logic - if (add_php_after_publish_vvvvvxu == 1) + if (add_php_after_publish_vvvvvxv == 1) { jQuery('#jform_php_after_publish-lbl').closest('.control-group').show(); // add required attribute to php_after_publish field - if (jform_vvvvvxuvxi_required) + if (jform_vvvvvxvvxl_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_vvvvvxuvxi_required = false; + jform_vvvvvxvvxl_required = false; } } else { jQuery('#jform_php_after_publish-lbl').closest('.control-group').hide(); // remove required attribute from php_after_publish field - if (!jform_vvvvvxuvxi_required) + if (!jform_vvvvvxvvxl_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_vvvvvxuvxi_required = true; + jform_vvvvvxvvxl_required = true; } } } -// the vvvvvxv function -function vvvvvxv(add_php_before_delete_vvvvvxv) +// the vvvvvxw function +function vvvvvxw(add_php_before_delete_vvvvvxw) { // set the function logic - if (add_php_before_delete_vvvvvxv == 1) + if (add_php_before_delete_vvvvvxw == 1) { jQuery('#jform_php_before_delete-lbl').closest('.control-group').show(); // add required attribute to php_before_delete field - if (jform_vvvvvxvvxj_required) + if (jform_vvvvvxwvxm_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_vvvvvxvvxj_required = false; + jform_vvvvvxwvxm_required = false; } } else { jQuery('#jform_php_before_delete-lbl').closest('.control-group').hide(); // remove required attribute from php_before_delete field - if (!jform_vvvvvxvvxj_required) + if (!jform_vvvvvxwvxm_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_vvvvvxvvxj_required = true; + jform_vvvvvxwvxm_required = true; } } } -// the vvvvvxw function -function vvvvvxw(add_php_after_delete_vvvvvxw) +// the vvvvvxx function +function vvvvvxx(add_php_after_delete_vvvvvxx) { // set the function logic - if (add_php_after_delete_vvvvvxw == 1) + if (add_php_after_delete_vvvvvxx == 1) { jQuery('#jform_php_after_delete-lbl').closest('.control-group').show(); // add required attribute to php_after_delete field - if (jform_vvvvvxwvxk_required) + if (jform_vvvvvxxvxn_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_vvvvvxwvxk_required = false; + jform_vvvvvxxvxn_required = false; } } else { jQuery('#jform_php_after_delete-lbl').closest('.control-group').hide(); // remove required attribute from php_after_delete field - if (!jform_vvvvvxwvxk_required) + if (!jform_vvvvvxxvxn_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_vvvvvxwvxk_required = true; + jform_vvvvvxxvxn_required = true; } } } -// the vvvvvxx function -function vvvvvxx(add_php_document_vvvvvxx) +// the vvvvvxy function +function vvvvvxy(add_php_document_vvvvvxy) { // set the function logic - if (add_php_document_vvvvvxx == 1) + if (add_php_document_vvvvvxy == 1) { jQuery('#jform_php_document-lbl').closest('.control-group').show(); // add required attribute to php_document field - if (jform_vvvvvxxvxl_required) + if (jform_vvvvvxyvxo_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_vvvvvxxvxl_required = false; + jform_vvvvvxyvxo_required = false; } } else { jQuery('#jform_php_document-lbl').closest('.control-group').hide(); // remove required attribute from php_document field - if (!jform_vvvvvxxvxl_required) + if (!jform_vvvvvxyvxo_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_vvvvvxxvxl_required = true; + jform_vvvvvxyvxo_required = true; } } } -// the vvvvvxy function -function vvvvvxy(add_sql_vvvvvxy) +// the vvvvvxz function +function vvvvvxz(add_sql_vvvvvxz) { // set the function logic - if (add_sql_vvvvvxy == 1) + if (add_sql_vvvvvxz == 1) { jQuery('#jform_source').closest('.control-group').show(); // add required attribute to source field - if (jform_vvvvvxyvxm_required) + if (jform_vvvvvxzvxp_required) { updateFieldRequired('source',0); jQuery('#jform_source').prop('required','required'); jQuery('#jform_source').attr('aria-required',true); jQuery('#jform_source').addClass('required'); - jform_vvvvvxyvxm_required = false; + jform_vvvvvxzvxp_required = false; } } else { jQuery('#jform_source').closest('.control-group').hide(); // remove required attribute from source field - if (!jform_vvvvvxyvxm_required) + if (!jform_vvvvvxzvxp_required) { updateFieldRequired('source',1); jQuery('#jform_source').removeAttr('required'); jQuery('#jform_source').removeAttr('aria-required'); jQuery('#jform_source').removeClass('required'); - jform_vvvvvxyvxm_required = true; + jform_vvvvvxzvxp_required = true; } } } -// the vvvvvxz function -function vvvvvxz(source_vvvvvxz,add_sql_vvvvvxz) +// the vvvvvya function +function vvvvvya(source_vvvvvya,add_sql_vvvvvya) { // set the function logic - if (source_vvvvvxz == 2 && add_sql_vvvvvxz == 1) + if (source_vvvvvya == 2 && add_sql_vvvvvya == 1) { jQuery('#jform_sql').closest('.control-group').show(); // add required attribute to sql field - if (jform_vvvvvxzvxn_required) + if (jform_vvvvvyavxq_required) { updateFieldRequired('sql',0); jQuery('#jform_sql').prop('required','required'); jQuery('#jform_sql').attr('aria-required',true); jQuery('#jform_sql').addClass('required'); - jform_vvvvvxzvxn_required = false; + jform_vvvvvyavxq_required = false; } } else { jQuery('#jform_sql').closest('.control-group').hide(); // remove required attribute from sql field - if (!jform_vvvvvxzvxn_required) + if (!jform_vvvvvyavxq_required) { updateFieldRequired('sql',1); jQuery('#jform_sql').removeAttr('required'); jQuery('#jform_sql').removeAttr('aria-required'); jQuery('#jform_sql').removeClass('required'); - jform_vvvvvxzvxn_required = true; + jform_vvvvvyavxq_required = true; } } } -// the vvvvvyb function -function vvvvvyb(source_vvvvvyb,add_sql_vvvvvyb) +// the vvvvvyc function +function vvvvvyc(source_vvvvvyc,add_sql_vvvvvyc) { // set the function logic - if (source_vvvvvyb == 1 && add_sql_vvvvvyb == 1) + if (source_vvvvvyc == 1 && add_sql_vvvvvyc == 1) { jQuery('#jform_addtables-lbl').closest('.control-group').show(); } @@ -991,165 +991,165 @@ function vvvvvyb(source_vvvvvyb,add_sql_vvvvvyb) } } -// the vvvvvyd function -function vvvvvyd(add_custom_import_vvvvvyd) +// the vvvvvye function +function vvvvvye(add_custom_import_vvvvvye) { // set the function logic - if (add_custom_import_vvvvvyd == 1) + if (add_custom_import_vvvvvye == 1) { jQuery('#jform_html_import_view').closest('.control-group').show(); // add required attribute to html_import_view field - if (jform_vvvvvydvxo_required) + if (jform_vvvvvyevxr_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_vvvvvydvxo_required = false; + jform_vvvvvyevxr_required = false; } jQuery('.note_advanced_import').closest('.control-group').show(); jQuery('#jform_php_import_display').closest('.control-group').show(); // add required attribute to php_import_display field - if (jform_vvvvvydvxp_required) + if (jform_vvvvvyevxs_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_vvvvvydvxp_required = false; + jform_vvvvvyevxs_required = false; } jQuery('#jform_php_import_ext').closest('.control-group').show(); // add required attribute to php_import_ext field - if (jform_vvvvvydvxq_required) + if (jform_vvvvvyevxt_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_vvvvvydvxq_required = false; + jform_vvvvvyevxt_required = false; } jQuery('#jform_php_import_headers').closest('.control-group').show(); // add required attribute to php_import_headers field - if (jform_vvvvvydvxr_required) + if (jform_vvvvvyevxu_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_vvvvvydvxr_required = false; + jform_vvvvvyevxu_required = false; } jQuery('#jform_php_import').closest('.control-group').show(); // add required attribute to php_import field - if (jform_vvvvvydvxs_required) + if (jform_vvvvvyevxv_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_vvvvvydvxs_required = false; + jform_vvvvvyevxv_required = false; } jQuery('#jform_php_import_save').closest('.control-group').show(); // add required attribute to php_import_save field - if (jform_vvvvvydvxt_required) + if (jform_vvvvvyevxw_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_vvvvvydvxt_required = false; + jform_vvvvvyevxw_required = false; } jQuery('#jform_php_import_setdata').closest('.control-group').show(); // add required attribute to php_import_setdata field - if (jform_vvvvvydvxu_required) + if (jform_vvvvvyevxx_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_vvvvvydvxu_required = false; + jform_vvvvvyevxx_required = false; } } else { jQuery('#jform_html_import_view').closest('.control-group').hide(); // remove required attribute from html_import_view field - if (!jform_vvvvvydvxo_required) + if (!jform_vvvvvyevxr_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_vvvvvydvxo_required = true; + jform_vvvvvyevxr_required = true; } jQuery('.note_advanced_import').closest('.control-group').hide(); jQuery('#jform_php_import_display').closest('.control-group').hide(); // remove required attribute from php_import_display field - if (!jform_vvvvvydvxp_required) + if (!jform_vvvvvyevxs_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_vvvvvydvxp_required = true; + jform_vvvvvyevxs_required = true; } jQuery('#jform_php_import_ext').closest('.control-group').hide(); // remove required attribute from php_import_ext field - if (!jform_vvvvvydvxq_required) + if (!jform_vvvvvyevxt_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_vvvvvydvxq_required = true; + jform_vvvvvyevxt_required = true; } jQuery('#jform_php_import_headers').closest('.control-group').hide(); // remove required attribute from php_import_headers field - if (!jform_vvvvvydvxr_required) + if (!jform_vvvvvyevxu_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_vvvvvydvxr_required = true; + jform_vvvvvyevxu_required = true; } jQuery('#jform_php_import').closest('.control-group').hide(); // remove required attribute from php_import field - if (!jform_vvvvvydvxs_required) + if (!jform_vvvvvyevxv_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_vvvvvydvxs_required = true; + jform_vvvvvyevxv_required = true; } jQuery('#jform_php_import_save').closest('.control-group').hide(); // remove required attribute from php_import_save field - if (!jform_vvvvvydvxt_required) + if (!jform_vvvvvyevxw_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_vvvvvydvxt_required = true; + jform_vvvvvyevxw_required = true; } jQuery('#jform_php_import_setdata').closest('.control-group').hide(); // remove required attribute from php_import_setdata field - if (!jform_vvvvvydvxu_required) + if (!jform_vvvvvyevxx_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_vvvvvydvxu_required = true; + jform_vvvvvyevxx_required = true; } } } -// the vvvvvye function -function vvvvvye(add_custom_import_vvvvvye) +// the vvvvvyf function +function vvvvvyf(add_custom_import_vvvvvyf) { // set the function logic - if (add_custom_import_vvvvvye == 0) + if (add_custom_import_vvvvvyf == 0) { jQuery('.note_beginner_import').closest('.control-group').show(); } @@ -1159,52 +1159,52 @@ function vvvvvye(add_custom_import_vvvvvye) } } -// the vvvvvyf function -function vvvvvyf(add_custom_button_vvvvvyf) +// the vvvvvyg function +function vvvvvyg(add_custom_button_vvvvvyg) { // set the function logic - if (add_custom_button_vvvvvyf == 1) + if (add_custom_button_vvvvvyg == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller-lbl').closest('.control-group').show(); // add required attribute to php_controller field - if (jform_vvvvvyfvxv_required) + if (jform_vvvvvygvxy_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_vvvvvyfvxv_required = false; + jform_vvvvvygvxy_required = false; } jQuery('#jform_php_controller_list-lbl').closest('.control-group').show(); // add required attribute to php_controller_list field - if (jform_vvvvvyfvxw_required) + if (jform_vvvvvygvxz_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_vvvvvyfvxw_required = false; + jform_vvvvvygvxz_required = false; } jQuery('#jform_php_model-lbl').closest('.control-group').show(); // add required attribute to php_model field - if (jform_vvvvvyfvxx_required) + if (jform_vvvvvygvya_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_vvvvvyfvxx_required = false; + jform_vvvvvygvya_required = false; } jQuery('#jform_php_model_list-lbl').closest('.control-group').show(); // add required attribute to php_model_list field - if (jform_vvvvvyfvxy_required) + if (jform_vvvvvygvyb_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_vvvvvyfvxy_required = false; + jform_vvvvvygvyb_required = false; } } else @@ -1212,43 +1212,43 @@ function vvvvvyf(add_custom_button_vvvvvyf) jQuery('#jform_custom_button-lbl').closest('.control-group').hide(); jQuery('#jform_php_controller-lbl').closest('.control-group').hide(); // remove required attribute from php_controller field - if (!jform_vvvvvyfvxv_required) + if (!jform_vvvvvygvxy_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_vvvvvyfvxv_required = true; + jform_vvvvvygvxy_required = true; } jQuery('#jform_php_controller_list-lbl').closest('.control-group').hide(); // remove required attribute from php_controller_list field - if (!jform_vvvvvyfvxw_required) + if (!jform_vvvvvygvxz_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_vvvvvyfvxw_required = true; + jform_vvvvvygvxz_required = true; } jQuery('#jform_php_model-lbl').closest('.control-group').hide(); // remove required attribute from php_model field - if (!jform_vvvvvyfvxx_required) + if (!jform_vvvvvygvya_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_vvvvvyfvxx_required = true; + jform_vvvvvygvya_required = true; } jQuery('#jform_php_model_list-lbl').closest('.control-group').hide(); // remove required attribute from php_model_list field - if (!jform_vvvvvyfvxy_required) + if (!jform_vvvvvygvyb_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_vvvvvyfvxy_required = true; + jform_vvvvvygvyb_required = true; } } } diff --git a/admin/models/forms/custom_admin_view.js b/admin/models/forms/custom_admin_view.js index 6ee176b49..664b3240a 100644 --- a/admin/models/forms/custom_admin_view.js +++ b/admin/models/forms/custom_admin_view.js @@ -9,302 +9,302 @@ */ // Some Global Values -jform_vvvvvygvxz_required = false; -jform_vvvvvyhvya_required = false; -jform_vvvvvyivyb_required = false; -jform_vvvvvyjvyc_required = false; -jform_vvvvvykvyd_required = false; -jform_vvvvvylvye_required = false; -jform_vvvvvymvyf_required = false; -jform_vvvvvynvyg_required = false; -jform_vvvvvynvyh_required = false; -jform_vvvvvyovyi_required = false; -jform_vvvvvypvyj_required = false; +jform_vvvvvyhvyc_required = false; +jform_vvvvvyivyd_required = false; +jform_vvvvvyjvye_required = false; +jform_vvvvvykvyf_required = false; +jform_vvvvvylvyg_required = false; +jform_vvvvvymvyh_required = false; +jform_vvvvvynvyi_required = false; +jform_vvvvvyovyj_required = false; +jform_vvvvvyovyk_required = false; +jform_vvvvvypvyl_required = false; +jform_vvvvvyqvym_required = false; // Initial Script jQuery(document).ready(function() { - var add_php_view_vvvvvyg = jQuery("#jform_add_php_view input[type='radio']:checked").val(); - vvvvvyg(add_php_view_vvvvvyg); + var add_php_view_vvvvvyh = jQuery("#jform_add_php_view input[type='radio']:checked").val(); + vvvvvyh(add_php_view_vvvvvyh); - var add_php_jview_display_vvvvvyh = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); - vvvvvyh(add_php_jview_display_vvvvvyh); + var add_php_jview_display_vvvvvyi = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val(); + vvvvvyi(add_php_jview_display_vvvvvyi); - var add_php_jview_vvvvvyi = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); - vvvvvyi(add_php_jview_vvvvvyi); + var add_php_jview_vvvvvyj = jQuery("#jform_add_php_jview input[type='radio']:checked").val(); + vvvvvyj(add_php_jview_vvvvvyj); - var add_php_document_vvvvvyj = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvyj(add_php_document_vvvvvyj); + var add_php_document_vvvvvyk = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvyk(add_php_document_vvvvvyk); - var add_css_document_vvvvvyk = jQuery("#jform_add_css_document input[type='radio']:checked").val(); - vvvvvyk(add_css_document_vvvvvyk); + var add_css_document_vvvvvyl = jQuery("#jform_add_css_document input[type='radio']:checked").val(); + vvvvvyl(add_css_document_vvvvvyl); - var add_javascript_file_vvvvvyl = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); - vvvvvyl(add_javascript_file_vvvvvyl); + var add_javascript_file_vvvvvym = jQuery("#jform_add_javascript_file input[type='radio']:checked").val(); + vvvvvym(add_javascript_file_vvvvvym); - var add_js_document_vvvvvym = jQuery("#jform_add_js_document input[type='radio']:checked").val(); - vvvvvym(add_js_document_vvvvvym); + var add_js_document_vvvvvyn = jQuery("#jform_add_js_document input[type='radio']:checked").val(); + vvvvvyn(add_js_document_vvvvvyn); - var add_custom_button_vvvvvyn = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvyn(add_custom_button_vvvvvyn); + var add_custom_button_vvvvvyo = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvyo(add_custom_button_vvvvvyo); - var add_css_vvvvvyo = jQuery("#jform_add_css input[type='radio']:checked").val(); - vvvvvyo(add_css_vvvvvyo); + var add_css_vvvvvyp = jQuery("#jform_add_css input[type='radio']:checked").val(); + vvvvvyp(add_css_vvvvvyp); - var add_php_ajax_vvvvvyp = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); - vvvvvyp(add_php_ajax_vvvvvyp); + var add_php_ajax_vvvvvyq = jQuery("#jform_add_php_ajax input[type='radio']:checked").val(); + vvvvvyq(add_php_ajax_vvvvvyq); }); -// the vvvvvyg function -function vvvvvyg(add_php_view_vvvvvyg) +// the vvvvvyh function +function vvvvvyh(add_php_view_vvvvvyh) { // set the function logic - if (add_php_view_vvvvvyg == 1) + if (add_php_view_vvvvvyh == 1) { jQuery('#jform_php_view-lbl').closest('.control-group').show(); // add required attribute to php_view field - if (jform_vvvvvygvxz_required) + if (jform_vvvvvyhvyc_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_vvvvvygvxz_required = false; + jform_vvvvvyhvyc_required = false; } } else { jQuery('#jform_php_view-lbl').closest('.control-group').hide(); // remove required attribute from php_view field - if (!jform_vvvvvygvxz_required) + if (!jform_vvvvvyhvyc_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_vvvvvygvxz_required = true; + jform_vvvvvyhvyc_required = true; } } } -// the vvvvvyh function -function vvvvvyh(add_php_jview_display_vvvvvyh) +// the vvvvvyi function +function vvvvvyi(add_php_jview_display_vvvvvyi) { // set the function logic - if (add_php_jview_display_vvvvvyh == 1) + if (add_php_jview_display_vvvvvyi == 1) { jQuery('#jform_php_jview_display-lbl').closest('.control-group').show(); // add required attribute to php_jview_display field - if (jform_vvvvvyhvya_required) + if (jform_vvvvvyivyd_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_vvvvvyhvya_required = false; + jform_vvvvvyivyd_required = false; } } else { jQuery('#jform_php_jview_display-lbl').closest('.control-group').hide(); // remove required attribute from php_jview_display field - if (!jform_vvvvvyhvya_required) + if (!jform_vvvvvyivyd_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_vvvvvyhvya_required = true; + jform_vvvvvyivyd_required = true; } } } -// the vvvvvyi function -function vvvvvyi(add_php_jview_vvvvvyi) +// the vvvvvyj function +function vvvvvyj(add_php_jview_vvvvvyj) { // set the function logic - if (add_php_jview_vvvvvyi == 1) + if (add_php_jview_vvvvvyj == 1) { jQuery('#jform_php_jview-lbl').closest('.control-group').show(); // add required attribute to php_jview field - if (jform_vvvvvyivyb_required) + if (jform_vvvvvyjvye_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_vvvvvyivyb_required = false; + jform_vvvvvyjvye_required = false; } } else { jQuery('#jform_php_jview-lbl').closest('.control-group').hide(); // remove required attribute from php_jview field - if (!jform_vvvvvyivyb_required) + if (!jform_vvvvvyjvye_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_vvvvvyivyb_required = true; + jform_vvvvvyjvye_required = true; } } } -// the vvvvvyj function -function vvvvvyj(add_php_document_vvvvvyj) +// the vvvvvyk function +function vvvvvyk(add_php_document_vvvvvyk) { // set the function logic - if (add_php_document_vvvvvyj == 1) + if (add_php_document_vvvvvyk == 1) { jQuery('#jform_php_document-lbl').closest('.control-group').show(); // add required attribute to php_document field - if (jform_vvvvvyjvyc_required) + if (jform_vvvvvykvyf_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_vvvvvyjvyc_required = false; + jform_vvvvvykvyf_required = false; } } else { jQuery('#jform_php_document-lbl').closest('.control-group').hide(); // remove required attribute from php_document field - if (!jform_vvvvvyjvyc_required) + if (!jform_vvvvvykvyf_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_vvvvvyjvyc_required = true; + jform_vvvvvykvyf_required = true; } } } -// the vvvvvyk function -function vvvvvyk(add_css_document_vvvvvyk) +// the vvvvvyl function +function vvvvvyl(add_css_document_vvvvvyl) { // set the function logic - if (add_css_document_vvvvvyk == 1) + if (add_css_document_vvvvvyl == 1) { jQuery('#jform_css_document-lbl').closest('.control-group').show(); // add required attribute to css_document field - if (jform_vvvvvykvyd_required) + if (jform_vvvvvylvyg_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_vvvvvykvyd_required = false; + jform_vvvvvylvyg_required = false; } } else { jQuery('#jform_css_document-lbl').closest('.control-group').hide(); // remove required attribute from css_document field - if (!jform_vvvvvykvyd_required) + if (!jform_vvvvvylvyg_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_vvvvvykvyd_required = true; + jform_vvvvvylvyg_required = true; } } } -// the vvvvvyl function -function vvvvvyl(add_javascript_file_vvvvvyl) +// the vvvvvym function +function vvvvvym(add_javascript_file_vvvvvym) { // set the function logic - if (add_javascript_file_vvvvvyl == 1) + if (add_javascript_file_vvvvvym == 1) { jQuery('#jform_javascript_file-lbl').closest('.control-group').show(); // add required attribute to javascript_file field - if (jform_vvvvvylvye_required) + if (jform_vvvvvymvyh_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_vvvvvylvye_required = false; + jform_vvvvvymvyh_required = false; } } else { jQuery('#jform_javascript_file-lbl').closest('.control-group').hide(); // remove required attribute from javascript_file field - if (!jform_vvvvvylvye_required) + if (!jform_vvvvvymvyh_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_vvvvvylvye_required = true; + jform_vvvvvymvyh_required = true; } } } -// the vvvvvym function -function vvvvvym(add_js_document_vvvvvym) +// the vvvvvyn function +function vvvvvyn(add_js_document_vvvvvyn) { // set the function logic - if (add_js_document_vvvvvym == 1) + if (add_js_document_vvvvvyn == 1) { jQuery('#jform_js_document-lbl').closest('.control-group').show(); // add required attribute to js_document field - if (jform_vvvvvymvyf_required) + if (jform_vvvvvynvyi_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_vvvvvymvyf_required = false; + jform_vvvvvynvyi_required = false; } } else { jQuery('#jform_js_document-lbl').closest('.control-group').hide(); // remove required attribute from js_document field - if (!jform_vvvvvymvyf_required) + if (!jform_vvvvvynvyi_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_vvvvvymvyf_required = true; + jform_vvvvvynvyi_required = true; } } } -// the vvvvvyn function -function vvvvvyn(add_custom_button_vvvvvyn) +// the vvvvvyo function +function vvvvvyo(add_custom_button_vvvvvyo) { // set the function logic - if (add_custom_button_vvvvvyn == 1) + if (add_custom_button_vvvvvyo == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); jQuery('#jform_php_controller-lbl').closest('.control-group').show(); // add required attribute to php_controller field - if (jform_vvvvvynvyg_required) + if (jform_vvvvvyovyj_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_vvvvvynvyg_required = false; + jform_vvvvvyovyj_required = false; } jQuery('#jform_php_model-lbl').closest('.control-group').show(); // add required attribute to php_model field - if (jform_vvvvvynvyh_required) + if (jform_vvvvvyovyk_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_vvvvvynvyh_required = false; + jform_vvvvvyovyk_required = false; } } else @@ -312,75 +312,75 @@ function vvvvvyn(add_custom_button_vvvvvyn) jQuery('#jform_custom_button-lbl').closest('.control-group').hide(); jQuery('#jform_php_controller-lbl').closest('.control-group').hide(); // remove required attribute from php_controller field - if (!jform_vvvvvynvyg_required) + if (!jform_vvvvvyovyj_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_vvvvvynvyg_required = true; + jform_vvvvvyovyj_required = true; } jQuery('#jform_php_model-lbl').closest('.control-group').hide(); // remove required attribute from php_model field - if (!jform_vvvvvynvyh_required) + if (!jform_vvvvvyovyk_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_vvvvvynvyh_required = true; + jform_vvvvvyovyk_required = true; } } } -// the vvvvvyo function -function vvvvvyo(add_css_vvvvvyo) +// the vvvvvyp function +function vvvvvyp(add_css_vvvvvyp) { // set the function logic - if (add_css_vvvvvyo == 1) + if (add_css_vvvvvyp == 1) { jQuery('#jform_css-lbl').closest('.control-group').show(); // add required attribute to css field - if (jform_vvvvvyovyi_required) + if (jform_vvvvvypvyl_required) { updateFieldRequired('css',0); jQuery('#jform_css').prop('required','required'); jQuery('#jform_css').attr('aria-required',true); jQuery('#jform_css').addClass('required'); - jform_vvvvvyovyi_required = false; + jform_vvvvvypvyl_required = false; } } else { jQuery('#jform_css-lbl').closest('.control-group').hide(); // remove required attribute from css field - if (!jform_vvvvvyovyi_required) + if (!jform_vvvvvypvyl_required) { updateFieldRequired('css',1); jQuery('#jform_css').removeAttr('required'); jQuery('#jform_css').removeAttr('aria-required'); jQuery('#jform_css').removeClass('required'); - jform_vvvvvyovyi_required = true; + jform_vvvvvypvyl_required = true; } } } -// the vvvvvyp function -function vvvvvyp(add_php_ajax_vvvvvyp) +// the vvvvvyq function +function vvvvvyq(add_php_ajax_vvvvvyq) { // set the function logic - if (add_php_ajax_vvvvvyp == 1) + if (add_php_ajax_vvvvvyq == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show(); // add required attribute to php_ajaxmethod field - if (jform_vvvvvypvyj_required) + if (jform_vvvvvyqvym_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_vvvvvypvyj_required = false; + jform_vvvvvyqvym_required = false; } } else @@ -388,13 +388,13 @@ function vvvvvyp(add_php_ajax_vvvvvyp) jQuery('#jform_ajax_input-lbl').closest('.control-group').hide(); jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').hide(); // remove required attribute from php_ajaxmethod field - if (!jform_vvvvvypvyj_required) + if (!jform_vvvvvyqvym_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_vvvvvypvyj_required = true; + jform_vvvvvyqvym_required = true; } } } diff --git a/admin/models/forms/custom_code.js b/admin/models/forms/custom_code.js index f5d501789..3de69a3a7 100644 --- a/admin/models/forms/custom_code.js +++ b/admin/models/forms/custom_code.js @@ -9,44 +9,44 @@ */ // Some Global Values -jform_vvvvwaevzr_required = false; -jform_vvvvwafvzs_required = false; -jform_vvvvwafvzt_required = false; jform_vvvvwafvzu_required = false; +jform_vvvvwagvzv_required = false; +jform_vvvvwagvzw_required = false; +jform_vvvvwagvzx_required = false; // Initial Script jQuery(document).ready(function() { - var target_vvvvwae = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwae(target_vvvvwae); - var target_vvvvwaf = jQuery("#jform_target input[type='radio']:checked").val(); vvvvwaf(target_vvvvwaf); var target_vvvvwag = jQuery("#jform_target input[type='radio']:checked").val(); - var type_vvvvwag = jQuery("#jform_type input[type='radio']:checked").val(); - vvvvwag(target_vvvvwag,type_vvvvwag); + vvvvwag(target_vvvvwag); - var type_vvvvwah = jQuery("#jform_type input[type='radio']:checked").val(); var target_vvvvwah = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwah(type_vvvvwah,target_vvvvwah); + var type_vvvvwah = jQuery("#jform_type input[type='radio']:checked").val(); + vvvvwah(target_vvvvwah,type_vvvvwah); + + var type_vvvvwai = jQuery("#jform_type input[type='radio']:checked").val(); + var target_vvvvwai = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwai(type_vvvvwai,target_vvvvwai); }); -// the vvvvwae function -function vvvvwae(target_vvvvwae) +// the vvvvwaf function +function vvvvwaf(target_vvvvwaf) { // set the function logic - if (target_vvvvwae == 2) + if (target_vvvvwaf == 2) { jQuery('#jform_function_name').closest('.control-group').show(); // add required attribute to function_name field - if (jform_vvvvwaevzr_required) + if (jform_vvvvwafvzu_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_vvvvwaevzr_required = false; + jform_vvvvwafvzu_required = false; } jQuery('.note_jcb_placeholder').closest('.control-group').show(); jQuery('#jform_system_name').closest('.control-group').show(); @@ -55,102 +55,102 @@ function vvvvwae(target_vvvvwae) { jQuery('#jform_function_name').closest('.control-group').hide(); // remove required attribute from function_name field - if (!jform_vvvvwaevzr_required) + if (!jform_vvvvwafvzu_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_vvvvwaevzr_required = true; + jform_vvvvwafvzu_required = true; } jQuery('.note_jcb_placeholder').closest('.control-group').hide(); jQuery('#jform_system_name').closest('.control-group').hide(); } } -// the vvvvwaf function -function vvvvwaf(target_vvvvwaf) +// the vvvvwag function +function vvvvwag(target_vvvvwag) { // set the function logic - if (target_vvvvwaf == 1) + if (target_vvvvwag == 1) { jQuery('#jform_component').closest('.control-group').show(); // add required attribute to component field - if (jform_vvvvwafvzs_required) + if (jform_vvvvwagvzv_required) { updateFieldRequired('component',0); jQuery('#jform_component').prop('required','required'); jQuery('#jform_component').attr('aria-required',true); jQuery('#jform_component').addClass('required'); - jform_vvvvwafvzs_required = false; + jform_vvvvwagvzv_required = false; } jQuery('#jform_path').closest('.control-group').show(); // add required attribute to path field - if (jform_vvvvwafvzt_required) + if (jform_vvvvwagvzw_required) { updateFieldRequired('path',0); jQuery('#jform_path').prop('required','required'); jQuery('#jform_path').attr('aria-required',true); jQuery('#jform_path').addClass('required'); - jform_vvvvwafvzt_required = false; + jform_vvvvwagvzw_required = false; } jQuery('#jform_from_line').closest('.control-group').show(); jQuery('#jform_hashtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); jQuery('#jform_type').closest('.control-group').show(); // add required attribute to type field - if (jform_vvvvwafvzu_required) + if (jform_vvvvwagvzx_required) { updateFieldRequired('type',0); jQuery('#jform_type').prop('required','required'); jQuery('#jform_type').attr('aria-required',true); jQuery('#jform_type').addClass('required'); - jform_vvvvwafvzu_required = false; + jform_vvvvwagvzx_required = false; } } else { jQuery('#jform_component').closest('.control-group').hide(); // remove required attribute from component field - if (!jform_vvvvwafvzs_required) + if (!jform_vvvvwagvzv_required) { updateFieldRequired('component',1); jQuery('#jform_component').removeAttr('required'); jQuery('#jform_component').removeAttr('aria-required'); jQuery('#jform_component').removeClass('required'); - jform_vvvvwafvzs_required = true; + jform_vvvvwagvzv_required = true; } jQuery('#jform_path').closest('.control-group').hide(); // remove required attribute from path field - if (!jform_vvvvwafvzt_required) + if (!jform_vvvvwagvzw_required) { updateFieldRequired('path',1); jQuery('#jform_path').removeAttr('required'); jQuery('#jform_path').removeAttr('aria-required'); jQuery('#jform_path').removeClass('required'); - jform_vvvvwafvzt_required = true; + jform_vvvvwagvzw_required = true; } jQuery('#jform_from_line').closest('.control-group').hide(); jQuery('#jform_hashtarget').closest('.control-group').hide(); jQuery('#jform_to_line').closest('.control-group').hide(); jQuery('#jform_type').closest('.control-group').hide(); // remove required attribute from type field - if (!jform_vvvvwafvzu_required) + if (!jform_vvvvwagvzx_required) { updateFieldRequired('type',1); jQuery('#jform_type').removeAttr('required'); jQuery('#jform_type').removeAttr('aria-required'); jQuery('#jform_type').removeClass('required'); - jform_vvvvwafvzu_required = true; + jform_vvvvwagvzx_required = true; } } } -// the vvvvwag function -function vvvvwag(target_vvvvwag,type_vvvvwag) +// the vvvvwah function +function vvvvwah(target_vvvvwah,type_vvvvwah) { // set the function logic - if (target_vvvvwag == 1 && type_vvvvwag == 1) + if (target_vvvvwah == 1 && type_vvvvwah == 1) { jQuery('#jform_hashendtarget').closest('.control-group').show(); jQuery('#jform_to_line').closest('.control-group').show(); @@ -162,11 +162,11 @@ function vvvvwag(target_vvvvwag,type_vvvvwag) } } -// the vvvvwah function -function vvvvwah(type_vvvvwah,target_vvvvwah) +// the vvvvwai function +function vvvvwai(type_vvvvwai,target_vvvvwai) { // set the function logic - if (type_vvvvwah == 1 && target_vvvvwah == 1) + if (type_vvvvwai == 1 && target_vvvvwai == 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 7d49b105d..33da3c9f4 100644 --- a/admin/models/forms/dynamic_get.js +++ b/admin/models/forms/dynamic_get.js @@ -9,35 +9,32 @@ */ // Some Global Values -jform_vvvvvzdvyx_required = false; -jform_vvvvvzfvyy_required = false; -jform_vvvvvzgvyz_required = false; -jform_vvvvvzhvza_required = false; -jform_vvvvvzivzb_required = false; -jform_vvvvvzjvzc_required = false; -jform_vvvvvzovzd_required = false; -jform_vvvvvzqvze_required = false; -jform_vvvvvzrvzf_required = false; -jform_vvvvvztvzg_required = false; -jform_vvvvvztvzh_required = false; -jform_vvvvvzuvzi_required = false; -jform_vvvvvzvvzj_required = false; -jform_vvvvvzwvzk_required = false; -jform_vvvvvzyvzl_required = false; -jform_vvvvvzyvzm_required = false; -jform_vvvvvzyvzn_required = false; +jform_vvvvvzevza_required = false; +jform_vvvvvzgvzb_required = false; +jform_vvvvvzhvzc_required = false; +jform_vvvvvzivzd_required = false; +jform_vvvvvzjvze_required = false; +jform_vvvvvzkvzf_required = false; +jform_vvvvvzpvzg_required = false; +jform_vvvvvzrvzh_required = false; +jform_vvvvvzsvzi_required = false; +jform_vvvvvzuvzj_required = false; +jform_vvvvvzuvzk_required = false; +jform_vvvvvzvvzl_required = false; +jform_vvvvvzwvzm_required = false; +jform_vvvvvzxvzn_required = false; jform_vvvvvzzvzo_required = false; -jform_vvvvwaavzp_required = false; -jform_vvvvwabvzq_required = false; +jform_vvvvvzzvzp_required = false; +jform_vvvvvzzvzq_required = false; +jform_vvvvwaavzr_required = false; +jform_vvvvwabvzs_required = false; +jform_vvvvwacvzt_required = false; // Initial Script jQuery(document).ready(function() { - var gettype_vvvvvzd = jQuery("#jform_gettype").val(); - vvvvvzd(gettype_vvvvvzd); - - var main_source_vvvvvze = jQuery("#jform_main_source").val(); - vvvvvze(main_source_vvvvvze); + var gettype_vvvvvze = jQuery("#jform_gettype").val(); + vvvvvze(gettype_vvvvvze); var main_source_vvvvvzf = jQuery("#jform_main_source").val(); vvvvvzf(main_source_vvvvvzf); @@ -51,48 +48,48 @@ jQuery(document).ready(function() var main_source_vvvvvzi = jQuery("#jform_main_source").val(); vvvvvzi(main_source_vvvvvzi); - var addcalculation_vvvvvzj = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - vvvvvzj(addcalculation_vvvvvzj); + var main_source_vvvvvzj = jQuery("#jform_main_source").val(); + vvvvvzj(main_source_vvvvvzj); var addcalculation_vvvvvzk = jQuery("#jform_addcalculation input[type='radio']:checked").val(); - var gettype_vvvvvzk = jQuery("#jform_gettype").val(); - vvvvvzk(addcalculation_vvvvvzk,gettype_vvvvvzk); + vvvvvzk(addcalculation_vvvvvzk); var addcalculation_vvvvvzl = jQuery("#jform_addcalculation input[type='radio']:checked").val(); var gettype_vvvvvzl = jQuery("#jform_gettype").val(); vvvvvzl(addcalculation_vvvvvzl,gettype_vvvvvzl); - var main_source_vvvvvzo = jQuery("#jform_main_source").val(); - vvvvvzo(main_source_vvvvvzo); + var addcalculation_vvvvvzm = jQuery("#jform_addcalculation input[type='radio']:checked").val(); + var gettype_vvvvvzm = jQuery("#jform_gettype").val(); + vvvvvzm(addcalculation_vvvvvzm,gettype_vvvvvzm); var main_source_vvvvvzp = jQuery("#jform_main_source").val(); vvvvvzp(main_source_vvvvvzp); - var add_php_before_getitem_vvvvvzq = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); - var gettype_vvvvvzq = jQuery("#jform_gettype").val(); - vvvvvzq(add_php_before_getitem_vvvvvzq,gettype_vvvvvzq); + var main_source_vvvvvzq = jQuery("#jform_main_source").val(); + vvvvvzq(main_source_vvvvvzq); - var add_php_after_getitem_vvvvvzr = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); + var add_php_before_getitem_vvvvvzr = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val(); var gettype_vvvvvzr = jQuery("#jform_gettype").val(); - vvvvvzr(add_php_after_getitem_vvvvvzr,gettype_vvvvvzr); + vvvvvzr(add_php_before_getitem_vvvvvzr,gettype_vvvvvzr); - var gettype_vvvvvzt = jQuery("#jform_gettype").val(); - vvvvvzt(gettype_vvvvvzt); + var add_php_after_getitem_vvvvvzs = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val(); + var gettype_vvvvvzs = jQuery("#jform_gettype").val(); + vvvvvzs(add_php_after_getitem_vvvvvzs,gettype_vvvvvzs); - var add_php_getlistquery_vvvvvzu = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); var gettype_vvvvvzu = jQuery("#jform_gettype").val(); - vvvvvzu(add_php_getlistquery_vvvvvzu,gettype_vvvvvzu); + vvvvvzu(gettype_vvvvvzu); - var add_php_before_getitems_vvvvvzv = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); + var add_php_getlistquery_vvvvvzv = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); var gettype_vvvvvzv = jQuery("#jform_gettype").val(); - vvvvvzv(add_php_before_getitems_vvvvvzv,gettype_vvvvvzv); + vvvvvzv(add_php_getlistquery_vvvvvzv,gettype_vvvvvzv); - var add_php_after_getitems_vvvvvzw = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); + var add_php_before_getitems_vvvvvzw = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val(); var gettype_vvvvvzw = jQuery("#jform_gettype").val(); - vvvvvzw(add_php_after_getitems_vvvvvzw,gettype_vvvvvzw); + vvvvvzw(add_php_before_getitems_vvvvvzw,gettype_vvvvvzw); - var gettype_vvvvvzy = jQuery("#jform_gettype").val(); - vvvvvzy(gettype_vvvvvzy); + var add_php_after_getitems_vvvvvzx = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val(); + var gettype_vvvvvzx = jQuery("#jform_gettype").val(); + vvvvvzx(add_php_after_getitems_vvvvvzx,gettype_vvvvvzx); var gettype_vvvvvzz = jQuery("#jform_gettype").val(); vvvvvzz(gettype_vvvvvzz); @@ -101,27 +98,30 @@ jQuery(document).ready(function() vvvvwaa(gettype_vvvvwaa); var gettype_vvvvwab = jQuery("#jform_gettype").val(); - var add_php_router_parse_vvvvwab = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); - vvvvwab(gettype_vvvvwab,add_php_router_parse_vvvvwab); + vvvvwab(gettype_vvvvwab); - var gettype_vvvvwad = jQuery("#jform_gettype").val(); - vvvvwad(gettype_vvvvwad); + var gettype_vvvvwac = jQuery("#jform_gettype").val(); + var add_php_router_parse_vvvvwac = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val(); + vvvvwac(gettype_vvvvwac,add_php_router_parse_vvvvwac); + + var gettype_vvvvwae = jQuery("#jform_gettype").val(); + vvvvwae(gettype_vvvvwae); }); -// the vvvvvzd function -function vvvvvzd(gettype_vvvvvzd) +// the vvvvvze function +function vvvvvze(gettype_vvvvvze) { - if (isSet(gettype_vvvvvzd) && gettype_vvvvvzd.constructor !== Array) + if (isSet(gettype_vvvvvze) && gettype_vvvvvze.constructor !== Array) { - var temp_vvvvvzd = gettype_vvvvvzd; - var gettype_vvvvvzd = []; - gettype_vvvvvzd.push(temp_vvvvvzd); + var temp_vvvvvze = gettype_vvvvvze; + var gettype_vvvvvze = []; + gettype_vvvvvze.push(temp_vvvvvze); } - else if (!isSet(gettype_vvvvvzd)) + else if (!isSet(gettype_vvvvvze)) { - var gettype_vvvvvzd = []; + var gettype_vvvvvze = []; } - var gettype = gettype_vvvvvzd.some(gettype_vvvvvzd_SomeFunc); + var gettype = gettype_vvvvvze.some(gettype_vvvvvze_SomeFunc); // set this function logic @@ -129,73 +129,35 @@ function vvvvvzd(gettype_vvvvvzd) { jQuery('#jform_getcustom').closest('.control-group').show(); // add required attribute to getcustom field - if (jform_vvvvvzdvyx_required) + if (jform_vvvvvzevza_required) { updateFieldRequired('getcustom',0); jQuery('#jform_getcustom').prop('required','required'); jQuery('#jform_getcustom').attr('aria-required',true); jQuery('#jform_getcustom').addClass('required'); - jform_vvvvvzdvyx_required = false; + jform_vvvvvzevza_required = false; } } else { jQuery('#jform_getcustom').closest('.control-group').hide(); // remove required attribute from getcustom field - if (!jform_vvvvvzdvyx_required) + if (!jform_vvvvvzevza_required) { updateFieldRequired('getcustom',1); jQuery('#jform_getcustom').removeAttr('required'); jQuery('#jform_getcustom').removeAttr('aria-required'); jQuery('#jform_getcustom').removeClass('required'); - jform_vvvvvzdvyx_required = true; + jform_vvvvvzevza_required = true; } } } -// the vvvvvzd Some function -function gettype_vvvvvzd_SomeFunc(gettype_vvvvvzd) -{ - // set the function logic - if (gettype_vvvvvzd == 3 || gettype_vvvvvzd == 4) - { - return true; - } - return false; -} - -// the vvvvvze function -function vvvvvze(main_source_vvvvvze) -{ - if (isSet(main_source_vvvvvze) && main_source_vvvvvze.constructor !== Array) - { - var temp_vvvvvze = main_source_vvvvvze; - var main_source_vvvvvze = []; - main_source_vvvvvze.push(temp_vvvvvze); - } - else if (!isSet(main_source_vvvvvze)) - { - var main_source_vvvvvze = []; - } - var main_source = main_source_vvvvvze.some(main_source_vvvvvze_SomeFunc); - - - // set this function logic - if (main_source) - { - jQuery('#jform_select_all').closest('.control-group').show(); - } - else - { - jQuery('#jform_select_all').closest('.control-group').hide(); - } -} - // the vvvvvze Some function -function main_source_vvvvvze_SomeFunc(main_source_vvvvvze) +function gettype_vvvvvze_SomeFunc(gettype_vvvvvze) { // set the function logic - if (main_source_vvvvvze == 1 || main_source_vvvvvze == 2) + if (gettype_vvvvvze == 3 || gettype_vvvvvze == 4) { return true; } @@ -221,29 +183,11 @@ function vvvvvzf(main_source_vvvvvzf) // set this function logic if (main_source) { - jQuery('#jform_view_table_main').closest('.control-group').show(); - // add required attribute to view_table_main field - if (jform_vvvvvzfvyy_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_vvvvvzfvyy_required = false; - } + jQuery('#jform_select_all').closest('.control-group').show(); } else { - jQuery('#jform_view_table_main').closest('.control-group').hide(); - // remove required attribute from view_table_main field - if (!jform_vvvvvzfvyy_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_vvvvvzfvyy_required = true; - } + jQuery('#jform_select_all').closest('.control-group').hide(); } } @@ -251,7 +195,7 @@ function vvvvvzf(main_source_vvvvvzf) function main_source_vvvvvzf_SomeFunc(main_source_vvvvvzf) { // set the function logic - if (main_source_vvvvvzf == 1) + if (main_source_vvvvvzf == 1 || main_source_vvvvvzf == 2) { return true; } @@ -277,28 +221,28 @@ function vvvvvzg(main_source_vvvvvzg) // set this function logic if (main_source) { - jQuery('#jform_view_selection').closest('.control-group').show(); - // add required attribute to view_selection field - if (jform_vvvvvzgvyz_required) + jQuery('#jform_view_table_main').closest('.control-group').show(); + // add required attribute to view_table_main field + if (jform_vvvvvzgvzb_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_vvvvvzgvyz_required = false; + updateFieldRequired('view_table_main',0); + jQuery('#jform_view_table_main').prop('required','required'); + jQuery('#jform_view_table_main').attr('aria-required',true); + jQuery('#jform_view_table_main').addClass('required'); + jform_vvvvvzgvzb_required = false; } } else { - jQuery('#jform_view_selection').closest('.control-group').hide(); - // remove required attribute from view_selection field - if (!jform_vvvvvzgvyz_required) + jQuery('#jform_view_table_main').closest('.control-group').hide(); + // remove required attribute from view_table_main field + if (!jform_vvvvvzgvzb_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_vvvvvzgvyz_required = true; + updateFieldRequired('view_table_main',1); + jQuery('#jform_view_table_main').removeAttr('required'); + jQuery('#jform_view_table_main').removeAttr('aria-required'); + jQuery('#jform_view_table_main').removeClass('required'); + jform_vvvvvzgvzb_required = true; } } } @@ -333,28 +277,28 @@ function vvvvvzh(main_source_vvvvvzh) // set this function logic if (main_source) { - jQuery('#jform_db_table_main').closest('.control-group').show(); - // add required attribute to db_table_main field - if (jform_vvvvvzhvza_required) + jQuery('#jform_view_selection').closest('.control-group').show(); + // add required attribute to view_selection field + if (jform_vvvvvzhvzc_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_vvvvvzhvza_required = false; + updateFieldRequired('view_selection',0); + jQuery('#jform_view_selection').prop('required','required'); + jQuery('#jform_view_selection').attr('aria-required',true); + jQuery('#jform_view_selection').addClass('required'); + jform_vvvvvzhvzc_required = false; } } else { - jQuery('#jform_db_table_main').closest('.control-group').hide(); - // remove required attribute from db_table_main field - if (!jform_vvvvvzhvza_required) + jQuery('#jform_view_selection').closest('.control-group').hide(); + // remove required attribute from view_selection field + if (!jform_vvvvvzhvzc_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_vvvvvzhvza_required = true; + updateFieldRequired('view_selection',1); + jQuery('#jform_view_selection').removeAttr('required'); + jQuery('#jform_view_selection').removeAttr('aria-required'); + jQuery('#jform_view_selection').removeClass('required'); + jform_vvvvvzhvzc_required = true; } } } @@ -363,7 +307,7 @@ function vvvvvzh(main_source_vvvvvzh) function main_source_vvvvvzh_SomeFunc(main_source_vvvvvzh) { // set the function logic - if (main_source_vvvvvzh == 2) + if (main_source_vvvvvzh == 1) { return true; } @@ -389,28 +333,28 @@ function vvvvvzi(main_source_vvvvvzi) // set this function logic if (main_source) { - jQuery('#jform_db_selection').closest('.control-group').show(); - // add required attribute to db_selection field - if (jform_vvvvvzivzb_required) + jQuery('#jform_db_table_main').closest('.control-group').show(); + // add required attribute to db_table_main field + if (jform_vvvvvzivzd_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_vvvvvzivzb_required = false; + 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_vvvvvzivzd_required = false; } } else { - jQuery('#jform_db_selection').closest('.control-group').hide(); - // remove required attribute from db_selection field - if (!jform_vvvvvzivzb_required) + jQuery('#jform_db_table_main').closest('.control-group').hide(); + // remove required attribute from db_table_main field + if (!jform_vvvvvzivzd_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_vvvvvzivzb_required = true; + 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_vvvvvzivzd_required = true; } } } @@ -427,98 +371,93 @@ function main_source_vvvvvzi_SomeFunc(main_source_vvvvvzi) } // the vvvvvzj function -function vvvvvzj(addcalculation_vvvvvzj) +function vvvvvzj(main_source_vvvvvzj) +{ + if (isSet(main_source_vvvvvzj) && main_source_vvvvvzj.constructor !== Array) + { + var temp_vvvvvzj = main_source_vvvvvzj; + var main_source_vvvvvzj = []; + main_source_vvvvvzj.push(temp_vvvvvzj); + } + else if (!isSet(main_source_vvvvvzj)) + { + var main_source_vvvvvzj = []; + } + var main_source = main_source_vvvvvzj.some(main_source_vvvvvzj_SomeFunc); + + + // set this function logic + if (main_source) + { + jQuery('#jform_db_selection').closest('.control-group').show(); + // add required attribute to db_selection field + if (jform_vvvvvzjvze_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_vvvvvzjvze_required = false; + } + } + else + { + jQuery('#jform_db_selection').closest('.control-group').hide(); + // remove required attribute from db_selection field + if (!jform_vvvvvzjvze_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_vvvvvzjvze_required = true; + } + } +} + +// the vvvvvzj Some function +function main_source_vvvvvzj_SomeFunc(main_source_vvvvvzj) { // set the function logic - if (addcalculation_vvvvvzj == 1) + if (main_source_vvvvvzj == 2) + { + return true; + } + return false; +} + +// the vvvvvzk function +function vvvvvzk(addcalculation_vvvvvzk) +{ + // set the function logic + if (addcalculation_vvvvvzk == 1) { jQuery('#jform_php_calculation-lbl').closest('.control-group').show(); // add required attribute to php_calculation field - if (jform_vvvvvzjvzc_required) + if (jform_vvvvvzkvzf_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_vvvvvzjvzc_required = false; + jform_vvvvvzkvzf_required = false; } } else { jQuery('#jform_php_calculation-lbl').closest('.control-group').hide(); // remove required attribute from php_calculation field - if (!jform_vvvvvzjvzc_required) + if (!jform_vvvvvzkvzf_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_vvvvvzjvzc_required = true; + jform_vvvvvzkvzf_required = true; } } } -// the vvvvvzk function -function vvvvvzk(addcalculation_vvvvvzk,gettype_vvvvvzk) -{ - if (isSet(addcalculation_vvvvvzk) && addcalculation_vvvvvzk.constructor !== Array) - { - var temp_vvvvvzk = addcalculation_vvvvvzk; - var addcalculation_vvvvvzk = []; - addcalculation_vvvvvzk.push(temp_vvvvvzk); - } - else if (!isSet(addcalculation_vvvvvzk)) - { - var addcalculation_vvvvvzk = []; - } - var addcalculation = addcalculation_vvvvvzk.some(addcalculation_vvvvvzk_SomeFunc); - - if (isSet(gettype_vvvvvzk) && gettype_vvvvvzk.constructor !== Array) - { - var temp_vvvvvzk = gettype_vvvvvzk; - var gettype_vvvvvzk = []; - gettype_vvvvvzk.push(temp_vvvvvzk); - } - else if (!isSet(gettype_vvvvvzk)) - { - var gettype_vvvvvzk = []; - } - var gettype = gettype_vvvvvzk.some(gettype_vvvvvzk_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(); - } -} - -// the vvvvvzk Some function -function addcalculation_vvvvvzk_SomeFunc(addcalculation_vvvvvzk) -{ - // set the function logic - if (addcalculation_vvvvvzk == 1) - { - return true; - } - return false; -} - -// the vvvvvzk Some function -function gettype_vvvvvzk_SomeFunc(gettype_vvvvvzk) -{ - // set the function logic - if (gettype_vvvvvzk == 1 || gettype_vvvvvzk == 3) - { - return true; - } - return false; -} - // the vvvvvzl function function vvvvvzl(addcalculation_vvvvvzl,gettype_vvvvvzl) { @@ -550,11 +489,11 @@ function vvvvvzl(addcalculation_vvvvvzl,gettype_vvvvvzl) // 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(); } } @@ -573,63 +512,68 @@ function addcalculation_vvvvvzl_SomeFunc(addcalculation_vvvvvzl) function gettype_vvvvvzl_SomeFunc(gettype_vvvvvzl) { // set the function logic - if (gettype_vvvvvzl == 2 || gettype_vvvvvzl == 4) + if (gettype_vvvvvzl == 1 || gettype_vvvvvzl == 3) { return true; } return false; } -// the vvvvvzo function -function vvvvvzo(main_source_vvvvvzo) +// the vvvvvzm function +function vvvvvzm(addcalculation_vvvvvzm,gettype_vvvvvzm) { - if (isSet(main_source_vvvvvzo) && main_source_vvvvvzo.constructor !== Array) + if (isSet(addcalculation_vvvvvzm) && addcalculation_vvvvvzm.constructor !== Array) { - var temp_vvvvvzo = main_source_vvvvvzo; - var main_source_vvvvvzo = []; - main_source_vvvvvzo.push(temp_vvvvvzo); + var temp_vvvvvzm = addcalculation_vvvvvzm; + var addcalculation_vvvvvzm = []; + addcalculation_vvvvvzm.push(temp_vvvvvzm); } - else if (!isSet(main_source_vvvvvzo)) + else if (!isSet(addcalculation_vvvvvzm)) { - var main_source_vvvvvzo = []; + var addcalculation_vvvvvzm = []; } - var main_source = main_source_vvvvvzo.some(main_source_vvvvvzo_SomeFunc); + var addcalculation = addcalculation_vvvvvzm.some(addcalculation_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 (main_source) + if (addcalculation && gettype) { - jQuery('#jform_php_custom_get-lbl').closest('.control-group').show(); - // add required attribute to php_custom_get field - if (jform_vvvvvzovzd_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_vvvvvzovzd_required = false; - } + jQuery('.note_calculation_items').closest('.control-group').show(); } else { - jQuery('#jform_php_custom_get-lbl').closest('.control-group').hide(); - // remove required attribute from php_custom_get field - if (!jform_vvvvvzovzd_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_vvvvvzovzd_required = true; - } + jQuery('.note_calculation_items').closest('.control-group').hide(); } } -// the vvvvvzo Some function -function main_source_vvvvvzo_SomeFunc(main_source_vvvvvzo) +// the vvvvvzm Some function +function addcalculation_vvvvvzm_SomeFunc(addcalculation_vvvvvzm) { // set the function logic - if (main_source_vvvvvzo == 3) + if (addcalculation_vvvvvzm == 1) + { + return true; + } + return false; +} + +// the vvvvvzm Some function +function gettype_vvvvvzm_SomeFunc(gettype_vvvvvzm) +{ + // set the function logic + if (gettype_vvvvvzm == 2 || gettype_vvvvvzm == 4) { return true; } @@ -652,6 +596,62 @@ function vvvvvzp(main_source_vvvvvzp) var main_source = main_source_vvvvvzp.some(main_source_vvvvvzp_SomeFunc); + // set this function logic + if (main_source) + { + jQuery('#jform_php_custom_get-lbl').closest('.control-group').show(); + // add required attribute to php_custom_get field + if (jform_vvvvvzpvzg_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_vvvvvzpvzg_required = false; + } + } + else + { + jQuery('#jform_php_custom_get-lbl').closest('.control-group').hide(); + // remove required attribute from php_custom_get field + if (!jform_vvvvvzpvzg_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_vvvvvzpvzg_required = true; + } + } +} + +// the vvvvvzp Some function +function main_source_vvvvvzp_SomeFunc(main_source_vvvvvzp) +{ + // set the function logic + if (main_source_vvvvvzp == 3) + { + return true; + } + return false; +} + +// the vvvvvzq function +function vvvvvzq(main_source_vvvvvzq) +{ + if (isSet(main_source_vvvvvzq) && main_source_vvvvvzq.constructor !== Array) + { + var temp_vvvvvzq = main_source_vvvvvzq; + var main_source_vvvvvzq = []; + main_source_vvvvvzq.push(temp_vvvvvzq); + } + else if (!isSet(main_source_vvvvvzq)) + { + var main_source_vvvvvzq = []; + } + var main_source = main_source_vvvvvzq.some(main_source_vvvvvzq_SomeFunc); + + // set this function logic if (main_source) { @@ -675,90 +675,11 @@ function vvvvvzp(main_source_vvvvvzp) } } -// the vvvvvzp Some function -function main_source_vvvvvzp_SomeFunc(main_source_vvvvvzp) -{ - // set the function logic - if (main_source_vvvvvzp == 1 || main_source_vvvvvzp == 2) - { - return true; - } - return false; -} - -// the vvvvvzq function -function vvvvvzq(add_php_before_getitem_vvvvvzq,gettype_vvvvvzq) -{ - if (isSet(add_php_before_getitem_vvvvvzq) && add_php_before_getitem_vvvvvzq.constructor !== Array) - { - var temp_vvvvvzq = add_php_before_getitem_vvvvvzq; - var add_php_before_getitem_vvvvvzq = []; - add_php_before_getitem_vvvvvzq.push(temp_vvvvvzq); - } - else if (!isSet(add_php_before_getitem_vvvvvzq)) - { - var add_php_before_getitem_vvvvvzq = []; - } - var add_php_before_getitem = add_php_before_getitem_vvvvvzq.some(add_php_before_getitem_vvvvvzq_SomeFunc); - - if (isSet(gettype_vvvvvzq) && gettype_vvvvvzq.constructor !== Array) - { - var temp_vvvvvzq = gettype_vvvvvzq; - var gettype_vvvvvzq = []; - gettype_vvvvvzq.push(temp_vvvvvzq); - } - else if (!isSet(gettype_vvvvvzq)) - { - var gettype_vvvvvzq = []; - } - var gettype = gettype_vvvvvzq.some(gettype_vvvvvzq_SomeFunc); - - - // set this function logic - if (add_php_before_getitem && gettype) - { - jQuery('#jform_php_before_getitem-lbl').closest('.control-group').show(); - // add required attribute to php_before_getitem field - if (jform_vvvvvzqvze_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_vvvvvzqvze_required = false; - } - } - else - { - jQuery('#jform_php_before_getitem-lbl').closest('.control-group').hide(); - // remove required attribute from php_before_getitem field - if (!jform_vvvvvzqvze_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_vvvvvzqvze_required = true; - } - } -} - // the vvvvvzq Some function -function add_php_before_getitem_vvvvvzq_SomeFunc(add_php_before_getitem_vvvvvzq) +function main_source_vvvvvzq_SomeFunc(main_source_vvvvvzq) { // set the function logic - if (add_php_before_getitem_vvvvvzq == 1) - { - return true; - } - return false; -} - -// the vvvvvzq Some function -function gettype_vvvvvzq_SomeFunc(gettype_vvvvvzq) -{ - // set the function logic - if (gettype_vvvvvzq == 1 || gettype_vvvvvzq == 3) + if (main_source_vvvvvzq == 1 || main_source_vvvvvzq == 2) { return true; } @@ -766,19 +687,19 @@ function gettype_vvvvvzq_SomeFunc(gettype_vvvvvzq) } // the vvvvvzr function -function vvvvvzr(add_php_after_getitem_vvvvvzr,gettype_vvvvvzr) +function vvvvvzr(add_php_before_getitem_vvvvvzr,gettype_vvvvvzr) { - if (isSet(add_php_after_getitem_vvvvvzr) && add_php_after_getitem_vvvvvzr.constructor !== Array) + if (isSet(add_php_before_getitem_vvvvvzr) && add_php_before_getitem_vvvvvzr.constructor !== Array) { - var temp_vvvvvzr = add_php_after_getitem_vvvvvzr; - var add_php_after_getitem_vvvvvzr = []; - add_php_after_getitem_vvvvvzr.push(temp_vvvvvzr); + var temp_vvvvvzr = add_php_before_getitem_vvvvvzr; + var add_php_before_getitem_vvvvvzr = []; + add_php_before_getitem_vvvvvzr.push(temp_vvvvvzr); } - else if (!isSet(add_php_after_getitem_vvvvvzr)) + else if (!isSet(add_php_before_getitem_vvvvvzr)) { - var add_php_after_getitem_vvvvvzr = []; + var add_php_before_getitem_vvvvvzr = []; } - var add_php_after_getitem = add_php_after_getitem_vvvvvzr.some(add_php_after_getitem_vvvvvzr_SomeFunc); + var add_php_before_getitem = add_php_before_getitem_vvvvvzr.some(add_php_before_getitem_vvvvvzr_SomeFunc); if (isSet(gettype_vvvvvzr) && gettype_vvvvvzr.constructor !== Array) { @@ -794,39 +715,39 @@ function vvvvvzr(add_php_after_getitem_vvvvvzr,gettype_vvvvvzr) // set this function logic - if (add_php_after_getitem && gettype) + if (add_php_before_getitem && gettype) { - jQuery('#jform_php_after_getitem-lbl').closest('.control-group').show(); - // add required attribute to php_after_getitem field - if (jform_vvvvvzrvzf_required) + jQuery('#jform_php_before_getitem-lbl').closest('.control-group').show(); + // add required attribute to php_before_getitem field + if (jform_vvvvvzrvzh_required) { - updateFieldRequired('php_after_getitem',0); - jQuery('#jform_php_after_getitem').prop('required','required'); - jQuery('#jform_php_after_getitem').attr('aria-required',true); - jQuery('#jform_php_after_getitem').addClass('required'); - jform_vvvvvzrvzf_required = false; + 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_vvvvvzrvzh_required = false; } } else { - jQuery('#jform_php_after_getitem-lbl').closest('.control-group').hide(); - // remove required attribute from php_after_getitem field - if (!jform_vvvvvzrvzf_required) + jQuery('#jform_php_before_getitem-lbl').closest('.control-group').hide(); + // remove required attribute from php_before_getitem field + if (!jform_vvvvvzrvzh_required) { - updateFieldRequired('php_after_getitem',1); - jQuery('#jform_php_after_getitem').removeAttr('required'); - jQuery('#jform_php_after_getitem').removeAttr('aria-required'); - jQuery('#jform_php_after_getitem').removeClass('required'); - jform_vvvvvzrvzf_required = true; + 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_vvvvvzrvzh_required = true; } } } // the vvvvvzr Some function -function add_php_after_getitem_vvvvvzr_SomeFunc(add_php_after_getitem_vvvvvzr) +function add_php_before_getitem_vvvvvzr_SomeFunc(add_php_before_getitem_vvvvvzr) { // set the function logic - if (add_php_after_getitem_vvvvvzr == 1) + if (add_php_before_getitem_vvvvvzr == 1) { return true; } @@ -844,76 +765,79 @@ function gettype_vvvvvzr_SomeFunc(gettype_vvvvvzr) return false; } -// the vvvvvzt function -function vvvvvzt(gettype_vvvvvzt) +// the vvvvvzs function +function vvvvvzs(add_php_after_getitem_vvvvvzs,gettype_vvvvvzs) { - if (isSet(gettype_vvvvvzt) && gettype_vvvvvzt.constructor !== Array) + if (isSet(add_php_after_getitem_vvvvvzs) && add_php_after_getitem_vvvvvzs.constructor !== Array) { - var temp_vvvvvzt = gettype_vvvvvzt; - var gettype_vvvvvzt = []; - gettype_vvvvvzt.push(temp_vvvvvzt); + var temp_vvvvvzs = add_php_after_getitem_vvvvvzs; + var add_php_after_getitem_vvvvvzs = []; + add_php_after_getitem_vvvvvzs.push(temp_vvvvvzs); } - else if (!isSet(gettype_vvvvvzt)) + else if (!isSet(add_php_after_getitem_vvvvvzs)) { - var gettype_vvvvvzt = []; + var add_php_after_getitem_vvvvvzs = []; } - var gettype = gettype_vvvvvzt.some(gettype_vvvvvzt_SomeFunc); + var add_php_after_getitem = add_php_after_getitem_vvvvvzs.some(add_php_after_getitem_vvvvvzs_SomeFunc); + + if (isSet(gettype_vvvvvzs) && gettype_vvvvvzs.constructor !== Array) + { + var temp_vvvvvzs = gettype_vvvvvzs; + var gettype_vvvvvzs = []; + gettype_vvvvvzs.push(temp_vvvvvzs); + } + else if (!isSet(gettype_vvvvvzs)) + { + var gettype_vvvvvzs = []; + } + var gettype = gettype_vvvvvzs.some(gettype_vvvvvzs_SomeFunc); // set this function logic - if (gettype) + if (add_php_after_getitem && gettype) { - jQuery('#jform_add_php_after_getitem').closest('.control-group').show(); - // add required attribute to add_php_after_getitem field - if (jform_vvvvvztvzg_required) + jQuery('#jform_php_after_getitem-lbl').closest('.control-group').show(); + // add required attribute to php_after_getitem field + if (jform_vvvvvzsvzi_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_vvvvvztvzg_required = false; - } - jQuery('#jform_add_php_before_getitem').closest('.control-group').show(); - // add required attribute to add_php_before_getitem field - if (jform_vvvvvztvzh_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_vvvvvztvzh_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_vvvvvzsvzi_required = false; } } else { - jQuery('#jform_add_php_after_getitem').closest('.control-group').hide(); - // remove required attribute from add_php_after_getitem field - if (!jform_vvvvvztvzg_required) + jQuery('#jform_php_after_getitem-lbl').closest('.control-group').hide(); + // remove required attribute from php_after_getitem field + if (!jform_vvvvvzsvzi_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_vvvvvztvzg_required = true; - } - jQuery('#jform_add_php_before_getitem').closest('.control-group').hide(); - // remove required attribute from add_php_before_getitem field - if (!jform_vvvvvztvzh_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_vvvvvztvzh_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_vvvvvzsvzi_required = true; } } } -// the vvvvvzt Some function -function gettype_vvvvvzt_SomeFunc(gettype_vvvvvzt) +// the vvvvvzs Some function +function add_php_after_getitem_vvvvvzs_SomeFunc(add_php_after_getitem_vvvvvzs) { // set the function logic - if (gettype_vvvvvzt == 1 || gettype_vvvvvzt == 3) + if (add_php_after_getitem_vvvvvzs == 1) + { + return true; + } + return false; +} + +// the vvvvvzs Some function +function gettype_vvvvvzs_SomeFunc(gettype_vvvvvzs) +{ + // set the function logic + if (gettype_vvvvvzs == 1 || gettype_vvvvvzs == 3) { return true; } @@ -921,20 +845,8 @@ function gettype_vvvvvzt_SomeFunc(gettype_vvvvvzt) } // the vvvvvzu function -function vvvvvzu(add_php_getlistquery_vvvvvzu,gettype_vvvvvzu) +function vvvvvzu(gettype_vvvvvzu) { - if (isSet(add_php_getlistquery_vvvvvzu) && add_php_getlistquery_vvvvvzu.constructor !== Array) - { - var temp_vvvvvzu = add_php_getlistquery_vvvvvzu; - var add_php_getlistquery_vvvvvzu = []; - add_php_getlistquery_vvvvvzu.push(temp_vvvvvzu); - } - else if (!isSet(add_php_getlistquery_vvvvvzu)) - { - var add_php_getlistquery_vvvvvzu = []; - } - var add_php_getlistquery = add_php_getlistquery_vvvvvzu.some(add_php_getlistquery_vvvvvzu_SomeFunc); - if (isSet(gettype_vvvvvzu) && gettype_vvvvvzu.constructor !== Array) { var temp_vvvvvzu = gettype_vvvvvzu; @@ -949,50 +861,59 @@ function vvvvvzu(add_php_getlistquery_vvvvvzu,gettype_vvvvvzu) // set this function logic - if (add_php_getlistquery && gettype) + if (gettype) { - jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show(); - // add required attribute to php_getlistquery field - if (jform_vvvvvzuvzi_required) + jQuery('#jform_add_php_after_getitem').closest('.control-group').show(); + // add required attribute to add_php_after_getitem field + if (jform_vvvvvzuvzj_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_vvvvvzuvzi_required = false; + updateFieldRequired('add_php_after_getitem',0); + jQuery('#jform_add_php_after_getitem').prop('required','required'); + jQuery('#jform_add_php_after_getitem').attr('aria-required',true); + jQuery('#jform_add_php_after_getitem').addClass('required'); + jform_vvvvvzuvzj_required = false; + } + jQuery('#jform_add_php_before_getitem').closest('.control-group').show(); + // add required attribute to add_php_before_getitem field + if (jform_vvvvvzuvzk_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_vvvvvzuvzk_required = false; } } else { - jQuery('#jform_php_getlistquery-lbl').closest('.control-group').hide(); - // remove required attribute from php_getlistquery field - if (!jform_vvvvvzuvzi_required) + jQuery('#jform_add_php_after_getitem').closest('.control-group').hide(); + // remove required attribute from add_php_after_getitem field + if (!jform_vvvvvzuvzj_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_vvvvvzuvzi_required = true; + updateFieldRequired('add_php_after_getitem',1); + jQuery('#jform_add_php_after_getitem').removeAttr('required'); + jQuery('#jform_add_php_after_getitem').removeAttr('aria-required'); + jQuery('#jform_add_php_after_getitem').removeClass('required'); + jform_vvvvvzuvzj_required = true; + } + jQuery('#jform_add_php_before_getitem').closest('.control-group').hide(); + // remove required attribute from add_php_before_getitem field + if (!jform_vvvvvzuvzk_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_vvvvvzuvzk_required = true; } } } -// the vvvvvzu Some function -function add_php_getlistquery_vvvvvzu_SomeFunc(add_php_getlistquery_vvvvvzu) -{ - // set the function logic - if (add_php_getlistquery_vvvvvzu == 1) - { - return true; - } - return false; -} - // the vvvvvzu Some function function gettype_vvvvvzu_SomeFunc(gettype_vvvvvzu) { // set the function logic - if (gettype_vvvvvzu == 2 || gettype_vvvvvzu == 4) + if (gettype_vvvvvzu == 1 || gettype_vvvvvzu == 3) { return true; } @@ -1000,19 +921,19 @@ function gettype_vvvvvzu_SomeFunc(gettype_vvvvvzu) } // the vvvvvzv function -function vvvvvzv(add_php_before_getitems_vvvvvzv,gettype_vvvvvzv) +function vvvvvzv(add_php_getlistquery_vvvvvzv,gettype_vvvvvzv) { - if (isSet(add_php_before_getitems_vvvvvzv) && add_php_before_getitems_vvvvvzv.constructor !== Array) + if (isSet(add_php_getlistquery_vvvvvzv) && add_php_getlistquery_vvvvvzv.constructor !== Array) { - var temp_vvvvvzv = add_php_before_getitems_vvvvvzv; - var add_php_before_getitems_vvvvvzv = []; - add_php_before_getitems_vvvvvzv.push(temp_vvvvvzv); + var temp_vvvvvzv = add_php_getlistquery_vvvvvzv; + var add_php_getlistquery_vvvvvzv = []; + add_php_getlistquery_vvvvvzv.push(temp_vvvvvzv); } - else if (!isSet(add_php_before_getitems_vvvvvzv)) + else if (!isSet(add_php_getlistquery_vvvvvzv)) { - var add_php_before_getitems_vvvvvzv = []; + var add_php_getlistquery_vvvvvzv = []; } - var add_php_before_getitems = add_php_before_getitems_vvvvvzv.some(add_php_before_getitems_vvvvvzv_SomeFunc); + var add_php_getlistquery = add_php_getlistquery_vvvvvzv.some(add_php_getlistquery_vvvvvzv_SomeFunc); if (isSet(gettype_vvvvvzv) && gettype_vvvvvzv.constructor !== Array) { @@ -1028,39 +949,39 @@ function vvvvvzv(add_php_before_getitems_vvvvvzv,gettype_vvvvvzv) // set this function logic - if (add_php_before_getitems && gettype) + if (add_php_getlistquery && gettype) { - jQuery('#jform_php_before_getitems-lbl').closest('.control-group').show(); - // add required attribute to php_before_getitems field - if (jform_vvvvvzvvzj_required) + jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show(); + // add required attribute to php_getlistquery field + if (jform_vvvvvzvvzl_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_vvvvvzvvzj_required = false; + updateFieldRequired('php_getlistquery',0); + jQuery('#jform_php_getlistquery').prop('required','required'); + jQuery('#jform_php_getlistquery').attr('aria-required',true); + jQuery('#jform_php_getlistquery').addClass('required'); + jform_vvvvvzvvzl_required = false; } } else { - jQuery('#jform_php_before_getitems-lbl').closest('.control-group').hide(); - // remove required attribute from php_before_getitems field - if (!jform_vvvvvzvvzj_required) + jQuery('#jform_php_getlistquery-lbl').closest('.control-group').hide(); + // remove required attribute from php_getlistquery field + if (!jform_vvvvvzvvzl_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_vvvvvzvvzj_required = true; + updateFieldRequired('php_getlistquery',1); + jQuery('#jform_php_getlistquery').removeAttr('required'); + jQuery('#jform_php_getlistquery').removeAttr('aria-required'); + jQuery('#jform_php_getlistquery').removeClass('required'); + jform_vvvvvzvvzl_required = true; } } } // the vvvvvzv Some function -function add_php_before_getitems_vvvvvzv_SomeFunc(add_php_before_getitems_vvvvvzv) +function add_php_getlistquery_vvvvvzv_SomeFunc(add_php_getlistquery_vvvvvzv) { // set the function logic - if (add_php_before_getitems_vvvvvzv == 1) + if (add_php_getlistquery_vvvvvzv == 1) { return true; } @@ -1079,19 +1000,19 @@ function gettype_vvvvvzv_SomeFunc(gettype_vvvvvzv) } // the vvvvvzw function -function vvvvvzw(add_php_after_getitems_vvvvvzw,gettype_vvvvvzw) +function vvvvvzw(add_php_before_getitems_vvvvvzw,gettype_vvvvvzw) { - if (isSet(add_php_after_getitems_vvvvvzw) && add_php_after_getitems_vvvvvzw.constructor !== Array) + if (isSet(add_php_before_getitems_vvvvvzw) && add_php_before_getitems_vvvvvzw.constructor !== Array) { - var temp_vvvvvzw = add_php_after_getitems_vvvvvzw; - var add_php_after_getitems_vvvvvzw = []; - add_php_after_getitems_vvvvvzw.push(temp_vvvvvzw); + var temp_vvvvvzw = add_php_before_getitems_vvvvvzw; + var add_php_before_getitems_vvvvvzw = []; + add_php_before_getitems_vvvvvzw.push(temp_vvvvvzw); } - else if (!isSet(add_php_after_getitems_vvvvvzw)) + else if (!isSet(add_php_before_getitems_vvvvvzw)) { - var add_php_after_getitems_vvvvvzw = []; + var add_php_before_getitems_vvvvvzw = []; } - var add_php_after_getitems = add_php_after_getitems_vvvvvzw.some(add_php_after_getitems_vvvvvzw_SomeFunc); + var add_php_before_getitems = add_php_before_getitems_vvvvvzw.some(add_php_before_getitems_vvvvvzw_SomeFunc); if (isSet(gettype_vvvvvzw) && gettype_vvvvvzw.constructor !== Array) { @@ -1107,39 +1028,39 @@ function vvvvvzw(add_php_after_getitems_vvvvvzw,gettype_vvvvvzw) // set this function logic - if (add_php_after_getitems && gettype) + if (add_php_before_getitems && gettype) { - jQuery('#jform_php_after_getitems-lbl').closest('.control-group').show(); - // add required attribute to php_after_getitems field - if (jform_vvvvvzwvzk_required) + jQuery('#jform_php_before_getitems-lbl').closest('.control-group').show(); + // add required attribute to php_before_getitems field + if (jform_vvvvvzwvzm_required) { - updateFieldRequired('php_after_getitems',0); - jQuery('#jform_php_after_getitems').prop('required','required'); - jQuery('#jform_php_after_getitems').attr('aria-required',true); - jQuery('#jform_php_after_getitems').addClass('required'); - jform_vvvvvzwvzk_required = false; + 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_vvvvvzwvzm_required = false; } } else { - jQuery('#jform_php_after_getitems-lbl').closest('.control-group').hide(); - // remove required attribute from php_after_getitems field - if (!jform_vvvvvzwvzk_required) + jQuery('#jform_php_before_getitems-lbl').closest('.control-group').hide(); + // remove required attribute from php_before_getitems field + if (!jform_vvvvvzwvzm_required) { - updateFieldRequired('php_after_getitems',1); - jQuery('#jform_php_after_getitems').removeAttr('required'); - jQuery('#jform_php_after_getitems').removeAttr('aria-required'); - jQuery('#jform_php_after_getitems').removeClass('required'); - jform_vvvvvzwvzk_required = true; + 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_vvvvvzwvzm_required = true; } } } // the vvvvvzw Some function -function add_php_after_getitems_vvvvvzw_SomeFunc(add_php_after_getitems_vvvvvzw) +function add_php_before_getitems_vvvvvzw_SomeFunc(add_php_before_getitems_vvvvvzw) { // set the function logic - if (add_php_after_getitems_vvvvvzw == 1) + if (add_php_before_getitems_vvvvvzw == 1) { return true; } @@ -1157,96 +1078,79 @@ function gettype_vvvvvzw_SomeFunc(gettype_vvvvvzw) return false; } -// the vvvvvzy function -function vvvvvzy(gettype_vvvvvzy) +// the vvvvvzx function +function vvvvvzx(add_php_after_getitems_vvvvvzx,gettype_vvvvvzx) { - if (isSet(gettype_vvvvvzy) && gettype_vvvvvzy.constructor !== Array) + if (isSet(add_php_after_getitems_vvvvvzx) && add_php_after_getitems_vvvvvzx.constructor !== Array) { - var temp_vvvvvzy = gettype_vvvvvzy; - var gettype_vvvvvzy = []; - gettype_vvvvvzy.push(temp_vvvvvzy); + var temp_vvvvvzx = add_php_after_getitems_vvvvvzx; + var add_php_after_getitems_vvvvvzx = []; + add_php_after_getitems_vvvvvzx.push(temp_vvvvvzx); } - else if (!isSet(gettype_vvvvvzy)) + else if (!isSet(add_php_after_getitems_vvvvvzx)) { - var gettype_vvvvvzy = []; + var add_php_after_getitems_vvvvvzx = []; } - var gettype = gettype_vvvvvzy.some(gettype_vvvvvzy_SomeFunc); + var add_php_after_getitems = add_php_after_getitems_vvvvvzx.some(add_php_after_getitems_vvvvvzx_SomeFunc); + + if (isSet(gettype_vvvvvzx) && gettype_vvvvvzx.constructor !== Array) + { + var temp_vvvvvzx = gettype_vvvvvzx; + var gettype_vvvvvzx = []; + gettype_vvvvvzx.push(temp_vvvvvzx); + } + else if (!isSet(gettype_vvvvvzx)) + { + var gettype_vvvvvzx = []; + } + var gettype = gettype_vvvvvzx.some(gettype_vvvvvzx_SomeFunc); // set this function logic - if (gettype) + if (add_php_after_getitems && gettype) { - jQuery('#jform_add_php_after_getitems').closest('.control-group').show(); - // add required attribute to add_php_after_getitems field - if (jform_vvvvvzyvzl_required) + jQuery('#jform_php_after_getitems-lbl').closest('.control-group').show(); + // add required attribute to php_after_getitems field + if (jform_vvvvvzxvzn_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_vvvvvzyvzl_required = false; - } - jQuery('#jform_add_php_before_getitems').closest('.control-group').show(); - // add required attribute to add_php_before_getitems field - if (jform_vvvvvzyvzm_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_vvvvvzyvzm_required = false; - } - jQuery('#jform_add_php_getlistquery').closest('.control-group').show(); - // add required attribute to add_php_getlistquery field - if (jform_vvvvvzyvzn_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_vvvvvzyvzn_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_vvvvvzxvzn_required = false; } } else { - jQuery('#jform_add_php_after_getitems').closest('.control-group').hide(); - // remove required attribute from add_php_after_getitems field - if (!jform_vvvvvzyvzl_required) + jQuery('#jform_php_after_getitems-lbl').closest('.control-group').hide(); + // remove required attribute from php_after_getitems field + if (!jform_vvvvvzxvzn_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_vvvvvzyvzl_required = true; - } - jQuery('#jform_add_php_before_getitems').closest('.control-group').hide(); - // remove required attribute from add_php_before_getitems field - if (!jform_vvvvvzyvzm_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_vvvvvzyvzm_required = true; - } - jQuery('#jform_add_php_getlistquery').closest('.control-group').hide(); - // remove required attribute from add_php_getlistquery field - if (!jform_vvvvvzyvzn_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_vvvvvzyvzn_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_vvvvvzxvzn_required = true; } } } -// the vvvvvzy Some function -function gettype_vvvvvzy_SomeFunc(gettype_vvvvvzy) +// the vvvvvzx Some function +function add_php_after_getitems_vvvvvzx_SomeFunc(add_php_after_getitems_vvvvvzx) { // set the function logic - if (gettype_vvvvvzy == 2 || gettype_vvvvvzy == 4) + if (add_php_after_getitems_vvvvvzx == 1) + { + return true; + } + return false; +} + +// the vvvvvzx Some function +function gettype_vvvvvzx_SomeFunc(gettype_vvvvvzx) +{ + // set the function logic + if (gettype_vvvvvzx == 2 || gettype_vvvvvzx == 4) { return true; } @@ -1272,29 +1176,69 @@ function vvvvvzz(gettype_vvvvvzz) // set this function logic if (gettype) { - jQuery('#jform_pagination').closest('.control-group').show(); - // add required attribute to pagination field + jQuery('#jform_add_php_after_getitems').closest('.control-group').show(); + // add required attribute to add_php_after_getitems field if (jform_vvvvvzzvzo_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_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_vvvvvzzvzo_required = false; } + jQuery('#jform_add_php_before_getitems').closest('.control-group').show(); + // add required attribute to add_php_before_getitems field + if (jform_vvvvvzzvzp_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_vvvvvzzvzp_required = false; + } + jQuery('#jform_add_php_getlistquery').closest('.control-group').show(); + // add required attribute to add_php_getlistquery field + if (jform_vvvvvzzvzq_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_vvvvvzzvzq_required = false; + } } else { - jQuery('#jform_pagination').closest('.control-group').hide(); - // remove required attribute from pagination field + jQuery('#jform_add_php_after_getitems').closest('.control-group').hide(); + // remove required attribute from add_php_after_getitems field if (!jform_vvvvvzzvzo_required) { - updateFieldRequired('pagination',1); - jQuery('#jform_pagination').removeAttr('required'); - jQuery('#jform_pagination').removeAttr('aria-required'); - jQuery('#jform_pagination').removeClass('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_vvvvvzzvzo_required = true; } + jQuery('#jform_add_php_before_getitems').closest('.control-group').hide(); + // remove required attribute from add_php_before_getitems field + if (!jform_vvvvvzzvzp_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_vvvvvzzvzp_required = true; + } + jQuery('#jform_add_php_getlistquery').closest('.control-group').hide(); + // remove required attribute from add_php_getlistquery field + if (!jform_vvvvvzzvzq_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_vvvvvzzvzq_required = true; + } } } @@ -1302,7 +1246,7 @@ function vvvvvzz(gettype_vvvvvzz) function gettype_vvvvvzz_SomeFunc(gettype_vvvvvzz) { // set the function logic - if (gettype_vvvvvzz == 2) + if (gettype_vvvvvzz == 2 || gettype_vvvvvzz == 4) { return true; } @@ -1328,28 +1272,28 @@ function vvvvwaa(gettype_vvvvwaa) // set this function logic if (gettype) { - jQuery('#jform_add_php_router_parse').closest('.control-group').show(); - // add required attribute to add_php_router_parse field - if (jform_vvvvwaavzp_required) + jQuery('#jform_pagination').closest('.control-group').show(); + // add required attribute to pagination field + if (jform_vvvvwaavzr_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_vvvvwaavzp_required = false; + updateFieldRequired('pagination',0); + jQuery('#jform_pagination').prop('required','required'); + jQuery('#jform_pagination').attr('aria-required',true); + jQuery('#jform_pagination').addClass('required'); + jform_vvvvwaavzr_required = false; } } else { - jQuery('#jform_add_php_router_parse').closest('.control-group').hide(); - // remove required attribute from add_php_router_parse field - if (!jform_vvvvwaavzp_required) + jQuery('#jform_pagination').closest('.control-group').hide(); + // remove required attribute from pagination field + if (!jform_vvvvwaavzr_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_vvvvwaavzp_required = true; + updateFieldRequired('pagination',1); + jQuery('#jform_pagination').removeAttr('required'); + jQuery('#jform_pagination').removeAttr('aria-required'); + jQuery('#jform_pagination').removeClass('required'); + jform_vvvvwaavzr_required = true; } } } @@ -1358,7 +1302,7 @@ function vvvvwaa(gettype_vvvvwaa) function gettype_vvvvwaa_SomeFunc(gettype_vvvvwaa) { // set the function logic - if (gettype_vvvvwaa == 1 || gettype_vvvvwaa == 2) + if (gettype_vvvvwaa == 2) { return true; } @@ -1366,7 +1310,7 @@ function gettype_vvvvwaa_SomeFunc(gettype_vvvvwaa) } // the vvvvwab function -function vvvvwab(gettype_vvvvwab,add_php_router_parse_vvvvwab) +function vvvvwab(gettype_vvvvwab) { if (isSet(gettype_vvvvwab) && gettype_vvvvwab.constructor !== Array) { @@ -1380,44 +1324,32 @@ function vvvvwab(gettype_vvvvwab,add_php_router_parse_vvvvwab) } var gettype = gettype_vvvvwab.some(gettype_vvvvwab_SomeFunc); - if (isSet(add_php_router_parse_vvvvwab) && add_php_router_parse_vvvvwab.constructor !== Array) - { - var temp_vvvvwab = add_php_router_parse_vvvvwab; - var add_php_router_parse_vvvvwab = []; - add_php_router_parse_vvvvwab.push(temp_vvvvwab); - } - else if (!isSet(add_php_router_parse_vvvvwab)) - { - var add_php_router_parse_vvvvwab = []; - } - var add_php_router_parse = add_php_router_parse_vvvvwab.some(add_php_router_parse_vvvvwab_SomeFunc); - // set this function logic - if (gettype && add_php_router_parse) + if (gettype) { - jQuery('#jform_php_router_parse').closest('.control-group').show(); - // add required attribute to php_router_parse field - if (jform_vvvvwabvzq_required) + jQuery('#jform_add_php_router_parse').closest('.control-group').show(); + // add required attribute to add_php_router_parse field + if (jform_vvvvwabvzs_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_vvvvwabvzq_required = false; + 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_vvvvwabvzs_required = false; } } else { - jQuery('#jform_php_router_parse').closest('.control-group').hide(); - // remove required attribute from php_router_parse field - if (!jform_vvvvwabvzq_required) + jQuery('#jform_add_php_router_parse').closest('.control-group').hide(); + // remove required attribute from add_php_router_parse field + if (!jform_vvvvwabvzs_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_vvvvwabvzq_required = true; + 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_vvvvwabvzs_required = true; } } } @@ -1433,31 +1365,99 @@ function gettype_vvvvwab_SomeFunc(gettype_vvvvwab) return false; } -// the vvvvwab Some function -function add_php_router_parse_vvvvwab_SomeFunc(add_php_router_parse_vvvvwab) +// the vvvvwac function +function vvvvwac(gettype_vvvvwac,add_php_router_parse_vvvvwac) +{ + if (isSet(gettype_vvvvwac) && gettype_vvvvwac.constructor !== Array) + { + var temp_vvvvwac = gettype_vvvvwac; + var gettype_vvvvwac = []; + gettype_vvvvwac.push(temp_vvvvwac); + } + else if (!isSet(gettype_vvvvwac)) + { + var gettype_vvvvwac = []; + } + var gettype = gettype_vvvvwac.some(gettype_vvvvwac_SomeFunc); + + if (isSet(add_php_router_parse_vvvvwac) && add_php_router_parse_vvvvwac.constructor !== Array) + { + var temp_vvvvwac = add_php_router_parse_vvvvwac; + var add_php_router_parse_vvvvwac = []; + add_php_router_parse_vvvvwac.push(temp_vvvvwac); + } + else if (!isSet(add_php_router_parse_vvvvwac)) + { + var add_php_router_parse_vvvvwac = []; + } + var add_php_router_parse = add_php_router_parse_vvvvwac.some(add_php_router_parse_vvvvwac_SomeFunc); + + + // set this function logic + if (gettype && add_php_router_parse) + { + jQuery('#jform_php_router_parse').closest('.control-group').show(); + // add required attribute to php_router_parse field + if (jform_vvvvwacvzt_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_vvvvwacvzt_required = false; + } + } + else + { + jQuery('#jform_php_router_parse').closest('.control-group').hide(); + // remove required attribute from php_router_parse field + if (!jform_vvvvwacvzt_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_vvvvwacvzt_required = true; + } + } +} + +// the vvvvwac Some function +function gettype_vvvvwac_SomeFunc(gettype_vvvvwac) { // set the function logic - if (add_php_router_parse_vvvvwab == 1) + if (gettype_vvvvwac == 1 || gettype_vvvvwac == 2) { return true; } return false; } -// the vvvvwad function -function vvvvwad(gettype_vvvvwad) +// the vvvvwac Some function +function add_php_router_parse_vvvvwac_SomeFunc(add_php_router_parse_vvvvwac) { - if (isSet(gettype_vvvvwad) && gettype_vvvvwad.constructor !== Array) + // set the function logic + if (add_php_router_parse_vvvvwac == 1) { - var temp_vvvvwad = gettype_vvvvwad; - var gettype_vvvvwad = []; - gettype_vvvvwad.push(temp_vvvvwad); + return true; } - else if (!isSet(gettype_vvvvwad)) + return false; +} + +// the vvvvwae function +function vvvvwae(gettype_vvvvwae) +{ + if (isSet(gettype_vvvvwae) && gettype_vvvvwae.constructor !== Array) { - var gettype_vvvvwad = []; + var temp_vvvvwae = gettype_vvvvwae; + var gettype_vvvvwae = []; + gettype_vvvvwae.push(temp_vvvvwae); } - var gettype = gettype_vvvvwad.some(gettype_vvvvwad_SomeFunc); + else if (!isSet(gettype_vvvvwae)) + { + var gettype_vvvvwae = []; + } + var gettype = gettype_vvvvwae.some(gettype_vvvvwae_SomeFunc); // set this function logic @@ -1471,11 +1471,11 @@ function vvvvwad(gettype_vvvvwad) } } -// the vvvvwad Some function -function gettype_vvvvwad_SomeFunc(gettype_vvvvwad) +// the vvvvwae Some function +function gettype_vvvvwae_SomeFunc(gettype_vvvvwae) { // set the function logic - if (gettype_vvvvwad == 1) + if (gettype_vvvvwae == 1) { return true; } diff --git a/admin/models/forms/field.js b/admin/models/forms/field.js index 908697f86..03abec751 100644 --- a/admin/models/forms/field.js +++ b/admin/models/forms/field.js @@ -9,61 +9,61 @@ */ // Some Global Values -jform_vvvvwaqvzx_required = false; -jform_vvvvwarvzy_required = false; -jform_vvvvwasvzz_required = false; -jform_vvvvwatwaa_required = false; -jform_vvvvwawwab_required = false; -jform_vvvvwaxwac_required = false; -jform_vvvvwaywad_required = false; -jform_vvvvwazwae_required = false; +jform_vvvvwarwaa_required = false; +jform_vvvvwaswab_required = false; +jform_vvvvwatwac_required = false; +jform_vvvvwauwad_required = false; +jform_vvvvwaxwae_required = false; +jform_vvvvwaywaf_required = false; +jform_vvvvwazwag_required = false; +jform_vvvvwbawah_required = false; // Initial Script jQuery(document).ready(function() { - var datalenght_vvvvwaq = jQuery("#jform_datalenght").val(); - vvvvwaq(datalenght_vvvvwaq); + var datalenght_vvvvwar = jQuery("#jform_datalenght").val(); + vvvvwar(datalenght_vvvvwar); - var datadefault_vvvvwar = jQuery("#jform_datadefault").val(); - vvvvwar(datadefault_vvvvwar); - - var datatype_vvvvwas = jQuery("#jform_datatype").val(); - vvvvwas(datatype_vvvvwas); + var datadefault_vvvvwas = jQuery("#jform_datadefault").val(); + vvvvwas(datadefault_vvvvwas); var datatype_vvvvwat = jQuery("#jform_datatype").val(); vvvvwat(datatype_vvvvwat); - var store_vvvvwau = jQuery("#jform_store").val(); var datatype_vvvvwau = jQuery("#jform_datatype").val(); - vvvvwau(store_vvvvwau,datatype_vvvvwau); + vvvvwau(datatype_vvvvwau); - var add_css_view_vvvvwaw = jQuery("#jform_add_css_view input[type='radio']:checked").val(); - vvvvwaw(add_css_view_vvvvwaw); + var store_vvvvwav = jQuery("#jform_store").val(); + var datatype_vvvvwav = jQuery("#jform_datatype").val(); + vvvvwav(store_vvvvwav,datatype_vvvvwav); - var add_css_views_vvvvwax = jQuery("#jform_add_css_views input[type='radio']:checked").val(); - vvvvwax(add_css_views_vvvvwax); + var add_css_view_vvvvwax = jQuery("#jform_add_css_view input[type='radio']:checked").val(); + vvvvwax(add_css_view_vvvvwax); - var add_javascript_view_footer_vvvvway = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); - vvvvway(add_javascript_view_footer_vvvvway); + var add_css_views_vvvvway = jQuery("#jform_add_css_views input[type='radio']:checked").val(); + vvvvway(add_css_views_vvvvway); - var add_javascript_views_footer_vvvvwaz = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); - vvvvwaz(add_javascript_views_footer_vvvvwaz); + var add_javascript_view_footer_vvvvwaz = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val(); + vvvvwaz(add_javascript_view_footer_vvvvwaz); + + var add_javascript_views_footer_vvvvwba = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val(); + vvvvwba(add_javascript_views_footer_vvvvwba); }); -// the vvvvwaq function -function vvvvwaq(datalenght_vvvvwaq) +// the vvvvwar function +function vvvvwar(datalenght_vvvvwar) { - if (isSet(datalenght_vvvvwaq) && datalenght_vvvvwaq.constructor !== Array) + if (isSet(datalenght_vvvvwar) && datalenght_vvvvwar.constructor !== Array) { - var temp_vvvvwaq = datalenght_vvvvwaq; - var datalenght_vvvvwaq = []; - datalenght_vvvvwaq.push(temp_vvvvwaq); + var temp_vvvvwar = datalenght_vvvvwar; + var datalenght_vvvvwar = []; + datalenght_vvvvwar.push(temp_vvvvwar); } - else if (!isSet(datalenght_vvvvwaq)) + else if (!isSet(datalenght_vvvvwar)) { - var datalenght_vvvvwaq = []; + var datalenght_vvvvwar = []; } - var datalenght = datalenght_vvvvwaq.some(datalenght_vvvvwaq_SomeFunc); + var datalenght = datalenght_vvvvwar.some(datalenght_vvvvwar_SomeFunc); // set this function logic @@ -71,91 +71,35 @@ function vvvvwaq(datalenght_vvvvwaq) { jQuery('#jform_datalenght_other').closest('.control-group').show(); // add required attribute to datalenght_other field - if (jform_vvvvwaqvzx_required) + if (jform_vvvvwarwaa_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_vvvvwaqvzx_required = false; + jform_vvvvwarwaa_required = false; } } else { jQuery('#jform_datalenght_other').closest('.control-group').hide(); // remove required attribute from datalenght_other field - if (!jform_vvvvwaqvzx_required) + if (!jform_vvvvwarwaa_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_vvvvwaqvzx_required = true; - } - } -} - -// the vvvvwaq Some function -function datalenght_vvvvwaq_SomeFunc(datalenght_vvvvwaq) -{ - // set the function logic - if (datalenght_vvvvwaq == 'Other') - { - return true; - } - return false; -} - -// the vvvvwar function -function vvvvwar(datadefault_vvvvwar) -{ - if (isSet(datadefault_vvvvwar) && datadefault_vvvvwar.constructor !== Array) - { - var temp_vvvvwar = datadefault_vvvvwar; - var datadefault_vvvvwar = []; - datadefault_vvvvwar.push(temp_vvvvwar); - } - else if (!isSet(datadefault_vvvvwar)) - { - var datadefault_vvvvwar = []; - } - var datadefault = datadefault_vvvvwar.some(datadefault_vvvvwar_SomeFunc); - - - // set this function logic - if (datadefault) - { - jQuery('#jform_datadefault_other').closest('.control-group').show(); - // add required attribute to datadefault_other field - if (jform_vvvvwarvzy_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_vvvvwarvzy_required = false; - } - } - else - { - jQuery('#jform_datadefault_other').closest('.control-group').hide(); - // remove required attribute from datadefault_other field - if (!jform_vvvvwarvzy_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_vvvvwarvzy_required = true; + jform_vvvvwarwaa_required = true; } } } // the vvvvwar Some function -function datadefault_vvvvwar_SomeFunc(datadefault_vvvvwar) +function datalenght_vvvvwar_SomeFunc(datalenght_vvvvwar) { // set the function logic - if (datadefault_vvvvwar == 'Other') + if (datalenght_vvvvwar == 'Other') { return true; } @@ -163,59 +107,55 @@ function datadefault_vvvvwar_SomeFunc(datadefault_vvvvwar) } // the vvvvwas function -function vvvvwas(datatype_vvvvwas) +function vvvvwas(datadefault_vvvvwas) { - if (isSet(datatype_vvvvwas) && datatype_vvvvwas.constructor !== Array) + if (isSet(datadefault_vvvvwas) && datadefault_vvvvwas.constructor !== Array) { - var temp_vvvvwas = datatype_vvvvwas; - var datatype_vvvvwas = []; - datatype_vvvvwas.push(temp_vvvvwas); + var temp_vvvvwas = datadefault_vvvvwas; + var datadefault_vvvvwas = []; + datadefault_vvvvwas.push(temp_vvvvwas); } - else if (!isSet(datatype_vvvvwas)) + else if (!isSet(datadefault_vvvvwas)) { - var datatype_vvvvwas = []; + var datadefault_vvvvwas = []; } - var datatype = datatype_vvvvwas.some(datatype_vvvvwas_SomeFunc); + var datadefault = datadefault_vvvvwas.some(datadefault_vvvvwas_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(); - // add required attribute to indexes field - if (jform_vvvvwasvzz_required) + jQuery('#jform_datadefault_other').closest('.control-group').show(); + // add required attribute to datadefault_other field + if (jform_vvvvwaswab_required) { - updateFieldRequired('indexes',0); - jQuery('#jform_indexes').prop('required','required'); - jQuery('#jform_indexes').attr('aria-required',true); - jQuery('#jform_indexes').addClass('required'); - jform_vvvvwasvzz_required = false; + updateFieldRequired('datadefault_other',0); + jQuery('#jform_datadefault_other').prop('required','required'); + jQuery('#jform_datadefault_other').attr('aria-required',true); + jQuery('#jform_datadefault_other').addClass('required'); + jform_vvvvwaswab_required = false; } } else { - jQuery('#jform_datadefault').closest('.control-group').hide(); - jQuery('#jform_datalenght').closest('.control-group').hide(); - jQuery('#jform_indexes').closest('.control-group').hide(); - // remove required attribute from indexes field - if (!jform_vvvvwasvzz_required) + jQuery('#jform_datadefault_other').closest('.control-group').hide(); + // remove required attribute from datadefault_other field + if (!jform_vvvvwaswab_required) { - updateFieldRequired('indexes',1); - jQuery('#jform_indexes').removeAttr('required'); - jQuery('#jform_indexes').removeAttr('aria-required'); - jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwasvzz_required = true; + updateFieldRequired('datadefault_other',1); + jQuery('#jform_datadefault_other').removeAttr('required'); + jQuery('#jform_datadefault_other').removeAttr('aria-required'); + jQuery('#jform_datadefault_other').removeClass('required'); + jform_vvvvwaswab_required = true; } } } // the vvvvwas Some function -function datatype_vvvvwas_SomeFunc(datatype_vvvvwas) +function datadefault_vvvvwas_SomeFunc(datadefault_vvvvwas) { // set the function logic - if (datatype_vvvvwas == 'CHAR' || datatype_vvvvwas == 'VARCHAR' || datatype_vvvvwas == 'DATETIME' || datatype_vvvvwas == 'DATE' || datatype_vvvvwas == 'TIME' || datatype_vvvvwas == 'INT' || datatype_vvvvwas == 'TINYINT' || datatype_vvvvwas == 'BIGINT' || datatype_vvvvwas == 'FLOAT' || datatype_vvvvwas == 'DECIMAL' || datatype_vvvvwas == 'DOUBLE') + if (datadefault_vvvvwas == 'Other') { return true; } @@ -241,28 +181,32 @@ function vvvvwat(datatype_vvvvwat) // set this function logic if (datatype) { - jQuery('#jform_store').closest('.control-group').show(); - // add required attribute to store field - if (jform_vvvvwatwaa_required) + jQuery('#jform_datadefault').closest('.control-group').show(); + jQuery('#jform_datalenght').closest('.control-group').show(); + jQuery('#jform_indexes').closest('.control-group').show(); + // add required attribute to indexes field + if (jform_vvvvwatwac_required) { - updateFieldRequired('store',0); - jQuery('#jform_store').prop('required','required'); - jQuery('#jform_store').attr('aria-required',true); - jQuery('#jform_store').addClass('required'); - jform_vvvvwatwaa_required = false; + updateFieldRequired('indexes',0); + jQuery('#jform_indexes').prop('required','required'); + jQuery('#jform_indexes').attr('aria-required',true); + jQuery('#jform_indexes').addClass('required'); + jform_vvvvwatwac_required = false; } } else { - jQuery('#jform_store').closest('.control-group').hide(); - // remove required attribute from store field - if (!jform_vvvvwatwaa_required) + jQuery('#jform_datadefault').closest('.control-group').hide(); + jQuery('#jform_datalenght').closest('.control-group').hide(); + jQuery('#jform_indexes').closest('.control-group').hide(); + // remove required attribute from indexes field + if (!jform_vvvvwatwac_required) { - updateFieldRequired('store',1); - jQuery('#jform_store').removeAttr('required'); - jQuery('#jform_store').removeAttr('aria-required'); - jQuery('#jform_store').removeClass('required'); - jform_vvvvwatwaa_required = true; + updateFieldRequired('indexes',1); + jQuery('#jform_indexes').removeAttr('required'); + jQuery('#jform_indexes').removeAttr('aria-required'); + jQuery('#jform_indexes').removeClass('required'); + jform_vvvvwatwac_required = true; } } } @@ -271,7 +215,7 @@ function vvvvwat(datatype_vvvvwat) function datatype_vvvvwat_SomeFunc(datatype_vvvvwat) { // set the function logic - if (datatype_vvvvwat == 'CHAR' || datatype_vvvvwat == 'VARCHAR' || datatype_vvvvwat == 'TEXT' || datatype_vvvvwat == 'MEDIUMTEXT' || datatype_vvvvwat == 'LONGTEXT' || datatype_vvvvwat == 'BLOB' || datatype_vvvvwat == 'TINYBLOB' || datatype_vvvvwat == 'MEDIUMBLOB' || datatype_vvvvwat == 'LONGBLOB') + if (datatype_vvvvwat == 'CHAR' || datatype_vvvvwat == 'VARCHAR' || datatype_vvvvwat == 'DATETIME' || datatype_vvvvwat == 'DATE' || datatype_vvvvwat == 'TIME' || datatype_vvvvwat == 'INT' || datatype_vvvvwat == 'TINYINT' || datatype_vvvvwat == 'BIGINT' || datatype_vvvvwat == 'FLOAT' || datatype_vvvvwat == 'DECIMAL' || datatype_vvvvwat == 'DOUBLE') { return true; } @@ -279,20 +223,8 @@ function datatype_vvvvwat_SomeFunc(datatype_vvvvwat) } // the vvvvwau function -function vvvvwau(store_vvvvwau,datatype_vvvvwau) +function vvvvwau(datatype_vvvvwau) { - if (isSet(store_vvvvwau) && store_vvvvwau.constructor !== Array) - { - var temp_vvvvwau = store_vvvvwau; - var store_vvvvwau = []; - store_vvvvwau.push(temp_vvvvwau); - } - else if (!isSet(store_vvvvwau)) - { - var store_vvvvwau = []; - } - var store = store_vvvvwau.some(store_vvvvwau_SomeFunc); - if (isSet(datatype_vvvvwau) && datatype_vvvvwau.constructor !== Array) { var temp_vvvvwau = datatype_vvvvwau; @@ -307,27 +239,34 @@ function vvvvwau(store_vvvvwau,datatype_vvvvwau) // set this function logic - if (store && datatype) + if (datatype) { - jQuery('.note_whmcs_encryption').closest('.control-group').show(); + jQuery('#jform_store').closest('.control-group').show(); + // add required attribute to store field + if (jform_vvvvwauwad_required) + { + updateFieldRequired('store',0); + jQuery('#jform_store').prop('required','required'); + jQuery('#jform_store').attr('aria-required',true); + jQuery('#jform_store').addClass('required'); + jform_vvvvwauwad_required = false; + } } else { - jQuery('.note_whmcs_encryption').closest('.control-group').hide(); + jQuery('#jform_store').closest('.control-group').hide(); + // remove required attribute from store field + if (!jform_vvvvwauwad_required) + { + updateFieldRequired('store',1); + jQuery('#jform_store').removeAttr('required'); + jQuery('#jform_store').removeAttr('aria-required'); + jQuery('#jform_store').removeClass('required'); + jform_vvvvwauwad_required = true; + } } } -// the vvvvwau Some function -function store_vvvvwau_SomeFunc(store_vvvvwau) -{ - // set the function logic - if (store_vvvvwau == 4) - { - return true; - } - return false; -} - // the vvvvwau Some function function datatype_vvvvwau_SomeFunc(datatype_vvvvwau) { @@ -339,130 +278,191 @@ function datatype_vvvvwau_SomeFunc(datatype_vvvvwau) return false; } -// the vvvvwaw function -function vvvvwaw(add_css_view_vvvvwaw) +// the vvvvwav function +function vvvvwav(store_vvvvwav,datatype_vvvvwav) +{ + if (isSet(store_vvvvwav) && store_vvvvwav.constructor !== Array) + { + var temp_vvvvwav = store_vvvvwav; + var store_vvvvwav = []; + store_vvvvwav.push(temp_vvvvwav); + } + else if (!isSet(store_vvvvwav)) + { + var store_vvvvwav = []; + } + var store = store_vvvvwav.some(store_vvvvwav_SomeFunc); + + if (isSet(datatype_vvvvwav) && datatype_vvvvwav.constructor !== Array) + { + var temp_vvvvwav = datatype_vvvvwav; + var datatype_vvvvwav = []; + datatype_vvvvwav.push(temp_vvvvwav); + } + else if (!isSet(datatype_vvvvwav)) + { + var datatype_vvvvwav = []; + } + var datatype = datatype_vvvvwav.some(datatype_vvvvwav_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 vvvvwav Some function +function store_vvvvwav_SomeFunc(store_vvvvwav) { // set the function logic - if (add_css_view_vvvvwaw == 1) + if (store_vvvvwav == 4) + { + return true; + } + return false; +} + +// the vvvvwav Some function +function datatype_vvvvwav_SomeFunc(datatype_vvvvwav) +{ + // set the function logic + if (datatype_vvvvwav == 'CHAR' || datatype_vvvvwav == 'VARCHAR' || datatype_vvvvwav == 'TEXT' || datatype_vvvvwav == 'MEDIUMTEXT' || datatype_vvvvwav == 'LONGTEXT' || datatype_vvvvwav == 'BLOB' || datatype_vvvvwav == 'TINYBLOB' || datatype_vvvvwav == 'MEDIUMBLOB' || datatype_vvvvwav == 'LONGBLOB') + { + return true; + } + return false; +} + +// the vvvvwax function +function vvvvwax(add_css_view_vvvvwax) +{ + // set the function logic + if (add_css_view_vvvvwax == 1) { jQuery('#jform_css_view-lbl').closest('.control-group').show(); // add required attribute to css_view field - if (jform_vvvvwawwab_required) + if (jform_vvvvwaxwae_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_vvvvwawwab_required = false; + jform_vvvvwaxwae_required = false; } } else { jQuery('#jform_css_view-lbl').closest('.control-group').hide(); // remove required attribute from css_view field - if (!jform_vvvvwawwab_required) + if (!jform_vvvvwaxwae_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_vvvvwawwab_required = true; + jform_vvvvwaxwae_required = true; } } } -// the vvvvwax function -function vvvvwax(add_css_views_vvvvwax) +// the vvvvway function +function vvvvway(add_css_views_vvvvway) { // set the function logic - if (add_css_views_vvvvwax == 1) + if (add_css_views_vvvvway == 1) { jQuery('#jform_css_views-lbl').closest('.control-group').show(); // add required attribute to css_views field - if (jform_vvvvwaxwac_required) + if (jform_vvvvwaywaf_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_vvvvwaxwac_required = false; + jform_vvvvwaywaf_required = false; } } else { jQuery('#jform_css_views-lbl').closest('.control-group').hide(); // remove required attribute from css_views field - if (!jform_vvvvwaxwac_required) + if (!jform_vvvvwaywaf_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_vvvvwaxwac_required = true; + jform_vvvvwaywaf_required = true; } } } -// the vvvvway function -function vvvvway(add_javascript_view_footer_vvvvway) +// the vvvvwaz function +function vvvvwaz(add_javascript_view_footer_vvvvwaz) { // set the function logic - if (add_javascript_view_footer_vvvvway == 1) + if (add_javascript_view_footer_vvvvwaz == 1) { jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show(); // add required attribute to javascript_view_footer field - if (jform_vvvvwaywad_required) + if (jform_vvvvwazwag_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_vvvvwaywad_required = false; + jform_vvvvwazwag_required = false; } } else { jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').hide(); // remove required attribute from javascript_view_footer field - if (!jform_vvvvwaywad_required) + if (!jform_vvvvwazwag_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_vvvvwaywad_required = true; + jform_vvvvwazwag_required = true; } } } -// the vvvvwaz function -function vvvvwaz(add_javascript_views_footer_vvvvwaz) +// the vvvvwba function +function vvvvwba(add_javascript_views_footer_vvvvwba) { // set the function logic - if (add_javascript_views_footer_vvvvwaz == 1) + if (add_javascript_views_footer_vvvvwba == 1) { jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show(); // add required attribute to javascript_views_footer field - if (jform_vvvvwazwae_required) + if (jform_vvvvwbawah_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_vvvvwazwae_required = false; + jform_vvvvwbawah_required = false; } } else { jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').hide(); // remove required attribute from javascript_views_footer field - if (!jform_vvvvwazwae_required) + if (!jform_vvvvwbawah_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_vvvvwazwae_required = true; + jform_vvvvwbawah_required = true; } } } diff --git a/admin/models/forms/fieldtype.js b/admin/models/forms/fieldtype.js index ee4a83411..927afbd1a 100644 --- a/admin/models/forms/fieldtype.js +++ b/admin/models/forms/fieldtype.js @@ -9,82 +9,82 @@ */ // Some Global Values -jform_vvvvwbawaf_required = false; -jform_vvvvwbcwag_required = false; -jform_vvvvwbewah_required = false; -jform_vvvvwbfwai_required = false; -jform_vvvvwbgwaj_required = false; -jform_vvvvwblwak_required = false; -jform_vvvvwblwal_required = false; +jform_vvvvwbbwai_required = false; +jform_vvvvwbdwaj_required = false; +jform_vvvvwbfwak_required = false; +jform_vvvvwbgwal_required = false; +jform_vvvvwbhwam_required = false; +jform_vvvvwbmwan_required = false; +jform_vvvvwbmwao_required = false; // Initial Script jQuery(document).ready(function() { - var datalenght_vvvvwba = jQuery("#jform_datalenght").val(); - var has_defaults_vvvvwba = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba); + var datalenght_vvvvwbb = jQuery("#jform_datalenght").val(); + var has_defaults_vvvvwbb = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwbb(datalenght_vvvvwbb,has_defaults_vvvvwbb); - var datadefault_vvvvwbc = jQuery("#jform_datadefault").val(); - var has_defaults_vvvvwbc = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc); + var datadefault_vvvvwbd = jQuery("#jform_datadefault").val(); + var has_defaults_vvvvwbd = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwbd(datadefault_vvvvwbd,has_defaults_vvvvwbd); - var datatype_vvvvwbe = jQuery("#jform_datatype").val(); - var has_defaults_vvvvwbe = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe); - - var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val(); var datatype_vvvvwbf = jQuery("#jform_datatype").val(); - vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf); + var has_defaults_vvvvwbf = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwbf(datatype_vvvvwbf,has_defaults_vvvvwbf); - var datatype_vvvvwbg = jQuery("#jform_datatype").val(); var has_defaults_vvvvwbg = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg); + var datatype_vvvvwbg = jQuery("#jform_datatype").val(); + vvvvwbg(has_defaults_vvvvwbg,datatype_vvvvwbg); - var store_vvvvwbi = jQuery("#jform_store").val(); - var datatype_vvvvwbi = jQuery("#jform_datatype").val(); - var has_defaults_vvvvwbi = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi); + var datatype_vvvvwbh = jQuery("#jform_datatype").val(); + var has_defaults_vvvvwbh = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwbh(datatype_vvvvwbh,has_defaults_vvvvwbh); - var datatype_vvvvwbj = jQuery("#jform_datatype").val(); var store_vvvvwbj = jQuery("#jform_store").val(); + var datatype_vvvvwbj = jQuery("#jform_datatype").val(); var has_defaults_vvvvwbj = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj); + vvvvwbj(store_vvvvwbj,datatype_vvvvwbj,has_defaults_vvvvwbj); - var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - var store_vvvvwbk = jQuery("#jform_store").val(); var datatype_vvvvwbk = jQuery("#jform_datatype").val(); - vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk); + var store_vvvvwbk = jQuery("#jform_store").val(); + var has_defaults_vvvvwbk = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwbk(datatype_vvvvwbk,store_vvvvwbk,has_defaults_vvvvwbk); var has_defaults_vvvvwbl = jQuery("#jform_has_defaults input[type='radio']:checked").val(); - vvvvwbl(has_defaults_vvvvwbl); + var store_vvvvwbl = jQuery("#jform_store").val(); + var datatype_vvvvwbl = jQuery("#jform_datatype").val(); + vvvvwbl(has_defaults_vvvvwbl,store_vvvvwbl,datatype_vvvvwbl); + + var has_defaults_vvvvwbm = jQuery("#jform_has_defaults input[type='radio']:checked").val(); + vvvvwbm(has_defaults_vvvvwbm); }); -// the vvvvwba function -function vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba) +// the vvvvwbb function +function vvvvwbb(datalenght_vvvvwbb,has_defaults_vvvvwbb) { - if (isSet(datalenght_vvvvwba) && datalenght_vvvvwba.constructor !== Array) + if (isSet(datalenght_vvvvwbb) && datalenght_vvvvwbb.constructor !== Array) { - var temp_vvvvwba = datalenght_vvvvwba; - var datalenght_vvvvwba = []; - datalenght_vvvvwba.push(temp_vvvvwba); + var temp_vvvvwbb = datalenght_vvvvwbb; + var datalenght_vvvvwbb = []; + datalenght_vvvvwbb.push(temp_vvvvwbb); } - else if (!isSet(datalenght_vvvvwba)) + else if (!isSet(datalenght_vvvvwbb)) { - var datalenght_vvvvwba = []; + var datalenght_vvvvwbb = []; } - var datalenght = datalenght_vvvvwba.some(datalenght_vvvvwba_SomeFunc); + var datalenght = datalenght_vvvvwbb.some(datalenght_vvvvwbb_SomeFunc); - if (isSet(has_defaults_vvvvwba) && has_defaults_vvvvwba.constructor !== Array) + if (isSet(has_defaults_vvvvwbb) && has_defaults_vvvvwbb.constructor !== Array) { - var temp_vvvvwba = has_defaults_vvvvwba; - var has_defaults_vvvvwba = []; - has_defaults_vvvvwba.push(temp_vvvvwba); + var temp_vvvvwbb = has_defaults_vvvvwbb; + var has_defaults_vvvvwbb = []; + has_defaults_vvvvwbb.push(temp_vvvvwbb); } - else if (!isSet(has_defaults_vvvvwba)) + else if (!isSet(has_defaults_vvvvwbb)) { - var has_defaults_vvvvwba = []; + var has_defaults_vvvvwbb = []; } - var has_defaults = has_defaults_vvvvwba.some(has_defaults_vvvvwba_SomeFunc); + var has_defaults = has_defaults_vvvvwbb.some(has_defaults_vvvvwbb_SomeFunc); // set this function logic @@ -92,78 +92,78 @@ function vvvvwba(datalenght_vvvvwba,has_defaults_vvvvwba) { jQuery('#jform_datalenght_other').closest('.control-group').show(); // add required attribute to datalenght_other field - if (jform_vvvvwbawaf_required) + if (jform_vvvvwbbwai_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_vvvvwbawaf_required = false; + jform_vvvvwbbwai_required = false; } } else { jQuery('#jform_datalenght_other').closest('.control-group').hide(); // remove required attribute from datalenght_other field - if (!jform_vvvvwbawaf_required) + if (!jform_vvvvwbbwai_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_vvvvwbawaf_required = true; + jform_vvvvwbbwai_required = true; } } } -// the vvvvwba Some function -function datalenght_vvvvwba_SomeFunc(datalenght_vvvvwba) +// the vvvvwbb Some function +function datalenght_vvvvwbb_SomeFunc(datalenght_vvvvwbb) { // set the function logic - if (datalenght_vvvvwba == 'Other') + if (datalenght_vvvvwbb == 'Other') { return true; } return false; } -// the vvvvwba Some function -function has_defaults_vvvvwba_SomeFunc(has_defaults_vvvvwba) +// the vvvvwbb Some function +function has_defaults_vvvvwbb_SomeFunc(has_defaults_vvvvwbb) { // set the function logic - if (has_defaults_vvvvwba == 1) + if (has_defaults_vvvvwbb == 1) { return true; } return false; } -// the vvvvwbc function -function vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc) +// the vvvvwbd function +function vvvvwbd(datadefault_vvvvwbd,has_defaults_vvvvwbd) { - if (isSet(datadefault_vvvvwbc) && datadefault_vvvvwbc.constructor !== Array) + if (isSet(datadefault_vvvvwbd) && datadefault_vvvvwbd.constructor !== Array) { - var temp_vvvvwbc = datadefault_vvvvwbc; - var datadefault_vvvvwbc = []; - datadefault_vvvvwbc.push(temp_vvvvwbc); + var temp_vvvvwbd = datadefault_vvvvwbd; + var datadefault_vvvvwbd = []; + datadefault_vvvvwbd.push(temp_vvvvwbd); } - else if (!isSet(datadefault_vvvvwbc)) + else if (!isSet(datadefault_vvvvwbd)) { - var datadefault_vvvvwbc = []; + var datadefault_vvvvwbd = []; } - var datadefault = datadefault_vvvvwbc.some(datadefault_vvvvwbc_SomeFunc); + var datadefault = datadefault_vvvvwbd.some(datadefault_vvvvwbd_SomeFunc); - if (isSet(has_defaults_vvvvwbc) && has_defaults_vvvvwbc.constructor !== Array) + if (isSet(has_defaults_vvvvwbd) && has_defaults_vvvvwbd.constructor !== Array) { - var temp_vvvvwbc = has_defaults_vvvvwbc; - var has_defaults_vvvvwbc = []; - has_defaults_vvvvwbc.push(temp_vvvvwbc); + var temp_vvvvwbd = has_defaults_vvvvwbd; + var has_defaults_vvvvwbd = []; + has_defaults_vvvvwbd.push(temp_vvvvwbd); } - else if (!isSet(has_defaults_vvvvwbc)) + else if (!isSet(has_defaults_vvvvwbd)) { - var has_defaults_vvvvwbc = []; + var has_defaults_vvvvwbd = []; } - var has_defaults = has_defaults_vvvvwbc.some(has_defaults_vvvvwbc_SomeFunc); + var has_defaults = has_defaults_vvvvwbd.some(has_defaults_vvvvwbd_SomeFunc); // set this function logic @@ -171,129 +171,46 @@ function vvvvwbc(datadefault_vvvvwbc,has_defaults_vvvvwbc) { jQuery('#jform_datadefault_other').closest('.control-group').show(); // add required attribute to datadefault_other field - if (jform_vvvvwbcwag_required) + if (jform_vvvvwbdwaj_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_vvvvwbcwag_required = false; + jform_vvvvwbdwaj_required = false; } } else { jQuery('#jform_datadefault_other').closest('.control-group').hide(); // remove required attribute from datadefault_other field - if (!jform_vvvvwbcwag_required) + if (!jform_vvvvwbdwaj_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_vvvvwbcwag_required = true; + jform_vvvvwbdwaj_required = true; } } } -// the vvvvwbc Some function -function datadefault_vvvvwbc_SomeFunc(datadefault_vvvvwbc) +// the vvvvwbd Some function +function datadefault_vvvvwbd_SomeFunc(datadefault_vvvvwbd) { // set the function logic - if (datadefault_vvvvwbc == 'Other') + if (datadefault_vvvvwbd == 'Other') { return true; } return false; } -// the vvvvwbc Some function -function has_defaults_vvvvwbc_SomeFunc(has_defaults_vvvvwbc) +// the vvvvwbd Some function +function has_defaults_vvvvwbd_SomeFunc(has_defaults_vvvvwbd) { // set the function logic - if (has_defaults_vvvvwbc == 1) - { - return true; - } - return false; -} - -// the vvvvwbe function -function vvvvwbe(datatype_vvvvwbe,has_defaults_vvvvwbe) -{ - if (isSet(datatype_vvvvwbe) && datatype_vvvvwbe.constructor !== Array) - { - var temp_vvvvwbe = datatype_vvvvwbe; - var datatype_vvvvwbe = []; - datatype_vvvvwbe.push(temp_vvvvwbe); - } - else if (!isSet(datatype_vvvvwbe)) - { - var datatype_vvvvwbe = []; - } - var datatype = datatype_vvvvwbe.some(datatype_vvvvwbe_SomeFunc); - - if (isSet(has_defaults_vvvvwbe) && has_defaults_vvvvwbe.constructor !== Array) - { - var temp_vvvvwbe = has_defaults_vvvvwbe; - var has_defaults_vvvvwbe = []; - has_defaults_vvvvwbe.push(temp_vvvvwbe); - } - else if (!isSet(has_defaults_vvvvwbe)) - { - var has_defaults_vvvvwbe = []; - } - var has_defaults = has_defaults_vvvvwbe.some(has_defaults_vvvvwbe_SomeFunc); - - - // set this function logic - if (datatype && has_defaults) - { - jQuery('#jform_datadefault').closest('.control-group').show(); - jQuery('#jform_datalenght').closest('.control-group').show(); - jQuery('#jform_indexes').closest('.control-group').show(); - // add required attribute to indexes field - if (jform_vvvvwbewah_required) - { - updateFieldRequired('indexes',0); - jQuery('#jform_indexes').prop('required','required'); - jQuery('#jform_indexes').attr('aria-required',true); - jQuery('#jform_indexes').addClass('required'); - jform_vvvvwbewah_required = false; - } - } - else - { - jQuery('#jform_datadefault').closest('.control-group').hide(); - jQuery('#jform_datalenght').closest('.control-group').hide(); - jQuery('#jform_indexes').closest('.control-group').hide(); - // remove required attribute from indexes field - if (!jform_vvvvwbewah_required) - { - updateFieldRequired('indexes',1); - jQuery('#jform_indexes').removeAttr('required'); - jQuery('#jform_indexes').removeAttr('aria-required'); - jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwbewah_required = true; - } - } -} - -// the vvvvwbe Some function -function datatype_vvvvwbe_SomeFunc(datatype_vvvvwbe) -{ - // set the function logic - if (datatype_vvvvwbe == 'CHAR' || datatype_vvvvwbe == 'VARCHAR' || datatype_vvvvwbe == 'DATETIME' || datatype_vvvvwbe == 'DATE' || datatype_vvvvwbe == 'TIME' || datatype_vvvvwbe == 'INT' || datatype_vvvvwbe == 'TINYINT' || datatype_vvvvwbe == 'BIGINT' || datatype_vvvvwbe == 'FLOAT' || datatype_vvvvwbe == 'DECIMAL' || datatype_vvvvwbe == 'DOUBLE') - { - return true; - } - return false; -} - -// the vvvvwbe Some function -function has_defaults_vvvvwbe_SomeFunc(has_defaults_vvvvwbe) -{ - // set the function logic - if (has_defaults_vvvvwbe == 1) + if (has_defaults_vvvvwbd == 1) { return true; } @@ -301,20 +218,8 @@ function has_defaults_vvvvwbe_SomeFunc(has_defaults_vvvvwbe) } // the vvvvwbf function -function vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf) +function vvvvwbf(datatype_vvvvwbf,has_defaults_vvvvwbf) { - if (isSet(has_defaults_vvvvwbf) && has_defaults_vvvvwbf.constructor !== Array) - { - var temp_vvvvwbf = has_defaults_vvvvwbf; - var has_defaults_vvvvwbf = []; - has_defaults_vvvvwbf.push(temp_vvvvwbf); - } - else if (!isSet(has_defaults_vvvvwbf)) - { - var has_defaults_vvvvwbf = []; - } - var has_defaults = has_defaults_vvvvwbf.some(has_defaults_vvvvwbf_SomeFunc); - if (isSet(datatype_vvvvwbf) && datatype_vvvvwbf.constructor !== Array) { var temp_vvvvwbf = datatype_vvvvwbf; @@ -327,21 +232,33 @@ function vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf) } var datatype = datatype_vvvvwbf.some(datatype_vvvvwbf_SomeFunc); + if (isSet(has_defaults_vvvvwbf) && has_defaults_vvvvwbf.constructor !== Array) + { + var temp_vvvvwbf = has_defaults_vvvvwbf; + var has_defaults_vvvvwbf = []; + has_defaults_vvvvwbf.push(temp_vvvvwbf); + } + else if (!isSet(has_defaults_vvvvwbf)) + { + var has_defaults_vvvvwbf = []; + } + var has_defaults = has_defaults_vvvvwbf.some(has_defaults_vvvvwbf_SomeFunc); + // set this function logic - if (has_defaults && datatype) + if (datatype && has_defaults) { jQuery('#jform_datadefault').closest('.control-group').show(); jQuery('#jform_datalenght').closest('.control-group').show(); jQuery('#jform_indexes').closest('.control-group').show(); // add required attribute to indexes field - if (jform_vvvvwbfwai_required) + if (jform_vvvvwbfwak_required) { updateFieldRequired('indexes',0); jQuery('#jform_indexes').prop('required','required'); jQuery('#jform_indexes').attr('aria-required',true); jQuery('#jform_indexes').addClass('required'); - jform_vvvvwbfwai_required = false; + jform_vvvvwbfwak_required = false; } } else @@ -350,28 +267,17 @@ function vvvvwbf(has_defaults_vvvvwbf,datatype_vvvvwbf) jQuery('#jform_datalenght').closest('.control-group').hide(); jQuery('#jform_indexes').closest('.control-group').hide(); // remove required attribute from indexes field - if (!jform_vvvvwbfwai_required) + if (!jform_vvvvwbfwak_required) { updateFieldRequired('indexes',1); jQuery('#jform_indexes').removeAttr('required'); jQuery('#jform_indexes').removeAttr('aria-required'); jQuery('#jform_indexes').removeClass('required'); - jform_vvvvwbfwai_required = true; + jform_vvvvwbfwak_required = true; } } } -// the vvvvwbf Some function -function has_defaults_vvvvwbf_SomeFunc(has_defaults_vvvvwbf) -{ - // set the function logic - if (has_defaults_vvvvwbf == 1) - { - return true; - } - return false; -} - // the vvvvwbf Some function function datatype_vvvvwbf_SomeFunc(datatype_vvvvwbf) { @@ -383,21 +289,20 @@ function datatype_vvvvwbf_SomeFunc(datatype_vvvvwbf) return false; } -// the vvvvwbg function -function vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg) +// the vvvvwbf Some function +function has_defaults_vvvvwbf_SomeFunc(has_defaults_vvvvwbf) { - if (isSet(datatype_vvvvwbg) && datatype_vvvvwbg.constructor !== Array) + // set the function logic + if (has_defaults_vvvvwbf == 1) { - var temp_vvvvwbg = datatype_vvvvwbg; - var datatype_vvvvwbg = []; - datatype_vvvvwbg.push(temp_vvvvwbg); + return true; } - else if (!isSet(datatype_vvvvwbg)) - { - var datatype_vvvvwbg = []; - } - var datatype = datatype_vvvvwbg.some(datatype_vvvvwbg_SomeFunc); + return false; +} +// the vvvvwbg function +function vvvvwbg(has_defaults_vvvvwbg,datatype_vvvvwbg) +{ if (isSet(has_defaults_vvvvwbg) && has_defaults_vvvvwbg.constructor !== Array) { var temp_vvvvwbg = has_defaults_vvvvwbg; @@ -410,47 +315,52 @@ function vvvvwbg(datatype_vvvvwbg,has_defaults_vvvvwbg) } var has_defaults = has_defaults_vvvvwbg.some(has_defaults_vvvvwbg_SomeFunc); + if (isSet(datatype_vvvvwbg) && datatype_vvvvwbg.constructor !== Array) + { + var temp_vvvvwbg = datatype_vvvvwbg; + var datatype_vvvvwbg = []; + datatype_vvvvwbg.push(temp_vvvvwbg); + } + else if (!isSet(datatype_vvvvwbg)) + { + var datatype_vvvvwbg = []; + } + var datatype = datatype_vvvvwbg.some(datatype_vvvvwbg_SomeFunc); + // set this function logic - if (datatype && has_defaults) + if (has_defaults && datatype) { - jQuery('#jform_store').closest('.control-group').show(); - // add required attribute to store field - if (jform_vvvvwbgwaj_required) + jQuery('#jform_datadefault').closest('.control-group').show(); + jQuery('#jform_datalenght').closest('.control-group').show(); + jQuery('#jform_indexes').closest('.control-group').show(); + // add required attribute to indexes field + if (jform_vvvvwbgwal_required) { - updateFieldRequired('store',0); - jQuery('#jform_store').prop('required','required'); - jQuery('#jform_store').attr('aria-required',true); - jQuery('#jform_store').addClass('required'); - jform_vvvvwbgwaj_required = false; + updateFieldRequired('indexes',0); + jQuery('#jform_indexes').prop('required','required'); + jQuery('#jform_indexes').attr('aria-required',true); + jQuery('#jform_indexes').addClass('required'); + jform_vvvvwbgwal_required = false; } } else { - jQuery('#jform_store').closest('.control-group').hide(); - // remove required attribute from store field - if (!jform_vvvvwbgwaj_required) + jQuery('#jform_datadefault').closest('.control-group').hide(); + jQuery('#jform_datalenght').closest('.control-group').hide(); + jQuery('#jform_indexes').closest('.control-group').hide(); + // remove required attribute from indexes field + if (!jform_vvvvwbgwal_required) { - updateFieldRequired('store',1); - jQuery('#jform_store').removeAttr('required'); - jQuery('#jform_store').removeAttr('aria-required'); - jQuery('#jform_store').removeClass('required'); - jform_vvvvwbgwaj_required = true; + updateFieldRequired('indexes',1); + jQuery('#jform_indexes').removeAttr('required'); + jQuery('#jform_indexes').removeAttr('aria-required'); + jQuery('#jform_indexes').removeClass('required'); + jform_vvvvwbgwal_required = true; } } } -// the vvvvwbg Some function -function datatype_vvvvwbg_SomeFunc(datatype_vvvvwbg) -{ - // set the function logic - if (datatype_vvvvwbg == 'CHAR' || datatype_vvvvwbg == 'VARCHAR' || datatype_vvvvwbg == 'TEXT' || datatype_vvvvwbg == 'MEDIUMTEXT' || datatype_vvvvwbg == 'LONGTEXT' || datatype_vvvvwbg == 'BLOB' || datatype_vvvvwbg == 'TINYBLOB' || datatype_vvvvwbg == 'MEDIUMBLOB' || datatype_vvvvwbg == 'LONGBLOB') - { - return true; - } - return false; -} - // the vvvvwbg Some function function has_defaults_vvvvwbg_SomeFunc(has_defaults_vvvvwbg) { @@ -462,84 +372,90 @@ function has_defaults_vvvvwbg_SomeFunc(has_defaults_vvvvwbg) return false; } -// the vvvvwbi function -function vvvvwbi(store_vvvvwbi,datatype_vvvvwbi,has_defaults_vvvvwbi) +// the vvvvwbg Some function +function datatype_vvvvwbg_SomeFunc(datatype_vvvvwbg) { - if (isSet(store_vvvvwbi) && store_vvvvwbi.constructor !== Array) + // set the function logic + if (datatype_vvvvwbg == 'CHAR' || datatype_vvvvwbg == 'VARCHAR' || datatype_vvvvwbg == 'DATETIME' || datatype_vvvvwbg == 'DATE' || datatype_vvvvwbg == 'TIME' || datatype_vvvvwbg == 'INT' || datatype_vvvvwbg == 'TINYINT' || datatype_vvvvwbg == 'BIGINT' || datatype_vvvvwbg == 'FLOAT' || datatype_vvvvwbg == 'DECIMAL' || datatype_vvvvwbg == 'DOUBLE') { - var temp_vvvvwbi = store_vvvvwbi; - var store_vvvvwbi = []; - store_vvvvwbi.push(temp_vvvvwbi); + return true; } - else if (!isSet(store_vvvvwbi)) - { - var store_vvvvwbi = []; - } - var store = store_vvvvwbi.some(store_vvvvwbi_SomeFunc); + return false; +} - if (isSet(datatype_vvvvwbi) && datatype_vvvvwbi.constructor !== Array) +// the vvvvwbh function +function vvvvwbh(datatype_vvvvwbh,has_defaults_vvvvwbh) +{ + if (isSet(datatype_vvvvwbh) && datatype_vvvvwbh.constructor !== Array) { - var temp_vvvvwbi = datatype_vvvvwbi; - var datatype_vvvvwbi = []; - datatype_vvvvwbi.push(temp_vvvvwbi); + var temp_vvvvwbh = datatype_vvvvwbh; + var datatype_vvvvwbh = []; + datatype_vvvvwbh.push(temp_vvvvwbh); } - else if (!isSet(datatype_vvvvwbi)) + else if (!isSet(datatype_vvvvwbh)) { - var datatype_vvvvwbi = []; + var datatype_vvvvwbh = []; } - var datatype = datatype_vvvvwbi.some(datatype_vvvvwbi_SomeFunc); + var datatype = datatype_vvvvwbh.some(datatype_vvvvwbh_SomeFunc); - if (isSet(has_defaults_vvvvwbi) && has_defaults_vvvvwbi.constructor !== Array) + if (isSet(has_defaults_vvvvwbh) && has_defaults_vvvvwbh.constructor !== Array) { - var temp_vvvvwbi = has_defaults_vvvvwbi; - var has_defaults_vvvvwbi = []; - has_defaults_vvvvwbi.push(temp_vvvvwbi); + var temp_vvvvwbh = has_defaults_vvvvwbh; + var has_defaults_vvvvwbh = []; + has_defaults_vvvvwbh.push(temp_vvvvwbh); } - else if (!isSet(has_defaults_vvvvwbi)) + else if (!isSet(has_defaults_vvvvwbh)) { - var has_defaults_vvvvwbi = []; + var has_defaults_vvvvwbh = []; } - var has_defaults = has_defaults_vvvvwbi.some(has_defaults_vvvvwbi_SomeFunc); + var has_defaults = has_defaults_vvvvwbh.some(has_defaults_vvvvwbh_SomeFunc); // set this function logic - if (store && datatype && has_defaults) + if (datatype && has_defaults) { - jQuery('.note_whmcs_encryption').closest('.control-group').show(); + jQuery('#jform_store').closest('.control-group').show(); + // add required attribute to store field + if (jform_vvvvwbhwam_required) + { + updateFieldRequired('store',0); + jQuery('#jform_store').prop('required','required'); + jQuery('#jform_store').attr('aria-required',true); + jQuery('#jform_store').addClass('required'); + jform_vvvvwbhwam_required = false; + } } else { - jQuery('.note_whmcs_encryption').closest('.control-group').hide(); + jQuery('#jform_store').closest('.control-group').hide(); + // remove required attribute from store field + if (!jform_vvvvwbhwam_required) + { + updateFieldRequired('store',1); + jQuery('#jform_store').removeAttr('required'); + jQuery('#jform_store').removeAttr('aria-required'); + jQuery('#jform_store').removeClass('required'); + jform_vvvvwbhwam_required = true; + } } } -// the vvvvwbi Some function -function store_vvvvwbi_SomeFunc(store_vvvvwbi) +// the vvvvwbh Some function +function datatype_vvvvwbh_SomeFunc(datatype_vvvvwbh) { // set the function logic - if (store_vvvvwbi == 4) + if (datatype_vvvvwbh == 'CHAR' || datatype_vvvvwbh == 'VARCHAR' || datatype_vvvvwbh == 'TEXT' || datatype_vvvvwbh == 'MEDIUMTEXT' || datatype_vvvvwbh == 'LONGTEXT' || datatype_vvvvwbh == 'BLOB' || datatype_vvvvwbh == 'TINYBLOB' || datatype_vvvvwbh == 'MEDIUMBLOB' || datatype_vvvvwbh == 'LONGBLOB') { return true; } return false; } -// the vvvvwbi Some function -function datatype_vvvvwbi_SomeFunc(datatype_vvvvwbi) +// the vvvvwbh Some function +function has_defaults_vvvvwbh_SomeFunc(has_defaults_vvvvwbh) { // set the function logic - if (datatype_vvvvwbi == 'CHAR' || datatype_vvvvwbi == 'VARCHAR' || datatype_vvvvwbi == 'TEXT' || datatype_vvvvwbi == 'MEDIUMTEXT' || datatype_vvvvwbi == 'LONGTEXT' || datatype_vvvvwbi == 'BLOB' || datatype_vvvvwbi == 'TINYBLOB' || datatype_vvvvwbi == 'MEDIUMBLOB' || datatype_vvvvwbi == 'LONGBLOB') - { - return true; - } - return false; -} - -// the vvvvwbi Some function -function has_defaults_vvvvwbi_SomeFunc(has_defaults_vvvvwbi) -{ - // set the function logic - if (has_defaults_vvvvwbi == 1) + if (has_defaults_vvvvwbh == 1) { return true; } @@ -547,20 +463,8 @@ function has_defaults_vvvvwbi_SomeFunc(has_defaults_vvvvwbi) } // the vvvvwbj function -function vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj) +function vvvvwbj(store_vvvvwbj,datatype_vvvvwbj,has_defaults_vvvvwbj) { - if (isSet(datatype_vvvvwbj) && datatype_vvvvwbj.constructor !== Array) - { - var temp_vvvvwbj = datatype_vvvvwbj; - var datatype_vvvvwbj = []; - datatype_vvvvwbj.push(temp_vvvvwbj); - } - else if (!isSet(datatype_vvvvwbj)) - { - var datatype_vvvvwbj = []; - } - var datatype = datatype_vvvvwbj.some(datatype_vvvvwbj_SomeFunc); - if (isSet(store_vvvvwbj) && store_vvvvwbj.constructor !== Array) { var temp_vvvvwbj = store_vvvvwbj; @@ -573,6 +477,18 @@ function vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj) } var store = store_vvvvwbj.some(store_vvvvwbj_SomeFunc); + if (isSet(datatype_vvvvwbj) && datatype_vvvvwbj.constructor !== Array) + { + var temp_vvvvwbj = datatype_vvvvwbj; + var datatype_vvvvwbj = []; + datatype_vvvvwbj.push(temp_vvvvwbj); + } + else if (!isSet(datatype_vvvvwbj)) + { + var datatype_vvvvwbj = []; + } + var datatype = datatype_vvvvwbj.some(datatype_vvvvwbj_SomeFunc); + if (isSet(has_defaults_vvvvwbj) && has_defaults_vvvvwbj.constructor !== Array) { var temp_vvvvwbj = has_defaults_vvvvwbj; @@ -587,7 +503,7 @@ function vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj) // set this function logic - if (datatype && store && has_defaults) + if (store && datatype && has_defaults) { jQuery('.note_whmcs_encryption').closest('.control-group').show(); } @@ -598,10 +514,10 @@ function vvvvwbj(datatype_vvvvwbj,store_vvvvwbj,has_defaults_vvvvwbj) } // the vvvvwbj Some function -function datatype_vvvvwbj_SomeFunc(datatype_vvvvwbj) +function store_vvvvwbj_SomeFunc(store_vvvvwbj) { // set the function logic - if (datatype_vvvvwbj == 'CHAR' || datatype_vvvvwbj == 'VARCHAR' || datatype_vvvvwbj == 'TEXT' || datatype_vvvvwbj == 'MEDIUMTEXT' || datatype_vvvvwbj == 'LONGTEXT' || datatype_vvvvwbj == 'BLOB' || datatype_vvvvwbj == 'TINYBLOB' || datatype_vvvvwbj == 'MEDIUMBLOB' || datatype_vvvvwbj == 'LONGBLOB') + if (store_vvvvwbj == 4) { return true; } @@ -609,10 +525,10 @@ function datatype_vvvvwbj_SomeFunc(datatype_vvvvwbj) } // the vvvvwbj Some function -function store_vvvvwbj_SomeFunc(store_vvvvwbj) +function datatype_vvvvwbj_SomeFunc(datatype_vvvvwbj) { // set the function logic - if (store_vvvvwbj == 4) + if (datatype_vvvvwbj == 'CHAR' || datatype_vvvvwbj == 'VARCHAR' || datatype_vvvvwbj == 'TEXT' || datatype_vvvvwbj == 'MEDIUMTEXT' || datatype_vvvvwbj == 'LONGTEXT' || datatype_vvvvwbj == 'BLOB' || datatype_vvvvwbj == 'TINYBLOB' || datatype_vvvvwbj == 'MEDIUMBLOB' || datatype_vvvvwbj == 'LONGBLOB') { return true; } @@ -631,19 +547,19 @@ function has_defaults_vvvvwbj_SomeFunc(has_defaults_vvvvwbj) } // the vvvvwbk function -function vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk) +function vvvvwbk(datatype_vvvvwbk,store_vvvvwbk,has_defaults_vvvvwbk) { - if (isSet(has_defaults_vvvvwbk) && has_defaults_vvvvwbk.constructor !== Array) + if (isSet(datatype_vvvvwbk) && datatype_vvvvwbk.constructor !== Array) { - var temp_vvvvwbk = has_defaults_vvvvwbk; - var has_defaults_vvvvwbk = []; - has_defaults_vvvvwbk.push(temp_vvvvwbk); + var temp_vvvvwbk = datatype_vvvvwbk; + var datatype_vvvvwbk = []; + datatype_vvvvwbk.push(temp_vvvvwbk); } - else if (!isSet(has_defaults_vvvvwbk)) + else if (!isSet(datatype_vvvvwbk)) { - var has_defaults_vvvvwbk = []; + var datatype_vvvvwbk = []; } - var has_defaults = has_defaults_vvvvwbk.some(has_defaults_vvvvwbk_SomeFunc); + var datatype = datatype_vvvvwbk.some(datatype_vvvvwbk_SomeFunc); if (isSet(store_vvvvwbk) && store_vvvvwbk.constructor !== Array) { @@ -657,21 +573,21 @@ function vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk) } var store = store_vvvvwbk.some(store_vvvvwbk_SomeFunc); - if (isSet(datatype_vvvvwbk) && datatype_vvvvwbk.constructor !== Array) + if (isSet(has_defaults_vvvvwbk) && has_defaults_vvvvwbk.constructor !== Array) { - var temp_vvvvwbk = datatype_vvvvwbk; - var datatype_vvvvwbk = []; - datatype_vvvvwbk.push(temp_vvvvwbk); + var temp_vvvvwbk = has_defaults_vvvvwbk; + var has_defaults_vvvvwbk = []; + has_defaults_vvvvwbk.push(temp_vvvvwbk); } - else if (!isSet(datatype_vvvvwbk)) + else if (!isSet(has_defaults_vvvvwbk)) { - var datatype_vvvvwbk = []; + var has_defaults_vvvvwbk = []; } - var datatype = datatype_vvvvwbk.some(datatype_vvvvwbk_SomeFunc); + var has_defaults = has_defaults_vvvvwbk.some(has_defaults_vvvvwbk_SomeFunc); // set this function logic - if (has_defaults && store && datatype) + if (datatype && store && has_defaults) { jQuery('.note_whmcs_encryption').closest('.control-group').show(); } @@ -682,10 +598,10 @@ function vvvvwbk(has_defaults_vvvvwbk,store_vvvvwbk,datatype_vvvvwbk) } // the vvvvwbk Some function -function has_defaults_vvvvwbk_SomeFunc(has_defaults_vvvvwbk) +function datatype_vvvvwbk_SomeFunc(datatype_vvvvwbk) { // set the function logic - if (has_defaults_vvvvwbk == 1) + if (datatype_vvvvwbk == 'CHAR' || datatype_vvvvwbk == 'VARCHAR' || datatype_vvvvwbk == 'TEXT' || datatype_vvvvwbk == 'MEDIUMTEXT' || datatype_vvvvwbk == 'LONGTEXT' || datatype_vvvvwbk == 'BLOB' || datatype_vvvvwbk == 'TINYBLOB' || datatype_vvvvwbk == 'MEDIUMBLOB' || datatype_vvvvwbk == 'LONGBLOB') { return true; } @@ -704,10 +620,10 @@ function store_vvvvwbk_SomeFunc(store_vvvvwbk) } // the vvvvwbk Some function -function datatype_vvvvwbk_SomeFunc(datatype_vvvvwbk) +function has_defaults_vvvvwbk_SomeFunc(has_defaults_vvvvwbk) { // set the function logic - if (datatype_vvvvwbk == 'CHAR' || datatype_vvvvwbk == 'VARCHAR' || datatype_vvvvwbk == 'TEXT' || datatype_vvvvwbk == 'MEDIUMTEXT' || datatype_vvvvwbk == 'LONGTEXT' || datatype_vvvvwbk == 'BLOB' || datatype_vvvvwbk == 'TINYBLOB' || datatype_vvvvwbk == 'MEDIUMBLOB' || datatype_vvvvwbk == 'LONGBLOB') + if (has_defaults_vvvvwbk == 1) { return true; } @@ -715,53 +631,137 @@ function datatype_vvvvwbk_SomeFunc(datatype_vvvvwbk) } // the vvvvwbl function -function vvvvwbl(has_defaults_vvvvwbl) +function vvvvwbl(has_defaults_vvvvwbl,store_vvvvwbl,datatype_vvvvwbl) +{ + if (isSet(has_defaults_vvvvwbl) && has_defaults_vvvvwbl.constructor !== Array) + { + var temp_vvvvwbl = has_defaults_vvvvwbl; + var has_defaults_vvvvwbl = []; + has_defaults_vvvvwbl.push(temp_vvvvwbl); + } + else if (!isSet(has_defaults_vvvvwbl)) + { + var has_defaults_vvvvwbl = []; + } + var has_defaults = has_defaults_vvvvwbl.some(has_defaults_vvvvwbl_SomeFunc); + + if (isSet(store_vvvvwbl) && store_vvvvwbl.constructor !== Array) + { + var temp_vvvvwbl = store_vvvvwbl; + var store_vvvvwbl = []; + store_vvvvwbl.push(temp_vvvvwbl); + } + else if (!isSet(store_vvvvwbl)) + { + var store_vvvvwbl = []; + } + var store = store_vvvvwbl.some(store_vvvvwbl_SomeFunc); + + if (isSet(datatype_vvvvwbl) && datatype_vvvvwbl.constructor !== Array) + { + var temp_vvvvwbl = datatype_vvvvwbl; + var datatype_vvvvwbl = []; + datatype_vvvvwbl.push(temp_vvvvwbl); + } + else if (!isSet(datatype_vvvvwbl)) + { + var datatype_vvvvwbl = []; + } + var datatype = datatype_vvvvwbl.some(datatype_vvvvwbl_SomeFunc); + + + // set this function logic + if (has_defaults && store && datatype) + { + jQuery('.note_whmcs_encryption').closest('.control-group').show(); + } + else + { + jQuery('.note_whmcs_encryption').closest('.control-group').hide(); + } +} + +// the vvvvwbl Some function +function has_defaults_vvvvwbl_SomeFunc(has_defaults_vvvvwbl) { // set the function logic if (has_defaults_vvvvwbl == 1) + { + return true; + } + return false; +} + +// the vvvvwbl Some function +function store_vvvvwbl_SomeFunc(store_vvvvwbl) +{ + // set the function logic + if (store_vvvvwbl == 4) + { + return true; + } + return false; +} + +// the vvvvwbl Some function +function datatype_vvvvwbl_SomeFunc(datatype_vvvvwbl) +{ + // set the function logic + if (datatype_vvvvwbl == 'CHAR' || datatype_vvvvwbl == 'VARCHAR' || datatype_vvvvwbl == 'TEXT' || datatype_vvvvwbl == 'MEDIUMTEXT' || datatype_vvvvwbl == 'LONGTEXT' || datatype_vvvvwbl == 'BLOB' || datatype_vvvvwbl == 'TINYBLOB' || datatype_vvvvwbl == 'MEDIUMBLOB' || datatype_vvvvwbl == 'LONGBLOB') + { + return true; + } + return false; +} + +// the vvvvwbm function +function vvvvwbm(has_defaults_vvvvwbm) +{ + // set the function logic + if (has_defaults_vvvvwbm == 1) { jQuery('#jform_datatype').closest('.control-group').show(); // add required attribute to datatype field - if (jform_vvvvwblwak_required) + if (jform_vvvvwbmwan_required) { updateFieldRequired('datatype',0); jQuery('#jform_datatype').prop('required','required'); jQuery('#jform_datatype').attr('aria-required',true); jQuery('#jform_datatype').addClass('required'); - jform_vvvvwblwak_required = false; + jform_vvvvwbmwan_required = false; } jQuery('#jform_null_switch').closest('.control-group').show(); // add required attribute to null_switch field - if (jform_vvvvwblwal_required) + if (jform_vvvvwbmwao_required) { updateFieldRequired('null_switch',0); jQuery('#jform_null_switch').prop('required','required'); jQuery('#jform_null_switch').attr('aria-required',true); jQuery('#jform_null_switch').addClass('required'); - jform_vvvvwblwal_required = false; + jform_vvvvwbmwao_required = false; } } else { jQuery('#jform_datatype').closest('.control-group').hide(); // remove required attribute from datatype field - if (!jform_vvvvwblwak_required) + if (!jform_vvvvwbmwan_required) { updateFieldRequired('datatype',1); jQuery('#jform_datatype').removeAttr('required'); jQuery('#jform_datatype').removeAttr('aria-required'); jQuery('#jform_datatype').removeClass('required'); - jform_vvvvwblwak_required = true; + jform_vvvvwbmwan_required = true; } jQuery('#jform_null_switch').closest('.control-group').hide(); // remove required attribute from null_switch field - if (!jform_vvvvwblwal_required) + if (!jform_vvvvwbmwao_required) { updateFieldRequired('null_switch',1); jQuery('#jform_null_switch').removeAttr('required'); jQuery('#jform_null_switch').removeAttr('aria-required'); jQuery('#jform_null_switch').removeClass('required'); - jform_vvvvwblwal_required = true; + jform_vvvvwbmwao_required = true; } } } diff --git a/admin/models/forms/help_document.js b/admin/models/forms/help_document.js index 6957be98c..00eb01004 100644 --- a/admin/models/forms/help_document.js +++ b/admin/models/forms/help_document.js @@ -9,24 +9,21 @@ */ // Some Global Values -jform_vvvvwbwwax_required = false; -jform_vvvvwbxway_required = false; -jform_vvvvwbywaz_required = false; -jform_vvvvwbzwba_required = false; -jform_vvvvwcawbb_required = false; -jform_vvvvwcbwbc_required = false; +jform_vvvvwbxwba_required = false; +jform_vvvvwbywbb_required = false; +jform_vvvvwbzwbc_required = false; +jform_vvvvwcawbd_required = false; +jform_vvvvwcbwbe_required = false; +jform_vvvvwccwbf_required = false; // Initial Script jQuery(document).ready(function() { - var location_vvvvwbw = jQuery("#jform_location input[type='radio']:checked").val(); - vvvvwbw(location_vvvvwbw); - var location_vvvvwbx = jQuery("#jform_location input[type='radio']:checked").val(); vvvvwbx(location_vvvvwbx); - var type_vvvvwby = jQuery("#jform_type").val(); - vvvvwby(type_vvvvwby); + var location_vvvvwby = jQuery("#jform_location input[type='radio']:checked").val(); + vvvvwby(location_vvvvwby); var type_vvvvwbz = jQuery("#jform_type").val(); vvvvwbz(type_vvvvwbz); @@ -34,130 +31,77 @@ jQuery(document).ready(function() var type_vvvvwca = jQuery("#jform_type").val(); vvvvwca(type_vvvvwca); - var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val(); - vvvvwcb(target_vvvvwcb); + var type_vvvvwcb = jQuery("#jform_type").val(); + vvvvwcb(type_vvvvwcb); + + var target_vvvvwcc = jQuery("#jform_target input[type='radio']:checked").val(); + vvvvwcc(target_vvvvwcc); }); -// the vvvvwbw function -function vvvvwbw(location_vvvvwbw) +// the vvvvwbx function +function vvvvwbx(location_vvvvwbx) { // set the function logic - if (location_vvvvwbw == 1) + if (location_vvvvwbx == 1) { jQuery('#jform_admin_view').closest('.control-group').show(); // add required attribute to admin_view field - if (jform_vvvvwbwwax_required) + if (jform_vvvvwbxwba_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_vvvvwbwwax_required = false; + jform_vvvvwbxwba_required = false; } } else { jQuery('#jform_admin_view').closest('.control-group').hide(); // remove required attribute from admin_view field - if (!jform_vvvvwbwwax_required) + if (!jform_vvvvwbxwba_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_vvvvwbwwax_required = true; + jform_vvvvwbxwba_required = true; } } } -// the vvvvwbx function -function vvvvwbx(location_vvvvwbx) +// the vvvvwby function +function vvvvwby(location_vvvvwby) { // set the function logic - if (location_vvvvwbx == 2) + if (location_vvvvwby == 2) { jQuery('#jform_site_view').closest('.control-group').show(); // add required attribute to site_view field - if (jform_vvvvwbxway_required) + if (jform_vvvvwbywbb_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_vvvvwbxway_required = false; + jform_vvvvwbywbb_required = false; } } else { jQuery('#jform_site_view').closest('.control-group').hide(); // remove required attribute from site_view field - if (!jform_vvvvwbxway_required) + if (!jform_vvvvwbywbb_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_vvvvwbxway_required = true; + jform_vvvvwbywbb_required = true; } } } -// the vvvvwby function -function vvvvwby(type_vvvvwby) -{ - if (isSet(type_vvvvwby) && type_vvvvwby.constructor !== Array) - { - var temp_vvvvwby = type_vvvvwby; - var type_vvvvwby = []; - type_vvvvwby.push(temp_vvvvwby); - } - else if (!isSet(type_vvvvwby)) - { - var type_vvvvwby = []; - } - var type = type_vvvvwby.some(type_vvvvwby_SomeFunc); - - - // set this function logic - if (type) - { - jQuery('#jform_url').closest('.control-group').show(); - // add required attribute to url field - if (jform_vvvvwbywaz_required) - { - updateFieldRequired('url',0); - jQuery('#jform_url').prop('required','required'); - jQuery('#jform_url').attr('aria-required',true); - jQuery('#jform_url').addClass('required'); - jform_vvvvwbywaz_required = false; - } - } - else - { - jQuery('#jform_url').closest('.control-group').hide(); - // remove required attribute from url field - if (!jform_vvvvwbywaz_required) - { - updateFieldRequired('url',1); - jQuery('#jform_url').removeAttr('required'); - jQuery('#jform_url').removeAttr('aria-required'); - jQuery('#jform_url').removeClass('required'); - jform_vvvvwbywaz_required = true; - } - } -} - -// the vvvvwby Some function -function type_vvvvwby_SomeFunc(type_vvvvwby) -{ - // set the function logic - if (type_vvvvwby == 3) - { - return true; - } - return false; -} - // the vvvvwbz function function vvvvwbz(type_vvvvwbz) { @@ -177,28 +121,28 @@ function vvvvwbz(type_vvvvwbz) // set this function logic if (type) { - jQuery('#jform_article').closest('.control-group').show(); - // add required attribute to article field - if (jform_vvvvwbzwba_required) + jQuery('#jform_url').closest('.control-group').show(); + // add required attribute to url field + if (jform_vvvvwbzwbc_required) { - updateFieldRequired('article',0); - jQuery('#jform_article').prop('required','required'); - jQuery('#jform_article').attr('aria-required',true); - jQuery('#jform_article').addClass('required'); - jform_vvvvwbzwba_required = false; + updateFieldRequired('url',0); + jQuery('#jform_url').prop('required','required'); + jQuery('#jform_url').attr('aria-required',true); + jQuery('#jform_url').addClass('required'); + jform_vvvvwbzwbc_required = false; } } else { - jQuery('#jform_article').closest('.control-group').hide(); - // remove required attribute from article field - if (!jform_vvvvwbzwba_required) + jQuery('#jform_url').closest('.control-group').hide(); + // remove required attribute from url field + if (!jform_vvvvwbzwbc_required) { - updateFieldRequired('article',1); - jQuery('#jform_article').removeAttr('required'); - jQuery('#jform_article').removeAttr('aria-required'); - jQuery('#jform_article').removeClass('required'); - jform_vvvvwbzwba_required = true; + updateFieldRequired('url',1); + jQuery('#jform_url').removeAttr('required'); + jQuery('#jform_url').removeAttr('aria-required'); + jQuery('#jform_url').removeClass('required'); + jform_vvvvwbzwbc_required = true; } } } @@ -207,7 +151,7 @@ function vvvvwbz(type_vvvvwbz) function type_vvvvwbz_SomeFunc(type_vvvvwbz) { // set the function logic - if (type_vvvvwbz == 1) + if (type_vvvvwbz == 3) { return true; } @@ -233,28 +177,28 @@ function vvvvwca(type_vvvvwca) // set this function logic if (type) { - jQuery('#jform_content-lbl').closest('.control-group').show(); - // add required attribute to content field - if (jform_vvvvwcawbb_required) + jQuery('#jform_article').closest('.control-group').show(); + // add required attribute to article field + if (jform_vvvvwcawbd_required) { - updateFieldRequired('content',0); - jQuery('#jform_content').prop('required','required'); - jQuery('#jform_content').attr('aria-required',true); - jQuery('#jform_content').addClass('required'); - jform_vvvvwcawbb_required = false; + updateFieldRequired('article',0); + jQuery('#jform_article').prop('required','required'); + jQuery('#jform_article').attr('aria-required',true); + jQuery('#jform_article').addClass('required'); + jform_vvvvwcawbd_required = false; } } else { - jQuery('#jform_content-lbl').closest('.control-group').hide(); - // remove required attribute from content field - if (!jform_vvvvwcawbb_required) + jQuery('#jform_article').closest('.control-group').hide(); + // remove required attribute from article field + if (!jform_vvvvwcawbd_required) { - updateFieldRequired('content',1); - jQuery('#jform_content').removeAttr('required'); - jQuery('#jform_content').removeAttr('aria-required'); - jQuery('#jform_content').removeClass('required'); - jform_vvvvwcawbb_required = true; + updateFieldRequired('article',1); + jQuery('#jform_article').removeAttr('required'); + jQuery('#jform_article').removeAttr('aria-required'); + jQuery('#jform_article').removeClass('required'); + jform_vvvvwcawbd_required = true; } } } @@ -263,7 +207,7 @@ function vvvvwca(type_vvvvwca) function type_vvvvwca_SomeFunc(type_vvvvwca) { // set the function logic - if (type_vvvvwca == 2) + if (type_vvvvwca == 1) { return true; } @@ -271,33 +215,89 @@ function type_vvvvwca_SomeFunc(type_vvvvwca) } // the vvvvwcb function -function vvvvwcb(target_vvvvwcb) +function vvvvwcb(type_vvvvwcb) +{ + if (isSet(type_vvvvwcb) && type_vvvvwcb.constructor !== Array) + { + var temp_vvvvwcb = type_vvvvwcb; + var type_vvvvwcb = []; + type_vvvvwcb.push(temp_vvvvwcb); + } + else if (!isSet(type_vvvvwcb)) + { + var type_vvvvwcb = []; + } + var type = type_vvvvwcb.some(type_vvvvwcb_SomeFunc); + + + // set this function logic + if (type) + { + jQuery('#jform_content-lbl').closest('.control-group').show(); + // add required attribute to content field + if (jform_vvvvwcbwbe_required) + { + updateFieldRequired('content',0); + jQuery('#jform_content').prop('required','required'); + jQuery('#jform_content').attr('aria-required',true); + jQuery('#jform_content').addClass('required'); + jform_vvvvwcbwbe_required = false; + } + } + else + { + jQuery('#jform_content-lbl').closest('.control-group').hide(); + // remove required attribute from content field + if (!jform_vvvvwcbwbe_required) + { + updateFieldRequired('content',1); + jQuery('#jform_content').removeAttr('required'); + jQuery('#jform_content').removeAttr('aria-required'); + jQuery('#jform_content').removeClass('required'); + jform_vvvvwcbwbe_required = true; + } + } +} + +// the vvvvwcb Some function +function type_vvvvwcb_SomeFunc(type_vvvvwcb) { // set the function logic - if (target_vvvvwcb == 1) + if (type_vvvvwcb == 2) + { + return true; + } + return false; +} + +// the vvvvwcc function +function vvvvwcc(target_vvvvwcc) +{ + // set the function logic + if (target_vvvvwcc == 1) { jQuery('#jform_groups').closest('.control-group').show(); // add required attribute to groups field - if (jform_vvvvwcbwbc_required) + if (jform_vvvvwccwbf_required) { updateFieldRequired('groups',0); jQuery('#jform_groups').prop('required','required'); jQuery('#jform_groups').attr('aria-required',true); jQuery('#jform_groups').addClass('required'); - jform_vvvvwcbwbc_required = false; + jform_vvvvwccwbf_required = false; } } else { jQuery('#jform_groups').closest('.control-group').hide(); // remove required attribute from groups field - if (!jform_vvvvwcbwbc_required) + if (!jform_vvvvwccwbf_required) { updateFieldRequired('groups',1); jQuery('#jform_groups').removeAttr('required'); jQuery('#jform_groups').removeAttr('aria-required'); jQuery('#jform_groups').removeClass('required'); - jform_vvvvwcbwbc_required = true; + jform_vvvvwccwbf_required = true; } } } diff --git a/admin/models/forms/joomla_component.js b/admin/models/forms/joomla_component.js index 4c08f61cb..e0b813187 100644 --- a/admin/models/forms/joomla_component.js +++ b/admin/models/forms/joomla_component.js @@ -28,6 +28,9 @@ jform_vvvvvwovwk_required = false; jform_vvvvvwpvwl_required = false; jform_vvvvvwwvwm_required = false; jform_vvvvvwxvwn_required = false; +jform_vvvvvxavwo_required = false; +jform_vvvvvxavwp_required = false; +jform_vvvvvxavwq_required = false; // Initial Script jQuery(document).ready(function() @@ -122,6 +125,9 @@ jQuery(document).ready(function() var dashboard_type_vvvvvwz = jQuery("#jform_dashboard_type input[type='radio']:checked").val(); vvvvvwz(dashboard_type_vvvvvwz); + + var translation_tool_vvvvvxa = jQuery("#jform_translation_tool").val(); + vvvvvxa(translation_tool_vvvvvxa); }); // the vvvvvvv function @@ -886,6 +892,106 @@ function vvvvvwz(dashboard_type_vvvvvwz) } } +// the vvvvvxa function +function vvvvvxa(translation_tool_vvvvvxa) +{ + if (isSet(translation_tool_vvvvvxa) && translation_tool_vvvvvxa.constructor !== Array) + { + var temp_vvvvvxa = translation_tool_vvvvvxa; + var translation_tool_vvvvvxa = []; + translation_tool_vvvvvxa.push(temp_vvvvvxa); + } + else if (!isSet(translation_tool_vvvvvxa)) + { + var translation_tool_vvvvvxa = []; + } + var translation_tool = translation_tool_vvvvvxa.some(translation_tool_vvvvvxa_SomeFunc); + + + // set this function logic + if (translation_tool) + { + jQuery('#jform_crowdin_account_api_key').closest('.control-group').show(); + jQuery('.note_crowdin').closest('.control-group').show(); + jQuery('#jform_crowdin_project_api_key').closest('.control-group').show(); + // add required attribute to crowdin_project_api_key field + if (jform_vvvvvxavwo_required) + { + updateFieldRequired('crowdin_project_api_key',0); + jQuery('#jform_crowdin_project_api_key').prop('required','required'); + jQuery('#jform_crowdin_project_api_key').attr('aria-required',true); + jQuery('#jform_crowdin_project_api_key').addClass('required'); + jform_vvvvvxavwo_required = false; + } + jQuery('#jform_crowdin_project_identifier').closest('.control-group').show(); + // add required attribute to crowdin_project_identifier field + if (jform_vvvvvxavwp_required) + { + updateFieldRequired('crowdin_project_identifier',0); + jQuery('#jform_crowdin_project_identifier').prop('required','required'); + jQuery('#jform_crowdin_project_identifier').attr('aria-required',true); + jQuery('#jform_crowdin_project_identifier').addClass('required'); + jform_vvvvvxavwp_required = false; + } + jQuery('#jform_crowdin_username').closest('.control-group').show(); + // add required attribute to crowdin_username field + if (jform_vvvvvxavwq_required) + { + updateFieldRequired('crowdin_username',0); + jQuery('#jform_crowdin_username').prop('required','required'); + jQuery('#jform_crowdin_username').attr('aria-required',true); + jQuery('#jform_crowdin_username').addClass('required'); + jform_vvvvvxavwq_required = false; + } + } + else + { + jQuery('#jform_crowdin_account_api_key').closest('.control-group').hide(); + jQuery('.note_crowdin').closest('.control-group').hide(); + jQuery('#jform_crowdin_project_api_key').closest('.control-group').hide(); + // remove required attribute from crowdin_project_api_key field + if (!jform_vvvvvxavwo_required) + { + updateFieldRequired('crowdin_project_api_key',1); + jQuery('#jform_crowdin_project_api_key').removeAttr('required'); + jQuery('#jform_crowdin_project_api_key').removeAttr('aria-required'); + jQuery('#jform_crowdin_project_api_key').removeClass('required'); + jform_vvvvvxavwo_required = true; + } + jQuery('#jform_crowdin_project_identifier').closest('.control-group').hide(); + // remove required attribute from crowdin_project_identifier field + if (!jform_vvvvvxavwp_required) + { + updateFieldRequired('crowdin_project_identifier',1); + jQuery('#jform_crowdin_project_identifier').removeAttr('required'); + jQuery('#jform_crowdin_project_identifier').removeAttr('aria-required'); + jQuery('#jform_crowdin_project_identifier').removeClass('required'); + jform_vvvvvxavwp_required = true; + } + jQuery('#jform_crowdin_username').closest('.control-group').hide(); + // remove required attribute from crowdin_username field + if (!jform_vvvvvxavwq_required) + { + updateFieldRequired('crowdin_username',1); + jQuery('#jform_crowdin_username').removeAttr('required'); + jQuery('#jform_crowdin_username').removeAttr('aria-required'); + jQuery('#jform_crowdin_username').removeClass('required'); + jform_vvvvvxavwq_required = true; + } + } +} + +// the vvvvvxa Some function +function translation_tool_vvvvvxa_SomeFunc(translation_tool_vvvvvxa) +{ + // set the function logic + if (translation_tool_vvvvvxa == 1) + { + return true; + } + return false; +} + // update required fields function updateFieldRequired(name,status) { @@ -967,8 +1073,54 @@ jQuery(document).ready(function() // check and load all the customcode edit buttons setTimeout(getEditCustomCodeButtons, 400); + + // get crowdin detail if set + setTimeout(getTranslationToolDetails, 600); }); +function getTranslationToolDetails(){ + // get the translation tool selection + var tool = jQuery("#jform_translation_tool").val(); + // trigger Crowdin + if (tool == 1) { + // get the identifier + var identifier = jQuery("#jform_crowdin_project_identifier").val(); + // get the key + var key = jQuery("#jform_crowdin_project_api_key").val(); + // query server for details + getCrowdinDetails_server(identifier, key).done(function(result) { + if (result.error){ + jQuery('#crowdin_information_box').show(); + jQuery('#crowdin_error_box').show(); + jQuery('#crowdin_error_box').html(result.error); + jQuery('#crowdin_success_box').hide(); + } else if(result.html) { + jQuery('#crowdin_success_box').show(); + jQuery('#crowdin_success_box').html(result.html); + jQuery('#crowdin_error_box').hide(); + jQuery('#crowdin_information_box').hide(); + } else { + jQuery('#crowdin_information_box').show(); + jQuery('#crowdin_success_box').hide(); + } + }); + } +} + +function getCrowdinDetails_server(identifier, key){ + var getUrl = "index.php?option=com_componentbuilder&task=ajax.getCrowdinDetails&format=json&raw=true&vdm="+vastDevMod; + if(token.length > 0 && identifier.length > 0 && key.length > 0){ + var request = 'token='+token+'&identifier='+identifier+'&key='+key; + } + return jQuery.ajax({ + type: 'GET', + url: getUrl, + dataType: 'json', + data: request, + jsonp: false + }); +} + function getAjaxDisplay(type){ getAjaxDisplay_server(type).done(function(result) { if(result){ diff --git a/admin/models/forms/joomla_component.xml b/admin/models/forms/joomla_component.xml index 05ddcd3f9..c9694d13e 100644 --- a/admin/models/forms/joomla_component.xml +++ b/admin/models/forms/joomla_component.xml @@ -162,12 +162,12 @@ message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPANYNAME_MESSAGE" hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPANYNAME_HINT" /> - + - - - - - - - - COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO - + - + + + + + - - + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO - - + + - - + + - + - + + + + + + + + + + + + + + + + - + - - - - + type="text" + name="component_version" + label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_LABEL" + size="40" + maxlength="50" + default="1.0.0" + description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_DESCRIPTION" + class="text_area" + required="true" + filter="CMD" + message="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_MESSAGE" + hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COMPONENT_VERSION_HINT" + /> + + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO - + - - - - - - + type="editor" + name="php_admin_event" + label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_LABEL" + description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_DESCRIPTION" + width="100%" + height="450px" + cols="15" + rows="30" + buttons="no" + syntax="php" + editor="codemirror|none" + filter="raw" + required="true" + validate="code" + /> COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_USED_IN_CUSTOM_CODE - + - + - - + + - + - - + + - + - - - - - - - - - - - - - - + COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO - - - - + + + + - - + + - + @@ -1381,10 +1377,87 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + setState('action', 'import'); - $app = JFactory::getApplication(); - $session = JFactory::getSession(); - $package = null; - $continue = false; + $app = JFactory::getApplication(); + $session = JFactory::getSession(); + $package = null; + $continue = false; // get import type $this->getType = $app->input->getString('gettype', NULL); // get import type - $this->dataType = $session->get('dataType_VDM_IMPORTINTO', NULL); + $this->dataType = $session->get('dataType_VDM_IMPORTINTO', NULL); if ($package === null) { @@ -447,68 +447,87 @@ class ComponentbuilderModelImport_language_translations extends JModelLegacy * @return boolean false on failure * **/ - protected function save($data,$table) + protected function save($data, $table) { // import the data if there is any if(ComponentbuilderHelper::checkArray($data['array'])) { // get user object - $user = JFactory::getUser(); + $user = JFactory::getUser(); // remove header if it has headers - $id_key = $data['target_headers']['id']; + $id_key = $data['target_headers']['id']; if (isset($data['target_headers']['Source'])) { - $source_key = $data['target_headers']['Source']; + $source_key = $data['target_headers']['Source']; } else { - $source_key = $data['target_headers']['English']; + $source_key = $data['target_headers']['English']; } // get the first array set $firstSet = reset($data['array']); - // check if first array is a header array and remove if true if($firstSet[$id_key] == 'id' || $firstSet[$source_key] == 'Source' || $firstSet[$source_key] == 'English') { array_shift($data['array']); } - // make sure there is still values in array and that it was not only headers if(ComponentbuilderHelper::checkArray($data['array']) && $user->authorise($table.'.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder')) { // set target. - $target = array_flip($data['target_headers']); + $target = array_flip($data['target_headers']); // Get a db connection. $db = JFactory::getDbo(); // set some defaults - $todayDate = JFactory::getDate()->toSql(); + $todayDate = JFactory::getDate()->toSql(); // get global action permissions - $canDo = ComponentbuilderHelper::getActions($table); - $canEdit = $canDo->get('core.edit'); - // proses the data + $canDo = ComponentbuilderHelper::getActions($table); + $canEdit = $canDo->get('core.edit'); + $canCreate = $canDo->get('core.create'); + $canState = $canDo->get('core.edit.state'); + // get languages + $languages = ComponentbuilderHelper::getVars('language', 1, 'published', 'langtag'); + // process the data foreach($data['array'] as $row) { $found = false; - if (isset($row[$id_key]) && is_numeric($row[$id_key]) && $row[$id_key] > 0) + $has_id = false; + if ($canEdit && isset($row[$source_key]) && ComponentbuilderHelper::checkString($row[$source_key])) { // raw items import & update! $query = $db->getQuery(true); - $query - ->select($db->quoteName(array('version', 'translation'))) - ->from($db->quoteName('#__componentbuilder_'.$table)) - ->where($db->quoteName('id') . ' = '. $db->quote($row[$id_key])) - ->where($db->quoteName('source') . ' = '. $db->quote($row[$source_key])); + $query->select($db->quoteName(array('id', 'version', 'translation'))); + $query->from($db->quoteName('#__componentbuilder_'.$table)); + if (isset($row[$id_key]) && is_numeric($row[$id_key]) && $row[$id_key] > 0) + { + $query->where($db->quoteName('id') . ' = '. $db->quote($row[$id_key])); + $has_id = true; + } + $query->where($db->quoteName('source') . ' = '. $db->quote($row[$source_key])); // Reset the query using our newly populated query object. $db->setQuery($query); $db->execute(); $found = $db->getNumRows(); + // check one more time, just with source + if(!$found && $has_id) + { + // raw items import & update! + $query = $db->getQuery(true); + $query->select($db->quoteName(array('id', 'version', 'translation'))); + $query->from($db->quoteName('#__componentbuilder_'.$table)); + $query->where($db->quoteName('source') . ' = '. $db->quote($row[$source_key])); + // Reset the query using our newly populated query object. + $db->setQuery($query); + $db->execute(); + $found = $db->getNumRows(); + } } - + // check if we found the string if($found && $canEdit) { // update item - $id = $row[$id_key]; - $item = $db->loadObject(); + $item = $db->loadObject(); + $id = $item->id; // load previous translation strings if (ComponentbuilderHelper::checkJson($item->translation)) { @@ -522,16 +541,14 @@ class ComponentbuilderModelImport_language_translations extends JModelLegacy $counter = 0; $pre = false; } - // get languages - $languages = ComponentbuilderHelper::getVars('language', 1, 'published', 'langtag'); // reset all buckets - $query = $db->getQuery(true); - $fields = array(); + $query = $db->getQuery(true); + $fields = array(); // Fields to update. foreach($row as $key => $cell) { // ignore column - if ('IGNORE' === $target[$key] || 'modified_by' === $target[$key] || 'modified' === $target[$key] || 'Source' === $target[$key] || 'English' === $target[$key] ) + if ('IGNORE' === $target[$key] || 'modified_by' === $target[$key] || 'modified' === $target[$key] || 'created_by' === $target[$key] || 'created' === $target[$key] || 'source' === strtolower($target[$key]) || 'english' === strtolower($target[$key])) { continue; } @@ -589,18 +606,95 @@ class ComponentbuilderModelImport_language_translations extends JModelLegacy { $fields[] = $db->quoteName('translation') . ' = ' . $db->quote(json_encode($translations, JSON_FORCE_OBJECT)); // load the defaults - $fields[] = $db->quoteName('modified_by') . ' = ' . $db->quote($user->id); + $fields[] = $db->quoteName('modified_by') . ' = ' . (int) $user->id; $fields[] = $db->quoteName('modified') . ' = ' . $db->quote($todayDate); // Conditions for which records should be updated. $conditions = array( $db->quoteName('id') . ' = ' . $id ); - + // update the local translation $query->update($db->quoteName('#__componentbuilder_'.$table))->set($fields)->where($conditions); $db->setQuery($query); $db->execute(); } } + elseif (!$found && $canCreate) + { + $translations = array(); + $counter = 0; + // reset all buckets + $query = $db->getQuery(true); + $values = array(); + $columns = array(); + // Fields to update. + foreach($row as $key => $cell) + { + // ignore column + if ('IGNORE' === $target[$key] || 'modified_by' === $target[$key] || 'modified' === $target[$key] || 'created_by' === $target[$key] || 'created' === $target[$key] || 'version' == $target[$key]) + { + continue; + } + // verify publish authority + if ('published' == $target[$key] && !$canState) + { + continue; + } + // set to translations + if(in_array($target[$key], $languages)) + { + // only add if it has a string + if (ComponentbuilderHelper::checkString($cell)) + { + $translations['translation'.$counter] = array('language' => $target[$key], 'translation' => $cell); + $counter++; + } + } + // load the source + elseif ('source' === strtolower($target[$key]) || 'english' === strtolower($target[$key])) + { + $columns[] = 'source'; + $values[] = $db->quote($cell); + } + // set to update array + elseif(in_array($key, $data['target_headers']) && is_numeric($cell)) + { + $columns[] = $target[$key]; + $values[] = $cell; + } + elseif(in_array($key, $data['target_headers']) && is_string($cell)) + { + $columns[] = $target[$key]; + $values[] = $db->quote($cell); + } + elseif(in_array($key, $data['target_headers']) && is_null($cell)) + { + // if import data is null then set empty + $columns[] = $target[$key]; + $values[] = ''; + } + } + // set the translation + if (ComponentbuilderHelper::checkArray($translations)) + { + $columns[] = 'translation'; + $values[] = $db->quote(json_encode($translations, JSON_FORCE_OBJECT)); + } + // check if we have values + if (ComponentbuilderHelper::checkArray($values)) + { + // load the defaults + $columns[] = 'created_by'; + $values[] = (int) $user->id; + $columns[] = 'created'; + $values[] = $db->quote($todayDate); + $columns[] = 'version'; + $values[] = 1; + // update the local translation + $query->insert($db->quoteName('#__componentbuilder_'.$table))->columns($db->quoteName($columns))->values(implode(',', $values)); + $db->setQuery($query); + $db->execute(); + } + } } return true; } diff --git a/admin/models/joomla_component.php b/admin/models/joomla_component.php index 2d167bddb..5900dd346 100644 --- a/admin/models/joomla_component.php +++ b/admin/models/joomla_component.php @@ -86,40 +86,16 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $item->metadata = $registry->toArray(); } - if (!empty($item->php_helper_admin)) - { - // base64 Decode php_helper_admin. - $item->php_helper_admin = base64_decode($item->php_helper_admin); - } - - if (!empty($item->sql)) - { - // base64 Decode sql. - $item->sql = base64_decode($item->sql); - } - - if (!empty($item->php_preflight_update)) - { - // base64 Decode php_preflight_update. - $item->php_preflight_update = base64_decode($item->php_preflight_update); - } - - if (!empty($item->css_site)) - { - // base64 Decode css_site. - $item->css_site = base64_decode($item->css_site); - } - if (!empty($item->php_helper_site)) { // base64 Decode php_helper_site. $item->php_helper_site = base64_decode($item->php_helper_site); } - if (!empty($item->javascript)) + if (!empty($item->readme)) { - // base64 Decode javascript. - $item->javascript = base64_decode($item->javascript); + // base64 Decode readme. + $item->readme = base64_decode($item->readme); } if (!empty($item->php_postflight_update)) @@ -128,10 +104,34 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $item->php_postflight_update = base64_decode($item->php_postflight_update); } - if (!empty($item->readme)) + if (!empty($item->javascript)) { - // base64 Decode readme. - $item->readme = base64_decode($item->readme); + // base64 Decode javascript. + $item->javascript = base64_decode($item->javascript); + } + + if (!empty($item->css_site)) + { + // base64 Decode css_site. + $item->css_site = base64_decode($item->css_site); + } + + if (!empty($item->php_preflight_update)) + { + // base64 Decode php_preflight_update. + $item->php_preflight_update = base64_decode($item->php_preflight_update); + } + + if (!empty($item->sql)) + { + // base64 Decode sql. + $item->sql = base64_decode($item->sql); + } + + if (!empty($item->php_helper_admin)) + { + // base64 Decode php_helper_admin. + $item->php_helper_admin = base64_decode($item->php_helper_admin); } if (!empty($item->php_helper_both)) @@ -193,18 +193,36 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin // Get the encryption object. $basic = new FOFEncryptAes($basickey); + if (!empty($item->crowdin_account_api_key) && $basickey && !is_numeric($item->crowdin_account_api_key) && $item->crowdin_account_api_key === base64_encode(base64_decode($item->crowdin_account_api_key, true))) + { + // basic decrypt data crowdin_account_api_key. + $item->crowdin_account_api_key = rtrim($basic->decryptString($item->crowdin_account_api_key), "\0"); + } + if (!empty($item->whmcs_key) && $basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true))) { // basic decrypt data whmcs_key. $item->whmcs_key = rtrim($basic->decryptString($item->whmcs_key), "\0"); } + if (!empty($item->crowdin_project_api_key) && $basickey && !is_numeric($item->crowdin_project_api_key) && $item->crowdin_project_api_key === base64_encode(base64_decode($item->crowdin_project_api_key, true))) + { + // basic decrypt data crowdin_project_api_key. + $item->crowdin_project_api_key = rtrim($basic->decryptString($item->crowdin_project_api_key), "\0"); + } + if (!empty($item->export_key) && $basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true))) { // basic decrypt data export_key. $item->export_key = rtrim($basic->decryptString($item->export_key), "\0"); } + if (!empty($item->crowdin_username) && $basickey && !is_numeric($item->crowdin_username) && $item->crowdin_username === base64_encode(base64_decode($item->crowdin_username, true))) + { + // basic decrypt data crowdin_username. + $item->crowdin_username = rtrim($basic->decryptString($item->crowdin_username), "\0"); + } + if (!empty($item->addcontributors)) { // Convert the addcontributors field to an array. @@ -627,6 +645,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin 'component_config' => 'joomla_component', 'component_dashboard' => 'joomla_component', 'component_files_folders' => 'joomla_component', + 'component_placeholders' => 'joomla_component', 'custom_code' => 'component' ); foreach($_tablesArray as $_updateTable => $_key) @@ -675,6 +694,7 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin 'component_config' => 'joomla_component', 'component_dashboard' => 'joomla_component', 'component_files_folders' => 'joomla_component', + 'component_placeholders' => 'joomla_component', 'custom_code' => 'component' ); foreach($_tablesArray as $_updateTable => $_key) @@ -1083,40 +1103,16 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $data['addcontributors'] = ''; } - // Set the php_helper_admin string to base64 string. - if (isset($data['php_helper_admin'])) - { - $data['php_helper_admin'] = base64_encode($data['php_helper_admin']); - } - - // Set the sql string to base64 string. - if (isset($data['sql'])) - { - $data['sql'] = base64_encode($data['sql']); - } - - // 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 css_site string to base64 string. - if (isset($data['css_site'])) - { - $data['css_site'] = base64_encode($data['css_site']); - } - // Set the php_helper_site string to base64 string. if (isset($data['php_helper_site'])) { $data['php_helper_site'] = base64_encode($data['php_helper_site']); } - // Set the javascript string to base64 string. - if (isset($data['javascript'])) + // Set the readme string to base64 string. + if (isset($data['readme'])) { - $data['javascript'] = base64_encode($data['javascript']); + $data['readme'] = base64_encode($data['readme']); } // Set the php_postflight_update string to base64 string. @@ -1125,10 +1121,34 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin $data['php_postflight_update'] = base64_encode($data['php_postflight_update']); } - // Set the readme string to base64 string. - if (isset($data['readme'])) + // Set the javascript string to base64 string. + if (isset($data['javascript'])) { - $data['readme'] = base64_encode($data['readme']); + $data['javascript'] = base64_encode($data['javascript']); + } + + // Set the css_site string to base64 string. + if (isset($data['css_site'])) + { + $data['css_site'] = base64_encode($data['css_site']); + } + + // Set the php_preflight_update string to base64 string. + if (isset($data['php_preflight_update'])) + { + $data['php_preflight_update'] = base64_encode($data['php_preflight_update']); + } + + // Set the sql string to base64 string. + if (isset($data['sql'])) + { + $data['sql'] = base64_encode($data['sql']); + } + + // Set the php_helper_admin string to base64 string. + if (isset($data['php_helper_admin'])) + { + $data['php_helper_admin'] = base64_encode($data['php_helper_admin']); } // Set the php_helper_both string to base64 string. @@ -1190,18 +1210,36 @@ class ComponentbuilderModelJoomla_component extends JModelAdmin // Get the encryption object $basic = new FOFEncryptAes($basickey); + // Encrypt data crowdin_account_api_key. + if (isset($data['crowdin_account_api_key']) && $basickey) + { + $data['crowdin_account_api_key'] = $basic->encryptString($data['crowdin_account_api_key']); + } + // Encrypt data whmcs_key. if (isset($data['whmcs_key']) && $basickey) { $data['whmcs_key'] = $basic->encryptString($data['whmcs_key']); } + // Encrypt data crowdin_project_api_key. + if (isset($data['crowdin_project_api_key']) && $basickey) + { + $data['crowdin_project_api_key'] = $basic->encryptString($data['crowdin_project_api_key']); + } + // Encrypt data export_key. if (isset($data['export_key']) && $basickey) { $data['export_key'] = $basic->encryptString($data['export_key']); } + // Encrypt data crowdin_username. + if (isset($data['crowdin_username']) && $basickey) + { + $data['crowdin_username'] = $basic->encryptString($data['crowdin_username']); + } + // we check if component should be build from sql file if (isset($data['buildcomp']) && 1 == $data['buildcomp']) { diff --git a/admin/models/joomla_components.php b/admin/models/joomla_components.php index ff3cf2fd7..707298c21 100644 --- a/admin/models/joomla_components.php +++ b/admin/models/joomla_components.php @@ -2084,35 +2084,40 @@ class ComponentbuilderModelJoomla_components extends JModelList continue; } - // decode php_helper_admin - $item->php_helper_admin = base64_decode($item->php_helper_admin); - // decode sql - $item->sql = base64_decode($item->sql); - // decode php_preflight_update - $item->php_preflight_update = base64_decode($item->php_preflight_update); - // decode css_site - $item->css_site = base64_decode($item->css_site); // decode php_helper_site $item->php_helper_site = base64_decode($item->php_helper_site); - // decode javascript - $item->javascript = base64_decode($item->javascript); - // decode php_postflight_update - $item->php_postflight_update = base64_decode($item->php_postflight_update); + if ($basickey && !is_numeric($item->crowdin_account_api_key) && $item->crowdin_account_api_key === base64_encode(base64_decode($item->crowdin_account_api_key, true))) + { + // decrypt crowdin_account_api_key + $item->crowdin_account_api_key = $basic->decryptString($item->crowdin_account_api_key); + } // decode readme $item->readme = base64_decode($item->readme); + // decode php_postflight_update + $item->php_postflight_update = base64_decode($item->php_postflight_update); + // decode javascript + $item->javascript = base64_decode($item->javascript); + // decode css_site + $item->css_site = base64_decode($item->css_site); + // decode php_preflight_update + $item->php_preflight_update = base64_decode($item->php_preflight_update); + // 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_both $item->php_helper_both = base64_decode($item->php_helper_both); // decode php_admin_event $item->php_admin_event = base64_decode($item->php_admin_event); + // decode php_site_event + $item->php_site_event = base64_decode($item->php_site_event); + // decode css_admin + $item->css_admin = base64_decode($item->css_admin); if ($basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true))) { // decrypt whmcs_key $item->whmcs_key = $basic->decryptString($item->whmcs_key); } - // decode php_site_event - $item->php_site_event = base64_decode($item->php_site_event); - // decode css_admin - $item->css_admin = base64_decode($item->css_admin); // decode php_preflight_install $item->php_preflight_install = base64_decode($item->php_preflight_install); // decode php_postflight_install @@ -2121,11 +2126,21 @@ class ComponentbuilderModelJoomla_components extends JModelList $item->php_method_uninstall = base64_decode($item->php_method_uninstall); // decode sql_uninstall $item->sql_uninstall = base64_decode($item->sql_uninstall); + if ($basickey && !is_numeric($item->crowdin_project_api_key) && $item->crowdin_project_api_key === base64_encode(base64_decode($item->crowdin_project_api_key, true))) + { + // decrypt crowdin_project_api_key + $item->crowdin_project_api_key = $basic->decryptString($item->crowdin_project_api_key); + } if ($basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true))) { // decrypt export_key $item->export_key = $basic->decryptString($item->export_key); } + if ($basickey && !is_numeric($item->crowdin_username) && $item->crowdin_username === base64_encode(base64_decode($item->crowdin_username, true))) + { + // decrypt crowdin_username + $item->crowdin_username = $basic->decryptString($item->crowdin_username); + } // decode buildcompsql $item->buildcompsql = base64_decode($item->buildcompsql); // unset the values we don't want exported. diff --git a/admin/models/server.php b/admin/models/server.php index 559b28af2..996a3b3d2 100644 --- a/admin/models/server.php +++ b/admin/models/server.php @@ -156,7 +156,7 @@ class ComponentbuilderModelServer extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getWawlinked_components() + public function getWazlinked_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 ba90fa588..01370c330 100644 --- a/admin/sql/install.mysql.utf8.sql +++ b/admin/sql/install.mysql.utf8.sql @@ -34,6 +34,10 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( `component_version` CHAR(64) NOT NULL DEFAULT '', `copyright` VARCHAR(255) NOT NULL DEFAULT '', `creatuserhelper` TINYINT(1) NOT NULL DEFAULT 0, + `crowdin_account_api_key` TEXT NOT NULL, + `crowdin_project_api_key` TEXT NOT NULL, + `crowdin_project_identifier` VARCHAR(255) NOT NULL DEFAULT '', + `crowdin_username` TEXT NOT NULL, `css_admin` TEXT NOT NULL, `css_site` TEXT NOT NULL, `dashboard` VARCHAR(64) NOT NULL DEFAULT '', @@ -72,6 +76,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( `sql_uninstall` MEDIUMTEXT NOT NULL, `system_name` VARCHAR(255) NOT NULL DEFAULT '', `toignore` TEXT NOT NULL, + `translation_tool` TINYINT(1) NOT NULL DEFAULT 0, `update_server` INT(11) NOT NULL DEFAULT 0, `update_server_target` TINYINT(1) NOT NULL DEFAULT 0, `update_server_url` VARCHAR(255) NOT NULL DEFAULT '', @@ -102,16 +107,14 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( KEY `idx_state` (`published`), KEY `idx_system_name` (`system_name`), KEY `idx_name_code` (`name_code`), - KEY `idx_add_email_helper` (`add_email_helper`), KEY `idx_debug_linenr` (`debug_linenr`), KEY `idx_mvc_versiondate` (`mvc_versiondate`), KEY `idx_add_placeholders` (`add_placeholders`), - KEY `idx_add_license` (`add_license`), - KEY `idx_adduikit` (`adduikit`), - KEY `idx_license_type` (`license_type`), KEY `idx_update_server_target` (`update_server_target`), + KEY `idx_add_email_helper` (`add_email_helper`), + KEY `idx_add_license` (`add_license`), + KEY `idx_license_type` (`license_type`), KEY `idx_add_update_server` (`add_update_server`), - KEY `idx_creatuserhelper` (`creatuserhelper`), KEY `idx_addfootable` (`addfootable`), KEY `idx_add_php_helper_both` (`add_php_helper_both`), KEY `idx_add_php_helper_admin` (`add_php_helper_admin`), @@ -132,7 +135,10 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` ( KEY `idx_add_sql_uninstall` (`add_sql_uninstall`), KEY `idx_addreadme` (`addreadme`), KEY `idx_emptycontributors` (`emptycontributors`), - KEY `idx_add_sales_server` (`add_sales_server`) + KEY `idx_add_sales_server` (`add_sales_server`), + KEY `idx_translation_tool` (`translation_tool`), + KEY `idx_creatuserhelper` (`creatuserhelper`), + KEY `idx_adduikit` (`adduikit`) ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC; CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` ( @@ -1686,7 +1692,8 @@ INSERT INTO `#__componentbuilder_fieldtype` (`id`, `catid`, `description`, `name (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, 3, '', 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, 13, '', 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\":\"unique\",\"example\":\"false\",\"adjustable\":\"1\",\"description\":\"(optional) Used in validation, to check if we should test for uniqueness, to insure that this email does not already belong to another user. Check line 99 in \\/libraries\\/src\\/Form\\/Rule\\/EmailRule.php\"},\"properties14\":{\"name\":\"field\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) used in validation of \\\"equals\\\" to link the field to match.\"},\"properties15\":{\"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.\"},\"properties16\":{\"name\":\"hint\",\"example\":\"your@email.com\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) The placeholder to display inside the text box.\"},\"properties17\":{\"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.\"},\"properties18\":{\"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+\"},\"properties19\":{\"name\":\"onchange\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) HTML equivalent attribute (javascript use)\"}}', 'Email form field type', '', 1, 6, '', 7), -(37, '', 'Provides a dropdown list of plugin options from the folder.', 'Plugins', '{\"properties0\":{\"name\":\"type\",\"example\":\"plugins\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be editors.\"},\"properties1\":{\"name\":\"name\",\"example\":\"editor\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select an editor\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) (not translatable) is the default value.\"},\"properties4\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the label.\"},\"properties5\":{\"name\":\"folder\",\"example\":\"editors\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) editors or captcha.\"},\"properties6\":{\"name\":\"filter\",\"example\":\"cmd\",\"adjustable\":\"1\",\"description\":\"(optional) allow the system to save certain html tags or raw data.\"},\"properties7\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Provides a dropdown list of plugin options from the folder.', '', 1, 6, '', 8); +(37, '', 'Provides a dropdown list of plugin options from the folder.', 'Plugins', '{\"properties0\":{\"name\":\"type\",\"example\":\"plugins\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be editors.\"},\"properties1\":{\"name\":\"name\",\"example\":\"editor\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the parameter.\"},\"properties2\":{\"name\":\"label\",\"example\":\"Select an editor\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties3\":{\"name\":\"default\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) (not translatable) is the default value.\"},\"properties4\":{\"name\":\"description\",\"example\":\"\",\"adjustable\":\"1\",\"translatable\":\"1\",\"description\":\"(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the label.\"},\"properties5\":{\"name\":\"folder\",\"example\":\"editors\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) editors or captcha.\"},\"properties6\":{\"name\":\"filter\",\"example\":\"cmd\",\"adjustable\":\"1\",\"description\":\"(optional) allow the system to save certain html tags or raw data.\"},\"properties7\":{\"name\":\"showon\",\"example\":\"\",\"adjustable\":\"1\",\"description\":\"(optional) show this field on the bases of the value in another field.\"}}', 'Provides a dropdown list of plugin options from the folder.', '', 1, 6, '', 8), +(38, '', 'Provides the use of a captcha plugin.', 'Captcha', '{\"properties0\":{\"name\":\"type\",\"example\":\"captcha\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be captcha.\"},\"properties3\":{\"name\":\"name\",\"example\":\"captcha\",\"adjustable\":\"1\",\"mandatory\":\"1\",\"description\":\"(mandatory) is the unique name of the field.\"},\"properties2\":{\"name\":\"validate\",\"example\":\"captcha\",\"mandatory\":\"1\",\"description\":\"(mandatory) must be captcha.\"},\"properties1\":{\"name\":\"label\",\"example\":\"Captcha\",\"mandatory\":\"1\",\"translatable\":\"1\",\"description\":\"(mandatory) (translatable) is the descriptive title of the field.\"},\"properties4\":{\"name\":\"description\",\"example\":\"We do not like spam, please show us you are human\",\"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\":\"namespace\",\"example\":\"componentbuilder\",\"description\":\"(optional) the component name seems to work\"}}', 'Captcha robot check.', '', 1, 2, '', 9); -- -- Dumping data for table `#__componentbuilder_language` diff --git a/admin/sql/updates/mysql/2.9.16.sql b/admin/sql/updates/mysql/2.9.16.sql new file mode 100644 index 000000000..2060dc874 --- /dev/null +++ b/admin/sql/updates/mysql/2.9.16.sql @@ -0,0 +1,9 @@ +ALTER TABLE `#__componentbuilder_joomla_component` ADD `crowdin_account_api_key` TEXT NOT NULL AFTER `creatuserhelper`; + +ALTER TABLE `#__componentbuilder_joomla_component` ADD `crowdin_project_api_key` TEXT NOT NULL AFTER `crowdin_account_api_key`; + +ALTER TABLE `#__componentbuilder_joomla_component` ADD `crowdin_project_identifier` VARCHAR(255) NOT NULL DEFAULT '' AFTER `crowdin_project_api_key`; + +ALTER TABLE `#__componentbuilder_joomla_component` ADD `crowdin_username` TEXT NOT NULL AFTER `crowdin_project_identifier`; + +ALTER TABLE `#__componentbuilder_joomla_component` ADD `translation_tool` TINYINT(1) NOT NULL DEFAULT 0 AFTER `toignore`; diff --git a/admin/views/admin_view/tmpl/edit.php b/admin/views/admin_view/tmpl/edit.php index 23a5fdfe6..5fcfeeae8 100644 --- a/admin/views/admin_view/tmpl/edit.php +++ b/admin/views/admin_view/tmpl/edit.php @@ -209,461 +209,446 @@ $componentParams = $this->params; // will be removed just use $this->params inst