Moves the Pro features into the Public version of JCB.
This commit is contained in:
parent
9e4a6e0c53
commit
4e30fcb967
14
README.md
14
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 save 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.13.1) 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 (3.1.2) 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)
|
||||
|
||||
@ -143,14 +143,14 @@ TODO
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 11th June, 2022
|
||||
+ *Version*: 2.13.1
|
||||
+ *Last Build*: 9th July, 2022
|
||||
+ *Version*: 3.1.2
|
||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
+ *Line count*: **287256**
|
||||
+ *Field count*: **1581**
|
||||
+ *File count*: **1853**
|
||||
+ *Folder count*: **261**
|
||||
+ *Line count*: **312818**
|
||||
+ *Field count*: **2002**
|
||||
+ *File count*: **2049**
|
||||
+ *Folder count*: **349**
|
||||
|
||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
|
@ -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 save 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.13.1) 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 (3.1.2) 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)
|
||||
|
||||
@ -143,14 +143,14 @@ TODO
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 11th June, 2022
|
||||
+ *Version*: 2.13.1
|
||||
+ *Last Build*: 9th July, 2022
|
||||
+ *Version*: 3.1.2
|
||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
+ *Line count*: **287256**
|
||||
+ *Field count*: **1581**
|
||||
+ *File count*: **1853**
|
||||
+ *Folder count*: **261**
|
||||
+ *Line count*: **312818**
|
||||
+ *Field count*: **2002**
|
||||
+ *File count*: **2049**
|
||||
+ *Folder count*: **349**
|
||||
|
||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
|
@ -274,6 +274,7 @@
|
||||
<action name="field.access" title="COM_COMPONENTBUILDER_FIELDS_ACCESS" description="COM_COMPONENTBUILDER_FIELDS_ACCESS_DESC" />
|
||||
<action name="field.batch" title="COM_COMPONENTBUILDER_FIELDS_BATCH_USE" description="COM_COMPONENTBUILDER_FIELDS_BATCH_USE_DESC" />
|
||||
<action name="field.create" title="COM_COMPONENTBUILDER_FIELDS_CREATE" description="COM_COMPONENTBUILDER_FIELDS_CREATE_DESC" />
|
||||
<action name="field.dashboard_add" title="COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD" description="COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD_DESC" />
|
||||
<action name="field.dashboard_list" title="COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST_DESC" />
|
||||
<action name="field.delete" title="COM_COMPONENTBUILDER_FIELDS_DELETE" description="COM_COMPONENTBUILDER_FIELDS_DELETE_DESC" />
|
||||
<action name="field.edit" title="COM_COMPONENTBUILDER_FIELDS_EDIT" description="COM_COMPONENTBUILDER_FIELDS_EDIT_DESC" />
|
||||
@ -347,6 +348,7 @@
|
||||
<action name="joomla_module.edit.own" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_OWN" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_OWN_DESC" />
|
||||
<action name="joomla_module.edit.state" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE_DESC" />
|
||||
<action name="joomla_module.version" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION_DESC" />
|
||||
<action name="joomla_module.export" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_EXPORT" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_EXPORT_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.access" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.batch" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_USE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_USE_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.create" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_CREATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_CREATE_DESC" />
|
||||
@ -357,6 +359,7 @@
|
||||
<action name="joomla_module_files_folders_urls.edit.own" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_OWN" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_OWN_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.edit.state" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE_DESC" />
|
||||
<action name="joomla_module_files_folders_urls.version" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION_DESC" />
|
||||
<action name="joomla_module.import" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_IMPORT" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_IMPORT_DESC" />
|
||||
<action name="joomla_module.submenu" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_SUBMENU" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_SUBMENU_DESC" />
|
||||
<action name="joomla_module_updates.access" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_ACCESS_DESC" />
|
||||
<action name="joomla_module_updates.batch" title="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_BATCH_USE" description="COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_BATCH_USE_DESC" />
|
||||
@ -482,6 +485,19 @@
|
||||
<action name="placeholder.export" title="COM_COMPONENTBUILDER_PLACEHOLDERS_EXPORT" description="COM_COMPONENTBUILDER_PLACEHOLDERS_EXPORT_DESC" />
|
||||
<action name="placeholder.import" title="COM_COMPONENTBUILDER_PLACEHOLDERS_IMPORT" description="COM_COMPONENTBUILDER_PLACEHOLDERS_IMPORT_DESC" />
|
||||
<action name="placeholder.submenu" title="COM_COMPONENTBUILDER_PLACEHOLDERS_SUBMENU" description="COM_COMPONENTBUILDER_PLACEHOLDERS_SUBMENU_DESC" />
|
||||
<action name="power.run_expansion" title="COM_COMPONENTBUILDER_POWER_RUN_EXPANSION_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_POWER_RUN_EXPANSION_BUTTON_ACCESS_DESC" />
|
||||
<action name="power.access" title="COM_COMPONENTBUILDER_POWERS_ACCESS" description="COM_COMPONENTBUILDER_POWERS_ACCESS_DESC" />
|
||||
<action name="power.batch" title="COM_COMPONENTBUILDER_POWERS_BATCH_USE" description="COM_COMPONENTBUILDER_POWERS_BATCH_USE_DESC" />
|
||||
<action name="power.create" title="COM_COMPONENTBUILDER_POWERS_CREATE" description="COM_COMPONENTBUILDER_POWERS_CREATE_DESC" />
|
||||
<action name="power.dashboard_list" title="COM_COMPONENTBUILDER_POWERS_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_POWERS_DASHBOARD_LIST_DESC" />
|
||||
<action name="power.delete" title="COM_COMPONENTBUILDER_POWERS_DELETE" description="COM_COMPONENTBUILDER_POWERS_DELETE_DESC" />
|
||||
<action name="power.edit" title="COM_COMPONENTBUILDER_POWERS_EDIT" description="COM_COMPONENTBUILDER_POWERS_EDIT_DESC" />
|
||||
<action name="power.edit.created_by" title="COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_BY_DESC" />
|
||||
<action name="power.edit.created" title="COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="power.edit.own" title="COM_COMPONENTBUILDER_POWERS_EDIT_OWN" description="COM_COMPONENTBUILDER_POWERS_EDIT_OWN_DESC" />
|
||||
<action name="power.edit.state" title="COM_COMPONENTBUILDER_POWERS_EDIT_STATE" description="COM_COMPONENTBUILDER_POWERS_EDIT_STATE_DESC" />
|
||||
<action name="power.version" title="COM_COMPONENTBUILDER_POWERS_EDIT_VERSION" description="COM_COMPONENTBUILDER_POWERS_EDIT_VERSION_DESC" />
|
||||
<action name="power.submenu" title="COM_COMPONENTBUILDER_POWERS_SUBMENU" description="COM_COMPONENTBUILDER_POWERS_SUBMENU_DESC" />
|
||||
<action name="server.access" title="COM_COMPONENTBUILDER_SERVERS_ACCESS" description="COM_COMPONENTBUILDER_SERVERS_ACCESS_DESC" />
|
||||
<action name="server.batch" title="COM_COMPONENTBUILDER_SERVERS_BATCH_USE" description="COM_COMPONENTBUILDER_SERVERS_BATCH_USE_DESC" />
|
||||
<action name="server.create" title="COM_COMPONENTBUILDER_SERVERS_CREATE" description="COM_COMPONENTBUILDER_SERVERS_CREATE_DESC" />
|
||||
@ -578,6 +594,17 @@
|
||||
<action name="joomla_plugin.access" title="COM_COMPONENTBUILDER_JOOMLA_PLUGINS_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_PLUGINS_ACCESS_DESC" />
|
||||
<action name="joomla_plugin.version" title="COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_VERSION" description="COM_COMPONENTBUILDER_JOOMLA_PLUGINS_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="power">
|
||||
<action name="power.edit" title="COM_COMPONENTBUILDER_POWERS_EDIT" description="COM_COMPONENTBUILDER_POWERS_EDIT_DESC" />
|
||||
<action name="power.edit.own" title="COM_COMPONENTBUILDER_POWERS_EDIT_OWN" description="COM_COMPONENTBUILDER_POWERS_EDIT_OWN_DESC" />
|
||||
<action name="power.edit.state" title="COM_COMPONENTBUILDER_POWERS_EDIT_STATE" description="COM_COMPONENTBUILDER_POWERS_EDIT_STATE_DESC" />
|
||||
<action name="power.edit.created_by" title="COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_BY_DESC" />
|
||||
<action name="power.edit.created" title="COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="power.create" title="COM_COMPONENTBUILDER_POWERS_CREATE" description="COM_COMPONENTBUILDER_POWERS_CREATE_DESC" />
|
||||
<action name="power.delete" title="COM_COMPONENTBUILDER_POWERS_DELETE" description="COM_COMPONENTBUILDER_POWERS_DELETE_DESC" />
|
||||
<action name="power.access" title="COM_COMPONENTBUILDER_POWERS_ACCESS" description="COM_COMPONENTBUILDER_POWERS_ACCESS_DESC" />
|
||||
<action name="power.version" title="COM_COMPONENTBUILDER_POWERS_EDIT_VERSION" description="COM_COMPONENTBUILDER_POWERS_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="admin_view">
|
||||
<action name="admin_view.edit" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_DESC" />
|
||||
<action name="admin_view.edit.own" title="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_OWN" description="COM_COMPONENTBUILDER_ADMIN_VIEWS_EDIT_OWN_DESC" />
|
||||
|
@ -1,4 +1,3 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
@ -10,8 +9,6 @@
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
/* CSS Document */
|
||||
|
||||
|
||||
?>
|
||||
<?php echo $this->proboard; ?>
|
@ -1,4 +1,3 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
@ -10,8 +9,6 @@
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
/* CSS Document */
|
||||
|
||||
|
||||
?>
|
||||
<?php echo $this->github->tagreleases; ?>
|
BIN
admin/assets/images/icons/field_add.png
Normal file
BIN
admin/assets/images/icons/field_add.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
BIN
admin/assets/images/icons/powers.png
Normal file
BIN
admin/assets/images/icons/powers.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
@ -134,6 +134,22 @@
|
||||
folder="editors"
|
||||
filter="cmd"
|
||||
/>
|
||||
<!-- Gitea_token Field. Type: Password. (joomla) -->
|
||||
<field
|
||||
type="password"
|
||||
name="gitea_token"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_GITEA_TOKEN_LABEL"
|
||||
size="128"
|
||||
description="COM_COMPONENTBUILDER_CONFIG_GITEA_TOKEN_DESCRIPTION"
|
||||
message="Error! Please add token here."
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="false"
|
||||
filter="STRING"
|
||||
hint="COM_COMPONENTBUILDER_CONFIG_GITEA_TOKEN_HINT"
|
||||
autocomplete="off"
|
||||
/>
|
||||
<!-- Github_access_token Field. Type: Password. (joomla) -->
|
||||
<field
|
||||
type="password"
|
||||
@ -1074,6 +1090,20 @@
|
||||
name="folder_paths_custom_config"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_FOLDER_PATHS">
|
||||
|
||||
<!-- Jcb_powers_path Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="jcb_powers_path"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_JCB_POWERS_PATH_LABEL"
|
||||
size="70"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_CONFIG_JCB_POWERS_PATH_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="PATH"
|
||||
message="COM_COMPONENTBUILDER_CONFIG_JCB_POWERS_PATH_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_CONFIG_JCB_POWERS_PATH_HINT"
|
||||
autocomplete="on"
|
||||
/>
|
||||
<!-- Note_compiler_folder_path Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_compiler_folder_path" label="COM_COMPONENTBUILDER_CONFIG_NOTE_COMPILER_FOLDER_PATH_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_COMPILER_FOLDER_PATH_DESCRIPTION" heading="h4" class="alert alert-info note_compiler_folder_path" />
|
||||
<!-- Compiler_folder_path Field. Type: Text. (joomla) -->
|
||||
|
@ -97,6 +97,7 @@ class ComponentbuilderController extends BaseController
|
||||
'joomla_component' => 'joomla_components',
|
||||
'joomla_module' => 'joomla_modules',
|
||||
'joomla_plugin' => 'joomla_plugins',
|
||||
'power' => 'powers',
|
||||
'admin_view' => 'admin_views',
|
||||
'custom_admin_view' => 'custom_admin_views',
|
||||
'site_view' => 'site_views',
|
||||
|
@ -35,6 +35,7 @@ class ComponentbuilderControllerAjax extends BaseController
|
||||
$this->registerTask('isRead', 'ajax');
|
||||
$this->registerTask('getComponentDetails', 'ajax');
|
||||
$this->registerTask('getCronPath', 'ajax');
|
||||
$this->registerTask('getWiki', 'ajax');
|
||||
$this->registerTask('getJCBpackageInfo', 'ajax');
|
||||
$this->registerTask('getCrowdinDetails', 'ajax');
|
||||
$this->registerTask('getModuleCode', 'ajax');
|
||||
@ -254,6 +255,47 @@ class ComponentbuilderControllerAjax extends BaseController
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'getWiki':
|
||||
try
|
||||
{
|
||||
$nameValue = $jinput->get('name', NULL, 'WORD');
|
||||
if($nameValue && $user->id != 0)
|
||||
{
|
||||
$result = $this->getModel('ajax')->getWiki($nameValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
$result = false;
|
||||
}
|
||||
if($callback)
|
||||
{
|
||||
echo $callback . "(".json_encode($result).");";
|
||||
}
|
||||
elseif($returnRaw)
|
||||
{
|
||||
echo json_encode($result);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "(".json_encode($result).");";
|
||||
}
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
if($callback)
|
||||
{
|
||||
echo $callback."(".json_encode($e).");";
|
||||
}
|
||||
elseif($returnRaw)
|
||||
{
|
||||
echo json_encode($e);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "(".json_encode($e).");";
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'getJCBpackageInfo':
|
||||
try
|
||||
{
|
||||
|
@ -45,6 +45,69 @@ class ComponentbuilderControllerJoomla_modules extends AdminController
|
||||
return parent::getModel($name, $prefix, $config);
|
||||
}
|
||||
|
||||
public function exportData()
|
||||
{
|
||||
// Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// check if export is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('joomla_module.export', 'com_componentbuilder') && $user->authorise('core.export', 'com_componentbuilder'))
|
||||
{
|
||||
// Get the input
|
||||
$input = JFactory::getApplication()->input;
|
||||
$pks = $input->post->get('cid', array(), 'array');
|
||||
// Sanitize the input
|
||||
$pks = ArrayHelper::toInteger($pks);
|
||||
// Get the model
|
||||
$model = $this->getModel('Joomla_modules');
|
||||
// get the data to export
|
||||
$data = $model->getExportData($pks);
|
||||
if (ComponentbuilderHelper::checkArray($data))
|
||||
{
|
||||
// now set the data to the spreadsheet
|
||||
$date = JFactory::getDate();
|
||||
ComponentbuilderHelper::xls($data,'Joomla_modules_'.$date->format('jS_F_Y'),'Joomla modules exported ('.$date->format('jS F, Y').')','joomla modules');
|
||||
}
|
||||
}
|
||||
// Redirect to the list screen with error.
|
||||
$message = JText::_('COM_COMPONENTBUILDER_EXPORT_FAILED');
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_modules', false), $message, 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
public function importData()
|
||||
{
|
||||
// Check for request forgeries
|
||||
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||
// check if import is allowed for this user.
|
||||
$user = JFactory::getUser();
|
||||
if ($user->authorise('joomla_module.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder'))
|
||||
{
|
||||
// Get the import model
|
||||
$model = $this->getModel('Joomla_modules');
|
||||
// get the headers to import
|
||||
$headers = $model->getExImPortHeaders();
|
||||
if (ComponentbuilderHelper::checkObject($headers))
|
||||
{
|
||||
// Load headers to session.
|
||||
$session = JFactory::getSession();
|
||||
$headers = json_encode($headers);
|
||||
$session->set('joomla_module_VDM_IMPORTHEADERS', $headers);
|
||||
$session->set('backto_VDM_IMPORT', 'joomla_modules');
|
||||
$session->set('dataType_VDM_IMPORTINTO', 'joomla_module');
|
||||
// Redirect to import view.
|
||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_JOOMLA_MODULES');
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=import', false), $message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// Redirect to the list screen with error.
|
||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_FAILED');
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_modules', false), $message, 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
public function getSnippets()
|
||||
{
|
||||
// Check for request forgeries
|
||||
|
325
admin/controllers/power.php
Normal file
325
admin/controllers/power.php
Normal file
@ -0,0 +1,325 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Power Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerPower extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
*
|
||||
* @var string
|
||||
* @since 12.2
|
||||
* @note Replaces _task.
|
||||
*/
|
||||
protected $task;
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @param array $config A named array of configuration variables.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function __construct($config = array())
|
||||
{
|
||||
$this->view_list = 'Powers'; // safeguard for setting the return view listing to the main view.
|
||||
parent::__construct($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method override to check if you can add a new record.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function allowAdd($data = array())
|
||||
{
|
||||
// Get user object.
|
||||
$user = JFactory::getUser();
|
||||
// Access check.
|
||||
$access = $user->authorise('power.access', 'com_componentbuilder');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// In the absense of better information, revert to the component permissions.
|
||||
return $user->authorise('power.create', $this->option);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method override to check if you can edit an existing record.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
* @param string $key The name of the key for the primary key.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function allowEdit($data = array(), $key = 'id')
|
||||
{
|
||||
// get user object.
|
||||
$user = JFactory::getUser();
|
||||
// get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// Access check.
|
||||
$access = ($user->authorise('power.access', 'com_componentbuilder.power.' . (int) $recordId) && $user->authorise('power.access', 'com_componentbuilder'));
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($recordId)
|
||||
{
|
||||
// The record has been set. Check the record permissions.
|
||||
$permission = $user->authorise('power.edit', 'com_componentbuilder.power.' . (int) $recordId);
|
||||
if (!$permission)
|
||||
{
|
||||
if ($user->authorise('power.edit.own', 'com_componentbuilder.power.' . $recordId))
|
||||
{
|
||||
// Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// Need to do a lookup from the model.
|
||||
$record = $this->getModel()->getItem($recordId);
|
||||
|
||||
if (empty($record))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
$ownerId = $record->created_by;
|
||||
}
|
||||
|
||||
// If the owner matches 'me' then allow.
|
||||
if ($ownerId == $user->id)
|
||||
{
|
||||
if ($user->authorise('power.edit.own', 'com_componentbuilder'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('power.edit', $this->option);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the URL arguments to append to an item redirect.
|
||||
*
|
||||
* @param integer $recordId The primary key id for the item.
|
||||
* @param string $urlVar The name of the URL variable for the id.
|
||||
*
|
||||
* @return string The arguments to append to the redirect URL.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||
{
|
||||
// get the referral options (old method use return instead see parent)
|
||||
$ref = $this->input->get('ref', 0, 'string');
|
||||
$refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
// get redirect info.
|
||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||
|
||||
// set the referral options
|
||||
if ($refid && $ref)
|
||||
{
|
||||
$append = '&ref=' . (string)$ref . '&refid='. (int)$refid . $append;
|
||||
}
|
||||
elseif ($ref)
|
||||
{
|
||||
$append = '&ref='. (string)$ref . $append;
|
||||
}
|
||||
|
||||
return $append;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to run batch operations.
|
||||
*
|
||||
* @param object $model The model.
|
||||
*
|
||||
* @return boolean True if successful, false otherwise and internal error is set.
|
||||
*
|
||||
* @since 2.5
|
||||
*/
|
||||
public function batch($model = null)
|
||||
{
|
||||
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
|
||||
|
||||
// Set the model
|
||||
$model = $this->getModel('Power', '', array());
|
||||
|
||||
// Preset the redirect
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=powers' . $this->getRedirectToListAppend(), false));
|
||||
|
||||
return parent::batch($model);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to cancel an edit.
|
||||
*
|
||||
* @param string $key The name of the primary key of the URL variable.
|
||||
*
|
||||
* @return boolean True if access level checks pass, false otherwise.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
public function cancel($key = null)
|
||||
{
|
||||
// get the referral options
|
||||
$this->ref = $this->input->get('ref', 0, 'word');
|
||||
$this->refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
// Check if there is a return value
|
||||
$return = $this->input->get('return', null, 'base64');
|
||||
|
||||
$cancel = parent::cancel($key);
|
||||
|
||||
if (!is_null($return) && JUri::isInternal(base64_decode($return)))
|
||||
{
|
||||
$redirect = base64_decode($return);
|
||||
|
||||
// Redirect to the return value.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
$redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->refid && $this->ref)
|
||||
{
|
||||
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
|
||||
|
||||
// Redirect to the item screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->ref)
|
||||
{
|
||||
$redirect = '&view='.(string)$this->ref;
|
||||
|
||||
// Redirect to the list screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
return $cancel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to save a record.
|
||||
*
|
||||
* @param string $key The name of the primary key of the URL variable.
|
||||
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
|
||||
*
|
||||
* @return boolean True if successful, false otherwise.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
public function save($key = null, $urlVar = null)
|
||||
{
|
||||
// get the referral options
|
||||
$this->ref = $this->input->get('ref', 0, 'word');
|
||||
$this->refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
// Check if there is a return value
|
||||
$return = $this->input->get('return', null, 'base64');
|
||||
$canReturn = (!is_null($return) && JUri::isInternal(base64_decode($return)));
|
||||
|
||||
if ($this->ref || $this->refid || $canReturn)
|
||||
{
|
||||
// to make sure the item is checkedin on redirect
|
||||
$this->task = 'save';
|
||||
}
|
||||
|
||||
$saved = parent::save($key, $urlVar);
|
||||
|
||||
// This is not needed since parent save already does this
|
||||
// Due to the ref and refid implementation we need to add this
|
||||
if ($canReturn)
|
||||
{
|
||||
$redirect = base64_decode($return);
|
||||
|
||||
// Redirect to the return value.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
$redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->refid && $this->ref)
|
||||
{
|
||||
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
|
||||
|
||||
// Redirect to the item screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->ref)
|
||||
{
|
||||
$redirect = '&view=' . (string)$this->ref;
|
||||
|
||||
// Redirect to the list screen.
|
||||
$this->setRedirect(
|
||||
JRoute::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
return $saved;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function that allows child controller access to model data
|
||||
* after the data has been saved.
|
||||
*
|
||||
* @param JModel &$model The data model object.
|
||||
* @param array $validData The validated data.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 11.1
|
||||
*/
|
||||
protected function postSaveHook(JModelLegacy $model, $validData = array())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
88
admin/controllers/powers.php
Normal file
88
admin/controllers/powers.php
Normal file
@ -0,0 +1,88 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Powers Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerPowers extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $text_prefix = 'COM_COMPONENTBUILDER_POWERS';
|
||||
|
||||
/**
|
||||
* Method to get a model object, loading it if required.
|
||||
*
|
||||
* @param string $name The model name. Optional.
|
||||
* @param string $prefix The class prefix. Optional.
|
||||
* @param array $config Configuration array for model. Optional.
|
||||
*
|
||||
* @return JModelLegacy The model.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function getModel($name = 'Power', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||
{
|
||||
return parent::getModel($name, $prefix, $config);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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=powers', 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('powers.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;
|
||||
}
|
||||
|
||||
}
|
@ -29128,32 +29128,33 @@ function vdm_dkim() {
|
||||
{
|
||||
// check if we are using a plugin
|
||||
$use_plugin = isset($this->fileContentStatic[$this->hhh . 'PLUGIN_POWER_AUTOLOADER' . $this->hhh]);
|
||||
// build the helper method
|
||||
$helperMethod = array();
|
||||
// build the methods
|
||||
$autoloadNotSiteMethod = array();
|
||||
$autoloadMethod = array();
|
||||
// add only if we are not using a plugin
|
||||
$tab_space = 2;
|
||||
if (!$use_plugin)
|
||||
{
|
||||
$helperMethod[] = PHP_EOL . PHP_EOL;
|
||||
$autoloadNotSiteMethod[] = PHP_EOL . PHP_EOL;
|
||||
$tab_space = 0;
|
||||
}
|
||||
elseif (!$loadSite)
|
||||
{
|
||||
// we add code to prevent this plugin from triggering on the site area
|
||||
$helperMethod[] = PHP_EOL . $this->_t(2) . '//'
|
||||
$autoloadNotSiteMethod[] = PHP_EOL . $this->_t(2) . '//'
|
||||
. $this->setLine(__LINE__) . ' do not run the autoloader in the site area';
|
||||
$helperMethod[] = $this->_t(2) . 'if ($this->app->isClient(\'site\'))';
|
||||
$helperMethod[] = $this->_t(2) . '{';
|
||||
$helperMethod[] = $this->_t(3) . 'return;';
|
||||
$helperMethod[] = $this->_t(2) . '}' . PHP_EOL;
|
||||
$autoloadNotSiteMethod[] = $this->_t(2) . 'if ($this->app->isClient(\'site\'))';
|
||||
$autoloadNotSiteMethod[] = $this->_t(2) . '{';
|
||||
$autoloadNotSiteMethod[] = $this->_t(3) . 'return;';
|
||||
$autoloadNotSiteMethod[] = $this->_t(2) . '}' . PHP_EOL;
|
||||
}
|
||||
// we start building the spl_autoload_register function call
|
||||
$helperMethod[] = $this->_t($tab_space) . '//'
|
||||
$autoloadMethod[] = $this->_t($tab_space) . '//'
|
||||
. $this->setLine(__LINE__) . ' register this component namespace';
|
||||
$helperMethod[] = $this->_t($tab_space) . 'spl_autoload_register(function ($class) {';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '//'
|
||||
$autoloadMethod[] = $this->_t($tab_space) . 'spl_autoload_register(function ($class) {';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '//'
|
||||
. $this->setLine(__LINE__) . ' project-specific base directories and namespace prefix';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '$search = array(';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '$search = array(';
|
||||
// ==== IMPORTANT NOTICE =====
|
||||
// make sure the name space values are sorted from the longest string to the shortest
|
||||
// so that the search do not mistakenly match a shorter namespace before a longer one
|
||||
@ -29175,74 +29176,78 @@ function vdm_dkim() {
|
||||
// don't add the ending comma on last value
|
||||
if ($size == $counter)
|
||||
{
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(2) . "'$this->jcbPowersPath/$base_dir' => '" . implode('\\\\', $prefix) . "'";
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(2) . "'$this->jcbPowersPath/$base_dir' => '" . implode('\\\\', $prefix) . "'";
|
||||
}
|
||||
else
|
||||
{
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(2) . "'$this->jcbPowersPath/$base_dir' => '" . implode('\\\\', $prefix) . "',";
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(2) . "'$this->jcbPowersPath/$base_dir' => '" . implode('\\\\', $prefix) . "',";
|
||||
}
|
||||
$counter++;
|
||||
}
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . ');';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '// Start the search and load if found';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '$found = false;';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '$found_base_dir = "";';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '$found_len = 0;';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . 'foreach ($search as $base_dir => $prefix)';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '{';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(2) . '//'
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . ');';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '// Start the search and load if found';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '$found = false;';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '$found_base_dir = "";';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '$found_len = 0;';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . 'foreach ($search as $base_dir => $prefix)';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '{';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(2) . '//'
|
||||
. $this->setLine(__LINE__) . ' does the class use the namespace prefix?';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(2) . '$len = strlen($prefix);';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(2) . 'if (strncmp($prefix, $class, $len) === 0)';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(2) . '{';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(3) . '//'
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(2) . '$len = strlen($prefix);';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(2) . 'if (strncmp($prefix, $class, $len) === 0)';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(2) . '{';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(3) . '//'
|
||||
. $this->setLine(__LINE__) . ' we have a match so load the values';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(3) . '$found = true;';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(3) . '$found_base_dir = $base_dir;';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(3) . '$found_len = $len;';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(3) . '//'
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(3) . '$found = true;';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(3) . '$found_base_dir = $base_dir;';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(3) . '$found_len = $len;';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(3) . '//'
|
||||
. $this->setLine(__LINE__) . ' done here';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(3) . 'break;';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(2) . '}';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '}';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '//'
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(3) . 'break;';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(2) . '}';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '}';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '//'
|
||||
. $this->setLine(__LINE__) . ' check if we found a match';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . 'if (!$found)';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '{';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(2) . '//'
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . 'if (!$found)';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '{';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(2) . '//'
|
||||
. $this->setLine(__LINE__) . ' no, move to the next registered autoloader';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(2) . 'return;';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '}';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '//'
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(2) . 'return;';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '}';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '//'
|
||||
. $this->setLine(__LINE__) . ' get the relative class name';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '$relative_class = substr($class, $found_len);';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '//'
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '$relative_class = substr($class, $found_len);';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '//'
|
||||
. $this->setLine(__LINE__) . ' replace the namespace prefix with the base directory, replace namespace';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '// separators with directory separators in the relative class name, append';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '// with .php';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . "\$file = JPATH_ROOT . '/' . \$found_base_dir . '/src' . str_replace('\\\\', '/', \$relative_class) . '.php';";
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '//'
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '// separators with directory separators in the relative class name, append';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '// with .php';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . "\$file = JPATH_ROOT . '/' . \$found_base_dir . '/src' . str_replace('\\\\', '/', \$relative_class) . '.php';";
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '//'
|
||||
. $this->setLine(__LINE__) . ' if the file exists, require it';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . 'if (file_exists($file))';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '{';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(2) . 'require $file;';
|
||||
$helperMethod[] = $this->_t($tab_space) . $this->_t(1) . '}';
|
||||
$helperMethod[] = $this->_t($tab_space) . '});';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . 'if (file_exists($file))';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '{';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(2) . 'require $file;';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . $this->_t(1) . '}';
|
||||
$autoloadMethod[] = $this->_t($tab_space) . '});';
|
||||
// create the method string
|
||||
$autoloader = implode(PHP_EOL, $autoloadNotSiteMethod) . implode(PHP_EOL, $autoloadMethod);
|
||||
// check if we are using a plugin
|
||||
if ($use_plugin)
|
||||
{
|
||||
$this->fileContentStatic[$this->hhh . 'PLUGIN_POWER_AUTOLOADER' . $this->hhh] = PHP_EOL . implode(PHP_EOL, $helperMethod);
|
||||
$this->fileContentStatic[$this->hhh . 'PLUGIN_POWER_AUTOLOADER' . $this->hhh] = PHP_EOL . $autoloader;
|
||||
}
|
||||
else
|
||||
{
|
||||
// load to events placeholders
|
||||
$this->fileContentStatic[$this->hhh . 'ADMIN_POWER_HELPER' . $this->hhh] .= implode(PHP_EOL, $helperMethod);
|
||||
$this->fileContentStatic[$this->hhh . 'ADMIN_POWER_HELPER' . $this->hhh] .= $autoloader;
|
||||
// load to site if needed
|
||||
if ($loadSite)
|
||||
{
|
||||
$this->fileContentStatic[$this->hhh . 'SITE_POWER_HELPER' . $this->hhh] .= implode(PHP_EOL, $helperMethod);
|
||||
$this->fileContentStatic[$this->hhh . 'SITE_POWER_HELPER' . $this->hhh] .= $autoloader;
|
||||
}
|
||||
}
|
||||
// to add to custom files
|
||||
$this->fileContentStatic[$this->hhh . 'CUSTOM_POWER_AUTOLOADER' . $this->hhh] .= PHP_EOL . implode(PHP_EOL, $autoloadMethod);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2316,6 +2316,7 @@ class Infusion extends Interpretation
|
||||
// remove all the power placeholders
|
||||
$this->fileContentStatic[$this->hhh . 'ADMIN_POWER_HELPER' . $this->hhh] = '';
|
||||
$this->fileContentStatic[$this->hhh . 'SITE_POWER_HELPER' . $this->hhh] = '';
|
||||
$this->fileContentStatic[$this->hhh . 'CUSTOM_POWER_AUTOLOADER' . $this->hhh] = '';
|
||||
// infuse powers data if set
|
||||
if (ArrayHelper::check($this->powers))
|
||||
{
|
||||
|
@ -13,12 +13,12 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
|
||||
// register this component namespace
|
||||
spl_autoload_register(function ($class) {
|
||||
// project-specific base directories and namespace prefix
|
||||
$search = array(
|
||||
'libraries/jcb_powers/VDM.Joomla' => 'VDM\\Joomla'
|
||||
'libraries/jcb_powers/VDM.Joomla' => 'VDM\\Joomla',
|
||||
'libraries/jcb_powers/VDM.Gitea' => 'VDM\\Gitea'
|
||||
);
|
||||
// Start the search and load if found
|
||||
$found = false;
|
||||
@ -3524,13 +3524,13 @@ abstract class ComponentbuilderHelper
|
||||
'accesslevel', 'cachehandler', 'calendar', 'captcha', 'category', 'checkbox', 'checkboxes', 'chromestyle',
|
||||
'color', 'combo', 'componentlayout', 'contentlanguage', 'contenttype', 'databaseconnection', 'components',
|
||||
'editor', 'editors', 'email', 'file', 'file', 'filelist', 'folderlist', 'groupedlist', 'headertag', 'helpsite', 'hidden', 'imagelist',
|
||||
'integer', 'language', 'list', 'media', 'menu', 'menuitem', 'meter', 'modulelayout', 'moduleorder', 'moduleposition',
|
||||
'integer', 'language', 'list', 'media', 'menu', 'modal_menu', 'menuitem', 'meter', 'modulelayout', 'moduleorder', 'moduleposition',
|
||||
'moduletag', 'note', 'number', 'password', 'plugins', 'predefinedlist', 'radio', 'range', 'repeatable', 'rules',
|
||||
'sessionhandler', 'spacer', 'sql', 'subform', 'tag', 'tel', 'templatestyle', 'text', 'textarea', 'timezone', 'url', 'user', 'usergroup'
|
||||
),
|
||||
'plain' => array(
|
||||
'cachehandler', 'calendar', 'checkbox', 'chromestyle', 'color', 'componentlayout', 'contenttype', 'editor', 'editors', 'captcha',
|
||||
'email', 'file', 'headertag', 'helpsite', 'hidden', 'integer', 'language', 'media', 'menu', 'menuitem', 'meter', 'modulelayout', 'templatestyle',
|
||||
'email', 'file', 'headertag', 'helpsite', 'hidden', 'integer', 'language', 'media', 'menu', 'modal_menu', 'menuitem', 'meter', 'modulelayout', 'templatestyle',
|
||||
'moduleorder', 'moduletag', 'number', 'password', 'range', 'rules', 'tag', 'tel', 'text', 'textarea', 'timezone', 'url', 'user', 'usergroup'
|
||||
),
|
||||
'option' => array(
|
||||
@ -6327,6 +6327,10 @@ abstract class ComponentbuilderHelper
|
||||
{
|
||||
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_JOOMLA_PLUGINS'), 'index.php?option=com_componentbuilder&view=joomla_plugins', $submenu === 'joomla_plugins');
|
||||
}
|
||||
if ($user->authorise('power.access', 'com_componentbuilder') && $user->authorise('power.submenu', 'com_componentbuilder'))
|
||||
{
|
||||
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_POWERS'), 'index.php?option=com_componentbuilder&view=powers', $submenu === 'powers');
|
||||
}
|
||||
if ($user->authorise('admin_view.access', 'com_componentbuilder') && $user->authorise('admin_view.submenu', 'com_componentbuilder'))
|
||||
{
|
||||
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_ADMIN_VIEWS'), 'index.php?option=com_componentbuilder&view=admin_views', $submenu === 'admin_views');
|
||||
|
@ -1317,8 +1317,6 @@ COM_COMPONENTBUILDER_AUTHOR_NAME="Author Name"
|
||||
COM_COMPONENTBUILDER_AUTHOR_WEBSITE="Author Website"
|
||||
COM_COMPONENTBUILDER_AUTO_CHECKIN="Auto Check-in"
|
||||
COM_COMPONENTBUILDER_AVAILABLE_LIBRARIES="Available Libraries"
|
||||
COM_COMPONENTBUILDER_A_FEW_CLOSED_ISSUES_FROM_GITHUB_IS_LOADING="A few closed issues from Github is loading"
|
||||
COM_COMPONENTBUILDER_A_FEW_OPEN_ISSUES_FROM_GITHUB_IS_LOADING="A few open issues from Github is loading"
|
||||
COM_COMPONENTBUILDER_A_S_SPAN_CLASSICONFLAG_SPANREPORT_BROKEN_PACKAGEA="<a %s ><span class="icon-flag"> </span>Report Broken Package</a>"
|
||||
COM_COMPONENTBUILDER_BACK="Back"
|
||||
COM_COMPONENTBUILDER_BACKUP="Backup"
|
||||
@ -3487,6 +3485,9 @@ COM_COMPONENTBUILDER_CONFIG_FORCE_LOAD="Force"
|
||||
COM_COMPONENTBUILDER_CONFIG_FROMNAME_DESCRIPTION="Text displayed in the header "From:" field when sending a site email. Usually the site name."
|
||||
COM_COMPONENTBUILDER_CONFIG_FROMNAME_HINT="From Name Here"
|
||||
COM_COMPONENTBUILDER_CONFIG_FROMNAME_LABEL="From Name"
|
||||
COM_COMPONENTBUILDER_CONFIG_GITEA_TOKEN_DESCRIPTION="To get updates, add your access token from VDM here."
|
||||
COM_COMPONENTBUILDER_CONFIG_GITEA_TOKEN_HINT="API Access Tokens"
|
||||
COM_COMPONENTBUILDER_CONFIG_GITEA_TOKEN_LABEL="VDM Access Token<br /><small>Get <a href='https://git.vdm.dev/user/settings/applications' target='_blank'>token</a> from VDM.</small>"
|
||||
COM_COMPONENTBUILDER_CONFIG_GITHUB_ACCESS_TOKEN_DESCRIPTION="This is only needed when you are on a shared IP or/and have reached the public free limit of API queries to gitHub. So unless you have seen some kind of error that directed you here to add an <b>access token</b> you can just ignore this field."
|
||||
COM_COMPONENTBUILDER_CONFIG_GITHUB_ACCESS_TOKEN_HINT="OAUTH-TOKEN"
|
||||
COM_COMPONENTBUILDER_CONFIG_GITHUB_ACCESS_TOKEN_LABEL="gitHub Access Token<br /><small>Check <a href='https://developer.github.com/v3/#authentication' target='_blank'>https://developer.github.com/v3/#authentication</a> for more info.</small>"
|
||||
@ -3508,6 +3509,10 @@ COM_COMPONENTBUILDER_CONFIG_JCB_COMMUNITY_PACKAGES="JCB Community Packages"
|
||||
COM_COMPONENTBUILDER_CONFIG_JCB_PACKAGES="JCB Packages"
|
||||
COM_COMPONENTBUILDER_CONFIG_JCB_PACKAGE_DIRECTORIES_DESCRIPTION="Here you can manage what package directories show in the JCB package import area."
|
||||
COM_COMPONENTBUILDER_CONFIG_JCB_PACKAGE_DIRECTORIES_LABEL="Directories"
|
||||
COM_COMPONENTBUILDER_CONFIG_JCB_POWERS_PATH_DESCRIPTION="Here you can set the path to the powers folder. Recommended that you always place it inside the <b>libraries</b>. You don't need to add a full path here, so <b>libraries/jcb_powers</b> will mean <i>/home/username/public_html/libraries/jcb_powers</i> when installed. You should always use two folders here, libraries + one more for example: <br /><code>libraries/jcb_powers</code>"
|
||||
COM_COMPONENTBUILDER_CONFIG_JCB_POWERS_PATH_HINT="libraries/jcb_powers"
|
||||
COM_COMPONENTBUILDER_CONFIG_JCB_POWERS_PATH_LABEL="JCB Powers Path<br /><small>example: <code>libraries/jcb_powers</code></small>"
|
||||
COM_COMPONENTBUILDER_CONFIG_JCB_POWERS_PATH_MESSAGE="Error! Please add folder path here."
|
||||
COM_COMPONENTBUILDER_CONFIG_JOOMLA_MODULE_UPDATES_VERSION_UPDATE="Joomla Module Updates (version_update)"
|
||||
COM_COMPONENTBUILDER_CONFIG_JOOMLA_PLUGIN_UPDATES_VERSION_UPDATE="Joomla Plugin Updates (version_update)"
|
||||
COM_COMPONENTBUILDER_CONFIG_LANGUAGE_LABEL="Language"
|
||||
@ -4362,6 +4367,7 @@ COM_COMPONENTBUILDER_DASHBOARD_FIELDS="Fields<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_FIELDS_CATID="Categories For<br />Fields"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_FIELDTYPES="Fieldtypes<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_FIELDTYPES_CATID="Categories For<br />Fieldtypes"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_FIELD_ADD="Add Field<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_GET_SNIPPETS="Get Snippets<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_HELP_DOCUMENTS="Help Documents<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_IMPORTJCBPACKAGES="Import JCB Packages<br /><br />"
|
||||
@ -4373,6 +4379,7 @@ COM_COMPONENTBUILDER_DASHBOARD_LAYOUTS="Layouts<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_LIBRARIES="Libraries<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_LIST_OF_RECORDS="Dashboard (list of records)"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_PLACEHOLDERS="Placeholders<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_POWERS="Powers<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_SERVERS="Servers<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_SITE_VIEWS="Site Views<br /><br />"
|
||||
COM_COMPONENTBUILDER_DASHBOARD_SITE_VIEW_ADD="Add Site View<br /><br />"
|
||||
@ -4391,7 +4398,7 @@ COM_COMPONENTBUILDER_DISPLAY_SWITCH_FOR_DYNAMIC_PLACEMENT_IN_RELATION_TO_THE_USE
|
||||
COM_COMPONENTBUILDER_DIVERGED="Diverged"
|
||||
COM_COMPONENTBUILDER_DIVERGED_MEANS_YOUR_BLOCAL_SNIPPETB_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_A_BDIVERGEDB_FROM_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_IN_THAT_IT_DOES_NOT_HAVE_THE_SAME_BCREATIONB_OR_BMODIFIED_DATEB="Diverged means your <b>local snippet</b> (with the same name, library and type) has a <b>diverged</b> from the community snippet (with the same name, library and type) in that it does not have the same <b>creation</b> or <b>modified date</b>."
|
||||
COM_COMPONENTBUILDER_DOES_THIS_PACKAGE_REQUIRE_A_KEY_TO_INSTALL="Does this package require a key to install."
|
||||
COM_COMPONENTBUILDER_DOWNLOAD="download"
|
||||
COM_COMPONENTBUILDER_DOWNLOAD_UPDATE="Download Update"
|
||||
COM_COMPONENTBUILDER_DO_NOT_ADD="Do not add"
|
||||
COM_COMPONENTBUILDER_DTCOMPANYDTDDSDD="<dt>Company</dt><dd>%s</dd>"
|
||||
COM_COMPONENTBUILDER_DTCOPYRIGHTDTDDSDD="<dt>Copyright</dt><dd>%s</dd>"
|
||||
@ -4734,6 +4741,7 @@ COM_COMPONENTBUILDER_EXPORT_DATA_DESC="Allows users in this group to export data
|
||||
COM_COMPONENTBUILDER_EXPORT_FAILED="Export Failed"
|
||||
COM_COMPONENTBUILDER_EXPORT_FAILED_PLEASE_TRY_AGAIN_LATTER="Export failed, please try again latter!"
|
||||
COM_COMPONENTBUILDER_EXPORT_JCB_PACKAGES="Export JCB Packages"
|
||||
COM_COMPONENTBUILDER_EXTENDS="Extends"
|
||||
COM_COMPONENTBUILDER_EXTRA_PROPERTIES_LIKE_LISTCLASS_ESCAPE_DISPLAY_VALIDATEBR_SMALLHERE_YOU_CAN_SET_THE_EXTRA_PROPERTIES_FOR_THIS_FIELDSMALL="Extra properties like (listclass, escape, display, validate)<br /><small>Here you can set the extra properties for this field</small>"
|
||||
COM_COMPONENTBUILDER_FADE_IN="Fade In"
|
||||
COM_COMPONENTBUILDER_FIELD="Field"
|
||||
@ -4746,6 +4754,8 @@ COM_COMPONENTBUILDER_FIELDS_BATCH_USE="Fields Batch Use"
|
||||
COM_COMPONENTBUILDER_FIELDS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch fields"
|
||||
COM_COMPONENTBUILDER_FIELDS_CREATE="Fields Create"
|
||||
COM_COMPONENTBUILDER_FIELDS_CREATE_DESC="Allows the users in this group to create create fields"
|
||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD="Fields Dashboard Add"
|
||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of field"
|
||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST="Fields Dashboard List"
|
||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of field"
|
||||
COM_COMPONENTBUILDER_FIELDS_DELETE="Fields Delete"
|
||||
@ -5251,6 +5261,8 @@ COM_COMPONENTBUILDER_FILTER_MODELING_METHOD_ASCENDING="Modeling Method ascending
|
||||
COM_COMPONENTBUILDER_FILTER_MODELING_METHOD_DESCENDING="Modeling Method descending"
|
||||
COM_COMPONENTBUILDER_FILTER_MODIFIED_DATE_ASCENDING="Modified Date ascending"
|
||||
COM_COMPONENTBUILDER_FILTER_MODIFIED_DATE_DESCENDING="Modified Date descending"
|
||||
COM_COMPONENTBUILDER_FILTER_NAMESPACE_ASCENDING="Namespace ascending"
|
||||
COM_COMPONENTBUILDER_FILTER_NAMESPACE_DESCENDING="Namespace descending"
|
||||
COM_COMPONENTBUILDER_FILTER_NAME_ASCENDING="Name ascending"
|
||||
COM_COMPONENTBUILDER_FILTER_NAME_DESCENDING="Name descending"
|
||||
COM_COMPONENTBUILDER_FILTER_NAME_IN_CODE_NAMING_CONVENTIONS_ASCENDING="Name in Code
|
||||
@ -5307,6 +5319,7 @@ COM_COMPONENTBUILDER_FILTER_PUBLISHED_LIBRARIES="Status options for libraries"
|
||||
COM_COMPONENTBUILDER_FILTER_PUBLISHED_LIBRARIES_CONFIG="Status options for libraries config"
|
||||
COM_COMPONENTBUILDER_FILTER_PUBLISHED_LIBRARIES_FILES_FOLDERS_URLS="Status options for libraries files folders urls"
|
||||
COM_COMPONENTBUILDER_FILTER_PUBLISHED_PLACEHOLDERS="Status options for placeholders"
|
||||
COM_COMPONENTBUILDER_FILTER_PUBLISHED_POWERS="Status options for powers"
|
||||
COM_COMPONENTBUILDER_FILTER_PUBLISHED_SERVERS="Status options for servers"
|
||||
COM_COMPONENTBUILDER_FILTER_PUBLISHED_SITE_VIEWS="Status options for site views"
|
||||
COM_COMPONENTBUILDER_FILTER_PUBLISHED_SNIPPETS="Status options for snippets"
|
||||
@ -5355,6 +5368,7 @@ COM_COMPONENTBUILDER_FILTER_SEARCH_LIBRARIES="Search the library items. Prefix w
|
||||
COM_COMPONENTBUILDER_FILTER_SEARCH_LIBRARIES_CONFIG="Search the library config items. Prefix with ID: to search for an item by ID."
|
||||
COM_COMPONENTBUILDER_FILTER_SEARCH_LIBRARIES_FILES_FOLDERS_URLS="Search the library files folders urls items. Prefix with ID: to search for an item by ID."
|
||||
COM_COMPONENTBUILDER_FILTER_SEARCH_PLACEHOLDERS="Search the placeholder items. Prefix with ID: to search for an item by ID."
|
||||
COM_COMPONENTBUILDER_FILTER_SEARCH_POWERS="Search the power items. Prefix with ID: to search for an item by ID."
|
||||
COM_COMPONENTBUILDER_FILTER_SEARCH_SERVERS="Search the server items. Prefix with ID: to search for an item by ID."
|
||||
COM_COMPONENTBUILDER_FILTER_SEARCH_SITE_VIEWS="Search the site view items. Prefix with ID: to search for an item by ID."
|
||||
COM_COMPONENTBUILDER_FILTER_SEARCH_SNIPPETS="Search the snippet items. Prefix with ID: to search for an item by ID."
|
||||
@ -5396,6 +5410,8 @@ COM_COMPONENTBUILDER_FILTER_SELECT_TARGET_AREA="Select Target Area"
|
||||
COM_COMPONENTBUILDER_FILTER_SELECT_TARGET_FOLDER="Select Target Folder"
|
||||
COM_COMPONENTBUILDER_FILTER_SELECT_TYPE="Select Type"
|
||||
COM_COMPONENTBUILDER_FILTER_SELECT_TYPE_BEHAVIOR="Select Type Behavior"
|
||||
COM_COMPONENTBUILDER_FILTER_SELECT_TYPE_OF_POWER="Select Type of Power"
|
||||
COM_COMPONENTBUILDER_FILTER_SELECT_VERSION="Select Version"
|
||||
COM_COMPONENTBUILDER_FILTER_SELECT_VISIBILITY="Select Visibility"
|
||||
COM_COMPONENTBUILDER_FILTER_SET_STRING_VALUE_ASCENDING="Set String Value ascending"
|
||||
COM_COMPONENTBUILDER_FILTER_SET_STRING_VALUE_DESCENDING="Set String Value descending"
|
||||
@ -5419,8 +5435,12 @@ COM_COMPONENTBUILDER_FILTER_TYPE_ASCENDING="Type ascending"
|
||||
COM_COMPONENTBUILDER_FILTER_TYPE_BEHAVIOR_ASCENDING="Type Behavior ascending"
|
||||
COM_COMPONENTBUILDER_FILTER_TYPE_BEHAVIOR_DESCENDING="Type Behavior descending"
|
||||
COM_COMPONENTBUILDER_FILTER_TYPE_DESCENDING="Type descending"
|
||||
COM_COMPONENTBUILDER_FILTER_TYPE_OF_POWER_ASCENDING="Type of Power ascending"
|
||||
COM_COMPONENTBUILDER_FILTER_TYPE_OF_POWER_DESCENDING="Type of Power descending"
|
||||
COM_COMPONENTBUILDER_FILTER_URL_ASCENDING="URL ascending"
|
||||
COM_COMPONENTBUILDER_FILTER_URL_DESCENDING="URL descending"
|
||||
COM_COMPONENTBUILDER_FILTER_VERSION_ASCENDING="Version ascending"
|
||||
COM_COMPONENTBUILDER_FILTER_VERSION_DESCENDING="Version descending"
|
||||
COM_COMPONENTBUILDER_FILTER_VISIBILITY_ASCENDING="Visibility ascending"
|
||||
COM_COMPONENTBUILDER_FILTER_VISIBILITY_DESCENDING="Visibility descending"
|
||||
COM_COMPONENTBUILDER_FOLDER="Folder"
|
||||
@ -5462,6 +5482,8 @@ COM_COMPONENTBUILDER_GET_SNIPPETS_TEMPLATES_BUTTON_ACCESS="Get Snippets Template
|
||||
COM_COMPONENTBUILDER_GET_SNIPPETS_TEMPLATES_BUTTON_ACCESS_DESC="Allows the users in this group to access the templates button."
|
||||
COM_COMPONENTBUILDER_GET_THE_SNIPPET_FROM_GITHUB_AND_INSTALL_IT_LOCALLY="Get the snippet from gitHub and install it locally"
|
||||
COM_COMPONENTBUILDER_GET_THE_SNIPPET_FROM_GITHUB_AND_UPDATE_THE_LOCAL_VERSION="Get the snippet from gitHub and update the local version"
|
||||
COM_COMPONENTBUILDER_GET_TOKEN="Get Token"
|
||||
COM_COMPONENTBUILDER_GET_TOKEN_FROM_VDM_FOR_UPDATES_AND_ADD_IT_TO_YOUR_GLOBAL_OPTIONS="Get token from VDM for updates, and add it to your global options"
|
||||
COM_COMPONENTBUILDER_GLOBAL="Global"
|
||||
COM_COMPONENTBUILDER_GLUECODE="Glue/Code"
|
||||
COM_COMPONENTBUILDER_GREAT_THIS_FUNCTION_NAME_WILL_WORK="Great, this function name will work!"
|
||||
@ -5627,6 +5649,7 @@ COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_FIELDS="Select the file to import da
|
||||
COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_FIELDTYPES="Select the file to import data to fieldtypes."
|
||||
COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_HELP_DOCUMENTS="Select the file to import data to help_documents."
|
||||
COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_JOOMLA_COMPONENTS="Select the file to import data to joomla_components."
|
||||
COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_JOOMLA_MODULES="Select the file to import data to joomla_modules."
|
||||
COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_LANGUAGES="Select the file to import data to languages."
|
||||
COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_LANGUAGE_TRANSLATIONS="Select the file to import data to language_translations."
|
||||
COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_LAYOUTS="Select the file to import data to layouts."
|
||||
@ -5646,7 +5669,6 @@ COM_COMPONENTBUILDER_IMPORT_UPLOAD_BOTTON="Upload File"
|
||||
COM_COMPONENTBUILDER_INACTIVE="Inactive"
|
||||
COM_COMPONENTBUILDER_IN_SYNC="In Sync"
|
||||
COM_COMPONENTBUILDER_ISOLATE="Isolate"
|
||||
COM_COMPONENTBUILDER_ISSUE="issue"
|
||||
COM_COMPONENTBUILDER_IS_BEING_COMPILED="is being compiled"
|
||||
COM_COMPONENTBUILDER_IS_NOT_ONLY_FOUR_LISTRADIOCHECKBOXES="Is Not (only 4 list/radio/checkboxes)"
|
||||
COM_COMPONENTBUILDER_IS_ONLY_FOUR_LISTRADIOCHECKBOXES="Is (only 4 list/radio/checkboxes)"
|
||||
@ -6140,6 +6162,8 @@ COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE="Joomla Modules Edit State"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla module"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION="Joomla Modules Edit Version"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla modules"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_EXPORT="Joomla Modules Export"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_EXPORT_DESC="Allows the users in this group to export export joomla modules"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS="Joomla Modules Files, Folders & URLs"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS="Joomla Modules Files Folders Urls Access"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS_DESC="Allows the users in this group to access access joomla modules files folders urls"
|
||||
@ -6182,6 +6206,8 @@ COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_UNFEATURED="%s Jo
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_UNFEATURED_1="%s Joomla Module Files, Folders & URLs unfeatured."
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_UNPUBLISHED="%s Joomla Modules Files, Folders & URLs unpublished."
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_N_ITEMS_UNPUBLISHED_1="%s Joomla Module Files, Folders & URLs unpublished."
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_IMPORT="Joomla Modules Import"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_IMPORT_DESC="Allows the users in this group to import import joomla modules"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_ARCHIVED="%s Joomla Modules archived."
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_ARCHIVED_1="%s Joomla Module archived."
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_N_ITEMS_CHECKED_IN_0="No Joomla Module successfully checked in."
|
||||
@ -7216,8 +7242,6 @@ COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_VERSION_DESC="A count of the number of
|
||||
COM_COMPONENTBUILDER_LANGUAGE_TRANSLATION_VERSION_LABEL="Version"
|
||||
COM_COMPONENTBUILDER_LANGUAGE_VERSION_DESC="A count of the number of times this Language has been revised."
|
||||
COM_COMPONENTBUILDER_LANGUAGE_VERSION_LABEL="Version"
|
||||
COM_COMPONENTBUILDER_LAST_FEW_RELEASES_FROM_GITHUB_IS_LOADING="Last few releases from Github is loading"
|
||||
COM_COMPONENTBUILDER_LATEST_RELEASE="Latest Release"
|
||||
COM_COMPONENTBUILDER_LAYOUT="Layout"
|
||||
COM_COMPONENTBUILDER_LAYOUTS="Layouts"
|
||||
COM_COMPONENTBUILDER_LAYOUTS_ACCESS="Layouts Access"
|
||||
@ -7740,12 +7764,12 @@ COM_COMPONENTBUILDER_NAME_DESC="Name (Desc)"
|
||||
COM_COMPONENTBUILDER_NAME_OF_DYNAMICGET="Name of dynamicGet"
|
||||
COM_COMPONENTBUILDER_NEED_HELP="Need help?"
|
||||
COM_COMPONENTBUILDER_NEW="New"
|
||||
COM_COMPONENTBUILDER_NEW_ISSUE="New Issue"
|
||||
COM_COMPONENTBUILDER_NEW_MEANS_THAT_WE_COULD_NOT_FIND_A_LOCAL_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_AND_SO_HAVE_MARKED_THIS_SNIPPET_AS_NEW="New means that we could not find a local snippet with the same name, library and type, and so have marked this snippet as new."
|
||||
COM_COMPONENTBUILDER_NEW_NOTICE="New Notice"
|
||||
COM_COMPONENTBUILDER_NO="No"
|
||||
COM_COMPONENTBUILDER_NONE="None"
|
||||
COM_COMPONENTBUILDER_NONE_DB="None DB"
|
||||
COM_COMPONENTBUILDER_NONE_FOUND="None found"
|
||||
COM_COMPONENTBUILDER_NONE_SELECTED="None selected"
|
||||
COM_COMPONENTBUILDER_NOTICE_BOARD="Notice Board"
|
||||
COM_COMPONENTBUILDER_NOTRANSLATION="no-translation"
|
||||
@ -7781,12 +7805,7 @@ COM_COMPONENTBUILDER_ONLY_IN_LINKED_LIST_VIEWS="Only in Linked List Views"
|
||||
COM_COMPONENTBUILDER_ONLY_ONE_COMPONENT_CAN_BE_CLONED_AT_A_TIME_PLEASE_SELECT_ONE_AND_TRY_AGAIN="Only one component can be cloned at a time, please select one and try again!"
|
||||
COM_COMPONENTBUILDER_ONLY_SZIP_FILE_WAS_REMOVED_THE_FROM_TMP_FOLDER_DURING_INSTALLATION="Only (%s.zip) file was removed the from tmp folder during installation!"
|
||||
COM_COMPONENTBUILDER_ONLY_USE_THE_BNONE_DBB_OPTION_IF_YOU_ARE_PLANNING_ON_TARGETING_THIS_FIELD_WITH_JAVASCRIPTCUSTOM_PHP_TO_MOVE_ITS_VALUE_INTO_ANOTHER_FIELD_THAT_DOES_GET_SAVED_TO_THE_DATABASE="Only use the <b>None DB</b> option if you are planning on targeting this field with JavaScript/Custom PHP to move its value into another field that does get saved to the database."
|
||||
COM_COMPONENTBUILDER_ON_GITHUB="on Github"
|
||||
COM_COMPONENTBUILDER_OPEN="Open"
|
||||
COM_COMPONENTBUILDER_OPENED="opened"
|
||||
COM_COMPONENTBUILDER_OPENED_THIS="opened this"
|
||||
COM_COMPONENTBUILDER_OPEN_LIBRARY_SNIPPETS="Open Library Snippets"
|
||||
COM_COMPONENTBUILDER_OPEN_ON_GITHUB="Open on Github"
|
||||
COM_COMPONENTBUILDER_OPTIONS="Options"
|
||||
COM_COMPONENTBUILDER_ORDER_BEFORE="Order Before"
|
||||
COM_COMPONENTBUILDER_ORDER_IN_EDIT="Order in Edit"
|
||||
@ -7923,6 +7942,172 @@ COM_COMPONENTBUILDER_PLEASE_WAIT="Please wait!"
|
||||
COM_COMPONENTBUILDER_PLEASE_WAIT_LOADING="Please wait, loading"
|
||||
COM_COMPONENTBUILDER_PLUGIN="Plugin"
|
||||
COM_COMPONENTBUILDER_PLUGINS="Plugins"
|
||||
COM_COMPONENTBUILDER_POWER="Power"
|
||||
COM_COMPONENTBUILDER_POWERS="Powers"
|
||||
COM_COMPONENTBUILDER_POWERS_ACCESS="Powers Access"
|
||||
COM_COMPONENTBUILDER_POWERS_ACCESS_DESC="Allows the users in this group to access access powers"
|
||||
COM_COMPONENTBUILDER_POWERS_A_HREFS_TARGET_BLANK_TITLEOPEN_POWERSA_WITH_VERSION_S_ALREADY_EXIST="Power:%s [<a href='%s' target='_blank' title='open power'>%s</a>] with version (%s) already exist."
|
||||
COM_COMPONENTBUILDER_POWERS_BATCH_OPTIONS="Batch process the selected Powers"
|
||||
COM_COMPONENTBUILDER_POWERS_BATCH_TIP="All changes will be applied to all selected Powers"
|
||||
COM_COMPONENTBUILDER_POWERS_BATCH_USE="Powers Batch Use"
|
||||
COM_COMPONENTBUILDER_POWERS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch powers"
|
||||
COM_COMPONENTBUILDER_POWERS_CREATE="Powers Create"
|
||||
COM_COMPONENTBUILDER_POWERS_CREATE_DESC="Allows the users in this group to create create powers"
|
||||
COM_COMPONENTBUILDER_POWERS_DASHBOARD_LIST="Powers Dashboard List"
|
||||
COM_COMPONENTBUILDER_POWERS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of power"
|
||||
COM_COMPONENTBUILDER_POWERS_DELETE="Powers Delete"
|
||||
COM_COMPONENTBUILDER_POWERS_DELETE_DESC="Allows the users in this group to delete delete powers"
|
||||
COM_COMPONENTBUILDER_POWERS_DETAILS="Details"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT="Powers Edit"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_BY="Powers Edit Created By"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by powers"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_DATE="Powers Edit Created Date"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created powers"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_DESC="Allows the users in this group to edit the power"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_OWN="Powers Edit Own"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_OWN_DESC="Allows the users in this group to edit edit own powers created by them"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_STATE="Powers Edit State"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_STATE_DESC="Allows the users in this group to update the state of the power"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_VERSION="Powers Edit Version"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version powers"
|
||||
COM_COMPONENTBUILDER_POWERS_NAME="Name"
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_ARCHIVED="%s Powers archived."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_ARCHIVED_1="%s Power archived."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_CHECKED_IN_0="No Power successfully checked in."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_CHECKED_IN_1="%d Power successfully checked in."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_CHECKED_IN_MORE="%d Powers successfully checked in."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_DELETED="%s Powers deleted."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_DELETED_1="%s Power deleted."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_FAILED_PUBLISHING="%s Powers failed publishing."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_FAILED_PUBLISHING_1="%s Power failed publishing."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_FEATURED="%s Powers featured."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_FEATURED_1="%s Power featured."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_PUBLISHED="%s Powers published."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_PUBLISHED_1="%s Power published."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_TRASHED="%s Powers trashed."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_TRASHED_1="%s Power trashed."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_UNFEATURED="%s Powers unfeatured."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_UNFEATURED_1="%s Power unfeatured."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_UNPUBLISHED="%s Powers unpublished."
|
||||
COM_COMPONENTBUILDER_POWERS_N_ITEMS_UNPUBLISHED_1="%s Power unpublished."
|
||||
COM_COMPONENTBUILDER_POWERS_SUBMENU="Powers Submenu"
|
||||
COM_COMPONENTBUILDER_POWERS_SUBMENU_DESC="Allows the users in this group to submenu of power"
|
||||
COM_COMPONENTBUILDER_POWER_ABSTRACT_CLASS="abstract class"
|
||||
COM_COMPONENTBUILDER_POWER_ADD_HEAD_DESCRIPTION="You can add your own custom header script, combined with the default header script that make the extended class work."
|
||||
COM_COMPONENTBUILDER_POWER_ADD_HEAD_LABEL="Add Custom Class Header"
|
||||
COM_COMPONENTBUILDER_POWER_AS_LABEL="as"
|
||||
COM_COMPONENTBUILDER_POWER_CLASS="class"
|
||||
COM_COMPONENTBUILDER_POWER_CODE="Code"
|
||||
COM_COMPONENTBUILDER_POWER_CREATED_BY_DESC="The user that created this Power."
|
||||
COM_COMPONENTBUILDER_POWER_CREATED_BY_LABEL="Created By"
|
||||
COM_COMPONENTBUILDER_POWER_CREATED_DATE_DESC="The date this Power was created."
|
||||
COM_COMPONENTBUILDER_POWER_CREATED_DATE_LABEL="Created Date"
|
||||
COM_COMPONENTBUILDER_POWER_DESCRIPTION_DESCRIPTION="Add Description Here"
|
||||
COM_COMPONENTBUILDER_POWER_DESCRIPTION_HINT="Add Description Here"
|
||||
COM_COMPONENTBUILDER_POWER_DESCRIPTION_LABEL="Description"
|
||||
COM_COMPONENTBUILDER_POWER_EDIT="Editing the Power"
|
||||
COM_COMPONENTBUILDER_POWER_ERROR_UNIQUE_ALIAS="Another Power has the same alias."
|
||||
COM_COMPONENTBUILDER_POWER_EXTENDS_CUSTOM_DESCRIPTION="The custom class, this class should extend"
|
||||
COM_COMPONENTBUILDER_POWER_EXTENDS_CUSTOM_LABEL="Extends - Custom"
|
||||
COM_COMPONENTBUILDER_POWER_EXTENDS_CUSTOM_MESSAGE="Error! Please add the custom class, this class should extend."
|
||||
COM_COMPONENTBUILDER_POWER_EXTENDS_DESCRIPTION="The class, this class should extend"
|
||||
COM_COMPONENTBUILDER_POWER_EXTENDS_LABEL="Extends"
|
||||
COM_COMPONENTBUILDER_POWER_FINAL_CLASS="final class"
|
||||
COM_COMPONENTBUILDER_POWER_GUID_DESCRIPTION="Globally Unique Identifier"
|
||||
COM_COMPONENTBUILDER_POWER_GUID_HINT="Auto Generated"
|
||||
COM_COMPONENTBUILDER_POWER_GUID_LABEL="GUID"
|
||||
COM_COMPONENTBUILDER_POWER_HEAD_DESCRIPTION="The class header to add any header values can be added."
|
||||
COM_COMPONENTBUILDER_POWER_HEAD_LABEL="Class Header"
|
||||
COM_COMPONENTBUILDER_POWER_ID="Id"
|
||||
COM_COMPONENTBUILDER_POWER_IMPLEMENTS_CUSTOM_DESCRIPTION="Add the custom interface(s) this class must implement. Comma separate them, and remember to manually add their use statements to the header area."
|
||||
COM_COMPONENTBUILDER_POWER_IMPLEMENTS_CUSTOM_LABEL="Implements interface(s) - Custom"
|
||||
COM_COMPONENTBUILDER_POWER_IMPLEMENTS_CUSTOM_MESSAGE="Error! Please add the custom interface(s) this class must implement."
|
||||
COM_COMPONENTBUILDER_POWER_IMPLEMENTS_DESCRIPTION="The interface(s), this class should implement."
|
||||
COM_COMPONENTBUILDER_POWER_IMPLEMENTS_LABEL="Implements interface(s)"
|
||||
COM_COMPONENTBUILDER_POWER_INTERFACE="interface"
|
||||
COM_COMPONENTBUILDER_POWER_LOAD="Load"
|
||||
COM_COMPONENTBUILDER_POWER_LOAD_LABEL="load"
|
||||
COM_COMPONENTBUILDER_POWER_LOAD_POWERS_NOTE_DESCRIPTION="<p>When you would like to load a power to the project, but you do not want that power to be part of the <b>use namespace declarations</b> in the header of this power.</p>
|
||||
<p>You do not need to again select any power that is already selected in the <b>Extends</b>, <b>Implements</b>, or <b>Use Selection</b> fields, since they are already being loaded.</p>"
|
||||
COM_COMPONENTBUILDER_POWER_LOAD_POWERS_NOTE_LABEL="When to Load Powers Here?"
|
||||
COM_COMPONENTBUILDER_POWER_LOAD_SELECTION_DESCRIPTION="Select powers that you want to make sure also load when this power is loaded."
|
||||
COM_COMPONENTBUILDER_POWER_LOAD_SELECTION_LABEL="Load Powers"
|
||||
COM_COMPONENTBUILDER_POWER_MAIN_CLASS_CODE_DESCRIPTION="Add the properties & methods here."
|
||||
COM_COMPONENTBUILDER_POWER_MAIN_CLASS_CODE_LABEL="Properties & Methods"
|
||||
COM_COMPONENTBUILDER_POWER_METHOD="Method"
|
||||
COM_COMPONENTBUILDER_POWER_METHOD_LABEL="Methods"
|
||||
COM_COMPONENTBUILDER_POWER_METHOD_SELECTION_DESCRIPTION="Select methods you want to use in your power."
|
||||
COM_COMPONENTBUILDER_POWER_METHOD_SELECTION_LABEL="Method Selection"
|
||||
COM_COMPONENTBUILDER_POWER_MODIFIED_BY_DESC="The last user that modified this Power."
|
||||
COM_COMPONENTBUILDER_POWER_MODIFIED_BY_LABEL="Modified By"
|
||||
COM_COMPONENTBUILDER_POWER_MODIFIED_DATE_DESC="The date this Power was modified."
|
||||
COM_COMPONENTBUILDER_POWER_MODIFIED_DATE_LABEL="Modified Date"
|
||||
COM_COMPONENTBUILDER_POWER_NAMESPACE_DESCRIPTION="Add the namespace of this class."
|
||||
COM_COMPONENTBUILDER_POWER_NAMESPACE_DETAILS_DESCRIPTION="<div class='uk-scrollable-text'>
|
||||
<p>We will use the namespace value to build the folder structure and filename. This namespace will also directly be used as the <b>use</b> declaration wherever you link this power. Therefore the namespace declared here must end with the <b>filename</b>, and this file name must match the case of the terminating class name.<br />
|
||||
<small>Example (namespace): <b>ComponentName\Sub\ClassName</b></small><br />
|
||||
<i>JCB will build the following file path</i><br />
|
||||
<small>Example (filepath): <b>root/libraries/jcb_powers/ComponentName.Sub/src/ClassName.php</b></small><br />
|
||||
<i>With a four section namespace</i><br />
|
||||
<small>Example (namespace): <b>ComponentName\Sub\Type\ClassName</b></small><br />
|
||||
<i>JCB will build the following file path</i><br />
|
||||
<small>Example (filepath): <b>root/libraries/jcb_powers/ComponentName.Sub.Type/src/ClassName.php</b></small><br />
|
||||
<i>To add a folder inside the src folder use [.] in class name</i><br />
|
||||
<small>Example (namespace): <b>ComponentName\Sub\Util.ClassName</b></small><br />
|
||||
<small>Example (JCB builds this namespace): <b>ComponentName\Sub\Util\ClassName</b></small><br />
|
||||
<i>JCB will build the following file path</i><br />
|
||||
<small>Example (filepath): <b>root/libraries/jcb_powers/ComponentName.Sub/src/Util/ClassName.php</b></small></p>
|
||||
|
||||
<p>The component placeholder also works in namespacing, as well as normal placeholders:<br />
|
||||
<small>Example: <b>[[[Component]]]\SubNamespaceNames\ClassName</b></small></p>
|
||||
|
||||
<p>We will also use the namespacing for auto loading in your project wherever you link this power.</p>
|
||||
<p><small>The <b>jcb_powers</b> can be changed globally and per/component (soon).</small><br /><small>Make your powers load system wide with a plugin (soon).</small></p>
|
||||
|
||||
<p>For more info on how all this works: https://www.php-fig.org/psr/psr-4/</p>
|
||||
</div>"
|
||||
COM_COMPONENTBUILDER_POWER_NAMESPACE_DETAILS_LABEL="Namespacing in JCB"
|
||||
COM_COMPONENTBUILDER_POWER_NAMESPACE_HINT="ComponentName\Powers\ClassName"
|
||||
COM_COMPONENTBUILDER_POWER_NAMESPACE_LABEL="Namespace"
|
||||
COM_COMPONENTBUILDER_POWER_NAMESPACE_MESSAGE="Error! Please add namespace here."
|
||||
COM_COMPONENTBUILDER_POWER_NAME_DESCRIPTION="Enter Name Here"
|
||||
COM_COMPONENTBUILDER_POWER_NAME_HINT="Name Here"
|
||||
COM_COMPONENTBUILDER_POWER_NAME_LABEL="Name"
|
||||
COM_COMPONENTBUILDER_POWER_NAME_MESSAGE="Error! Please add name here."
|
||||
COM_COMPONENTBUILDER_POWER_NEW="A New Power"
|
||||
COM_COMPONENTBUILDER_POWER_NO="No"
|
||||
COM_COMPONENTBUILDER_POWER_NOTE_LINKED_TO_NOTICE_DESCRIPTION="<div id='display_linked_to'>Searching the database.<span class='loading-dots'></span></div>"
|
||||
COM_COMPONENTBUILDER_POWER_NOTE_LINKED_TO_NOTICE_LABEL="Linked To"
|
||||
COM_COMPONENTBUILDER_POWER_NOT_REQUIRED="Not Required"
|
||||
COM_COMPONENTBUILDER_POWER_ORDERING_LABEL="Ordering"
|
||||
COM_COMPONENTBUILDER_POWER_PERMISSION="Permissions"
|
||||
COM_COMPONENTBUILDER_POWER_POWER_VERSION_DESCRIPTION="Add Version Number Here"
|
||||
COM_COMPONENTBUILDER_POWER_POWER_VERSION_HINT="1.0.0"
|
||||
COM_COMPONENTBUILDER_POWER_POWER_VERSION_LABEL="Version"
|
||||
COM_COMPONENTBUILDER_POWER_POWER_VERSION_MESSAGE="Error! Please add version here."
|
||||
COM_COMPONENTBUILDER_POWER_PROPERTY="Property"
|
||||
COM_COMPONENTBUILDER_POWER_PROPERTY_LABEL="Properties"
|
||||
COM_COMPONENTBUILDER_POWER_PROPERTY_SELECTION_DESCRIPTION="Select properties you want to use in your power."
|
||||
COM_COMPONENTBUILDER_POWER_PROPERTY_SELECTION_LABEL="Property Selection"
|
||||
COM_COMPONENTBUILDER_POWER_PUBLISHING="Publishing"
|
||||
COM_COMPONENTBUILDER_POWER_RUN_EXPANSION_BUTTON_ACCESS="Power Run Expansion Button Access"
|
||||
COM_COMPONENTBUILDER_POWER_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button."
|
||||
COM_COMPONENTBUILDER_POWER_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Power to customise the alias."
|
||||
COM_COMPONENTBUILDER_POWER_STATUS="Status"
|
||||
COM_COMPONENTBUILDER_POWER_SYSTEM_NAME_DESCRIPTION="Used only in the system."
|
||||
COM_COMPONENTBUILDER_POWER_SYSTEM_NAME_HINT="The System Name Here"
|
||||
COM_COMPONENTBUILDER_POWER_SYSTEM_NAME_LABEL="System Name"
|
||||
COM_COMPONENTBUILDER_POWER_SYSTEM_NAME_MESSAGE="Error! Please add some text here."
|
||||
COM_COMPONENTBUILDER_POWER_TRAIT="trait"
|
||||
COM_COMPONENTBUILDER_POWER_TYPE_DESCRIPTION="The type of power being build"
|
||||
COM_COMPONENTBUILDER_POWER_TYPE_LABEL="Type of Power"
|
||||
COM_COMPONENTBUILDER_POWER_USE="Use"
|
||||
COM_COMPONENTBUILDER_POWER_USE_LABEL="use"
|
||||
COM_COMPONENTBUILDER_POWER_USE_SELECTION_DESCRIPTION="Select namespace you want to use in your power."
|
||||
COM_COMPONENTBUILDER_POWER_USE_SELECTION_LABEL="Use Selection"
|
||||
COM_COMPONENTBUILDER_POWER_VERSION_DESC="A count of the number of times this Power has been revised."
|
||||
COM_COMPONENTBUILDER_POWER_VERSION_LABEL="Version"
|
||||
COM_COMPONENTBUILDER_POWER_YES="Yes"
|
||||
COM_COMPONENTBUILDER_PROPERTIES="Properties"
|
||||
COM_COMPONENTBUILDER_PROPERTIESBR_SMALLHERE_YOU_CAN_SET_THE_PROPERTIES_FOR_THIS_FIELDSMALL="Properties<br /><small>Here you can set the properties for this field.</small>"
|
||||
COM_COMPONENTBUILDER_PROPERTY="Property"
|
||||
@ -7934,7 +8119,6 @@ COM_COMPONENTBUILDER_PUBLISHED="Published"
|
||||
COM_COMPONENTBUILDER_PUBLISHING="Publishing"
|
||||
COM_COMPONENTBUILDER_READY_TO_COMPILE_A_COMPONENT="Ready to compile a component"
|
||||
COM_COMPONENTBUILDER_REFRESH="Refresh"
|
||||
COM_COMPONENTBUILDER_RELEASED_THIS="released this"
|
||||
COM_COMPONENTBUILDER_REMOVE="Remove"
|
||||
COM_COMPONENTBUILDER_REMOVING_ALL_ZIP_PACKAGES_FROM_THE_TEMPORARY_FOLDER_OF_THE_JOOMLA_INSTALL="Removing all zip packages from the temporary folder of the Joomla install"
|
||||
COM_COMPONENTBUILDER_RENAME="Rename"
|
||||
@ -7942,9 +8126,7 @@ COM_COMPONENTBUILDER_REPORT_AN_ISSUE_BSB="Report an issue: <b>%s</b>"
|
||||
COM_COMPONENTBUILDER_REQUIRES_THE_VALUE_ENTERED_BE_ONE_OF_THE_OPTIONS_IN_AN_ELEMENT_OF_TYPEQUOTLISTQUOT_THAT_IS_THAT_THE_ELEMENT_IS_A_SELECT_LIST="Requires the value entered be one of the options in an element of type="list": that is, that the element is a select list."
|
||||
COM_COMPONENTBUILDER_REQUIRES_THE_VALUE_TO_BE_A_TELEPHONE_NUMBER_COMPLYING_WITH_THE_STANDARDS_OF_NANPA_ITUT_TRECEONE_HUNDRED_AND_SIXTY_FOUR_OR_IETF_RFCFOUR_THOUSAND_NINE_HUNDRED_AND_THIRTY_THREE="Requires the value to be a Telephone number complying with the standards of nanpa, ITU-T T-REC-E.164 or ietf rfc4933."
|
||||
COM_COMPONENTBUILDER_REQUIRES_THE_VALUE_TO_BE_THE_SAME_AS_THAT_HELD_IN_THE_FIELD_NAMED_QUOTFIELDQUOT_EGS="Requires the value to be the same as that held in the field named "field", eg:%s"
|
||||
COM_COMPONENTBUILDER_RESPOND_TO_THIS_ISSUE_ON_GITHUB="Respond to this issue on Github"
|
||||
COM_COMPONENTBUILDER_REVERT_ALL_AHEAD_SNIPPETS="Revert All Ahead Snippets"
|
||||
COM_COMPONENTBUILDER_REVIEW_THIS_ISSUE_ON_GITHUB="Review this issue on Github"
|
||||
COM_COMPONENTBUILDER_RIGHT_IN_TAB="Right in Tab"
|
||||
COM_COMPONENTBUILDER_RIGHT_OF_TABS="Right of Tabs"
|
||||
COM_COMPONENTBUILDER_RUN_EXPANSION="Run Expansion"
|
||||
@ -8104,6 +8286,7 @@ COM_COMPONENTBUILDER_SERVER_USERNAME_MESSAGE="Error! Please add the username her
|
||||
COM_COMPONENTBUILDER_SERVER_VERSION_DESC="A count of the number of times this Server has been revised."
|
||||
COM_COMPONENTBUILDER_SERVER_VERSION_LABEL="Version"
|
||||
COM_COMPONENTBUILDER_SET_A_CLASS_VALUE_FOR_THE_LIST_VIEW_OF_THIS_FIELD="Set a class value for the list view of this field."
|
||||
COM_COMPONENTBUILDER_SET_CUSTOM="Set Custom"
|
||||
COM_COMPONENTBUILDER_SHARE_SNIPPETS="Share Snippets"
|
||||
COM_COMPONENTBUILDER_SHOULD_JCB_ADD_ANY_POWERS_THAT_ARE_CONNECTED_TO_THIS_COMPONENT_THIS_MAY_BE_HELPFUL_IF_YOU_ARE_LOADING_POWERS_VIA_ANOTHER_COMPONENT_AND_WOULD_LIKE_TO_AVOID_ADDING_IT_TO_BOTH_JUST_REMEMBER_THAT_IN_THIS_CASE_YOU_NEED_TO_LOAD_THE_POWERS_VIA_A_PLUGIN="Should JCB add any powers that are connected to this component? This may be helpful if you are loading powers via another component, and would like to avoid adding it to both, just remember that in this case you need to load the powers via a plugin."
|
||||
COM_COMPONENTBUILDER_SHOULD_JCB_INSERT_THE_CUSTOM_CODE_PLACEHOLDERS_THIS_IS_ONLY_APPLICABLE_IF_THIS_COMPONENT_HAS_CUSTOM_CODE="Should JCB insert the custom code placeholders? This is only applicable if this component has custom code."
|
||||
@ -8768,6 +8951,7 @@ COM_COMPONENTBUILDER_SUBMENU_LANGUAGE_TRANSLATIONS="Language Translations"
|
||||
COM_COMPONENTBUILDER_SUBMENU_LAYOUTS="Layouts"
|
||||
COM_COMPONENTBUILDER_SUBMENU_LIBRARIES="Libraries"
|
||||
COM_COMPONENTBUILDER_SUBMENU_PLACEHOLDERS="Placeholders"
|
||||
COM_COMPONENTBUILDER_SUBMENU_POWERS="Powers"
|
||||
COM_COMPONENTBUILDER_SUBMENU_SERVERS="Servers"
|
||||
COM_COMPONENTBUILDER_SUBMENU_SITE_VIEWS="Site Views"
|
||||
COM_COMPONENTBUILDER_SUBMENU_SNIPPETS="Snippets"
|
||||
@ -8971,13 +9155,13 @@ COM_COMPONENTBUILDER_THE_URL_S_SET_TO_RETRIEVE_THE_PACKAGES_DID_NOT_RETURN_S_DAT
|
||||
COM_COMPONENTBUILDER_THE_URL_S_SET_TO_RETRIEVE_THE_PACKAGES_DID_NOT_RETURN_VALID_DATA="The url (%s) set to retrieve the packages did not return valid data!"
|
||||
COM_COMPONENTBUILDER_THE_URL_S_SET_TO_RETRIEVE_THE_PACKAGES_DOES_NOT_EXIST="The url (%s) set to retrieve the packages does not exist!"
|
||||
COM_COMPONENTBUILDER_THE_URL_S_SET_TO_RETRIEVE_THE_PACKAGES_DOES_NOT_RETURN_ANY_DATA="The url (%s) set to retrieve the packages does not return any data!"
|
||||
COM_COMPONENTBUILDER_THE_WIKI_CAN_ONLY_BE_LOADED_WHEN_YOUR_JCB_SYSTEM_HAS_INTERNET_CONNECTION="The wiki can only be loaded when your JCB system has internet connection."
|
||||
COM_COMPONENTBUILDER_THE_WIKI_IS_LOADING="The wiki is loading"
|
||||
COM_COMPONENTBUILDER_THIS_BSB_IS_NOT_LINKED_TO_ANY_OTHER_AREAS_OF_JCB_AT_THIS_TIME="This <b>%s</b> is not linked to any other areas of JCB at this time!"
|
||||
COM_COMPONENTBUILDER_THIS_MAY_TAKE_A_WHILE_DEPENDING_ON_THE_SIZE_OF_YOUR_PROJECT="This may take a while depending on the size of your project."
|
||||
COM_COMPONENTBUILDER_THIS_PACKAGE_BPASSEDB_THE_CHECKSUM_VALIDATIONBR_BR_SMALLMANUALLY_ALSO_VALIDATE_THAT_THE_CORRECT_CHECKSUM_WAS_USEDSMALLBR_THIS_CHECKSUM_BSB_MUST_BE_THE_SAME_AS_THE_ONE_FOUND_A_S_SA="This package <b>PASSED</b> the checksum validation!<br /><br /><small>Manually also validate that the correct checksum was used.</small><br />This checksum: <b>%s</b> must be the same as the one found @ <a %s %s</a>"
|
||||
COM_COMPONENTBUILDER_THIS_PACKAGE_HAS_NO_KEY="This package has no key."
|
||||
COM_COMPONENTBUILDER_TITLE="Title"
|
||||
COM_COMPONENTBUILDER_TOTAL_DOWNLOADS="total downloads"
|
||||
COM_COMPONENTBUILDER_TO_ADD_SIMPLY_COPY_AND_PAST_THE_SNIPPET_INTO_YOUR_CODE="To add simply copy and past the snippet into your code."
|
||||
COM_COMPONENTBUILDER_TO_ADD_VALIDATION_TO_A_FIELD_IF_VALIDATION_IS_NOT_PART_OF_FIELD_TYPE_PROPERTIES_LOADED_ABOVE_SO_IF_YOU_HAVE_VALIDATION_SET_AS_A_FIELD_PROPERTY_THIS_EXTRA_PROPERTY_WILL_NOT_BE_NEEDED="To add validation to a field if validation is not part of field type properties loaded above. So if you have validation set as a field property this extra property will not be needed."
|
||||
COM_COMPONENTBUILDER_TO_CHANGE_THE_PACKAGE_OWNER_DEFAULTS_OPEN_THE_BJCB_GLOBAL_OPTIONSB_GO_TO_THE_BCOMPANYB_TAB_AND_ADD_THE_CORRECT_COMPANY_DETAILS_THERE="To change the package owner defaults. Open the <b>JCB Global Options</b>, go to the <b>Company</b> tab and add the correct company details there."
|
||||
@ -9039,6 +9223,7 @@ COM_COMPONENTBUILDER_TYPE_LIBRARY_FILES_FOLDERS_URLS="Library Files, Folders & U
|
||||
COM_COMPONENTBUILDER_TYPE_NAME="Type - Name"
|
||||
COM_COMPONENTBUILDER_TYPE_OR_SELECT_SOME_OPTIONS="Type or select some options"
|
||||
COM_COMPONENTBUILDER_TYPE_PLACEHOLDER="Placeholder"
|
||||
COM_COMPONENTBUILDER_TYPE_POWER="Power"
|
||||
COM_COMPONENTBUILDER_TYPE_SERVER="Server"
|
||||
COM_COMPONENTBUILDER_TYPE_SITE_VIEW="Site View"
|
||||
COM_COMPONENTBUILDER_TYPE_SNIPPET="Snippet"
|
||||
@ -9149,8 +9334,6 @@ COM_COMPONENTBUILDER_VIEW="View"
|
||||
COM_COMPONENTBUILDER_VIEWS="Views"
|
||||
COM_COMPONENTBUILDER_VIEW_BLAME="View Blame"
|
||||
COM_COMPONENTBUILDER_VIEW_DESCRIPTION_OF_COMMUNITY_VERSION="View Description of community version"
|
||||
COM_COMPONENTBUILDER_VIEW_MORE_ISSUES_ON_GITHUB="View more issues on Github"
|
||||
COM_COMPONENTBUILDER_VIEW_MORE_RELEASES_ON_GITHUB="View more releases on Github"
|
||||
COM_COMPONENTBUILDER_VIEW_SNIPPET_OF_COMMUNITY_VERSION="View Snippet of community version"
|
||||
COM_COMPONENTBUILDER_VIEW_SNIPPET_REFERENCE_URL="View Snippet Reference URL"
|
||||
COM_COMPONENTBUILDER_VIEW_THE_CONTRIBUTOR_DETAILS="View the contributor details"
|
||||
@ -9169,6 +9352,7 @@ COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_ONE_HUNDRED_AND_TWENTY_EI
|
||||
COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_ONE_HUNDRED_AND_TWENTY_EIGHT_BIT_ENCRYPTION_USING_THE_ABOVE_THIRTY_TWO_CHARACTER_KEY_WITHOUT_THIS_KEY_IT_WILL_TAKE_THE_CURRENT_TECHNOLOGY_WITH_A_BRUTE_FORCE_ATTACK_METHOD_MORE_THEN_A_HREFHTTPRANDOMIZECOMHOWLONGTOHACKPASS_TARGET_BLANK_TITLEHOW_LONG_TO_HACK_PASSSEVEN_HUNDRED_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZEROA_YEARS_TO_CRACK_THEORETICALLY_UNLESS_THEY_HAVE_THIS_KEY_ABOVE_SO_DO_KEEP_IT_SAFE="Your data is encrypted with a AES 128 bit encryption using the above 32 character key. Without this key it will take the current technology with a brute force attack method more then <a href="http://random-ize.com/how-long-to-hack-pass/" target="_blank" title="How long to hack pass">700 000 000 000 000 000 000 000 000 000 000</a> years to crack theoretically. Unless they have this key above, so do keep it safe."
|
||||
COM_COMPONENTBUILDER_YOU_ARE_CURRENTLY_VIEWING_THE_TRASHED_ITEMS="You are currently viewing the trashed items."
|
||||
COM_COMPONENTBUILDER_YOU_ARE_CURRENTLY_VIEWING_THE_TRASH_AREA_AND_YOU_DONT_HAVE_ANY_ITEMS_IN_TRASH_AT_THE_MOMENT="You are currently viewing the trash area, and you don't have any items in trash at the moment!"
|
||||
COM_COMPONENTBUILDER_YOU_CAN_DIRECTLY_DOWNLOAD_THE_LATEST_UPDATE_OR_USE_THE_JOOMLA_UPDATE_AREA="You can directly download the latest update, or use the Joomla update area."
|
||||
COM_COMPONENTBUILDER_YOU_CAN_NOW_SELECT_THE_COMPONENT_BZIPB_PACKAGE_YOU_WOULD_LIKE_TO_IMPORTBR_SMALLPLEASE_NOTE_THAT_SMART_COMPONENT_IMPORT_ONLY_WORKS_WITH_THE_FOLLOWING_FORMAT_BZIPBSMALL="You can now select the component <b>zip</b> package you would like to import.<br /><small>Please note that smart component import only works with the following format: <b>(.zip)</b></small>"
|
||||
COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_ACCESS_THE_SERVER_DETAILS_BS_DENIEDB_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="You do not have permission to access the server details (<b>%s - denied</b>), please contact your system administrator for more info."
|
||||
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."
|
||||
|
@ -534,6 +534,8 @@ COM_COMPONENTBUILDER_FIELDS_BATCH_USE="Fields Batch Use"
|
||||
COM_COMPONENTBUILDER_FIELDS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch fields"
|
||||
COM_COMPONENTBUILDER_FIELDS_CREATE="Fields Create"
|
||||
COM_COMPONENTBUILDER_FIELDS_CREATE_DESC="Allows the users in this group to create create fields"
|
||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD="Fields Dashboard Add"
|
||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_ADD_DESC="Allows the users in this group to dashboard add of field"
|
||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST="Fields Dashboard List"
|
||||
COM_COMPONENTBUILDER_FIELDS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of field"
|
||||
COM_COMPONENTBUILDER_FIELDS_DELETE="Fields Delete"
|
||||
@ -680,6 +682,8 @@ COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE="Joomla Modules Edit State"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla module"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION="Joomla Modules Edit Version"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla modules"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_EXPORT="Joomla Modules Export"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_EXPORT_DESC="Allows the users in this group to export export joomla modules"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS="Joomla Modules Files Folders Urls Access"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_ACCESS_DESC="Allows the users in this group to access access joomla modules files folders urls"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_BATCH_USE="Joomla Modules Files Folders Urls Batch Use"
|
||||
@ -700,6 +704,8 @@ COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE="Joomla Module
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_STATE_DESC="Allows the users in this group to update the state of the joomla module files folders urls"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION="Joomla Modules Files Folders Urls Edit Version"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_FILES_FOLDERS_URLS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version joomla modules files folders urls"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_IMPORT="Joomla Modules Import"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_IMPORT_DESC="Allows the users in this group to import import joomla modules"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_SUBMENU="Joomla Modules Submenu"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_SUBMENU_DESC="Allows the users in this group to submenu of joomla module"
|
||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_UPDATES_ACCESS="Joomla Modules Updates Access"
|
||||
@ -956,6 +962,7 @@ COM_COMPONENTBUILDER_MENU_LANGUAGE_TRANSLATIONS="Language Translations"
|
||||
COM_COMPONENTBUILDER_MENU_LAYOUTS="Layouts"
|
||||
COM_COMPONENTBUILDER_MENU_LIBRARIES="Libraries"
|
||||
COM_COMPONENTBUILDER_MENU_PLACEHOLDERS="Placeholders"
|
||||
COM_COMPONENTBUILDER_MENU_POWERS="Powers"
|
||||
COM_COMPONENTBUILDER_MENU_SITE_VIEWS="Site Views"
|
||||
COM_COMPONENTBUILDER_MENU_SNIPPETS="Snippets"
|
||||
COM_COMPONENTBUILDER_MENU_TEMPLATES="Templates"
|
||||
@ -984,6 +991,32 @@ COM_COMPONENTBUILDER_PLACEHOLDERS_IMPORT="Placeholders Import"
|
||||
COM_COMPONENTBUILDER_PLACEHOLDERS_IMPORT_DESC="Allows the users in this group to import import placeholders"
|
||||
COM_COMPONENTBUILDER_PLACEHOLDERS_SUBMENU="Placeholders Submenu"
|
||||
COM_COMPONENTBUILDER_PLACEHOLDERS_SUBMENU_DESC="Allows the users in this group to submenu of placeholder"
|
||||
COM_COMPONENTBUILDER_POWERS_ACCESS="Powers Access"
|
||||
COM_COMPONENTBUILDER_POWERS_ACCESS_DESC="Allows the users in this group to access access powers"
|
||||
COM_COMPONENTBUILDER_POWERS_BATCH_USE="Powers Batch Use"
|
||||
COM_COMPONENTBUILDER_POWERS_BATCH_USE_DESC="Allows users in this group to use batch copy/update method of batch powers"
|
||||
COM_COMPONENTBUILDER_POWERS_CREATE="Powers Create"
|
||||
COM_COMPONENTBUILDER_POWERS_CREATE_DESC="Allows the users in this group to create create powers"
|
||||
COM_COMPONENTBUILDER_POWERS_DASHBOARD_LIST="Powers Dashboard List"
|
||||
COM_COMPONENTBUILDER_POWERS_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of power"
|
||||
COM_COMPONENTBUILDER_POWERS_DELETE="Powers Delete"
|
||||
COM_COMPONENTBUILDER_POWERS_DELETE_DESC="Allows the users in this group to delete delete powers"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT="Powers Edit"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_BY="Powers Edit Created By"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by powers"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_DATE="Powers Edit Created Date"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created powers"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_DESC="Allows the users in this group to edit the power"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_OWN="Powers Edit Own"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_OWN_DESC="Allows the users in this group to edit edit own powers created by them"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_STATE="Powers Edit State"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_STATE_DESC="Allows the users in this group to update the state of the power"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_VERSION="Powers Edit Version"
|
||||
COM_COMPONENTBUILDER_POWERS_EDIT_VERSION_DESC="Allows users in this group to edit versions of version powers"
|
||||
COM_COMPONENTBUILDER_POWERS_SUBMENU="Powers Submenu"
|
||||
COM_COMPONENTBUILDER_POWERS_SUBMENU_DESC="Allows the users in this group to submenu of power"
|
||||
COM_COMPONENTBUILDER_POWER_RUN_EXPANSION_BUTTON_ACCESS="Power Run Expansion Button Access"
|
||||
COM_COMPONENTBUILDER_POWER_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button."
|
||||
COM_COMPONENTBUILDER_SERVERS_ACCESS="Servers Access"
|
||||
COM_COMPONENTBUILDER_SERVERS_ACCESS_DESC="Allows the users in this group to access access servers"
|
||||
COM_COMPONENTBUILDER_SERVERS_BATCH_USE="Servers Batch Use"
|
||||
|
47
admin/layouts/power/code_above.php
Normal file
47
admin/layouts/power/code_above.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
// get the layout fields override method name (from layout path/ID)
|
||||
$layout_path_array = explode('.', $this->getLayoutId());
|
||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||
// this name combination of tab and layout in the method name is the only work around
|
||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||
// example of layout name: details_left.php
|
||||
// example of method name: getFields_details_left()
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'system_name',
|
||||
'type',
|
||||
'power_version'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-inline form-inline-header">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
51
admin/layouts/power/code_fullwidth.php
Normal file
51
admin/layouts/power/code_fullwidth.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
// get the layout fields override method name (from layout path/ID)
|
||||
$layout_path_array = explode('.', $this->getLayoutId());
|
||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||
// this name combination of tab and layout in the method name is the only work around
|
||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||
// example of layout name: details_left.php
|
||||
// example of method name: getFields_details_left()
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'head',
|
||||
'use_selection',
|
||||
'main_class_code',
|
||||
'load_powers_note',
|
||||
'load_selection',
|
||||
'note_linked_to_notice',
|
||||
'not_required'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-vertical">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
50
admin/layouts/power/code_left.php
Normal file
50
admin/layouts/power/code_left.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
// get the layout fields override method name (from layout path/ID)
|
||||
$layout_path_array = explode('.', $this->getLayoutId());
|
||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||
// this name combination of tab and layout in the method name is the only work around
|
||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||
// example of layout name: details_left.php
|
||||
// example of method name: getFields_details_left()
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'name',
|
||||
'description',
|
||||
'extends',
|
||||
'implements_custom',
|
||||
'implements',
|
||||
'namespace',
|
||||
'extends_custom',
|
||||
'add_head'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
45
admin/layouts/power/code_right.php
Normal file
45
admin/layouts/power/code_right.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
// get the layout fields override method name (from layout path/ID)
|
||||
$layout_path_array = explode('.', $this->getLayoutId());
|
||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||
// this name combination of tab and layout in the method name is the only work around
|
||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||
// example of layout name: details_left.php
|
||||
// example of method name: getFields_details_left()
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'property_selection',
|
||||
'method_selection',
|
||||
'namespace_details'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
1
admin/layouts/power/index.html
Normal file
1
admin/layouts/power/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
48
admin/layouts/power/publishing.php
Normal file
48
admin/layouts/power/publishing.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
// get the layout fields override method name (from layout path/ID)
|
||||
$layout_path_array = explode('.', $this->getLayoutId());
|
||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||
// this name combination of tab and layout in the method name is the only work around
|
||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||
// example of layout name: details_left.php
|
||||
// example of method name: getFields_details_left()
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'guid',
|
||||
'title',
|
||||
'created',
|
||||
'created_by',
|
||||
'modified',
|
||||
'modified_by'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
48
admin/layouts/power/publlshing.php
Normal file
48
admin/layouts/power/publlshing.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
// get the layout fields override method name (from layout path/ID)
|
||||
$layout_path_array = explode('.', $this->getLayoutId());
|
||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||
// this name combination of tab and layout in the method name is the only work around
|
||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||
// example of layout name: details_left.php
|
||||
// example of method name: getFields_details_left()
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'published',
|
||||
'ordering',
|
||||
'access',
|
||||
'version',
|
||||
'hits',
|
||||
'id'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
@ -15,6 +15,8 @@ defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Model\ListModel;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
use Joomla\Registry\Registry;
|
||||
use VDM\Gitea\Gitea;
|
||||
|
||||
/**
|
||||
* Componentbuilder Ajax List Model
|
||||
@ -280,6 +282,60 @@ class ComponentbuilderModelAjax extends ListModel
|
||||
return function_exists('curl_version');
|
||||
}
|
||||
|
||||
public function getWiki($name = 'Home')
|
||||
{
|
||||
// get the token if set
|
||||
$token = JComponentHelper::getParams('com_componentbuilder')->get('gitea_token', false);
|
||||
|
||||
// setup a registry
|
||||
$options = new Registry;
|
||||
|
||||
// only add if token is set
|
||||
if ($token)
|
||||
{
|
||||
$options->set('access.token', $token);
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
// get gitea object
|
||||
$gitea = new Gitea($options);
|
||||
|
||||
// get the gitea wiki page TODO: we hard coded the page name
|
||||
$page = $gitea->repo->wiki->getHtml('joomla', 'Component-Builder', 'Home');
|
||||
}
|
||||
catch (DomainException $e)
|
||||
{
|
||||
return $this->getTokenFromVDM($e->getMessage());
|
||||
}
|
||||
catch (InvalidArgumentException $e)
|
||||
{
|
||||
return $this->getTokenFromVDM($e->getMessage());
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
return $this->getTokenFromVDM($e->getMessage());
|
||||
}
|
||||
|
||||
// get the html
|
||||
if (isset($page))
|
||||
{
|
||||
return ['page' => $page];
|
||||
}
|
||||
|
||||
return $this->getTokenFromVDM();
|
||||
}
|
||||
|
||||
protected function getTokenFromVDM($message = null)
|
||||
{
|
||||
if ($message)
|
||||
{
|
||||
return ['error' => $message];
|
||||
}
|
||||
|
||||
return ['error' => JText::_('COM_COMPONENTBUILDER_THE_WIKI_CAN_ONLY_BE_LOADED_WHEN_YOUR_JCB_SYSTEM_HAS_INTERNET_CONNECTION')];
|
||||
}
|
||||
|
||||
// Used in joomla_module
|
||||
public function getModuleCode($data)
|
||||
{
|
||||
|
@ -15,6 +15,8 @@ defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Model\ListModel;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
use Joomla\Registry\Registry;
|
||||
use VDM\Gitea\Gitea;
|
||||
|
||||
/**
|
||||
* Componentbuilder List Model
|
||||
@ -29,7 +31,7 @@ class ComponentbuilderModelComponentbuilder extends ListModel
|
||||
$icons = array();
|
||||
// view groups array
|
||||
$viewGroups = array(
|
||||
'main' => array('png.compiler', 'png.joomla_components', 'png.joomla_modules', 'png.joomla_plugins', 'png||importjcbpackages||index.php?option=com_componentbuilder&view=joomla_components&task=joomla_components.smartImport', 'png.admin_view.add', 'png.admin_views', 'png.custom_admin_view.add', 'png.custom_admin_views', 'png.site_view.add', 'png.site_views', 'png.template.add', 'png.templates', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.placeholders', 'png.libraries', 'png.snippets', 'png.get_snippets', 'png.validation_rules', 'png.fields', 'png.fields.catid_qpo0O0oqp_com_componentbuilder_po0O0oq_field', 'png.fieldtypes', 'png.fieldtypes.catid_qpo0O0oqp_com_componentbuilder_po0O0oq_fieldtype', 'png.language_translations', 'png.servers', 'png.help_documents')
|
||||
'main' => array('png.compiler', 'png.joomla_components', 'png.joomla_modules', 'png.joomla_plugins', 'png.powers', 'png||importjcbpackages||index.php?option=com_componentbuilder&view=joomla_components&task=joomla_components.smartImport', 'png.admin_view.add', 'png.admin_views', 'png.custom_admin_view.add', 'png.custom_admin_views', 'png.site_view.add', 'png.site_views', 'png.template.add', 'png.templates', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.placeholders', 'png.libraries', 'png.snippets', 'png.get_snippets', 'png.validation_rules', 'png.field.add', 'png.fields', 'png.fields.catid_qpo0O0oqp_com_componentbuilder_po0O0oq_field', 'png.fieldtypes', 'png.fieldtypes.catid_qpo0O0oqp_com_componentbuilder_po0O0oq_fieldtype', 'png.language_translations', 'png.servers', 'png.help_documents')
|
||||
);
|
||||
// view access array
|
||||
$viewAccess = array(
|
||||
@ -52,6 +54,11 @@ class ComponentbuilderModelComponentbuilder extends ListModel
|
||||
'joomla_plugin.access' => 'joomla_plugin.access',
|
||||
'joomla_plugins.submenu' => 'joomla_plugin.submenu',
|
||||
'joomla_plugins.dashboard_list' => 'joomla_plugin.dashboard_list',
|
||||
'power.create' => 'power.create',
|
||||
'powers.access' => 'power.access',
|
||||
'power.access' => 'power.access',
|
||||
'powers.submenu' => 'power.submenu',
|
||||
'powers.dashboard_list' => 'power.dashboard_list',
|
||||
'admin_view.create' => 'admin_view.create',
|
||||
'admin_views.access' => 'admin_view.access',
|
||||
'admin_view.access' => 'admin_view.access',
|
||||
@ -118,6 +125,7 @@ class ComponentbuilderModelComponentbuilder extends ListModel
|
||||
'field.access' => 'field.access',
|
||||
'fields.submenu' => 'field.submenu',
|
||||
'fields.dashboard_list' => 'field.dashboard_list',
|
||||
'field.dashboard_add' => 'field.dashboard_add',
|
||||
'fieldtype.create' => 'fieldtype.create',
|
||||
'fieldtypes.access' => 'fieldtype.access',
|
||||
'fieldtype.access' => 'fieldtype.access',
|
||||
@ -403,47 +411,61 @@ class ComponentbuilderModelComponentbuilder extends ListModel
|
||||
}
|
||||
|
||||
|
||||
public function getGithub()
|
||||
public function getWiki()
|
||||
{
|
||||
// load jquery (not sure why... but else the timeago breaks)
|
||||
JHtml::_('jquery.framework');
|
||||
// get the document to load the scripts
|
||||
// the call URL
|
||||
$call_url = JUri::base() . 'index.php?option=com_componentbuilder&task=ajax.getWiki&format=json&raw=true&' . JSession::getFormToken() . '=1&name=Home';
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScript(JURI::root() . "media/com_componentbuilder/js/timeago.js");
|
||||
$document->addScriptDeclaration('
|
||||
var urlToGetAllOpenIssues = "https://api.github.com/repos/vdm-io/Joomla-Component-Builder/issues?state=open&page=1&per_page=5";
|
||||
var urlToGetAllClosedIssues = "https://api.github.com/repos/vdm-io/Joomla-Component-Builder/issues?state=closed&page=1&per_page=5";
|
||||
var urlToGetAllReleases = "https://api.github.com/repos/vdm-io/Joomla-Component-Builder/releases?page=1&per_page=5";
|
||||
fetch("' . $call_url . '").then((response) => {
|
||||
if (response.ok) {
|
||||
return response.json();
|
||||
}
|
||||
}).then((result) => {
|
||||
if (typeof result.page !== "undefined") {
|
||||
document.getElementById("wiki-md").innerHTML = result.page;
|
||||
} else if (typeof result.error !== "undefined") {
|
||||
document.getElementById("wiki-md-error").innerHTML = result.error
|
||||
}
|
||||
});');
|
||||
|
||||
return '<div id="wiki-md"><small>'.JText::_('COM_COMPONENTBUILDER_THE_WIKI_IS_LOADING').'.<span class="loading-dots">.</span></small></div><div id="wiki-md-error" style="color: red"></div>';
|
||||
}
|
||||
|
||||
|
||||
public function getGitea()
|
||||
{
|
||||
// get the document
|
||||
$document = JFactory::getDocument();
|
||||
// get the token if set
|
||||
$token = JComponentHelper::getParams('com_componentbuilder')->get('gitea_token', false);
|
||||
// only add if token is set
|
||||
if ($token)
|
||||
{
|
||||
// setup a registry
|
||||
$options = new Registry;
|
||||
$options->set('access.token', $token);
|
||||
// get the gitea http
|
||||
try
|
||||
{
|
||||
// get gitea object
|
||||
$gitea = new Gitea($options);
|
||||
// get a list of all the repos tags
|
||||
$tags = $gitea->repo->getListTags('joomla', 'Component-Builder');
|
||||
}
|
||||
catch (DomainException $m)
|
||||
{
|
||||
$token = false;
|
||||
}
|
||||
// get the document to load the scripts
|
||||
if ($token && isset($tags[0]) && isset($tags[0]->name))
|
||||
{
|
||||
// download link of the latest version
|
||||
$download = "https://git.vdm.dev/api/v1/repos/joomla/Component-Builder/archive/" . $tags[0]->name . ".zip?access_token=" . $token;
|
||||
// load the JavaScript to the page
|
||||
$document->addScriptDeclaration('
|
||||
jQuery(document).ready(function () {
|
||||
jQuery.getJSON(urlToGetAllOpenIssues, function (openissues) {
|
||||
jQuery("#openissues").html("");
|
||||
jQuery.each(openissues, function (i, issue) {
|
||||
// set time ago
|
||||
var timeago = jQuery.timeago(new Date(issue.created_at));
|
||||
jQuery("#openissues")
|
||||
.append("<h3><a href=\"" + issue.html_url + "\" target=\"_blank\">" + issue.title + "</a></h3>")
|
||||
.append("<img alt=\"@" + issue.user.login + "\" style=\"vertical-align: baseline;\" src=\"" + issue.user.avatar_url +"&s=60\" width=\"30\" height=\"30\"> ")
|
||||
.append("<em><a href=\"" + issue.user.html_url + "\" target=\"_blank\">" + issue.user.login + "</a> '.JText::_('COM_COMPONENTBUILDER_OPENED_THIS').' <a href=\"" + issue.html_url + "\" target=\"_blank\">'.JText::_('COM_COMPONENTBUILDER_ISSUE').'-" + issue.number + "</a> (" + timeago + ")</em> ")
|
||||
.append(marked.parse(issue.body))
|
||||
.append("<a href=\"" + issue.html_url + "\" target=\"_blank\"><span class=\'icon-new-tab\'></span>'.JText::_('COM_COMPONENTBUILDER_RESPOND_TO_THIS_ISSUE_ON_GITHUB').'</a>...<hr />");
|
||||
});
|
||||
});
|
||||
jQuery.getJSON(urlToGetAllClosedIssues, function (closedissues) {
|
||||
jQuery("#closedissues").html("");
|
||||
jQuery.each(closedissues, function (i, issue) {
|
||||
// set time ago
|
||||
var timeago = jQuery.timeago(new Date(issue.created_at));
|
||||
jQuery("#closedissues")
|
||||
.append("<h3><a href=\"" + issue.html_url + "\" target=\"_blank\">" + issue.title + "</a></h3>")
|
||||
.append("<img alt=\"@" + issue.user.login + "\" style=\"vertical-align: baseline;\" src=\"" + issue.user.avatar_url +"&s=60\" width=\"30\" height=\"30\"> ")
|
||||
.append("<em><a href=\"" + issue.user.html_url + "\" target=\"_blank\">" + issue.user.login + "</a> '.JText::_('COM_COMPONENTBUILDER_OPENED').' <a href=\"" + issue.html_url + "\" target=\"_blank\">'.JText::_('COM_COMPONENTBUILDER_ISSUE').'-" + issue.number + "</a> (" + timeago + ")</em>")
|
||||
.append(marked.parse(issue.body))
|
||||
.append("<a href=\"" + issue.html_url + "\" target=\"_blank\"><span class=\'icon-new-tab\'></span>'.JText::_('COM_COMPONENTBUILDER_REVIEW_THIS_ISSUE_ON_GITHUB').'</a>...<hr />");
|
||||
});
|
||||
});
|
||||
jQuery.getJSON(urlToGetAllReleases, function (tagreleases) {
|
||||
// set the update notice while we are at it
|
||||
var activeVersion = tagreleases[0].tag_name.substring(1);
|
||||
var activeVersion = "' . trim($tags[0]->name, 'vV') . '";
|
||||
if (activeVersion === manifest.version) {
|
||||
// local version is in sync with latest release
|
||||
jQuery(".update-notice").html("<small><span style=\'color:green;\'><span class=\'icon-shield\'></span>' . JText::_('COM_COMPONENTBUILDER_UP_TO_DATE') . '</span></small>");
|
||||
@ -458,63 +480,26 @@ class ComponentbuilderModelComponentbuilder extends ListModel
|
||||
jQuery(".update-notice").html("<small><span style=\'color:#F7B033;\'><span class=\'icon-wrench\'></span>' . JText::_('COM_COMPONENTBUILDER_BETA_RELEASE') . '</span></small>");
|
||||
} else {
|
||||
// local version behind latest release
|
||||
jQuery(".update-notice").html("<small><span style=\'color:red;\'><span class=\'icon-warning-circle\'></span>'.JText::_('COM_COMPONENTBUILDER_OUT_OF_DATE').'</span></small>");
|
||||
jQuery(".update-notice").html("<small><span style=\'color:red;\'><span class=\'icon-warning-circle\'></span>' . JText::_('COM_COMPONENTBUILDER_OUT_OF_DATE') . '</span> <a style=\'color:green;\' href=\'' .
|
||||
$download . '\' title=\'' . JText::_('COM_COMPONENTBUILDER_YOU_CAN_DIRECTLY_DOWNLOAD_THE_LATEST_UPDATE_OR_USE_THE_JOOMLA_UPDATE_AREA') . '\'>' .
|
||||
JText::_('COM_COMPONENTBUILDER_DOWNLOAD_UPDATE') . '!</a></small>");
|
||||
}
|
||||
}
|
||||
// set the taged releases
|
||||
jQuery("#tagreleases").html("");
|
||||
jQuery.each(tagreleases, function (i, tagrelease) {
|
||||
// set active release
|
||||
var activeNotice = "";
|
||||
if (i === 0) {
|
||||
var activeNotice = "<a class=\'btn btn-small btn-success\' href=\'https://github.com/vdm-io/Joomla-Component-Builder/releases/latest\'><span class=\'icon-shield icon-white\'></span> '.JText::_('COM_COMPONENTBUILDER_LATEST_RELEASE').'</a><br /><br />";
|
||||
}
|
||||
// set time ago
|
||||
var timeago = jQuery.timeago(new Date(tagrelease.published_at));
|
||||
jQuery("#tagreleases")
|
||||
.append("<h3><a href=\"" + tagrelease.html_url + "\" target=\"_blank\">" + tagrelease.name + "</a></h3>")
|
||||
.append(activeNotice)
|
||||
.append("<img alt=\"@" + tagrelease.author.login + "\" style=\"vertical-align: baseline;\" src=\"" + tagrelease.author.avatar_url +"&s=60\" width=\"30\" height=\"30\"> ")
|
||||
.append("<em><a href=\"" + tagrelease.author.html_url + "\" target=\"_blank\">" + tagrelease.author.login + "</a> '.JText::_('COM_COMPONENTBUILDER_RELEASED_THIS').'<em> <b><span class=\'icon-tag-2\'></span>" + tagrelease.tag_name+ "</b> (" + timeago + ")")
|
||||
.append(marked.parse(tagrelease.body))
|
||||
.append(" <a class=\"hasTooltip\" href=\"" + tagrelease.assets[0].browser_download_url + "\" title=\"'.JText::_('COM_COMPONENTBUILDER_DOWNLOAD').' " + tagrelease.assets[0].name + "\" target=\"_self\"><span class=\'icon-download\'></span>" + tagrelease.assets[0].name + "</a> (<a class=\"hasTooltip\" href=\"" + tagrelease.assets[0].browser_download_url + "\" title=\"'.JText::_('COM_COMPONENTBUILDER_TOTAL_DOWNLOADS').'\"><small>" + tagrelease.assets[0].download_count + "</small></a>) ")
|
||||
.append("| <a href=\"" + tagrelease.html_url + "\" target=\"_blank\" title=\"'.JText::_('COM_COMPONENTBUILDER_OPEN').' " + tagrelease.name + " '.JText::_('COM_COMPONENTBUILDER_ON_GITHUB').'\"><span class=\'icon-new-tab\'></span>'.JText::_('COM_COMPONENTBUILDER_OPEN_ON_GITHUB').'</a>...<hr />");
|
||||
});
|
||||
});
|
||||
});');
|
||||
$create = '<div class="btn-group pull-right">
|
||||
<a href="https://github.com/vdm-io/Joomla-Component-Builder/issues/new" class="btn btn-primary" target="_blank">'.JText::_('COM_COMPONENTBUILDER_NEW_ISSUE').'</a>
|
||||
</div></br >';
|
||||
$moreopen = '<b><a href="https://github.com/vdm-io/Joomla-Component-Builder/issues" target="_blank">'.JText::_('COM_COMPONENTBUILDER_VIEW_MORE_ISSUES_ON_GITHUB').'</a>...</b> ';
|
||||
$moreclosed = '<b><a href="https://github.com/vdm-io/Joomla-Component-Builder/issues?q=is%3Aissue+is%3Aclosed" target="_blank">'.JText::_('COM_COMPONENTBUILDER_VIEW_MORE_ISSUES_ON_GITHUB').'</a>...</b> ';
|
||||
$viewissues = '<b><a href="https://github.com/vdm-io/Joomla-Component-Builder/releases" target="_blank">'.JText::_('COM_COMPONENTBUILDER_VIEW_MORE_RELEASES_ON_GITHUB').'</a>...</b> ';
|
||||
|
||||
return (object) array(
|
||||
'openissues' => $create.'<div id="openissues">'.JText::_('COM_COMPONENTBUILDER_A_FEW_OPEN_ISSUES_FROM_GITHUB_IS_LOADING').'.<span class="loading-dots">.</span></small></div>'.$moreopen,
|
||||
'closedissues' => $create.'<div id="closedissues">'.JText::_('COM_COMPONENTBUILDER_A_FEW_CLOSED_ISSUES_FROM_GITHUB_IS_LOADING').'.<span class="loading-dots">.</span></small></div>'.$moreclosed,
|
||||
'tagreleases' => '<div id="tagreleases">'.JText::_('COM_COMPONENTBUILDER_LAST_FEW_RELEASES_FROM_GITHUB_IS_LOADING').'.<span class="loading-dots">.</span></small></div>'.$viewissues
|
||||
return;
|
||||
}
|
||||
}
|
||||
// the URL
|
||||
$url = 'https://git.vdm.dev/user/settings/applications';
|
||||
// give a notice to get the token
|
||||
$document->addScriptDeclaration(
|
||||
'jQuery(document).ready(function () {jQuery(".update-notice").html("<small><a style=\'color:#F7B033;\' href=\'' .
|
||||
$url . '\' title=\'' . JText::_('COM_COMPONENTBUILDER_GET_TOKEN_FROM_VDM_FOR_UPDATES_AND_ADD_IT_TO_YOUR_GLOBAL_OPTIONS') . '\'>' .
|
||||
JText::_('COM_COMPONENTBUILDER_GET_TOKEN') . '!</a></small>");});'
|
||||
);
|
||||
}
|
||||
|
||||
public function getWiki()
|
||||
{
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScriptDeclaration('
|
||||
var gewiki = "https://raw.githubusercontent.com/wiki/vdm-io/Joomla-Component-Builder/Home.md";
|
||||
jQuery(document).ready(function () {
|
||||
jQuery.get(gewiki)
|
||||
.success(function(wiki) {
|
||||
jQuery("#wiki-md").html(marked.parse(wiki));
|
||||
})
|
||||
.error(function(jqXHR, textStatus, errorThrown) {
|
||||
jQuery("#wiki-md").html("'.JText::_('COM_COMPONENTBUILDER_PLEASE_CHECK_AGAIN_LATTER').'");
|
||||
});
|
||||
});');
|
||||
|
||||
return '<div id="wiki-md"><small>'.JText::_('COM_COMPONENTBUILDER_THE_WIKI_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function getNoticeboard()
|
||||
{
|
||||
@ -590,29 +575,6 @@ jQuery(document).ready( function($) {
|
||||
return '<div id="noticeboard-md">'.JText::_('COM_COMPONENTBUILDER_THE_NOTICE_BOARD_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
|
||||
}
|
||||
|
||||
public function getProboard()
|
||||
{
|
||||
// get the document to load the scripts
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScriptDeclaration('
|
||||
var proboard = "https://vdm.bz/componentbuilder-pro-noticeboard-md";
|
||||
jQuery(document).ready(function () {
|
||||
jQuery.get(proboard)
|
||||
.success(function(board) {
|
||||
if (board.length > 5) {
|
||||
jQuery("#proboard-md").html(marked.parse(board));
|
||||
} else {
|
||||
jQuery("#proboard-md").html("'.JText::_('COM_COMPONENTBUILDER_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER').'");
|
||||
}
|
||||
})
|
||||
.error(function(jqXHR, textStatus, errorThrown) {
|
||||
jQuery("#proboard-md").html("'.JText::_('COM_COMPONENTBUILDER_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER').'");
|
||||
});
|
||||
});');
|
||||
|
||||
return '<div id="proboard-md">'.JText::_('COM_COMPONENTBUILDER_THE_PRO_BOARD_IS_LOADING').'.<span class="loading-dots">.</span></small></div>';
|
||||
}
|
||||
|
||||
public function getReadme()
|
||||
{
|
||||
$document = JFactory::getDocument();
|
||||
|
133
admin/models/fields/adminlistvieworderfields.php
Normal file
133
admin/models/fields/adminlistvieworderfields.php
Normal file
@ -0,0 +1,133 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Adminlistvieworderfields Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldAdminlistvieworderfields extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The adminlistvieworderfields field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'adminlistvieworderfields';
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of JHtml options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// load the db object
|
||||
$db = JFactory::getDBO();
|
||||
// get the input from url
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// get the id
|
||||
$adminView = $jinput->getInt('id', 0);
|
||||
// set the field trackers
|
||||
$fieldIds = array();
|
||||
$sortIds = array();
|
||||
// check if we have an admin view
|
||||
if (is_numeric($adminView) && $adminView >= 1)
|
||||
{
|
||||
// get all the fields linked to the admin view
|
||||
if ($addFields = ComponentbuilderHelper::getVar('admin_fields', (int) $adminView, 'admin_view', 'addfields'))
|
||||
{
|
||||
if (ComponentbuilderHelper::checkJson($addFields))
|
||||
{
|
||||
$addFields = json_decode($addFields, true);
|
||||
if (ComponentbuilderHelper::checkArray($addFields))
|
||||
{
|
||||
foreach($addFields as $addField)
|
||||
{
|
||||
// admin list view and ordering
|
||||
if (isset($addField['field']) && isset($addField['list']) && ($addField['list'] == 1 || $addField['list'] == 3)
|
||||
&& isset($addField['sort']) && $addField['sort'])
|
||||
{
|
||||
$fieldIds[(int) $addField['field']] = (int) $addField['field'];
|
||||
}
|
||||
// do track all fields set as sorted
|
||||
if (isset($addField['field']) && isset($addField['sort']) && $addField['sort'])
|
||||
{
|
||||
$sortIds[(int) $addField['field']] = (int) $addField['field'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// get all the fields that are also having a relationship on the list view as sorted
|
||||
if ($addFields = ComponentbuilderHelper::getVar('admin_fields_relations', (int) $adminView, 'admin_view', 'addrelations'))
|
||||
{
|
||||
if (ComponentbuilderHelper::checkJson($addFields))
|
||||
{
|
||||
$addFields = json_decode($addFields, true);
|
||||
if (ComponentbuilderHelper::checkArray($addFields))
|
||||
{
|
||||
foreach($addFields as $addField)
|
||||
{
|
||||
// admin list view and ordering
|
||||
if (isset($addField['joinfields']) && ComponentbuilderHelper::checkArray($addField['joinfields']))
|
||||
{
|
||||
foreach($addField['joinfields'] as $joinfield)
|
||||
{
|
||||
if (isset($sortIds[$joinfield]))
|
||||
{
|
||||
$fieldIds[(int) $joinfield] = (int) $joinfield;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// filter by fields linked
|
||||
if (ComponentbuilderHelper::checkArray($fieldIds))
|
||||
{
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.id','a.name', 'a.xml', 'b.name'),array('id','name', 'xml', 'type')));
|
||||
$query->from($db->quoteName('#__componentbuilder_field', 'a'));
|
||||
$query->join('LEFT', '#__componentbuilder_fieldtype AS b ON b.id = a.fieldtype');
|
||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||
// only load these fields
|
||||
$query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')');
|
||||
$query->order('a.name ASC');
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
$options = array();
|
||||
if ($items)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_SELECT_AN_OPTION'));
|
||||
$options[] = JHtml::_('select.option', -1, JText::_('PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_ID'). ' [ id - text ]');
|
||||
$options[] = JHtml::_('select.option', -2, JText::_('PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_ORDERING'). ' [ ordering - number ]');
|
||||
$options[] = JHtml::_('select.option', -3, JText::_('PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_STATUS'). ' [ published - list ]');
|
||||
foreach($items as $item)
|
||||
{
|
||||
// get the field name (TODO this could slow down the system so we will need to improve on this)
|
||||
$field_name = ComponentbuilderHelper::safeFieldName(ComponentbuilderHelper::getBetween(json_decode($item->xml),'name="','"'));
|
||||
$options[] = JHtml::_('select.option', $item->id, $item->name . ' [ ' . $field_name . ' - ' . $item->type . ' ]');
|
||||
}
|
||||
}
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
196
admin/models/fields/classpowers.php
Normal file
196
admin/models/fields/classpowers.php
Normal file
@ -0,0 +1,196 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Classpowers Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldClasspowers extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The classpowers field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'classpowers';
|
||||
|
||||
/**
|
||||
* Override to add new button
|
||||
*
|
||||
* @return string The field input markup.
|
||||
*
|
||||
* @since 3.2
|
||||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
// see if we should add buttons
|
||||
$set_button = $this->getAttribute('button');
|
||||
// get html
|
||||
$html = parent::getInput();
|
||||
// if true set button
|
||||
if ($set_button === 'true')
|
||||
{
|
||||
$button = array();
|
||||
$script = array();
|
||||
$button_code_name = $this->getAttribute('name');
|
||||
// get the input from url
|
||||
$app = JFactory::getApplication();
|
||||
$jinput = $app->input;
|
||||
// get the view name & id
|
||||
$values = $jinput->getArray(array(
|
||||
'id' => 'int',
|
||||
'view' => 'word'
|
||||
));
|
||||
// check if new item
|
||||
$ref = '';
|
||||
$refJ = '';
|
||||
if (!is_null($values['id']) && strlen($values['view']))
|
||||
{
|
||||
// only load referral if not new item.
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
$refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
// get the return value.
|
||||
$_uri = (string) JUri::getInstance();
|
||||
$_return = urlencode(base64_encode($_uri));
|
||||
// load return value.
|
||||
$ref .= '&return=' . $_return;
|
||||
$refJ .= '&return=' . $_return;
|
||||
}
|
||||
// get button label
|
||||
$button_label = trim($button_code_name);
|
||||
$button_label = preg_replace('/_+/', ' ', $button_label);
|
||||
$button_label = preg_replace('/\s+/', ' ', $button_label);
|
||||
$button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
|
||||
$button_label = ucfirst(strtolower($button_label));
|
||||
// get user object
|
||||
$user = JFactory::getUser();
|
||||
// only add if user allowed to create power
|
||||
if ($user->authorise('power.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||
{
|
||||
// build Create button
|
||||
$button[] = '<a id="'.$button_code_name.'Create" class="btn btn-small btn-success hasTooltip" title="'.JText::sprintf('COM_COMPONENTBUILDER_CREATE_NEW_S', $button_label).'" style="border-radius: 0px 4px 4px 0px; padding: 4px 4px 4px 7px;"
|
||||
href="index.php?option=com_componentbuilder&view=power&layout=edit'.$ref.'" >
|
||||
<span class="icon-new icon-white"></span></a>';
|
||||
}
|
||||
// only add if user allowed to edit power
|
||||
if ($user->authorise('power.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||
{
|
||||
// build edit button
|
||||
$button[] = '<a id="'.$button_code_name.'Edit" class="btn btn-small hasTooltip" title="'.JText::sprintf('COM_COMPONENTBUILDER_EDIT_S', $button_label).'" style="display: none; padding: 4px 4px 4px 7px;" href="#" >
|
||||
<span class="icon-edit"></span></a>';
|
||||
// build script
|
||||
$script[] = "
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
|
||||
e.preventDefault();
|
||||
var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
|
||||
".$button_code_name."Button(".$button_code_name."Value);
|
||||
});
|
||||
var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
|
||||
".$button_code_name."Button(".$button_code_name."Value);
|
||||
});
|
||||
function ".$button_code_name."Button(value) {
|
||||
if (value > 0) {
|
||||
// hide the create button
|
||||
jQuery('#".$button_code_name."Create').hide();
|
||||
// show edit button
|
||||
jQuery('#".$button_code_name."Edit').show();
|
||||
var url = 'index.php?option=com_componentbuilder&view=powers&task=power.edit&id='+value+'".$refJ."';
|
||||
jQuery('#".$button_code_name."Edit').attr('href', url);
|
||||
} else {
|
||||
// show the create button
|
||||
jQuery('#".$button_code_name."Create').show();
|
||||
// hide edit button
|
||||
jQuery('#".$button_code_name."Edit').hide();
|
||||
}
|
||||
}";
|
||||
}
|
||||
// check if button was created for power field.
|
||||
if (is_array($button) && count($button) > 0)
|
||||
{
|
||||
// Load the needed script.
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScriptDeclaration(implode(' ',$script));
|
||||
// return the button attached to input field.
|
||||
return '<div class="input-append">' .$html . implode('',$button).'</div>';
|
||||
}
|
||||
}
|
||||
return $html;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of JHtml options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// Get the databse object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.guid','a.name','a.system_name','a.type','a.power_version'),array('guid','extends_name','system_name','type','version')));
|
||||
$query->from($db->quoteName('#__componentbuilder_power', 'a'));
|
||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||
$query->where('(' . $db->quoteName('a.type') . ' = ' . $db->quote('class') . ' OR ' . $db->quoteName('a.type') . ' = ' . $db->quote('abstract class') . ')');
|
||||
$query->order('a.name ASC');
|
||||
$query->order('a.type ASC');
|
||||
// Implement View Level Access (if set in table)
|
||||
if (!$user->authorise('core.options', 'com_componentbuilder'))
|
||||
{
|
||||
$columns = $db->getTableColumns('#__componentbuilder_power');
|
||||
if(isset($columns['access']))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
}
|
||||
// get the input
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// get the id
|
||||
$power_id = $jinput->getInt('id', 0);
|
||||
// if we have an id we remove all classes of the same namespace and name
|
||||
if ($power_id > 0 && ($exclude_powers = ComponentbuilderHelper::excludePowers($power_id)) !== false)
|
||||
{
|
||||
$query->where('a.id NOT IN (' . implode(',', $exclude_powers) . ')');
|
||||
}
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
$options = array();
|
||||
// if none was found, we add this to set an alternative to set custom
|
||||
if (!$items)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_NONE_FOUND'));
|
||||
}
|
||||
if ($items)
|
||||
{
|
||||
if ($this->multiple === false)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_SELECT_AN_OPTION'));
|
||||
}
|
||||
foreach($items as $item)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', $item->guid, $item->system_name . ' [' . $item->type . ' ' . $item->extends_name . '] (v' . $item->version . ')');
|
||||
}
|
||||
}
|
||||
// set the other option to enter text
|
||||
$options[] = JHtml::_('select.option', -1, JText::_('COM_COMPONENTBUILDER_SET_CUSTOM'));
|
||||
return $options;
|
||||
}
|
||||
}
|
177
admin/models/fields/excludedlanguages.php
Normal file
177
admin/models/fields/excludedlanguages.php
Normal file
@ -0,0 +1,177 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Excludedlanguages Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldExcludedlanguages extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The excludedlanguages field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'excludedlanguages';
|
||||
|
||||
/**
|
||||
* Override to add new button
|
||||
*
|
||||
* @return string The field input markup.
|
||||
*
|
||||
* @since 3.2
|
||||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
// see if we should add buttons
|
||||
$set_button = $this->getAttribute('button');
|
||||
// get html
|
||||
$html = parent::getInput();
|
||||
// if true set button
|
||||
if ($set_button === 'true')
|
||||
{
|
||||
$button = array();
|
||||
$script = array();
|
||||
$button_code_name = $this->getAttribute('name');
|
||||
// get the input from url
|
||||
$app = JFactory::getApplication();
|
||||
$jinput = $app->input;
|
||||
// get the view name & id
|
||||
$values = $jinput->getArray(array(
|
||||
'id' => 'int',
|
||||
'view' => 'word'
|
||||
));
|
||||
// check if new item
|
||||
$ref = '';
|
||||
$refJ = '';
|
||||
if (!is_null($values['id']) && strlen($values['view']))
|
||||
{
|
||||
// only load referral if not new item.
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
$refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
// get the return value.
|
||||
$_uri = (string) JUri::getInstance();
|
||||
$_return = urlencode(base64_encode($_uri));
|
||||
// load return value.
|
||||
$ref .= '&return=' . $_return;
|
||||
$refJ .= '&return=' . $_return;
|
||||
}
|
||||
// get button label
|
||||
$button_label = trim($button_code_name);
|
||||
$button_label = preg_replace('/_+/', ' ', $button_label);
|
||||
$button_label = preg_replace('/\s+/', ' ', $button_label);
|
||||
$button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
|
||||
$button_label = ucfirst(strtolower($button_label));
|
||||
// get user object
|
||||
$user = JFactory::getUser();
|
||||
// only add if user allowed to create language
|
||||
if ($user->authorise('language.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||
{
|
||||
// build Create button
|
||||
$button[] = '<a id="'.$button_code_name.'Create" class="btn btn-small btn-success hasTooltip" title="'.JText::sprintf('PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_CREATE_NEW_S', $button_label).'" style="border-radius: 0px 4px 4px 0px; padding: 4px 4px 4px 7px;"
|
||||
href="index.php?option=com_componentbuilder&view=language&layout=edit'.$ref.'" >
|
||||
<span class="icon-new icon-white"></span></a>';
|
||||
}
|
||||
// only add if user allowed to edit language
|
||||
if ($user->authorise('language.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||
{
|
||||
// build edit button
|
||||
$button[] = '<a id="'.$button_code_name.'Edit" class="btn btn-small hasTooltip" title="'.JText::sprintf('PLG_CONTENT_COMPONENTBUILDERLANGUAGETABS_EDIT_S', $button_label).'" style="display: none; padding: 4px 4px 4px 7px;" href="#" >
|
||||
<span class="icon-edit"></span></a>';
|
||||
// build script
|
||||
$script[] = "
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
|
||||
e.preventDefault();
|
||||
var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
|
||||
".$button_code_name."Button(".$button_code_name."Value);
|
||||
});
|
||||
var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
|
||||
".$button_code_name."Button(".$button_code_name."Value);
|
||||
});
|
||||
function ".$button_code_name."Button(value) {
|
||||
if (value > 0) {
|
||||
// hide the create button
|
||||
jQuery('#".$button_code_name."Create').hide();
|
||||
// show edit button
|
||||
jQuery('#".$button_code_name."Edit').show();
|
||||
var url = 'index.php?option=com_componentbuilder&view=languages&task=language.edit&id='+value+'".$refJ."';
|
||||
jQuery('#".$button_code_name."Edit').attr('href', url);
|
||||
} else {
|
||||
// show the create button
|
||||
jQuery('#".$button_code_name."Create').show();
|
||||
// hide edit button
|
||||
jQuery('#".$button_code_name."Edit').hide();
|
||||
}
|
||||
}";
|
||||
}
|
||||
// check if button was created for language field.
|
||||
if (is_array($button) && count($button) > 0)
|
||||
{
|
||||
// Load the needed script.
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScriptDeclaration(implode(' ',$script));
|
||||
// return the button attached to input field.
|
||||
return '<div class="input-append">' .$html . implode('',$button).'</div>';
|
||||
}
|
||||
}
|
||||
return $html;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of JHtml options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.langtag','a.name'),array('langtag','languages_name')));
|
||||
$query->from($db->quoteName('#__componentbuilder_language', 'a'));
|
||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||
$query->order('a.langtag ASC');
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
// add the main language
|
||||
$main_lang = trim(JComponentHelper::getParams('com_componentbuilder')->get('language', 'en-GB'));
|
||||
// check if any language was added
|
||||
$wasAdded = false;
|
||||
$options = array();
|
||||
if ($items)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', '', 'Select an option');
|
||||
foreach($items as $item)
|
||||
{
|
||||
$item->langtag = trim($item->langtag);
|
||||
// do not add main language
|
||||
if ($main_lang !== $item->langtag)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', $item->langtag, $item->languages_name . ' (' .$item->langtag.')');
|
||||
$wasAdded = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
// now if none was added give notice
|
||||
if (!$wasAdded)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', '', 'Add languages to select');
|
||||
}
|
||||
return $options;
|
||||
}
|
||||
}
|
191
admin/models/fields/interfacepowers.php
Normal file
191
admin/models/fields/interfacepowers.php
Normal file
@ -0,0 +1,191 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Interfacepowers Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldInterfacepowers extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The interfacepowers field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'interfacepowers';
|
||||
|
||||
/**
|
||||
* Override to add new button
|
||||
*
|
||||
* @return string The field input markup.
|
||||
*
|
||||
* @since 3.2
|
||||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
// see if we should add buttons
|
||||
$set_button = $this->getAttribute('button');
|
||||
// get html
|
||||
$html = parent::getInput();
|
||||
// if true set button
|
||||
if ($set_button === 'true')
|
||||
{
|
||||
$button = array();
|
||||
$script = array();
|
||||
$button_code_name = $this->getAttribute('name');
|
||||
// get the input from url
|
||||
$app = JFactory::getApplication();
|
||||
$jinput = $app->input;
|
||||
// get the view name & id
|
||||
$values = $jinput->getArray(array(
|
||||
'id' => 'int',
|
||||
'view' => 'word'
|
||||
));
|
||||
// check if new item
|
||||
$ref = '';
|
||||
$refJ = '';
|
||||
if (!is_null($values['id']) && strlen($values['view']))
|
||||
{
|
||||
// only load referral if not new item.
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
$refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
// get the return value.
|
||||
$_uri = (string) JUri::getInstance();
|
||||
$_return = urlencode(base64_encode($_uri));
|
||||
// load return value.
|
||||
$ref .= '&return=' . $_return;
|
||||
$refJ .= '&return=' . $_return;
|
||||
}
|
||||
// get button label
|
||||
$button_label = trim($button_code_name);
|
||||
$button_label = preg_replace('/_+/', ' ', $button_label);
|
||||
$button_label = preg_replace('/\s+/', ' ', $button_label);
|
||||
$button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
|
||||
$button_label = ucfirst(strtolower($button_label));
|
||||
// get user object
|
||||
$user = JFactory::getUser();
|
||||
// only add if user allowed to create power
|
||||
if ($user->authorise('power.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||
{
|
||||
// build Create button
|
||||
$button[] = '<a id="'.$button_code_name.'Create" class="btn btn-small btn-success hasTooltip" title="'.JText::sprintf('COM_COMPONENTBUILDER_CREATE_NEW_S', $button_label).'" style="border-radius: 0px 4px 4px 0px; padding: 4px 4px 4px 7px;"
|
||||
href="index.php?option=com_componentbuilder&view=power&layout=edit'.$ref.'" >
|
||||
<span class="icon-new icon-white"></span></a>';
|
||||
}
|
||||
// only add if user allowed to edit power
|
||||
if ($user->authorise('power.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||
{
|
||||
// build edit button
|
||||
$button[] = '<a id="'.$button_code_name.'Edit" class="btn btn-small hasTooltip" title="'.JText::sprintf('COM_COMPONENTBUILDER_EDIT_S', $button_label).'" style="display: none; padding: 4px 4px 4px 7px;" href="#" >
|
||||
<span class="icon-edit"></span></a>';
|
||||
// build script
|
||||
$script[] = "
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
|
||||
e.preventDefault();
|
||||
var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
|
||||
".$button_code_name."Button(".$button_code_name."Value);
|
||||
});
|
||||
var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
|
||||
".$button_code_name."Button(".$button_code_name."Value);
|
||||
});
|
||||
function ".$button_code_name."Button(value) {
|
||||
if (value > 0) {
|
||||
// hide the create button
|
||||
jQuery('#".$button_code_name."Create').hide();
|
||||
// show edit button
|
||||
jQuery('#".$button_code_name."Edit').show();
|
||||
var url = 'index.php?option=com_componentbuilder&view=powers&task=power.edit&id='+value+'".$refJ."';
|
||||
jQuery('#".$button_code_name."Edit').attr('href', url);
|
||||
} else {
|
||||
// show the create button
|
||||
jQuery('#".$button_code_name."Create').show();
|
||||
// hide edit button
|
||||
jQuery('#".$button_code_name."Edit').hide();
|
||||
}
|
||||
}";
|
||||
}
|
||||
// check if button was created for power field.
|
||||
if (is_array($button) && count($button) > 0)
|
||||
{
|
||||
// Load the needed script.
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScriptDeclaration(implode(' ',$script));
|
||||
// return the button attached to input field.
|
||||
return '<div class="input-append">' .$html . implode('',$button).'</div>';
|
||||
}
|
||||
}
|
||||
return $html;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of JHtml options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// Get the databse object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.guid','a.name','a.system_name','a.type','a.power_version'),array('guid','implements_name','system_name','type','version')));
|
||||
$query->from($db->quoteName('#__componentbuilder_power', 'a'));
|
||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||
$query->where($db->quoteName('a.type') . ' = ' . $db->quote('interface'));
|
||||
$query->order('a.name ASC');
|
||||
$query->order('a.type ASC');
|
||||
// Implement View Level Access (if set in table)
|
||||
if (!$user->authorise('core.options', 'com_componentbuilder'))
|
||||
{
|
||||
$columns = $db->getTableColumns('#__componentbuilder_power');
|
||||
if(isset($columns['access']))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
}
|
||||
// get the input
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// get the id
|
||||
$power_id = $jinput->getInt('id', 0);
|
||||
// if we have an id we remove all classes of the same namespace and name
|
||||
if ($power_id > 0 && ($exclude_powers = ComponentbuilderHelper::excludePowers($power_id)) !== false)
|
||||
{
|
||||
$query->where('a.id NOT IN (' . implode(',', $exclude_powers) . ')');
|
||||
}
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
$options = array();
|
||||
// set the other option to enter text
|
||||
$options[] = JHtml::_('select.option', -1, JText::_('COM_COMPONENTBUILDER_SET_CUSTOM'));
|
||||
if ($items)
|
||||
{
|
||||
if ($this->multiple === false)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_SELECT_AN_OPTION'));
|
||||
}
|
||||
foreach($items as $item)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', $item->guid, $item->system_name . ' (v' . $item->version . ') [' . $item->type . ' ' . $item->implements_name . ']');
|
||||
}
|
||||
}
|
||||
return $options;
|
||||
}
|
||||
}
|
@ -29,6 +29,110 @@ class JFormFieldJoomlaplugins extends JFormFieldList
|
||||
*/
|
||||
public $type = 'joomlaplugins';
|
||||
|
||||
/**
|
||||
* Override to add new button
|
||||
*
|
||||
* @return string The field input markup.
|
||||
*
|
||||
* @since 3.2
|
||||
*/
|
||||
protected function getInput()
|
||||
{
|
||||
// see if we should add buttons
|
||||
$set_button = $this->getAttribute('button');
|
||||
// get html
|
||||
$html = parent::getInput();
|
||||
// if true set button
|
||||
if ($set_button === 'true')
|
||||
{
|
||||
$button = array();
|
||||
$script = array();
|
||||
$button_code_name = $this->getAttribute('name');
|
||||
// get the input from url
|
||||
$app = JFactory::getApplication();
|
||||
$jinput = $app->input;
|
||||
// get the view name & id
|
||||
$values = $jinput->getArray(array(
|
||||
'id' => 'int',
|
||||
'view' => 'word'
|
||||
));
|
||||
// check if new item
|
||||
$ref = '';
|
||||
$refJ = '';
|
||||
if (!is_null($values['id']) && strlen($values['view']))
|
||||
{
|
||||
// only load referral if not new item.
|
||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
$refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||
// get the return value.
|
||||
$_uri = (string) JUri::getInstance();
|
||||
$_return = urlencode(base64_encode($_uri));
|
||||
// load return value.
|
||||
$ref .= '&return=' . $_return;
|
||||
$refJ .= '&return=' . $_return;
|
||||
}
|
||||
// get button label
|
||||
$button_label = trim($button_code_name);
|
||||
$button_label = preg_replace('/_+/', ' ', $button_label);
|
||||
$button_label = preg_replace('/\s+/', ' ', $button_label);
|
||||
$button_label = preg_replace("/[^A-Za-z ]/", '', $button_label);
|
||||
$button_label = ucfirst(strtolower($button_label));
|
||||
// get user object
|
||||
$user = JFactory::getUser();
|
||||
// only add if user allowed to create joomla_plugin
|
||||
if ($user->authorise('joomla_plugin.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||
{
|
||||
// build Create button
|
||||
$button[] = '<a id="'.$button_code_name.'Create" class="btn btn-small btn-success hasTooltip" title="'.JText::sprintf('PLG_EXTENSION_COMPONENTBUILDERPOWERSAUTOLOADERCOMPILER_CREATE_NEW_S', $button_label).'" style="border-radius: 0px 4px 4px 0px; padding: 4px 4px 4px 7px;"
|
||||
href="index.php?option=com_componentbuilder&view=joomla_plugin&layout=edit'.$ref.'" >
|
||||
<span class="icon-new icon-white"></span></a>';
|
||||
}
|
||||
// only add if user allowed to edit joomla_plugin
|
||||
if ($user->authorise('joomla_plugin.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
|
||||
{
|
||||
// build edit button
|
||||
$button[] = '<a id="'.$button_code_name.'Edit" class="btn btn-small hasTooltip" title="'.JText::sprintf('PLG_EXTENSION_COMPONENTBUILDERPOWERSAUTOLOADERCOMPILER_EDIT_S', $button_label).'" style="display: none; padding: 4px 4px 4px 7px;" href="#" >
|
||||
<span class="icon-edit"></span></a>';
|
||||
// build script
|
||||
$script[] = "
|
||||
jQuery(document).ready(function() {
|
||||
jQuery('#adminForm').on('change', '#jform_".$button_code_name."',function (e) {
|
||||
e.preventDefault();
|
||||
var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
|
||||
".$button_code_name."Button(".$button_code_name."Value);
|
||||
});
|
||||
var ".$button_code_name."Value = jQuery('#jform_".$button_code_name."').val();
|
||||
".$button_code_name."Button(".$button_code_name."Value);
|
||||
});
|
||||
function ".$button_code_name."Button(value) {
|
||||
if (value > 0) {
|
||||
// hide the create button
|
||||
jQuery('#".$button_code_name."Create').hide();
|
||||
// show edit button
|
||||
jQuery('#".$button_code_name."Edit').show();
|
||||
var url = 'index.php?option=com_componentbuilder&view=joomla_plugins&task=joomla_plugin.edit&id='+value+'".$refJ."';
|
||||
jQuery('#".$button_code_name."Edit').attr('href', url);
|
||||
} else {
|
||||
// show the create button
|
||||
jQuery('#".$button_code_name."Create').show();
|
||||
// hide edit button
|
||||
jQuery('#".$button_code_name."Edit').hide();
|
||||
}
|
||||
}";
|
||||
}
|
||||
// check if button was created for joomla_plugin field.
|
||||
if (is_array($button) && count($button) > 0)
|
||||
{
|
||||
// Load the needed script.
|
||||
$document = JFactory::getDocument();
|
||||
$document->addScriptDeclaration(implode(' ',$script));
|
||||
// return the button attached to input field.
|
||||
return '<div class="input-append">' .$html . implode('',$button).'</div>';
|
||||
}
|
||||
}
|
||||
return $html;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
|
100
admin/models/fields/linkedviewsorderfields.php
Normal file
100
admin/models/fields/linkedviewsorderfields.php
Normal file
@ -0,0 +1,100 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Linkedviewsorderfields Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldLinkedviewsorderfields extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The linkedviewsorderfields field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'linkedviewsorderfields';
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of JHtml options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// load the db object
|
||||
$db = JFactory::getDBO();
|
||||
// get the input from url
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// get the id
|
||||
$adminView = $jinput->getInt('id', 0);
|
||||
// check if we have an admin view
|
||||
if (is_numeric($adminView) && $adminView >= 1)
|
||||
{
|
||||
// get all the fields linked to the admin view
|
||||
if ($addFields = ComponentbuilderHelper::getVar('admin_fields', (int) $adminView, 'admin_view', 'addfields'))
|
||||
{
|
||||
if (ComponentbuilderHelper::checkJson($addFields))
|
||||
{
|
||||
$addFields = json_decode($addFields, true);
|
||||
if (ComponentbuilderHelper::checkArray($addFields))
|
||||
{
|
||||
foreach($addFields as $addField)
|
||||
{
|
||||
// linked list views and ordering
|
||||
if (isset($addField['field']) && isset($addField['list']) && ($addField['list'] == 1 || $addField['list'] == 4)
|
||||
&& isset($addField['sort']) && $addField['sort'])
|
||||
{
|
||||
$fieldIds[] = (int) $addField['field'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// filter by fields linked
|
||||
if (ComponentbuilderHelper::checkArray($fieldIds))
|
||||
{
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.id','a.name', 'a.xml', 'b.name'),array('id','name', 'xml', 'type')));
|
||||
$query->from($db->quoteName('#__componentbuilder_field', 'a'));
|
||||
$query->join('LEFT', '#__componentbuilder_fieldtype AS b ON b.id = a.fieldtype');
|
||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||
// only load these fields
|
||||
$query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')');
|
||||
$query->order('a.name ASC');
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
$options = array();
|
||||
if ($items)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', '', JText::_('PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_SELECT_AN_OPTION'));
|
||||
$options[] = JHtml::_('select.option', -1, JText::_('PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_ID'). ' [ id - text ]');
|
||||
$options[] = JHtml::_('select.option', -2, JText::_('PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_ORDERING'). ' [ ordering - number ]');
|
||||
$options[] = JHtml::_('select.option', -3, JText::_('PLG_CONTENT_COMPONENTBUILDERFIELDORDERINGTABS_STATUS'). ' [ published - list ]');
|
||||
foreach($items as $item)
|
||||
{
|
||||
// get the field name (TODO this could slow down the system so we will need to improve on this)
|
||||
$field_name = ComponentbuilderHelper::safeFieldName(ComponentbuilderHelper::getBetween(json_decode($item->xml),'name="','"'));
|
||||
$options[] = JHtml::_('select.option', $item->id, $item->name . ' [ ' . $field_name . ' - ' . $item->type . ' ]');
|
||||
}
|
||||
}
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
90
admin/models/fields/namespaces.php
Normal file
90
admin/models/fields/namespaces.php
Normal file
@ -0,0 +1,90 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Namespaces Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldNamespaces extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The namespaces field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'namespaces';
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of JHtml options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// Get the databse object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.guid','a.name','a.namespace','a.type','a.power_version'),array('guid','use_name','namespace','type','version')));
|
||||
$query->from($db->quoteName('#__componentbuilder_power', 'a'));
|
||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||
$query->order('a.name ASC');
|
||||
$query->order('a.type ASC');
|
||||
// Implement View Level Access (if set in table)
|
||||
if (!$user->authorise('core.options', 'com_componentbuilder'))
|
||||
{
|
||||
$columns = $db->getTableColumns('#__componentbuilder_power');
|
||||
if(isset($columns['access']))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
}
|
||||
// get the input
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
// get the id
|
||||
$power_id = $jinput->getInt('id', 0);
|
||||
// if we have an id we remove all classes of the same namespace and name
|
||||
if ($power_id > 0 && ($exclude_powers = ComponentbuilderHelper::excludePowers($power_id)) !== false)
|
||||
{
|
||||
$query->where('a.id NOT IN (' . implode(',', $exclude_powers) . ')');
|
||||
}
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
$options = array();
|
||||
// if none was found, we add this to set an alternative to set custom
|
||||
if (!$items)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_NONE_FOUND'));
|
||||
}
|
||||
if ($items)
|
||||
{
|
||||
if ($this->multiple === false)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_SELECT_AN_OPTION'));
|
||||
}
|
||||
foreach($items as $item)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', $item->guid, str_replace('.','\\', $item->namespace) . ' [' . $item->use_name . '] (v' . $item->version . ' - ' . $item->type . ')');
|
||||
}
|
||||
}
|
||||
return $options;
|
||||
|
||||
}
|
||||
}
|
81
admin/models/fields/powers.php
Normal file
81
admin/models/fields/powers.php
Normal file
@ -0,0 +1,81 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Powers Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldPowers extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The powers field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'powers';
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of JHtml options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// Get the databse object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.guid','a.system_name','a.namespace','a.type','a.power_version'),array('guid','power_system_name','namespace','type','version')));
|
||||
$query->from($db->quoteName('#__componentbuilder_power', 'a'));
|
||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||
$query->order('a.system_name ASC');
|
||||
$query->order('a.type ASC');
|
||||
// Implement View Level Access (if set in table)
|
||||
if (!$user->authorise('core.options', 'com_componentbuilder'))
|
||||
{
|
||||
$columns = $db->getTableColumns('#__componentbuilder_power');
|
||||
if(isset($columns['access']))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
}
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
$options = array();
|
||||
// if none was found, we add this to set an alternative to set custom
|
||||
if (!$items)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', '', 'None found');
|
||||
}
|
||||
if ($items)
|
||||
{
|
||||
if ($this->multiple === false)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', '', 'Select an option');
|
||||
}
|
||||
foreach($items as $item)
|
||||
{
|
||||
$options[] = JHtml::_('select.option', $item->guid, str_replace('.','\\', $item->namespace) . ' [' . $item->power_system_name . '] (v' . $item->version . ' - ' . $item->type . ')');
|
||||
}
|
||||
}
|
||||
return $options;
|
||||
|
||||
}
|
||||
}
|
68
admin/models/fields/powersfilterpowerversion.php
Normal file
68
admin/models/fields/powersfilterpowerversion.php
Normal file
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Powersfilterpowerversion Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldPowersfilterpowerversion extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The powersfilterpowerversion field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'powersfilterpowerversion';
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of JHtml options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Select the text.
|
||||
$query->select($db->quoteName('power_version'));
|
||||
$query->from($db->quoteName('#__componentbuilder_power'));
|
||||
$query->order($db->quoteName('power_version') . ' ASC');
|
||||
|
||||
// Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
$_filter[] = JHtml::_('select.option', '', '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_VERSION') . ' -');
|
||||
|
||||
if ($results)
|
||||
{
|
||||
$results = array_unique($results);
|
||||
foreach ($results as $power_version)
|
||||
{
|
||||
// Now add the power_version and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $power_version, $power_version);
|
||||
}
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
}
|
71
admin/models/fields/powersfiltertype.php
Normal file
71
admin/models/fields/powersfiltertype.php
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Powersfiltertype Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldPowersfiltertype extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The powersfiltertype field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'powersfiltertype';
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of JHtml options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Select the text.
|
||||
$query->select($db->quoteName('type'));
|
||||
$query->from($db->quoteName('#__componentbuilder_power'));
|
||||
$query->order($db->quoteName('type') . ' ASC');
|
||||
|
||||
// Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
|
||||
$results = $db->loadColumn();
|
||||
$_filter = array();
|
||||
|
||||
if ($results)
|
||||
{
|
||||
// get powersmodel
|
||||
$model = ComponentbuilderHelper::getModel('powers');
|
||||
$results = array_unique($results);
|
||||
foreach ($results as $type)
|
||||
{
|
||||
// Translate the type selection
|
||||
$text = $model->selectionTranslation($type,'type');
|
||||
// Now add the type and its text to the options array
|
||||
$_filter[] = JHtml::_('select.option', $type, JText::_($text));
|
||||
}
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
}
|
95
admin/models/forms/filter_powers.xml
Normal file
95
admin/models/forms/filter_powers.xml
Normal file
@ -0,0 +1,95 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_componentbuilder/models/rules"
|
||||
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
type="text"
|
||||
name="search"
|
||||
inputmode="search"
|
||||
label="COM_COMPONENTBUILDER_FILTER_SEARCH"
|
||||
description="COM_COMPONENTBUILDER_FILTER_SEARCH_POWERS"
|
||||
hint="JSEARCH_FILTER"
|
||||
/>
|
||||
<field
|
||||
type="status"
|
||||
name="published"
|
||||
label="COM_COMPONENTBUILDER_FILTER_PUBLISHED"
|
||||
description="COM_COMPONENTBUILDER_FILTER_PUBLISHED_POWERS"
|
||||
onchange="this.form.submit();"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
<field
|
||||
type="accesslevel"
|
||||
name="access"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
multiple="true"
|
||||
class="multipleAccessLevels"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
<field
|
||||
type="powersfiltertype"
|
||||
name="type"
|
||||
label="COM_COMPONENTBUILDER_POWER_TYPE_LABEL"
|
||||
class="multiplePowersfiltertype"
|
||||
multiple="true"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
<field
|
||||
type="powersfilterpowerversion"
|
||||
name="power_version"
|
||||
label="COM_COMPONENTBUILDER_POWER_POWER_VERSION_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
<field
|
||||
type="classpowers"
|
||||
name="extends"
|
||||
label="COM_COMPONENTBUILDER_POWER_EXTENDS_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
|
||||
<fields name="list">
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
default="a.id desc"
|
||||
validate="options"
|
||||
>
|
||||
<option value="">JGLOBAL_SORT_BY</option>
|
||||
<option value="a.ordering ASC">JGRID_HEADING_ORDERING_ASC</option>
|
||||
<option value="a.ordering DESC">JGRID_HEADING_ORDERING_DESC</option>
|
||||
<option value="a.published ASC">JSTATUS_ASC</option>
|
||||
<option value="a.published DESC">JSTATUS_DESC</option>
|
||||
<option value="a.system_name ASC">COM_COMPONENTBUILDER_FILTER_SYSTEM_NAME_ASCENDING</option>
|
||||
<option value="a.system_name DESC">COM_COMPONENTBUILDER_FILTER_SYSTEM_NAME_DESCENDING</option>
|
||||
<option value="a.namespace ASC">COM_COMPONENTBUILDER_FILTER_NAMESPACE_ASCENDING</option>
|
||||
<option value="a.namespace DESC">COM_COMPONENTBUILDER_FILTER_NAMESPACE_DESCENDING</option>
|
||||
<option value="a.type ASC">COM_COMPONENTBUILDER_FILTER_TYPE_OF_POWER_ASCENDING</option>
|
||||
<option value="a.type DESC">COM_COMPONENTBUILDER_FILTER_TYPE_OF_POWER_DESCENDING</option>
|
||||
<option value="a.power_version ASC">COM_COMPONENTBUILDER_FILTER_VERSION_ASCENDING</option>
|
||||
<option value="a.power_version DESC">COM_COMPONENTBUILDER_FILTER_VERSION_DESCENDING</option>
|
||||
<option value="a.id ASC">JGRID_HEADING_ID_ASC</option>
|
||||
<option value="a.id DESC">JGRID_HEADING_ID_DESC</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
@ -194,7 +194,6 @@
|
||||
label="COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_LABEL"
|
||||
size="60"
|
||||
maxlength="150"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
|
451
admin/models/forms/power.xml
Normal file
451
admin/models/forms/power.xml
Normal file
@ -0,0 +1,451 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_componentbuilder/models/rules"
|
||||
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
|
||||
>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="id"
|
||||
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
||||
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
||||
readonly="true"
|
||||
/>
|
||||
<!-- Date Created Field. Type: Calendar (joomla) -->
|
||||
<field
|
||||
name="created"
|
||||
type="calendar"
|
||||
label="COM_COMPONENTBUILDER_POWER_CREATED_DATE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_POWER_CREATED_DATE_DESC"
|
||||
size="22"
|
||||
format="%Y-%m-%d %H:%M:%S"
|
||||
filter="user_utc"
|
||||
/>
|
||||
<!-- User Created Field. Type: User (joomla) -->
|
||||
<field
|
||||
name="created_by"
|
||||
type="user"
|
||||
label="COM_COMPONENTBUILDER_POWER_CREATED_BY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_POWER_CREATED_BY_DESC"
|
||||
/>
|
||||
<!-- Published Field. Type: List (joomla) -->
|
||||
<field name="published" type="list" label="JSTATUS"
|
||||
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
||||
filter="intval" size="1" default="1" >
|
||||
<option value="1">
|
||||
JPUBLISHED</option>
|
||||
<option value="0">
|
||||
JUNPUBLISHED</option>
|
||||
<option value="2">
|
||||
JARCHIVED</option>
|
||||
<option value="-2">
|
||||
JTRASHED</option>
|
||||
</field>
|
||||
<!-- Date Modified Field. Type: Calendar (joomla) -->
|
||||
<field name="modified" type="calendar" class="readonly"
|
||||
label="COM_COMPONENTBUILDER_POWER_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_POWER_MODIFIED_DATE_DESC"
|
||||
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
||||
<!-- User Modified Field. Type: User (joomla) -->
|
||||
<field name="modified_by" type="user"
|
||||
label="COM_COMPONENTBUILDER_POWER_MODIFIED_BY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_POWER_MODIFIED_BY_DESC"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Access Field. Type: Accesslevel (joomla) -->
|
||||
<field name="access"
|
||||
type="accesslevel"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
default="1"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Ordering Field. Type: Numbers (joomla) -->
|
||||
<field
|
||||
name="ordering"
|
||||
type="number"
|
||||
class="inputbox validate-ordering"
|
||||
label="COM_COMPONENTBUILDER_POWER_ORDERING_LABEL"
|
||||
description=""
|
||||
default="0"
|
||||
size="6"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Version Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="version"
|
||||
type="text"
|
||||
class="readonly"
|
||||
label="COM_COMPONENTBUILDER_POWER_VERSION_LABEL"
|
||||
description="COM_COMPONENTBUILDER_POWER_VERSION_DESC"
|
||||
size="6"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Was added due to Permissions JS needing a Title field -->
|
||||
<!-- Let us know at gh-629 should this change -->
|
||||
<!-- https://github.com/vdm-io/Joomla-Component-Builder/issues/629#issuecomment-750117235 -->
|
||||
<field
|
||||
name="title"
|
||||
type="hidden"
|
||||
default="componentbuilder power"
|
||||
/>
|
||||
<!-- Dynamic Fields. -->
|
||||
<!-- System_name Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="system_name"
|
||||
label="COM_COMPONENTBUILDER_POWER_SYSTEM_NAME_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_POWER_SYSTEM_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_POWER_SYSTEM_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_POWER_SYSTEM_NAME_HINT"
|
||||
/>
|
||||
<!-- Namespace Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="namespace"
|
||||
label="COM_COMPONENTBUILDER_POWER_NAMESPACE_LABEL"
|
||||
size="250"
|
||||
maxlength="250"
|
||||
description="COM_COMPONENTBUILDER_POWER_NAMESPACE_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
required="true"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_POWER_NAMESPACE_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_POWER_NAMESPACE_HINT"
|
||||
autocomplete="on"
|
||||
/>
|
||||
<!-- Type Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="type"
|
||||
label="COM_COMPONENTBUILDER_POWER_TYPE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_POWER_TYPE_DESCRIPTION"
|
||||
class="list_class"
|
||||
multiple="false"
|
||||
required="true"
|
||||
default="class">
|
||||
<!-- Option Set. -->
|
||||
<option value="class">
|
||||
COM_COMPONENTBUILDER_POWER_CLASS</option>
|
||||
<option value="abstract class">
|
||||
COM_COMPONENTBUILDER_POWER_ABSTRACT_CLASS</option>
|
||||
<option value="final class">
|
||||
COM_COMPONENTBUILDER_POWER_FINAL_CLASS</option>
|
||||
<option value="interface">
|
||||
COM_COMPONENTBUILDER_POWER_INTERFACE</option>
|
||||
<option value="trait">
|
||||
COM_COMPONENTBUILDER_POWER_TRAIT</option>
|
||||
</field>
|
||||
<!-- Power_version Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="power_version"
|
||||
label="COM_COMPONENTBUILDER_POWER_POWER_VERSION_LABEL"
|
||||
size="40"
|
||||
maxlength="50"
|
||||
default="1.0.0"
|
||||
description="COM_COMPONENTBUILDER_POWER_POWER_VERSION_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="CMD"
|
||||
message="COM_COMPONENTBUILDER_POWER_POWER_VERSION_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_POWER_POWER_VERSION_HINT"
|
||||
/>
|
||||
<!-- Load_selection Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="load_selection"
|
||||
label="COM_COMPONENTBUILDER_POWER_LOAD_SELECTION_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
buttons="add,remove,move"
|
||||
description="COM_COMPONENTBUILDER_POWER_LOAD_SELECTION_DESCRIPTION"
|
||||
icon="list"
|
||||
max="30"
|
||||
min="0">
|
||||
<form hidden="true" name="list_load_selection_modal" repeat="true">
|
||||
<!-- Load Field. Type: Namespaces. (custom) -->
|
||||
<field
|
||||
type="namespaces"
|
||||
name="load"
|
||||
label="COM_COMPONENTBUILDER_POWER_LOAD_LABEL"
|
||||
class="list_class span12"
|
||||
multiple="false"
|
||||
default="0"
|
||||
button="false"
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Load_powers_note Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="load_powers_note" label="COM_COMPONENTBUILDER_POWER_LOAD_POWERS_NOTE_LABEL" description="COM_COMPONENTBUILDER_POWER_LOAD_POWERS_NOTE_DESCRIPTION" heading="h4" class="alert alert-info load_powers_note" />
|
||||
<!-- Main_class_code Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="main_class_code"
|
||||
label="COM_COMPONENTBUILDER_POWER_MAIN_CLASS_CODE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_POWER_MAIN_CLASS_CODE_DESCRIPTION"
|
||||
width="100%"
|
||||
height="800px"
|
||||
cols="40"
|
||||
rows="300"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Use_selection Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="use_selection"
|
||||
label="COM_COMPONENTBUILDER_POWER_USE_SELECTION_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
buttons="add,remove,move"
|
||||
description="COM_COMPONENTBUILDER_POWER_USE_SELECTION_DESCRIPTION"
|
||||
icon="list"
|
||||
max="30"
|
||||
min="0"
|
||||
showon="type!:interface">
|
||||
<form hidden="true" name="list_use_selection_modal" repeat="true">
|
||||
<!-- Use Field. Type: Namespaces. (custom) -->
|
||||
<field
|
||||
type="namespaces"
|
||||
name="use"
|
||||
label="COM_COMPONENTBUILDER_POWER_USE_LABEL"
|
||||
class="list_class span12"
|
||||
multiple="false"
|
||||
default="0"
|
||||
button="false"
|
||||
/>
|
||||
<!-- As Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="as"
|
||||
label="COM_COMPONENTBUILDER_POWER_AS_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
default="default"
|
||||
class="text_area"
|
||||
filter="STRING"
|
||||
autocomplete="on"
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Description Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="description"
|
||||
label="COM_COMPONENTBUILDER_POWER_DESCRIPTION_LABEL"
|
||||
rows="11"
|
||||
cols="10"
|
||||
description="COM_COMPONENTBUILDER_POWER_DESCRIPTION_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="HTML"
|
||||
hint="COM_COMPONENTBUILDER_POWER_DESCRIPTION_HINT"
|
||||
/>
|
||||
<!-- Property_selection Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="property_selection"
|
||||
label="COM_COMPONENTBUILDER_POWER_PROPERTY_SELECTION_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
buttons="add,remove,move"
|
||||
description="COM_COMPONENTBUILDER_POWER_PROPERTY_SELECTION_DESCRIPTION"
|
||||
icon="list"
|
||||
max="150"
|
||||
min="0">
|
||||
<form hidden="true" name="list_property_selection_modal" repeat="true">
|
||||
<!-- Property Field. Type: Pluginsclassproperties. (custom) -->
|
||||
<field
|
||||
type="pluginsclassproperties"
|
||||
name="property"
|
||||
label="COM_COMPONENTBUILDER_POWER_PROPERTY_LABEL"
|
||||
class="list_class span12 property_selection_list"
|
||||
multiple="false"
|
||||
default="0"
|
||||
onchange="getClassCode(this, 'property');"
|
||||
button="false"
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Add_head Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_head"
|
||||
label="COM_COMPONENTBUILDER_POWER_ADD_HEAD_LABEL"
|
||||
description="COM_COMPONENTBUILDER_POWER_ADD_HEAD_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="0">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_POWER_YES</option>
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_POWER_NO</option>
|
||||
</field>
|
||||
<!-- Implements_custom Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="implements_custom"
|
||||
label="COM_COMPONENTBUILDER_POWER_IMPLEMENTS_CUSTOM_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
description="COM_COMPONENTBUILDER_POWER_IMPLEMENTS_CUSTOM_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_POWER_IMPLEMENTS_CUSTOM_MESSAGE"
|
||||
autocomplete="on"
|
||||
showon="implements:-1"
|
||||
/>
|
||||
<!-- Implements Field. Type: Interfacepowers. (custom) -->
|
||||
<field
|
||||
type="interfacepowers"
|
||||
name="implements"
|
||||
label="COM_COMPONENTBUILDER_POWER_IMPLEMENTS_LABEL"
|
||||
description="COM_COMPONENTBUILDER_POWER_IMPLEMENTS_DESCRIPTION"
|
||||
class="list_class span12"
|
||||
multiple="true"
|
||||
default="0"
|
||||
showon="type!:interface[AND]type!:trait"
|
||||
button="true"
|
||||
/>
|
||||
<!-- Extends_custom Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="extends_custom"
|
||||
label="COM_COMPONENTBUILDER_POWER_EXTENDS_CUSTOM_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
description="COM_COMPONENTBUILDER_POWER_EXTENDS_CUSTOM_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_POWER_EXTENDS_CUSTOM_MESSAGE"
|
||||
autocomplete="on"
|
||||
showon="extends:-1[AND]type!:trait[AND]type!:interface"
|
||||
/>
|
||||
<!-- Extends Field. Type: Classpowers. (custom) -->
|
||||
<field
|
||||
type="classpowers"
|
||||
name="extends"
|
||||
label="COM_COMPONENTBUILDER_POWER_EXTENDS_LABEL"
|
||||
description="COM_COMPONENTBUILDER_POWER_EXTENDS_DESCRIPTION"
|
||||
class="list_class span12"
|
||||
multiple="false"
|
||||
default="0"
|
||||
showon="type:class[OR]type:abstract class[OR]type:final class"
|
||||
button="true"
|
||||
/>
|
||||
<!-- Note_linked_to_notice Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_linked_to_notice" label="COM_COMPONENTBUILDER_POWER_NOTE_LINKED_TO_NOTICE_LABEL" description="COM_COMPONENTBUILDER_POWER_NOTE_LINKED_TO_NOTICE_DESCRIPTION" heading="h4" class="note_linked_to_notice" />
|
||||
<!-- Not_required Field. Type: Hidden. (joomla) -->
|
||||
<field
|
||||
type="hidden"
|
||||
name="not_required"
|
||||
default="一_一"
|
||||
/>
|
||||
<!-- Method_selection Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="method_selection"
|
||||
label="COM_COMPONENTBUILDER_POWER_METHOD_SELECTION_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
buttons="add,remove,move"
|
||||
description="COM_COMPONENTBUILDER_POWER_METHOD_SELECTION_DESCRIPTION"
|
||||
icon="list"
|
||||
max="150"
|
||||
min="0">
|
||||
<form hidden="true" name="list_method_selection_modal" repeat="true">
|
||||
<!-- Method Field. Type: Pluginsclassmethods. (custom) -->
|
||||
<field
|
||||
type="pluginsclassmethods"
|
||||
name="method"
|
||||
label="COM_COMPONENTBUILDER_POWER_METHOD_LABEL"
|
||||
class="list_class span12 method_selection_list"
|
||||
multiple="false"
|
||||
default="0"
|
||||
onchange="getClassCode(this, 'method');"
|
||||
button="false"
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
<!-- Namespace_details Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="namespace_details" label="COM_COMPONENTBUILDER_POWER_NAMESPACE_DETAILS_LABEL" description="COM_COMPONENTBUILDER_POWER_NAMESPACE_DETAILS_DESCRIPTION" heading="h4" class="alert alert-success namespace_details" />
|
||||
<!-- Head Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="head"
|
||||
label="COM_COMPONENTBUILDER_POWER_HEAD_LABEL"
|
||||
description="COM_COMPONENTBUILDER_POWER_HEAD_DESCRIPTION"
|
||||
width="100%"
|
||||
height="100px"
|
||||
cols="15"
|
||||
rows="10"
|
||||
buttons="no"
|
||||
syntax="php"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
required="false"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Guid Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="guid"
|
||||
label="COM_COMPONENTBUILDER_POWER_GUID_LABEL"
|
||||
size="40"
|
||||
maxlength="40"
|
||||
description="COM_COMPONENTBUILDER_POWER_GUID_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="true"
|
||||
filter="CMD"
|
||||
validate="guid"
|
||||
hint="COM_COMPONENTBUILDER_POWER_GUID_HINT"
|
||||
/>
|
||||
<!-- Name Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="name"
|
||||
label="COM_COMPONENTBUILDER_POWER_NAME_LABEL"
|
||||
size="40"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_POWER_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_POWER_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_POWER_NAME_HINT"
|
||||
/>
|
||||
</fieldset>
|
||||
|
||||
<!-- Access Control Fields. -->
|
||||
<fieldset name="accesscontrol">
|
||||
<!-- Asset Id Field. Type: Hidden (joomla) -->
|
||||
<field
|
||||
name="asset_id"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Rules Field. Type: Rules (joomla) -->
|
||||
<field
|
||||
name="rules"
|
||||
type="rules"
|
||||
label="Permissions in relation to this power"
|
||||
translate_label="false"
|
||||
filter="rules"
|
||||
validate="rules"
|
||||
class="inputbox"
|
||||
component="com_componentbuilder"
|
||||
section="power"
|
||||
/>
|
||||
</fieldset>
|
||||
</form>
|
@ -114,7 +114,6 @@
|
||||
label="COM_COMPONENTBUILDER_SNIPPET_URL_LABEL"
|
||||
size="60"
|
||||
maxlength="150"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_SNIPPET_URL_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
|
@ -280,6 +280,156 @@ class ComponentbuilderModelJoomla_modules extends ListModel
|
||||
return $query;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get list export data.
|
||||
*
|
||||
* @param array $pks The ids of the items to get
|
||||
* @param JUser $user The user making the request
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getExportData($pks, $user = null)
|
||||
{
|
||||
// setup the query
|
||||
if (($pks_size = ComponentbuilderHelper::checkArray($pks)) !== false || 'bulk' === $pks)
|
||||
{
|
||||
// Set a value to know this is export method. (USE IN CUSTOM CODE TO ALTER OUTCOME)
|
||||
$_export = true;
|
||||
// Get the user object if not set.
|
||||
if (!isset($user) || !ComponentbuilderHelper::checkObject($user))
|
||||
{
|
||||
$user = JFactory::getUser();
|
||||
}
|
||||
// Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// From the componentbuilder_joomla_module table
|
||||
$query->from($db->quoteName('#__componentbuilder_joomla_module', 'a'));
|
||||
// The bulk export path
|
||||
if ('bulk' === $pks)
|
||||
{
|
||||
$query->where('a.id > 0');
|
||||
}
|
||||
// A large array of ID's will not work out well
|
||||
elseif ($pks_size > 500)
|
||||
{
|
||||
// Use lowest ID
|
||||
$query->where('a.id >= ' . (int) min($pks));
|
||||
// Use highest ID
|
||||
$query->where('a.id <= ' . (int) max($pks));
|
||||
}
|
||||
// The normal default path
|
||||
else
|
||||
{
|
||||
$query->where('a.id IN (' . implode(',',$pks) . ')');
|
||||
}
|
||||
// Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_componentbuilder'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
|
||||
// Order the results by ordering
|
||||
$query->order('a.id desc');
|
||||
|
||||
// Load the items
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
$items = $db->loadObjectList();
|
||||
|
||||
// Set values to display correctly.
|
||||
if (ComponentbuilderHelper::checkArray($items))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// Remove items the user can't access.
|
||||
$access = ($user->authorise('joomla_module.access', 'com_componentbuilder.joomla_module.' . (int) $item->id) && $user->authorise('joomla_module.access', 'com_componentbuilder'));
|
||||
if (!$access)
|
||||
{
|
||||
unset($items[$nr]);
|
||||
continue;
|
||||
}
|
||||
|
||||
// decode default
|
||||
$item->default = base64_decode($item->default);
|
||||
// decode php_preflight_update
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
// decode php_preflight_uninstall
|
||||
$item->php_preflight_uninstall = base64_decode($item->php_preflight_uninstall);
|
||||
// decode mod_code
|
||||
$item->mod_code = base64_decode($item->mod_code);
|
||||
// decode php_postflight_install
|
||||
$item->php_postflight_install = base64_decode($item->php_postflight_install);
|
||||
// decode php_postflight_update
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
// decode php_method_uninstall
|
||||
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
|
||||
// decode class_helper_header
|
||||
$item->class_helper_header = base64_decode($item->class_helper_header);
|
||||
// decode sql
|
||||
$item->sql = base64_decode($item->sql);
|
||||
// decode class_helper_code
|
||||
$item->class_helper_code = base64_decode($item->class_helper_code);
|
||||
// decode sql_uninstall
|
||||
$item->sql_uninstall = base64_decode($item->sql_uninstall);
|
||||
// decode readme
|
||||
$item->readme = base64_decode($item->readme);
|
||||
// decode php_script_construct
|
||||
$item->php_script_construct = base64_decode($item->php_script_construct);
|
||||
// decode php_preflight_install
|
||||
$item->php_preflight_install = base64_decode($item->php_preflight_install);
|
||||
// unset the values we don't want exported.
|
||||
unset($item->asset_id);
|
||||
unset($item->checked_out);
|
||||
unset($item->checked_out_time);
|
||||
}
|
||||
}
|
||||
// Add headers to items array.
|
||||
$headers = $this->getExImPortHeaders();
|
||||
if (ComponentbuilderHelper::checkObject($headers))
|
||||
{
|
||||
array_unshift($items,$headers);
|
||||
}
|
||||
return $items;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get header.
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getExImPortHeaders()
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// get the columns
|
||||
$columns = $db->getTableColumns("#__componentbuilder_joomla_module");
|
||||
if (ComponentbuilderHelper::checkArray($columns))
|
||||
{
|
||||
// remove the headers you don't import/export.
|
||||
unset($columns['asset_id']);
|
||||
unset($columns['checked_out']);
|
||||
unset($columns['checked_out_time']);
|
||||
$headers = new stdClass();
|
||||
foreach ($columns as $column => $type)
|
||||
{
|
||||
$headers->{$column} = $column;
|
||||
}
|
||||
return $headers;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get a store id based on model configuration state.
|
||||
*
|
||||
|
1180
admin/models/power.php
Normal file
1180
admin/models/power.php
Normal file
File diff suppressed because it is too large
Load Diff
464
admin/models/powers.php
Normal file
464
admin/models/powers.php
Normal file
@ -0,0 +1,464 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
use Joomla\CMS\MVC\Model\ListModel;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Powers List Model
|
||||
*/
|
||||
class ComponentbuilderModelPowers extends ListModel
|
||||
{
|
||||
public function __construct($config = array())
|
||||
{
|
||||
if (empty($config['filter_fields']))
|
||||
{
|
||||
$config['filter_fields'] = array(
|
||||
'a.id','id',
|
||||
'a.published','published',
|
||||
'a.access','access',
|
||||
'a.ordering','ordering',
|
||||
'a.created_by','created_by',
|
||||
'a.modified_by','modified_by',
|
||||
'a.type','type',
|
||||
'a.power_version','power_version',
|
||||
'h.name','extends',
|
||||
'a.system_name','system_name',
|
||||
'a.namespace','namespace'
|
||||
);
|
||||
}
|
||||
|
||||
parent::__construct($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to auto-populate the model state.
|
||||
*
|
||||
* Note. Calling getState in this method will result in recursion.
|
||||
*
|
||||
* @param string $ordering An optional ordering field.
|
||||
* @param string $direction An optional direction (asc|desc).
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
protected function populateState($ordering = null, $direction = null)
|
||||
{
|
||||
$app = JFactory::getApplication();
|
||||
|
||||
// Adjust the context to support modal layouts.
|
||||
if ($layout = $app->input->get('layout'))
|
||||
{
|
||||
$this->context .= '.' . $layout;
|
||||
}
|
||||
|
||||
// Check if the form was submitted
|
||||
$formSubmited = $app->input->post->get('form_submited');
|
||||
|
||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$access = $app->input->post->get('access');
|
||||
$this->setState('filter.access', $access);
|
||||
}
|
||||
|
||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||
$this->setState('filter.published', $published);
|
||||
|
||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||
$this->setState('filter.created_by', $created_by);
|
||||
|
||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||
$this->setState('filter.created', $created);
|
||||
|
||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||
$this->setState('filter.sorting', $sorting);
|
||||
|
||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||
$this->setState('filter.search', $search);
|
||||
|
||||
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$type = $app->input->post->get('type');
|
||||
$this->setState('filter.type', $type);
|
||||
}
|
||||
|
||||
$power_version = $this->getUserStateFromRequest($this->context . '.filter.power_version', 'filter_power_version');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$power_version = $app->input->post->get('power_version');
|
||||
$this->setState('filter.power_version', $power_version);
|
||||
}
|
||||
|
||||
$extends = $this->getUserStateFromRequest($this->context . '.filter.extends', 'filter_extends');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$extends = $app->input->post->get('extends');
|
||||
$this->setState('filter.extends', $extends);
|
||||
}
|
||||
|
||||
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$system_name = $app->input->post->get('system_name');
|
||||
$this->setState('filter.system_name', $system_name);
|
||||
}
|
||||
|
||||
$namespace = $this->getUserStateFromRequest($this->context . '.filter.namespace', 'filter_namespace');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$namespace = $app->input->post->get('namespace');
|
||||
$this->setState('filter.namespace', $namespace);
|
||||
}
|
||||
|
||||
// List state information.
|
||||
parent::populateState($ordering, $direction);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get an array of data items.
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getItems()
|
||||
{
|
||||
// Check in items
|
||||
$this->checkInNow();
|
||||
|
||||
// load parent items
|
||||
$items = parent::getItems();
|
||||
|
||||
// Set values to display correctly.
|
||||
if (ComponentbuilderHelper::checkArray($items))
|
||||
{
|
||||
// Get the user object if not set.
|
||||
if (!isset($user) || !ComponentbuilderHelper::checkObject($user))
|
||||
{
|
||||
$user = JFactory::getUser();
|
||||
}
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// Remove items the user can't access.
|
||||
$access = ($user->authorise('power.access', 'com_componentbuilder.power.' . (int) $item->id) && $user->authorise('power.access', 'com_componentbuilder'));
|
||||
if (!$access)
|
||||
{
|
||||
unset($items[$nr]);
|
||||
continue;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// set selection value to a translatable value
|
||||
if (ComponentbuilderHelper::checkArray($items))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// convert type
|
||||
$item->type = $this->selectionTranslation($item->type, 'type');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// return items
|
||||
return $items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to convert selection values to translatable string.
|
||||
*
|
||||
* @return translatable string
|
||||
*/
|
||||
public function selectionTranslation($value,$name)
|
||||
{
|
||||
// Array of type language strings
|
||||
if ($name === 'type')
|
||||
{
|
||||
$typeArray = array(
|
||||
'class' => 'COM_COMPONENTBUILDER_POWER_CLASS',
|
||||
'abstract class' => 'COM_COMPONENTBUILDER_POWER_ABSTRACT_CLASS',
|
||||
'final class' => 'COM_COMPONENTBUILDER_POWER_FINAL_CLASS',
|
||||
'interface' => 'COM_COMPONENTBUILDER_POWER_INTERFACE',
|
||||
'trait' => 'COM_COMPONENTBUILDER_POWER_TRAIT'
|
||||
);
|
||||
// Now check if value is found in this array
|
||||
if (isset($typeArray[$value]) && ComponentbuilderHelper::checkString($typeArray[$value]))
|
||||
{
|
||||
return $typeArray[$value];
|
||||
}
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to build an SQL query to load the list data.
|
||||
*
|
||||
* @return string An SQL query
|
||||
*/
|
||||
protected function getListQuery()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = JFactory::getUser();
|
||||
// Create a new query object.
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// From the componentbuilder_item table
|
||||
$query->from($db->quoteName('#__componentbuilder_power', 'a'));
|
||||
|
||||
// From the componentbuilder_power table.
|
||||
$query->select($db->quoteName(['h.name','h.id'],['extends_name','extends_id']));
|
||||
$query->join('LEFT', $db->quoteName('#__componentbuilder_power', 'h') . ' ON (' . $db->quoteName('a.extends') . ' = ' . $db->quoteName('h.guid') . ')');
|
||||
|
||||
// Filter by published state
|
||||
$published = $this->getState('filter.published');
|
||||
if (is_numeric($published))
|
||||
{
|
||||
$query->where('a.published = ' . (int) $published);
|
||||
}
|
||||
elseif ($published === '')
|
||||
{
|
||||
$query->where('(a.published = 0 OR a.published = 1)');
|
||||
}
|
||||
|
||||
// Join over the asset groups.
|
||||
$query->select('ag.title AS access_level');
|
||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||
// Filter by access level.
|
||||
$_access = $this->getState('filter.access');
|
||||
if ($_access && is_numeric($_access))
|
||||
{
|
||||
$query->where('a.access = ' . (int) $_access);
|
||||
}
|
||||
elseif (ComponentbuilderHelper::checkArray($_access))
|
||||
{
|
||||
// Secure the array for the query
|
||||
$_access = ArrayHelper::toInteger($_access);
|
||||
// Filter by the Access Array.
|
||||
$query->where('a.access IN (' . implode(',', $_access) . ')');
|
||||
}
|
||||
// Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_componentbuilder'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
// Filter by search.
|
||||
$search = $this->getState('filter.search');
|
||||
if (!empty($search))
|
||||
{
|
||||
if (stripos($search, 'id:') === 0)
|
||||
{
|
||||
$query->where('a.id = ' . (int) substr($search, 3));
|
||||
}
|
||||
else
|
||||
{
|
||||
$search = $db->quote('%' . $db->escape($search) . '%');
|
||||
$query->where('(a.system_name LIKE '.$search.' OR a.type LIKE '.$search.' OR a.description LIKE '.$search.' OR a.extends_custom LIKE '.$search.' OR a.extends LIKE '.$search.' OR a.name LIKE '.$search.')');
|
||||
}
|
||||
}
|
||||
|
||||
// Filter by Type.
|
||||
$_type = $this->getState('filter.type');
|
||||
if (is_numeric($_type))
|
||||
{
|
||||
if (is_float($_type))
|
||||
{
|
||||
$query->where('a.type = ' . (float) $_type);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->where('a.type = ' . (int) $_type);
|
||||
}
|
||||
}
|
||||
elseif (ComponentbuilderHelper::checkString($_type))
|
||||
{
|
||||
$query->where('a.type = ' . $db->quote($db->escape($_type)));
|
||||
}
|
||||
elseif (ComponentbuilderHelper::checkArray($_type))
|
||||
{
|
||||
// Secure the array for the query
|
||||
$_type = array_map( function ($val) use(&$db) {
|
||||
if (is_numeric($val))
|
||||
{
|
||||
if (is_float($val))
|
||||
{
|
||||
return (float) $val;
|
||||
}
|
||||
else
|
||||
{
|
||||
return (int) $val;
|
||||
}
|
||||
}
|
||||
elseif (ComponentbuilderHelper::checkString($val))
|
||||
{
|
||||
return $db->quote($db->escape($val));
|
||||
}
|
||||
}, $_type);
|
||||
// Filter by the Type Array.
|
||||
$query->where('a.type IN (' . implode(',', $_type) . ')');
|
||||
}
|
||||
// Filter by Power_version.
|
||||
$_power_version = $this->getState('filter.power_version');
|
||||
if (is_numeric($_power_version))
|
||||
{
|
||||
if (is_float($_power_version))
|
||||
{
|
||||
$query->where('a.power_version = ' . (float) $_power_version);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->where('a.power_version = ' . (int) $_power_version);
|
||||
}
|
||||
}
|
||||
elseif (ComponentbuilderHelper::checkString($_power_version))
|
||||
{
|
||||
$query->where('a.power_version = ' . $db->quote($db->escape($_power_version)));
|
||||
}
|
||||
// Filter by Extends.
|
||||
$_extends = $this->getState('filter.extends');
|
||||
if (is_numeric($_extends))
|
||||
{
|
||||
if (is_float($_extends))
|
||||
{
|
||||
$query->where('a.extends = ' . (float) $_extends);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->where('a.extends = ' . (int) $_extends);
|
||||
}
|
||||
}
|
||||
elseif (ComponentbuilderHelper::checkString($_extends))
|
||||
{
|
||||
$query->where('a.extends = ' . $db->quote($db->escape($_extends)));
|
||||
}
|
||||
|
||||
// Add the list ordering clause.
|
||||
$orderCol = $this->state->get('list.ordering', 'a.id');
|
||||
$orderDirn = $this->state->get('list.direction', 'desc');
|
||||
if ($orderCol != '')
|
||||
{
|
||||
$query->order($db->escape($orderCol . ' ' . $orderDirn));
|
||||
}
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get a store id based on model configuration state.
|
||||
*
|
||||
* @return string A store id.
|
||||
*
|
||||
*/
|
||||
protected function getStoreId($id = '')
|
||||
{
|
||||
// Compile the store id.
|
||||
$id .= ':' . $this->getState('filter.id');
|
||||
$id .= ':' . $this->getState('filter.search');
|
||||
$id .= ':' . $this->getState('filter.published');
|
||||
// Check if the value is an array
|
||||
$_access = $this->getState('filter.access');
|
||||
if (ComponentbuilderHelper::checkArray($_access))
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| ComponentbuilderHelper::checkString($_access))
|
||||
{
|
||||
$id .= ':' . $_access;
|
||||
}
|
||||
$id .= ':' . $this->getState('filter.ordering');
|
||||
$id .= ':' . $this->getState('filter.created_by');
|
||||
$id .= ':' . $this->getState('filter.modified_by');
|
||||
// Check if the value is an array
|
||||
$_type = $this->getState('filter.type');
|
||||
if (ComponentbuilderHelper::checkArray($_type))
|
||||
{
|
||||
$id .= ':' . implode(':', $_type);
|
||||
}
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_type)
|
||||
|| ComponentbuilderHelper::checkString($_type))
|
||||
{
|
||||
$id .= ':' . $_type;
|
||||
}
|
||||
$id .= ':' . $this->getState('filter.power_version');
|
||||
$id .= ':' . $this->getState('filter.extends');
|
||||
$id .= ':' . $this->getState('filter.system_name');
|
||||
$id .= ':' . $this->getState('filter.namespace');
|
||||
|
||||
return parent::getStoreId($id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Build an SQL query to checkin all items left checked out longer then a set time.
|
||||
*
|
||||
* @return a bool
|
||||
*
|
||||
*/
|
||||
protected function checkInNow()
|
||||
{
|
||||
// Get set check in time
|
||||
$time = JComponentHelper::getParams('com_componentbuilder')->get('check_in');
|
||||
|
||||
if ($time)
|
||||
{
|
||||
|
||||
// Get a db connection.
|
||||
$db = JFactory::getDbo();
|
||||
// Reset query.
|
||||
$query = $db->getQuery(true);
|
||||
$query->select('*');
|
||||
$query->from($db->quoteName('#__componentbuilder_power'));
|
||||
// Only select items that are checked out.
|
||||
$query->where($db->quoteName('checked_out') . '!=0');
|
||||
$db->setQuery($query, 0, 1);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
// Get Yesterdays date.
|
||||
$date = JFactory::getDate()->modify($time)->toSql();
|
||||
// Reset query.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Fields to update.
|
||||
$fields = array(
|
||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||
$db->quoteName('checked_out') . '=0'
|
||||
);
|
||||
|
||||
// Conditions for which records should be updated.
|
||||
$conditions = array(
|
||||
$db->quoteName('checked_out') . '!=0',
|
||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||
);
|
||||
|
||||
// Check table.
|
||||
$query->update($db->quoteName('#__componentbuilder_power'))->set($fields)->where($conditions);
|
||||
|
||||
$db->setQuery($query);
|
||||
|
||||
$db->execute();
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,7 @@
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_joomla_component`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_joomla_module`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_joomla_plugin`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_power`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_admin_view`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_custom_admin_view`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_site_view`;
|
||||
|
47
admin/sql/updates/mysql/2.13.1.sql
Normal file
47
admin/sql/updates/mysql/2.13.1.sql
Normal file
@ -0,0 +1,47 @@
|
||||
CREATE TABLE IF NOT EXISTS `#__componentbuilder_power` (
|
||||
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
||||
`add_head` TINYINT(1) NOT NULL DEFAULT 0,
|
||||
`description` TEXT NOT NULL,
|
||||
`extends` VARCHAR(36) NOT NULL DEFAULT '',
|
||||
`extends_custom` VARCHAR(64) NOT NULL DEFAULT '',
|
||||
`guid` VARCHAR(36) NOT NULL DEFAULT '',
|
||||
`head` TEXT NOT NULL,
|
||||
`implements` TEXT NULL,
|
||||
`implements_custom` VARCHAR(1024) NOT NULL DEFAULT '',
|
||||
`load_selection` TEXT NOT NULL,
|
||||
`main_class_code` MEDIUMTEXT NOT NULL,
|
||||
`method_selection` TEXT NOT NULL,
|
||||
`name` VARCHAR(255) NOT NULL DEFAULT '',
|
||||
`namespace` VARCHAR(255) NOT NULL DEFAULT '',
|
||||
`power_version` CHAR(64) NOT NULL DEFAULT '',
|
||||
`property_selection` TEXT NOT NULL,
|
||||
`system_name` VARCHAR(255) NOT NULL DEFAULT '',
|
||||
`type` VARCHAR(64) NOT NULL DEFAULT '',
|
||||
`use_selection` TEXT NOT NULL,
|
||||
`params` text NULL,
|
||||
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
||||
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
|
||||
`checked_out_time` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`version` INT(10) unsigned NOT NULL DEFAULT 1,
|
||||
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||
`access` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||
`ordering` INT(11) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_system_name` (`system_name`),
|
||||
KEY `idx_namespace` (`namespace`),
|
||||
KEY `idx_type` (`type`),
|
||||
KEY `idx_implements_custom` (`implements_custom`),
|
||||
KEY `idx_extends_custom` (`extends_custom`),
|
||||
KEY `idx_guid` (`guid`),
|
||||
KEY `idx_name` (`name`),
|
||||
KEY `idx_access` (`access`),
|
||||
KEY `idx_checkout` (`checked_out`),
|
||||
KEY `idx_createdby` (`created_by`),
|
||||
KEY `idx_modifiedby` (`modified_by`),
|
||||
KEY `idx_state` (`published`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8mb4 DEFAULT COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC;
|
325
admin/tables/power.php
Normal file
325
admin/tables/power.php
Normal file
@ -0,0 +1,325 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
use Joomla\CMS\Table\Table;
|
||||
use Joomla\Registry\Registry;
|
||||
use Joomla\String\StringHelper;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Powers Table class
|
||||
*/
|
||||
class ComponentbuilderTablePower extends Table
|
||||
{
|
||||
/**
|
||||
* Ensure the params and metadata in json encoded in the bind method
|
||||
*
|
||||
* @var array
|
||||
* @since 3.3
|
||||
*/
|
||||
protected $_jsonEncode = array('params', 'metadata');
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param object Database connector object
|
||||
*/
|
||||
function __construct(&$db)
|
||||
{
|
||||
parent::__construct('#__componentbuilder_power', 'id', $db);
|
||||
|
||||
// Adding History Options
|
||||
JTableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_componentbuilder.power'));
|
||||
}
|
||||
|
||||
public function bind($array, $ignore = '')
|
||||
{
|
||||
|
||||
if (isset($array['params']) && is_array($array['params']))
|
||||
{
|
||||
$registry = new JRegistry;
|
||||
$registry->loadArray($array['params']);
|
||||
$array['params'] = (string) $registry;
|
||||
}
|
||||
|
||||
if (isset($array['metadata']) && is_array($array['metadata']))
|
||||
{
|
||||
$registry = new JRegistry;
|
||||
$registry->loadArray($array['metadata']);
|
||||
$array['metadata'] = (string) $registry;
|
||||
}
|
||||
|
||||
// Bind the rules.
|
||||
if (isset($array['rules']) && is_array($array['rules']))
|
||||
{
|
||||
$rules = new JAccessRules($array['rules']);
|
||||
$this->setRules($rules);
|
||||
}
|
||||
return parent::bind($array, $ignore);
|
||||
}
|
||||
|
||||
/**
|
||||
* Overload the store method for the Power table.
|
||||
*
|
||||
* @param boolean Toggle whether null values should be updated.
|
||||
* @return boolean True on success, false on failure.
|
||||
* @since 1.6
|
||||
*/
|
||||
public function store($updateNulls = false)
|
||||
{
|
||||
$date = JFactory::getDate();
|
||||
$user = JFactory::getUser();
|
||||
|
||||
if ($this->id)
|
||||
{
|
||||
// Existing item
|
||||
$this->modified = $date->toSql();
|
||||
$this->modified_by = $user->get('id');
|
||||
}
|
||||
else
|
||||
{
|
||||
// New power. A power created and created_by field can be set by the user,
|
||||
// so we don't touch either of these if they are set.
|
||||
if (!(int) $this->created)
|
||||
{
|
||||
$this->created = $date->toSql();
|
||||
}
|
||||
if (empty($this->created_by))
|
||||
{
|
||||
$this->created_by = $user->get('id');
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($this->alias))
|
||||
{
|
||||
// Verify that the alias is unique
|
||||
$table = JTable::getInstance('power', 'ComponentbuilderTable');
|
||||
|
||||
if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0))
|
||||
{
|
||||
$this->setError(JText::_('COM_COMPONENTBUILDER_POWER_ERROR_UNIQUE_ALIAS'));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($this->url))
|
||||
{
|
||||
// Convert IDN urls to punycode
|
||||
$this->url = JStringPunycode::urlToPunycode($this->url);
|
||||
}
|
||||
if (isset($this->website))
|
||||
{
|
||||
// Convert IDN urls to punycode
|
||||
$this->website = JStringPunycode::urlToPunycode($this->website);
|
||||
}
|
||||
|
||||
return parent::store($updateNulls);
|
||||
}
|
||||
|
||||
/**
|
||||
* Overloaded check method to ensure data integrity.
|
||||
*
|
||||
* @return boolean True on success.
|
||||
*/
|
||||
public function check()
|
||||
{
|
||||
if (isset($this->alias))
|
||||
{
|
||||
// Generate a valid alias
|
||||
$this->generateAlias();
|
||||
|
||||
$table = JTable::getInstance('power', 'componentbuilderTable');
|
||||
|
||||
while ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0))
|
||||
{
|
||||
$this->alias = StringHelper::increment($this->alias, 'dash');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Clean up keywords -- eliminate extra spaces between phrases
|
||||
* and cr (\r) and lf (\n) characters from string.
|
||||
* Only process if not empty.
|
||||
*/
|
||||
if (!empty($this->metakey))
|
||||
{
|
||||
// Array of characters to remove.
|
||||
$bad_characters = array("\n", "\r", "\"", "<", ">");
|
||||
|
||||
// Remove bad characters.
|
||||
$after_clean = StringHelper::str_ireplace($bad_characters, "", $this->metakey);
|
||||
|
||||
// Create array using commas as delimiter.
|
||||
$keys = explode(',', $after_clean);
|
||||
$clean_keys = array();
|
||||
|
||||
foreach ($keys as $key)
|
||||
{
|
||||
// Ignore blank keywords.
|
||||
if (trim($key))
|
||||
{
|
||||
$clean_keys[] = trim($key);
|
||||
}
|
||||
}
|
||||
|
||||
// Put array back together delimited by ", "
|
||||
$this->metakey = implode(", ", $clean_keys);
|
||||
}
|
||||
|
||||
// Clean up description -- eliminate quotes and <> brackets
|
||||
if (!empty($this->metadesc))
|
||||
{
|
||||
// Only process if not empty
|
||||
$bad_characters = array("\"", "<", ">");
|
||||
$this->metadesc = StringHelper::str_ireplace($bad_characters, "", $this->metadesc);
|
||||
}
|
||||
|
||||
// If we don't have any access rules set at this point just use an empty JAccessRules class
|
||||
if (!$this->getRules())
|
||||
{
|
||||
$rules = $this->getDefaultAssetValues('com_componentbuilder.power.'.$this->id);
|
||||
$this->setRules($rules);
|
||||
}
|
||||
|
||||
// Set ordering
|
||||
if ($this->published < 0)
|
||||
{
|
||||
// Set ordering to 0 if state is archived or trashed
|
||||
$this->ordering = 0;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the default asset values for a component.
|
||||
*
|
||||
* @param $string $component The component asset name to search for
|
||||
*
|
||||
* @return JAccessRules The JAccessRules object for the asset
|
||||
*/
|
||||
protected function getDefaultAssetValues($component, $try = true)
|
||||
{
|
||||
// Need to find the asset id by the name of the component.
|
||||
$db = JFactory::getDbo();
|
||||
$query = $db->getQuery(true)
|
||||
->select($db->quoteName('id'))
|
||||
->from($db->quoteName('#__assets'))
|
||||
->where($db->quoteName('name') . ' = ' . $db->quote($component));
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
if ($db->loadRowList())
|
||||
{
|
||||
// asset already set so use saved rules
|
||||
$assetId = (int) $db->loadResult();
|
||||
return JAccess::getAssetRules($assetId); // (TODO) instead of keeping inherited Allowed it becomes Allowed.
|
||||
}
|
||||
// try again
|
||||
elseif ($try)
|
||||
{
|
||||
$try = explode('.',$component);
|
||||
$result = $this->getDefaultAssetValues($try[0], false);
|
||||
if ($result instanceof JAccessRules)
|
||||
{
|
||||
if (isset($try[1]))
|
||||
{
|
||||
$_result = (string) $result;
|
||||
$_result = json_decode($_result);
|
||||
foreach ($_result as $name => &$rule)
|
||||
{
|
||||
$v = explode('.', $name);
|
||||
if ($try[1] !== $v[0])
|
||||
{
|
||||
// remove since it is not part of this view
|
||||
unset($_result->$name);
|
||||
}
|
||||
else
|
||||
{
|
||||
// clear the value since we inherit
|
||||
$rule = array();
|
||||
}
|
||||
}
|
||||
// check if there are any view values remaining
|
||||
if (count( (array) $_result))
|
||||
{
|
||||
$_result = json_encode($_result);
|
||||
$_result = array($_result);
|
||||
// Instantiate and return the JAccessRules object for the asset rules.
|
||||
$rules = new JAccessRules;
|
||||
$rules->mergeCollection($_result);
|
||||
|
||||
return $rules;
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
return JAccess::getAssetRules(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to compute the default name of the asset.
|
||||
* The default name is in the form 'table_name.id'
|
||||
* where id is the value of the primary key of the table.
|
||||
*
|
||||
* @return string
|
||||
* @since 2.5
|
||||
*/
|
||||
protected function _getAssetName()
|
||||
{
|
||||
$k = $this->_tbl_key;
|
||||
return 'com_componentbuilder.power.'.(int) $this->$k;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to return the title to use for the asset table.
|
||||
*
|
||||
* @return string
|
||||
* @since 2.5
|
||||
*/
|
||||
protected function _getAssetTitle()
|
||||
{
|
||||
if (isset($this->title))
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the parent asset id for the record
|
||||
*
|
||||
* @return int
|
||||
* @since 2.5
|
||||
*/
|
||||
protected function _getAssetParentId(JTable $table = NULL, $id = NULL)
|
||||
{
|
||||
$asset = JTable::getInstance('Asset');
|
||||
$asset->loadByName('com_componentbuilder');
|
||||
|
||||
return $asset->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This view does not actually have an alias
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function generateAlias()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
@ -208,491 +208,476 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvvyv function
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvvyw function
|
||||
jQuery('#jform_add_css_view').on('keyup',function()
|
||||
{
|
||||
var add_css_view_vvvvvyv = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvyv(add_css_view_vvvvvyv);
|
||||
var add_css_view_vvvvvyw = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvyw(add_css_view_vvvvvyw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_view_vvvvvyv = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvyv(add_css_view_vvvvvyv);
|
||||
var add_css_view_vvvvvyw = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvyw(add_css_view_vvvvvyw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvvyw function
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvvyx function
|
||||
jQuery('#jform_add_css_views').on('keyup',function()
|
||||
{
|
||||
var add_css_views_vvvvvyw = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvyw(add_css_views_vvvvvyw);
|
||||
var add_css_views_vvvvvyx = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvyx(add_css_views_vvvvvyx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_views',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_views_vvvvvyw = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvyw(add_css_views_vvvvvyw);
|
||||
var add_css_views_vvvvvyx = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvyx(add_css_views_vvvvvyx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_view_file listeners for add_javascript_view_file_vvvvvyx function
|
||||
// #jform_add_javascript_view_file listeners for add_javascript_view_file_vvvvvyy function
|
||||
jQuery('#jform_add_javascript_view_file').on('keyup',function()
|
||||
{
|
||||
var add_javascript_view_file_vvvvvyx = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvyx(add_javascript_view_file_vvvvvyx);
|
||||
var add_javascript_view_file_vvvvvyy = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvyy(add_javascript_view_file_vvvvvyy);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_view_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_view_file_vvvvvyx = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvyx(add_javascript_view_file_vvvvvyx);
|
||||
var add_javascript_view_file_vvvvvyy = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvyy(add_javascript_view_file_vvvvvyy);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_views_file listeners for add_javascript_views_file_vvvvvyy function
|
||||
// #jform_add_javascript_views_file listeners for add_javascript_views_file_vvvvvyz function
|
||||
jQuery('#jform_add_javascript_views_file').on('keyup',function()
|
||||
{
|
||||
var add_javascript_views_file_vvvvvyy = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvyy(add_javascript_views_file_vvvvvyy);
|
||||
var add_javascript_views_file_vvvvvyz = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvyz(add_javascript_views_file_vvvvvyz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_views_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_views_file_vvvvvyy = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvyy(add_javascript_views_file_vvvvvyy);
|
||||
var add_javascript_views_file_vvvvvyz = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvyz(add_javascript_views_file_vvvvvyz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvvyz function
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvvza function
|
||||
jQuery('#jform_add_javascript_view_footer').on('keyup',function()
|
||||
{
|
||||
var add_javascript_view_footer_vvvvvyz = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvyz(add_javascript_view_footer_vvvvvyz);
|
||||
var add_javascript_view_footer_vvvvvza = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvza(add_javascript_view_footer_vvvvvza);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_view_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_view_footer_vvvvvyz = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvyz(add_javascript_view_footer_vvvvvyz);
|
||||
var add_javascript_view_footer_vvvvvza = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvza(add_javascript_view_footer_vvvvvza);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvvza function
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvvzb function
|
||||
jQuery('#jform_add_javascript_views_footer').on('keyup',function()
|
||||
{
|
||||
var add_javascript_views_footer_vvvvvza = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvza(add_javascript_views_footer_vvvvvza);
|
||||
var add_javascript_views_footer_vvvvvzb = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvzb(add_javascript_views_footer_vvvvvzb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_views_footer_vvvvvza = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvza(add_javascript_views_footer_vvvvvza);
|
||||
var add_javascript_views_footer_vvvvvzb = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvzb(add_javascript_views_footer_vvvvvzb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvzb function
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvzc function
|
||||
jQuery('#jform_add_php_ajax').on('keyup',function()
|
||||
{
|
||||
var add_php_ajax_vvvvvzb = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzb(add_php_ajax_vvvvvzb);
|
||||
var add_php_ajax_vvvvvzc = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzc(add_php_ajax_vvvvvzc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_ajax',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_ajax_vvvvvzb = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzb(add_php_ajax_vvvvvzb);
|
||||
var add_php_ajax_vvvvvzc = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzc(add_php_ajax_vvvvvzc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitem listeners for add_php_getitem_vvvvvzc function
|
||||
// #jform_add_php_getitem listeners for add_php_getitem_vvvvvzd function
|
||||
jQuery('#jform_add_php_getitem').on('keyup',function()
|
||||
{
|
||||
var add_php_getitem_vvvvvzc = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvzc(add_php_getitem_vvvvvzc);
|
||||
var add_php_getitem_vvvvvzd = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvzd(add_php_getitem_vvvvvzd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitem',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getitem_vvvvvzc = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvzc(add_php_getitem_vvvvvzc);
|
||||
var add_php_getitem_vvvvvzd = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvzd(add_php_getitem_vvvvvzd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitems listeners for add_php_getitems_vvvvvzd function
|
||||
// #jform_add_php_getitems listeners for add_php_getitems_vvvvvze function
|
||||
jQuery('#jform_add_php_getitems').on('keyup',function()
|
||||
{
|
||||
var add_php_getitems_vvvvvzd = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvzd(add_php_getitems_vvvvvzd);
|
||||
var add_php_getitems_vvvvvze = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvze(add_php_getitems_vvvvvze);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitems',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getitems_vvvvvzd = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvzd(add_php_getitems_vvvvvzd);
|
||||
var add_php_getitems_vvvvvze = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvze(add_php_getitems_vvvvvze);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitems_after_all listeners for add_php_getitems_after_all_vvvvvze function
|
||||
// #jform_add_php_getitems_after_all listeners for add_php_getitems_after_all_vvvvvzf function
|
||||
jQuery('#jform_add_php_getitems_after_all').on('keyup',function()
|
||||
{
|
||||
var add_php_getitems_after_all_vvvvvze = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvze(add_php_getitems_after_all_vvvvvze);
|
||||
var add_php_getitems_after_all_vvvvvzf = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvzf(add_php_getitems_after_all_vvvvvzf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitems_after_all',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getitems_after_all_vvvvvze = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvze(add_php_getitems_after_all_vvvvvze);
|
||||
var add_php_getitems_after_all_vvvvvzf = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvzf(add_php_getitems_after_all_vvvvvzf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvzf function
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvzg function
|
||||
jQuery('#jform_add_php_getlistquery').on('keyup',function()
|
||||
{
|
||||
var add_php_getlistquery_vvvvvzf = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvzf(add_php_getlistquery_vvvvvzf);
|
||||
var add_php_getlistquery_vvvvvzg = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvzg(add_php_getlistquery_vvvvvzg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getlistquery_vvvvvzf = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvzf(add_php_getlistquery_vvvvvzf);
|
||||
var add_php_getlistquery_vvvvvzg = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvzg(add_php_getlistquery_vvvvvzg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getform listeners for add_php_getform_vvvvvzg function
|
||||
// #jform_add_php_getform listeners for add_php_getform_vvvvvzh function
|
||||
jQuery('#jform_add_php_getform').on('keyup',function()
|
||||
{
|
||||
var add_php_getform_vvvvvzg = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvzg(add_php_getform_vvvvvzg);
|
||||
var add_php_getform_vvvvvzh = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvzh(add_php_getform_vvvvvzh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getform',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getform_vvvvvzg = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvzg(add_php_getform_vvvvvzg);
|
||||
var add_php_getform_vvvvvzh = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvzh(add_php_getform_vvvvvzh);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_save listeners for add_php_before_save_vvvvvzh function
|
||||
// #jform_add_php_before_save listeners for add_php_before_save_vvvvvzi function
|
||||
jQuery('#jform_add_php_before_save').on('keyup',function()
|
||||
{
|
||||
var add_php_before_save_vvvvvzh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvzh(add_php_before_save_vvvvvzh);
|
||||
var add_php_before_save_vvvvvzi = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvzi(add_php_before_save_vvvvvzi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_save',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_save_vvvvvzh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvzh(add_php_before_save_vvvvvzh);
|
||||
var add_php_before_save_vvvvvzi = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvzi(add_php_before_save_vvvvvzi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_save listeners for add_php_save_vvvvvzi function
|
||||
// #jform_add_php_save listeners for add_php_save_vvvvvzj function
|
||||
jQuery('#jform_add_php_save').on('keyup',function()
|
||||
{
|
||||
var add_php_save_vvvvvzi = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvzi(add_php_save_vvvvvzi);
|
||||
var add_php_save_vvvvvzj = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvzj(add_php_save_vvvvvzj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_save',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_save_vvvvvzi = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvzi(add_php_save_vvvvvzi);
|
||||
var add_php_save_vvvvvzj = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvzj(add_php_save_vvvvvzj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvzj function
|
||||
// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvzk function
|
||||
jQuery('#jform_add_php_postsavehook').on('keyup',function()
|
||||
{
|
||||
var add_php_postsavehook_vvvvvzj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvzj(add_php_postsavehook_vvvvvzj);
|
||||
var add_php_postsavehook_vvvvvzk = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvzk(add_php_postsavehook_vvvvvzk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_postsavehook',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_postsavehook_vvvvvzj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvzj(add_php_postsavehook_vvvvvzj);
|
||||
var add_php_postsavehook_vvvvvzk = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvzk(add_php_postsavehook_vvvvvzk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_allowadd listeners for add_php_allowadd_vvvvvzk function
|
||||
// #jform_add_php_allowadd listeners for add_php_allowadd_vvvvvzl function
|
||||
jQuery('#jform_add_php_allowadd').on('keyup',function()
|
||||
{
|
||||
var add_php_allowadd_vvvvvzk = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvzk(add_php_allowadd_vvvvvzk);
|
||||
var add_php_allowadd_vvvvvzl = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvzl(add_php_allowadd_vvvvvzl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_allowadd',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_allowadd_vvvvvzk = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvzk(add_php_allowadd_vvvvvzk);
|
||||
var add_php_allowadd_vvvvvzl = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvzl(add_php_allowadd_vvvvvzl);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvzl function
|
||||
// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvzm function
|
||||
jQuery('#jform_add_php_allowedit').on('keyup',function()
|
||||
{
|
||||
var add_php_allowedit_vvvvvzl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvzl(add_php_allowedit_vvvvvzl);
|
||||
var add_php_allowedit_vvvvvzm = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvzm(add_php_allowedit_vvvvvzm);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_allowedit',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_allowedit_vvvvvzl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvzl(add_php_allowedit_vvvvvzl);
|
||||
var add_php_allowedit_vvvvvzm = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvzm(add_php_allowedit_vvvvvzm);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_cancel listeners for add_php_before_cancel_vvvvvzm function
|
||||
// #jform_add_php_before_cancel listeners for add_php_before_cancel_vvvvvzn function
|
||||
jQuery('#jform_add_php_before_cancel').on('keyup',function()
|
||||
{
|
||||
var add_php_before_cancel_vvvvvzm = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvzm(add_php_before_cancel_vvvvvzm);
|
||||
var add_php_before_cancel_vvvvvzn = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvzn(add_php_before_cancel_vvvvvzn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_cancel',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_cancel_vvvvvzm = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvzm(add_php_before_cancel_vvvvvzm);
|
||||
var add_php_before_cancel_vvvvvzn = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvzn(add_php_before_cancel_vvvvvzn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_cancel listeners for add_php_after_cancel_vvvvvzn function
|
||||
// #jform_add_php_after_cancel listeners for add_php_after_cancel_vvvvvzo function
|
||||
jQuery('#jform_add_php_after_cancel').on('keyup',function()
|
||||
{
|
||||
var add_php_after_cancel_vvvvvzn = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvzn(add_php_after_cancel_vvvvvzn);
|
||||
var add_php_after_cancel_vvvvvzo = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvzo(add_php_after_cancel_vvvvvzo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_cancel',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_cancel_vvvvvzn = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvzn(add_php_after_cancel_vvvvvzn);
|
||||
var add_php_after_cancel_vvvvvzo = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvzo(add_php_after_cancel_vvvvvzo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvzo function
|
||||
// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvzp function
|
||||
jQuery('#jform_add_php_batchcopy').on('keyup',function()
|
||||
{
|
||||
var add_php_batchcopy_vvvvvzo = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvzo(add_php_batchcopy_vvvvvzo);
|
||||
var add_php_batchcopy_vvvvvzp = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvzp(add_php_batchcopy_vvvvvzp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_batchcopy',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_batchcopy_vvvvvzo = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvzo(add_php_batchcopy_vvvvvzo);
|
||||
var add_php_batchcopy_vvvvvzp = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvzp(add_php_batchcopy_vvvvvzp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvzp function
|
||||
// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvzq function
|
||||
jQuery('#jform_add_php_batchmove').on('keyup',function()
|
||||
{
|
||||
var add_php_batchmove_vvvvvzp = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvzp(add_php_batchmove_vvvvvzp);
|
||||
var add_php_batchmove_vvvvvzq = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvzq(add_php_batchmove_vvvvvzq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_batchmove',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_batchmove_vvvvvzp = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvzp(add_php_batchmove_vvvvvzp);
|
||||
var add_php_batchmove_vvvvvzq = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvzq(add_php_batchmove_vvvvvzq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvzq function
|
||||
// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvzr function
|
||||
jQuery('#jform_add_php_before_publish').on('keyup',function()
|
||||
{
|
||||
var add_php_before_publish_vvvvvzq = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvzq(add_php_before_publish_vvvvvzq);
|
||||
var add_php_before_publish_vvvvvzr = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvzr(add_php_before_publish_vvvvvzr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_publish',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_publish_vvvvvzq = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvzq(add_php_before_publish_vvvvvzq);
|
||||
var add_php_before_publish_vvvvvzr = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvzr(add_php_before_publish_vvvvvzr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvzr function
|
||||
// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvzs function
|
||||
jQuery('#jform_add_php_after_publish').on('keyup',function()
|
||||
{
|
||||
var add_php_after_publish_vvvvvzr = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvzr(add_php_after_publish_vvvvvzr);
|
||||
var add_php_after_publish_vvvvvzs = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvzs(add_php_after_publish_vvvvvzs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_publish',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_publish_vvvvvzr = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvzr(add_php_after_publish_vvvvvzr);
|
||||
var add_php_after_publish_vvvvvzs = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvzs(add_php_after_publish_vvvvvzs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvzs function
|
||||
// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvzt function
|
||||
jQuery('#jform_add_php_before_delete').on('keyup',function()
|
||||
{
|
||||
var add_php_before_delete_vvvvvzs = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvzs(add_php_before_delete_vvvvvzs);
|
||||
var add_php_before_delete_vvvvvzt = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvzt(add_php_before_delete_vvvvvzt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_delete',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_delete_vvvvvzs = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvzs(add_php_before_delete_vvvvvzs);
|
||||
var add_php_before_delete_vvvvvzt = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvzt(add_php_before_delete_vvvvvzt);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvzt function
|
||||
// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvzu function
|
||||
jQuery('#jform_add_php_after_delete').on('keyup',function()
|
||||
{
|
||||
var add_php_after_delete_vvvvvzt = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvzt(add_php_after_delete_vvvvvzt);
|
||||
var add_php_after_delete_vvvvvzu = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvzu(add_php_after_delete_vvvvvzu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_delete',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_delete_vvvvvzt = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvzt(add_php_after_delete_vvvvvzt);
|
||||
var add_php_after_delete_vvvvvzu = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvzu(add_php_after_delete_vvvvvzu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvzu function
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvzv function
|
||||
jQuery('#jform_add_php_document').on('keyup',function()
|
||||
{
|
||||
var add_php_document_vvvvvzu = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvzu(add_php_document_vvvvvzu);
|
||||
var add_php_document_vvvvvzv = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvzv(add_php_document_vvvvvzv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_document_vvvvvzu = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvzu(add_php_document_vvvvvzu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvzv function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
var add_sql_vvvvvzv = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzv(add_sql_vvvvvzv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_sql_vvvvvzv = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzv(add_sql_vvvvvzv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_vvvvvzw function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw);
|
||||
var add_php_document_vvvvvzv = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvzv(add_php_document_vvvvvzv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvzw function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw);
|
||||
vvvvvzw(add_sql_vvvvvzw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw);
|
||||
vvvvvzw(add_sql_vvvvvzw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_vvvvvzy function
|
||||
// #jform_source listeners for source_vvvvvzx function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy);
|
||||
var source_vvvvvzx = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzx = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzx(source_vvvvvzx,add_sql_vvvvvzx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy);
|
||||
var source_vvvvvzx = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzx = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzx(source_vvvvvzx,add_sql_vvvvvzx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvzy function
|
||||
// #jform_add_sql listeners for add_sql_vvvvvzx function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy);
|
||||
var source_vvvvvzx = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzx = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzx(source_vvvvvzx,add_sql_vvvvvzx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy);
|
||||
var source_vvvvvzx = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzx = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzx(source_vvvvvzx,add_sql_vvvvvzx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvwaa function
|
||||
jQuery('#jform_add_custom_import').on('keyup',function()
|
||||
// #jform_source listeners for source_vvvvvzz function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var add_custom_import_vvvvwaa = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvwaa(add_custom_import_vvvvwaa);
|
||||
var source_vvvvvzz = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzz = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzz(source_vvvvvzz,add_sql_vvvvvzz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_import_vvvvwaa = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvwaa(add_custom_import_vvvvwaa);
|
||||
var source_vvvvvzz = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzz = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzz(source_vvvvvzz,add_sql_vvvvvzz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvzz function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvzz = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzz = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzz(source_vvvvvzz,add_sql_vvvvvzz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvzz = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzz = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzz(source_vvvvvzz,add_sql_vvvvvzz);
|
||||
|
||||
});
|
||||
|
||||
@ -711,18 +696,33 @@ jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvwac function
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvwac function
|
||||
jQuery('#jform_add_custom_import').on('keyup',function()
|
||||
{
|
||||
var add_custom_import_vvvvwac = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvwac(add_custom_import_vvvvwac);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_import_vvvvwac = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvwac(add_custom_import_vvvvwac);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvwad function
|
||||
jQuery('#jform_add_custom_button').on('keyup',function()
|
||||
{
|
||||
var add_custom_button_vvvvwac = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwac(add_custom_button_vvvvwac);
|
||||
var add_custom_button_vvvvwad = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwad(add_custom_button_vvvvwad);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_button',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_button_vvvvwac = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwac(add_custom_button_vvvvwac);
|
||||
var add_custom_button_vvvvwad = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwad(add_custom_button_vvvvwad);
|
||||
|
||||
});
|
||||
|
||||
|
@ -112,18 +112,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_extension_type listeners for extension_type_vvvvwcg function
|
||||
// #jform_extension_type listeners for extension_type_vvvvwch function
|
||||
jQuery('#jform_extension_type').on('keyup',function()
|
||||
{
|
||||
var extension_type_vvvvwcg = jQuery("#jform_extension_type").val();
|
||||
vvvvwcg(extension_type_vvvvwcg);
|
||||
var extension_type_vvvvwch = jQuery("#jform_extension_type").val();
|
||||
vvvvwch(extension_type_vvvvwch);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_extension_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var extension_type_vvvvwcg = jQuery("#jform_extension_type").val();
|
||||
vvvvwcg(extension_type_vvvvwcg);
|
||||
var extension_type_vvvvwch = jQuery("#jform_extension_type").val();
|
||||
vvvvwch(extension_type_vvvvwch);
|
||||
|
||||
});
|
||||
|
||||
|
@ -107,18 +107,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_extension_type listeners for extension_type_vvvvwcf function
|
||||
// #jform_extension_type listeners for extension_type_vvvvwcg function
|
||||
jQuery('#jform_extension_type').on('keyup',function()
|
||||
{
|
||||
var extension_type_vvvvwcf = jQuery("#jform_extension_type").val();
|
||||
vvvvwcf(extension_type_vvvvwcf);
|
||||
var extension_type_vvvvwcg = jQuery("#jform_extension_type").val();
|
||||
vvvvwcg(extension_type_vvvvwcg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_extension_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var extension_type_vvvvwcf = jQuery("#jform_extension_type").val();
|
||||
vvvvwcf(extension_type_vvvvwcf);
|
||||
var extension_type_vvvvwcg = jQuery("#jform_extension_type").val();
|
||||
vvvvwcg(extension_type_vvvvwcg);
|
||||
|
||||
});
|
||||
|
||||
|
@ -51,48 +51,15 @@ defined('_JEXEC') or die('Restricted access');
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'issues', JText::_('Issues', true)); ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'notice_board', JText::_('Notice Board', true)); ?>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<?php echo JHtml::_('bootstrap.startAccordion', 'issues_accordian', array('active' => 'issues_one')); ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'issues_accordian', 'The open issues on GitHub', 'issues_one'); ?>
|
||||
<?php echo $this->loadTemplate('issues_the_open_issues_on_github');?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'issues_accordian', 'The closed issues on GitHub', 'issues_two'); ?>
|
||||
<?php echo $this->loadTemplate('issues_the_closed_issues_on_github');?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endAccordion'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'releases', JText::_('Releases', true)); ?>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<?php echo JHtml::_('bootstrap.startAccordion', 'releases_accordian', array('active' => 'releases_one')); ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'releases_accordian', 'Information', 'releases_one'); ?>
|
||||
<?php echo $this->loadTemplate('releases_information');?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endAccordion'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'notice_board', JText::_('COM_COMPONENTBUILDER_NOTICE_BOARD', true)); ?>
|
||||
<div class="row-fluid">
|
||||
<div class="span10">
|
||||
<?php echo JHtml::_('bootstrap.startAccordion', 'notice_board_accordian', array('active' => 'notice_board_one')); ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'notice_board_accordian', 'Vast Development Method', 'notice_board_one'); ?>
|
||||
<?php echo $this->loadTemplate('notice_board_vast_development_method');?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php echo JHtml::_('bootstrap.addSlide', 'notice_board_accordian', 'JCB Pro Membership', 'notice_board_two'); ?>
|
||||
<?php echo $this->loadTemplate('notice_board_jcb_pro_membership');?>
|
||||
<?php echo JHtml::_('bootstrap.endSlide'); ?>
|
||||
<?php echo JHtml::_('bootstrap.endAccordion'); ?>
|
||||
</div>
|
||||
<div class="span2">
|
||||
<?php echo ComponentbuilderHelper::getDynamicContent('banner', '160-600'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
@ -109,5 +76,25 @@ defined('_JEXEC') or die('Restricted access');
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
|
||||
|
||||
<!-- <?php echo JHtml::_('bootstrap.addTab', 'cpanel_tab', 'notice_board', JText::_('COM_COMPONENTBUILDER_NOTICE_BOARD', true)); ?>
-->
|
||||
<!-- <div class="row-fluid">
-->
|
||||
<!-- <div class="span10">
-->
|
||||
<!-- <?php echo JHtml::_('bootstrap.startAccordion', 'notice_board_accordian', array('active' => 'notice_board_one')); ?>
-->
|
||||
<!-- <?php echo JHtml::_('bootstrap.addSlide', 'notice_board_accordian', 'Vast Development Method', 'notice_board_one'); ?>
-->
|
||||
<!-- <?php echo $this->loadTemplate('notice_board_vast_development_method');?>
-->
|
||||
<!-- <?php echo JHtml::_('bootstrap.endSlide'); ?>
-->
|
||||
<!-- <?php echo JHtml::_('bootstrap.addSlide', 'notice_board_accordian', 'JCB Pro Membership', 'notice_board_two'); ?>
-->
|
||||
<!-- <?php echo $this->loadTemplate('notice_board_jcb_pro_membership');?>
-->
|
||||
<!-- <?php echo JHtml::_('bootstrap.endSlide'); ?>
-->
|
||||
<!-- <?php echo JHtml::_('bootstrap.endAccordion'); ?>
-->
|
||||
<!-- </div>
-->
|
||||
<!-- <div class="span2">
-->
|
||||
<!-- <?php echo ComponentbuilderHelper::getDynamicContent('banner', '160-600'); ?>
-->
|
||||
<!-- </div>
-->
|
||||
<!-- </div>
-->
|
||||
<!-- <?php echo JHtml::_('bootstrap.endTab'); ?>
-->
|
||||
<!-- -->
|
||||
|
||||
</div>
|
||||
</div>
|
@ -29,10 +29,9 @@ class ComponentbuilderViewComponentbuilder extends JViewLegacy
|
||||
// Assign data to the view
|
||||
$this->icons = $this->get('Icons');
|
||||
$this->contributors = ComponentbuilderHelper::getContributors();
|
||||
$this->github = $this->get('Github');
|
||||
$this->wiki = $this->get('Wiki');
|
||||
$this->gitea = $this->get('Gitea');
|
||||
$this->noticeboard = $this->get('Noticeboard');
|
||||
$this->proboard = $this->get('Proboard');
|
||||
$this->readme = $this->get('Readme');
|
||||
|
||||
// get the manifest details of the component
|
||||
|
@ -163,153 +163,153 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvwad function
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvwae function
|
||||
jQuery('#jform_add_php_view').on('keyup',function()
|
||||
{
|
||||
var add_php_view_vvvvwad = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwad(add_php_view_vvvvwad);
|
||||
var add_php_view_vvvvwae = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwae(add_php_view_vvvvwae);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_view_vvvvwad = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwad(add_php_view_vvvvwad);
|
||||
var add_php_view_vvvvwae = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwae(add_php_view_vvvvwae);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_jview_display listeners for add_php_jview_display_vvvvwae function
|
||||
// #jform_add_php_jview_display listeners for add_php_jview_display_vvvvwaf function
|
||||
jQuery('#jform_add_php_jview_display').on('keyup',function()
|
||||
{
|
||||
var add_php_jview_display_vvvvwae = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvwae(add_php_jview_display_vvvvwae);
|
||||
var add_php_jview_display_vvvvwaf = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvwaf(add_php_jview_display_vvvvwaf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_jview_display',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_jview_display_vvvvwae = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvwae(add_php_jview_display_vvvvwae);
|
||||
var add_php_jview_display_vvvvwaf = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvwaf(add_php_jview_display_vvvvwaf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_jview listeners for add_php_jview_vvvvwaf function
|
||||
// #jform_add_php_jview listeners for add_php_jview_vvvvwag function
|
||||
jQuery('#jform_add_php_jview').on('keyup',function()
|
||||
{
|
||||
var add_php_jview_vvvvwaf = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvwaf(add_php_jview_vvvvwaf);
|
||||
var add_php_jview_vvvvwag = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvwag(add_php_jview_vvvvwag);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_jview',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_jview_vvvvwaf = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvwaf(add_php_jview_vvvvwaf);
|
||||
var add_php_jview_vvvvwag = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvwag(add_php_jview_vvvvwag);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvwag function
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvwah function
|
||||
jQuery('#jform_add_php_document').on('keyup',function()
|
||||
{
|
||||
var add_php_document_vvvvwag = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvwag(add_php_document_vvvvwag);
|
||||
var add_php_document_vvvvwah = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvwah(add_php_document_vvvvwah);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_document_vvvvwag = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvwag(add_php_document_vvvvwag);
|
||||
var add_php_document_vvvvwah = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvwah(add_php_document_vvvvwah);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_document listeners for add_css_document_vvvvwah function
|
||||
// #jform_add_css_document listeners for add_css_document_vvvvwai function
|
||||
jQuery('#jform_add_css_document').on('keyup',function()
|
||||
{
|
||||
var add_css_document_vvvvwah = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvwah(add_css_document_vvvvwah);
|
||||
var add_css_document_vvvvwai = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvwai(add_css_document_vvvvwai);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_document_vvvvwah = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvwah(add_css_document_vvvvwah);
|
||||
var add_css_document_vvvvwai = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvwai(add_css_document_vvvvwai);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_file listeners for add_javascript_file_vvvvwai function
|
||||
// #jform_add_javascript_file listeners for add_javascript_file_vvvvwaj function
|
||||
jQuery('#jform_add_javascript_file').on('keyup',function()
|
||||
{
|
||||
var add_javascript_file_vvvvwai = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvwai(add_javascript_file_vvvvwai);
|
||||
var add_javascript_file_vvvvwaj = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvwaj(add_javascript_file_vvvvwaj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_file_vvvvwai = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvwai(add_javascript_file_vvvvwai);
|
||||
var add_javascript_file_vvvvwaj = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvwaj(add_javascript_file_vvvvwaj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_js_document listeners for add_js_document_vvvvwaj function
|
||||
// #jform_add_js_document listeners for add_js_document_vvvvwak function
|
||||
jQuery('#jform_add_js_document').on('keyup',function()
|
||||
{
|
||||
var add_js_document_vvvvwaj = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvwaj(add_js_document_vvvvwaj);
|
||||
var add_js_document_vvvvwak = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvwak(add_js_document_vvvvwak);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_js_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_js_document_vvvvwaj = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvwaj(add_js_document_vvvvwaj);
|
||||
var add_js_document_vvvvwak = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvwak(add_js_document_vvvvwak);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvwak function
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvwal function
|
||||
jQuery('#jform_add_custom_button').on('keyup',function()
|
||||
{
|
||||
var add_custom_button_vvvvwak = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwak(add_custom_button_vvvvwak);
|
||||
var add_custom_button_vvvvwal = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwal(add_custom_button_vvvvwal);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_button',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_button_vvvvwak = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwak(add_custom_button_vvvvwak);
|
||||
var add_custom_button_vvvvwal = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwal(add_custom_button_vvvvwal);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css listeners for add_css_vvvvwal function
|
||||
// #jform_add_css listeners for add_css_vvvvwam function
|
||||
jQuery('#jform_add_css').on('keyup',function()
|
||||
{
|
||||
var add_css_vvvvwal = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvwal(add_css_vvvvwal);
|
||||
var add_css_vvvvwam = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvwam(add_css_vvvvwam);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_vvvvwal = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvwal(add_css_vvvvwal);
|
||||
var add_css_vvvvwam = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvwam(add_css_vvvvwam);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvwam function
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvwan function
|
||||
jQuery('#jform_add_php_ajax').on('keyup',function()
|
||||
{
|
||||
var add_php_ajax_vvvvwam = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvwam(add_php_ajax_vvvvwam);
|
||||
var add_php_ajax_vvvvwan = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvwan(add_php_ajax_vvvvwan);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_ajax',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_ajax_vvvvwam = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvwam(add_php_ajax_vvvvwam);
|
||||
var add_php_ajax_vvvvwan = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvwan(add_php_ajax_vvvvwan);
|
||||
|
||||
});
|
||||
|
||||
|
@ -116,21 +116,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_target listeners for target_vvvvwcb function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcb(target_vvvvwcb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcb(target_vvvvwcb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcc function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
@ -150,67 +135,82 @@ jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcd = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcd = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcd(target_vvvvwcd,type_vvvvwcd);
|
||||
vvvvwcd(target_vvvvwcd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcd = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcd = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcd(target_vvvvwcd,type_vvvvwcd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwcd function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcd = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcd = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcd(target_vvvvwcd,type_vvvvwcd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcd = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcd = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcd(target_vvvvwcd,type_vvvvwcd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwce function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwce = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwce(type_vvvvwce,target_vvvvwce);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwce = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwce(type_vvvvwce,target_vvvvwce);
|
||||
vvvvwcd(target_vvvvwcd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwce function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwce = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwce(type_vvvvwce,target_vvvvwce);
|
||||
var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwce(target_vvvvwce,type_vvvvwce);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwce = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwce(type_vvvvwce,target_vvvvwce);
|
||||
var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwce(target_vvvvwce,type_vvvvwce);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwce function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwce = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwce(target_vvvvwce,type_vvvvwce);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwce = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwce(target_vvvvwce,type_vvvvwce);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwcf function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwcf = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwcf = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcf(type_vvvvwcf,target_vvvvwcf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwcf = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwcf = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcf(type_vvvvwcf,target_vvvvwcf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcf function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwcf = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwcf = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcf(type_vvvvwcf,target_vvvvwcf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwcf = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwcf = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcf(type_vvvvwcf,target_vvvvwcf);
|
||||
|
||||
});
|
||||
|
||||
|
@ -159,33 +159,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwba function
|
||||
// #jform_gettype listeners for gettype_vvvvwbb function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwba = jQuery("#jform_gettype").val();
|
||||
vvvvwba(gettype_vvvvwba);
|
||||
var gettype_vvvvwbb = jQuery("#jform_gettype").val();
|
||||
vvvvwbb(gettype_vvvvwbb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwba = jQuery("#jform_gettype").val();
|
||||
vvvvwba(gettype_vvvvwba);
|
||||
|
||||
});
|
||||
|
||||
// #jform_main_source listeners for main_source_vvvvwbb function
|
||||
jQuery('#jform_main_source').on('keyup',function()
|
||||
{
|
||||
var main_source_vvvvwbb = jQuery("#jform_main_source").val();
|
||||
vvvvwbb(main_source_vvvvwbb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var main_source_vvvvwbb = jQuery("#jform_main_source").val();
|
||||
vvvvwbb(main_source_vvvvwbb);
|
||||
var gettype_vvvvwbb = jQuery("#jform_gettype").val();
|
||||
vvvvwbb(gettype_vvvvwbb);
|
||||
|
||||
});
|
||||
|
||||
@ -249,18 +234,18 @@ jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_addcalculation listeners for addcalculation_vvvvwbg function
|
||||
jQuery('#jform_addcalculation').on('keyup',function()
|
||||
// #jform_main_source listeners for main_source_vvvvwbg function
|
||||
jQuery('#jform_main_source').on('keyup',function()
|
||||
{
|
||||
var addcalculation_vvvvwbg = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
vvvvwbg(addcalculation_vvvvwbg);
|
||||
var main_source_vvvvwbg = jQuery("#jform_main_source").val();
|
||||
vvvvwbg(main_source_vvvvwbg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var addcalculation_vvvvwbg = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
vvvvwbg(addcalculation_vvvvwbg);
|
||||
var main_source_vvvvwbg = jQuery("#jform_main_source").val();
|
||||
vvvvwbg(main_source_vvvvwbg);
|
||||
|
||||
});
|
||||
|
||||
@ -268,33 +253,14 @@ jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
|
||||
jQuery('#jform_addcalculation').on('keyup',function()
|
||||
{
|
||||
var addcalculation_vvvvwbh = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbh = jQuery("#jform_gettype").val();
|
||||
vvvvwbh(addcalculation_vvvvwbh,gettype_vvvvwbh);
|
||||
vvvvwbh(addcalculation_vvvvwbh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var addcalculation_vvvvwbh = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbh = jQuery("#jform_gettype").val();
|
||||
vvvvwbh(addcalculation_vvvvwbh,gettype_vvvvwbh);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwbh function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var addcalculation_vvvvwbh = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbh = jQuery("#jform_gettype").val();
|
||||
vvvvwbh(addcalculation_vvvvwbh,gettype_vvvvwbh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var addcalculation_vvvvwbh = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbh = jQuery("#jform_gettype").val();
|
||||
vvvvwbh(addcalculation_vvvvwbh,gettype_vvvvwbh);
|
||||
vvvvwbh(addcalculation_vvvvwbh);
|
||||
|
||||
});
|
||||
|
||||
@ -332,18 +298,37 @@ jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_main_source listeners for main_source_vvvvwbl function
|
||||
jQuery('#jform_main_source').on('keyup',function()
|
||||
// #jform_addcalculation listeners for addcalculation_vvvvwbj function
|
||||
jQuery('#jform_addcalculation').on('keyup',function()
|
||||
{
|
||||
var main_source_vvvvwbl = jQuery("#jform_main_source").val();
|
||||
vvvvwbl(main_source_vvvvwbl);
|
||||
var addcalculation_vvvvwbj = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbj = jQuery("#jform_gettype").val();
|
||||
vvvvwbj(addcalculation_vvvvwbj,gettype_vvvvwbj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var main_source_vvvvwbl = jQuery("#jform_main_source").val();
|
||||
vvvvwbl(main_source_vvvvwbl);
|
||||
var addcalculation_vvvvwbj = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbj = jQuery("#jform_gettype").val();
|
||||
vvvvwbj(addcalculation_vvvvwbj,gettype_vvvvwbj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwbj function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var addcalculation_vvvvwbj = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbj = jQuery("#jform_gettype").val();
|
||||
vvvvwbj(addcalculation_vvvvwbj,gettype_vvvvwbj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var addcalculation_vvvvwbj = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbj = jQuery("#jform_gettype").val();
|
||||
vvvvwbj(addcalculation_vvvvwbj,gettype_vvvvwbj);
|
||||
|
||||
});
|
||||
|
||||
@ -362,203 +347,203 @@ jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_getitem listeners for add_php_before_getitem_vvvvwbn function
|
||||
// #jform_main_source listeners for main_source_vvvvwbn function
|
||||
jQuery('#jform_main_source').on('keyup',function()
|
||||
{
|
||||
var main_source_vvvvwbn = jQuery("#jform_main_source").val();
|
||||
vvvvwbn(main_source_vvvvwbn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var main_source_vvvvwbn = jQuery("#jform_main_source").val();
|
||||
vvvvwbn(main_source_vvvvwbn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_getitem listeners for add_php_before_getitem_vvvvwbo function
|
||||
jQuery('#jform_add_php_before_getitem').on('keyup',function()
|
||||
{
|
||||
var add_php_before_getitem_vvvvwbn = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbn = jQuery("#jform_gettype").val();
|
||||
vvvvwbn(add_php_before_getitem_vvvvwbn,gettype_vvvvwbn);
|
||||
var add_php_before_getitem_vvvvwbo = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbo = jQuery("#jform_gettype").val();
|
||||
vvvvwbo(add_php_before_getitem_vvvvwbo,gettype_vvvvwbo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_getitem',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_getitem_vvvvwbn = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbn = jQuery("#jform_gettype").val();
|
||||
vvvvwbn(add_php_before_getitem_vvvvwbn,gettype_vvvvwbn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwbn function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_before_getitem_vvvvwbn = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbn = jQuery("#jform_gettype").val();
|
||||
vvvvwbn(add_php_before_getitem_vvvvwbn,gettype_vvvvwbn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_getitem_vvvvwbn = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbn = jQuery("#jform_gettype").val();
|
||||
vvvvwbn(add_php_before_getitem_vvvvwbn,gettype_vvvvwbn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_getitem listeners for add_php_after_getitem_vvvvwbo function
|
||||
jQuery('#jform_add_php_after_getitem').on('keyup',function()
|
||||
{
|
||||
var add_php_after_getitem_vvvvwbo = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var add_php_before_getitem_vvvvwbo = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbo = jQuery("#jform_gettype").val();
|
||||
vvvvwbo(add_php_after_getitem_vvvvwbo,gettype_vvvvwbo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_getitem',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_getitem_vvvvwbo = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbo = jQuery("#jform_gettype").val();
|
||||
vvvvwbo(add_php_after_getitem_vvvvwbo,gettype_vvvvwbo);
|
||||
vvvvwbo(add_php_before_getitem_vvvvwbo,gettype_vvvvwbo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwbo function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_after_getitem_vvvvwbo = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var add_php_before_getitem_vvvvwbo = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbo = jQuery("#jform_gettype").val();
|
||||
vvvvwbo(add_php_after_getitem_vvvvwbo,gettype_vvvvwbo);
|
||||
vvvvwbo(add_php_before_getitem_vvvvwbo,gettype_vvvvwbo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_getitem_vvvvwbo = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var add_php_before_getitem_vvvvwbo = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbo = jQuery("#jform_gettype").val();
|
||||
vvvvwbo(add_php_after_getitem_vvvvwbo,gettype_vvvvwbo);
|
||||
vvvvwbo(add_php_before_getitem_vvvvwbo,gettype_vvvvwbo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwbq function
|
||||
// #jform_add_php_after_getitem listeners for add_php_after_getitem_vvvvwbp function
|
||||
jQuery('#jform_add_php_after_getitem').on('keyup',function()
|
||||
{
|
||||
var add_php_after_getitem_vvvvwbp = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbp = jQuery("#jform_gettype").val();
|
||||
vvvvwbp(add_php_after_getitem_vvvvwbp,gettype_vvvvwbp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_getitem',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_getitem_vvvvwbp = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbp = jQuery("#jform_gettype").val();
|
||||
vvvvwbp(add_php_after_getitem_vvvvwbp,gettype_vvvvwbp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwbp function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwbq = jQuery("#jform_gettype").val();
|
||||
vvvvwbq(gettype_vvvvwbq);
|
||||
var add_php_after_getitem_vvvvwbp = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbp = jQuery("#jform_gettype").val();
|
||||
vvvvwbp(add_php_after_getitem_vvvvwbp,gettype_vvvvwbp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwbq = jQuery("#jform_gettype").val();
|
||||
vvvvwbq(gettype_vvvvwbq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvwbr function
|
||||
jQuery('#jform_add_php_getlistquery').on('keyup',function()
|
||||
{
|
||||
var add_php_getlistquery_vvvvwbr = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbr = jQuery("#jform_gettype").val();
|
||||
vvvvwbr(add_php_getlistquery_vvvvwbr,gettype_vvvvwbr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getlistquery_vvvvwbr = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbr = jQuery("#jform_gettype").val();
|
||||
vvvvwbr(add_php_getlistquery_vvvvwbr,gettype_vvvvwbr);
|
||||
var add_php_after_getitem_vvvvwbp = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbp = jQuery("#jform_gettype").val();
|
||||
vvvvwbp(add_php_after_getitem_vvvvwbp,gettype_vvvvwbp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwbr function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_getlistquery_vvvvwbr = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbr = jQuery("#jform_gettype").val();
|
||||
vvvvwbr(add_php_getlistquery_vvvvwbr,gettype_vvvvwbr);
|
||||
vvvvwbr(gettype_vvvvwbr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getlistquery_vvvvwbr = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbr = jQuery("#jform_gettype").val();
|
||||
vvvvwbr(add_php_getlistquery_vvvvwbr,gettype_vvvvwbr);
|
||||
vvvvwbr(gettype_vvvvwbr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_getitems listeners for add_php_before_getitems_vvvvwbs function
|
||||
jQuery('#jform_add_php_before_getitems').on('keyup',function()
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvwbs function
|
||||
jQuery('#jform_add_php_getlistquery').on('keyup',function()
|
||||
{
|
||||
var add_php_before_getitems_vvvvwbs = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var add_php_getlistquery_vvvvwbs = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbs = jQuery("#jform_gettype").val();
|
||||
vvvvwbs(add_php_before_getitems_vvvvwbs,gettype_vvvvwbs);
|
||||
vvvvwbs(add_php_getlistquery_vvvvwbs,gettype_vvvvwbs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_getitems',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_getitems_vvvvwbs = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var add_php_getlistquery_vvvvwbs = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbs = jQuery("#jform_gettype").val();
|
||||
vvvvwbs(add_php_before_getitems_vvvvwbs,gettype_vvvvwbs);
|
||||
vvvvwbs(add_php_getlistquery_vvvvwbs,gettype_vvvvwbs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwbs function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_before_getitems_vvvvwbs = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var add_php_getlistquery_vvvvwbs = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbs = jQuery("#jform_gettype").val();
|
||||
vvvvwbs(add_php_before_getitems_vvvvwbs,gettype_vvvvwbs);
|
||||
vvvvwbs(add_php_getlistquery_vvvvwbs,gettype_vvvvwbs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_getitems_vvvvwbs = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var add_php_getlistquery_vvvvwbs = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbs = jQuery("#jform_gettype").val();
|
||||
vvvvwbs(add_php_before_getitems_vvvvwbs,gettype_vvvvwbs);
|
||||
vvvvwbs(add_php_getlistquery_vvvvwbs,gettype_vvvvwbs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_getitems listeners for add_php_after_getitems_vvvvwbt function
|
||||
jQuery('#jform_add_php_after_getitems').on('keyup',function()
|
||||
// #jform_add_php_before_getitems listeners for add_php_before_getitems_vvvvwbt function
|
||||
jQuery('#jform_add_php_before_getitems').on('keyup',function()
|
||||
{
|
||||
var add_php_after_getitems_vvvvwbt = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var add_php_before_getitems_vvvvwbt = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbt = jQuery("#jform_gettype").val();
|
||||
vvvvwbt(add_php_after_getitems_vvvvwbt,gettype_vvvvwbt);
|
||||
vvvvwbt(add_php_before_getitems_vvvvwbt,gettype_vvvvwbt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_getitems',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_getitems',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_getitems_vvvvwbt = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var add_php_before_getitems_vvvvwbt = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbt = jQuery("#jform_gettype").val();
|
||||
vvvvwbt(add_php_after_getitems_vvvvwbt,gettype_vvvvwbt);
|
||||
vvvvwbt(add_php_before_getitems_vvvvwbt,gettype_vvvvwbt);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwbt function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_after_getitems_vvvvwbt = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var add_php_before_getitems_vvvvwbt = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbt = jQuery("#jform_gettype").val();
|
||||
vvvvwbt(add_php_after_getitems_vvvvwbt,gettype_vvvvwbt);
|
||||
vvvvwbt(add_php_before_getitems_vvvvwbt,gettype_vvvvwbt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_getitems_vvvvwbt = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var add_php_before_getitems_vvvvwbt = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbt = jQuery("#jform_gettype").val();
|
||||
vvvvwbt(add_php_after_getitems_vvvvwbt,gettype_vvvvwbt);
|
||||
vvvvwbt(add_php_before_getitems_vvvvwbt,gettype_vvvvwbt);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwbv function
|
||||
// #jform_add_php_after_getitems listeners for add_php_after_getitems_vvvvwbu function
|
||||
jQuery('#jform_add_php_after_getitems').on('keyup',function()
|
||||
{
|
||||
var add_php_after_getitems_vvvvwbu = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbu = jQuery("#jform_gettype").val();
|
||||
vvvvwbu(add_php_after_getitems_vvvvwbu,gettype_vvvvwbu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_getitems',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_getitems_vvvvwbu = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbu = jQuery("#jform_gettype").val();
|
||||
vvvvwbu(add_php_after_getitems_vvvvwbu,gettype_vvvvwbu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwbu function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwbv = jQuery("#jform_gettype").val();
|
||||
vvvvwbv(gettype_vvvvwbv);
|
||||
var add_php_after_getitems_vvvvwbu = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbu = jQuery("#jform_gettype").val();
|
||||
vvvvwbu(add_php_after_getitems_vvvvwbu,gettype_vvvvwbu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwbv = jQuery("#jform_gettype").val();
|
||||
vvvvwbv(gettype_vvvvwbv);
|
||||
var add_php_after_getitems_vvvvwbu = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwbu = jQuery("#jform_gettype").val();
|
||||
vvvvwbu(add_php_after_getitems_vvvvwbu,gettype_vvvvwbu);
|
||||
|
||||
});
|
||||
|
||||
@ -596,48 +581,63 @@ jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwby = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwby = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwby(gettype_vvvvwby,add_php_router_parse_vvvvwby);
|
||||
vvvvwby(gettype_vvvvwby);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwby = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwby = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwby(gettype_vvvvwby,add_php_router_parse_vvvvwby);
|
||||
vvvvwby(gettype_vvvvwby);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_router_parse listeners for add_php_router_parse_vvvvwby function
|
||||
// #jform_gettype listeners for gettype_vvvvwbz function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwbz = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwbz = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwbz(gettype_vvvvwbz,add_php_router_parse_vvvvwbz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwbz = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwbz = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwbz(gettype_vvvvwbz,add_php_router_parse_vvvvwbz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_router_parse listeners for add_php_router_parse_vvvvwbz function
|
||||
jQuery('#jform_add_php_router_parse').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwby = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwby = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwby(gettype_vvvvwby,add_php_router_parse_vvvvwby);
|
||||
var gettype_vvvvwbz = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwbz = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwbz(gettype_vvvvwbz,add_php_router_parse_vvvvwbz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_router_parse',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwby = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwby = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwby(gettype_vvvvwby,add_php_router_parse_vvvvwby);
|
||||
var gettype_vvvvwbz = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwbz = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwbz(gettype_vvvvwbz,add_php_router_parse_vvvvwbz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwca function
|
||||
// #jform_gettype listeners for gettype_vvvvwcb function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwca = jQuery("#jform_gettype").val();
|
||||
vvvvwca(gettype_vvvvwca);
|
||||
var gettype_vvvvwcb = jQuery("#jform_gettype").val();
|
||||
vvvvwcb(gettype_vvvvwcb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwca = jQuery("#jform_gettype").val();
|
||||
vvvvwca(gettype_vvvvwca);
|
||||
var gettype_vvvvwcb = jQuery("#jform_gettype").val();
|
||||
vvvvwcb(gettype_vvvvwcb);
|
||||
|
||||
});
|
||||
|
||||
|
@ -147,48 +147,33 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_datalenght listeners for datalenght_vvvvwcz function
|
||||
// #jform_datalenght listeners for datalenght_vvvvwda function
|
||||
jQuery('#jform_datalenght').on('keyup',function()
|
||||
{
|
||||
var datalenght_vvvvwcz = jQuery("#jform_datalenght").val();
|
||||
vvvvwcz(datalenght_vvvvwcz);
|
||||
var datalenght_vvvvwda = jQuery("#jform_datalenght").val();
|
||||
vvvvwda(datalenght_vvvvwda);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datalenght',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datalenght_vvvvwcz = jQuery("#jform_datalenght").val();
|
||||
vvvvwcz(datalenght_vvvvwcz);
|
||||
var datalenght_vvvvwda = jQuery("#jform_datalenght").val();
|
||||
vvvvwda(datalenght_vvvvwda);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datadefault listeners for datadefault_vvvvwda function
|
||||
// #jform_datadefault listeners for datadefault_vvvvwdb function
|
||||
jQuery('#jform_datadefault').on('keyup',function()
|
||||
{
|
||||
var datadefault_vvvvwda = jQuery("#jform_datadefault").val();
|
||||
vvvvwda(datadefault_vvvvwda);
|
||||
var datadefault_vvvvwdb = jQuery("#jform_datadefault").val();
|
||||
vvvvwdb(datadefault_vvvvwdb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datadefault',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datadefault_vvvvwda = jQuery("#jform_datadefault").val();
|
||||
vvvvwda(datadefault_vvvvwda);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwdb function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwdb = jQuery("#jform_datatype").val();
|
||||
vvvvwdb(datatype_vvvvwdb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwdb = jQuery("#jform_datatype").val();
|
||||
vvvvwdb(datatype_vvvvwdb);
|
||||
var datadefault_vvvvwdb = jQuery("#jform_datadefault").val();
|
||||
vvvvwdb(datadefault_vvvvwdb);
|
||||
|
||||
});
|
||||
|
||||
@ -207,112 +192,127 @@ jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwdd function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwdd = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdd = jQuery("#jform_datatype").val();
|
||||
vvvvwdd(store_vvvvwdd,datatype_vvvvwdd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwdd = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdd = jQuery("#jform_datatype").val();
|
||||
vvvvwdd(store_vvvvwdd,datatype_vvvvwdd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwdd function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwdd = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdd = jQuery("#jform_datatype").val();
|
||||
vvvvwdd(store_vvvvwdd,datatype_vvvvwdd);
|
||||
vvvvwdd(datatype_vvvvwdd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwdd = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdd = jQuery("#jform_datatype").val();
|
||||
vvvvwdd(store_vvvvwdd,datatype_vvvvwdd);
|
||||
vvvvwdd(datatype_vvvvwdd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwdf function
|
||||
// #jform_store listeners for store_vvvvwde function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwdf = jQuery("#jform_store").val();
|
||||
vvvvwdf(store_vvvvwdf);
|
||||
var store_vvvvwde = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwde = jQuery("#jform_datatype").val();
|
||||
vvvvwde(store_vvvvwde,datatype_vvvvwde);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwdf = jQuery("#jform_store").val();
|
||||
vvvvwdf(store_vvvvwdf);
|
||||
var store_vvvvwde = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwde = jQuery("#jform_datatype").val();
|
||||
vvvvwde(store_vvvvwde,datatype_vvvvwde);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvwdg function
|
||||
// #jform_datatype listeners for datatype_vvvvwde function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwde = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwde = jQuery("#jform_datatype").val();
|
||||
vvvvwde(store_vvvvwde,datatype_vvvvwde);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwde = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwde = jQuery("#jform_datatype").val();
|
||||
vvvvwde(store_vvvvwde,datatype_vvvvwde);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwdg function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwdg = jQuery("#jform_store").val();
|
||||
vvvvwdg(store_vvvvwdg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwdg = jQuery("#jform_store").val();
|
||||
vvvvwdg(store_vvvvwdg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvwdh function
|
||||
jQuery('#jform_add_css_view').on('keyup',function()
|
||||
{
|
||||
var add_css_view_vvvvwdg = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwdg(add_css_view_vvvvwdg);
|
||||
var add_css_view_vvvvwdh = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwdh(add_css_view_vvvvwdh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_view_vvvvwdg = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwdg(add_css_view_vvvvwdg);
|
||||
var add_css_view_vvvvwdh = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwdh(add_css_view_vvvvwdh);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvwdh function
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvwdi function
|
||||
jQuery('#jform_add_css_views').on('keyup',function()
|
||||
{
|
||||
var add_css_views_vvvvwdh = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwdh(add_css_views_vvvvwdh);
|
||||
var add_css_views_vvvvwdi = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwdi(add_css_views_vvvvwdi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_views',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_views_vvvvwdh = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwdh(add_css_views_vvvvwdh);
|
||||
var add_css_views_vvvvwdi = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwdi(add_css_views_vvvvwdi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvwdi function
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvwdj function
|
||||
jQuery('#jform_add_javascript_view_footer').on('keyup',function()
|
||||
{
|
||||
var add_javascript_view_footer_vvvvwdi = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwdi(add_javascript_view_footer_vvvvwdi);
|
||||
var add_javascript_view_footer_vvvvwdj = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwdj(add_javascript_view_footer_vvvvwdj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_view_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_view_footer_vvvvwdi = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwdi(add_javascript_view_footer_vvvvwdi);
|
||||
var add_javascript_view_footer_vvvvwdj = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwdj(add_javascript_view_footer_vvvvwdj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvwdj function
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvwdk function
|
||||
jQuery('#jform_add_javascript_views_footer').on('keyup',function()
|
||||
{
|
||||
var add_javascript_views_footer_vvvvwdj = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwdj(add_javascript_views_footer_vvvvwdj);
|
||||
var add_javascript_views_footer_vvvvwdk = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwdk(add_javascript_views_footer_vvvvwdk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_views_footer_vvvvwdj = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwdj(add_javascript_views_footer_vvvvwdj);
|
||||
var add_javascript_views_footer_vvvvwdk = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwdk(add_javascript_views_footer_vvvvwdk);
|
||||
|
||||
});
|
||||
|
||||
|
@ -136,378 +136,321 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_datalenght listeners for datalenght_vvvvwdk function
|
||||
// #jform_datalenght listeners for datalenght_vvvvwdl function
|
||||
jQuery('#jform_datalenght').on('keyup',function()
|
||||
{
|
||||
var datalenght_vvvvwdk = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwdk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdk(datalenght_vvvvwdk,has_defaults_vvvvwdk);
|
||||
var datalenght_vvvvwdl = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwdl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdl(datalenght_vvvvwdl,has_defaults_vvvvwdl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datalenght',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datalenght_vvvvwdk = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwdk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdk(datalenght_vvvvwdk,has_defaults_vvvvwdk);
|
||||
var datalenght_vvvvwdl = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwdl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdl(datalenght_vvvvwdl,has_defaults_vvvvwdl);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdk function
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdl function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datalenght_vvvvwdk = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwdk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdk(datalenght_vvvvwdk,has_defaults_vvvvwdk);
|
||||
var datalenght_vvvvwdl = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwdl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdl(datalenght_vvvvwdl,has_defaults_vvvvwdl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datalenght_vvvvwdk = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwdk = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdk(datalenght_vvvvwdk,has_defaults_vvvvwdk);
|
||||
var datalenght_vvvvwdl = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwdl = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdl(datalenght_vvvvwdl,has_defaults_vvvvwdl);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datadefault listeners for datadefault_vvvvwdm function
|
||||
// #jform_datadefault listeners for datadefault_vvvvwdn function
|
||||
jQuery('#jform_datadefault').on('keyup',function()
|
||||
{
|
||||
var datadefault_vvvvwdm = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwdm = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdm(datadefault_vvvvwdm,has_defaults_vvvvwdm);
|
||||
var datadefault_vvvvwdn = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwdn = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdn(datadefault_vvvvwdn,has_defaults_vvvvwdn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datadefault',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datadefault_vvvvwdm = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwdm = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdm(datadefault_vvvvwdm,has_defaults_vvvvwdm);
|
||||
var datadefault_vvvvwdn = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwdn = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdn(datadefault_vvvvwdn,has_defaults_vvvvwdn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdm function
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdn function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datadefault_vvvvwdm = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwdm = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdm(datadefault_vvvvwdm,has_defaults_vvvvwdm);
|
||||
var datadefault_vvvvwdn = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwdn = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdn(datadefault_vvvvwdn,has_defaults_vvvvwdn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datadefault_vvvvwdm = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwdm = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdm(datadefault_vvvvwdm,has_defaults_vvvvwdm);
|
||||
var datadefault_vvvvwdn = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwdn = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdn(datadefault_vvvvwdn,has_defaults_vvvvwdn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwdo function
|
||||
// #jform_datatype listeners for datatype_vvvvwdp function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwdo = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdo = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdo(datatype_vvvvwdo,has_defaults_vvvvwdo);
|
||||
var datatype_vvvvwdp = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdp = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdp(datatype_vvvvwdp,has_defaults_vvvvwdp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwdo = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdo = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdo(datatype_vvvvwdo,has_defaults_vvvvwdo);
|
||||
var datatype_vvvvwdp = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdp = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdp(datatype_vvvvwdp,has_defaults_vvvvwdp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdo function
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdp function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwdo = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdo = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdo(datatype_vvvvwdo,has_defaults_vvvvwdo);
|
||||
var datatype_vvvvwdp = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdp = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdp(datatype_vvvvwdp,has_defaults_vvvvwdp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwdo = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdo = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdo(datatype_vvvvwdo,has_defaults_vvvvwdo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwdq function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwdq = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdq(datatype_vvvvwdq,has_defaults_vvvvwdq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwdq = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdq(datatype_vvvvwdq,has_defaults_vvvvwdq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdq function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwdq = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdq(datatype_vvvvwdq,has_defaults_vvvvwdq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwdq = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdq(datatype_vvvvwdq,has_defaults_vvvvwdq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdr function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwdr = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwdr = jQuery("#jform_datatype").val();
|
||||
vvvvwdr(has_defaults_vvvvwdr,datatype_vvvvwdr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwdr = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwdr = jQuery("#jform_datatype").val();
|
||||
vvvvwdr(has_defaults_vvvvwdr,datatype_vvvvwdr);
|
||||
var datatype_vvvvwdp = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdp = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdp(datatype_vvvvwdp,has_defaults_vvvvwdp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwdr function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwdr = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwdr = jQuery("#jform_datatype").val();
|
||||
vvvvwdr(has_defaults_vvvvwdr,datatype_vvvvwdr);
|
||||
var has_defaults_vvvvwdr = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdr(datatype_vvvvwdr,has_defaults_vvvvwdr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwdr = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwdr = jQuery("#jform_datatype").val();
|
||||
vvvvwdr(has_defaults_vvvvwdr,datatype_vvvvwdr);
|
||||
var has_defaults_vvvvwdr = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdr(datatype_vvvvwdr,has_defaults_vvvvwdr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwds function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdr function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwds = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwds = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwds(datatype_vvvvwds,has_defaults_vvvvwds);
|
||||
var datatype_vvvvwdr = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdr = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdr(datatype_vvvvwdr,has_defaults_vvvvwdr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwds = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwds = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwds(datatype_vvvvwds,has_defaults_vvvvwds);
|
||||
var datatype_vvvvwdr = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdr = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdr(datatype_vvvvwdr,has_defaults_vvvvwdr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwds function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwds = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwds = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwds(datatype_vvvvwds,has_defaults_vvvvwds);
|
||||
var datatype_vvvvwds = jQuery("#jform_datatype").val();
|
||||
vvvvwds(has_defaults_vvvvwds,datatype_vvvvwds);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwds = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwds = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwds(datatype_vvvvwds,has_defaults_vvvvwds);
|
||||
var datatype_vvvvwds = jQuery("#jform_datatype").val();
|
||||
vvvvwds(has_defaults_vvvvwds,datatype_vvvvwds);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwdu function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwdu = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdu = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdu = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdu(store_vvvvwdu,datatype_vvvvwdu,has_defaults_vvvvwdu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwdu = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdu = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdu = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdu(store_vvvvwdu,datatype_vvvvwdu,has_defaults_vvvvwdu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwdu function
|
||||
// #jform_datatype listeners for datatype_vvvvwds function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwdu = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdu = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdu = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdu(store_vvvvwdu,datatype_vvvvwdu,has_defaults_vvvvwdu);
|
||||
var has_defaults_vvvvwds = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwds = jQuery("#jform_datatype").val();
|
||||
vvvvwds(has_defaults_vvvvwds,datatype_vvvvwds);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwdu = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdu = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdu = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdu(store_vvvvwdu,datatype_vvvvwdu,has_defaults_vvvvwdu);
|
||||
var has_defaults_vvvvwds = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwds = jQuery("#jform_datatype").val();
|
||||
vvvvwds(has_defaults_vvvvwds,datatype_vvvvwds);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdu function
|
||||
// #jform_datatype listeners for datatype_vvvvwdt function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwdt = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdt = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdt(datatype_vvvvwdt,has_defaults_vvvvwdt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwdt = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdt = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdt(datatype_vvvvwdt,has_defaults_vvvvwdt);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdt function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwdu = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdu = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdu = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdu(store_vvvvwdu,datatype_vvvvwdu,has_defaults_vvvvwdu);
|
||||
var datatype_vvvvwdt = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdt = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdt(datatype_vvvvwdt,has_defaults_vvvvwdt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwdu = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdu = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdu = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdu(store_vvvvwdu,datatype_vvvvwdu,has_defaults_vvvvwdu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwdv function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwdv = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwdv = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdv(datatype_vvvvwdv,store_vvvvwdv,has_defaults_vvvvwdv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwdv = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwdv = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdv(datatype_vvvvwdv,store_vvvvwdv,has_defaults_vvvvwdv);
|
||||
var datatype_vvvvwdt = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdt = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdt(datatype_vvvvwdt,has_defaults_vvvvwdt);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwdv function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwdv = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdv = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdv(datatype_vvvvwdv,store_vvvvwdv,has_defaults_vvvvwdv);
|
||||
vvvvwdv(store_vvvvwdv,datatype_vvvvwdv,has_defaults_vvvvwdv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwdv = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdv = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdv(datatype_vvvvwdv,store_vvvvwdv,has_defaults_vvvvwdv);
|
||||
vvvvwdv(store_vvvvwdv,datatype_vvvvwdv,has_defaults_vvvvwdv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwdv function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwdv = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdv = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdv(store_vvvvwdv,datatype_vvvvwdv,has_defaults_vvvvwdv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwdv = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdv = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdv(store_vvvvwdv,datatype_vvvvwdv,has_defaults_vvvvwdv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdv function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwdv = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdv = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdv(datatype_vvvvwdv,store_vvvvwdv,has_defaults_vvvvwdv);
|
||||
vvvvwdv(store_vvvvwdv,datatype_vvvvwdv,has_defaults_vvvvwdv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwdv = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdv = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwdv = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdv(datatype_vvvvwdv,store_vvvvwdv,has_defaults_vvvvwdv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdw function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdw = jQuery("#jform_datatype").val();
|
||||
vvvvwdw(has_defaults_vvvvwdw,store_vvvvwdw,datatype_vvvvwdw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdw = jQuery("#jform_datatype").val();
|
||||
vvvvwdw(has_defaults_vvvvwdw,store_vvvvwdw,datatype_vvvvwdw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwdw function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdw = jQuery("#jform_datatype").val();
|
||||
vvvvwdw(has_defaults_vvvvwdw,store_vvvvwdw,datatype_vvvvwdw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdw = jQuery("#jform_datatype").val();
|
||||
vvvvwdw(has_defaults_vvvvwdw,store_vvvvwdw,datatype_vvvvwdw);
|
||||
vvvvwdv(store_vvvvwdv,datatype_vvvvwdv,has_defaults_vvvvwdv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwdw function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdw = jQuery("#jform_datatype").val();
|
||||
vvvvwdw(has_defaults_vvvvwdw,store_vvvvwdw,datatype_vvvvwdw);
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdw(datatype_vvvvwdw,store_vvvvwdw,has_defaults_vvvvwdw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdw = jQuery("#jform_datatype").val();
|
||||
vvvvwdw(has_defaults_vvvvwdw,store_vvvvwdw,datatype_vvvvwdw);
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdw(datatype_vvvvwdw,store_vvvvwdw,has_defaults_vvvvwdw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwdw function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwdw = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdw(datatype_vvvvwdw,store_vvvvwdw,has_defaults_vvvvwdw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwdw = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdw(datatype_vvvvwdw,store_vvvvwdw,has_defaults_vvvvwdw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdw function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwdw = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdw(datatype_vvvvwdw,store_vvvvwdw,has_defaults_vvvvwdw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwdw = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwdw = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwdw = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdw(datatype_vvvvwdw,store_vvvvwdw,has_defaults_vvvvwdw);
|
||||
|
||||
});
|
||||
|
||||
@ -515,14 +458,71 @@ jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwdx = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdx(has_defaults_vvvvwdx);
|
||||
var store_vvvvwdx = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdx = jQuery("#jform_datatype").val();
|
||||
vvvvwdx(has_defaults_vvvvwdx,store_vvvvwdx,datatype_vvvvwdx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwdx = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdx(has_defaults_vvvvwdx);
|
||||
var store_vvvvwdx = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdx = jQuery("#jform_datatype").val();
|
||||
vvvvwdx(has_defaults_vvvvwdx,store_vvvvwdx,datatype_vvvvwdx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwdx function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwdx = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwdx = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdx = jQuery("#jform_datatype").val();
|
||||
vvvvwdx(has_defaults_vvvvwdx,store_vvvvwdx,datatype_vvvvwdx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwdx = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwdx = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdx = jQuery("#jform_datatype").val();
|
||||
vvvvwdx(has_defaults_vvvvwdx,store_vvvvwdx,datatype_vvvvwdx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwdx function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwdx = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwdx = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdx = jQuery("#jform_datatype").val();
|
||||
vvvvwdx(has_defaults_vvvvwdx,store_vvvvwdx,datatype_vvvvwdx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwdx = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwdx = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdx = jQuery("#jform_datatype").val();
|
||||
vvvvwdx(has_defaults_vvvvwdx,store_vvvvwdx,datatype_vvvvwdx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwdy function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwdy = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdy(has_defaults_vvvvwdy);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwdy = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwdy(has_defaults_vvvvwdy);
|
||||
|
||||
});
|
||||
|
||||
|
@ -97,21 +97,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_location listeners for location_vvvvwei function
|
||||
jQuery('#jform_location').on('keyup',function()
|
||||
{
|
||||
var location_vvvvwei = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwei(location_vvvvwei);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var location_vvvvwei = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwei(location_vvvvwei);
|
||||
|
||||
});
|
||||
|
||||
// #jform_location listeners for location_vvvvwej function
|
||||
jQuery('#jform_location').on('keyup',function()
|
||||
{
|
||||
@ -127,18 +112,18 @@ jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwek function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
// #jform_location listeners for location_vvvvwek function
|
||||
jQuery('#jform_location').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwek = jQuery("#jform_type").val();
|
||||
vvvvwek(type_vvvvwek);
|
||||
var location_vvvvwek = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwek(location_vvvvwek);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwek = jQuery("#jform_type").val();
|
||||
vvvvwek(type_vvvvwek);
|
||||
var location_vvvvwek = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwek(location_vvvvwek);
|
||||
|
||||
});
|
||||
|
||||
@ -172,18 +157,33 @@ jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwen function
|
||||
// #jform_type listeners for type_vvvvwen function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwen = jQuery("#jform_type").val();
|
||||
vvvvwen(type_vvvvwen);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwen = jQuery("#jform_type").val();
|
||||
vvvvwen(type_vvvvwen);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvweo function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwen = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwen(target_vvvvwen);
|
||||
var target_vvvvweo = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvweo(target_vvvvweo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwen = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwen(target_vvvvwen);
|
||||
var target_vvvvweo = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvweo(target_vvvvweo);
|
||||
|
||||
});
|
||||
|
||||
|
@ -136,6 +136,11 @@ class ComponentbuilderViewJoomla_modules extends HtmlView
|
||||
{
|
||||
JToolbarHelper::trash('joomla_modules.trash');
|
||||
}
|
||||
|
||||
if ($this->canDo->get('core.export') && $this->canDo->get('joomla_module.export'))
|
||||
{
|
||||
JToolBarHelper::custom('joomla_modules.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
|
||||
}
|
||||
}
|
||||
if ($this->user->authorise('joomla_module.get_snippets', 'com_componentbuilder'))
|
||||
{
|
||||
@ -148,6 +153,11 @@ class ComponentbuilderViewJoomla_modules extends HtmlView
|
||||
JToolBarHelper::custom('joomla_modules.runExpansion', 'expand-2 custom-button-runexpansion', '', 'COM_COMPONENTBUILDER_RUN_EXPANSION', false);
|
||||
}
|
||||
|
||||
if ($this->canDo->get('core.import') && $this->canDo->get('joomla_module.import'))
|
||||
{
|
||||
JToolBarHelper::custom('joomla_modules.importData', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_DATA', false);
|
||||
}
|
||||
|
||||
// set help url for this view if found
|
||||
$this->help_url = ComponentbuilderHelper::getHelpUrl('joomla_modules');
|
||||
if (ComponentbuilderHelper::checkString($this->help_url))
|
||||
|
@ -129,18 +129,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvwaz function
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvwba function
|
||||
jQuery('#jform_add_php_view').on('keyup',function()
|
||||
{
|
||||
var add_php_view_vvvvwaz = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwaz(add_php_view_vvvvwaz);
|
||||
var add_php_view_vvvvwba = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwba(add_php_view_vvvvwba);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_view_vvvvwaz = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwaz(add_php_view_vvvvwaz);
|
||||
var add_php_view_vvvvwba = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwba(add_php_view_vvvvwba);
|
||||
|
||||
});
|
||||
|
||||
|
@ -146,343 +146,309 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_how listeners for how_vvvvwch function
|
||||
// #jform_how listeners for how_vvvvwci function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwch = jQuery("#jform_how").val();
|
||||
var target_vvvvwch = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwch(how_vvvvwch,target_vvvvwch);
|
||||
var how_vvvvwci = jQuery("#jform_how").val();
|
||||
var target_vvvvwci = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwci(how_vvvvwci,target_vvvvwci);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwch = jQuery("#jform_how").val();
|
||||
var target_vvvvwch = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwch(how_vvvvwch,target_vvvvwch);
|
||||
var how_vvvvwci = jQuery("#jform_how").val();
|
||||
var target_vvvvwci = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwci(how_vvvvwci,target_vvvvwci);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwch function
|
||||
// #jform_target listeners for target_vvvvwci function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwch = jQuery("#jform_how").val();
|
||||
var target_vvvvwch = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwch(how_vvvvwch,target_vvvvwch);
|
||||
var how_vvvvwci = jQuery("#jform_how").val();
|
||||
var target_vvvvwci = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwci(how_vvvvwci,target_vvvvwci);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwch = jQuery("#jform_how").val();
|
||||
var target_vvvvwch = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwch(how_vvvvwch,target_vvvvwch);
|
||||
var how_vvvvwci = jQuery("#jform_how").val();
|
||||
var target_vvvvwci = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwci(how_vvvvwci,target_vvvvwci);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwcj function
|
||||
// #jform_how listeners for how_vvvvwck function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwcj = jQuery("#jform_how").val();
|
||||
var target_vvvvwcj = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcj(how_vvvvwcj,target_vvvvwcj);
|
||||
var how_vvvvwck = jQuery("#jform_how").val();
|
||||
var target_vvvvwck = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwck(how_vvvvwck,target_vvvvwck);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwcj = jQuery("#jform_how").val();
|
||||
var target_vvvvwcj = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcj(how_vvvvwcj,target_vvvvwcj);
|
||||
var how_vvvvwck = jQuery("#jform_how").val();
|
||||
var target_vvvvwck = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwck(how_vvvvwck,target_vvvvwck);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcj function
|
||||
// #jform_target listeners for target_vvvvwck function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwcj = jQuery("#jform_how").val();
|
||||
var target_vvvvwcj = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcj(how_vvvvwcj,target_vvvvwcj);
|
||||
var how_vvvvwck = jQuery("#jform_how").val();
|
||||
var target_vvvvwck = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwck(how_vvvvwck,target_vvvvwck);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwcj = jQuery("#jform_how").val();
|
||||
var target_vvvvwcj = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcj(how_vvvvwcj,target_vvvvwcj);
|
||||
var how_vvvvwck = jQuery("#jform_how").val();
|
||||
var target_vvvvwck = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwck(how_vvvvwck,target_vvvvwck);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwcl function
|
||||
// #jform_how listeners for how_vvvvwcm function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwcl = jQuery("#jform_how").val();
|
||||
var target_vvvvwcl = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcl(how_vvvvwcl,target_vvvvwcl);
|
||||
var how_vvvvwcm = jQuery("#jform_how").val();
|
||||
var target_vvvvwcm = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcm(how_vvvvwcm,target_vvvvwcm);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwcl = jQuery("#jform_how").val();
|
||||
var target_vvvvwcl = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcl(how_vvvvwcl,target_vvvvwcl);
|
||||
var how_vvvvwcm = jQuery("#jform_how").val();
|
||||
var target_vvvvwcm = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcm(how_vvvvwcm,target_vvvvwcm);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcl function
|
||||
// #jform_target listeners for target_vvvvwcm function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwcl = jQuery("#jform_how").val();
|
||||
var target_vvvvwcl = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcl(how_vvvvwcl,target_vvvvwcl);
|
||||
var how_vvvvwcm = jQuery("#jform_how").val();
|
||||
var target_vvvvwcm = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcm(how_vvvvwcm,target_vvvvwcm);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwcl = jQuery("#jform_how").val();
|
||||
var target_vvvvwcl = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcl(how_vvvvwcl,target_vvvvwcl);
|
||||
var how_vvvvwcm = jQuery("#jform_how").val();
|
||||
var target_vvvvwcm = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcm(how_vvvvwcm,target_vvvvwcm);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwcn function
|
||||
// #jform_how listeners for how_vvvvwco function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwcn = jQuery("#jform_how").val();
|
||||
var target_vvvvwcn = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcn(how_vvvvwcn,target_vvvvwcn);
|
||||
var how_vvvvwco = jQuery("#jform_how").val();
|
||||
var target_vvvvwco = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwco(how_vvvvwco,target_vvvvwco);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwcn = jQuery("#jform_how").val();
|
||||
var target_vvvvwcn = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcn(how_vvvvwcn,target_vvvvwcn);
|
||||
var how_vvvvwco = jQuery("#jform_how").val();
|
||||
var target_vvvvwco = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwco(how_vvvvwco,target_vvvvwco);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcn function
|
||||
// #jform_target listeners for target_vvvvwco function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwcn = jQuery("#jform_how").val();
|
||||
var target_vvvvwcn = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcn(how_vvvvwcn,target_vvvvwcn);
|
||||
var how_vvvvwco = jQuery("#jform_how").val();
|
||||
var target_vvvvwco = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwco(how_vvvvwco,target_vvvvwco);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwcn = jQuery("#jform_how").val();
|
||||
var target_vvvvwcn = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcn(how_vvvvwcn,target_vvvvwcn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwcp function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwcp = jQuery("#jform_how").val();
|
||||
var target_vvvvwcp = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcp(how_vvvvwcp,target_vvvvwcp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwcp = jQuery("#jform_how").val();
|
||||
var target_vvvvwcp = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcp(how_vvvvwcp,target_vvvvwcp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcp function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwcp = jQuery("#jform_how").val();
|
||||
var target_vvvvwcp = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcp(how_vvvvwcp,target_vvvvwcp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwcp = jQuery("#jform_how").val();
|
||||
var target_vvvvwcp = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcp(how_vvvvwcp,target_vvvvwcp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcq function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcq = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcq = jQuery("#jform_how").val();
|
||||
vvvvwcq(target_vvvvwcq,how_vvvvwcq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcq = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcq = jQuery("#jform_how").val();
|
||||
vvvvwcq(target_vvvvwcq,how_vvvvwcq);
|
||||
var how_vvvvwco = jQuery("#jform_how").val();
|
||||
var target_vvvvwco = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwco(how_vvvvwco,target_vvvvwco);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwcq function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcq = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcq = jQuery("#jform_how").val();
|
||||
vvvvwcq(target_vvvvwcq,how_vvvvwcq);
|
||||
var target_vvvvwcq = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcq(how_vvvvwcq,target_vvvvwcq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcq = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcq = jQuery("#jform_how").val();
|
||||
vvvvwcq(target_vvvvwcq,how_vvvvwcq);
|
||||
var target_vvvvwcq = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcq(how_vvvvwcq,target_vvvvwcq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwcr function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
// #jform_target listeners for target_vvvvwcq function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwcr = jQuery("#jform_how").val();
|
||||
var target_vvvvwcr = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcr(how_vvvvwcr,target_vvvvwcr);
|
||||
var how_vvvvwcq = jQuery("#jform_how").val();
|
||||
var target_vvvvwcq = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcq(how_vvvvwcq,target_vvvvwcq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwcr = jQuery("#jform_how").val();
|
||||
var target_vvvvwcr = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcr(how_vvvvwcr,target_vvvvwcr);
|
||||
var how_vvvvwcq = jQuery("#jform_how").val();
|
||||
var target_vvvvwcq = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcq(how_vvvvwcq,target_vvvvwcq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcr function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwcr = jQuery("#jform_how").val();
|
||||
var target_vvvvwcr = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcr(how_vvvvwcr,target_vvvvwcr);
|
||||
var how_vvvvwcr = jQuery("#jform_how").val();
|
||||
vvvvwcr(target_vvvvwcr,how_vvvvwcr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwcr = jQuery("#jform_how").val();
|
||||
var target_vvvvwcr = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcr(how_vvvvwcr,target_vvvvwcr);
|
||||
var how_vvvvwcr = jQuery("#jform_how").val();
|
||||
vvvvwcr(target_vvvvwcr,how_vvvvwcr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcs function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
// #jform_how listeners for how_vvvvwcr function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcs = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcs = jQuery("#jform_how").val();
|
||||
vvvvwcs(target_vvvvwcs,how_vvvvwcs);
|
||||
var target_vvvvwcr = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcr = jQuery("#jform_how").val();
|
||||
vvvvwcr(target_vvvvwcr,how_vvvvwcr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcs = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcs = jQuery("#jform_how").val();
|
||||
vvvvwcs(target_vvvvwcs,how_vvvvwcs);
|
||||
var target_vvvvwcr = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcr = jQuery("#jform_how").val();
|
||||
vvvvwcr(target_vvvvwcr,how_vvvvwcr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwcs function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcs = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcs = jQuery("#jform_how").val();
|
||||
vvvvwcs(target_vvvvwcs,how_vvvvwcs);
|
||||
var target_vvvvwcs = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcs(how_vvvvwcs,target_vvvvwcs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcs = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcs = jQuery("#jform_how").val();
|
||||
vvvvwcs(target_vvvvwcs,how_vvvvwcs);
|
||||
var target_vvvvwcs = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcs(how_vvvvwcs,target_vvvvwcs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwct function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
// #jform_target listeners for target_vvvvwcs function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwct = jQuery("#jform_how").val();
|
||||
var target_vvvvwct = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwct(how_vvvvwct,target_vvvvwct);
|
||||
var how_vvvvwcs = jQuery("#jform_how").val();
|
||||
var target_vvvvwcs = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcs(how_vvvvwcs,target_vvvvwcs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwct = jQuery("#jform_how").val();
|
||||
var target_vvvvwct = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwct(how_vvvvwct,target_vvvvwct);
|
||||
var how_vvvvwcs = jQuery("#jform_how").val();
|
||||
var target_vvvvwcs = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcs(how_vvvvwcs,target_vvvvwcs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwct function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwct = jQuery("#jform_how").val();
|
||||
var target_vvvvwct = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwct(how_vvvvwct,target_vvvvwct);
|
||||
var how_vvvvwct = jQuery("#jform_how").val();
|
||||
vvvvwct(target_vvvvwct,how_vvvvwct);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwct = jQuery("#jform_how").val();
|
||||
var target_vvvvwct = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwct(how_vvvvwct,target_vvvvwct);
|
||||
var how_vvvvwct = jQuery("#jform_how").val();
|
||||
vvvvwct(target_vvvvwct,how_vvvvwct);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcu function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
// #jform_how listeners for how_vvvvwct function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcu = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcu = jQuery("#jform_how").val();
|
||||
vvvvwcu(target_vvvvwcu,how_vvvvwcu);
|
||||
var target_vvvvwct = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwct = jQuery("#jform_how").val();
|
||||
vvvvwct(target_vvvvwct,how_vvvvwct);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcu = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcu = jQuery("#jform_how").val();
|
||||
vvvvwcu(target_vvvvwcu,how_vvvvwcu);
|
||||
var target_vvvvwct = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwct = jQuery("#jform_how").val();
|
||||
vvvvwct(target_vvvvwct,how_vvvvwct);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwcu function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcu = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcu = jQuery("#jform_how").val();
|
||||
vvvvwcu(target_vvvvwcu,how_vvvvwcu);
|
||||
var target_vvvvwcu = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcu(how_vvvvwcu,target_vvvvwcu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcu = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcu = jQuery("#jform_how").val();
|
||||
vvvvwcu(target_vvvvwcu,how_vvvvwcu);
|
||||
var target_vvvvwcu = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcu(how_vvvvwcu,target_vvvvwcu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcu function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwcu = jQuery("#jform_how").val();
|
||||
var target_vvvvwcu = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcu(how_vvvvwcu,target_vvvvwcu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwcu = jQuery("#jform_how").val();
|
||||
var target_vvvvwcu = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcu(how_vvvvwcu,target_vvvvwcu);
|
||||
|
||||
});
|
||||
|
||||
@ -490,48 +456,67 @@ jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcv = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcv = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcv(target_vvvvwcv,type_vvvvwcv);
|
||||
var how_vvvvwcv = jQuery("#jform_how").val();
|
||||
vvvvwcv(target_vvvvwcv,how_vvvvwcv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcv = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcv = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcv(target_vvvvwcv,type_vvvvwcv);
|
||||
var how_vvvvwcv = jQuery("#jform_how").val();
|
||||
vvvvwcv(target_vvvvwcv,how_vvvvwcv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwcv function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
// #jform_how listeners for how_vvvvwcv function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcv = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcv = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcv(target_vvvvwcv,type_vvvvwcv);
|
||||
var how_vvvvwcv = jQuery("#jform_how").val();
|
||||
vvvvwcv(target_vvvvwcv,how_vvvvwcv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcv = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwcv = jQuery("#jform_how").val();
|
||||
vvvvwcv(target_vvvvwcv,how_vvvvwcv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcw function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcw = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcw = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcw(target_vvvvwcw,type_vvvvwcw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcw = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcw = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcw(target_vvvvwcw,type_vvvvwcw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwcw function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcw = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcw = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcw(target_vvvvwcw,type_vvvvwcw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcv = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcv = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcv(target_vvvvwcv,type_vvvvwcv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcx function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcx = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcx(target_vvvvwcx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcx = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcx(target_vvvvwcx);
|
||||
var target_vvvvwcw = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcw = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcw(target_vvvvwcw,type_vvvvwcw);
|
||||
|
||||
});
|
||||
|
||||
@ -550,6 +535,21 @@ jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcz function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcz = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcz(target_vvvvwcz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcz = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcz(target_vvvvwcz);
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
<?php $numberAddconditions = range(0, count( (array) $this->item->addconditions) + 3, 1);?>
|
||||
|
26
admin/views/power/submitbutton.js
Normal file
26
admin/views/power/submitbutton.js
Normal file
@ -0,0 +1,26 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
Joomla.submitbutton = function(task)
|
||||
{
|
||||
if (task == ''){
|
||||
return false;
|
||||
} else {
|
||||
var action = task.split('.');
|
||||
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||
return true;
|
||||
} else {
|
||||
alert(Joomla.JText._('power, some values are not acceptable.','Some values are unacceptable'));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
167
admin/views/power/tmpl/edit.php
Normal file
167
admin/views/power/tmpl/edit.php
Normal file
@ -0,0 +1,167 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
JHtml::_('behavior.formvalidator');
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
JHtml::_('behavior.keepalive');
|
||||
$componentParams = $this->params; // will be removed just use $this->params instead
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
var outerDiv = jQuery('body');
|
||||
jQuery('<div id="loading"></div>')
|
||||
.css("background", "rgba(255, 255, 255, .8) url('components/com_componentbuilder/assets/images/import.gif') 50% 15% no-repeat")
|
||||
.css("top", outerDiv.position().top - jQuery(window).scrollTop())
|
||||
.css("left", outerDiv.position().left - jQuery(window).scrollLeft())
|
||||
.css("width", outerDiv.width())
|
||||
.css("height", outerDiv.height())
|
||||
.css("position", "fixed")
|
||||
.css("opacity", "0.80")
|
||||
.css("-ms-filter", "progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)")
|
||||
.css("filter", "alpha(opacity = 80)")
|
||||
.css("display", "none")
|
||||
.appendTo(outerDiv);
|
||||
jQuery('#loading').show();
|
||||
// when page is ready remove and show
|
||||
jQuery(window).load(function() {
|
||||
jQuery('#componentbuilder_loader').fadeIn('fast');
|
||||
jQuery('#loading').hide();
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo JLayoutHelper::render('power.code_above', $this); ?>
|
||||
<div class="form-horizontal">
|
||||
|
||||
<?php echo JHtml::_('bootstrap.startTabSet', 'powerTab', array('active' => 'code')); ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'powerTab', 'code', JText::_('COM_COMPONENTBUILDER_POWER_CODE', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('power.code_left', $this); ?>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('power.code_right', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span12">
|
||||
<?php echo JLayoutHelper::render('power.code_fullwidth', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php $this->ignore_fieldsets = array('details','metadata','vdmmetadata','accesscontrol'); ?>
|
||||
<?php $this->tab_name = 'powerTab'; ?>
|
||||
<?php echo JLayoutHelper::render('joomla.edit.params', $this); ?>
|
||||
|
||||
<?php if ($this->canDo->get('power.edit.created_by') || $this->canDo->get('power.edit.created') || $this->canDo->get('power.edit.state') || ($this->canDo->get('power.delete') && $this->canDo->get('power.edit.state'))) : ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'powerTab', 'publishing', JText::_('COM_COMPONENTBUILDER_POWER_PUBLISHING', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('power.publishing', $this); ?>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<?php echo JLayoutHelper::render('power.publlshing', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->canDo->get('core.admin')) : ?>
|
||||
<?php echo JHtml::_('bootstrap.addTab', 'powerTab', 'permissions', JText::_('COM_COMPONENTBUILDER_POWER_PERMISSION', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span12">
|
||||
<fieldset class="adminform">
|
||||
<div class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('accesscontrol') as $field): ?>
|
||||
<div>
|
||||
<?php echo $field->label; echo $field->input;?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo JHtml::_('bootstrap.endTab'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo JHtml::_('bootstrap.endTabSet'); ?>
|
||||
|
||||
<div>
|
||||
<input type="hidden" name="task" value="power.edit" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_head listeners for add_head_vvvvvyv function
|
||||
jQuery('#jform_add_head').on('keyup',function()
|
||||
{
|
||||
var add_head_vvvvvyv = jQuery("#jform_add_head input[type='radio']:checked").val();
|
||||
vvvvvyv(add_head_vvvvvyv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_head',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_head_vvvvvyv = jQuery("#jform_add_head input[type='radio']:checked").val();
|
||||
vvvvvyv(add_head_vvvvvyv);
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
jQuery('#adminForm').on('change', '#jform_add_head',function (e)
|
||||
{
|
||||
getClassHeaderCode();
|
||||
});
|
||||
|
||||
<?php
|
||||
$app = JFactory::getApplication();
|
||||
?>
|
||||
function JRouter(link) {
|
||||
<?php
|
||||
if ($app->isClient('site'))
|
||||
{
|
||||
echo 'var url = "'.JURI::root().'";';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'var url = "";';
|
||||
}
|
||||
?>
|
||||
return url+link;
|
||||
}
|
||||
|
||||
// nice little dot trick :)
|
||||
jQuery(document).ready( function($) {
|
||||
var x=0;
|
||||
setInterval(function() {
|
||||
var dots = "";
|
||||
x++;
|
||||
for (var y=0; y < x%8; y++) {
|
||||
dots+=".";
|
||||
}
|
||||
$(".loading-dots").text(dots);
|
||||
} , 500);
|
||||
});
|
||||
</script>
|
1
admin/views/power/tmpl/index.html
Normal file
1
admin/views/power/tmpl/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
258
admin/views/power/view.html.php
Normal file
258
admin/views/power/view.html.php
Normal file
@ -0,0 +1,258 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
|
||||
/**
|
||||
* Power Html View class
|
||||
*/
|
||||
class ComponentbuilderViewPower extends HtmlView
|
||||
{
|
||||
/**
|
||||
* display method of View
|
||||
* @return void
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
{
|
||||
// set params
|
||||
$this->params = JComponentHelper::getParams('com_componentbuilder');
|
||||
// Assign the variables
|
||||
$this->form = $this->get('Form');
|
||||
$this->item = $this->get('Item');
|
||||
$this->script = $this->get('Script');
|
||||
$this->state = $this->get('State');
|
||||
// get action permissions
|
||||
$this->canDo = ComponentbuilderHelper::getActions('power', $this->item);
|
||||
// get input
|
||||
$jinput = JFactory::getApplication()->input;
|
||||
$this->ref = $jinput->get('ref', 0, 'word');
|
||||
$this->refid = $jinput->get('refid', 0, 'int');
|
||||
$return = $jinput->get('return', null, 'base64');
|
||||
// set the referral string
|
||||
$this->referral = '';
|
||||
if ($this->refid && $this->ref)
|
||||
{
|
||||
// return to the item that referred to this item
|
||||
$this->referral = '&ref=' . (string)$this->ref . '&refid=' . (int)$this->refid;
|
||||
}
|
||||
elseif($this->ref)
|
||||
{
|
||||
// return to the list view that referred to this item
|
||||
$this->referral = '&ref=' . (string)$this->ref;
|
||||
}
|
||||
// check return value
|
||||
if (!is_null($return))
|
||||
{
|
||||
// add the return value
|
||||
$this->referral .= '&return=' . (string)$return;
|
||||
}
|
||||
|
||||
// Set the toolbar
|
||||
$this->addToolBar();
|
||||
|
||||
// Check for errors.
|
||||
if (count($errors = $this->get('Errors')))
|
||||
{
|
||||
throw new Exception(implode("\n", $errors), 500);
|
||||
}
|
||||
|
||||
// Display the template
|
||||
parent::display($tpl);
|
||||
|
||||
// Set the document
|
||||
$this->setDocument();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Setting the toolbar
|
||||
*/
|
||||
protected function addToolBar()
|
||||
{
|
||||
JFactory::getApplication()->input->set('hidemainmenu', true);
|
||||
$user = JFactory::getUser();
|
||||
$userId = $user->id;
|
||||
$isNew = $this->item->id == 0;
|
||||
|
||||
JToolbarHelper::title( JText::_($isNew ? 'COM_COMPONENTBUILDER_POWER_NEW' : 'COM_COMPONENTBUILDER_POWER_EDIT'), 'pencil-2 article-add');
|
||||
// Built the actions for new and existing records.
|
||||
if (ComponentbuilderHelper::checkString($this->referral))
|
||||
{
|
||||
if ($this->canDo->get('power.create') && $isNew)
|
||||
{
|
||||
// We can create the record.
|
||||
JToolBarHelper::save('power.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
elseif ($this->canDo->get('power.edit'))
|
||||
{
|
||||
// We can save the record.
|
||||
JToolBarHelper::save('power.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
if ($isNew)
|
||||
{
|
||||
// Do not creat but cancel.
|
||||
JToolBarHelper::cancel('power.cancel', 'JTOOLBAR_CANCEL');
|
||||
}
|
||||
else
|
||||
{
|
||||
// We can close it.
|
||||
JToolBarHelper::cancel('power.cancel', 'JTOOLBAR_CLOSE');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($isNew)
|
||||
{
|
||||
// For new records, check the create permission.
|
||||
if ($this->canDo->get('power.create'))
|
||||
{
|
||||
JToolBarHelper::apply('power.apply', 'JTOOLBAR_APPLY');
|
||||
JToolBarHelper::save('power.save', 'JTOOLBAR_SAVE');
|
||||
JToolBarHelper::custom('power.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
|
||||
};
|
||||
JToolBarHelper::cancel('power.cancel', 'JTOOLBAR_CANCEL');
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($this->canDo->get('power.edit'))
|
||||
{
|
||||
// We can save the new record
|
||||
JToolBarHelper::apply('power.apply', 'JTOOLBAR_APPLY');
|
||||
JToolBarHelper::save('power.save', 'JTOOLBAR_SAVE');
|
||||
// We can save this record, but check the create permission to see
|
||||
// if we can return to make a new one.
|
||||
if ($this->canDo->get('power.create'))
|
||||
{
|
||||
JToolBarHelper::custom('power.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
|
||||
}
|
||||
}
|
||||
$canVersion = ($this->canDo->get('core.version') && $this->canDo->get('power.version'));
|
||||
if ($this->state->params->get('save_history', 1) && $this->canDo->get('power.edit') && $canVersion)
|
||||
{
|
||||
JToolbarHelper::versions('com_componentbuilder.power', $this->item->id);
|
||||
}
|
||||
if ($this->canDo->get('power.create'))
|
||||
{
|
||||
JToolBarHelper::custom('power.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false);
|
||||
}
|
||||
JToolBarHelper::cancel('power.cancel', 'JTOOLBAR_CLOSE');
|
||||
}
|
||||
}
|
||||
JToolbarHelper::divider();
|
||||
// set help url for this view if found
|
||||
$this->help_url = ComponentbuilderHelper::getHelpUrl('power');
|
||||
if (ComponentbuilderHelper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Escapes a value for output in a view script.
|
||||
*
|
||||
* @param mixed $var The output to escape.
|
||||
*
|
||||
* @return mixed The escaped value.
|
||||
*/
|
||||
public function escape($var)
|
||||
{
|
||||
if(strlen($var) > 30)
|
||||
{
|
||||
// use the helper htmlEscape method instead and shorten the string
|
||||
return ComponentbuilderHelper::htmlEscape($var, $this->_charset, true, 30);
|
||||
}
|
||||
// use the helper htmlEscape method instead.
|
||||
return ComponentbuilderHelper::htmlEscape($var, $this->_charset);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to set up the document properties
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function setDocument()
|
||||
{
|
||||
$isNew = ($this->item->id < 1);
|
||||
if (!isset($this->document))
|
||||
{
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_($isNew ? 'COM_COMPONENTBUILDER_POWER_NEW' : 'COM_COMPONENTBUILDER_POWER_EDIT'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/power.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
// Add Ajax Token
|
||||
$this->document->addScriptDeclaration("var token = '".JSession::getFormToken()."';");
|
||||
$this->document->addScript(JURI::root() . $this->script, (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
$this->document->addScript(JURI::root() . "administrator/components/com_componentbuilder/views/power/submitbutton.js", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
|
||||
|
||||
// add the Uikit v2 style sheets
|
||||
$this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/uikit.gradient.min.css' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
// add Uikit v2 JavaScripts
|
||||
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/uikit.min.js' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript');
|
||||
|
||||
// add the Uikit v2 extra style sheets
|
||||
$this->document->addStyleSheet( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/css/components/notify.gradient.min.css' , (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
// add Uikit v2 extra JavaScripts
|
||||
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/lightbox.min.js', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true);
|
||||
$this->document->addScript( JURI::root(true) .'/media/com_componentbuilder/uikit-v2/js/components/notify.min.js', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/javascript', (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('type' => 'text/javascript', 'async' => 'async') : true);
|
||||
// Add the JavaScript for JStore
|
||||
$this->document->addScript(JURI::root() .'media/com_componentbuilder/js/jquery.json.min.js');
|
||||
$this->document->addScript(JURI::root() .'media/com_componentbuilder/js/jstorage.min.js');
|
||||
$this->document->addScript(JURI::root() .'media/com_componentbuilder/js/strtotime.js');
|
||||
// add var key
|
||||
$this->document->addScriptDeclaration("var vastDevMod = '" . $this->get('VDM') . "';");
|
||||
// add return_here
|
||||
$this->document->addScriptDeclaration("var return_here = '" . urlencode(base64_encode((string) JUri::getInstance())) . "';");
|
||||
// set some lang
|
||||
JText::script('COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER');
|
||||
JText::script('COM_COMPONENTBUILDER_TYPE_OR_SELECT_SOME_OPTIONS');
|
||||
JText::script('COM_COMPONENTBUILDER_NO_RESULTS_MATCH');
|
||||
JText::script('COM_COMPONENTBUILDER_SELECT_A_PROPERTY');
|
||||
JText::script('COM_COMPONENTBUILDER_NO_DESCRIPTION_FOUND');
|
||||
// check if we should use browser storage
|
||||
$setBrowserStorage = $this->params->get('set_browser_storage', null);
|
||||
if ($setBrowserStorage)
|
||||
{
|
||||
// check what (Time To Live) show we use
|
||||
$storageTimeToLive = $this->params->get('storage_time_to_live', 'global');
|
||||
if ('global' == $storageTimeToLive)
|
||||
{
|
||||
// use the global session time
|
||||
$session = JFactory::getSession();
|
||||
// must have itin milliseconds
|
||||
$expire = ($session->getExpire()*60)* 1000;
|
||||
}
|
||||
else
|
||||
{
|
||||
// use the Componentbuilder Global setting
|
||||
if (0 != $storageTimeToLive)
|
||||
{
|
||||
// this will convert the time into milliseconds
|
||||
$storageTimeToLive = $storageTimeToLive * 1000;
|
||||
}
|
||||
$expire = $storageTimeToLive;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// set to use no storage
|
||||
$expire = 30000; // only 30 seconds
|
||||
}
|
||||
// Set the Time To Live To JavaScript
|
||||
$this->document->addScriptDeclaration("var expire = ". (int) $expire.";");
|
||||
$this->document->addScriptDeclaration("selectionArray = {'property':{},'method':{}};");
|
||||
JText::script('view not acceptable. Error');
|
||||
}
|
||||
}
|
1
admin/views/powers/index.html
Normal file
1
admin/views/powers/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
92
admin/views/powers/tmpl/default.php
Normal file
92
admin/views/powers/tmpl/default.php
Normal file
@ -0,0 +1,92 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
JHtml::_('behavior.multiselect');
|
||||
JHtml::_('dropdown.init');
|
||||
JHtml::_('formbehavior.chosen', '.multiplePowersfiltertype', null, array('placeholder_text_multiple' => '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_TYPE_OF_POWER') . ' -'));
|
||||
JHtml::_('formbehavior.chosen', '.multipleAccessLevels', null, array('placeholder_text_multiple' => '- ' . JText::_('COM_COMPONENTBUILDER_FILTER_SELECT_ACCESS') . ' -'));
|
||||
JHtml::_('formbehavior.chosen', 'select');
|
||||
if ($this->saveOrder)
|
||||
{
|
||||
$saveOrderingUrl = 'index.php?option=com_componentbuilder&task=powers.saveOrderAjax&tmpl=component';
|
||||
JHtml::_('sortablelist.sortable', 'powerList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl);
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_componentbuilder&view=powers'); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<?php if(!empty( $this->sidebar)): ?>
|
||||
<div id="j-sidebar-container" class="span2">
|
||||
<?php echo $this->sidebar; ?>
|
||||
</div>
|
||||
<div id="j-main-container" class="span10">
|
||||
<?php else : ?>
|
||||
<div id="j-main-container">
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
// Add the trash helper layout
|
||||
echo JLayoutHelper::render('trashhelper', $this);
|
||||
// Add the searchtools
|
||||
echo JLayoutHelper::render('joomla.searchtools.default', array('view' => $this));
|
||||
?>
|
||||
<?php if (empty($this->items)): ?>
|
||||
<div class="alert alert-no-items">
|
||||
<?php echo JText::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<table class="table table-striped" id="powerList">
|
||||
<thead><?php echo $this->loadTemplate('head');?></thead>
|
||||
<tfoot><?php echo $this->loadTemplate('foot');?></tfoot>
|
||||
<tbody><?php echo $this->loadTemplate('body');?></tbody>
|
||||
</table>
|
||||
<?php // Load the batch processing form. ?>
|
||||
<?php if ($this->canCreate && $this->canEdit) : ?>
|
||||
<?php echo JHtml::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
array(
|
||||
'title' => JText::_('COM_COMPONENTBUILDER_POWERS_BATCH_OPTIONS'),
|
||||
'footer' => $this->loadTemplate('batch_footer')
|
||||
),
|
||||
$this->loadTemplate('batch_body')
|
||||
); ?>
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="boxchecked" value="0" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo JHtml::_('form.token'); ?>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
// powers footer script
|
||||
|
||||
// waiting spinner
|
||||
var outerDiv = jQuery('body');
|
||||
jQuery('<div id="loading"></div>')
|
||||
.css("background", "rgba(255, 255, 255, .8) url('components/com_componentbuilder/assets/images/import.gif') 50% 15% no-repeat")
|
||||
.css("top", outerDiv.position().top - jQuery(window).scrollTop())
|
||||
.css("left", outerDiv.position().left - jQuery(window).scrollLeft())
|
||||
.css("width", outerDiv.width())
|
||||
.css("height", outerDiv.height())
|
||||
.css("position", "fixed")
|
||||
.css("opacity", "0.80")
|
||||
.css("-ms-filter", "progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)")
|
||||
.css("filter", "alpha(opacity = 80)")
|
||||
.css("display", "none")
|
||||
.appendTo(outerDiv);
|
||||
// when the build button is clicked
|
||||
jQuery('#toolbar').on('click',"button.button-joomla", function(e){
|
||||
jQuery('#loading').show();
|
||||
});
|
||||
|
||||
</script>
|
@ -14,4 +14,6 @@
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
?>
|
||||
<?php echo $this->github->openissues; ?>
|
||||
|
||||
<p><?php echo JText::_('COM_COMPONENTBUILDER_POWERS_BATCH_TIP'); ?></p>
|
||||
<?php echo $this->batchDisplay; ?>
|
24
admin/views/powers/tmpl/default_batch_footer.php
Normal file
24
admin/views/powers/tmpl/default_batch_footer.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
?>
|
||||
<!-- clear the batch values if cancel -->
|
||||
<button class="btn" type="button" onclick="" data-dismiss="modal">
|
||||
<?php echo JText::_('JCANCEL'); ?>
|
||||
</button>
|
||||
<!-- post the batch values if process -->
|
||||
<button class="btn btn-success" type="submit" onclick="Joomla.submitbutton('power.batch');">
|
||||
<?php echo JText::_('JGLOBAL_BATCH_PROCESS'); ?>
|
||||
</button>
|
109
admin/views/powers/tmpl/default_body.php
Normal file
109
admin/views/powers/tmpl/default_body.php
Normal file
@ -0,0 +1,109 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
$edit = "index.php?option=com_componentbuilder&view=powers&task=power.edit";
|
||||
|
||||
?>
|
||||
<?php foreach ($this->items as $i => $item): ?>
|
||||
<?php
|
||||
$canCheckin = $this->user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0;
|
||||
$userChkOut = JFactory::getUser($item->checked_out);
|
||||
$canDo = ComponentbuilderHelper::getActions('power',$item,'powers');
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('power.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
{
|
||||
$iconClass = ' inactive tip-top" hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED');
|
||||
}
|
||||
?>
|
||||
<span class="sortable-handler<?php echo $iconClass; ?>">
|
||||
<i class="icon-menu"></i>
|
||||
</span>
|
||||
<?php if ($this->saveOrder) : ?>
|
||||
<input type="text" style="display:none" name="order[]" size="5"
|
||||
value="<?php echo $item->ordering; ?>" class="width-20 text-area-order " />
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
⋮
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('power.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo JHtml::_('grid.id', $i, $item->id); ?>
|
||||
<?php else: ?>
|
||||
□
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo JHtml::_('grid.id', $i, $item->id); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
□
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div>
|
||||
<?php if ($canDo->get('power.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'powers.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->system_name); ?>
|
||||
<?php endif; ?><br /><small>GUID:
|
||||
<?php echo $this->escape($item->guid); ?></small>
|
||||
</div>
|
||||
</td>
|
||||
<td class="hidden-phone">
|
||||
<?php echo $this->escape($item->namespace); ?>
|
||||
</td>
|
||||
<td class="hidden-phone">
|
||||
<div><?php echo JText::_('COM_COMPONENTBUILDER_TYPE'); ?>:
|
||||
<?php echo JText::_($item->type); ?><?php if (ComponentbuilderHelper::validGUID($item->extends)) : ?><br /><?php echo JText::_('COM_COMPONENTBUILDER_EXTENDS'); ?>:
|
||||
<?php if ($this->user->authorise('power.edit', 'com_componentbuilder.power.' . (int) $item->extends_id)): ?>
|
||||
<a href="index.php?option=com_componentbuilder&view=powers&task=power.edit&id=<?php echo $item->extends_id; ?>&return=<?php echo $this->return_here; ?>"><?php echo $this->escape($item->extends_name); ?></a>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->extends_name); ?>
|
||||
<?php endif; ?><?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="hidden-phone">
|
||||
<?php echo $this->escape($item->power_version); ?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('power.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo JHtml::_('jgrid.published', $item->published, $i, 'powers.', true, 'cb'); ?>
|
||||
<?php else: ?>
|
||||
<?php echo JHtml::_('jgrid.published', $item->published, $i, 'powers.', false, 'cb'); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo JHtml::_('jgrid.published', $item->published, $i, 'powers.', true, 'cb'); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo JHtml::_('jgrid.published', $item->published, $i, 'powers.', false, 'cb'); ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center hidden-phone">
|
||||
<?php echo $item->id; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
@ -14,4 +14,6 @@
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
?>
|
||||
<?php echo $this->github->closedissues; ?>
|
||||
<tr>
|
||||
<td colspan="8"><?php echo $this->pagination->getListFooter(); ?></td>
|
||||
</tr>
|
57
admin/views/powers/tmpl/default_head.php
Normal file
57
admin/views/powers/tmpl/default_head.php
Normal file
@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo JHtml::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
<th width="20" class="nowrap center">
|
||||
<?php echo JHtml::_('grid.checkall'); ?>
|
||||
</th>
|
||||
<?php else: ?>
|
||||
<th width="20" class="nowrap center hidden-phone">
|
||||
▾
|
||||
</th>
|
||||
<th width="20" class="nowrap center">
|
||||
■
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<th class="nowrap" >
|
||||
<?php echo JHtml::_('searchtools.sort', 'COM_COMPONENTBUILDER_POWERS_NAME', 'a.system_name', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap hidden-phone" >
|
||||
<?php echo JHtml::_('searchtools.sort', 'COM_COMPONENTBUILDER_POWER_NAMESPACE_LABEL', 'a.namespace', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap hidden-phone" >
|
||||
<?php echo JHtml::_('searchtools.sort', 'COM_COMPONENTBUILDER_POWERS_DETAILS', 'a.type', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap hidden-phone" >
|
||||
<?php echo JHtml::_('searchtools.sort', 'COM_COMPONENTBUILDER_POWER_POWER_VERSION_LABEL', 'a.power_version', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<?php if ($this->canState): ?>
|
||||
<th width="10" class="nowrap center" >
|
||||
<?php echo JHtml::_('searchtools.sort', 'COM_COMPONENTBUILDER_POWER_STATUS', 'a.published', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<?php else: ?>
|
||||
<th width="10" class="nowrap center" >
|
||||
<?php echo JText::_('COM_COMPONENTBUILDER_POWER_STATUS'); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<th width="5" class="nowrap center hidden-phone" >
|
||||
<?php echo JHtml::_('searchtools.sort', 'COM_COMPONENTBUILDER_POWER_ID', 'a.id', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
</tr>
|
46
admin/views/powers/tmpl/default_toolbar.php
Normal file
46
admin/views/powers/tmpl/default_toolbar.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
?>
|
||||
<div id="filter-bar" class="btn-toolbar">
|
||||
<div class="filter-search btn-group pull-left">
|
||||
<label for="filter_search" class="element-invisible"><?php echo JText::_('Search');?></label>
|
||||
<input type="text" name="filter_search" id="filter_search" placeholder="<?php echo JText::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" class="hasTooltip" title="<?php echo JHtml::tooltipText('Search Powers'); ?>" />
|
||||
</div>
|
||||
<div class="btn-group pull-left">
|
||||
<button type="submit" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><i class="icon-search"></i></button>
|
||||
<button type="button" class="btn hasTooltip" title="<?php echo JHtml::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.id('filter_search').value='';this.form.submit();"><i class="icon-remove"></i></button>
|
||||
</div>
|
||||
<div class="btn-group pull-right hidden-phone">
|
||||
<label for="limit" class="element-invisible"><?php echo JText::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<div class="btn-group pull-right hidden-phone">
|
||||
<label for="directionTable" class="element-invisible"><?php echo JText::_('JFIELD_ORDERING_DESC');?></label>
|
||||
<select name="directionTable" id="directionTable" class="input-medium" onchange="Joomla.orderTable()">
|
||||
<option value=""><?php echo JText::_('JFIELD_ORDERING_DESC');?></option>
|
||||
<option value="asc" <?php if ($this->listDirn == 'asc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_ASCENDING');?></option>
|
||||
<option value="desc" <?php if ($this->listDirn == 'desc') echo 'selected="selected"'; ?>><?php echo JText::_('JGLOBAL_ORDER_DESCENDING');?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="btn-group pull-right">
|
||||
<label for="sortTable" class="element-invisible"><?php echo JText::_('JGLOBAL_SORT_BY');?></label>
|
||||
<select name="sortTable" id="sortTable" class="input-medium" onchange="Joomla.orderTable()">
|
||||
<option value=""><?php echo JText::_('JGLOBAL_SORT_BY');?></option>
|
||||
<?php echo JHtml::_('select.options', $this->getSortFields(), 'value', 'text', $this->listOrder);?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"> </div>
|
1
admin/views/powers/tmpl/index.html
Normal file
1
admin/views/powers/tmpl/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
290
admin/views/powers/view.html.php
Normal file
290
admin/views/powers/view.html.php
Normal file
@ -0,0 +1,290 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 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');
|
||||
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
|
||||
/**
|
||||
* Componentbuilder Html View class for the Powers
|
||||
*/
|
||||
class ComponentbuilderViewPowers extends HtmlView
|
||||
{
|
||||
/**
|
||||
* Powers view display method
|
||||
* @return void
|
||||
*/
|
||||
function display($tpl = null)
|
||||
{
|
||||
if ($this->getLayout() !== 'modal')
|
||||
{
|
||||
// Include helper submenu
|
||||
ComponentbuilderHelper::addSubmenu('powers');
|
||||
}
|
||||
|
||||
// Assign data to the view
|
||||
$this->items = $this->get('Items');
|
||||
$this->pagination = $this->get('Pagination');
|
||||
$this->state = $this->get('State');
|
||||
$this->user = JFactory::getUser();
|
||||
// Load the filter form from xml.
|
||||
$this->filterForm = $this->get('FilterForm');
|
||||
// Load the active filters.
|
||||
$this->activeFilters = $this->get('ActiveFilters');
|
||||
// Add the list ordering clause.
|
||||
$this->listOrder = $this->escape($this->state->get('list.ordering', 'a.id'));
|
||||
$this->listDirn = $this->escape($this->state->get('list.direction', 'desc'));
|
||||
$this->saveOrder = $this->listOrder == 'a.ordering';
|
||||
// set the return here value
|
||||
$this->return_here = urlencode(base64_encode((string) JUri::getInstance()));
|
||||
// get global action permissions
|
||||
$this->canDo = ComponentbuilderHelper::getActions('power');
|
||||
$this->canEdit = $this->canDo->get('power.edit');
|
||||
$this->canState = $this->canDo->get('power.edit.state');
|
||||
$this->canCreate = $this->canDo->get('power.create');
|
||||
$this->canDelete = $this->canDo->get('power.delete');
|
||||
$this->canBatch = $this->canDo->get('core.batch');
|
||||
|
||||
// We don't need toolbar in the modal window.
|
||||
if ($this->getLayout() !== 'modal')
|
||||
{
|
||||
$this->addToolbar();
|
||||
$this->sidebar = JHtmlSidebar::render();
|
||||
// load the batch html
|
||||
if ($this->canCreate && $this->canEdit && $this->canState)
|
||||
{
|
||||
$this->batchDisplay = JHtmlBatch_::render();
|
||||
}
|
||||
}
|
||||
|
||||
// Check for errors.
|
||||
if (count($errors = $this->get('Errors')))
|
||||
{
|
||||
throw new Exception(implode("\n", $errors), 500);
|
||||
}
|
||||
|
||||
// Display the template
|
||||
parent::display($tpl);
|
||||
|
||||
// Set the document
|
||||
$this->setDocument();
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting the toolbar
|
||||
*/
|
||||
protected function addToolBar()
|
||||
{
|
||||
JToolBarHelper::title(JText::_('COM_COMPONENTBUILDER_POWERS'), 'flash');
|
||||
JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=powers');
|
||||
JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');
|
||||
|
||||
if ($this->canCreate)
|
||||
{
|
||||
JToolBarHelper::addNew('power.add');
|
||||
}
|
||||
|
||||
// Only load if there are items
|
||||
if (ComponentbuilderHelper::checkArray($this->items))
|
||||
{
|
||||
if ($this->canEdit)
|
||||
{
|
||||
JToolBarHelper::editList('power.edit');
|
||||
}
|
||||
|
||||
if ($this->canState)
|
||||
{
|
||||
JToolBarHelper::publishList('powers.publish');
|
||||
JToolBarHelper::unpublishList('powers.unpublish');
|
||||
JToolBarHelper::archiveList('powers.archive');
|
||||
|
||||
if ($this->canDo->get('core.admin'))
|
||||
{
|
||||
JToolBarHelper::checkin('powers.checkin');
|
||||
}
|
||||
}
|
||||
|
||||
// Add a batch button
|
||||
if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState)
|
||||
{
|
||||
// Get the toolbar object instance
|
||||
$bar = JToolBar::getInstance('toolbar');
|
||||
// set the batch button name
|
||||
$title = JText::_('JTOOLBAR_BATCH');
|
||||
// Instantiate a new JLayoutFile instance and render the batch button
|
||||
$layout = new JLayoutFile('joomla.toolbar.batch');
|
||||
// add the button to the page
|
||||
$dhtml = $layout->render(array('title' => $title));
|
||||
$bar->appendButton('Custom', $dhtml, 'batch');
|
||||
}
|
||||
|
||||
if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete))
|
||||
{
|
||||
JToolbarHelper::deleteList('', 'powers.delete', 'JTOOLBAR_EMPTY_TRASH');
|
||||
}
|
||||
elseif ($this->canState && $this->canDelete)
|
||||
{
|
||||
JToolbarHelper::trash('powers.trash');
|
||||
}
|
||||
}
|
||||
if ($this->user->authorise('power.run_expansion', 'com_componentbuilder'))
|
||||
{
|
||||
// add Run Expansion button.
|
||||
JToolBarHelper::custom('powers.runExpansion', 'expand-2 custom-button-runexpansion', '', 'COM_COMPONENTBUILDER_RUN_EXPANSION', false);
|
||||
}
|
||||
|
||||
// set help url for this view if found
|
||||
$this->help_url = ComponentbuilderHelper::getHelpUrl('powers');
|
||||
if (ComponentbuilderHelper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
|
||||
// add the options comp button
|
||||
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
|
||||
{
|
||||
JToolBarHelper::preferences('com_componentbuilder');
|
||||
}
|
||||
|
||||
// Only load published batch if state and batch is allowed
|
||||
if ($this->canState && $this->canBatch)
|
||||
{
|
||||
JHtmlBatch_::addListSelection(
|
||||
JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_STATE'),
|
||||
'batch[published]',
|
||||
JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true)
|
||||
);
|
||||
}
|
||||
|
||||
// Only load access batch if create, edit and batch is allowed
|
||||
if ($this->canBatch && $this->canCreate && $this->canEdit)
|
||||
{
|
||||
JHtmlBatch_::addListSelection(
|
||||
JText::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS'),
|
||||
'batch[access]',
|
||||
JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text')
|
||||
);
|
||||
}
|
||||
|
||||
// Only load Type batch if create, edit, and batch is allowed
|
||||
if ($this->canBatch && $this->canCreate && $this->canEdit)
|
||||
{
|
||||
// Set Type Selection
|
||||
$this->typeOptions = JFormHelper::loadFieldType('powersfiltertype')->options;
|
||||
// We do some sanitation for Type filter
|
||||
if (ComponentbuilderHelper::checkArray($this->typeOptions) &&
|
||||
isset($this->typeOptions[0]->value) &&
|
||||
!ComponentbuilderHelper::checkString($this->typeOptions[0]->value))
|
||||
{
|
||||
unset($this->typeOptions[0]);
|
||||
}
|
||||
// Type Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_POWER_TYPE_LABEL').' -',
|
||||
'batch[type]',
|
||||
JHtml::_('select.options', $this->typeOptions, 'value', 'text')
|
||||
);
|
||||
}
|
||||
|
||||
// Only load Power Version batch if create, edit, and batch is allowed
|
||||
if ($this->canBatch && $this->canCreate && $this->canEdit)
|
||||
{
|
||||
// Set Power Version Selection
|
||||
$this->power_versionOptions = JFormHelper::loadFieldType('powersfilterpowerversion')->options;
|
||||
// We do some sanitation for Power Version filter
|
||||
if (ComponentbuilderHelper::checkArray($this->power_versionOptions) &&
|
||||
isset($this->power_versionOptions[0]->value) &&
|
||||
!ComponentbuilderHelper::checkString($this->power_versionOptions[0]->value))
|
||||
{
|
||||
unset($this->power_versionOptions[0]);
|
||||
}
|
||||
// Power Version Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_POWER_POWER_VERSION_LABEL').' -',
|
||||
'batch[power_version]',
|
||||
JHtml::_('select.options', $this->power_versionOptions, 'value', 'text')
|
||||
);
|
||||
}
|
||||
|
||||
// Only load Extends Name batch if create, edit, and batch is allowed
|
||||
if ($this->canBatch && $this->canCreate && $this->canEdit)
|
||||
{
|
||||
// Set Extends Name Selection
|
||||
$this->extendsNameOptions = JFormHelper::loadFieldType('Classpowers')->options;
|
||||
// We do some sanitation for Extends Name filter
|
||||
if (ComponentbuilderHelper::checkArray($this->extendsNameOptions) &&
|
||||
isset($this->extendsNameOptions[0]->value) &&
|
||||
!ComponentbuilderHelper::checkString($this->extendsNameOptions[0]->value))
|
||||
{
|
||||
unset($this->extendsNameOptions[0]);
|
||||
}
|
||||
// Extends Name Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.JText::_('COM_COMPONENTBUILDER_POWER_EXTENDS_LABEL').' -',
|
||||
'batch[extends]',
|
||||
JHtml::_('select.options', $this->extendsNameOptions, 'value', 'text')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to set up the document properties
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function setDocument()
|
||||
{
|
||||
if (!isset($this->document))
|
||||
{
|
||||
$this->document = JFactory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(JText::_('COM_COMPONENTBUILDER_POWERS'));
|
||||
$this->document->addStyleSheet(JURI::root() . "administrator/components/com_componentbuilder/assets/css/powers.css", (ComponentbuilderHelper::jVersion()->isCompatible('3.8.0')) ? array('version' => 'auto') : 'text/css');
|
||||
}
|
||||
|
||||
/**
|
||||
* Escapes a value for output in a view script.
|
||||
*
|
||||
* @param mixed $var The output to escape.
|
||||
*
|
||||
* @return mixed The escaped value.
|
||||
*/
|
||||
public function escape($var)
|
||||
{
|
||||
if(strlen($var) > 50)
|
||||
{
|
||||
// use the helper htmlEscape method instead and shorten the string
|
||||
return ComponentbuilderHelper::htmlEscape($var, $this->_charset, true);
|
||||
}
|
||||
// use the helper htmlEscape method instead.
|
||||
return ComponentbuilderHelper::htmlEscape($var, $this->_charset);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of fields the table can be sorted by
|
||||
*
|
||||
* @return array Array containing the field name to sort by as the key and display text as value
|
||||
*/
|
||||
protected function getSortFields()
|
||||
{
|
||||
return array(
|
||||
'a.ordering' => JText::_('JGRID_HEADING_ORDERING'),
|
||||
'a.published' => JText::_('JSTATUS'),
|
||||
'a.system_name' => JText::_('COM_COMPONENTBUILDER_POWER_SYSTEM_NAME_LABEL'),
|
||||
'a.namespace' => JText::_('COM_COMPONENTBUILDER_POWER_NAMESPACE_LABEL'),
|
||||
'a.type' => JText::_('COM_COMPONENTBUILDER_POWER_TYPE_LABEL'),
|
||||
'a.power_version' => JText::_('COM_COMPONENTBUILDER_POWER_POWER_VERSION_LABEL'),
|
||||
'a.id' => JText::_('JGRID_HEADING_ID')
|
||||
);
|
||||
}
|
||||
}
|
@ -125,21 +125,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwdy function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwdy = jQuery("#jform_protocol").val();
|
||||
vvvvwdy(protocol_vvvvwdy);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwdy = jQuery("#jform_protocol").val();
|
||||
vvvvwdy(protocol_vvvvwdy);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwdz function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
@ -159,135 +144,150 @@ jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwea = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwea = jQuery("#jform_authentication").val();
|
||||
vvvvwea(protocol_vvvvwea,authentication_vvvvwea);
|
||||
vvvvwea(protocol_vvvvwea);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwea = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwea = jQuery("#jform_authentication").val();
|
||||
vvvvwea(protocol_vvvvwea,authentication_vvvvwea);
|
||||
vvvvwea(protocol_vvvvwea);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwea function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwea = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwea = jQuery("#jform_authentication").val();
|
||||
vvvvwea(protocol_vvvvwea,authentication_vvvvwea);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwea = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwea = jQuery("#jform_authentication").val();
|
||||
vvvvwea(protocol_vvvvwea,authentication_vvvvwea);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwec function
|
||||
// #jform_protocol listeners for protocol_vvvvweb function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwec = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwec = jQuery("#jform_authentication").val();
|
||||
vvvvwec(protocol_vvvvwec,authentication_vvvvwec);
|
||||
var protocol_vvvvweb = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweb = jQuery("#jform_authentication").val();
|
||||
vvvvweb(protocol_vvvvweb,authentication_vvvvweb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwec = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwec = jQuery("#jform_authentication").val();
|
||||
vvvvwec(protocol_vvvvwec,authentication_vvvvwec);
|
||||
var protocol_vvvvweb = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweb = jQuery("#jform_authentication").val();
|
||||
vvvvweb(protocol_vvvvweb,authentication_vvvvweb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwec function
|
||||
// #jform_authentication listeners for authentication_vvvvweb function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwec = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwec = jQuery("#jform_authentication").val();
|
||||
vvvvwec(protocol_vvvvwec,authentication_vvvvwec);
|
||||
var protocol_vvvvweb = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweb = jQuery("#jform_authentication").val();
|
||||
vvvvweb(protocol_vvvvweb,authentication_vvvvweb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwec = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwec = jQuery("#jform_authentication").val();
|
||||
vvvvwec(protocol_vvvvwec,authentication_vvvvwec);
|
||||
var protocol_vvvvweb = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweb = jQuery("#jform_authentication").val();
|
||||
vvvvweb(protocol_vvvvweb,authentication_vvvvweb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwee function
|
||||
// #jform_protocol listeners for protocol_vvvvwed function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwee = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwee = jQuery("#jform_authentication").val();
|
||||
vvvvwee(protocol_vvvvwee,authentication_vvvvwee);
|
||||
var protocol_vvvvwed = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwed = jQuery("#jform_authentication").val();
|
||||
vvvvwed(protocol_vvvvwed,authentication_vvvvwed);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwee = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwee = jQuery("#jform_authentication").val();
|
||||
vvvvwee(protocol_vvvvwee,authentication_vvvvwee);
|
||||
var protocol_vvvvwed = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwed = jQuery("#jform_authentication").val();
|
||||
vvvvwed(protocol_vvvvwed,authentication_vvvvwed);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwee function
|
||||
// #jform_authentication listeners for authentication_vvvvwed function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwee = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwee = jQuery("#jform_authentication").val();
|
||||
vvvvwee(protocol_vvvvwee,authentication_vvvvwee);
|
||||
var protocol_vvvvwed = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwed = jQuery("#jform_authentication").val();
|
||||
vvvvwed(protocol_vvvvwed,authentication_vvvvwed);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwee = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwee = jQuery("#jform_authentication").val();
|
||||
vvvvwee(protocol_vvvvwee,authentication_vvvvwee);
|
||||
var protocol_vvvvwed = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwed = jQuery("#jform_authentication").val();
|
||||
vvvvwed(protocol_vvvvwed,authentication_vvvvwed);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvweg function
|
||||
// #jform_protocol listeners for protocol_vvvvwef function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvweg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweg = jQuery("#jform_authentication").val();
|
||||
vvvvweg(protocol_vvvvweg,authentication_vvvvweg);
|
||||
var protocol_vvvvwef = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwef = jQuery("#jform_authentication").val();
|
||||
vvvvwef(protocol_vvvvwef,authentication_vvvvwef);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvweg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweg = jQuery("#jform_authentication").val();
|
||||
vvvvweg(protocol_vvvvweg,authentication_vvvvweg);
|
||||
var protocol_vvvvwef = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwef = jQuery("#jform_authentication").val();
|
||||
vvvvwef(protocol_vvvvwef,authentication_vvvvwef);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvweg function
|
||||
// #jform_authentication listeners for authentication_vvvvwef function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvweg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweg = jQuery("#jform_authentication").val();
|
||||
vvvvweg(protocol_vvvvweg,authentication_vvvvweg);
|
||||
var protocol_vvvvwef = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwef = jQuery("#jform_authentication").val();
|
||||
vvvvwef(protocol_vvvvwef,authentication_vvvvwef);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvweg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweg = jQuery("#jform_authentication").val();
|
||||
vvvvweg(protocol_vvvvweg,authentication_vvvvweg);
|
||||
var protocol_vvvvwef = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwef = jQuery("#jform_authentication").val();
|
||||
vvvvwef(protocol_vvvvwef,authentication_vvvvwef);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvweh function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvweh = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweh = jQuery("#jform_authentication").val();
|
||||
vvvvweh(protocol_vvvvweh,authentication_vvvvweh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvweh = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweh = jQuery("#jform_authentication").val();
|
||||
vvvvweh(protocol_vvvvweh,authentication_vvvvweh);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvweh function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvweh = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweh = jQuery("#jform_authentication").val();
|
||||
vvvvweh(protocol_vvvvweh,authentication_vvvvweh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvweh = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvweh = jQuery("#jform_authentication").val();
|
||||
vvvvweh(protocol_vvvvweh,authentication_vvvvweh);
|
||||
|
||||
});
|
||||
|
||||
|
@ -166,168 +166,168 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvwan function
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvwao function
|
||||
jQuery('#jform_add_php_view').on('keyup',function()
|
||||
{
|
||||
var add_php_view_vvvvwan = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwan(add_php_view_vvvvwan);
|
||||
var add_php_view_vvvvwao = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwao(add_php_view_vvvvwao);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_view_vvvvwan = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwan(add_php_view_vvvvwan);
|
||||
var add_php_view_vvvvwao = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwao(add_php_view_vvvvwao);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_jview_display listeners for add_php_jview_display_vvvvwao function
|
||||
// #jform_add_php_jview_display listeners for add_php_jview_display_vvvvwap function
|
||||
jQuery('#jform_add_php_jview_display').on('keyup',function()
|
||||
{
|
||||
var add_php_jview_display_vvvvwao = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvwao(add_php_jview_display_vvvvwao);
|
||||
var add_php_jview_display_vvvvwap = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvwap(add_php_jview_display_vvvvwap);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_jview_display',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_jview_display_vvvvwao = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvwao(add_php_jview_display_vvvvwao);
|
||||
var add_php_jview_display_vvvvwap = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvwap(add_php_jview_display_vvvvwap);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_jview listeners for add_php_jview_vvvvwap function
|
||||
// #jform_add_php_jview listeners for add_php_jview_vvvvwaq function
|
||||
jQuery('#jform_add_php_jview').on('keyup',function()
|
||||
{
|
||||
var add_php_jview_vvvvwap = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvwap(add_php_jview_vvvvwap);
|
||||
var add_php_jview_vvvvwaq = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvwaq(add_php_jview_vvvvwaq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_jview',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_jview_vvvvwap = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvwap(add_php_jview_vvvvwap);
|
||||
var add_php_jview_vvvvwaq = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvwaq(add_php_jview_vvvvwaq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvwaq function
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvwar function
|
||||
jQuery('#jform_add_php_document').on('keyup',function()
|
||||
{
|
||||
var add_php_document_vvvvwaq = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvwaq(add_php_document_vvvvwaq);
|
||||
var add_php_document_vvvvwar = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvwar(add_php_document_vvvvwar);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_document_vvvvwaq = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvwaq(add_php_document_vvvvwaq);
|
||||
var add_php_document_vvvvwar = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvwar(add_php_document_vvvvwar);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_document listeners for add_css_document_vvvvwar function
|
||||
// #jform_add_css_document listeners for add_css_document_vvvvwas function
|
||||
jQuery('#jform_add_css_document').on('keyup',function()
|
||||
{
|
||||
var add_css_document_vvvvwar = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvwar(add_css_document_vvvvwar);
|
||||
var add_css_document_vvvvwas = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvwas(add_css_document_vvvvwas);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_document_vvvvwar = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvwar(add_css_document_vvvvwar);
|
||||
var add_css_document_vvvvwas = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvwas(add_css_document_vvvvwas);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_file listeners for add_javascript_file_vvvvwas function
|
||||
// #jform_add_javascript_file listeners for add_javascript_file_vvvvwat function
|
||||
jQuery('#jform_add_javascript_file').on('keyup',function()
|
||||
{
|
||||
var add_javascript_file_vvvvwas = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvwas(add_javascript_file_vvvvwas);
|
||||
var add_javascript_file_vvvvwat = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvwat(add_javascript_file_vvvvwat);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_file_vvvvwas = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvwas(add_javascript_file_vvvvwas);
|
||||
var add_javascript_file_vvvvwat = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvwat(add_javascript_file_vvvvwat);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_js_document listeners for add_js_document_vvvvwat function
|
||||
// #jform_add_js_document listeners for add_js_document_vvvvwau function
|
||||
jQuery('#jform_add_js_document').on('keyup',function()
|
||||
{
|
||||
var add_js_document_vvvvwat = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvwat(add_js_document_vvvvwat);
|
||||
var add_js_document_vvvvwau = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvwau(add_js_document_vvvvwau);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_js_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_js_document_vvvvwat = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvwat(add_js_document_vvvvwat);
|
||||
var add_js_document_vvvvwau = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvwau(add_js_document_vvvvwau);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css listeners for add_css_vvvvwau function
|
||||
// #jform_add_css listeners for add_css_vvvvwav function
|
||||
jQuery('#jform_add_css').on('keyup',function()
|
||||
{
|
||||
var add_css_vvvvwau = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvwau(add_css_vvvvwau);
|
||||
var add_css_vvvvwav = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvwav(add_css_vvvvwav);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_vvvvwau = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvwau(add_css_vvvvwau);
|
||||
var add_css_vvvvwav = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvwav(add_css_vvvvwav);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvwav function
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvwaw function
|
||||
jQuery('#jform_add_php_ajax').on('keyup',function()
|
||||
{
|
||||
var add_php_ajax_vvvvwav = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvwav(add_php_ajax_vvvvwav);
|
||||
var add_php_ajax_vvvvwaw = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvwaw(add_php_ajax_vvvvwaw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_ajax',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_ajax_vvvvwav = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvwav(add_php_ajax_vvvvwav);
|
||||
var add_php_ajax_vvvvwaw = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvwaw(add_php_ajax_vvvvwaw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvwaw function
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvwax function
|
||||
jQuery('#jform_add_custom_button').on('keyup',function()
|
||||
{
|
||||
var add_custom_button_vvvvwaw = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwaw(add_custom_button_vvvvwaw);
|
||||
var add_custom_button_vvvvwax = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwax(add_custom_button_vvvvwax);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_button',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_button_vvvvwaw = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwaw(add_custom_button_vvvvwaw);
|
||||
var add_custom_button_vvvvwax = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwax(add_custom_button_vvvvwax);
|
||||
|
||||
});
|
||||
|
||||
// #jform_button_position listeners for button_position_vvvvwax function
|
||||
// #jform_button_position listeners for button_position_vvvvway function
|
||||
jQuery('#jform_button_position').on('keyup',function()
|
||||
{
|
||||
var button_position_vvvvwax = jQuery("#jform_button_position").val();
|
||||
vvvvwax(button_position_vvvvwax);
|
||||
var button_position_vvvvway = jQuery("#jform_button_position").val();
|
||||
vvvvway(button_position_vvvvway);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_button_position',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var button_position_vvvvwax = jQuery("#jform_button_position").val();
|
||||
vvvvwax(button_position_vvvvwax);
|
||||
var button_position_vvvvway = jQuery("#jform_button_position").val();
|
||||
vvvvway(button_position_vvvvway);
|
||||
|
||||
});
|
||||
|
||||
|
@ -129,18 +129,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvway function
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvwaz function
|
||||
jQuery('#jform_add_php_view').on('keyup',function()
|
||||
{
|
||||
var add_php_view_vvvvway = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvway(add_php_view_vvvvway);
|
||||
var add_php_view_vvvvwaz = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwaz(add_php_view_vvvvwaz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_view_vvvvway = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvway(add_php_view_vvvvway);
|
||||
var add_php_view_vvvvwaz = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwaz(add_php_view_vvvvwaz);
|
||||
|
||||
});
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="component" version="4" method="upgrade">
|
||||
<name>COM_COMPONENTBUILDER</name>
|
||||
<creationDate>11th June, 2022</creationDate>
|
||||
<creationDate>9th July, 2022</creationDate>
|
||||
<author>Llewellyn van der Merwe</author>
|
||||
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
||||
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
||||
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||
<version>2.13.1</version>
|
||||
<version>3.1.2</version>
|
||||
<description><![CDATA[
|
||||
<h1>Component Builder (v.2.13.1)</h1>
|
||||
<h1>Component Builder (v.3.1.2)</h1>
|
||||
<div style="clear: both;"></div>
|
||||
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
|
||||
|
||||
@ -77,6 +77,7 @@ Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/compo
|
||||
<menu option="com_componentbuilder" view="joomla_components">COM_COMPONENTBUILDER_MENU_JOOMLA_COMPONENTS</menu>
|
||||
<menu option="com_componentbuilder" view="joomla_modules">COM_COMPONENTBUILDER_MENU_JOOMLA_MODULES</menu>
|
||||
<menu option="com_componentbuilder" view="joomla_plugins">COM_COMPONENTBUILDER_MENU_JOOMLA_PLUGINS</menu>
|
||||
<menu option="com_componentbuilder" view="powers">COM_COMPONENTBUILDER_MENU_POWERS</menu>
|
||||
<menu option="com_componentbuilder" view="admin_views">COM_COMPONENTBUILDER_MENU_ADMIN_VIEWS</menu>
|
||||
<menu option="com_componentbuilder" view="custom_admin_views">COM_COMPONENTBUILDER_MENU_CUSTOM_ADMIN_VIEWS</menu>
|
||||
<menu option="com_componentbuilder" view="site_views">COM_COMPONENTBUILDER_MENU_SITE_VIEWS</menu>
|
||||
|
@ -1022,12 +1022,13 @@
|
||||
<update>
|
||||
<name>Component Builder</name>
|
||||
<description>Builds Complex Joomla Components</description>
|
||||
<element>com_componentbuilder</element>
|
||||
<type>component</type>
|
||||
<element>pkg_component_builder</element>
|
||||
<type>package</type>
|
||||
<client>site</client>
|
||||
<version>2.12.10</version>
|
||||
<infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl>
|
||||
<downloads>
|
||||
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.12.10/JCB_v2.12.10.zip</downloadurl>
|
||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v2.12.10.zip</downloadurl>
|
||||
</downloads>
|
||||
<tags>
|
||||
<tag>stable</tag>
|
||||
@ -1039,12 +1040,13 @@
|
||||
<update>
|
||||
<name>Component Builder</name>
|
||||
<description>Builds Complex Joomla Components</description>
|
||||
<element>com_componentbuilder</element>
|
||||
<type>component</type>
|
||||
<element>pkg_component_builder</element>
|
||||
<type>package</type>
|
||||
<client>site</client>
|
||||
<version>2.12.16</version>
|
||||
<infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl>
|
||||
<downloads>
|
||||
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.12.16/JCB_v2.12.16.zip</downloadurl>
|
||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v2.12.16.zip</downloadurl>
|
||||
</downloads>
|
||||
<tags>
|
||||
<tag>stable</tag>
|
||||
@ -1058,10 +1060,29 @@
|
||||
<description>Builds Complex Joomla Components</description>
|
||||
<element>com_componentbuilder</element>
|
||||
<type>component</type>
|
||||
<client>site</client>
|
||||
<version>2.13.1</version>
|
||||
<infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl>
|
||||
<downloads>
|
||||
<downloadurl type="full" format="zip">https://github.com/vdm-io/Joomla-Component-Builder/releases/download/v2.13.1/JCB_v2.13.1.zip</downloadurl>
|
||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v2.13.1.zip</downloadurl>
|
||||
</downloads>
|
||||
<tags>
|
||||
<tag>stable</tag>
|
||||
</tags>
|
||||
<maintainer>Llewellyn van der Merwe</maintainer>
|
||||
<maintainerurl>http://www.joomlacomponentbuilder.com</maintainerurl>
|
||||
<targetplatform name="joomla" version="3.*"/>
|
||||
</update>
|
||||
<update>
|
||||
<name>Component Builder</name>
|
||||
<description>Builds Complex Joomla Components</description>
|
||||
<element>pkg_component_builder</element>
|
||||
<type>package</type>
|
||||
<client>site</client>
|
||||
<version>3.1.2</version>
|
||||
<infourl title="Component Builder!">http://www.joomlacomponentbuilder.com</infourl>
|
||||
<downloads>
|
||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.1.2.zip</downloadurl>
|
||||
</downloads>
|
||||
<tags>
|
||||
<tag>stable</tag>
|
||||
|
1
libraries/jcb_powers/VDM.Gitea/index.html
Normal file
1
libraries/jcb_powers/VDM.Gitea/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
165
libraries/jcb_powers/VDM.Gitea/src/AbstractGiteaObject.php
Normal file
165
libraries/jcb_powers/VDM.Gitea/src/AbstractGiteaObject.php
Normal file
@ -0,0 +1,165 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace VDM\Gitea;
|
||||
|
||||
|
||||
use Joomla\CMS\Http\Http as BaseHttp;
|
||||
use Joomla\CMS\Http\HttpFactory;
|
||||
use Joomla\CMS\Http\Response;
|
||||
use Joomla\Registry\Registry;
|
||||
use Joomla\Uri\Uri;
|
||||
use VDM\Joomla\Utilities\JsonHelper;
|
||||
|
||||
abstract class AbstractGiteaObject
|
||||
{
|
||||
/**
|
||||
* Options for the Gitea object.
|
||||
*
|
||||
* @var Registry
|
||||
* @since 1.0
|
||||
*/
|
||||
protected $options;
|
||||
|
||||
/**
|
||||
* The HTTP client object to use in sending HTTP requests.
|
||||
*
|
||||
* @var BaseHttp
|
||||
* @since 1.0
|
||||
*/
|
||||
protected $client;
|
||||
|
||||
/**
|
||||
* The package the object resides in
|
||||
*
|
||||
* @var string
|
||||
* @since 1.0
|
||||
*/
|
||||
protected $package = '';
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param Registry $options Gitea options object.
|
||||
* @param BaseHttp $client The HTTP client object.
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function __construct(Registry $options = null, BaseHttp $client = null)
|
||||
{
|
||||
$this->options = $options ?: new Registry;
|
||||
$this->client = $client ?: (new HttpFactory)->getHttp($this->options);
|
||||
|
||||
$this->package = \get_class($this);
|
||||
$this->package = substr($this->package, strrpos($this->package, '\\') + 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to build and return a full request URL for the request. This method will
|
||||
* add appropriate pagination details if necessary and also prepend the API url
|
||||
* to have a complete URL for the request.
|
||||
*
|
||||
* @param string $path URL to inflect
|
||||
* @param integer $page Page to request
|
||||
* @param integer $limit Number of results to return per page
|
||||
*
|
||||
* @return Uri
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
protected function fetchUrl($path, $page = 0, $limit = 0)
|
||||
{
|
||||
// Get a new Uri object focusing the api url and given path.
|
||||
$uri = new Uri($this->options->get('api.url') . $path);
|
||||
|
||||
if ($this->options->get('access.token', false))
|
||||
{
|
||||
// Use oAuth authentication
|
||||
$headers = $this->client->getOption('headers', array());
|
||||
|
||||
if (!isset($headers['Authorization']))
|
||||
{
|
||||
$headers['Authorization'] = 'token ' . $this->options->get('access.token');
|
||||
$this->client->setOption('headers', $headers);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Use basic authentication
|
||||
if ($this->options->get('api.username', false))
|
||||
{
|
||||
$uri->setUser($this->options->get('api.username'));
|
||||
}
|
||||
|
||||
if ($this->options->get('api.password', false))
|
||||
{
|
||||
$uri->setPass($this->options->get('api.password'));
|
||||
}
|
||||
}
|
||||
|
||||
// If we have a defined page number add it to the JUri object.
|
||||
if ($page > 0)
|
||||
{
|
||||
$uri->setVar('page', (int) $page);
|
||||
}
|
||||
|
||||
// If we have a defined items per page add it to the JUri object.
|
||||
if ($limit > 0)
|
||||
{
|
||||
$uri->setVar('limit', (int) $limit);
|
||||
}
|
||||
|
||||
return $uri;
|
||||
}
|
||||
|
||||
/**
|
||||
* Process the response and decode it.
|
||||
*
|
||||
* @param Response $response The response.
|
||||
* @param integer $expectedCode The expected "good" code.
|
||||
*
|
||||
* @return mixed
|
||||
*
|
||||
* @since 1.0
|
||||
* @throws RuntimeException
|
||||
*/
|
||||
protected function processResponse(Response $response, $expectedCode = 200)
|
||||
{
|
||||
// Validate the response code.
|
||||
if ($response->code != $expectedCode)
|
||||
{
|
||||
// Decode the error response and throw an exception.
|
||||
$error = json_decode($response->body);
|
||||
$message = isset($error->message) ? $error->message : 'Invalid response received from Gitea.';
|
||||
|
||||
throw new \DomainException($message, $response->code);
|
||||
}
|
||||
|
||||
if (JsonHelper::check($response->body))
|
||||
{
|
||||
$body = json_decode($response->body);
|
||||
|
||||
if (isset($body->content_base64))
|
||||
{
|
||||
$body->content = base64_decode($body->content_base64);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$body = $response->body;
|
||||
}
|
||||
|
||||
return $body;
|
||||
}
|
||||
|
||||
}
|
||||
|
71
libraries/jcb_powers/VDM.Gitea/src/AbstractPackage.php
Normal file
71
libraries/jcb_powers/VDM.Gitea/src/AbstractPackage.php
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace VDM\Gitea;
|
||||
|
||||
|
||||
use Joomla\CMS\Http\Http as BaseHttp;
|
||||
use Joomla\Registry\Registry;
|
||||
use VDM\Gitea\AbstractGiteaObject;
|
||||
|
||||
abstract class AbstractPackage extends AbstractGiteaObject
|
||||
{
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param Registry $options Gitea options object.
|
||||
* @param Http $client The HTTP client object.
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function __construct(Registry $options = null, BaseHttp $client = null)
|
||||
{
|
||||
parent::__construct($options, $client);
|
||||
|
||||
$this->package = \get_class($this);
|
||||
$this->package = substr($this->package, strrpos($this->package, '\\') + 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic method to lazily create API objects
|
||||
*
|
||||
* @param string $name Name of property to retrieve
|
||||
*
|
||||
* @since 1.0
|
||||
* @throws \InvalidArgumentException
|
||||
*
|
||||
* @return AbstractPackage Gitea API package object.
|
||||
*/
|
||||
public function __get($name)
|
||||
{
|
||||
$class = '\\VDM\\Gitea\\Package\\' . $this->package . '\\' . ucfirst($name);
|
||||
|
||||
if (class_exists($class) == false)
|
||||
{
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf(
|
||||
'Argument %1$s produced an invalid class name: %2$s in package %3$s',
|
||||
$name, $class, $this->package
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
if (isset($this->$name) == false)
|
||||
{
|
||||
$this->$name = new $class($this->options, $this->client);
|
||||
}
|
||||
|
||||
return $this->$name;
|
||||
}
|
||||
|
||||
}
|
||||
|
124
libraries/jcb_powers/VDM.Gitea/src/Gitea.php
Normal file
124
libraries/jcb_powers/VDM.Gitea/src/Gitea.php
Normal file
@ -0,0 +1,124 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace VDM\Gitea;
|
||||
|
||||
|
||||
use Joomla\CMS\Http\Http as BaseHttp;
|
||||
use Joomla\CMS\Http\HttpFactory;
|
||||
use Joomla\Registry\Registry;
|
||||
|
||||
class Gitea
|
||||
{
|
||||
/**
|
||||
* Options for the Gitea object.
|
||||
*
|
||||
* @var array
|
||||
* @since 1.0
|
||||
*/
|
||||
protected $options;
|
||||
|
||||
/**
|
||||
* The HTTP client object to use in sending HTTP requests.
|
||||
*
|
||||
* @var BaseHttp
|
||||
* @since 1.0
|
||||
*/
|
||||
protected $client;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param Registry $options Gitea options object.
|
||||
* @param Http $client The HTTP client object.
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function __construct(Registry $options = null, BaseHttp $client = null)
|
||||
{
|
||||
$this->options = $options ?: new Registry;
|
||||
|
||||
// Setup the default user agent if not already set.
|
||||
if (!$this->getOption('userAgent'))
|
||||
{
|
||||
$this->setOption('userAgent', 'JGitea/1.0');
|
||||
}
|
||||
|
||||
// Setup the default API url if not already set.
|
||||
if (!$this->getOption('api.url'))
|
||||
{
|
||||
$this->setOption('api.url', 'https://git.vdm.dev/api/v1');
|
||||
}
|
||||
|
||||
$this->client = $client ?: (new HttpFactory)->getHttp($this->options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic method to lazily create API objects
|
||||
*
|
||||
* @param string $name Name of property to retrieve
|
||||
*
|
||||
* @return AbstractGiteaObject Gitea API object (issues, pulls, etc).
|
||||
*
|
||||
* @since 1.0
|
||||
* @throws \InvalidArgumentException If $name is not a valid sub class.
|
||||
*/
|
||||
public function __get($name)
|
||||
{
|
||||
$class = '\\VDM\\Gitea\\Package\\' . ucfirst($name);
|
||||
|
||||
if (class_exists($class))
|
||||
{
|
||||
if (isset($this->$name) == false)
|
||||
{
|
||||
$this->$name = new $class($this->options, $this->client);
|
||||
}
|
||||
|
||||
return $this->$name;
|
||||
}
|
||||
|
||||
throw new \InvalidArgumentException(sprintf('Argument %s produced an invalid class name: %s', $name, $class));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an option from the Gitea instance.
|
||||
*
|
||||
* @param string $key The name of the option to get.
|
||||
*
|
||||
* @return mixed The option value.
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function getOption($key)
|
||||
{
|
||||
return isset($this->options[$key]) ? $this->options[$key] : null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set an option for the Gitea instance.
|
||||
*
|
||||
* @param string $key The name of the option to set.
|
||||
* @param mixed $value The option value to set.
|
||||
*
|
||||
* @return Gitea This object for method chaining.
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function setOption($key, $value)
|
||||
{
|
||||
$this->options[$key] = $value;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
267
libraries/jcb_powers/VDM.Gitea/src/Package/Repo.php
Normal file
267
libraries/jcb_powers/VDM.Gitea/src/Package/Repo.php
Normal file
@ -0,0 +1,267 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace VDM\Gitea\Package;
|
||||
|
||||
|
||||
use Joomla\CMS\Http\Http;
|
||||
use Joomla\Registry\Registry;
|
||||
use VDM\Gitea\AbstractPackage;
|
||||
|
||||
class Repo extends AbstractPackage
|
||||
{
|
||||
/**
|
||||
* List your repositories.
|
||||
*
|
||||
* List repositories for the authenticated user.
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function getListOwn()
|
||||
{
|
||||
// Build the request path.
|
||||
$uri = $this->fetchUrl('/user/repos');
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse($this->client->get($uri));
|
||||
}
|
||||
|
||||
/**
|
||||
* List user repositories.
|
||||
*
|
||||
* List public repositories for the specified user.
|
||||
*
|
||||
* @param string $user The user name.
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function getListUser($user)
|
||||
{
|
||||
// Build the request path.
|
||||
$uri = $this->fetchUrl('/users/' . $user . '/repos');
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse($this->client->get($uri));
|
||||
}
|
||||
|
||||
/**
|
||||
* List organization repositories.
|
||||
*
|
||||
* List repositories for the specified org.
|
||||
*
|
||||
* @param string $org The name of the organization.
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function getListOrg($org)
|
||||
{
|
||||
// Build the request path.
|
||||
$uri = $this->fetchUrl('/orgs/' . $org . '/repos');
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse($this->client->get($uri));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create.
|
||||
*
|
||||
* Create a new repository for the authenticated user or an organization. OAuth users must supply repo scope.
|
||||
*
|
||||
* @param string $name The repository name.
|
||||
* @param string $org The organization name (if needed).
|
||||
* @param string $description The repository description.
|
||||
* @param string $readme Readme of the repository to create.
|
||||
* @param boolean $private Set true to create a private repository, false to create a public one.
|
||||
* @param string $defaultBranch DefaultBranch of the repository (used when initializes and in template).
|
||||
* @param string $license License to use.
|
||||
* @param boolean $autoInit Whether the repository should auto init.
|
||||
* @param boolean $template Whether the repository is template.
|
||||
* @param string $gitignores Gitignores to use.
|
||||
* options: [ Joomla, JetBrains ] and much more...
|
||||
* @param string $issueLabels Label-Set to use.
|
||||
* @param string $trustModel TrustModel of the repository.
|
||||
* options: [ default, collaborator, committer, collaboratorcommitter ]
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function create($name, $org = '', $description = '', $readme = 'Default', $private = false, $defaultBranch = 'master',
|
||||
$license = 'GPL-2.0-or-later', $autoInit = true, $template = false, $trustModel = 'default', $gitignores = '', $issueLabels = ''
|
||||
)
|
||||
{
|
||||
$path = ($org)
|
||||
// Create a repository for an organization
|
||||
? '/orgs/' . $org . '/repos'
|
||||
// Create a repository for a user
|
||||
: '/user/repos';
|
||||
|
||||
$data = [
|
||||
'name' => $name,
|
||||
'description' => $description,
|
||||
'readme' => $readme,
|
||||
'private' => $private,
|
||||
'auto_init' => $autoInit,
|
||||
'default_branch' => $defaultBranch,
|
||||
'issue_labels' => $issueLabels,
|
||||
'license' => $license,
|
||||
'template' => $template,
|
||||
'gitignores' => $gitignores,
|
||||
'trust_model' => $trustModel
|
||||
];
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse(
|
||||
$this->client->post($this->fetchUrl($path), json_encode($data)),
|
||||
201
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get.
|
||||
*
|
||||
* @param string $owner Repository owner.
|
||||
* @param string $repo Repository name.
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function get($owner, $repo)
|
||||
{
|
||||
// Build the request path.
|
||||
$path = '/repos/' . $owner . '/' . $repo;
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse(
|
||||
$this->client->get($this->fetchUrl($path))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List contributors.
|
||||
*
|
||||
* @param string $owner Repository owner.
|
||||
* @param string $repo Repository name.
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function getListContributors($owner, $repo)
|
||||
{
|
||||
// Build the request path.
|
||||
$uri = $this->fetchUrl('/repos/' . $owner . '/' . $repo . '/contributors');
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse($this->client->get($uri));
|
||||
}
|
||||
|
||||
/**
|
||||
* List languages.
|
||||
*
|
||||
* List languages for the specified repository. The value on the right of a language is the number of bytes of code
|
||||
* written in that language.
|
||||
*
|
||||
* @param string $owner Repository owner.
|
||||
* @param string $repo Repository name.
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function getListLanguages($owner, $repo)
|
||||
{
|
||||
// Build the request path.
|
||||
$path = '/repos/' . $owner . '/' . $repo . '/languages';
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse(
|
||||
$this->client->get($this->fetchUrl($path))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List Teams
|
||||
*
|
||||
* @param string $owner Repository owner.
|
||||
* @param string $repo Repository name.
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function getListTeams($owner, $repo)
|
||||
{
|
||||
// Build the request path.
|
||||
$path = '/repos/' . $owner . '/' . $repo . '/teams';
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse(
|
||||
$this->client->get($this->fetchUrl($path))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List Tags.
|
||||
*
|
||||
* @param string $owner Repository owner.
|
||||
* @param string $repo Repository name.
|
||||
* @param integer $page Page to request
|
||||
* @param integer $limit Number of results to return per page
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function getListTags($owner, $repo, $page = 0, $limit = 0)
|
||||
{
|
||||
// Build the request path.
|
||||
$path = '/repos/' . $owner . '/' . $repo . '/tags';
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse(
|
||||
$this->client->get($this->fetchUrl($path, $page, $limit))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a Repository.
|
||||
*
|
||||
* Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required.
|
||||
*
|
||||
* @param string $owner Repository owner.
|
||||
* @param string $repo Repository name.
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function delete($owner, $repo)
|
||||
{
|
||||
// Build the request path.
|
||||
$path = '/repos/' . $owner . '/' . $repo;
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse(
|
||||
$this->client->delete($this->fetchUrl($path))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
50
libraries/jcb_powers/VDM.Gitea/src/Package/Repo/File.php
Normal file
50
libraries/jcb_powers/VDM.Gitea/src/Package/Repo/File.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace VDM\Gitea\Package\Repo;
|
||||
|
||||
|
||||
use Joomla\CMS\Http\Http;
|
||||
use Joomla\Registry\Registry;
|
||||
use VDM\Gitea\AbstractPackage;
|
||||
|
||||
|
||||
/**
|
||||
* Start looking here:
|
||||
* https://git.vdm.dev/api/swagger#/repository/repoGetContents
|
||||
*/
|
||||
class File extends AbstractPackage
|
||||
{
|
||||
/**
|
||||
* Gets the metadata and contents (if a file) of an entry in a repository, or a list of entries if a dir
|
||||
*
|
||||
* @param string $owner Repository owner.
|
||||
* @param string $repo Repository name.
|
||||
* @param string $filepath Repository file path.
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function get($owner, $repo, $filepath)
|
||||
{
|
||||
// Build the request path.
|
||||
$path = '/repos/' . $owner . '/' . $repo . '/contents/' . $filepath;
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse(
|
||||
$this->client->get($this->fetchUrl($path))
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
94
libraries/jcb_powers/VDM.Gitea/src/Package/Repo/Wiki.php
Normal file
94
libraries/jcb_powers/VDM.Gitea/src/Package/Repo/Wiki.php
Normal file
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace VDM\Gitea\Package\Repo;
|
||||
|
||||
|
||||
use Joomla\CMS\Http\Http;
|
||||
use Joomla\Registry\Registry;
|
||||
use VDM\Gitea\AbstractPackage;
|
||||
|
||||
|
||||
/**
|
||||
* Start looking here:
|
||||
* https://git.vdm.dev/api/swagger#/repository/repoCreateWikiPage
|
||||
*/
|
||||
class Wiki extends AbstractPackage
|
||||
{
|
||||
/**
|
||||
* Get a repository wiki page
|
||||
*
|
||||
* @param string $owner The repository owner
|
||||
* @param string $repo The repository name
|
||||
* @param string $pageName The page name
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function get(string $owner, string $repo, string $pageName)
|
||||
{
|
||||
// Build the request path.
|
||||
$path = '/repos/' . $owner . '/' . $repo . '/wiki/page/' . $pageName;
|
||||
|
||||
// Send the request.
|
||||
return $this->processResponse(
|
||||
$this->client->get($this->fetchUrl($path))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a repository wiki html page
|
||||
*
|
||||
* @param string $owner The repository owner
|
||||
* @param string $repo The repository name
|
||||
* @param string $pageName The page name
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function getHtml(string $owner, string $repo, string $pageName)
|
||||
{
|
||||
// get the gitea wiki page
|
||||
$page = $this->get($owner, $repo, $pageName);
|
||||
|
||||
if (empty($page->content))
|
||||
{
|
||||
throw new \Exception('Wiki page could not be found.');
|
||||
}
|
||||
|
||||
// Build the request path.
|
||||
$path = '/markdown';
|
||||
|
||||
// Get headers
|
||||
$headers = $this->client->getOption('headers', array());
|
||||
|
||||
$headers['accept'] = 'text/html';
|
||||
$headers['Content-Type'] = 'application/json';
|
||||
|
||||
// build the post body
|
||||
$data = [
|
||||
'Context' => 'string',
|
||||
'Mode' => 'string',
|
||||
'Text' => $page->content,
|
||||
'Wiki' => true
|
||||
];
|
||||
|
||||
// Post the request.
|
||||
return $this->processResponse(
|
||||
$this->client->post($this->fetchUrl($path), json_encode($data), $headers)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
1
libraries/jcb_powers/VDM.Gitea/src/Package/index.html
Normal file
1
libraries/jcb_powers/VDM.Gitea/src/Package/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
1
libraries/jcb_powers/VDM.Gitea/src/index.html
Normal file
1
libraries/jcb_powers/VDM.Gitea/src/index.html
Normal file
@ -0,0 +1 @@
|
||||
<html><body bgcolor="#FFFFFF"></body></html>
|
@ -76,5 +76,31 @@ abstract class ArrayHelper
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if arrays intersect
|
||||
*
|
||||
* @input array The first array
|
||||
* @input array The second array
|
||||
*
|
||||
* @returns bool true if intersect else false
|
||||
*
|
||||
* @since 3.1.1
|
||||
*/
|
||||
public static function intersect($a_array, $b_array)
|
||||
{
|
||||
// flip the second array
|
||||
$b_array = array_flip($b_array);
|
||||
|
||||
// loop the first array
|
||||
foreach ($a_array as $v)
|
||||
{
|
||||
if (isset($b_array[$v]))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -10,123 +10,123 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvvzvvwj_required = false;
|
||||
jform_vvvvvzwvwk_required = false;
|
||||
jform_vvvvwaavwl_required = false;
|
||||
jform_vvvvwaavwm_required = false;
|
||||
jform_vvvvwaavwn_required = false;
|
||||
jform_vvvvwaavwo_required = false;
|
||||
jform_vvvvwaavwp_required = false;
|
||||
jform_vvvvwaavwq_required = false;
|
||||
jform_vvvvwaavwr_required = false;
|
||||
jform_vvvvvzwvwj_required = false;
|
||||
jform_vvvvvzxvwk_required = false;
|
||||
jform_vvvvwabvwl_required = false;
|
||||
jform_vvvvwabvwm_required = false;
|
||||
jform_vvvvwabvwn_required = false;
|
||||
jform_vvvvwabvwo_required = false;
|
||||
jform_vvvvwabvwp_required = false;
|
||||
jform_vvvvwabvwq_required = false;
|
||||
jform_vvvvwabvwr_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_css_view_vvvvvyv = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvyv(add_css_view_vvvvvyv);
|
||||
var add_css_view_vvvvvyw = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvyw(add_css_view_vvvvvyw);
|
||||
|
||||
var add_css_views_vvvvvyw = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvyw(add_css_views_vvvvvyw);
|
||||
var add_css_views_vvvvvyx = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvyx(add_css_views_vvvvvyx);
|
||||
|
||||
var add_javascript_view_file_vvvvvyx = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvyx(add_javascript_view_file_vvvvvyx);
|
||||
var add_javascript_view_file_vvvvvyy = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvyy(add_javascript_view_file_vvvvvyy);
|
||||
|
||||
var add_javascript_views_file_vvvvvyy = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvyy(add_javascript_views_file_vvvvvyy);
|
||||
var add_javascript_views_file_vvvvvyz = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvyz(add_javascript_views_file_vvvvvyz);
|
||||
|
||||
var add_javascript_view_footer_vvvvvyz = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvyz(add_javascript_view_footer_vvvvvyz);
|
||||
var add_javascript_view_footer_vvvvvza = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvza(add_javascript_view_footer_vvvvvza);
|
||||
|
||||
var add_javascript_views_footer_vvvvvza = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvza(add_javascript_views_footer_vvvvvza);
|
||||
var add_javascript_views_footer_vvvvvzb = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvzb(add_javascript_views_footer_vvvvvzb);
|
||||
|
||||
var add_php_ajax_vvvvvzb = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzb(add_php_ajax_vvvvvzb);
|
||||
var add_php_ajax_vvvvvzc = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzc(add_php_ajax_vvvvvzc);
|
||||
|
||||
var add_php_getitem_vvvvvzc = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvzc(add_php_getitem_vvvvvzc);
|
||||
var add_php_getitem_vvvvvzd = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvzd(add_php_getitem_vvvvvzd);
|
||||
|
||||
var add_php_getitems_vvvvvzd = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvzd(add_php_getitems_vvvvvzd);
|
||||
var add_php_getitems_vvvvvze = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvze(add_php_getitems_vvvvvze);
|
||||
|
||||
var add_php_getitems_after_all_vvvvvze = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvze(add_php_getitems_after_all_vvvvvze);
|
||||
var add_php_getitems_after_all_vvvvvzf = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvzf(add_php_getitems_after_all_vvvvvzf);
|
||||
|
||||
var add_php_getlistquery_vvvvvzf = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvzf(add_php_getlistquery_vvvvvzf);
|
||||
var add_php_getlistquery_vvvvvzg = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvzg(add_php_getlistquery_vvvvvzg);
|
||||
|
||||
var add_php_getform_vvvvvzg = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvzg(add_php_getform_vvvvvzg);
|
||||
var add_php_getform_vvvvvzh = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvzh(add_php_getform_vvvvvzh);
|
||||
|
||||
var add_php_before_save_vvvvvzh = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvzh(add_php_before_save_vvvvvzh);
|
||||
var add_php_before_save_vvvvvzi = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvzi(add_php_before_save_vvvvvzi);
|
||||
|
||||
var add_php_save_vvvvvzi = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvzi(add_php_save_vvvvvzi);
|
||||
var add_php_save_vvvvvzj = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvzj(add_php_save_vvvvvzj);
|
||||
|
||||
var add_php_postsavehook_vvvvvzj = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvzj(add_php_postsavehook_vvvvvzj);
|
||||
var add_php_postsavehook_vvvvvzk = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvzk(add_php_postsavehook_vvvvvzk);
|
||||
|
||||
var add_php_allowadd_vvvvvzk = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvzk(add_php_allowadd_vvvvvzk);
|
||||
var add_php_allowadd_vvvvvzl = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvzl(add_php_allowadd_vvvvvzl);
|
||||
|
||||
var add_php_allowedit_vvvvvzl = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvzl(add_php_allowedit_vvvvvzl);
|
||||
var add_php_allowedit_vvvvvzm = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvzm(add_php_allowedit_vvvvvzm);
|
||||
|
||||
var add_php_before_cancel_vvvvvzm = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvzm(add_php_before_cancel_vvvvvzm);
|
||||
var add_php_before_cancel_vvvvvzn = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvzn(add_php_before_cancel_vvvvvzn);
|
||||
|
||||
var add_php_after_cancel_vvvvvzn = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvzn(add_php_after_cancel_vvvvvzn);
|
||||
var add_php_after_cancel_vvvvvzo = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvzo(add_php_after_cancel_vvvvvzo);
|
||||
|
||||
var add_php_batchcopy_vvvvvzo = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvzo(add_php_batchcopy_vvvvvzo);
|
||||
var add_php_batchcopy_vvvvvzp = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvzp(add_php_batchcopy_vvvvvzp);
|
||||
|
||||
var add_php_batchmove_vvvvvzp = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvzp(add_php_batchmove_vvvvvzp);
|
||||
var add_php_batchmove_vvvvvzq = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvzq(add_php_batchmove_vvvvvzq);
|
||||
|
||||
var add_php_before_publish_vvvvvzq = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvzq(add_php_before_publish_vvvvvzq);
|
||||
var add_php_before_publish_vvvvvzr = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvzr(add_php_before_publish_vvvvvzr);
|
||||
|
||||
var add_php_after_publish_vvvvvzr = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvzr(add_php_after_publish_vvvvvzr);
|
||||
var add_php_after_publish_vvvvvzs = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvzs(add_php_after_publish_vvvvvzs);
|
||||
|
||||
var add_php_before_delete_vvvvvzs = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvzs(add_php_before_delete_vvvvvzs);
|
||||
var add_php_before_delete_vvvvvzt = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvzt(add_php_before_delete_vvvvvzt);
|
||||
|
||||
var add_php_after_delete_vvvvvzt = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvzt(add_php_after_delete_vvvvvzt);
|
||||
var add_php_after_delete_vvvvvzu = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvzu(add_php_after_delete_vvvvvzu);
|
||||
|
||||
var add_php_document_vvvvvzu = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvzu(add_php_document_vvvvvzu);
|
||||
var add_php_document_vvvvvzv = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvzv(add_php_document_vvvvvzv);
|
||||
|
||||
var add_sql_vvvvvzv = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzv(add_sql_vvvvvzv);
|
||||
|
||||
var source_vvvvvzw = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzw = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw);
|
||||
vvvvvzw(add_sql_vvvvvzw);
|
||||
|
||||
var source_vvvvvzy = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzy = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy);
|
||||
var source_vvvvvzx = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzx = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzx(source_vvvvvzx,add_sql_vvvvvzx);
|
||||
|
||||
var add_custom_import_vvvvwaa = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvwaa(add_custom_import_vvvvwaa);
|
||||
var source_vvvvvzz = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvzz = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvzz(source_vvvvvzz,add_sql_vvvvvzz);
|
||||
|
||||
var add_custom_import_vvvvwab = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvwab(add_custom_import_vvvvwab);
|
||||
|
||||
var add_custom_button_vvvvwac = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwac(add_custom_button_vvvvwac);
|
||||
var add_custom_import_vvvvwac = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvwac(add_custom_import_vvvvwac);
|
||||
|
||||
var add_custom_button_vvvvwad = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwad(add_custom_button_vvvvwad);
|
||||
});
|
||||
|
||||
// the vvvvvyv function
|
||||
function vvvvvyv(add_css_view_vvvvvyv)
|
||||
// the vvvvvyw function
|
||||
function vvvvvyw(add_css_view_vvvvvyw)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_view_vvvvvyv == 1)
|
||||
if (add_css_view_vvvvvyw == 1)
|
||||
{
|
||||
jQuery('#jform_css_view-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -136,11 +136,11 @@ function vvvvvyv(add_css_view_vvvvvyv)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyw function
|
||||
function vvvvvyw(add_css_views_vvvvvyw)
|
||||
// the vvvvvyx function
|
||||
function vvvvvyx(add_css_views_vvvvvyx)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_views_vvvvvyw == 1)
|
||||
if (add_css_views_vvvvvyx == 1)
|
||||
{
|
||||
jQuery('#jform_css_views-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -150,11 +150,11 @@ function vvvvvyw(add_css_views_vvvvvyw)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyx function
|
||||
function vvvvvyx(add_javascript_view_file_vvvvvyx)
|
||||
// the vvvvvyy function
|
||||
function vvvvvyy(add_javascript_view_file_vvvvvyy)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_view_file_vvvvvyx == 1)
|
||||
if (add_javascript_view_file_vvvvvyy == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_view_file-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -164,11 +164,11 @@ function vvvvvyx(add_javascript_view_file_vvvvvyx)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyy function
|
||||
function vvvvvyy(add_javascript_views_file_vvvvvyy)
|
||||
// the vvvvvyz function
|
||||
function vvvvvyz(add_javascript_views_file_vvvvvyz)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_views_file_vvvvvyy == 1)
|
||||
if (add_javascript_views_file_vvvvvyz == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_views_file-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -178,11 +178,11 @@ function vvvvvyy(add_javascript_views_file_vvvvvyy)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvyz function
|
||||
function vvvvvyz(add_javascript_view_footer_vvvvvyz)
|
||||
// the vvvvvza function
|
||||
function vvvvvza(add_javascript_view_footer_vvvvvza)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_view_footer_vvvvvyz == 1)
|
||||
if (add_javascript_view_footer_vvvvvza == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -192,11 +192,11 @@ function vvvvvyz(add_javascript_view_footer_vvvvvyz)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvza function
|
||||
function vvvvvza(add_javascript_views_footer_vvvvvza)
|
||||
// the vvvvvzb function
|
||||
function vvvvvzb(add_javascript_views_footer_vvvvvzb)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_views_footer_vvvvvza == 1)
|
||||
if (add_javascript_views_footer_vvvvvzb == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -206,11 +206,11 @@ function vvvvvza(add_javascript_views_footer_vvvvvza)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzb function
|
||||
function vvvvvzb(add_php_ajax_vvvvvzb)
|
||||
// the vvvvvzc function
|
||||
function vvvvvzc(add_php_ajax_vvvvvzc)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_ajax_vvvvvzb == 1)
|
||||
if (add_php_ajax_vvvvvzc == 1)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
|
||||
@ -222,11 +222,11 @@ function vvvvvzb(add_php_ajax_vvvvvzb)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzc function
|
||||
function vvvvvzc(add_php_getitem_vvvvvzc)
|
||||
// the vvvvvzd function
|
||||
function vvvvvzd(add_php_getitem_vvvvvzd)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_getitem_vvvvvzc == 1)
|
||||
if (add_php_getitem_vvvvvzd == 1)
|
||||
{
|
||||
jQuery('#jform_php_getitem-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -236,11 +236,11 @@ function vvvvvzc(add_php_getitem_vvvvvzc)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzd function
|
||||
function vvvvvzd(add_php_getitems_vvvvvzd)
|
||||
// the vvvvvze function
|
||||
function vvvvvze(add_php_getitems_vvvvvze)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_getitems_vvvvvzd == 1)
|
||||
if (add_php_getitems_vvvvvze == 1)
|
||||
{
|
||||
jQuery('#jform_php_getitems-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -250,11 +250,11 @@ function vvvvvzd(add_php_getitems_vvvvvzd)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvze function
|
||||
function vvvvvze(add_php_getitems_after_all_vvvvvze)
|
||||
// the vvvvvzf function
|
||||
function vvvvvzf(add_php_getitems_after_all_vvvvvzf)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_getitems_after_all_vvvvvze == 1)
|
||||
if (add_php_getitems_after_all_vvvvvzf == 1)
|
||||
{
|
||||
jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -264,11 +264,11 @@ function vvvvvze(add_php_getitems_after_all_vvvvvze)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzf function
|
||||
function vvvvvzf(add_php_getlistquery_vvvvvzf)
|
||||
// the vvvvvzg function
|
||||
function vvvvvzg(add_php_getlistquery_vvvvvzg)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_getlistquery_vvvvvzf == 1)
|
||||
if (add_php_getlistquery_vvvvvzg == 1)
|
||||
{
|
||||
jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -278,11 +278,11 @@ function vvvvvzf(add_php_getlistquery_vvvvvzf)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzg function
|
||||
function vvvvvzg(add_php_getform_vvvvvzg)
|
||||
// the vvvvvzh function
|
||||
function vvvvvzh(add_php_getform_vvvvvzh)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_getform_vvvvvzg == 1)
|
||||
if (add_php_getform_vvvvvzh == 1)
|
||||
{
|
||||
jQuery('#jform_php_getform-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -292,11 +292,11 @@ function vvvvvzg(add_php_getform_vvvvvzg)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzh function
|
||||
function vvvvvzh(add_php_before_save_vvvvvzh)
|
||||
// the vvvvvzi function
|
||||
function vvvvvzi(add_php_before_save_vvvvvzi)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_before_save_vvvvvzh == 1)
|
||||
if (add_php_before_save_vvvvvzi == 1)
|
||||
{
|
||||
jQuery('#jform_php_before_save-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -306,11 +306,11 @@ function vvvvvzh(add_php_before_save_vvvvvzh)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzi function
|
||||
function vvvvvzi(add_php_save_vvvvvzi)
|
||||
// the vvvvvzj function
|
||||
function vvvvvzj(add_php_save_vvvvvzj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_save_vvvvvzi == 1)
|
||||
if (add_php_save_vvvvvzj == 1)
|
||||
{
|
||||
jQuery('#jform_php_save-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -320,11 +320,11 @@ function vvvvvzi(add_php_save_vvvvvzi)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzj function
|
||||
function vvvvvzj(add_php_postsavehook_vvvvvzj)
|
||||
// the vvvvvzk function
|
||||
function vvvvvzk(add_php_postsavehook_vvvvvzk)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_postsavehook_vvvvvzj == 1)
|
||||
if (add_php_postsavehook_vvvvvzk == 1)
|
||||
{
|
||||
jQuery('#jform_php_postsavehook-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -334,11 +334,11 @@ function vvvvvzj(add_php_postsavehook_vvvvvzj)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzk function
|
||||
function vvvvvzk(add_php_allowadd_vvvvvzk)
|
||||
// the vvvvvzl function
|
||||
function vvvvvzl(add_php_allowadd_vvvvvzl)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_allowadd_vvvvvzk == 1)
|
||||
if (add_php_allowadd_vvvvvzl == 1)
|
||||
{
|
||||
jQuery('#jform_php_allowadd-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -348,11 +348,11 @@ function vvvvvzk(add_php_allowadd_vvvvvzk)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzl function
|
||||
function vvvvvzl(add_php_allowedit_vvvvvzl)
|
||||
// the vvvvvzm function
|
||||
function vvvvvzm(add_php_allowedit_vvvvvzm)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_allowedit_vvvvvzl == 1)
|
||||
if (add_php_allowedit_vvvvvzm == 1)
|
||||
{
|
||||
jQuery('#jform_php_allowedit-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -362,11 +362,11 @@ function vvvvvzl(add_php_allowedit_vvvvvzl)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzm function
|
||||
function vvvvvzm(add_php_before_cancel_vvvvvzm)
|
||||
// the vvvvvzn function
|
||||
function vvvvvzn(add_php_before_cancel_vvvvvzn)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_before_cancel_vvvvvzm == 1)
|
||||
if (add_php_before_cancel_vvvvvzn == 1)
|
||||
{
|
||||
jQuery('#jform_php_before_cancel-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -376,11 +376,11 @@ function vvvvvzm(add_php_before_cancel_vvvvvzm)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzn function
|
||||
function vvvvvzn(add_php_after_cancel_vvvvvzn)
|
||||
// the vvvvvzo function
|
||||
function vvvvvzo(add_php_after_cancel_vvvvvzo)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_after_cancel_vvvvvzn == 1)
|
||||
if (add_php_after_cancel_vvvvvzo == 1)
|
||||
{
|
||||
jQuery('#jform_php_after_cancel-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -390,11 +390,11 @@ function vvvvvzn(add_php_after_cancel_vvvvvzn)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzo function
|
||||
function vvvvvzo(add_php_batchcopy_vvvvvzo)
|
||||
// the vvvvvzp function
|
||||
function vvvvvzp(add_php_batchcopy_vvvvvzp)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_batchcopy_vvvvvzo == 1)
|
||||
if (add_php_batchcopy_vvvvvzp == 1)
|
||||
{
|
||||
jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -404,11 +404,11 @@ function vvvvvzo(add_php_batchcopy_vvvvvzo)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzp function
|
||||
function vvvvvzp(add_php_batchmove_vvvvvzp)
|
||||
// the vvvvvzq function
|
||||
function vvvvvzq(add_php_batchmove_vvvvvzq)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_batchmove_vvvvvzp == 1)
|
||||
if (add_php_batchmove_vvvvvzq == 1)
|
||||
{
|
||||
jQuery('#jform_php_batchmove-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -418,11 +418,11 @@ function vvvvvzp(add_php_batchmove_vvvvvzp)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzq function
|
||||
function vvvvvzq(add_php_before_publish_vvvvvzq)
|
||||
// the vvvvvzr function
|
||||
function vvvvvzr(add_php_before_publish_vvvvvzr)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_before_publish_vvvvvzq == 1)
|
||||
if (add_php_before_publish_vvvvvzr == 1)
|
||||
{
|
||||
jQuery('#jform_php_before_publish-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -432,11 +432,11 @@ function vvvvvzq(add_php_before_publish_vvvvvzq)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzr function
|
||||
function vvvvvzr(add_php_after_publish_vvvvvzr)
|
||||
// the vvvvvzs function
|
||||
function vvvvvzs(add_php_after_publish_vvvvvzs)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_after_publish_vvvvvzr == 1)
|
||||
if (add_php_after_publish_vvvvvzs == 1)
|
||||
{
|
||||
jQuery('#jform_php_after_publish-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -446,11 +446,11 @@ function vvvvvzr(add_php_after_publish_vvvvvzr)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzs function
|
||||
function vvvvvzs(add_php_before_delete_vvvvvzs)
|
||||
// the vvvvvzt function
|
||||
function vvvvvzt(add_php_before_delete_vvvvvzt)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_before_delete_vvvvvzs == 1)
|
||||
if (add_php_before_delete_vvvvvzt == 1)
|
||||
{
|
||||
jQuery('#jform_php_before_delete-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -460,11 +460,11 @@ function vvvvvzs(add_php_before_delete_vvvvvzs)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzt function
|
||||
function vvvvvzt(add_php_after_delete_vvvvvzt)
|
||||
// the vvvvvzu function
|
||||
function vvvvvzu(add_php_after_delete_vvvvvzu)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_after_delete_vvvvvzt == 1)
|
||||
if (add_php_after_delete_vvvvvzu == 1)
|
||||
{
|
||||
jQuery('#jform_php_after_delete-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -474,11 +474,11 @@ function vvvvvzt(add_php_after_delete_vvvvvzt)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzu function
|
||||
function vvvvvzu(add_php_document_vvvvvzu)
|
||||
// the vvvvvzv function
|
||||
function vvvvvzv(add_php_document_vvvvvzv)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_document_vvvvvzu == 1)
|
||||
if (add_php_document_vvvvvzv == 1)
|
||||
{
|
||||
jQuery('#jform_php_document-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -488,75 +488,75 @@ function vvvvvzu(add_php_document_vvvvvzu)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzv function
|
||||
function vvvvvzv(add_sql_vvvvvzv)
|
||||
// the vvvvvzw function
|
||||
function vvvvvzw(add_sql_vvvvvzw)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_sql_vvvvvzv == 1)
|
||||
if (add_sql_vvvvvzw == 1)
|
||||
{
|
||||
jQuery('#jform_source').closest('.control-group').show();
|
||||
// add required attribute to source field
|
||||
if (jform_vvvvvzvvwj_required)
|
||||
if (jform_vvvvvzwvwj_required)
|
||||
{
|
||||
updateFieldRequired('source',0);
|
||||
jQuery('#jform_source').prop('required','required');
|
||||
jQuery('#jform_source').attr('aria-required',true);
|
||||
jQuery('#jform_source').addClass('required');
|
||||
jform_vvvvvzvvwj_required = false;
|
||||
jform_vvvvvzwvwj_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_source').closest('.control-group').hide();
|
||||
// remove required attribute from source field
|
||||
if (!jform_vvvvvzvvwj_required)
|
||||
if (!jform_vvvvvzwvwj_required)
|
||||
{
|
||||
updateFieldRequired('source',1);
|
||||
jQuery('#jform_source').removeAttr('required');
|
||||
jQuery('#jform_source').removeAttr('aria-required');
|
||||
jQuery('#jform_source').removeClass('required');
|
||||
jform_vvvvvzvvwj_required = true;
|
||||
jform_vvvvvzwvwj_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzw function
|
||||
function vvvvvzw(source_vvvvvzw,add_sql_vvvvvzw)
|
||||
// the vvvvvzx function
|
||||
function vvvvvzx(source_vvvvvzx,add_sql_vvvvvzx)
|
||||
{
|
||||
// set the function logic
|
||||
if (source_vvvvvzw == 2 && add_sql_vvvvvzw == 1)
|
||||
if (source_vvvvvzx == 2 && add_sql_vvvvvzx == 1)
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').show();
|
||||
// add required attribute to sql field
|
||||
if (jform_vvvvvzwvwk_required)
|
||||
if (jform_vvvvvzxvwk_required)
|
||||
{
|
||||
updateFieldRequired('sql',0);
|
||||
jQuery('#jform_sql').prop('required','required');
|
||||
jQuery('#jform_sql').attr('aria-required',true);
|
||||
jQuery('#jform_sql').addClass('required');
|
||||
jform_vvvvvzwvwk_required = false;
|
||||
jform_vvvvvzxvwk_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_sql').closest('.control-group').hide();
|
||||
// remove required attribute from sql field
|
||||
if (!jform_vvvvvzwvwk_required)
|
||||
if (!jform_vvvvvzxvwk_required)
|
||||
{
|
||||
updateFieldRequired('sql',1);
|
||||
jQuery('#jform_sql').removeAttr('required');
|
||||
jQuery('#jform_sql').removeAttr('aria-required');
|
||||
jQuery('#jform_sql').removeClass('required');
|
||||
jform_vvvvvzwvwk_required = true;
|
||||
jform_vvvvvzxvwk_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvvzy function
|
||||
function vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy)
|
||||
// the vvvvvzz function
|
||||
function vvvvvzz(source_vvvvvzz,add_sql_vvvvvzz)
|
||||
{
|
||||
// set the function logic
|
||||
if (source_vvvvvzy == 1 && add_sql_vvvvvzy == 1)
|
||||
if (source_vvvvvzz == 1 && add_sql_vvvvvzz == 1)
|
||||
{
|
||||
jQuery('#jform_addtables-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -566,165 +566,165 @@ function vvvvvzy(source_vvvvvzy,add_sql_vvvvvzy)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaa function
|
||||
function vvvvwaa(add_custom_import_vvvvwaa)
|
||||
// the vvvvwab function
|
||||
function vvvvwab(add_custom_import_vvvvwab)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_import_vvvvwaa == 1)
|
||||
if (add_custom_import_vvvvwab == 1)
|
||||
{
|
||||
jQuery('#jform_html_import_view').closest('.control-group').show();
|
||||
// add required attribute to html_import_view field
|
||||
if (jform_vvvvwaavwl_required)
|
||||
if (jform_vvvvwabvwl_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_vvvvwaavwl_required = false;
|
||||
jform_vvvvwabvwl_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_vvvvwaavwm_required)
|
||||
if (jform_vvvvwabvwm_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_vvvvwaavwm_required = false;
|
||||
jform_vvvvwabvwm_required = false;
|
||||
}
|
||||
jQuery('#jform_php_import_ext').closest('.control-group').show();
|
||||
// add required attribute to php_import_ext field
|
||||
if (jform_vvvvwaavwn_required)
|
||||
if (jform_vvvvwabvwn_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_vvvvwaavwn_required = false;
|
||||
jform_vvvvwabvwn_required = false;
|
||||
}
|
||||
jQuery('#jform_php_import_headers').closest('.control-group').show();
|
||||
// add required attribute to php_import_headers field
|
||||
if (jform_vvvvwaavwo_required)
|
||||
if (jform_vvvvwabvwo_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_vvvvwaavwo_required = false;
|
||||
jform_vvvvwabvwo_required = false;
|
||||
}
|
||||
jQuery('#jform_php_import').closest('.control-group').show();
|
||||
// add required attribute to php_import field
|
||||
if (jform_vvvvwaavwp_required)
|
||||
if (jform_vvvvwabvwp_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_vvvvwaavwp_required = false;
|
||||
jform_vvvvwabvwp_required = false;
|
||||
}
|
||||
jQuery('#jform_php_import_save').closest('.control-group').show();
|
||||
// add required attribute to php_import_save field
|
||||
if (jform_vvvvwaavwq_required)
|
||||
if (jform_vvvvwabvwq_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_vvvvwaavwq_required = false;
|
||||
jform_vvvvwabvwq_required = false;
|
||||
}
|
||||
jQuery('#jform_php_import_setdata').closest('.control-group').show();
|
||||
// add required attribute to php_import_setdata field
|
||||
if (jform_vvvvwaavwr_required)
|
||||
if (jform_vvvvwabvwr_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_vvvvwaavwr_required = false;
|
||||
jform_vvvvwabvwr_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_html_import_view').closest('.control-group').hide();
|
||||
// remove required attribute from html_import_view field
|
||||
if (!jform_vvvvwaavwl_required)
|
||||
if (!jform_vvvvwabvwl_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_vvvvwaavwl_required = true;
|
||||
jform_vvvvwabvwl_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_vvvvwaavwm_required)
|
||||
if (!jform_vvvvwabvwm_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_vvvvwaavwm_required = true;
|
||||
jform_vvvvwabvwm_required = true;
|
||||
}
|
||||
jQuery('#jform_php_import_ext').closest('.control-group').hide();
|
||||
// remove required attribute from php_import_ext field
|
||||
if (!jform_vvvvwaavwn_required)
|
||||
if (!jform_vvvvwabvwn_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_vvvvwaavwn_required = true;
|
||||
jform_vvvvwabvwn_required = true;
|
||||
}
|
||||
jQuery('#jform_php_import_headers').closest('.control-group').hide();
|
||||
// remove required attribute from php_import_headers field
|
||||
if (!jform_vvvvwaavwo_required)
|
||||
if (!jform_vvvvwabvwo_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_vvvvwaavwo_required = true;
|
||||
jform_vvvvwabvwo_required = true;
|
||||
}
|
||||
jQuery('#jform_php_import').closest('.control-group').hide();
|
||||
// remove required attribute from php_import field
|
||||
if (!jform_vvvvwaavwp_required)
|
||||
if (!jform_vvvvwabvwp_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_vvvvwaavwp_required = true;
|
||||
jform_vvvvwabvwp_required = true;
|
||||
}
|
||||
jQuery('#jform_php_import_save').closest('.control-group').hide();
|
||||
// remove required attribute from php_import_save field
|
||||
if (!jform_vvvvwaavwq_required)
|
||||
if (!jform_vvvvwabvwq_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_vvvvwaavwq_required = true;
|
||||
jform_vvvvwabvwq_required = true;
|
||||
}
|
||||
jQuery('#jform_php_import_setdata').closest('.control-group').hide();
|
||||
// remove required attribute from php_import_setdata field
|
||||
if (!jform_vvvvwaavwr_required)
|
||||
if (!jform_vvvvwabvwr_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_vvvvwaavwr_required = true;
|
||||
jform_vvvvwabvwr_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwab function
|
||||
function vvvvwab(add_custom_import_vvvvwab)
|
||||
// the vvvvwac function
|
||||
function vvvvwac(add_custom_import_vvvvwac)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_import_vvvvwab == 0)
|
||||
if (add_custom_import_vvvvwac == 0)
|
||||
{
|
||||
jQuery('.note_beginner_import').closest('.control-group').show();
|
||||
}
|
||||
@ -734,11 +734,11 @@ function vvvvwab(add_custom_import_vvvvwab)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwac function
|
||||
function vvvvwac(add_custom_button_vvvvwac)
|
||||
// the vvvvwad function
|
||||
function vvvvwad(add_custom_button_vvvvwad)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_button_vvvvwac == 1)
|
||||
if (add_custom_button_vvvvwad == 1)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
|
||||
|
@ -10,29 +10,29 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwcgvxk_required = false;
|
||||
jform_vvvvwchvxk_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var extension_type_vvvvwcg = jQuery("#jform_extension_type").val();
|
||||
vvvvwcg(extension_type_vvvvwcg);
|
||||
var extension_type_vvvvwch = jQuery("#jform_extension_type").val();
|
||||
vvvvwch(extension_type_vvvvwch);
|
||||
});
|
||||
|
||||
// the vvvvwcg function
|
||||
function vvvvwcg(extension_type_vvvvwcg)
|
||||
// the vvvvwch function
|
||||
function vvvvwch(extension_type_vvvvwch)
|
||||
{
|
||||
if (isSet(extension_type_vvvvwcg) && extension_type_vvvvwcg.constructor !== Array)
|
||||
if (isSet(extension_type_vvvvwch) && extension_type_vvvvwch.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcg = extension_type_vvvvwcg;
|
||||
var extension_type_vvvvwcg = [];
|
||||
extension_type_vvvvwcg.push(temp_vvvvwcg);
|
||||
var temp_vvvvwch = extension_type_vvvvwch;
|
||||
var extension_type_vvvvwch = [];
|
||||
extension_type_vvvvwch.push(temp_vvvvwch);
|
||||
}
|
||||
else if (!isSet(extension_type_vvvvwcg))
|
||||
else if (!isSet(extension_type_vvvvwch))
|
||||
{
|
||||
var extension_type_vvvvwcg = [];
|
||||
var extension_type_vvvvwch = [];
|
||||
}
|
||||
var extension_type = extension_type_vvvvwcg.some(extension_type_vvvvwcg_SomeFunc);
|
||||
var extension_type = extension_type_vvvvwch.some(extension_type_vvvvwch_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -40,35 +40,35 @@ function vvvvwcg(extension_type_vvvvwcg)
|
||||
{
|
||||
jQuery('#jform_joomla_plugin_group').closest('.control-group').show();
|
||||
// add required attribute to joomla_plugin_group field
|
||||
if (jform_vvvvwcgvxk_required)
|
||||
if (jform_vvvvwchvxk_required)
|
||||
{
|
||||
updateFieldRequired('joomla_plugin_group',0);
|
||||
jQuery('#jform_joomla_plugin_group').prop('required','required');
|
||||
jQuery('#jform_joomla_plugin_group').attr('aria-required',true);
|
||||
jQuery('#jform_joomla_plugin_group').addClass('required');
|
||||
jform_vvvvwcgvxk_required = false;
|
||||
jform_vvvvwchvxk_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_joomla_plugin_group').closest('.control-group').hide();
|
||||
// remove required attribute from joomla_plugin_group field
|
||||
if (!jform_vvvvwcgvxk_required)
|
||||
if (!jform_vvvvwchvxk_required)
|
||||
{
|
||||
updateFieldRequired('joomla_plugin_group',1);
|
||||
jQuery('#jform_joomla_plugin_group').removeAttr('required');
|
||||
jQuery('#jform_joomla_plugin_group').removeAttr('aria-required');
|
||||
jQuery('#jform_joomla_plugin_group').removeClass('required');
|
||||
jform_vvvvwcgvxk_required = true;
|
||||
jform_vvvvwchvxk_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcg Some function
|
||||
function extension_type_vvvvwcg_SomeFunc(extension_type_vvvvwcg)
|
||||
// the vvvvwch Some function
|
||||
function extension_type_vvvvwch_SomeFunc(extension_type_vvvvwch)
|
||||
{
|
||||
// set the function logic
|
||||
if (extension_type_vvvvwcg == 'plugins' || extension_type_vvvvwcg == 'plugin')
|
||||
if (extension_type_vvvvwch == 'plugins' || extension_type_vvvvwch == 'plugin')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -10,29 +10,29 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwcfvxj_required = false;
|
||||
jform_vvvvwcgvxj_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var extension_type_vvvvwcf = jQuery("#jform_extension_type").val();
|
||||
vvvvwcf(extension_type_vvvvwcf);
|
||||
var extension_type_vvvvwcg = jQuery("#jform_extension_type").val();
|
||||
vvvvwcg(extension_type_vvvvwcg);
|
||||
});
|
||||
|
||||
// the vvvvwcf function
|
||||
function vvvvwcf(extension_type_vvvvwcf)
|
||||
// the vvvvwcg function
|
||||
function vvvvwcg(extension_type_vvvvwcg)
|
||||
{
|
||||
if (isSet(extension_type_vvvvwcf) && extension_type_vvvvwcf.constructor !== Array)
|
||||
if (isSet(extension_type_vvvvwcg) && extension_type_vvvvwcg.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcf = extension_type_vvvvwcf;
|
||||
var extension_type_vvvvwcf = [];
|
||||
extension_type_vvvvwcf.push(temp_vvvvwcf);
|
||||
var temp_vvvvwcg = extension_type_vvvvwcg;
|
||||
var extension_type_vvvvwcg = [];
|
||||
extension_type_vvvvwcg.push(temp_vvvvwcg);
|
||||
}
|
||||
else if (!isSet(extension_type_vvvvwcf))
|
||||
else if (!isSet(extension_type_vvvvwcg))
|
||||
{
|
||||
var extension_type_vvvvwcf = [];
|
||||
var extension_type_vvvvwcg = [];
|
||||
}
|
||||
var extension_type = extension_type_vvvvwcf.some(extension_type_vvvvwcf_SomeFunc);
|
||||
var extension_type = extension_type_vvvvwcg.some(extension_type_vvvvwcg_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -40,35 +40,35 @@ function vvvvwcf(extension_type_vvvvwcf)
|
||||
{
|
||||
jQuery('#jform_joomla_plugin_group').closest('.control-group').show();
|
||||
// add required attribute to joomla_plugin_group field
|
||||
if (jform_vvvvwcfvxj_required)
|
||||
if (jform_vvvvwcgvxj_required)
|
||||
{
|
||||
updateFieldRequired('joomla_plugin_group',0);
|
||||
jQuery('#jform_joomla_plugin_group').prop('required','required');
|
||||
jQuery('#jform_joomla_plugin_group').attr('aria-required',true);
|
||||
jQuery('#jform_joomla_plugin_group').addClass('required');
|
||||
jform_vvvvwcfvxj_required = false;
|
||||
jform_vvvvwcgvxj_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_joomla_plugin_group').closest('.control-group').hide();
|
||||
// remove required attribute from joomla_plugin_group field
|
||||
if (!jform_vvvvwcfvxj_required)
|
||||
if (!jform_vvvvwcgvxj_required)
|
||||
{
|
||||
updateFieldRequired('joomla_plugin_group',1);
|
||||
jQuery('#jform_joomla_plugin_group').removeAttr('required');
|
||||
jQuery('#jform_joomla_plugin_group').removeAttr('aria-required');
|
||||
jQuery('#jform_joomla_plugin_group').removeClass('required');
|
||||
jform_vvvvwcfvxj_required = true;
|
||||
jform_vvvvwcgvxj_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcf Some function
|
||||
function extension_type_vvvvwcf_SomeFunc(extension_type_vvvvwcf)
|
||||
// the vvvvwcg Some function
|
||||
function extension_type_vvvvwcg_SomeFunc(extension_type_vvvvwcg)
|
||||
{
|
||||
// set the function logic
|
||||
if (extension_type_vvvvwcf == 'plugins' || extension_type_vvvvwcf == 'plugin')
|
||||
if (extension_type_vvvvwcg == 'plugins' || extension_type_vvvvwcg == 'plugin')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -12,42 +12,42 @@
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var add_php_view_vvvvwad = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwad(add_php_view_vvvvwad);
|
||||
var add_php_view_vvvvwae = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvwae(add_php_view_vvvvwae);
|
||||
|
||||
var add_php_jview_display_vvvvwae = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvwae(add_php_jview_display_vvvvwae);
|
||||
var add_php_jview_display_vvvvwaf = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvwaf(add_php_jview_display_vvvvwaf);
|
||||
|
||||
var add_php_jview_vvvvwaf = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvwaf(add_php_jview_vvvvwaf);
|
||||
var add_php_jview_vvvvwag = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvwag(add_php_jview_vvvvwag);
|
||||
|
||||
var add_php_document_vvvvwag = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvwag(add_php_document_vvvvwag);
|
||||
var add_php_document_vvvvwah = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvwah(add_php_document_vvvvwah);
|
||||
|
||||
var add_css_document_vvvvwah = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvwah(add_css_document_vvvvwah);
|
||||
var add_css_document_vvvvwai = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvwai(add_css_document_vvvvwai);
|
||||
|
||||
var add_javascript_file_vvvvwai = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvwai(add_javascript_file_vvvvwai);
|
||||
var add_javascript_file_vvvvwaj = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvwaj(add_javascript_file_vvvvwaj);
|
||||
|
||||
var add_js_document_vvvvwaj = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvwaj(add_js_document_vvvvwaj);
|
||||
var add_js_document_vvvvwak = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvwak(add_js_document_vvvvwak);
|
||||
|
||||
var add_custom_button_vvvvwak = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwak(add_custom_button_vvvvwak);
|
||||
var add_custom_button_vvvvwal = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvwal(add_custom_button_vvvvwal);
|
||||
|
||||
var add_css_vvvvwal = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvwal(add_css_vvvvwal);
|
||||
var add_css_vvvvwam = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvwam(add_css_vvvvwam);
|
||||
|
||||
var add_php_ajax_vvvvwam = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvwam(add_php_ajax_vvvvwam);
|
||||
var add_php_ajax_vvvvwan = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvwan(add_php_ajax_vvvvwan);
|
||||
});
|
||||
|
||||
// the vvvvwad function
|
||||
function vvvvwad(add_php_view_vvvvwad)
|
||||
// the vvvvwae function
|
||||
function vvvvwae(add_php_view_vvvvwae)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_view_vvvvwad == 1)
|
||||
if (add_php_view_vvvvwae == 1)
|
||||
{
|
||||
jQuery('#jform_php_view-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -57,11 +57,11 @@ function vvvvwad(add_php_view_vvvvwad)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwae function
|
||||
function vvvvwae(add_php_jview_display_vvvvwae)
|
||||
// the vvvvwaf function
|
||||
function vvvvwaf(add_php_jview_display_vvvvwaf)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_display_vvvvwae == 1)
|
||||
if (add_php_jview_display_vvvvwaf == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview_display-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -71,11 +71,11 @@ function vvvvwae(add_php_jview_display_vvvvwae)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaf function
|
||||
function vvvvwaf(add_php_jview_vvvvwaf)
|
||||
// the vvvvwag function
|
||||
function vvvvwag(add_php_jview_vvvvwag)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_jview_vvvvwaf == 1)
|
||||
if (add_php_jview_vvvvwag == 1)
|
||||
{
|
||||
jQuery('#jform_php_jview-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -85,11 +85,11 @@ function vvvvwaf(add_php_jview_vvvvwaf)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwag function
|
||||
function vvvvwag(add_php_document_vvvvwag)
|
||||
// the vvvvwah function
|
||||
function vvvvwah(add_php_document_vvvvwah)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_document_vvvvwag == 1)
|
||||
if (add_php_document_vvvvwah == 1)
|
||||
{
|
||||
jQuery('#jform_php_document-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -99,11 +99,11 @@ function vvvvwag(add_php_document_vvvvwag)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwah function
|
||||
function vvvvwah(add_css_document_vvvvwah)
|
||||
// the vvvvwai function
|
||||
function vvvvwai(add_css_document_vvvvwai)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_document_vvvvwah == 1)
|
||||
if (add_css_document_vvvvwai == 1)
|
||||
{
|
||||
jQuery('#jform_css_document-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -113,11 +113,11 @@ function vvvvwah(add_css_document_vvvvwah)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwai function
|
||||
function vvvvwai(add_javascript_file_vvvvwai)
|
||||
// the vvvvwaj function
|
||||
function vvvvwaj(add_javascript_file_vvvvwaj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_file_vvvvwai == 1)
|
||||
if (add_javascript_file_vvvvwaj == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_file-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -127,11 +127,11 @@ function vvvvwai(add_javascript_file_vvvvwai)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwaj function
|
||||
function vvvvwaj(add_js_document_vvvvwaj)
|
||||
// the vvvvwak function
|
||||
function vvvvwak(add_js_document_vvvvwak)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_js_document_vvvvwaj == 1)
|
||||
if (add_js_document_vvvvwak == 1)
|
||||
{
|
||||
jQuery('#jform_js_document-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -141,11 +141,11 @@ function vvvvwaj(add_js_document_vvvvwaj)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwak function
|
||||
function vvvvwak(add_custom_button_vvvvwak)
|
||||
// the vvvvwal function
|
||||
function vvvvwal(add_custom_button_vvvvwal)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_custom_button_vvvvwak == 1)
|
||||
if (add_custom_button_vvvvwal == 1)
|
||||
{
|
||||
jQuery('#jform_custom_button-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_controller-lbl').closest('.control-group').show();
|
||||
@ -159,11 +159,11 @@ function vvvvwak(add_custom_button_vvvvwak)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwal function
|
||||
function vvvvwal(add_css_vvvvwal)
|
||||
// the vvvvwam function
|
||||
function vvvvwam(add_css_vvvvwam)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_vvvvwal == 1)
|
||||
if (add_css_vvvvwam == 1)
|
||||
{
|
||||
jQuery('#jform_css-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -173,11 +173,11 @@ function vvvvwal(add_css_vvvvwal)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwam function
|
||||
function vvvvwam(add_php_ajax_vvvvwam)
|
||||
// the vvvvwan function
|
||||
function vvvvwan(add_php_ajax_vvvvwan)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_php_ajax_vvvvwam == 1)
|
||||
if (add_php_ajax_vvvvwan == 1)
|
||||
{
|
||||
jQuery('#jform_ajax_input-lbl').closest('.control-group').show();
|
||||
jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show();
|
||||
|
@ -10,44 +10,44 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwcbvxf_required = false;
|
||||
jform_vvvvwccvxg_required = false;
|
||||
jform_vvvvwccvxh_required = false;
|
||||
jform_vvvvwccvxi_required = false;
|
||||
jform_vvvvwccvxf_required = false;
|
||||
jform_vvvvwcdvxg_required = false;
|
||||
jform_vvvvwcdvxh_required = false;
|
||||
jform_vvvvwcdvxi_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var target_vvvvwcb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcb(target_vvvvwcb);
|
||||
|
||||
var target_vvvvwcc = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcc(target_vvvvwcc);
|
||||
|
||||
var target_vvvvwcd = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwcd = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwcd(target_vvvvwcd,type_vvvvwcd);
|
||||
vvvvwcd(target_vvvvwcd);
|
||||
|
||||
var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwce = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwce(type_vvvvwce,target_vvvvwce);
|
||||
var type_vvvvwce = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwce(target_vvvvwce,type_vvvvwce);
|
||||
|
||||
var type_vvvvwcf = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwcf = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcf(type_vvvvwcf,target_vvvvwcf);
|
||||
});
|
||||
|
||||
// the vvvvwcb function
|
||||
function vvvvwcb(target_vvvvwcb)
|
||||
// the vvvvwcc function
|
||||
function vvvvwcc(target_vvvvwcc)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwcb == 2)
|
||||
if (target_vvvvwcc == 2)
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').show();
|
||||
// add required attribute to function_name field
|
||||
if (jform_vvvvwcbvxf_required)
|
||||
if (jform_vvvvwccvxf_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_vvvvwcbvxf_required = false;
|
||||
jform_vvvvwccvxf_required = false;
|
||||
}
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').show();
|
||||
jQuery('#jform_system_name').closest('.control-group').show();
|
||||
@ -56,102 +56,102 @@ function vvvvwcb(target_vvvvwcb)
|
||||
{
|
||||
jQuery('#jform_function_name').closest('.control-group').hide();
|
||||
// remove required attribute from function_name field
|
||||
if (!jform_vvvvwcbvxf_required)
|
||||
if (!jform_vvvvwccvxf_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_vvvvwcbvxf_required = true;
|
||||
jform_vvvvwccvxf_required = true;
|
||||
}
|
||||
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
|
||||
jQuery('#jform_system_name').closest('.control-group').hide();
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcc function
|
||||
function vvvvwcc(target_vvvvwcc)
|
||||
// the vvvvwcd function
|
||||
function vvvvwcd(target_vvvvwcd)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwcc == 1)
|
||||
if (target_vvvvwcd == 1)
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').show();
|
||||
// add required attribute to component field
|
||||
if (jform_vvvvwccvxg_required)
|
||||
if (jform_vvvvwcdvxg_required)
|
||||
{
|
||||
updateFieldRequired('component',0);
|
||||
jQuery('#jform_component').prop('required','required');
|
||||
jQuery('#jform_component').attr('aria-required',true);
|
||||
jQuery('#jform_component').addClass('required');
|
||||
jform_vvvvwccvxg_required = false;
|
||||
jform_vvvvwcdvxg_required = false;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').show();
|
||||
// add required attribute to path field
|
||||
if (jform_vvvvwccvxh_required)
|
||||
if (jform_vvvvwcdvxh_required)
|
||||
{
|
||||
updateFieldRequired('path',0);
|
||||
jQuery('#jform_path').prop('required','required');
|
||||
jQuery('#jform_path').attr('aria-required',true);
|
||||
jQuery('#jform_path').addClass('required');
|
||||
jform_vvvvwccvxh_required = false;
|
||||
jform_vvvvwcdvxh_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_vvvvwccvxi_required)
|
||||
if (jform_vvvvwcdvxi_required)
|
||||
{
|
||||
updateFieldRequired('type',0);
|
||||
jQuery('#jform_type').prop('required','required');
|
||||
jQuery('#jform_type').attr('aria-required',true);
|
||||
jQuery('#jform_type').addClass('required');
|
||||
jform_vvvvwccvxi_required = false;
|
||||
jform_vvvvwcdvxi_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_component').closest('.control-group').hide();
|
||||
// remove required attribute from component field
|
||||
if (!jform_vvvvwccvxg_required)
|
||||
if (!jform_vvvvwcdvxg_required)
|
||||
{
|
||||
updateFieldRequired('component',1);
|
||||
jQuery('#jform_component').removeAttr('required');
|
||||
jQuery('#jform_component').removeAttr('aria-required');
|
||||
jQuery('#jform_component').removeClass('required');
|
||||
jform_vvvvwccvxg_required = true;
|
||||
jform_vvvvwcdvxg_required = true;
|
||||
}
|
||||
jQuery('#jform_path').closest('.control-group').hide();
|
||||
// remove required attribute from path field
|
||||
if (!jform_vvvvwccvxh_required)
|
||||
if (!jform_vvvvwcdvxh_required)
|
||||
{
|
||||
updateFieldRequired('path',1);
|
||||
jQuery('#jform_path').removeAttr('required');
|
||||
jQuery('#jform_path').removeAttr('aria-required');
|
||||
jQuery('#jform_path').removeClass('required');
|
||||
jform_vvvvwccvxh_required = true;
|
||||
jform_vvvvwcdvxh_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_vvvvwccvxi_required)
|
||||
if (!jform_vvvvwcdvxi_required)
|
||||
{
|
||||
updateFieldRequired('type',1);
|
||||
jQuery('#jform_type').removeAttr('required');
|
||||
jQuery('#jform_type').removeAttr('aria-required');
|
||||
jQuery('#jform_type').removeClass('required');
|
||||
jform_vvvvwccvxi_required = true;
|
||||
jform_vvvvwcdvxi_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcd function
|
||||
function vvvvwcd(target_vvvvwcd,type_vvvvwcd)
|
||||
// the vvvvwce function
|
||||
function vvvvwce(target_vvvvwce,type_vvvvwce)
|
||||
{
|
||||
// set the function logic
|
||||
if (target_vvvvwcd == 1 && type_vvvvwcd == 1)
|
||||
if (target_vvvvwce == 1 && type_vvvvwce == 1)
|
||||
{
|
||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
@ -163,11 +163,11 @@ function vvvvwcd(target_vvvvwcd,type_vvvvwcd)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwce function
|
||||
function vvvvwce(type_vvvvwce,target_vvvvwce)
|
||||
// the vvvvwcf function
|
||||
function vvvvwcf(type_vvvvwcf,target_vvvvwcf)
|
||||
{
|
||||
// set the function logic
|
||||
if (type_vvvvwce == 1 && target_vvvvwce == 1)
|
||||
if (type_vvvvwcf == 1 && target_vvvvwcf == 1)
|
||||
{
|
||||
jQuery('#jform_hashendtarget').closest('.control-group').show();
|
||||
jQuery('#jform_to_line').closest('.control-group').show();
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -10,62 +10,62 @@
|
||||
*/
|
||||
|
||||
// Some Global Values
|
||||
jform_vvvvwczvxo_required = false;
|
||||
jform_vvvvwdavxp_required = false;
|
||||
jform_vvvvwdbvxq_required = false;
|
||||
jform_vvvvwdcvxr_required = false;
|
||||
jform_vvvvwdfvxs_required = false;
|
||||
jform_vvvvwdfvxt_required = false;
|
||||
jform_vvvvwdavxo_required = false;
|
||||
jform_vvvvwdbvxp_required = false;
|
||||
jform_vvvvwdcvxq_required = false;
|
||||
jform_vvvvwddvxr_required = false;
|
||||
jform_vvvvwdgvxs_required = false;
|
||||
jform_vvvvwdgvxt_required = false;
|
||||
|
||||
// Initial Script
|
||||
jQuery(document).ready(function()
|
||||
{
|
||||
var datalenght_vvvvwcz = jQuery("#jform_datalenght").val();
|
||||
vvvvwcz(datalenght_vvvvwcz);
|
||||
var datalenght_vvvvwda = jQuery("#jform_datalenght").val();
|
||||
vvvvwda(datalenght_vvvvwda);
|
||||
|
||||
var datadefault_vvvvwda = jQuery("#jform_datadefault").val();
|
||||
vvvvwda(datadefault_vvvvwda);
|
||||
|
||||
var datatype_vvvvwdb = jQuery("#jform_datatype").val();
|
||||
vvvvwdb(datatype_vvvvwdb);
|
||||
var datadefault_vvvvwdb = jQuery("#jform_datadefault").val();
|
||||
vvvvwdb(datadefault_vvvvwdb);
|
||||
|
||||
var datatype_vvvvwdc = jQuery("#jform_datatype").val();
|
||||
vvvvwdc(datatype_vvvvwdc);
|
||||
|
||||
var store_vvvvwdd = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwdd = jQuery("#jform_datatype").val();
|
||||
vvvvwdd(store_vvvvwdd,datatype_vvvvwdd);
|
||||
vvvvwdd(datatype_vvvvwdd);
|
||||
|
||||
var store_vvvvwdf = jQuery("#jform_store").val();
|
||||
vvvvwdf(store_vvvvwdf);
|
||||
var store_vvvvwde = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwde = jQuery("#jform_datatype").val();
|
||||
vvvvwde(store_vvvvwde,datatype_vvvvwde);
|
||||
|
||||
var add_css_view_vvvvwdg = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwdg(add_css_view_vvvvwdg);
|
||||
var store_vvvvwdg = jQuery("#jform_store").val();
|
||||
vvvvwdg(store_vvvvwdg);
|
||||
|
||||
var add_css_views_vvvvwdh = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwdh(add_css_views_vvvvwdh);
|
||||
var add_css_view_vvvvwdh = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwdh(add_css_view_vvvvwdh);
|
||||
|
||||
var add_javascript_view_footer_vvvvwdi = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwdi(add_javascript_view_footer_vvvvwdi);
|
||||
var add_css_views_vvvvwdi = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwdi(add_css_views_vvvvwdi);
|
||||
|
||||
var add_javascript_views_footer_vvvvwdj = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwdj(add_javascript_views_footer_vvvvwdj);
|
||||
var add_javascript_view_footer_vvvvwdj = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwdj(add_javascript_view_footer_vvvvwdj);
|
||||
|
||||
var add_javascript_views_footer_vvvvwdk = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwdk(add_javascript_views_footer_vvvvwdk);
|
||||
});
|
||||
|
||||
// the vvvvwcz function
|
||||
function vvvvwcz(datalenght_vvvvwcz)
|
||||
// the vvvvwda function
|
||||
function vvvvwda(datalenght_vvvvwda)
|
||||
{
|
||||
if (isSet(datalenght_vvvvwcz) && datalenght_vvvvwcz.constructor !== Array)
|
||||
if (isSet(datalenght_vvvvwda) && datalenght_vvvvwda.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwcz = datalenght_vvvvwcz;
|
||||
var datalenght_vvvvwcz = [];
|
||||
datalenght_vvvvwcz.push(temp_vvvvwcz);
|
||||
var temp_vvvvwda = datalenght_vvvvwda;
|
||||
var datalenght_vvvvwda = [];
|
||||
datalenght_vvvvwda.push(temp_vvvvwda);
|
||||
}
|
||||
else if (!isSet(datalenght_vvvvwcz))
|
||||
else if (!isSet(datalenght_vvvvwda))
|
||||
{
|
||||
var datalenght_vvvvwcz = [];
|
||||
var datalenght_vvvvwda = [];
|
||||
}
|
||||
var datalenght = datalenght_vvvvwcz.some(datalenght_vvvvwcz_SomeFunc);
|
||||
var datalenght = datalenght_vvvvwda.some(datalenght_vvvvwda_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -73,91 +73,35 @@ function vvvvwcz(datalenght_vvvvwcz)
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').show();
|
||||
// add required attribute to datalenght_other field
|
||||
if (jform_vvvvwczvxo_required)
|
||||
if (jform_vvvvwdavxo_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_vvvvwczvxo_required = false;
|
||||
jform_vvvvwdavxo_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datalenght_other').closest('.control-group').hide();
|
||||
// remove required attribute from datalenght_other field
|
||||
if (!jform_vvvvwczvxo_required)
|
||||
if (!jform_vvvvwdavxo_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_vvvvwczvxo_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwcz Some function
|
||||
function datalenght_vvvvwcz_SomeFunc(datalenght_vvvvwcz)
|
||||
{
|
||||
// set the function logic
|
||||
if (datalenght_vvvvwcz == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwda function
|
||||
function vvvvwda(datadefault_vvvvwda)
|
||||
{
|
||||
if (isSet(datadefault_vvvvwda) && datadefault_vvvvwda.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwda = datadefault_vvvvwda;
|
||||
var datadefault_vvvvwda = [];
|
||||
datadefault_vvvvwda.push(temp_vvvvwda);
|
||||
}
|
||||
else if (!isSet(datadefault_vvvvwda))
|
||||
{
|
||||
var datadefault_vvvvwda = [];
|
||||
}
|
||||
var datadefault = datadefault_vvvvwda.some(datadefault_vvvvwda_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datadefault)
|
||||
{
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').show();
|
||||
// add required attribute to datadefault_other field
|
||||
if (jform_vvvvwdavxp_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_vvvvwdavxp_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
||||
// remove required attribute from datadefault_other field
|
||||
if (!jform_vvvvwdavxp_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_vvvvwdavxp_required = true;
|
||||
jform_vvvvwdavxo_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwda Some function
|
||||
function datadefault_vvvvwda_SomeFunc(datadefault_vvvvwda)
|
||||
function datalenght_vvvvwda_SomeFunc(datalenght_vvvvwda)
|
||||
{
|
||||
// set the function logic
|
||||
if (datadefault_vvvvwda == 'Other')
|
||||
if (datalenght_vvvvwda == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -165,57 +109,55 @@ function datadefault_vvvvwda_SomeFunc(datadefault_vvvvwda)
|
||||
}
|
||||
|
||||
// the vvvvwdb function
|
||||
function vvvvwdb(datatype_vvvvwdb)
|
||||
function vvvvwdb(datadefault_vvvvwdb)
|
||||
{
|
||||
if (isSet(datatype_vvvvwdb) && datatype_vvvvwdb.constructor !== Array)
|
||||
if (isSet(datadefault_vvvvwdb) && datadefault_vvvvwdb.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdb = datatype_vvvvwdb;
|
||||
var datatype_vvvvwdb = [];
|
||||
datatype_vvvvwdb.push(temp_vvvvwdb);
|
||||
var temp_vvvvwdb = datadefault_vvvvwdb;
|
||||
var datadefault_vvvvwdb = [];
|
||||
datadefault_vvvvwdb.push(temp_vvvvwdb);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwdb))
|
||||
else if (!isSet(datadefault_vvvvwdb))
|
||||
{
|
||||
var datatype_vvvvwdb = [];
|
||||
var datadefault_vvvvwdb = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwdb.some(datatype_vvvvwdb_SomeFunc);
|
||||
var datadefault = datadefault_vvvvwdb.some(datadefault_vvvvwdb_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datatype)
|
||||
if (datadefault)
|
||||
{
|
||||
jQuery('#jform_datadefault').closest('.control-group').show();
|
||||
jQuery('#jform_indexes').closest('.control-group').show();
|
||||
// add required attribute to indexes field
|
||||
if (jform_vvvvwdbvxq_required)
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').show();
|
||||
// add required attribute to datadefault_other field
|
||||
if (jform_vvvvwdbvxp_required)
|
||||
{
|
||||
updateFieldRequired('indexes',0);
|
||||
jQuery('#jform_indexes').prop('required','required');
|
||||
jQuery('#jform_indexes').attr('aria-required',true);
|
||||
jQuery('#jform_indexes').addClass('required');
|
||||
jform_vvvvwdbvxq_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_vvvvwdbvxp_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datadefault').closest('.control-group').hide();
|
||||
jQuery('#jform_indexes').closest('.control-group').hide();
|
||||
// remove required attribute from indexes field
|
||||
if (!jform_vvvvwdbvxq_required)
|
||||
jQuery('#jform_datadefault_other').closest('.control-group').hide();
|
||||
// remove required attribute from datadefault_other field
|
||||
if (!jform_vvvvwdbvxp_required)
|
||||
{
|
||||
updateFieldRequired('indexes',1);
|
||||
jQuery('#jform_indexes').removeAttr('required');
|
||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||
jQuery('#jform_indexes').removeClass('required');
|
||||
jform_vvvvwdbvxq_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_vvvvwdbvxp_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdb Some function
|
||||
function datatype_vvvvwdb_SomeFunc(datatype_vvvvwdb)
|
||||
function datadefault_vvvvwdb_SomeFunc(datadefault_vvvvwdb)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwdb == 'CHAR' || datatype_vvvvwdb == 'VARCHAR' || datatype_vvvvwdb == 'DATETIME' || datatype_vvvvwdb == 'DATE' || datatype_vvvvwdb == 'TIME' || datatype_vvvvwdb == 'INT' || datatype_vvvvwdb == 'TINYINT' || datatype_vvvvwdb == 'BIGINT' || datatype_vvvvwdb == 'FLOAT' || datatype_vvvvwdb == 'DECIMAL' || datatype_vvvvwdb == 'DOUBLE')
|
||||
if (datadefault_vvvvwdb == 'Other')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -241,28 +183,30 @@ function vvvvwdc(datatype_vvvvwdc)
|
||||
// set this function logic
|
||||
if (datatype)
|
||||
{
|
||||
jQuery('#jform_datalenght').closest('.control-group').show();
|
||||
// add required attribute to datalenght field
|
||||
if (jform_vvvvwdcvxr_required)
|
||||
jQuery('#jform_datadefault').closest('.control-group').show();
|
||||
jQuery('#jform_indexes').closest('.control-group').show();
|
||||
// add required attribute to indexes field
|
||||
if (jform_vvvvwdcvxq_required)
|
||||
{
|
||||
updateFieldRequired('datalenght',0);
|
||||
jQuery('#jform_datalenght').prop('required','required');
|
||||
jQuery('#jform_datalenght').attr('aria-required',true);
|
||||
jQuery('#jform_datalenght').addClass('required');
|
||||
jform_vvvvwdcvxr_required = false;
|
||||
updateFieldRequired('indexes',0);
|
||||
jQuery('#jform_indexes').prop('required','required');
|
||||
jQuery('#jform_indexes').attr('aria-required',true);
|
||||
jQuery('#jform_indexes').addClass('required');
|
||||
jform_vvvvwdcvxq_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datalenght').closest('.control-group').hide();
|
||||
// remove required attribute from datalenght field
|
||||
if (!jform_vvvvwdcvxr_required)
|
||||
jQuery('#jform_datadefault').closest('.control-group').hide();
|
||||
jQuery('#jform_indexes').closest('.control-group').hide();
|
||||
// remove required attribute from indexes field
|
||||
if (!jform_vvvvwdcvxq_required)
|
||||
{
|
||||
updateFieldRequired('datalenght',1);
|
||||
jQuery('#jform_datalenght').removeAttr('required');
|
||||
jQuery('#jform_datalenght').removeAttr('aria-required');
|
||||
jQuery('#jform_datalenght').removeClass('required');
|
||||
jform_vvvvwdcvxr_required = true;
|
||||
updateFieldRequired('indexes',1);
|
||||
jQuery('#jform_indexes').removeAttr('required');
|
||||
jQuery('#jform_indexes').removeAttr('aria-required');
|
||||
jQuery('#jform_indexes').removeClass('required');
|
||||
jform_vvvvwdcvxq_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -271,7 +215,7 @@ function vvvvwdc(datatype_vvvvwdc)
|
||||
function datatype_vvvvwdc_SomeFunc(datatype_vvvvwdc)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwdc == 'CHAR' || datatype_vvvvwdc == 'VARCHAR' || datatype_vvvvwdc == 'INT' || datatype_vvvvwdc == 'TINYINT' || datatype_vvvvwdc == 'BIGINT' || datatype_vvvvwdc == 'FLOAT' || datatype_vvvvwdc == 'DECIMAL' || datatype_vvvvwdc == 'DOUBLE')
|
||||
if (datatype_vvvvwdc == 'CHAR' || datatype_vvvvwdc == 'VARCHAR' || datatype_vvvvwdc == 'DATETIME' || datatype_vvvvwdc == 'DATE' || datatype_vvvvwdc == 'TIME' || datatype_vvvvwdc == 'INT' || datatype_vvvvwdc == 'TINYINT' || datatype_vvvvwdc == 'BIGINT' || datatype_vvvvwdc == 'FLOAT' || datatype_vvvvwdc == 'DECIMAL' || datatype_vvvvwdc == 'DOUBLE')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@ -279,20 +223,8 @@ function datatype_vvvvwdc_SomeFunc(datatype_vvvvwdc)
|
||||
}
|
||||
|
||||
// the vvvvwdd function
|
||||
function vvvvwdd(store_vvvvwdd,datatype_vvvvwdd)
|
||||
function vvvvwdd(datatype_vvvvwdd)
|
||||
{
|
||||
if (isSet(store_vvvvwdd) && store_vvvvwdd.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdd = store_vvvvwdd;
|
||||
var store_vvvvwdd = [];
|
||||
store_vvvvwdd.push(temp_vvvvwdd);
|
||||
}
|
||||
else if (!isSet(store_vvvvwdd))
|
||||
{
|
||||
var store_vvvvwdd = [];
|
||||
}
|
||||
var store = store_vvvvwdd.some(store_vvvvwdd_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwdd) && datatype_vvvvwdd.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdd = datatype_vvvvwdd;
|
||||
@ -306,6 +238,74 @@ function vvvvwdd(store_vvvvwdd,datatype_vvvvwdd)
|
||||
var datatype = datatype_vvvvwdd.some(datatype_vvvvwdd_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (datatype)
|
||||
{
|
||||
jQuery('#jform_datalenght').closest('.control-group').show();
|
||||
// add required attribute to datalenght field
|
||||
if (jform_vvvvwddvxr_required)
|
||||
{
|
||||
updateFieldRequired('datalenght',0);
|
||||
jQuery('#jform_datalenght').prop('required','required');
|
||||
jQuery('#jform_datalenght').attr('aria-required',true);
|
||||
jQuery('#jform_datalenght').addClass('required');
|
||||
jform_vvvvwddvxr_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
jQuery('#jform_datalenght').closest('.control-group').hide();
|
||||
// remove required attribute from datalenght field
|
||||
if (!jform_vvvvwddvxr_required)
|
||||
{
|
||||
updateFieldRequired('datalenght',1);
|
||||
jQuery('#jform_datalenght').removeAttr('required');
|
||||
jQuery('#jform_datalenght').removeAttr('aria-required');
|
||||
jQuery('#jform_datalenght').removeClass('required');
|
||||
jform_vvvvwddvxr_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdd Some function
|
||||
function datatype_vvvvwdd_SomeFunc(datatype_vvvvwdd)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwdd == 'CHAR' || datatype_vvvvwdd == 'VARCHAR' || datatype_vvvvwdd == 'INT' || datatype_vvvvwdd == 'TINYINT' || datatype_vvvvwdd == 'BIGINT' || datatype_vvvvwdd == 'FLOAT' || datatype_vvvvwdd == 'DECIMAL' || datatype_vvvvwdd == 'DOUBLE')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwde function
|
||||
function vvvvwde(store_vvvvwde,datatype_vvvvwde)
|
||||
{
|
||||
if (isSet(store_vvvvwde) && store_vvvvwde.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwde = store_vvvvwde;
|
||||
var store_vvvvwde = [];
|
||||
store_vvvvwde.push(temp_vvvvwde);
|
||||
}
|
||||
else if (!isSet(store_vvvvwde))
|
||||
{
|
||||
var store_vvvvwde = [];
|
||||
}
|
||||
var store = store_vvvvwde.some(store_vvvvwde_SomeFunc);
|
||||
|
||||
if (isSet(datatype_vvvvwde) && datatype_vvvvwde.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwde = datatype_vvvvwde;
|
||||
var datatype_vvvvwde = [];
|
||||
datatype_vvvvwde.push(temp_vvvvwde);
|
||||
}
|
||||
else if (!isSet(datatype_vvvvwde))
|
||||
{
|
||||
var datatype_vvvvwde = [];
|
||||
}
|
||||
var datatype = datatype_vvvvwde.some(datatype_vvvvwde_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
if (store && datatype)
|
||||
{
|
||||
@ -317,42 +317,42 @@ function vvvvwdd(store_vvvvwdd,datatype_vvvvwdd)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdd Some function
|
||||
function store_vvvvwdd_SomeFunc(store_vvvvwdd)
|
||||
// the vvvvwde Some function
|
||||
function store_vvvvwde_SomeFunc(store_vvvvwde)
|
||||
{
|
||||
// set the function logic
|
||||
if (store_vvvvwdd == 4)
|
||||
if (store_vvvvwde == 4)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwdd Some function
|
||||
function datatype_vvvvwdd_SomeFunc(datatype_vvvvwdd)
|
||||
// the vvvvwde Some function
|
||||
function datatype_vvvvwde_SomeFunc(datatype_vvvvwde)
|
||||
{
|
||||
// set the function logic
|
||||
if (datatype_vvvvwdd == 'CHAR' || datatype_vvvvwdd == 'VARCHAR' || datatype_vvvvwdd == 'TEXT' || datatype_vvvvwdd == 'MEDIUMTEXT' || datatype_vvvvwdd == 'LONGTEXT' || datatype_vvvvwdd == 'BLOB' || datatype_vvvvwdd == 'TINYBLOB' || datatype_vvvvwdd == 'MEDIUMBLOB' || datatype_vvvvwdd == 'LONGBLOB')
|
||||
if (datatype_vvvvwde == 'CHAR' || datatype_vvvvwde == 'VARCHAR' || datatype_vvvvwde == 'TEXT' || datatype_vvvvwde == 'MEDIUMTEXT' || datatype_vvvvwde == 'LONGTEXT' || datatype_vvvvwde == 'BLOB' || datatype_vvvvwde == 'TINYBLOB' || datatype_vvvvwde == 'MEDIUMBLOB' || datatype_vvvvwde == 'LONGBLOB')
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwdf function
|
||||
function vvvvwdf(store_vvvvwdf)
|
||||
// the vvvvwdg function
|
||||
function vvvvwdg(store_vvvvwdg)
|
||||
{
|
||||
if (isSet(store_vvvvwdf) && store_vvvvwdf.constructor !== Array)
|
||||
if (isSet(store_vvvvwdg) && store_vvvvwdg.constructor !== Array)
|
||||
{
|
||||
var temp_vvvvwdf = store_vvvvwdf;
|
||||
var store_vvvvwdf = [];
|
||||
store_vvvvwdf.push(temp_vvvvwdf);
|
||||
var temp_vvvvwdg = store_vvvvwdg;
|
||||
var store_vvvvwdg = [];
|
||||
store_vvvvwdg.push(temp_vvvvwdg);
|
||||
}
|
||||
else if (!isSet(store_vvvvwdf))
|
||||
else if (!isSet(store_vvvvwdg))
|
||||
{
|
||||
var store_vvvvwdf = [];
|
||||
var store_vvvvwdg = [];
|
||||
}
|
||||
var store = store_vvvvwdf.some(store_vvvvwdf_SomeFunc);
|
||||
var store = store_vvvvwdg.some(store_vvvvwdg_SomeFunc);
|
||||
|
||||
|
||||
// set this function logic
|
||||
@ -363,23 +363,23 @@ function vvvvwdf(store_vvvvwdf)
|
||||
jQuery('.note_expert_field_save_mode').closest('.control-group').show();
|
||||
jQuery('#jform_on_get_model_field').closest('.control-group').show();
|
||||
// add required attribute to on_get_model_field field
|
||||
if (jform_vvvvwdfvxs_required)
|
||||
if (jform_vvvvwdgvxs_required)
|
||||
{
|
||||
updateFieldRequired('on_get_model_field',0);
|
||||
jQuery('#jform_on_get_model_field').prop('required','required');
|
||||
jQuery('#jform_on_get_model_field').attr('aria-required',true);
|
||||
jQuery('#jform_on_get_model_field').addClass('required');
|
||||
jform_vvvvwdfvxs_required = false;
|
||||
jform_vvvvwdgvxs_required = false;
|
||||
}
|
||||
jQuery('#jform_on_save_model_field').closest('.control-group').show();
|
||||
// add required attribute to on_save_model_field field
|
||||
if (jform_vvvvwdfvxt_required)
|
||||
if (jform_vvvvwdgvxt_required)
|
||||
{
|
||||
updateFieldRequired('on_save_model_field',0);
|
||||
jQuery('#jform_on_save_model_field').prop('required','required');
|
||||
jQuery('#jform_on_save_model_field').attr('aria-required',true);
|
||||
jQuery('#jform_on_save_model_field').addClass('required');
|
||||
jform_vvvvwdfvxt_required = false;
|
||||
jform_vvvvwdgvxt_required = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
@ -389,43 +389,43 @@ function vvvvwdf(store_vvvvwdf)
|
||||
jQuery('.note_expert_field_save_mode').closest('.control-group').hide();
|
||||
jQuery('#jform_on_get_model_field').closest('.control-group').hide();
|
||||
// remove required attribute from on_get_model_field field
|
||||
if (!jform_vvvvwdfvxs_required)
|
||||
if (!jform_vvvvwdgvxs_required)
|
||||
{
|
||||
updateFieldRequired('on_get_model_field',1);
|
||||
jQuery('#jform_on_get_model_field').removeAttr('required');
|
||||
jQuery('#jform_on_get_model_field').removeAttr('aria-required');
|
||||
jQuery('#jform_on_get_model_field').removeClass('required');
|
||||
jform_vvvvwdfvxs_required = true;
|
||||
jform_vvvvwdgvxs_required = true;
|
||||
}
|
||||
jQuery('#jform_on_save_model_field').closest('.control-group').hide();
|
||||
// remove required attribute from on_save_model_field field
|
||||
if (!jform_vvvvwdfvxt_required)
|
||||
if (!jform_vvvvwdgvxt_required)
|
||||
{
|
||||
updateFieldRequired('on_save_model_field',1);
|
||||
jQuery('#jform_on_save_model_field').removeAttr('required');
|
||||
jQuery('#jform_on_save_model_field').removeAttr('aria-required');
|
||||
jQuery('#jform_on_save_model_field').removeClass('required');
|
||||
jform_vvvvwdfvxt_required = true;
|
||||
jform_vvvvwdgvxt_required = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdf Some function
|
||||
function store_vvvvwdf_SomeFunc(store_vvvvwdf)
|
||||
// the vvvvwdg Some function
|
||||
function store_vvvvwdg_SomeFunc(store_vvvvwdg)
|
||||
{
|
||||
// set the function logic
|
||||
if (store_vvvvwdf == 6)
|
||||
if (store_vvvvwdg == 6)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// the vvvvwdg function
|
||||
function vvvvwdg(add_css_view_vvvvwdg)
|
||||
// the vvvvwdh function
|
||||
function vvvvwdh(add_css_view_vvvvwdh)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_view_vvvvwdg == 1)
|
||||
if (add_css_view_vvvvwdh == 1)
|
||||
{
|
||||
jQuery('#jform_css_view-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -435,11 +435,11 @@ function vvvvwdg(add_css_view_vvvvwdg)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdh function
|
||||
function vvvvwdh(add_css_views_vvvvwdh)
|
||||
// the vvvvwdi function
|
||||
function vvvvwdi(add_css_views_vvvvwdi)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_css_views_vvvvwdh == 1)
|
||||
if (add_css_views_vvvvwdi == 1)
|
||||
{
|
||||
jQuery('#jform_css_views-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -449,11 +449,11 @@ function vvvvwdh(add_css_views_vvvvwdh)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdi function
|
||||
function vvvvwdi(add_javascript_view_footer_vvvvwdi)
|
||||
// the vvvvwdj function
|
||||
function vvvvwdj(add_javascript_view_footer_vvvvwdj)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_view_footer_vvvvwdi == 1)
|
||||
if (add_javascript_view_footer_vvvvwdj == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show();
|
||||
}
|
||||
@ -463,11 +463,11 @@ function vvvvwdi(add_javascript_view_footer_vvvvwdi)
|
||||
}
|
||||
}
|
||||
|
||||
// the vvvvwdj function
|
||||
function vvvvwdj(add_javascript_views_footer_vvvvwdj)
|
||||
// the vvvvwdk function
|
||||
function vvvvwdk(add_javascript_views_footer_vvvvwdk)
|
||||
{
|
||||
// set the function logic
|
||||
if (add_javascript_views_footer_vvvvwdj == 1)
|
||||
if (add_javascript_views_footer_vvvvwdk == 1)
|
||||
{
|
||||
jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show();
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user