Added Wiki to JCB. Resolved gh-125 to insure phone numbers are treated as strings. Resolved gh-128 by adding field to Joomla Component View that allows javascript to be added globaly. Converted a few more repeatable fields to subform fields, this is an ongoing project to remove repeatable fields from JCB.

This commit is contained in:
2017-10-06 16:53:22 +02:00
parent 5bb5e3e909
commit f2f78411e2
392 changed files with 7069 additions and 6609 deletions

View File

@@ -310,7 +310,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVxyfields()
public function getVxzfields()
{
// Get the user object.
$user = JFactory::getUser();
@@ -379,13 +379,13 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
$item->datatype = $this->selectionTranslationVxyfields($item->datatype, 'datatype');
$item->datatype = $this->selectionTranslationVxzfields($item->datatype, 'datatype');
// convert indexes
$item->indexes = $this->selectionTranslationVxyfields($item->indexes, 'indexes');
$item->indexes = $this->selectionTranslationVxzfields($item->indexes, 'indexes');
// convert null_switch
$item->null_switch = $this->selectionTranslationVxyfields($item->null_switch, 'null_switch');
$item->null_switch = $this->selectionTranslationVxzfields($item->null_switch, 'null_switch');
// convert store
$item->store = $this->selectionTranslationVxyfields($item->store, 'store');
$item->store = $this->selectionTranslationVxzfields($item->store, 'store');
}
}
@@ -425,7 +425,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationVxyfields($value,$name)
public function selectionTranslationVxzfields($value,$name)
{
// Array of datatype language strings
if ($name === 'datatype')
@@ -503,7 +503,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVxzlinked_components()
public function getVyalinked_components()
{
// Get the user object.
$user = JFactory::getUser();

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage ajax.php
@@ -319,248 +319,6 @@ class ComponentbuilderModelAjax extends JModelList
}
// Used in layout
public function getSnippetDetails($id)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('name', 'heading', 'usage', 'description', 'type', 'snippet', 'url')));
$query->from($db->quoteName('#__componentbuilder_snippet'));
$query->where($db->quoteName('published') . ' = 1');
$query->where($db->quoteName('id') . ' = '. (int) $id);
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$model = ComponentbuilderHelper::getModel('snippets');
$snippet = $db->loadObject();
$snippet->type = JText::_($model->selectionTranslation($snippet->type,'type'));
$snippet->snippet = base64_decode($snippet->snippet);
// return found snippet settings
return $snippet;
}
return false;
}
public function getDynamicValues($id,$view)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('getcustom', 'gettype', 'main_source', 'view_selection', 'db_selection', 'join_view_table', 'join_db_table', 'addcalculation', 'php_calculation')));
$query->from($db->quoteName('#__componentbuilder_dynamic_get'));
$query->where($db->quoteName('published') . ' = 1');
$query->where($db->quoteName('id') . ' = '. (int) $id);
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$result = $db->loadObject();
// reset buket
$selections = array();
$selectionsList = array();
// get the main values (name)
if ($result->main_source == 1)
{
$selections[] = explode("\n",$result->view_selection);
}
elseif ($result->main_source == 2)
{
$selections[] = explode("\n",$result->db_selection);
}
elseif ($result->main_source == 3)
{
return '<br /><br /><h2>Custom get source! You will need to transpose the variables manually.</h2>';
}
// get the joined values (name)
$join_view_table = json_decode($result->join_view_table,true);
unset($result->join_view_table);
if (ComponentbuilderHelper::checkArray($join_view_table))
{
foreach ($join_view_table as $option => $values)
{
foreach ($values as $nr => $value)
{
$result->join_view_table[$nr][$option] = $value;
}
}
}
unset($join_view_table);
$join_db_table = json_decode($result->join_db_table,true);
unset($result->join_db_table);
if (ComponentbuilderHelper::checkArray($join_db_table))
{
foreach ($join_db_table as $option => $values)
{
foreach ($values as $nr => $value)
{
$result->join_db_table[$nr][$option] = $value;
}
}
}
unset($join_db_table);
// now load the joined values to the selection set
if (isset($result->join_view_table) && ComponentbuilderHelper::checkArray($result->join_view_table))
{
foreach ($result->join_view_table as $join_view_table)
{
if ($join_view_table['row_type'] == '1')
{
$selections[] = explode("\n",$join_view_table['selection']);
}
elseif ($join_view_table['row_type'] == '2')
{
$names = $this->setListMethodName(array($join_view_table['on_field'],$join_view_table['join_field']),$join_view_table['view_table'],$join_view_table['as'],1);
$selectionsList[implode('',$names)] = explode("\n",$join_view_table['selection']);
}
}
unset($result->join_view_table);
}
if (isset($result->join_db_table) && ComponentbuilderHelper::checkArray($result->join_db_table))
{
foreach ($result->join_db_table as $join_db_table)
{
if ($join_db_table['row_type'] == '1')
{
$selections[] = explode("\n",$join_db_table['selection']);
}
elseif ($join_db_table['row_type'] == '2')
{
$names = $this->setListMethodName(array($join_db_table['on_field'],$join_db_table['join_field']),$join_db_table['db_table'],$join_db_table['as'],2);
$selectionsList[implode('',$names)] = explode("\n",$join_db_table['selection']);
}
}
unset($result->join_db_table);
}
// get the calculation reult values (name)
if ($result->addcalculation == 1)
{
$php_calculation = base64_decode($result->php_calculation);
$phpSelections = ComponentbuilderHelper::getAllBetween($php_calculation,'cal__',' ');
$selections[] = array_unique($phpSelections);
unset($php_calculation);
unset($phpSelections);
unset($result->php_calculation);
}
// name the main var based on view
if ($view == 'template')
{
switch ($result->gettype)
{
case 1:
// single
$buketName = 'this->item';
break;
case 2:
// list
$buketName = 'this->items';
break;
case 3:
case 4:
// custom
$result->getcustom = ComponentbuilderHelper::safeString($result->getcustom);
if (substr($result->getcustom, 0, strlen('get')) == 'get')
{
$varName = substr($result->getcustom, strlen('get'));
}
else
{
$varName = $result->getcustom;
}
$buketName = 'this->'.$varName;
break;
}
}
elseif ($view == 'layout')
{
$buketName = 'displayData';
}
// now build the return values
if (ComponentbuilderHelper::checkArray($selections))
{
$buket = array();
switch ($result->gettype)
{
case 1:
case 3:
// single
$ur = '&lt;?php echo $'.$buketName;
$cf = '; ?&gt;';
break;
case 2:
case 4:
// list
$ur = '&lt;?php echo $item';
$cf = '; ?&gt;';
$buket[] = '<code>&lt;?php foreach ($'.$buketName.' as $item): ?&gt;</code><br />';
break;
}
foreach ($selections as $selection)
{
if (ComponentbuilderHelper::checkArray($selection))
{
foreach ($selection as $value)
{
if (strpos($value,'AS') !== false)
{
list($table,$key) = explode('AS',$value);
$buket[] = '<code>'.$ur.'->'.trim($key).$cf.'</code>';
}
else
{
$buket[] = '<code>'.$ur.'->'.trim($value).$cf.'</code>';
}
}
}
}
if (ComponentbuilderHelper::checkArray($selectionsList))
{
$buket[] = '<hr />';
foreach ($selectionsList as $name => $selectionList)
{
if (ComponentbuilderHelper::checkArray($selectionList))
{
$ur = '&lt;?php echo $'.$name;
$cf = '; ?&gt;';
$buket[] = '<code>&lt;?php foreach ($item->'.$name.' as $'.$name.'): ?&gt;</code><br />';
foreach ($selectionList as $value)
{
if (strpos($value,'AS') !== false)
{
list($table,$key) = explode('AS',$value);
$buket[] = '<code>'.$ur.'->'.trim($key).$cf.'</code>';
}
else
{
$buket[] = '<code>'.$ur.'->'.trim($value).$cf.'</code>';
}
}
$buket[] = '<br /><code>&lt;?php endforeach; ?&gt;</code><hr />';
}
}
}
switch ($result->gettype)
{
case 2:
case 4:
// list
$buket[] = '<br /><code>&lt;?php endforeach; ?&gt;</code>';
break;
}
return implode('&nbsp;',$buket);
}
}
return false;
}
public function getLayoutDetails($id)
{
// Get a db connection.
@@ -613,129 +371,17 @@ class ComponentbuilderModelAjax extends JModelList
return implode("\n",$layoutString);
}
return false;
}
public function getDynamicFormDetails($id)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.name','a.name_code','a.filterbuilder_map')));
$query->from($db->quoteName('#__componentbuilder_dynamic_form', 'a'));
$query->where($db->quoteName('a.id') . ' != '.(int) $id);
$query->where($db->quoteName('a.published') . ' = 1');
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$results = $db->loadObjectList();
$string = array('<h3>Dynamic Form Links</h3><div class="row-fluid form-horizontal-desktop">');
foreach ($results as $result)
{
$dynamicIds = array();
$result->filterbuilder_map = base64_decode($result->filterbuilder_map);
if (ComponentbuilderHelper::checkString($result->filterbuilder_map) && strpos($result->filterbuilder_map, PHP_EOL) !== false)
{
$filters = explode(PHP_EOL, $result->filterbuilder_map);
if (ComponentbuilderHelper::checkArray($filters))
{
foreach ($filters as $filter)
{
if (strpos($filter, 'Id') !== false || strpos($filter, 'id') !== false)
{
list($idkey, $dump) = explode('=>', $filter);
$dynamicIds[] = "&".trim($idkey)."=&lt;?php echo \$displayData->".trim($idkey)."; ?&gt;";
}
}
}
}
$string[] = "<div>dynamicForm: <b>".$result->name."</b><br /><code>&lt;a href=\"index.php?option=com_&#91;&#91;&#91;component&#93;&#93;&#93;&task=form." . $result->name_code . implode('',$dynamicIds) ."&ref=compiler\"&gt;" . $result->name . "&lt;/a&gt;</code></div>";
}
$string[] = "</div><hr />";
return implode("\n",$string);
}
return false;
}
protected function setListMethodName($names,$table,$as,$type)
{
$methodNames = array();
if (ComponentbuilderHelper::checkArray($names))
{
foreach ($names as $nr => $name)
{
if (ComponentbuilderHelper::checkString($name))
{
if (strpos($name,'.') !== false)
{
list($dump,$var) = explode('.',$name);
}
else
{
$var = $name;
}
if ($nr > 0)
{
$methodNames[] = ComponentbuilderHelper::safeString($var,'F');
}
else
{
$methodNames[] = ComponentbuilderHelper::safeString($var);
}
}
}
}
switch ($type)
{
// set view name
case 1:
$methodNames[] = ComponentbuilderHelper::safeString($this->getViewName($table),'F');
break;
// set db name
case 2:
$methodNames[] = ComponentbuilderHelper::safeString($table,'F');
break;
}
// make sure there is uniqe method names
$methodNames[] = ComponentbuilderHelper::safeString($as,'U');
return $methodNames;
}
protected function getViewName($id)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('name_single')));
$query->from($db->quoteName('#__componentbuilder_admin_view'));
$query->where($db->quoteName('id') . ' = '. (int) $id);
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
return $db->loadResult();
}
return '';
}
// Used in dynamic_get
public function getViewTableColumns($id,$as,$type)
public function getViewTableColumns($id, $as, $type)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('addfields','name_single')));
$query->select($db->quoteName(array('addfields', 'name_single')));
$query->from($db->quoteName('#__componentbuilder_admin_view'));
$query->where($db->quoteName('published') . ' = 1');
$query->where($db->quoteName('id') . ' = '. $id);
@@ -747,14 +393,11 @@ class ComponentbuilderModelAjax extends JModelList
{
$result = $db->loadObject();
$description = '';
$tableName = '';
if (1 == $type)
{
$tableName = ComponentbuilderHelper::safeString($result->name_single).'_';
}
else
{
$tableName = '';
}
$addfields = json_decode($result->addfields,true);
if (ComponentbuilderHelper::checkArray($addfields))
{
@@ -878,23 +521,294 @@ class ComponentbuilderModelAjax extends JModelList
return false;
}
public function getDbTableColumns($tableName,$as,$type)
public function getDbTableColumns($tableName, $as, $type)
{
// Get a db connection.
$db = JFactory::getDbo();
// get the columns
$columns = $db->getTableColumns("#__".$tableName);
// set the type (multi or single)
$unique = '';
if (1 == $type)
{
$unique = ComponentbuilderHelper::safeString($tableName).'_';
}
if (ComponentbuilderHelper::checkArray($columns))
{
// build the return string
$tableColumns = array();
foreach ($columns as $column => $type)
foreach ($columns as $column => $typeCast)
{
$tableColumns[] = $as.".".$column . ' AS ' . $column;
$tableColumns[] = $as.".".$column . ' AS ' . $unique . $column;
}
return implode("\n",$tableColumns);
}
return false;
}
public function getDynamicValues($id, $view)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('getcustom', 'gettype', 'main_source', 'view_selection', 'db_selection', 'join_view_table', 'join_db_table', 'addcalculation', 'php_calculation')));
$query->from($db->quoteName('#__componentbuilder_dynamic_get'));
$query->where($db->quoteName('published') . ' = 1');
$query->where($db->quoteName('id') . ' = '. (int) $id);
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$result = $db->loadObject();
// reset buket
$selections = array();
$selectionsList = array();
// get the main values (name)
if ($result->main_source == 1)
{
$selections[] = explode("\n",$result->view_selection);
}
elseif ($result->main_source == 2)
{
$selections[] = explode("\n",$result->db_selection);
}
elseif ($result->main_source == 3)
{
return '<br /><br /><h2>Custom get source! You will need to transpose the variables manually.</h2>';
}
// get the joined values (name)
$result->join_view_table = json_decode($result->join_view_table, true);
if (!ComponentbuilderHelper::checkArray($result->join_view_table))
{
unset($result->join_view_table);
}
$result->join_db_table = json_decode($result->join_db_table, true);
if (!ComponentbuilderHelper::checkArray($result->join_db_table))
{
unset($result->join_db_table);
}
// now load the joined values to the selection set
if (isset($result->join_view_table) && ComponentbuilderHelper::checkArray($result->join_view_table))
{
foreach ($result->join_view_table as $join_view_table)
{
if ($join_view_table['row_type'] == '1')
{
$selections[] = explode("\n",$join_view_table['selection']);
}
elseif ($join_view_table['row_type'] == '2')
{
$names = $this->setListMethodName(array($join_view_table['on_field'],$join_view_table['join_field']),$join_view_table['view_table'],$join_view_table['as'],1);
$selectionsList[implode('',$names)] = explode("\n",$join_view_table['selection']);
}
}
unset($result->join_view_table);
}
if (isset($result->join_db_table) && ComponentbuilderHelper::checkArray($result->join_db_table))
{
foreach ($result->join_db_table as $join_db_table)
{
if ($join_db_table['row_type'] == '1')
{
$selections[] = explode("\n",$join_db_table['selection']);
}
elseif ($join_db_table['row_type'] == '2')
{
$names = $this->setListMethodName(array($join_db_table['on_field'],$join_db_table['join_field']),$join_db_table['db_table'],$join_db_table['as'],2);
$selectionsList[implode('',$names)] = explode("\n",$join_db_table['selection']);
}
}
unset($result->join_db_table);
}
// get the calculation result values (name)
if ($result->addcalculation == 1)
{
$php_calculation = base64_decode($result->php_calculation);
$phpSelections = ComponentbuilderHelper::getAllBetween($php_calculation,'cal__',' ');
$selections[] = array_unique($phpSelections);
unset($php_calculation);
unset($phpSelections);
unset($result->php_calculation);
}
// name the main var based on view
if ($view == 'template')
{
switch ($result->gettype)
{
case 1:
// single
$buketName = 'this->item';
break;
case 2:
// list
$buketName = 'this->items';
break;
case 3:
case 4:
// custom
$result->getcustom = ComponentbuilderHelper::safeString($result->getcustom);
if (substr($result->getcustom, 0, strlen('get')) == 'get')
{
$varName = substr($result->getcustom, strlen('get'));
}
else
{
$varName = $result->getcustom;
}
$buketName = 'this->'.$varName;
break;
}
}
elseif ($view == 'layout')
{
$buketName = 'displayData';
}
// now build the return values
if (ComponentbuilderHelper::checkArray($selections))
{
$buket = array();
switch ($result->gettype)
{
case 1:
case 3:
// single
$ur = '&lt;?php echo $'.$buketName;
$cf = '; ?&gt;';
break;
case 2:
case 4:
// list
$ur = '&lt;?php echo $item';
$cf = '; ?&gt;';
$buket[] = '<code>&lt;?php foreach ($'.$buketName.' as $item): ?&gt;</code><br />';
break;
}
foreach ($selections as $selection)
{
if (ComponentbuilderHelper::checkArray($selection))
{
foreach ($selection as $value)
{
if (strpos($value,'AS') !== false)
{
list($table,$key) = explode('AS',$value);
$buket[] = '<code>'.$ur.'->'.trim($key).$cf.'</code>';
}
else
{
$buket[] = '<code>'.$ur.'->'.trim($value).$cf.'</code>';
}
}
}
}
if (ComponentbuilderHelper::checkArray($selectionsList))
{
$buket[] = '<hr />';
foreach ($selectionsList as $name => $selectionList)
{
if (ComponentbuilderHelper::checkArray($selectionList))
{
$ur = '&lt;?php echo $'.$name;
$cf = '; ?&gt;';
$buket[] = '<code>&lt;?php foreach ($item->'.$name.' as $'.$name.'): ?&gt;</code><br />';
foreach ($selectionList as $value)
{
if (strpos($value,'AS') !== false)
{
list($table,$key) = explode('AS',$value);
$buket[] = '<code>'.$ur.'->'.trim($key).$cf.'</code>';
}
else
{
$buket[] = '<code>'.$ur.'->'.trim($value).$cf.'</code>';
}
}
$buket[] = '<br /><code>&lt;?php endforeach; ?&gt;</code><hr />';
}
}
}
switch ($result->gettype)
{
case 2:
case 4:
// list
$buket[] = '<br /><code>&lt;?php endforeach; ?&gt;</code>';
break;
}
return implode('&nbsp;',$buket);
}
}
return false;
}
protected function setListMethodName($names,$table,$as,$type)
{
$methodNames = array();
if (ComponentbuilderHelper::checkArray($names))
{
foreach ($names as $nr => $name)
{
if (ComponentbuilderHelper::checkString($name))
{
if (strpos($name,'.') !== false)
{
list($dump,$var) = explode('.',$name);
}
else
{
$var = $name;
}
if ($nr > 0)
{
$methodNames[] = ComponentbuilderHelper::safeString($var,'F');
}
else
{
$methodNames[] = ComponentbuilderHelper::safeString($var);
}
}
}
}
switch ($type)
{
// set view name
case 1:
$methodNames[] = ComponentbuilderHelper::safeString($this->getViewName($table),'F');
break;
// set db name
case 2:
$methodNames[] = ComponentbuilderHelper::safeString($table,'F');
break;
}
// make sure there is uniqe method names
$methodNames[] = ComponentbuilderHelper::safeString($as,'U');
return $methodNames;
}
protected function getViewName($id)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('name_single')));
$query->from($db->quoteName('#__componentbuilder_admin_view'));
$query->where($db->quoteName('id') . ' = '. (int) $id);
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
return $db->loadResult();
}
return '';
}
// Used in custom_code
@@ -1073,6 +987,34 @@ class ComponentbuilderModelAjax extends JModelList
return false;
}
// Used in snippet
public function getSnippetDetails($id)
{
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select($db->quoteName(array('name', 'heading', 'usage', 'description', 'type', 'snippet', 'url')));
$query->from($db->quoteName('#__componentbuilder_snippet'));
$query->where($db->quoteName('published') . ' = 1');
$query->where($db->quoteName('id') . ' = '. (int) $id);
// Reset the query using our newly populated query object.
$db->setQuery($query);
$db->execute();
if ($db->getNumRows())
{
$model = ComponentbuilderHelper::getModel('snippets');
$snippet = $db->loadObject();
$snippet->type = JText::_($model->selectionTranslation($snippet->type,'type'));
$snippet->snippet = base64_decode($snippet->snippet);
// return found snippet settings
return $snippet;
}
return false;
}
// Used in field
public function getFieldOptions($id)
{

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilder.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 22 of this MVC
@build 17th July, 2017
@version @update number 27 of this MVC
@build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage custom_admin_view.php
@@ -103,52 +103,10 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->custom_get = $custom_get->toArray();
}
if (!empty($item->php_model))
if (!empty($item->php_controller))
{
// base64 Decode php_model.
$item->php_model = base64_decode($item->php_model);
}
if (!empty($item->css_document))
{
// base64 Decode css_document.
$item->css_document = base64_decode($item->css_document);
}
if (!empty($item->php_jview))
{
// base64 Decode php_jview.
$item->php_jview = base64_decode($item->php_jview);
}
if (!empty($item->php_view))
{
// base64 Decode php_view.
$item->php_view = base64_decode($item->php_view);
}
if (!empty($item->php_document))
{
// base64 Decode php_document.
$item->php_document = base64_decode($item->php_document);
}
if (!empty($item->php_jview_display))
{
// base64 Decode php_jview_display.
$item->php_jview_display = base64_decode($item->php_jview_display);
}
if (!empty($item->js_document))
{
// base64 Decode js_document.
$item->js_document = base64_decode($item->js_document);
}
if (!empty($item->css))
{
// base64 Decode css.
$item->css = base64_decode($item->css);
// base64 Decode php_controller.
$item->php_controller = base64_decode($item->php_controller);
}
if (!empty($item->default))
@@ -157,10 +115,52 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$item->default = base64_decode($item->default);
}
if (!empty($item->php_controller))
if (!empty($item->php_model))
{
// base64 Decode php_controller.
$item->php_controller = base64_decode($item->php_controller);
// base64 Decode php_model.
$item->php_model = base64_decode($item->php_model);
}
if (!empty($item->php_document))
{
// base64 Decode php_document.
$item->php_document = base64_decode($item->php_document);
}
if (!empty($item->php_view))
{
// base64 Decode php_view.
$item->php_view = base64_decode($item->php_view);
}
if (!empty($item->php_jview_display))
{
// base64 Decode php_jview_display.
$item->php_jview_display = base64_decode($item->php_jview_display);
}
if (!empty($item->php_jview))
{
// base64 Decode php_jview.
$item->php_jview = base64_decode($item->php_jview);
}
if (!empty($item->js_document))
{
// base64 Decode js_document.
$item->js_document = base64_decode($item->js_document);
}
if (!empty($item->css_document))
{
// base64 Decode css_document.
$item->css_document = base64_decode($item->css_document);
}
if (!empty($item->css))
{
// base64 Decode css.
$item->css = base64_decode($item->css);
}
if (!empty($item->id))
@@ -179,7 +179,7 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVyjlinked_components()
public function getVyklinked_components()
{
// Get the user object.
$user = JFactory::getUser();
@@ -975,52 +975,10 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['custom_get'] = '';
}
// Set the php_model string to base64 string.
if (isset($data['php_model']))
// Set the php_controller string to base64 string.
if (isset($data['php_controller']))
{
$data['php_model'] = base64_encode($data['php_model']);
}
// Set the css_document string to base64 string.
if (isset($data['css_document']))
{
$data['css_document'] = base64_encode($data['css_document']);
}
// Set the php_jview string to base64 string.
if (isset($data['php_jview']))
{
$data['php_jview'] = base64_encode($data['php_jview']);
}
// Set the php_view string to base64 string.
if (isset($data['php_view']))
{
$data['php_view'] = base64_encode($data['php_view']);
}
// Set the php_document string to base64 string.
if (isset($data['php_document']))
{
$data['php_document'] = base64_encode($data['php_document']);
}
// Set the php_jview_display string to base64 string.
if (isset($data['php_jview_display']))
{
$data['php_jview_display'] = base64_encode($data['php_jview_display']);
}
// Set the js_document string to base64 string.
if (isset($data['js_document']))
{
$data['js_document'] = base64_encode($data['js_document']);
}
// Set the css string to base64 string.
if (isset($data['css']))
{
$data['css'] = base64_encode($data['css']);
$data['php_controller'] = base64_encode($data['php_controller']);
}
// Set the default string to base64 string.
@@ -1029,10 +987,52 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin
$data['default'] = base64_encode($data['default']);
}
// Set the php_controller string to base64 string.
if (isset($data['php_controller']))
// Set the php_model string to base64 string.
if (isset($data['php_model']))
{
$data['php_controller'] = base64_encode($data['php_controller']);
$data['php_model'] = base64_encode($data['php_model']);
}
// Set the php_document string to base64 string.
if (isset($data['php_document']))
{
$data['php_document'] = base64_encode($data['php_document']);
}
// Set the php_view string to base64 string.
if (isset($data['php_view']))
{
$data['php_view'] = base64_encode($data['php_view']);
}
// Set the php_jview_display string to base64 string.
if (isset($data['php_jview_display']))
{
$data['php_jview_display'] = base64_encode($data['php_jview_display']);
}
// Set the php_jview string to base64 string.
if (isset($data['php_jview']))
{
$data['php_jview'] = base64_encode($data['php_jview']);
}
// Set the js_document string to base64 string.
if (isset($data['js_document']))
{
$data['js_document'] = base64_encode($data['js_document']);
}
// Set the css_document string to base64 string.
if (isset($data['css_document']))
{
$data['css_document'] = base64_encode($data['css_document']);
}
// Set the css string to base64 string.
if (isset($data['css']))
{
$data['css'] = base64_encode($data['css']);
}
// Set the Params Items to data

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 22 of this MVC
@build 17th July, 2017
@version @update number 27 of this MVC
@build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage custom_admin_views.php
@@ -266,26 +266,26 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
continue;
}
// decode php_model
$item->php_model = base64_decode($item->php_model);
// decode css_document
$item->css_document = base64_decode($item->css_document);
// decode php_jview
$item->php_jview = base64_decode($item->php_jview);
// decode php_view
$item->php_view = base64_decode($item->php_view);
// decode php_document
$item->php_document = base64_decode($item->php_document);
// decode php_jview_display
$item->php_jview_display = base64_decode($item->php_jview_display);
// decode js_document
$item->js_document = base64_decode($item->js_document);
// decode css
$item->css = base64_decode($item->css);
// decode default
$item->default = base64_decode($item->default);
// decode php_controller
$item->php_controller = base64_decode($item->php_controller);
// decode default
$item->default = base64_decode($item->default);
// decode php_model
$item->php_model = base64_decode($item->php_model);
// decode php_document
$item->php_document = base64_decode($item->php_document);
// decode php_view
$item->php_view = base64_decode($item->php_view);
// decode php_jview_display
$item->php_jview_display = base64_decode($item->php_jview_display);
// decode php_jview
$item->php_jview = base64_decode($item->php_jview);
// decode js_document
$item->js_document = base64_decode($item->js_document);
// decode css_document
$item->css_document = base64_decode($item->css_document);
// decode css
$item->css = base64_decode($item->css);
// unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
@build 26th April, 2017
@build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage custom_code.php

View File

@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
@build 26th April, 2017
@build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage custom_codes.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 84 of this MVC
@build 4th May, 2017
@version @update number 94 of this MVC
@build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage dynamic_get.php
@@ -95,10 +95,52 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$item->metadata = $registry->toArray();
}
if (!empty($item->php_before_getitem))
if (!empty($item->filter))
{
// base64 Decode php_before_getitem.
$item->php_before_getitem = base64_decode($item->php_before_getitem);
// Convert the filter field to an array.
$filter = new Registry;
$filter->loadString($item->filter);
$item->filter = $filter->toArray();
}
if (!empty($item->where))
{
// Convert the where field to an array.
$where = new Registry;
$where->loadString($item->where);
$item->where = $where->toArray();
}
if (!empty($item->order))
{
// Convert the order field to an array.
$order = new Registry;
$order->loadString($item->order);
$item->order = $order->toArray();
}
if (!empty($item->global))
{
// Convert the global field to an array.
$global = new Registry;
$global->loadString($item->global);
$item->global = $global->toArray();
}
if (!empty($item->join_db_table))
{
// Convert the join_db_table field to an array.
$join_db_table = new Registry;
$join_db_table->loadString($item->join_db_table);
$item->join_db_table = $join_db_table->toArray();
}
if (!empty($item->join_view_table))
{
// Convert the join_view_table field to an array.
$join_view_table = new Registry;
$join_view_table->loadString($item->join_view_table);
$item->join_view_table = $join_view_table->toArray();
}
if (!empty($item->php_custom_get))
@@ -107,6 +149,12 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$item->php_custom_get = base64_decode($item->php_custom_get);
}
if (!empty($item->php_before_getitem))
{
// base64 Decode php_before_getitem.
$item->php_before_getitem = base64_decode($item->php_before_getitem);
}
if (!empty($item->php_after_getitem))
{
// base64 Decode php_after_getitem.
@@ -860,10 +908,82 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$data['metadata'] = (string) $metadata;
}
// Set the php_before_getitem string to base64 string.
if (isset($data['php_before_getitem']))
// Set the filter items to data.
if (isset($data['filter']) && is_array($data['filter']))
{
$data['php_before_getitem'] = base64_encode($data['php_before_getitem']);
$filter = new JRegistry;
$filter->loadArray($data['filter']);
$data['filter'] = (string) $filter;
}
elseif (!isset($data['filter']))
{
// Set the empty filter to data
$data['filter'] = '';
}
// Set the where items to data.
if (isset($data['where']) && is_array($data['where']))
{
$where = new JRegistry;
$where->loadArray($data['where']);
$data['where'] = (string) $where;
}
elseif (!isset($data['where']))
{
// Set the empty where to data
$data['where'] = '';
}
// Set the order items to data.
if (isset($data['order']) && is_array($data['order']))
{
$order = new JRegistry;
$order->loadArray($data['order']);
$data['order'] = (string) $order;
}
elseif (!isset($data['order']))
{
// Set the empty order to data
$data['order'] = '';
}
// Set the global items to data.
if (isset($data['global']) && is_array($data['global']))
{
$global = new JRegistry;
$global->loadArray($data['global']);
$data['global'] = (string) $global;
}
elseif (!isset($data['global']))
{
// Set the empty global to data
$data['global'] = '';
}
// Set the join_db_table items to data.
if (isset($data['join_db_table']) && is_array($data['join_db_table']))
{
$join_db_table = new JRegistry;
$join_db_table->loadArray($data['join_db_table']);
$data['join_db_table'] = (string) $join_db_table;
}
elseif (!isset($data['join_db_table']))
{
// Set the empty join_db_table to data
$data['join_db_table'] = '';
}
// Set the join_view_table items to data.
if (isset($data['join_view_table']) && is_array($data['join_view_table']))
{
$join_view_table = new JRegistry;
$join_view_table->loadArray($data['join_view_table']);
$data['join_view_table'] = (string) $join_view_table;
}
elseif (!isset($data['join_view_table']))
{
// Set the empty join_view_table to data
$data['join_view_table'] = '';
}
// Set the php_custom_get string to base64 string.
@@ -872,6 +992,12 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin
$data['php_custom_get'] = base64_encode($data['php_custom_get']);
}
// Set the php_before_getitem string to base64 string.
if (isset($data['php_before_getitem']))
{
$data['php_before_getitem'] = base64_encode($data['php_before_getitem']);
}
// Set the php_after_getitem string to base64 string.
if (isset($data['php_after_getitem']))
{

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 84 of this MVC
@build 4th May, 2017
@version @update number 94 of this MVC
@build 27th September, 2017
@created 21st May, 2015
@package Component Builder
@subpackage dynamic_gets.php
@@ -321,10 +321,10 @@ class ComponentbuilderModelDynamic_gets extends JModelList
continue;
}
// decode php_before_getitem
$item->php_before_getitem = base64_decode($item->php_before_getitem);
// decode php_custom_get
$item->php_custom_get = base64_decode($item->php_custom_get);
// decode php_before_getitem
$item->php_before_getitem = base64_decode($item->php_before_getitem);
// decode php_after_getitem
$item->php_after_getitem = base64_decode($item->php_after_getitem);
// decode php_getlistquery

View File

@@ -141,7 +141,7 @@ class ComponentbuilderModelField extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getWablinked_admin_views()
public function getWaclinked_admin_views()
{
// Get the user object.
$user = JFactory::getUser();

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage adminviewfolderlist.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage adminviews.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage articles.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage component.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage components.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage customadminviews.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage customfilelist.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage customfolderlist.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage customgets.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage dbtables.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage dynamicget.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage dynamicgets.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage fields.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage fieldsmulti.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage fieldtypes.php

View File

@@ -0,0 +1,171 @@
<?php
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
__ __ _ _____ _ _ __ __ _ _ _
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
| |
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage ftps.php
@author Llewellyn van der Merwe <http://vdm.bz/component-builder>
@copyright Copyright (C) 2015. All Rights Reserved
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
Builds Complex Joomla Components
/-----------------------------------------------------------------------------------------------------------------------------*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// import the list field type
jimport('joomla.form.helper');
JFormHelper::loadFieldClass('list');
/**
* Ftps Form Field class for the Componentbuilder component
*/
class JFormFieldFtps extends JFormFieldList
{
/**
* The ftps field type.
*
* @var string
*/
public $type = 'ftps';
/**
* Override to add new button
*
* @return string The field input markup.
*
* @since 3.2
*/
protected function getInput()
{
// see if we should add buttons
$setButton = $this->getAttribute('button');
// get html
$html = parent::getInput();
// if true set button
if ($setButton === 'true')
{
$button = array();
$script = array();
$buttonName = $this->getAttribute('name');
// get the input from url
$app = JFactory::getApplication();
$jinput = $app->input;
// get the view name & id
$values = $jinput->getArray(array(
'id' => 'int',
'view' => 'word'
));
// check if new item
$ref = '';
$refJ = '';
if (!is_null($values['id']) && strlen($values['view']))
{
// only load referal if not new item.
$ref = '&amp;ref=' . $values['view'] . '&amp;refid=' . $values['id'];
$refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
}
$user = JFactory::getUser();
// only add if user allowed to create ftp
if ($user->authorise('ftp.create', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build Create button
$buttonNamee = trim($buttonName);
$buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
$buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
$buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
$buttonNamee = ucfirst(strtolower($buttonNamee));
$button[] = '<a id="'.$buttonName.'Create" class="btn btn-small btn-success hasTooltip" title="'.JText::sprintf('COM_COMPONENTBUILDER_CREATE_NEW_S', $buttonNamee).'" style="border-radius: 0px 4px 4px 0px; padding: 4px 4px 4px 7px;"
href="index.php?option=com_componentbuilder&amp;view=ftp&amp;layout=edit'.$ref.'" >
<span class="icon-new icon-white"></span></a>';
}
// only add if user allowed to edit ftp
if (($buttonName === 'ftp' || $buttonName === 'ftps') && $user->authorise('ftp.edit', 'com_componentbuilder') && $app->isAdmin()) // TODO for now only in admin area.
{
// build edit button
$buttonNamee = trim($buttonName);
$buttonNamee = preg_replace('/_+/', ' ', $buttonNamee);
$buttonNamee = preg_replace('/\s+/', ' ', $buttonNamee);
$buttonNamee = preg_replace("/[^A-Za-z ]/", '', $buttonNamee);
$buttonNamee = ucfirst(strtolower($buttonNamee));
$button[] = '<a id="'.$buttonName.'Edit" class="btn btn-small hasTooltip" title="'.JText::sprintf('COM_COMPONENTBUILDER_EDIT_S', $buttonNamee).'" 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_".$buttonName."',function (e) {
e.preventDefault();
var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
".$buttonName."Button(".$buttonName."Value);
});
var ".$buttonName."Value = jQuery('#jform_".$buttonName."').val();
".$buttonName."Button(".$buttonName."Value);
});
function ".$buttonName."Button(value) {
if (value > 0) {
// hide the create button
jQuery('#".$buttonName."Create').hide();
// show edit button
jQuery('#".$buttonName."Edit').show();
var url = 'index.php?option=com_componentbuilder&view=ftps&task=ftp.edit&id='+value+'".$refJ."';
jQuery('#".$buttonName."Edit').attr('href', url);
} else {
// show the create button
jQuery('#".$buttonName."Create').show();
// hide edit button
jQuery('#".$buttonName."Edit').hide();
}
}";
}
// check if button was created for ftp 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.
*/
public function getOptions()
{
$db = JFactory::getDBO();
$query = $db->getQuery(true);
$query->select($db->quoteName(array('a.id','a.name'),array('id','sales_server_ftp_name')));
$query->from($db->quoteName('#__componentbuilder_ftp', 'a'));
$query->where($db->quoteName('a.published') . ' >= 1');
$query->order('a.name ASC');
$db->setQuery((string)$query);
$items = $db->loadObjectList();
$options = array();
if ($items)
{
$options[] = JHtml::_('select.option', '', 'Select an option');
foreach($items as $item)
{
$options[] = JHtml::_('select.option', $item->id, $item->sales_server_ftp_name);
}
}
return $options;
}
}

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage lang.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage maingets.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage siteviewfolderlist.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage siteviews.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage snippets.php

View File

@@ -119,7 +119,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getWacfields()
public function getWadfields()
{
// Get the user object.
$user = JFactory::getUser();
@@ -203,13 +203,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
$item->datatype = $this->selectionTranslationWacfields($item->datatype, 'datatype');
$item->datatype = $this->selectionTranslationWadfields($item->datatype, 'datatype');
// convert indexes
$item->indexes = $this->selectionTranslationWacfields($item->indexes, 'indexes');
$item->indexes = $this->selectionTranslationWadfields($item->indexes, 'indexes');
// convert null_switch
$item->null_switch = $this->selectionTranslationWacfields($item->null_switch, 'null_switch');
$item->null_switch = $this->selectionTranslationWadfields($item->null_switch, 'null_switch');
// convert store
$item->store = $this->selectionTranslationWacfields($item->store, 'store');
$item->store = $this->selectionTranslationWadfields($item->store, 'store');
}
}
@@ -223,7 +223,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationWacfields($value,$name)
public function selectionTranslationWadfields($value,$name)
{
// Array of datatype language strings
if ($name === 'datatype')

File diff suppressed because it is too large Load Diff

View File

@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 22 of this MVC
@build 17th July, 2017
@version @update number 27 of this MVC
@build 27th September, 2017
@created 13th August, 2015
@package Component Builder
@subpackage custom_admin_view.js
@@ -23,255 +23,255 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvyavya_required = false;
jform_vvvvvybvyb_required = false;
jform_vvvvvycvyc_required = false;
jform_vvvvvydvyd_required = false;
jform_vvvvvyevye_required = false;
jform_vvvvvyfvyf_required = false;
jform_vvvvvygvyg_required = false;
jform_vvvvvygvyh_required = false;
jform_vvvvvyhvyh_required = false;
jform_vvvvvyhvyi_required = false;
jform_vvvvvyivyj_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvya = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvya(add_php_view_vvvvvya);
var add_php_view_vvvvvyb = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyb(add_php_view_vvvvvyb);
var add_php_jview_display_vvvvvyb = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvyb(add_php_jview_display_vvvvvyb);
var add_php_jview_display_vvvvvyc = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvyc(add_php_jview_display_vvvvvyc);
var add_php_jview_vvvvvyc = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvyc(add_php_jview_vvvvvyc);
var add_php_jview_vvvvvyd = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvyd(add_php_jview_vvvvvyd);
var add_php_document_vvvvvyd = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvyd(add_php_document_vvvvvyd);
var add_php_document_vvvvvye = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvye(add_php_document_vvvvvye);
var add_css_document_vvvvvye = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvye(add_css_document_vvvvvye);
var add_css_document_vvvvvyf = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvyf(add_css_document_vvvvvyf);
var add_js_document_vvvvvyf = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyf(add_js_document_vvvvvyf);
var add_js_document_vvvvvyg = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyg(add_js_document_vvvvvyg);
var add_custom_button_vvvvvyg = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyg(add_custom_button_vvvvvyg);
var add_custom_button_vvvvvyh = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyh(add_custom_button_vvvvvyh);
var add_css_vvvvvyh = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvyh(add_css_vvvvvyh);
var add_css_vvvvvyi = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvyi(add_css_vvvvvyi);
});
// the vvvvvya function
function vvvvvya(add_php_view_vvvvvya)
// the vvvvvyb function
function vvvvvyb(add_php_view_vvvvvyb)
{
// set the function logic
if (add_php_view_vvvvvya == 1)
if (add_php_view_vvvvvyb == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvyavya_required)
if (jform_vvvvvybvyb_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_vvvvvyavya_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvyavya_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvyavya_required = true;
}
}
}
// the vvvvvyb function
function vvvvvyb(add_php_jview_display_vvvvvyb)
{
// set the function logic
if (add_php_jview_display_vvvvvyb == 1)
{
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvybvyb_required)
{
updateFieldRequired('php_jview_display',0);
jQuery('#jform_php_jview_display').prop('required','required');
jQuery('#jform_php_jview_display').attr('aria-required',true);
jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvybvyb_required = false;
}
}
else
{
jQuery('#jform_php_jview_display').closest('.control-group').hide();
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvybvyb_required)
{
updateFieldRequired('php_jview_display',1);
jQuery('#jform_php_jview_display').removeAttr('required');
jQuery('#jform_php_jview_display').removeAttr('aria-required');
jQuery('#jform_php_jview_display').removeClass('required');
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvybvyb_required = true;
}
}
}
// the vvvvvyc function
function vvvvvyc(add_php_jview_vvvvvyc)
function vvvvvyc(add_php_jview_display_vvvvvyc)
{
// set the function logic
if (add_php_jview_vvvvvyc == 1)
if (add_php_jview_display_vvvvvyc == 1)
{
jQuery('#jform_php_jview').closest('.control-group').show();
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvycvyc_required)
{
updateFieldRequired('php_jview',0);
jQuery('#jform_php_jview').prop('required','required');
jQuery('#jform_php_jview').attr('aria-required',true);
jQuery('#jform_php_jview').addClass('required');
updateFieldRequired('php_jview_display',0);
jQuery('#jform_php_jview_display').prop('required','required');
jQuery('#jform_php_jview_display').attr('aria-required',true);
jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvycvyc_required = false;
}
}
else
{
jQuery('#jform_php_jview').closest('.control-group').hide();
jQuery('#jform_php_jview_display').closest('.control-group').hide();
if (!jform_vvvvvycvyc_required)
{
updateFieldRequired('php_jview',1);
jQuery('#jform_php_jview').removeAttr('required');
jQuery('#jform_php_jview').removeAttr('aria-required');
jQuery('#jform_php_jview').removeClass('required');
updateFieldRequired('php_jview_display',1);
jQuery('#jform_php_jview_display').removeAttr('required');
jQuery('#jform_php_jview_display').removeAttr('aria-required');
jQuery('#jform_php_jview_display').removeClass('required');
jform_vvvvvycvyc_required = true;
}
}
}
// the vvvvvyd function
function vvvvvyd(add_php_document_vvvvvyd)
function vvvvvyd(add_php_jview_vvvvvyd)
{
// set the function logic
if (add_php_document_vvvvvyd == 1)
if (add_php_jview_vvvvvyd == 1)
{
jQuery('#jform_php_document').closest('.control-group').show();
jQuery('#jform_php_jview').closest('.control-group').show();
if (jform_vvvvvydvyd_required)
{
updateFieldRequired('php_document',0);
jQuery('#jform_php_document').prop('required','required');
jQuery('#jform_php_document').attr('aria-required',true);
jQuery('#jform_php_document').addClass('required');
updateFieldRequired('php_jview',0);
jQuery('#jform_php_jview').prop('required','required');
jQuery('#jform_php_jview').attr('aria-required',true);
jQuery('#jform_php_jview').addClass('required');
jform_vvvvvydvyd_required = false;
}
}
else
{
jQuery('#jform_php_document').closest('.control-group').hide();
jQuery('#jform_php_jview').closest('.control-group').hide();
if (!jform_vvvvvydvyd_required)
{
updateFieldRequired('php_document',1);
jQuery('#jform_php_document').removeAttr('required');
jQuery('#jform_php_document').removeAttr('aria-required');
jQuery('#jform_php_document').removeClass('required');
updateFieldRequired('php_jview',1);
jQuery('#jform_php_jview').removeAttr('required');
jQuery('#jform_php_jview').removeAttr('aria-required');
jQuery('#jform_php_jview').removeClass('required');
jform_vvvvvydvyd_required = true;
}
}
}
// the vvvvvye function
function vvvvvye(add_css_document_vvvvvye)
function vvvvvye(add_php_document_vvvvvye)
{
// set the function logic
if (add_css_document_vvvvvye == 1)
if (add_php_document_vvvvvye == 1)
{
jQuery('#jform_css_document').closest('.control-group').show();
jQuery('#jform_php_document').closest('.control-group').show();
if (jform_vvvvvyevye_required)
{
updateFieldRequired('css_document',0);
jQuery('#jform_css_document').prop('required','required');
jQuery('#jform_css_document').attr('aria-required',true);
jQuery('#jform_css_document').addClass('required');
updateFieldRequired('php_document',0);
jQuery('#jform_php_document').prop('required','required');
jQuery('#jform_php_document').attr('aria-required',true);
jQuery('#jform_php_document').addClass('required');
jform_vvvvvyevye_required = false;
}
}
else
{
jQuery('#jform_css_document').closest('.control-group').hide();
jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_vvvvvyevye_required)
{
updateFieldRequired('css_document',1);
jQuery('#jform_css_document').removeAttr('required');
jQuery('#jform_css_document').removeAttr('aria-required');
jQuery('#jform_css_document').removeClass('required');
updateFieldRequired('php_document',1);
jQuery('#jform_php_document').removeAttr('required');
jQuery('#jform_php_document').removeAttr('aria-required');
jQuery('#jform_php_document').removeClass('required');
jform_vvvvvyevye_required = true;
}
}
}
// the vvvvvyf function
function vvvvvyf(add_js_document_vvvvvyf)
function vvvvvyf(add_css_document_vvvvvyf)
{
// set the function logic
if (add_js_document_vvvvvyf == 1)
if (add_css_document_vvvvvyf == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
jQuery('#jform_css_document').closest('.control-group').show();
if (jform_vvvvvyfvyf_required)
{
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
updateFieldRequired('css_document',0);
jQuery('#jform_css_document').prop('required','required');
jQuery('#jform_css_document').attr('aria-required',true);
jQuery('#jform_css_document').addClass('required');
jform_vvvvvyfvyf_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
jQuery('#jform_css_document').closest('.control-group').hide();
if (!jform_vvvvvyfvyf_required)
{
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
updateFieldRequired('css_document',1);
jQuery('#jform_css_document').removeAttr('required');
jQuery('#jform_css_document').removeAttr('aria-required');
jQuery('#jform_css_document').removeClass('required');
jform_vvvvvyfvyf_required = true;
}
}
}
// the vvvvvyg function
function vvvvvyg(add_custom_button_vvvvvyg)
function vvvvvyg(add_js_document_vvvvvyg)
{
// set the function logic
if (add_custom_button_vvvvvyg == 1)
if (add_js_document_vvvvvyg == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
if (jform_vvvvvygvyg_required)
{
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
jform_vvvvvygvyg_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
if (!jform_vvvvvygvyg_required)
{
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
jform_vvvvvygvyg_required = true;
}
}
}
// the vvvvvyh function
function vvvvvyh(add_custom_button_vvvvvyh)
{
// set the function logic
if (add_custom_button_vvvvvyh == 1)
{
jQuery('#jform_custom_button').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
if (jform_vvvvvygvyg_required)
if (jform_vvvvvyhvyh_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
jform_vvvvvygvyg_required = false;
jform_vvvvvyhvyh_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
if (jform_vvvvvygvyh_required)
if (jform_vvvvvyhvyi_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
jform_vvvvvygvyh_required = false;
jform_vvvvvyhvyi_required = false;
}
}
@@ -279,53 +279,53 @@ function vvvvvyg(add_custom_button_vvvvvyg)
{
jQuery('#jform_custom_button').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
if (!jform_vvvvvygvyg_required)
if (!jform_vvvvvyhvyh_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
jform_vvvvvygvyg_required = true;
jform_vvvvvyhvyh_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
if (!jform_vvvvvygvyh_required)
if (!jform_vvvvvyhvyi_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
jform_vvvvvygvyh_required = true;
jform_vvvvvyhvyi_required = true;
}
}
}
// the vvvvvyh function
function vvvvvyh(add_css_vvvvvyh)
// the vvvvvyi function
function vvvvvyi(add_css_vvvvvyi)
{
// set the function logic
if (add_css_vvvvvyh == 1)
if (add_css_vvvvvyi == 1)
{
jQuery('#jform_css').closest('.control-group').show();
if (jform_vvvvvyhvyi_required)
if (jform_vvvvvyivyj_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
jform_vvvvvyhvyi_required = false;
jform_vvvvvyivyj_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
if (!jform_vvvvvyhvyi_required)
if (!jform_vvvvvyivyj_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
jform_vvvvvyhvyi_required = true;
jform_vvvvvyivyj_required = true;
}
}
}
@@ -366,6 +366,7 @@ function isSet(val)
return false;
}
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){
@@ -410,12 +411,12 @@ function getSnippetDetails(id){
jQuery('.snippet-usage').append(usage);
}
})
}
}
function getDynamicValues_server(dynamicId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
var request = 'token='+token+'&view=template&id='+dynamicId;
var request = 'token='+token+'&view=custom_admin_view&id='+dynamicId;
}
return jQuery.ajax({
type: 'GET',
@@ -437,10 +438,10 @@ function getDynamicValues(id){
});
}
})
}
}
function getLayoutDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLayoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
@@ -463,8 +464,8 @@ function getLayoutDetails(id){
});
}
})
}
}
function getTemplateDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.templateDetails&format=json";
if(token.length > 0 && id > 0){
@@ -489,30 +490,4 @@ function getTemplateDetails(id){
});
}
})
}
function getDynamicFormDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicFormDetails(id){
getTemplateDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
}

View File

@@ -158,195 +158,6 @@
required="false"
button="true"
/>
<!-- Php_model Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_model"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_HINT"
required="false"
/>
<!-- Css_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_HINT"
required="true"
/>
<!-- Php_jview Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_jview"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_HINT"
required="true"
/>
<!-- Php_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_HINT"
required="true"
/>
<!-- Php_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_HINT"
required="true"
/>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
<!-- Php_jview_display Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_HINT"
required="true"
/>
<!-- Icon Field. Type: Media. (joomla) -->
<field
type="media"
name="icon"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_DESCRIPTION"
directory=""
/>
<!-- Js_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_HINT"
required="true"
/>
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Css Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_HINT"
required="true"
/>
<!-- Custom_get Field. Type: Customgets. (custom) -->
<field
type="customgets"
name="custom_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_DESCRIPTION"
multiple="true"
/>
<!-- Main_get Field. Type: Maingets. (custom) -->
<field
type="maingets"
name="main_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_DESCRIPTION"
multiple="false"
required="true"
button="true"
/>
<!-- Add_php_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Dynamic_get Field. Type: Dynamicgets. (custom) -->
<field
type="dynamicgets"
name="dynamic_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="false"
/>
<!-- Add_php_view Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />
<!-- Add_php_jview_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_DISPLAY_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Add_php_jview Field. Type: Radio. (joomla) -->
<field
type="radio"
@@ -361,37 +172,11 @@
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Default Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="default"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_HINT"
required="true"
/>
<!-- Add_js_document Field. Type: Radio. (joomla) -->
<!-- Add_php_view Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Add_custom_button Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_custom_button"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CUSTOM_BUTTON_LABEL"
name="add_php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_VIEW_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@@ -415,6 +200,241 @@
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
<!-- Icon Field. Type: Media. (joomla) -->
<field
type="media"
name="icon"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ICON_DESCRIPTION"
directory=""
/>
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Add_php_jview_display Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_JVIEW_DISPLAY_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Add_js_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_JS_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Php_controller Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_controller"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_HINT"
required="false"
/>
<!-- Add_css Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Default Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="default"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_HINT"
required="true"
/>
<!-- Add_php_document Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_PHP_DOCUMENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Php_model Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_model"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_HINT"
required="false"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Php_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_HINT"
required="true"
/>
<!-- Custom_get Field. Type: Customgets. (custom) -->
<field
type="customgets"
name="custom_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_DESCRIPTION"
multiple="true"
/>
<!-- Php_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_HINT"
required="true"
/>
<!-- Main_get Field. Type: Maingets. (custom) -->
<field
type="maingets"
name="main_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_DESCRIPTION"
multiple="false"
required="true"
button="true"
/>
<!-- Php_jview_display Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_jview_display"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_HINT"
required="true"
/>
<!-- Dynamic_get Field. Type: Dynamicgets. (custom) -->
<field
type="dynamicgets"
name="dynamic_get"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="false"
/>
<!-- Php_jview Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_jview"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_HINT"
required="true"
/>
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />
<!-- Js_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="js_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_HINT"
required="true"
/>
<!-- Add_custom_button Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_custom_button"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CUSTOM_BUTTON_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Css_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css_document"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_HINT"
required="true"
/>
<!-- Custom_button Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
@@ -927,38 +947,18 @@
</fieldset>
</fields>
</field>
<!-- Add_css Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_ADD_CSS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_NO</option>
</field>
<!-- Php_controller Field. Type: Textarea. (joomla) -->
<!-- Css Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_controller"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_LABEL"
name="css"
label="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION"
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_HINT"
required="false"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
hint="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_HINT"
required="true"
/>
</fieldset>

View File

@@ -10,7 +10,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 82 of this MVC
@build 26th April, 2017
@build 4th October, 2017
@created 11th October, 2016
@package Component Builder
@subpackage custom_code.js
@@ -23,43 +23,43 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvzpvzp_required = false;
jform_vvvvvzqvzq_required = false;
jform_vvvvvzqvzr_required = false;
jform_vvvvvzqvzs_required = false;
jform_vvvvvzrvzr_required = false;
jform_vvvvvzrvzs_required = false;
jform_vvvvvzrvzt_required = false;
// Initial Script
jQuery(document).ready(function()
{
var target_vvvvvzp = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzp(target_vvvvvzp);
var target_vvvvvzq = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzq(target_vvvvvzq);
var target_vvvvvzr = jQuery("#jform_target input[type='radio']:checked").val();
var type_vvvvvzr = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzr(target_vvvvvzr,type_vvvvvzr);
vvvvvzr(target_vvvvvzr);
var type_vvvvvzs = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzs = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzs(type_vvvvvzs,target_vvvvvzs);
var type_vvvvvzs = jQuery("#jform_type input[type='radio']:checked").val();
vvvvvzs(target_vvvvvzs,type_vvvvvzs);
var type_vvvvvzt = jQuery("#jform_type input[type='radio']:checked").val();
var target_vvvvvzt = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzt(type_vvvvvzt,target_vvvvvzt);
});
// the vvvvvzp function
function vvvvvzp(target_vvvvvzp)
// the vvvvvzq function
function vvvvvzq(target_vvvvvzq)
{
// set the function logic
if (target_vvvvvzp == 2)
if (target_vvvvvzq == 2)
{
jQuery('#jform_function_name').closest('.control-group').show();
if (jform_vvvvvzpvzp_required)
if (jform_vvvvvzqvzq_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_vvvvvzpvzp_required = false;
jform_vvvvvzqvzq_required = false;
}
jQuery('.note_jcb_placeholder').closest('.control-group').show();
@@ -68,99 +68,99 @@ function vvvvvzp(target_vvvvvzp)
else
{
jQuery('#jform_function_name').closest('.control-group').hide();
if (!jform_vvvvvzpvzp_required)
if (!jform_vvvvvzqvzq_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_vvvvvzpvzp_required = true;
jform_vvvvvzqvzq_required = true;
}
jQuery('.note_jcb_placeholder').closest('.control-group').hide();
jQuery('#jform_system_name').closest('.control-group').hide();
}
}
// the vvvvvzq function
function vvvvvzq(target_vvvvvzq)
// the vvvvvzr function
function vvvvvzr(target_vvvvvzr)
{
// set the function logic
if (target_vvvvvzq == 1)
if (target_vvvvvzr == 1)
{
jQuery('#jform_component').closest('.control-group').show();
if (jform_vvvvvzqvzq_required)
if (jform_vvvvvzrvzr_required)
{
updateFieldRequired('component',0);
jQuery('#jform_component').prop('required','required');
jQuery('#jform_component').attr('aria-required',true);
jQuery('#jform_component').addClass('required');
jform_vvvvvzqvzq_required = false;
jform_vvvvvzrvzr_required = false;
}
jQuery('#jform_path').closest('.control-group').show();
if (jform_vvvvvzqvzr_required)
if (jform_vvvvvzrvzs_required)
{
updateFieldRequired('path',0);
jQuery('#jform_path').prop('required','required');
jQuery('#jform_path').attr('aria-required',true);
jQuery('#jform_path').addClass('required');
jform_vvvvvzqvzr_required = false;
jform_vvvvvzrvzs_required = false;
}
jQuery('#jform_from_line').closest('.control-group').show();
jQuery('#jform_hashtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
jQuery('#jform_type').closest('.control-group').show();
if (jform_vvvvvzqvzs_required)
if (jform_vvvvvzrvzt_required)
{
updateFieldRequired('type',0);
jQuery('#jform_type').prop('required','required');
jQuery('#jform_type').attr('aria-required',true);
jQuery('#jform_type').addClass('required');
jform_vvvvvzqvzs_required = false;
jform_vvvvvzrvzt_required = false;
}
}
else
{
jQuery('#jform_component').closest('.control-group').hide();
if (!jform_vvvvvzqvzq_required)
if (!jform_vvvvvzrvzr_required)
{
updateFieldRequired('component',1);
jQuery('#jform_component').removeAttr('required');
jQuery('#jform_component').removeAttr('aria-required');
jQuery('#jform_component').removeClass('required');
jform_vvvvvzqvzq_required = true;
jform_vvvvvzrvzr_required = true;
}
jQuery('#jform_path').closest('.control-group').hide();
if (!jform_vvvvvzqvzr_required)
if (!jform_vvvvvzrvzs_required)
{
updateFieldRequired('path',1);
jQuery('#jform_path').removeAttr('required');
jQuery('#jform_path').removeAttr('aria-required');
jQuery('#jform_path').removeClass('required');
jform_vvvvvzqvzr_required = true;
jform_vvvvvzrvzs_required = true;
}
jQuery('#jform_from_line').closest('.control-group').hide();
jQuery('#jform_hashtarget').closest('.control-group').hide();
jQuery('#jform_to_line').closest('.control-group').hide();
jQuery('#jform_type').closest('.control-group').hide();
if (!jform_vvvvvzqvzs_required)
if (!jform_vvvvvzrvzt_required)
{
updateFieldRequired('type',1);
jQuery('#jform_type').removeAttr('required');
jQuery('#jform_type').removeAttr('aria-required');
jQuery('#jform_type').removeClass('required');
jform_vvvvvzqvzs_required = true;
jform_vvvvvzrvzt_required = true;
}
}
}
// the vvvvvzr function
function vvvvvzr(target_vvvvvzr,type_vvvvvzr)
// the vvvvvzs function
function vvvvvzs(target_vvvvvzs,type_vvvvvzs)
{
// set the function logic
if (target_vvvvvzr == 1 && type_vvvvvzr == 1)
if (target_vvvvvzs == 1 && type_vvvvvzs == 1)
{
jQuery('#jform_hashendtarget').closest('.control-group').show();
jQuery('#jform_to_line').closest('.control-group').show();
@@ -172,11 +172,11 @@ function vvvvvzr(target_vvvvvzr,type_vvvvvzr)
}
}
// the vvvvvzs function
function vvvvvzs(type_vvvvvzs,target_vvvvvzs)
// the vvvvvzt function
function vvvvvzt(type_vvvvvzt,target_vvvvvzt)
{
// set the function logic
if (type_vvvvvzs == 1 && target_vvvvvzs == 1)
if (type_vvvvvzt == 1 && target_vvvvvzt == 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

File diff suppressed because it is too large Load Diff

View File

@@ -23,151 +23,96 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvztvzt_required = false;
jform_vvvvvzuvzu_required = false;
jform_vvvvvzvvzv_required = false;
jform_vvvvvzwvzw_required = false;
jform_vvvvvzzvzx_required = false;
jform_vvvvvzxvzx_required = false;
jform_vvvvwaavzy_required = false;
jform_vvvvwabvzz_required = false;
jform_vvvvwacwaa_required = false;
jform_vvvvwadwab_required = false;
// Initial Script
jQuery(document).ready(function()
{
var datalenght_vvvvvzt = jQuery("#jform_datalenght").val();
vvvvvzt(datalenght_vvvvvzt);
var datalenght_vvvvvzu = jQuery("#jform_datalenght").val();
vvvvvzu(datalenght_vvvvvzu);
var datadefault_vvvvvzu = jQuery("#jform_datadefault").val();
vvvvvzu(datadefault_vvvvvzu);
var datatype_vvvvvzv = jQuery("#jform_datatype").val();
vvvvvzv(datatype_vvvvvzv);
var datadefault_vvvvvzv = jQuery("#jform_datadefault").val();
vvvvvzv(datadefault_vvvvvzv);
var datatype_vvvvvzw = jQuery("#jform_datatype").val();
vvvvvzw(datatype_vvvvvzw);
var store_vvvvvzx = jQuery("#jform_store").val();
var datatype_vvvvvzx = jQuery("#jform_datatype").val();
vvvvvzx(store_vvvvvzx,datatype_vvvvvzx);
vvvvvzx(datatype_vvvvvzx);
var add_css_view_vvvvvzz = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvvzz(add_css_view_vvvvvzz);
var store_vvvvvzy = jQuery("#jform_store").val();
var datatype_vvvvvzy = jQuery("#jform_datatype").val();
vvvvvzy(store_vvvvvzy,datatype_vvvvvzy);
var add_css_views_vvvvwaa = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwaa(add_css_views_vvvvwaa);
var add_css_view_vvvvwaa = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvwaa(add_css_view_vvvvwaa);
var add_javascript_view_footer_vvvvwab = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwab(add_javascript_view_footer_vvvvwab);
var add_css_views_vvvvwab = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvwab(add_css_views_vvvvwab);
var add_javascript_views_footer_vvvvwac = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwac(add_javascript_views_footer_vvvvwac);
var add_javascript_view_footer_vvvvwac = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvwac(add_javascript_view_footer_vvvvwac);
var add_javascript_views_footer_vvvvwad = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvwad(add_javascript_views_footer_vvvvwad);
});
// the vvvvvzt function
function vvvvvzt(datalenght_vvvvvzt)
// the vvvvvzu function
function vvvvvzu(datalenght_vvvvvzu)
{
if (isSet(datalenght_vvvvvzt) && datalenght_vvvvvzt.constructor !== Array)
if (isSet(datalenght_vvvvvzu) && datalenght_vvvvvzu.constructor !== Array)
{
var temp_vvvvvzt = datalenght_vvvvvzt;
var datalenght_vvvvvzt = [];
datalenght_vvvvvzt.push(temp_vvvvvzt);
var temp_vvvvvzu = datalenght_vvvvvzu;
var datalenght_vvvvvzu = [];
datalenght_vvvvvzu.push(temp_vvvvvzu);
}
else if (!isSet(datalenght_vvvvvzt))
else if (!isSet(datalenght_vvvvvzu))
{
var datalenght_vvvvvzt = [];
var datalenght_vvvvvzu = [];
}
var datalenght = datalenght_vvvvvzt.some(datalenght_vvvvvzt_SomeFunc);
var datalenght = datalenght_vvvvvzu.some(datalenght_vvvvvzu_SomeFunc);
// set this function logic
if (datalenght)
{
jQuery('#jform_datalenght_other').closest('.control-group').show();
if (jform_vvvvvztvzt_required)
if (jform_vvvvvzuvzu_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_vvvvvztvzt_required = false;
}
}
else
{
jQuery('#jform_datalenght_other').closest('.control-group').hide();
if (!jform_vvvvvztvzt_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_vvvvvztvzt_required = true;
}
}
}
// the vvvvvzt Some function
function datalenght_vvvvvzt_SomeFunc(datalenght_vvvvvzt)
{
// set the function logic
if (datalenght_vvvvvzt == 'Other')
{
return true;
}
return false;
}
// the vvvvvzu function
function vvvvvzu(datadefault_vvvvvzu)
{
if (isSet(datadefault_vvvvvzu) && datadefault_vvvvvzu.constructor !== Array)
{
var temp_vvvvvzu = datadefault_vvvvvzu;
var datadefault_vvvvvzu = [];
datadefault_vvvvvzu.push(temp_vvvvvzu);
}
else if (!isSet(datadefault_vvvvvzu))
{
var datadefault_vvvvvzu = [];
}
var datadefault = datadefault_vvvvvzu.some(datadefault_vvvvvzu_SomeFunc);
// set this function logic
if (datadefault)
{
jQuery('#jform_datadefault_other').closest('.control-group').show();
if (jform_vvvvvzuvzu_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_vvvvvzuvzu_required = false;
}
}
else
{
jQuery('#jform_datadefault_other').closest('.control-group').hide();
jQuery('#jform_datalenght_other').closest('.control-group').hide();
if (!jform_vvvvvzuvzu_required)
{
updateFieldRequired('datadefault_other',1);
jQuery('#jform_datadefault_other').removeAttr('required');
jQuery('#jform_datadefault_other').removeAttr('aria-required');
jQuery('#jform_datadefault_other').removeClass('required');
updateFieldRequired('datalenght_other',1);
jQuery('#jform_datalenght_other').removeAttr('required');
jQuery('#jform_datalenght_other').removeAttr('aria-required');
jQuery('#jform_datalenght_other').removeClass('required');
jform_vvvvvzuvzu_required = true;
}
}
}
// the vvvvvzu Some function
function datadefault_vvvvvzu_SomeFunc(datadefault_vvvvvzu)
function datalenght_vvvvvzu_SomeFunc(datalenght_vvvvvzu)
{
// set the function logic
if (datadefault_vvvvvzu == 'Other')
if (datalenght_vvvvvzu == 'Other')
{
return true;
}
@@ -175,58 +120,54 @@ function datadefault_vvvvvzu_SomeFunc(datadefault_vvvvvzu)
}
// the vvvvvzv function
function vvvvvzv(datatype_vvvvvzv)
function vvvvvzv(datadefault_vvvvvzv)
{
if (isSet(datatype_vvvvvzv) && datatype_vvvvvzv.constructor !== Array)
if (isSet(datadefault_vvvvvzv) && datadefault_vvvvvzv.constructor !== Array)
{
var temp_vvvvvzv = datatype_vvvvvzv;
var datatype_vvvvvzv = [];
datatype_vvvvvzv.push(temp_vvvvvzv);
var temp_vvvvvzv = datadefault_vvvvvzv;
var datadefault_vvvvvzv = [];
datadefault_vvvvvzv.push(temp_vvvvvzv);
}
else if (!isSet(datatype_vvvvvzv))
else if (!isSet(datadefault_vvvvvzv))
{
var datatype_vvvvvzv = [];
var datadefault_vvvvvzv = [];
}
var datatype = datatype_vvvvvzv.some(datatype_vvvvvzv_SomeFunc);
var datadefault = datadefault_vvvvvzv.some(datadefault_vvvvvzv_SomeFunc);
// set this function logic
if (datatype)
if (datadefault)
{
jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show();
jQuery('#jform_datadefault_other').closest('.control-group').show();
if (jform_vvvvvzvvzv_required)
{
updateFieldRequired('indexes',0);
jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required');
updateFieldRequired('datadefault_other',0);
jQuery('#jform_datadefault_other').prop('required','required');
jQuery('#jform_datadefault_other').attr('aria-required',true);
jQuery('#jform_datadefault_other').addClass('required');
jform_vvvvvzvvzv_required = false;
}
}
else
{
jQuery('#jform_datadefault').closest('.control-group').hide();
jQuery('#jform_datalenght').closest('.control-group').hide();
jQuery('#jform_indexes').closest('.control-group').hide();
jQuery('#jform_datadefault_other').closest('.control-group').hide();
if (!jform_vvvvvzvvzv_required)
{
updateFieldRequired('indexes',1);
jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('required');
updateFieldRequired('datadefault_other',1);
jQuery('#jform_datadefault_other').removeAttr('required');
jQuery('#jform_datadefault_other').removeAttr('aria-required');
jQuery('#jform_datadefault_other').removeClass('required');
jform_vvvvvzvvzv_required = true;
}
}
}
// the vvvvvzv Some function
function datatype_vvvvvzv_SomeFunc(datatype_vvvvvzv)
function datadefault_vvvvvzv_SomeFunc(datadefault_vvvvvzv)
{
// set the function logic
if (datatype_vvvvvzv == 'CHAR' || datatype_vvvvvzv == 'VARCHAR' || datatype_vvvvvzv == 'DATETIME' || datatype_vvvvvzv == 'DATE' || datatype_vvvvvzv == 'TIME' || datatype_vvvvvzv == 'INT' || datatype_vvvvvzv == 'TINYINT' || datatype_vvvvvzv == 'BIGINT' || datatype_vvvvvzv == 'FLOAT' || datatype_vvvvvzv == 'DECIMAL' || datatype_vvvvvzv == 'DOUBLE')
if (datadefault_vvvvvzv == 'Other')
{
return true;
}
@@ -252,26 +193,30 @@ function vvvvvzw(datatype_vvvvvzw)
// set this function logic
if (datatype)
{
jQuery('#jform_store').closest('.control-group').show();
jQuery('#jform_datadefault').closest('.control-group').show();
jQuery('#jform_datalenght').closest('.control-group').show();
jQuery('#jform_indexes').closest('.control-group').show();
if (jform_vvvvvzwvzw_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
updateFieldRequired('indexes',0);
jQuery('#jform_indexes').prop('required','required');
jQuery('#jform_indexes').attr('aria-required',true);
jQuery('#jform_indexes').addClass('required');
jform_vvvvvzwvzw_required = false;
}
}
else
{
jQuery('#jform_store').closest('.control-group').hide();
jQuery('#jform_datadefault').closest('.control-group').hide();
jQuery('#jform_datalenght').closest('.control-group').hide();
jQuery('#jform_indexes').closest('.control-group').hide();
if (!jform_vvvvvzwvzw_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
updateFieldRequired('indexes',1);
jQuery('#jform_indexes').removeAttr('required');
jQuery('#jform_indexes').removeAttr('aria-required');
jQuery('#jform_indexes').removeClass('required');
jform_vvvvvzwvzw_required = true;
}
}
@@ -281,7 +226,7 @@ function vvvvvzw(datatype_vvvvvzw)
function datatype_vvvvvzw_SomeFunc(datatype_vvvvvzw)
{
// set the function logic
if (datatype_vvvvvzw == 'CHAR' || datatype_vvvvvzw == 'VARCHAR' || datatype_vvvvvzw == 'TEXT' || datatype_vvvvvzw == 'MEDIUMTEXT' || datatype_vvvvvzw == 'LONGTEXT')
if (datatype_vvvvvzw == 'CHAR' || datatype_vvvvvzw == 'VARCHAR' || datatype_vvvvvzw == 'DATETIME' || datatype_vvvvvzw == 'DATE' || datatype_vvvvvzw == 'TIME' || datatype_vvvvvzw == 'INT' || datatype_vvvvvzw == 'TINYINT' || datatype_vvvvvzw == 'BIGINT' || datatype_vvvvvzw == 'FLOAT' || datatype_vvvvvzw == 'DECIMAL' || datatype_vvvvvzw == 'DOUBLE')
{
return true;
}
@@ -289,20 +234,8 @@ function datatype_vvvvvzw_SomeFunc(datatype_vvvvvzw)
}
// the vvvvvzx function
function vvvvvzx(store_vvvvvzx,datatype_vvvvvzx)
function vvvvvzx(datatype_vvvvvzx)
{
if (isSet(store_vvvvvzx) && store_vvvvvzx.constructor !== Array)
{
var temp_vvvvvzx = store_vvvvvzx;
var store_vvvvvzx = [];
store_vvvvvzx.push(temp_vvvvvzx);
}
else if (!isSet(store_vvvvvzx))
{
var store_vvvvvzx = [];
}
var store = store_vvvvvzx.some(store_vvvvvzx_SomeFunc);
if (isSet(datatype_vvvvvzx) && datatype_vvvvvzx.constructor !== Array)
{
var temp_vvvvvzx = datatype_vvvvvzx;
@@ -317,27 +250,33 @@ function vvvvvzx(store_vvvvvzx,datatype_vvvvvzx)
// set this function logic
if (store && datatype)
if (datatype)
{
jQuery('.note_vdm_encryption').closest('.control-group').show();
jQuery('#jform_store').closest('.control-group').show();
if (jform_vvvvvzxvzx_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvvzxvzx_required = false;
}
}
else
{
jQuery('.note_vdm_encryption').closest('.control-group').hide();
jQuery('#jform_store').closest('.control-group').hide();
if (!jform_vvvvvzxvzx_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvvzxvzx_required = true;
}
}
}
// the vvvvvzx Some function
function store_vvvvvzx_SomeFunc(store_vvvvvzx)
{
// set the function logic
if (store_vvvvvzx == 4)
{
return true;
}
return false;
}
// the vvvvvzx Some function
function datatype_vvvvvzx_SomeFunc(datatype_vvvvvzx)
{
@@ -349,126 +288,187 @@ function datatype_vvvvvzx_SomeFunc(datatype_vvvvvzx)
return false;
}
// the vvvvvzz function
function vvvvvzz(add_css_view_vvvvvzz)
// the vvvvvzy function
function vvvvvzy(store_vvvvvzy,datatype_vvvvvzy)
{
if (isSet(store_vvvvvzy) && store_vvvvvzy.constructor !== Array)
{
var temp_vvvvvzy = store_vvvvvzy;
var store_vvvvvzy = [];
store_vvvvvzy.push(temp_vvvvvzy);
}
else if (!isSet(store_vvvvvzy))
{
var store_vvvvvzy = [];
}
var store = store_vvvvvzy.some(store_vvvvvzy_SomeFunc);
if (isSet(datatype_vvvvvzy) && datatype_vvvvvzy.constructor !== Array)
{
var temp_vvvvvzy = datatype_vvvvvzy;
var datatype_vvvvvzy = [];
datatype_vvvvvzy.push(temp_vvvvvzy);
}
else if (!isSet(datatype_vvvvvzy))
{
var datatype_vvvvvzy = [];
}
var datatype = datatype_vvvvvzy.some(datatype_vvvvvzy_SomeFunc);
// set this function logic
if (store && datatype)
{
jQuery('.note_vdm_encryption').closest('.control-group').show();
}
else
{
jQuery('.note_vdm_encryption').closest('.control-group').hide();
}
}
// the vvvvvzy Some function
function store_vvvvvzy_SomeFunc(store_vvvvvzy)
{
// set the function logic
if (add_css_view_vvvvvzz == 1)
if (store_vvvvvzy == 4)
{
return true;
}
return false;
}
// the vvvvvzy Some function
function datatype_vvvvvzy_SomeFunc(datatype_vvvvvzy)
{
// set the function logic
if (datatype_vvvvvzy == 'CHAR' || datatype_vvvvvzy == 'VARCHAR' || datatype_vvvvvzy == 'TEXT' || datatype_vvvvvzy == 'MEDIUMTEXT' || datatype_vvvvvzy == 'LONGTEXT')
{
return true;
}
return false;
}
// the vvvvwaa function
function vvvvwaa(add_css_view_vvvvwaa)
{
// set the function logic
if (add_css_view_vvvvwaa == 1)
{
jQuery('#jform_css_view').closest('.control-group').show();
if (jform_vvvvvzzvzx_required)
if (jform_vvvvwaavzy_required)
{
updateFieldRequired('css_view',0);
jQuery('#jform_css_view').prop('required','required');
jQuery('#jform_css_view').attr('aria-required',true);
jQuery('#jform_css_view').addClass('required');
jform_vvvvvzzvzx_required = false;
}
}
else
{
jQuery('#jform_css_view').closest('.control-group').hide();
if (!jform_vvvvvzzvzx_required)
{
updateFieldRequired('css_view',1);
jQuery('#jform_css_view').removeAttr('required');
jQuery('#jform_css_view').removeAttr('aria-required');
jQuery('#jform_css_view').removeClass('required');
jform_vvvvvzzvzx_required = true;
}
}
}
// the vvvvwaa function
function vvvvwaa(add_css_views_vvvvwaa)
{
// set the function logic
if (add_css_views_vvvvwaa == 1)
{
jQuery('#jform_css_views').closest('.control-group').show();
if (jform_vvvvwaavzy_required)
{
updateFieldRequired('css_views',0);
jQuery('#jform_css_views').prop('required','required');
jQuery('#jform_css_views').attr('aria-required',true);
jQuery('#jform_css_views').addClass('required');
jform_vvvvwaavzy_required = false;
}
}
else
{
jQuery('#jform_css_views').closest('.control-group').hide();
jQuery('#jform_css_view').closest('.control-group').hide();
if (!jform_vvvvwaavzy_required)
{
updateFieldRequired('css_views',1);
jQuery('#jform_css_views').removeAttr('required');
jQuery('#jform_css_views').removeAttr('aria-required');
jQuery('#jform_css_views').removeClass('required');
updateFieldRequired('css_view',1);
jQuery('#jform_css_view').removeAttr('required');
jQuery('#jform_css_view').removeAttr('aria-required');
jQuery('#jform_css_view').removeClass('required');
jform_vvvvwaavzy_required = true;
}
}
}
// the vvvvwab function
function vvvvwab(add_javascript_view_footer_vvvvwab)
function vvvvwab(add_css_views_vvvvwab)
{
// set the function logic
if (add_javascript_view_footer_vvvvwab == 1)
if (add_css_views_vvvvwab == 1)
{
jQuery('#jform_javascript_view_footer').closest('.control-group').show();
jQuery('#jform_css_views').closest('.control-group').show();
if (jform_vvvvwabvzz_required)
{
updateFieldRequired('javascript_view_footer',0);
jQuery('#jform_javascript_view_footer').prop('required','required');
jQuery('#jform_javascript_view_footer').attr('aria-required',true);
jQuery('#jform_javascript_view_footer').addClass('required');
updateFieldRequired('css_views',0);
jQuery('#jform_css_views').prop('required','required');
jQuery('#jform_css_views').attr('aria-required',true);
jQuery('#jform_css_views').addClass('required');
jform_vvvvwabvzz_required = false;
}
}
else
{
jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
jQuery('#jform_css_views').closest('.control-group').hide();
if (!jform_vvvvwabvzz_required)
{
updateFieldRequired('javascript_view_footer',1);
jQuery('#jform_javascript_view_footer').removeAttr('required');
jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
jQuery('#jform_javascript_view_footer').removeClass('required');
updateFieldRequired('css_views',1);
jQuery('#jform_css_views').removeAttr('required');
jQuery('#jform_css_views').removeAttr('aria-required');
jQuery('#jform_css_views').removeClass('required');
jform_vvvvwabvzz_required = true;
}
}
}
// the vvvvwac function
function vvvvwac(add_javascript_views_footer_vvvvwac)
function vvvvwac(add_javascript_view_footer_vvvvwac)
{
// set the function logic
if (add_javascript_views_footer_vvvvwac == 1)
if (add_javascript_view_footer_vvvvwac == 1)
{
jQuery('#jform_javascript_views_footer').closest('.control-group').show();
jQuery('#jform_javascript_view_footer').closest('.control-group').show();
if (jform_vvvvwacwaa_required)
{
updateFieldRequired('javascript_views_footer',0);
jQuery('#jform_javascript_views_footer').prop('required','required');
jQuery('#jform_javascript_views_footer').attr('aria-required',true);
jQuery('#jform_javascript_views_footer').addClass('required');
updateFieldRequired('javascript_view_footer',0);
jQuery('#jform_javascript_view_footer').prop('required','required');
jQuery('#jform_javascript_view_footer').attr('aria-required',true);
jQuery('#jform_javascript_view_footer').addClass('required');
jform_vvvvwacwaa_required = false;
}
}
else
{
jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
if (!jform_vvvvwacwaa_required)
{
updateFieldRequired('javascript_view_footer',1);
jQuery('#jform_javascript_view_footer').removeAttr('required');
jQuery('#jform_javascript_view_footer').removeAttr('aria-required');
jQuery('#jform_javascript_view_footer').removeClass('required');
jform_vvvvwacwaa_required = true;
}
}
}
// the vvvvwad function
function vvvvwad(add_javascript_views_footer_vvvvwad)
{
// set the function logic
if (add_javascript_views_footer_vvvvwad == 1)
{
jQuery('#jform_javascript_views_footer').closest('.control-group').show();
if (jform_vvvvwadwab_required)
{
updateFieldRequired('javascript_views_footer',0);
jQuery('#jform_javascript_views_footer').prop('required','required');
jQuery('#jform_javascript_views_footer').attr('aria-required',true);
jQuery('#jform_javascript_views_footer').addClass('required');
jform_vvvvwadwab_required = false;
}
}
else
{
jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
if (!jform_vvvvwadwab_required)
{
updateFieldRequired('javascript_views_footer',1);
jQuery('#jform_javascript_views_footer').removeAttr('required');
jQuery('#jform_javascript_views_footer').removeAttr('aria-required');
jQuery('#jform_javascript_views_footer').removeClass('required');
jform_vvvvwacwaa_required = true;
jform_vvvvwadwab_required = true;
}
}
}

View File

@@ -185,51 +185,36 @@
message="Error! Please add value/example here."
hint="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_HINT"
/>
<!-- Adjustable Field. Type: Radio. (joomla) -->
<!-- Adjustable Field. Type: Checkbox. (joomla) -->
<field
type="radio"
type="checkbox"
name="adjustable"
label="COM_COMPONENTBUILDER_FIELDTYPE_ADJUSTABLE_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_FIELDTYPE_ADJUSTABLE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="1"
required="false">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELDTYPE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELDTYPE_NO</option>
</field>
<!-- Mandatory Field. Type: Radio. (joomla) -->
class="inputbox"
/>
<!-- Mandatory Field. Type: Checkbox. (joomla) -->
<field
type="radio"
type="checkbox"
name="mandatory"
label="COM_COMPONENTBUILDER_FIELDTYPE_MANDATORY_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_FIELDTYPE_MANDATORY_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="false">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELDTYPE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELDTYPE_NO</option>
</field>
<!-- Translatable Field. Type: Radio. (joomla) -->
class="inputbox"
/>
<!-- Translatable Field. Type: Checkbox. (joomla) -->
<field
type="radio"
type="checkbox"
name="translatable"
label="COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_LABEL"
value="1"
required="false"
description="COM_COMPONENTBUILDER_FIELDTYPE_TRANSLATABLE_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="false">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_FIELDTYPE_YES</option>
<option value="0">
COM_COMPONENTBUILDER_FIELDTYPE_NO</option>
</field>
class="inputbox"
/>
<!-- Description Field. Type: Textarea. (joomla) -->
<field
type="textarea"

View File

@@ -23,24 +23,21 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvwadwae_required = false;
jform_vvvvwaewaf_required = false;
jform_vvvvwafwag_required = false;
jform_vvvvwagwah_required = false;
jform_vvvvwahwai_required = false;
jform_vvvvwaiwaj_required = false;
jform_vvvvwajwak_required = false;
// Initial Script
jQuery(document).ready(function()
{
var location_vvvvwad = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwad(location_vvvvwad);
var location_vvvvwae = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwae(location_vvvvwae);
var type_vvvvwaf = jQuery("#jform_type").val();
vvvvwaf(type_vvvvwaf);
var location_vvvvwaf = jQuery("#jform_location input[type='radio']:checked").val();
vvvvwaf(location_vvvvwaf);
var type_vvvvwag = jQuery("#jform_type").val();
vvvvwag(type_vvvvwag);
@@ -48,127 +45,75 @@ jQuery(document).ready(function()
var type_vvvvwah = jQuery("#jform_type").val();
vvvvwah(type_vvvvwah);
var target_vvvvwai = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwai(target_vvvvwai);
var type_vvvvwai = jQuery("#jform_type").val();
vvvvwai(type_vvvvwai);
var target_vvvvwaj = jQuery("#jform_target input[type='radio']:checked").val();
vvvvwaj(target_vvvvwaj);
});
// the vvvvwad function
function vvvvwad(location_vvvvwad)
{
// set the function logic
if (location_vvvvwad == 1)
{
jQuery('#jform_admin_view').closest('.control-group').show();
if (jform_vvvvwadwae_required)
{
updateFieldRequired('admin_view',0);
jQuery('#jform_admin_view').prop('required','required');
jQuery('#jform_admin_view').attr('aria-required',true);
jQuery('#jform_admin_view').addClass('required');
jform_vvvvwadwae_required = false;
}
}
else
{
jQuery('#jform_admin_view').closest('.control-group').hide();
if (!jform_vvvvwadwae_required)
{
updateFieldRequired('admin_view',1);
jQuery('#jform_admin_view').removeAttr('required');
jQuery('#jform_admin_view').removeAttr('aria-required');
jQuery('#jform_admin_view').removeClass('required');
jform_vvvvwadwae_required = true;
}
}
}
// the vvvvwae function
function vvvvwae(location_vvvvwae)
{
// set the function logic
if (location_vvvvwae == 2)
if (location_vvvvwae == 1)
{
jQuery('#jform_site_view').closest('.control-group').show();
jQuery('#jform_admin_view').closest('.control-group').show();
if (jform_vvvvwaewaf_required)
{
updateFieldRequired('site_view',0);
jQuery('#jform_site_view').prop('required','required');
jQuery('#jform_site_view').attr('aria-required',true);
jQuery('#jform_site_view').addClass('required');
updateFieldRequired('admin_view',0);
jQuery('#jform_admin_view').prop('required','required');
jQuery('#jform_admin_view').attr('aria-required',true);
jQuery('#jform_admin_view').addClass('required');
jform_vvvvwaewaf_required = false;
}
}
else
{
jQuery('#jform_site_view').closest('.control-group').hide();
jQuery('#jform_admin_view').closest('.control-group').hide();
if (!jform_vvvvwaewaf_required)
{
updateFieldRequired('site_view',1);
jQuery('#jform_site_view').removeAttr('required');
jQuery('#jform_site_view').removeAttr('aria-required');
jQuery('#jform_site_view').removeClass('required');
updateFieldRequired('admin_view',1);
jQuery('#jform_admin_view').removeAttr('required');
jQuery('#jform_admin_view').removeAttr('aria-required');
jQuery('#jform_admin_view').removeClass('required');
jform_vvvvwaewaf_required = true;
}
}
}
// the vvvvwaf function
function vvvvwaf(type_vvvvwaf)
function vvvvwaf(location_vvvvwaf)
{
if (isSet(type_vvvvwaf) && type_vvvvwaf.constructor !== Array)
// set the function logic
if (location_vvvvwaf == 2)
{
var temp_vvvvwaf = type_vvvvwaf;
var type_vvvvwaf = [];
type_vvvvwaf.push(temp_vvvvwaf);
}
else if (!isSet(type_vvvvwaf))
{
var type_vvvvwaf = [];
}
var type = type_vvvvwaf.some(type_vvvvwaf_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_url').closest('.control-group').show();
jQuery('#jform_site_view').closest('.control-group').show();
if (jform_vvvvwafwag_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
updateFieldRequired('site_view',0);
jQuery('#jform_site_view').prop('required','required');
jQuery('#jform_site_view').attr('aria-required',true);
jQuery('#jform_site_view').addClass('required');
jform_vvvvwafwag_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
jQuery('#jform_site_view').closest('.control-group').hide();
if (!jform_vvvvwafwag_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
updateFieldRequired('site_view',1);
jQuery('#jform_site_view').removeAttr('required');
jQuery('#jform_site_view').removeAttr('aria-required');
jQuery('#jform_site_view').removeClass('required');
jform_vvvvwafwag_required = true;
}
}
}
// the vvvvwaf Some function
function type_vvvvwaf_SomeFunc(type_vvvvwaf)
{
// set the function logic
if (type_vvvvwaf == 3)
{
return true;
}
return false;
}
// the vvvvwag function
function vvvvwag(type_vvvvwag)
{
@@ -188,26 +133,26 @@ function vvvvwag(type_vvvvwag)
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
jQuery('#jform_url').closest('.control-group').show();
if (jform_vvvvwagwah_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvwagwah_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_vvvvwagwah_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvwagwah_required = true;
}
}
@@ -217,7 +162,7 @@ function vvvvwag(type_vvvvwag)
function type_vvvvwag_SomeFunc(type_vvvvwag)
{
// set the function logic
if (type_vvvvwag == 1)
if (type_vvvvwag == 3)
{
return true;
}
@@ -243,26 +188,26 @@ function vvvvwah(type_vvvvwah)
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
jQuery('#jform_article').closest('.control-group').show();
if (jform_vvvvwahwai_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_vvvvwahwai_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
jQuery('#jform_article').closest('.control-group').hide();
if (!jform_vvvvwahwai_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_vvvvwahwai_required = true;
}
}
@@ -272,7 +217,7 @@ function vvvvwah(type_vvvvwah)
function type_vvvvwah_SomeFunc(type_vvvvwah)
{
// set the function logic
if (type_vvvvwah == 2)
if (type_vvvvwah == 1)
{
return true;
}
@@ -280,32 +225,87 @@ function type_vvvvwah_SomeFunc(type_vvvvwah)
}
// the vvvvwai function
function vvvvwai(target_vvvvwai)
function vvvvwai(type_vvvvwai)
{
// set the function logic
if (target_vvvvwai == 1)
if (isSet(type_vvvvwai) && type_vvvvwai.constructor !== Array)
{
jQuery('#jform_groups').closest('.control-group').show();
var temp_vvvvwai = type_vvvvwai;
var type_vvvvwai = [];
type_vvvvwai.push(temp_vvvvwai);
}
else if (!isSet(type_vvvvwai))
{
var type_vvvvwai = [];
}
var type = type_vvvvwai.some(type_vvvvwai_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_vvvvwaiwaj_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_vvvvwaiwaj_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_vvvvwaiwaj_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_vvvvwaiwaj_required = true;
}
}
}
// the vvvvwai Some function
function type_vvvvwai_SomeFunc(type_vvvvwai)
{
// set the function logic
if (type_vvvvwai == 2)
{
return true;
}
return false;
}
// the vvvvwaj function
function vvvvwaj(target_vvvvwaj)
{
// set the function logic
if (target_vvvvwaj == 1)
{
jQuery('#jform_groups').closest('.control-group').show();
if (jform_vvvvwajwak_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
jform_vvvvwajwak_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
if (!jform_vvvvwajwak_required)
{
updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required');
jform_vvvvwaiwaj_required = true;
jform_vvvvwajwak_required = true;
}
}
}

View File

@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 378 of this MVC
@build 18th September, 2017
@version @update number 385 of this MVC
@build 6th October, 2017
@created 6th May, 2015
@package Component Builder
@subpackage joomla_component.js
@@ -28,18 +28,19 @@ jform_vvvvvvwvvw_required = false;
jform_vvvvvvxvvx_required = false;
jform_vvvvvvyvvy_required = false;
jform_vvvvvvzvvz_required = false;
jform_vvvvvwbvwa_required = false;
jform_vvvvvwavwa_required = false;
jform_vvvvvwcvwb_required = false;
jform_vvvvvwdvwc_required = false;
jform_vvvvvwevwd_required = false;
jform_vvvvvwivwe_required = false;
jform_vvvvvwfvwe_required = false;
jform_vvvvvwjvwf_required = false;
jform_vvvvvwkvwg_required = false;
jform_vvvvvwlvwh_required = false;
jform_vvvvvwmvwi_required = false;
jform_vvvvvwnvwj_required = false;
jform_vvvvvwuvwk_required = false;
jform_vvvvvwovwk_required = false;
jform_vvvvvwvvwl_required = false;
jform_vvvvvwwvwm_required = false;
// Initial Script
jQuery(document).ready(function()
@@ -56,72 +57,75 @@ jQuery(document).ready(function()
var add_css_vvvvvvy = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvvy(add_css_vvvvvvy);
var add_sql_vvvvvvz = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvvz(add_sql_vvvvvvz);
var add_javascript_vvvvvvz = jQuery("#jform_add_javascript input[type='radio']:checked").val();
vvvvvvz(add_javascript_vvvvvvz);
var emptycontributors_vvvvvwa = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
vvvvvwa(emptycontributors_vvvvvwa);
var add_sql_vvvvvwa = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvwa(add_sql_vvvvvwa);
var add_license_vvvvvwb = jQuery("#jform_add_license input[type='radio']:checked").val();
vvvvvwb(add_license_vvvvvwb);
var emptycontributors_vvvvvwb = jQuery("#jform_emptycontributors input[type='radio']:checked").val();
vvvvvwb(emptycontributors_vvvvvwb);
var add_admin_event_vvvvvwc = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
vvvvvwc(add_admin_event_vvvvvwc);
var add_license_vvvvvwc = jQuery("#jform_add_license input[type='radio']:checked").val();
vvvvvwc(add_license_vvvvvwc);
var add_site_event_vvvvvwd = jQuery("#jform_add_site_event input[type='radio']:checked").val();
vvvvvwd(add_site_event_vvvvvwd);
var add_admin_event_vvvvvwd = jQuery("#jform_add_admin_event input[type='radio']:checked").val();
vvvvvwd(add_admin_event_vvvvvwd);
var addreadme_vvvvvwe = jQuery("#jform_addreadme input[type='radio']:checked").val();
vvvvvwe(addreadme_vvvvvwe);
var add_site_event_vvvvvwe = jQuery("#jform_add_site_event input[type='radio']:checked").val();
vvvvvwe(add_site_event_vvvvvwe);
var add_update_server_vvvvvwf = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwf(add_update_server_vvvvvwf);
var addreadme_vvvvvwf = jQuery("#jform_addreadme input[type='radio']:checked").val();
vvvvvwf(addreadme_vvvvvwf);
var add_sales_server_vvvvvwg = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
vvvvvwg(add_sales_server_vvvvvwg);
var add_update_server_vvvvvwg = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwg(add_update_server_vvvvvwg);
var add_license_vvvvvwh = jQuery("#jform_add_license input[type='radio']:checked").val();
vvvvvwh(add_license_vvvvvwh);
var add_sales_server_vvvvvwh = jQuery("#jform_add_sales_server input[type='radio']:checked").val();
vvvvvwh(add_sales_server_vvvvvwh);
var add_php_dashboard_methods_vvvvvwi = jQuery("#jform_add_php_dashboard_methods input[type='radio']:checked").val();
vvvvvwi(add_php_dashboard_methods_vvvvvwi);
var add_license_vvvvvwi = jQuery("#jform_add_license input[type='radio']:checked").val();
vvvvvwi(add_license_vvvvvwi);
var add_php_postflight_install_vvvvvwj = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
vvvvvwj(add_php_postflight_install_vvvvvwj);
var add_php_dashboard_methods_vvvvvwj = jQuery("#jform_add_php_dashboard_methods input[type='radio']:checked").val();
vvvvvwj(add_php_dashboard_methods_vvvvvwj);
var add_php_postflight_update_vvvvvwk = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
vvvvvwk(add_php_postflight_update_vvvvvwk);
var add_php_postflight_install_vvvvvwk = jQuery("#jform_add_php_postflight_install input[type='radio']:checked").val();
vvvvvwk(add_php_postflight_install_vvvvvwk);
var add_php_method_uninstall_vvvvvwl = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
vvvvvwl(add_php_method_uninstall_vvvvvwl);
var add_php_postflight_update_vvvvvwl = jQuery("#jform_add_php_postflight_update input[type='radio']:checked").val();
vvvvvwl(add_php_postflight_update_vvvvvwl);
var add_php_preflight_install_vvvvvwm = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
vvvvvwm(add_php_preflight_install_vvvvvwm);
var add_php_method_uninstall_vvvvvwm = jQuery("#jform_add_php_method_uninstall input[type='radio']:checked").val();
vvvvvwm(add_php_method_uninstall_vvvvvwm);
var add_php_preflight_update_vvvvvwn = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
vvvvvwn(add_php_preflight_update_vvvvvwn);
var add_php_preflight_install_vvvvvwn = jQuery("#jform_add_php_preflight_install input[type='radio']:checked").val();
vvvvvwn(add_php_preflight_install_vvvvvwn);
var update_server_target_vvvvvwo = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwo = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwo(update_server_target_vvvvvwo,add_update_server_vvvvvwo);
var add_php_preflight_update_vvvvvwo = jQuery("#jform_add_php_preflight_update input[type='radio']:checked").val();
vvvvvwo(add_php_preflight_update_vvvvvwo);
var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
var update_server_target_vvvvvwp = jQuery("#jform_update_server_target input[type='radio']:checked").val();
vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp);
var add_update_server_vvvvvwp = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwp(update_server_target_vvvvvwp,add_update_server_vvvvvwp);
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq);
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
vvvvvwq(add_update_server_vvvvvwq,update_server_target_vvvvvwq);
var update_server_target_vvvvvws = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvws = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws);
var update_server_target_vvvvvwr = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwr = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwr(update_server_target_vvvvvwr,add_update_server_vvvvvwr);
var add_update_server_vvvvvwu = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwu(add_update_server_vvvvvwu);
var update_server_target_vvvvvwt = jQuery("#jform_update_server_target input[type='radio']:checked").val();
var add_update_server_vvvvvwt = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwt(update_server_target_vvvvvwt,add_update_server_vvvvvwt);
var buildcomp_vvvvvwv = jQuery("#jform_buildcomp input[type='radio']:checked").val();
vvvvvwv(buildcomp_vvvvvwv);
var add_update_server_vvvvvwv = jQuery("#jform_add_update_server input[type='radio']:checked").val();
vvvvvwv(add_update_server_vvvvvwv);
var buildcomp_vvvvvww = jQuery("#jform_buildcomp input[type='radio']:checked").val();
vvvvvww(buildcomp_vvvvvww);
});
// the vvvvvvv function
@@ -249,41 +253,72 @@ function vvvvvvy(add_css_vvvvvvy)
}
// the vvvvvvz function
function vvvvvvz(add_sql_vvvvvvz)
function vvvvvvz(add_javascript_vvvvvvz)
{
// set the function logic
if (add_sql_vvvvvvz == 1)
if (add_javascript_vvvvvvz == 1)
{
jQuery('#jform_sql').closest('.control-group').show();
jQuery('#jform_javascript').closest('.control-group').show();
if (jform_vvvvvvzvvz_required)
{
updateFieldRequired('sql',0);
jQuery('#jform_sql').prop('required','required');
jQuery('#jform_sql').attr('aria-required',true);
jQuery('#jform_sql').addClass('required');
updateFieldRequired('javascript',0);
jQuery('#jform_javascript').prop('required','required');
jQuery('#jform_javascript').attr('aria-required',true);
jQuery('#jform_javascript').addClass('required');
jform_vvvvvvzvvz_required = false;
}
}
else
{
jQuery('#jform_sql').closest('.control-group').hide();
jQuery('#jform_javascript').closest('.control-group').hide();
if (!jform_vvvvvvzvvz_required)
{
updateFieldRequired('sql',1);
jQuery('#jform_sql').removeAttr('required');
jQuery('#jform_sql').removeAttr('aria-required');
jQuery('#jform_sql').removeClass('required');
updateFieldRequired('javascript',1);
jQuery('#jform_javascript').removeAttr('required');
jQuery('#jform_javascript').removeAttr('aria-required');
jQuery('#jform_javascript').removeClass('required');
jform_vvvvvvzvvz_required = true;
}
}
}
// the vvvvvwa function
function vvvvvwa(emptycontributors_vvvvvwa)
function vvvvvwa(add_sql_vvvvvwa)
{
// set the function logic
if (emptycontributors_vvvvvwa == 1)
if (add_sql_vvvvvwa == 1)
{
jQuery('#jform_sql').closest('.control-group').show();
if (jform_vvvvvwavwa_required)
{
updateFieldRequired('sql',0);
jQuery('#jform_sql').prop('required','required');
jQuery('#jform_sql').attr('aria-required',true);
jQuery('#jform_sql').addClass('required');
jform_vvvvvwavwa_required = false;
}
}
else
{
jQuery('#jform_sql').closest('.control-group').hide();
if (!jform_vvvvvwavwa_required)
{
updateFieldRequired('sql',1);
jQuery('#jform_sql').removeAttr('required');
jQuery('#jform_sql').removeAttr('aria-required');
jQuery('#jform_sql').removeClass('required');
jform_vvvvvwavwa_required = true;
}
}
}
// the vvvvvwb function
function vvvvvwb(emptycontributors_vvvvvwb)
{
// set the function logic
if (emptycontributors_vvvvvwb == 1)
{
jQuery('#jform_number').closest('.control-group').show();
}
@@ -293,114 +328,114 @@ function vvvvvwa(emptycontributors_vvvvvwa)
}
}
// the vvvvvwb function
function vvvvvwb(add_license_vvvvvwb)
// the vvvvvwc function
function vvvvvwc(add_license_vvvvvwc)
{
// set the function logic
if (add_license_vvvvvwb == 1)
if (add_license_vvvvvwc == 1)
{
jQuery('#jform_license_type').closest('.control-group').show();
if (jform_vvvvvwbvwa_required)
if (jform_vvvvvwcvwb_required)
{
updateFieldRequired('license_type',0);
jQuery('#jform_license_type').prop('required','required');
jQuery('#jform_license_type').attr('aria-required',true);
jQuery('#jform_license_type').addClass('required');
jform_vvvvvwbvwa_required = false;
}
}
else
{
jQuery('#jform_license_type').closest('.control-group').hide();
if (!jform_vvvvvwbvwa_required)
{
updateFieldRequired('license_type',1);
jQuery('#jform_license_type').removeAttr('required');
jQuery('#jform_license_type').removeAttr('aria-required');
jQuery('#jform_license_type').removeClass('required');
jform_vvvvvwbvwa_required = true;
}
}
}
// the vvvvvwc function
function vvvvvwc(add_admin_event_vvvvvwc)
{
// set the function logic
if (add_admin_event_vvvvvwc == 1)
{
jQuery('#jform_php_admin_event').closest('.control-group').show();
if (jform_vvvvvwcvwb_required)
{
updateFieldRequired('php_admin_event',0);
jQuery('#jform_php_admin_event').prop('required','required');
jQuery('#jform_php_admin_event').attr('aria-required',true);
jQuery('#jform_php_admin_event').addClass('required');
jform_vvvvvwcvwb_required = false;
}
}
else
{
jQuery('#jform_php_admin_event').closest('.control-group').hide();
jQuery('#jform_license_type').closest('.control-group').hide();
if (!jform_vvvvvwcvwb_required)
{
updateFieldRequired('php_admin_event',1);
jQuery('#jform_php_admin_event').removeAttr('required');
jQuery('#jform_php_admin_event').removeAttr('aria-required');
jQuery('#jform_php_admin_event').removeClass('required');
updateFieldRequired('license_type',1);
jQuery('#jform_license_type').removeAttr('required');
jQuery('#jform_license_type').removeAttr('aria-required');
jQuery('#jform_license_type').removeClass('required');
jform_vvvvvwcvwb_required = true;
}
}
}
// the vvvvvwd function
function vvvvvwd(add_site_event_vvvvvwd)
function vvvvvwd(add_admin_event_vvvvvwd)
{
// set the function logic
if (add_site_event_vvvvvwd == 1)
if (add_admin_event_vvvvvwd == 1)
{
jQuery('#jform_php_site_event').closest('.control-group').show();
jQuery('#jform_php_admin_event').closest('.control-group').show();
if (jform_vvvvvwdvwc_required)
{
updateFieldRequired('php_site_event',0);
jQuery('#jform_php_site_event').prop('required','required');
jQuery('#jform_php_site_event').attr('aria-required',true);
jQuery('#jform_php_site_event').addClass('required');
updateFieldRequired('php_admin_event',0);
jQuery('#jform_php_admin_event').prop('required','required');
jQuery('#jform_php_admin_event').attr('aria-required',true);
jQuery('#jform_php_admin_event').addClass('required');
jform_vvvvvwdvwc_required = false;
}
}
else
{
jQuery('#jform_php_site_event').closest('.control-group').hide();
jQuery('#jform_php_admin_event').closest('.control-group').hide();
if (!jform_vvvvvwdvwc_required)
{
updateFieldRequired('php_site_event',1);
jQuery('#jform_php_site_event').removeAttr('required');
jQuery('#jform_php_site_event').removeAttr('aria-required');
jQuery('#jform_php_site_event').removeClass('required');
updateFieldRequired('php_admin_event',1);
jQuery('#jform_php_admin_event').removeAttr('required');
jQuery('#jform_php_admin_event').removeAttr('aria-required');
jQuery('#jform_php_admin_event').removeClass('required');
jform_vvvvvwdvwc_required = true;
}
}
}
// the vvvvvwe function
function vvvvvwe(addreadme_vvvvvwe)
function vvvvvwe(add_site_event_vvvvvwe)
{
// set the function logic
if (addreadme_vvvvvwe == 1)
if (add_site_event_vvvvvwe == 1)
{
jQuery('#jform_php_site_event').closest('.control-group').show();
if (jform_vvvvvwevwd_required)
{
updateFieldRequired('php_site_event',0);
jQuery('#jform_php_site_event').prop('required','required');
jQuery('#jform_php_site_event').attr('aria-required',true);
jQuery('#jform_php_site_event').addClass('required');
jform_vvvvvwevwd_required = false;
}
}
else
{
jQuery('#jform_php_site_event').closest('.control-group').hide();
if (!jform_vvvvvwevwd_required)
{
updateFieldRequired('php_site_event',1);
jQuery('#jform_php_site_event').removeAttr('required');
jQuery('#jform_php_site_event').removeAttr('aria-required');
jQuery('#jform_php_site_event').removeClass('required');
jform_vvvvvwevwd_required = true;
}
}
}
// the vvvvvwf function
function vvvvvwf(addreadme_vvvvvwf)
{
// set the function logic
if (addreadme_vvvvvwf == 1)
{
jQuery('.note_readme').closest('.control-group').show();
jQuery('#jform_readme-lbl').closest('.control-group').show();
if (jform_vvvvvwevwd_required)
if (jform_vvvvvwfvwe_required)
{
updateFieldRequired('readme',0);
jQuery('#jform_readme').prop('required','required');
jQuery('#jform_readme').attr('aria-required',true);
jQuery('#jform_readme').addClass('required');
jform_vvvvvwevwd_required = false;
jform_vvvvvwfvwe_required = false;
}
}
@@ -408,22 +443,22 @@ function vvvvvwe(addreadme_vvvvvwe)
{
jQuery('.note_readme').closest('.control-group').hide();
jQuery('#jform_readme-lbl').closest('.control-group').hide();
if (!jform_vvvvvwevwd_required)
if (!jform_vvvvvwfvwe_required)
{
updateFieldRequired('readme',1);
jQuery('#jform_readme').removeAttr('required');
jQuery('#jform_readme').removeAttr('aria-required');
jQuery('#jform_readme').removeClass('required');
jform_vvvvvwevwd_required = true;
jform_vvvvvwfvwe_required = true;
}
}
}
// the vvvvvwf function
function vvvvvwf(add_update_server_vvvvvwf)
// the vvvvvwg function
function vvvvvwg(add_update_server_vvvvvwg)
{
// set the function logic
if (add_update_server_vvvvvwf == 1)
if (add_update_server_vvvvvwg == 1)
{
jQuery('#jform_update_server').closest('.control-group').show();
}
@@ -433,11 +468,11 @@ function vvvvvwf(add_update_server_vvvvvwf)
}
}
// the vvvvvwg function
function vvvvvwg(add_sales_server_vvvvvwg)
// the vvvvvwh function
function vvvvvwh(add_sales_server_vvvvvwh)
{
// set the function logic
if (add_sales_server_vvvvvwg == 1)
if (add_sales_server_vvvvvwh == 1)
{
jQuery('#jform_sales_server_ftp').closest('.control-group').show();
}
@@ -447,11 +482,11 @@ function vvvvvwg(add_sales_server_vvvvvwg)
}
}
// the vvvvvwh function
function vvvvvwh(add_license_vvvvvwh)
// the vvvvvwi function
function vvvvvwi(add_license_vvvvvwi)
{
// set the function logic
if (add_license_vvvvvwh == 1)
if (add_license_vvvvvwi == 1)
{
jQuery('.note_whmcs_lisencing_note').closest('.control-group').show();
jQuery('#jform_whmcs_key').closest('.control-group').show();
@@ -465,21 +500,21 @@ function vvvvvwh(add_license_vvvvvwh)
}
}
// the vvvvvwi function
function vvvvvwi(add_php_dashboard_methods_vvvvvwi)
// the vvvvvwj function
function vvvvvwj(add_php_dashboard_methods_vvvvvwj)
{
// set the function logic
if (add_php_dashboard_methods_vvvvvwi == 1)
if (add_php_dashboard_methods_vvvvvwj == 1)
{
jQuery('#jform_dashboard_tab').closest('.control-group').show();
jQuery('#jform_php_dashboard_methods').closest('.control-group').show();
if (jform_vvvvvwivwe_required)
if (jform_vvvvvwjvwf_required)
{
updateFieldRequired('php_dashboard_methods',0);
jQuery('#jform_php_dashboard_methods').prop('required','required');
jQuery('#jform_php_dashboard_methods').attr('aria-required',true);
jQuery('#jform_php_dashboard_methods').addClass('required');
jform_vvvvvwivwe_required = false;
jform_vvvvvwjvwf_required = false;
}
}
@@ -487,193 +522,177 @@ function vvvvvwi(add_php_dashboard_methods_vvvvvwi)
{
jQuery('#jform_dashboard_tab').closest('.control-group').hide();
jQuery('#jform_php_dashboard_methods').closest('.control-group').hide();
if (!jform_vvvvvwivwe_required)
if (!jform_vvvvvwjvwf_required)
{
updateFieldRequired('php_dashboard_methods',1);
jQuery('#jform_php_dashboard_methods').removeAttr('required');
jQuery('#jform_php_dashboard_methods').removeAttr('aria-required');
jQuery('#jform_php_dashboard_methods').removeClass('required');
jform_vvvvvwivwe_required = true;
}
}
}
// the vvvvvwj function
function vvvvvwj(add_php_postflight_install_vvvvvwj)
{
// set the function logic
if (add_php_postflight_install_vvvvvwj == 1)
{
jQuery('#jform_php_postflight_install').closest('.control-group').show();
if (jform_vvvvvwjvwf_required)
{
updateFieldRequired('php_postflight_install',0);
jQuery('#jform_php_postflight_install').prop('required','required');
jQuery('#jform_php_postflight_install').attr('aria-required',true);
jQuery('#jform_php_postflight_install').addClass('required');
jform_vvvvvwjvwf_required = false;
}
}
else
{
jQuery('#jform_php_postflight_install').closest('.control-group').hide();
if (!jform_vvvvvwjvwf_required)
{
updateFieldRequired('php_postflight_install',1);
jQuery('#jform_php_postflight_install').removeAttr('required');
jQuery('#jform_php_postflight_install').removeAttr('aria-required');
jQuery('#jform_php_postflight_install').removeClass('required');
jform_vvvvvwjvwf_required = true;
}
}
}
// the vvvvvwk function
function vvvvvwk(add_php_postflight_update_vvvvvwk)
function vvvvvwk(add_php_postflight_install_vvvvvwk)
{
// set the function logic
if (add_php_postflight_update_vvvvvwk == 1)
if (add_php_postflight_install_vvvvvwk == 1)
{
jQuery('#jform_php_postflight_update').closest('.control-group').show();
jQuery('#jform_php_postflight_install').closest('.control-group').show();
if (jform_vvvvvwkvwg_required)
{
updateFieldRequired('php_postflight_update',0);
jQuery('#jform_php_postflight_update').prop('required','required');
jQuery('#jform_php_postflight_update').attr('aria-required',true);
jQuery('#jform_php_postflight_update').addClass('required');
updateFieldRequired('php_postflight_install',0);
jQuery('#jform_php_postflight_install').prop('required','required');
jQuery('#jform_php_postflight_install').attr('aria-required',true);
jQuery('#jform_php_postflight_install').addClass('required');
jform_vvvvvwkvwg_required = false;
}
}
else
{
jQuery('#jform_php_postflight_update').closest('.control-group').hide();
jQuery('#jform_php_postflight_install').closest('.control-group').hide();
if (!jform_vvvvvwkvwg_required)
{
updateFieldRequired('php_postflight_update',1);
jQuery('#jform_php_postflight_update').removeAttr('required');
jQuery('#jform_php_postflight_update').removeAttr('aria-required');
jQuery('#jform_php_postflight_update').removeClass('required');
updateFieldRequired('php_postflight_install',1);
jQuery('#jform_php_postflight_install').removeAttr('required');
jQuery('#jform_php_postflight_install').removeAttr('aria-required');
jQuery('#jform_php_postflight_install').removeClass('required');
jform_vvvvvwkvwg_required = true;
}
}
}
// the vvvvvwl function
function vvvvvwl(add_php_method_uninstall_vvvvvwl)
function vvvvvwl(add_php_postflight_update_vvvvvwl)
{
// set the function logic
if (add_php_method_uninstall_vvvvvwl == 1)
if (add_php_postflight_update_vvvvvwl == 1)
{
jQuery('#jform_php_method_uninstall').closest('.control-group').show();
jQuery('#jform_php_postflight_update').closest('.control-group').show();
if (jform_vvvvvwlvwh_required)
{
updateFieldRequired('php_method_uninstall',0);
jQuery('#jform_php_method_uninstall').prop('required','required');
jQuery('#jform_php_method_uninstall').attr('aria-required',true);
jQuery('#jform_php_method_uninstall').addClass('required');
updateFieldRequired('php_postflight_update',0);
jQuery('#jform_php_postflight_update').prop('required','required');
jQuery('#jform_php_postflight_update').attr('aria-required',true);
jQuery('#jform_php_postflight_update').addClass('required');
jform_vvvvvwlvwh_required = false;
}
}
else
{
jQuery('#jform_php_method_uninstall').closest('.control-group').hide();
jQuery('#jform_php_postflight_update').closest('.control-group').hide();
if (!jform_vvvvvwlvwh_required)
{
updateFieldRequired('php_method_uninstall',1);
jQuery('#jform_php_method_uninstall').removeAttr('required');
jQuery('#jform_php_method_uninstall').removeAttr('aria-required');
jQuery('#jform_php_method_uninstall').removeClass('required');
updateFieldRequired('php_postflight_update',1);
jQuery('#jform_php_postflight_update').removeAttr('required');
jQuery('#jform_php_postflight_update').removeAttr('aria-required');
jQuery('#jform_php_postflight_update').removeClass('required');
jform_vvvvvwlvwh_required = true;
}
}
}
// the vvvvvwm function
function vvvvvwm(add_php_preflight_install_vvvvvwm)
function vvvvvwm(add_php_method_uninstall_vvvvvwm)
{
// set the function logic
if (add_php_preflight_install_vvvvvwm == 1)
if (add_php_method_uninstall_vvvvvwm == 1)
{
jQuery('#jform_php_preflight_install').closest('.control-group').show();
jQuery('#jform_php_method_uninstall').closest('.control-group').show();
if (jform_vvvvvwmvwi_required)
{
updateFieldRequired('php_preflight_install',0);
jQuery('#jform_php_preflight_install').prop('required','required');
jQuery('#jform_php_preflight_install').attr('aria-required',true);
jQuery('#jform_php_preflight_install').addClass('required');
updateFieldRequired('php_method_uninstall',0);
jQuery('#jform_php_method_uninstall').prop('required','required');
jQuery('#jform_php_method_uninstall').attr('aria-required',true);
jQuery('#jform_php_method_uninstall').addClass('required');
jform_vvvvvwmvwi_required = false;
}
}
else
{
jQuery('#jform_php_preflight_install').closest('.control-group').hide();
jQuery('#jform_php_method_uninstall').closest('.control-group').hide();
if (!jform_vvvvvwmvwi_required)
{
updateFieldRequired('php_preflight_install',1);
jQuery('#jform_php_preflight_install').removeAttr('required');
jQuery('#jform_php_preflight_install').removeAttr('aria-required');
jQuery('#jform_php_preflight_install').removeClass('required');
updateFieldRequired('php_method_uninstall',1);
jQuery('#jform_php_method_uninstall').removeAttr('required');
jQuery('#jform_php_method_uninstall').removeAttr('aria-required');
jQuery('#jform_php_method_uninstall').removeClass('required');
jform_vvvvvwmvwi_required = true;
}
}
}
// the vvvvvwn function
function vvvvvwn(add_php_preflight_update_vvvvvwn)
function vvvvvwn(add_php_preflight_install_vvvvvwn)
{
// set the function logic
if (add_php_preflight_update_vvvvvwn == 1)
if (add_php_preflight_install_vvvvvwn == 1)
{
jQuery('#jform_php_preflight_update').closest('.control-group').show();
jQuery('#jform_php_preflight_install').closest('.control-group').show();
if (jform_vvvvvwnvwj_required)
{
updateFieldRequired('php_preflight_update',0);
jQuery('#jform_php_preflight_update').prop('required','required');
jQuery('#jform_php_preflight_update').attr('aria-required',true);
jQuery('#jform_php_preflight_update').addClass('required');
updateFieldRequired('php_preflight_install',0);
jQuery('#jform_php_preflight_install').prop('required','required');
jQuery('#jform_php_preflight_install').attr('aria-required',true);
jQuery('#jform_php_preflight_install').addClass('required');
jform_vvvvvwnvwj_required = false;
}
}
else
{
jQuery('#jform_php_preflight_update').closest('.control-group').hide();
jQuery('#jform_php_preflight_install').closest('.control-group').hide();
if (!jform_vvvvvwnvwj_required)
{
updateFieldRequired('php_preflight_update',1);
jQuery('#jform_php_preflight_update').removeAttr('required');
jQuery('#jform_php_preflight_update').removeAttr('aria-required');
jQuery('#jform_php_preflight_update').removeClass('required');
updateFieldRequired('php_preflight_install',1);
jQuery('#jform_php_preflight_install').removeAttr('required');
jQuery('#jform_php_preflight_install').removeAttr('aria-required');
jQuery('#jform_php_preflight_install').removeClass('required');
jform_vvvvvwnvwj_required = true;
}
}
}
// the vvvvvwo function
function vvvvvwo(update_server_target_vvvvvwo,add_update_server_vvvvvwo)
function vvvvvwo(add_php_preflight_update_vvvvvwo)
{
// set the function logic
if (update_server_target_vvvvvwo == 1 && add_update_server_vvvvvwo == 1)
if (add_php_preflight_update_vvvvvwo == 1)
{
jQuery('#jform_update_server_ftp').closest('.control-group').show();
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
jQuery('#jform_php_preflight_update').closest('.control-group').show();
if (jform_vvvvvwovwk_required)
{
updateFieldRequired('php_preflight_update',0);
jQuery('#jform_php_preflight_update').prop('required','required');
jQuery('#jform_php_preflight_update').attr('aria-required',true);
jQuery('#jform_php_preflight_update').addClass('required');
jform_vvvvvwovwk_required = false;
}
}
else
{
jQuery('#jform_update_server_ftp').closest('.control-group').hide();
jQuery('.note_update_server_note_ftp').closest('.control-group').hide();
jQuery('#jform_php_preflight_update').closest('.control-group').hide();
if (!jform_vvvvvwovwk_required)
{
updateFieldRequired('php_preflight_update',1);
jQuery('#jform_php_preflight_update').removeAttr('required');
jQuery('#jform_php_preflight_update').removeAttr('aria-required');
jQuery('#jform_php_preflight_update').removeClass('required');
jform_vvvvvwovwk_required = true;
}
}
}
// the vvvvvwp function
function vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp)
function vvvvvwp(update_server_target_vvvvvwp,add_update_server_vvvvvwp)
{
// set the function logic
if (add_update_server_vvvvvwp == 1 && update_server_target_vvvvvwp == 1)
if (update_server_target_vvvvvwp == 1 && add_update_server_vvvvvwp == 1)
{
jQuery('#jform_update_server_ftp').closest('.control-group').show();
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
@@ -686,10 +705,26 @@ function vvvvvwp(add_update_server_vvvvvwp,update_server_target_vvvvvwp)
}
// the vvvvvwq function
function vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq)
function vvvvvwq(add_update_server_vvvvvwq,update_server_target_vvvvvwq)
{
// set the function logic
if (update_server_target_vvvvvwq == 2 && add_update_server_vvvvvwq == 1)
if (add_update_server_vvvvvwq == 1 && update_server_target_vvvvvwq == 1)
{
jQuery('#jform_update_server_ftp').closest('.control-group').show();
jQuery('.note_update_server_note_ftp').closest('.control-group').show();
}
else
{
jQuery('#jform_update_server_ftp').closest('.control-group').hide();
jQuery('.note_update_server_note_ftp').closest('.control-group').hide();
}
}
// the vvvvvwr function
function vvvvvwr(update_server_target_vvvvvwr,add_update_server_vvvvvwr)
{
// set the function logic
if (update_server_target_vvvvvwr == 2 && add_update_server_vvvvvwr == 1)
{
jQuery('.note_update_server_note_zip').closest('.control-group').show();
}
@@ -699,11 +734,11 @@ function vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq)
}
}
// the vvvvvws function
function vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws)
// the vvvvvwt function
function vvvvvwt(update_server_target_vvvvvwt,add_update_server_vvvvvwt)
{
// set the function logic
if (update_server_target_vvvvvws == 3 && add_update_server_vvvvvws == 1)
if (update_server_target_vvvvvwt == 3 && add_update_server_vvvvvwt == 1)
{
jQuery('.note_update_server_note_other').closest('.control-group').show();
}
@@ -713,64 +748,64 @@ function vvvvvws(update_server_target_vvvvvws,add_update_server_vvvvvws)
}
}
// the vvvvvwu function
function vvvvvwu(add_update_server_vvvvvwu)
// the vvvvvwv function
function vvvvvwv(add_update_server_vvvvvwv)
{
// set the function logic
if (add_update_server_vvvvvwu == 1)
if (add_update_server_vvvvvwv == 1)
{
jQuery('#jform_update_server_target').closest('.control-group').show();
if (jform_vvvvvwuvwk_required)
if (jform_vvvvvwvvwl_required)
{
updateFieldRequired('update_server_target',0);
jQuery('#jform_update_server_target').prop('required','required');
jQuery('#jform_update_server_target').attr('aria-required',true);
jQuery('#jform_update_server_target').addClass('required');
jform_vvvvvwuvwk_required = false;
}
}
else
{
jQuery('#jform_update_server_target').closest('.control-group').hide();
if (!jform_vvvvvwuvwk_required)
{
updateFieldRequired('update_server_target',1);
jQuery('#jform_update_server_target').removeAttr('required');
jQuery('#jform_update_server_target').removeAttr('aria-required');
jQuery('#jform_update_server_target').removeClass('required');
jform_vvvvvwuvwk_required = true;
}
}
}
// the vvvvvwv function
function vvvvvwv(buildcomp_vvvvvwv)
{
// set the function logic
if (buildcomp_vvvvvwv == 1)
{
jQuery('#jform_buildcompsql').closest('.control-group').show();
if (jform_vvvvvwvvwl_required)
{
updateFieldRequired('buildcompsql',0);
jQuery('#jform_buildcompsql').prop('required','required');
jQuery('#jform_buildcompsql').attr('aria-required',true);
jQuery('#jform_buildcompsql').addClass('required');
jform_vvvvvwvvwl_required = false;
}
}
else
{
jQuery('#jform_buildcompsql').closest('.control-group').hide();
jQuery('#jform_update_server_target').closest('.control-group').hide();
if (!jform_vvvvvwvvwl_required)
{
updateFieldRequired('update_server_target',1);
jQuery('#jform_update_server_target').removeAttr('required');
jQuery('#jform_update_server_target').removeAttr('aria-required');
jQuery('#jform_update_server_target').removeClass('required');
jform_vvvvvwvvwl_required = true;
}
}
}
// the vvvvvww function
function vvvvvww(buildcomp_vvvvvww)
{
// set the function logic
if (buildcomp_vvvvvww == 1)
{
jQuery('#jform_buildcompsql').closest('.control-group').show();
if (jform_vvvvvwwvwm_required)
{
updateFieldRequired('buildcompsql',0);
jQuery('#jform_buildcompsql').prop('required','required');
jQuery('#jform_buildcompsql').attr('aria-required',true);
jQuery('#jform_buildcompsql').addClass('required');
jform_vvvvvwwvwm_required = false;
}
}
else
{
jQuery('#jform_buildcompsql').closest('.control-group').hide();
if (!jform_vvvvvwwvwm_required)
{
updateFieldRequired('buildcompsql',1);
jQuery('#jform_buildcompsql').removeAttr('required');
jQuery('#jform_buildcompsql').removeAttr('aria-required');
jQuery('#jform_buildcompsql').removeClass('required');
jform_vvvvvwvvwl_required = true;
jform_vvvvvwwvwm_required = true;
}
}
}

View File

@@ -178,17 +178,17 @@
message="Error! Please add author name here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_AUTHOR_HINT"
/>
<!-- Readme Field. Type: Editor. (joomla) -->
<!-- Sql Field. Type: Textarea. (joomla) -->
<field
type="editor"
name="readme"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README_LABEL"
default="You can use all the normal markdown, including the place-holders."
width="100%"
height="1200px"
buttons="false"
editor="none"
type="textarea"
name="sql"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_HINT"
required="true"
/>
<!-- Add_placeholders Field. Type: Radio. (joomla) -->
@@ -206,11 +206,11 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Add_php_dashboard_methods Field. Type: Radio. (joomla) -->
<!-- Add_css Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_dashboard_methods"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_DASHBOARD_METHODS_LABEL"
name="add_css"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@@ -232,11 +232,11 @@
filter="HTML"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DESCRIPTION_HINT"
/>
<!-- Add_php_helper_admin Field. Type: Radio. (joomla) -->
<!-- Add_admin_event Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_helper_admin"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_ADMIN_LABEL"
name="add_admin_event"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_ADMIN_EVENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@@ -260,17 +260,17 @@
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_COPYRIGHT_HINT"
required="true"
/>
<!-- Php_postflight_install Field. Type: Textarea. (joomla) -->
<!-- Php_preflight_update Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_postflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_LABEL"
name="php_preflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_DESCRIPTION"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_HINT"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_HINT"
required="true"
/>
<!-- Debug_linenr Field. Type: Radio. (joomla) -->
@@ -303,22 +303,13 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Update_server_ftp Field. Type: Ftps. (custom) -->
<field
type="ftps"
name="update_server_ftp"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
button="true"
/>
<!-- Add_php_helper_site Field. Type: Radio. (joomla) -->
<!-- Note_update_server_note_zip Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_zip" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_zip" />
<!-- Add_site_event Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_helper_site"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_SITE_LABEL"
name="add_site_event"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SITE_EVENT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@@ -328,21 +319,82 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Jcb_export_package_note Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="jcb_export_package_note" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JCB_EXPORT_PACKAGE_NOTE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JCB_EXPORT_PACKAGE_NOTE_DESCRIPTION" heading="h4" class="alert alert-info jcb_export_package_note" close="true" />
<!-- Php_preflight_install Field. Type: Textarea. (joomla) -->
<!-- Name Field. Type: Text. (joomla) -->
<field
type="textarea"
name="php_preflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_HINT"
type="text"
name="name"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add component name here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_HINT"
/>
<!-- Dashboard_tab Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
name="dashboard_tab"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TAB_LABEL"
id="dashboard_tab"
class="dashboard_tabs"
select="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TAB_SELECT"
icon="list"
maximum="10"
filter="raw">
<fields name="dashboard_tab_fields" label="">
<fieldset hidden="true" name="dashboard_tab_modal" repeat="true">
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="STRING"
message="Error! Please add name here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_HINT"
/>
<!-- Header Field. Type: Text. (joomla) -->
<field
type="text"
name="header"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_HEADER_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_HEADER_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="STRING"
message="Error! Please add header here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_HEADER_HINT"
/>
<!-- Html Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="html"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_HTML_LABEL"
rows="20"
cols="15"
class="text_area span6"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_HTML_HINT"
required="false"
/>
</fieldset>
</fields>
</field>
<!-- Creatuserhelper Field. Type: Radio. (joomla) -->
<field
type="radio"
@@ -357,32 +409,33 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Php_method_uninstall Field. Type: Textarea. (joomla) -->
<!-- Php_postflight_update Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_method_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_LABEL"
name="php_postflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_DESCRIPTION"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_HINT"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_HINT"
required="true"
/>
<!-- Css Field. Type: Textarea. (joomla) -->
<!-- Add_php_helper_both Field. Type: Radio. (joomla) -->
<field
type="textarea"
name="css"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_HINT"
required="true"
/>
type="radio"
name="add_php_helper_both"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_BOTH_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Version_update Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
@@ -457,21 +510,17 @@
message="Error! Please author email address here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EMAIL_HINT"
/>
<!-- Buildcomp Field. Type: Radio. (joomla) -->
<!-- Sales_server_ftp Field. Type: Ftps. (custom) -->
<field
type="radio"
name="buildcomp"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_DESCRIPTION"
class="btn-group btn-group-yesno"
type="ftps"
name="sales_server_ftp"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
button="true"
/>
<!-- Website Field. Type: Url. (joomla) -->
<field
type="url"
@@ -554,11 +603,11 @@
<option value="4">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_USED_IN_CUSTOM_CODE</option>
</field>
<!-- Add_php_helper_both Field. Type: Radio. (joomla) -->
<!-- Add_php_helper_admin Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_helper_both"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_BOTH_LABEL"
name="add_php_helper_admin"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_ADMIN_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@@ -570,11 +619,11 @@
</field>
<!-- Note_whmcs_lisencing_note Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_whmcs_lisencing_note" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_WHMCS_LISENCING_NOTE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_WHMCS_LISENCING_NOTE_DESCRIPTION" heading="h4" class="alert alert-success note_whmcs_lisencing_note" />
<!-- Add_admin_event Field. Type: Radio. (joomla) -->
<!-- Add_php_helper_site Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_admin_event"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_ADMIN_EVENT_LABEL"
name="add_php_helper_site"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_HELPER_SITE_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@@ -597,11 +646,11 @@
message="Error! Please add some secret key here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_KEY_HINT"
/>
<!-- Add_site_event Field. Type: Radio. (joomla) -->
<!-- Add_javascript Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_site_event"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SITE_EVENT_LABEL"
name="add_javascript"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_JAVASCRIPT_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@@ -625,65 +674,19 @@
message="Error! Please add website here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_HINT"
/>
<!-- Dashboard_tab Field. Type: Repeatable. (joomla) -->
<!-- Add_php_dashboard_methods Field. Type: Radio. (joomla) -->
<field
type="repeatable"
name="dashboard_tab"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TAB_LABEL"
id="dashboard_tab"
class="dashboard_tabs"
select="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_DASHBOARD_TAB_SELECT"
icon="list"
maximum="10"
filter="raw">
<fields name="dashboard_tab_fields" label="">
<fieldset hidden="true" name="dashboard_tab_modal" repeat="true">
<!-- Name Field. Type: Text. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="STRING"
message="Error! Please add name here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_HINT"
/>
<!-- Header Field. Type: Text. (joomla) -->
<field
type="text"
name="header"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_HEADER_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_HEADER_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="false"
filter="STRING"
message="Error! Please add header here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_HEADER_HINT"
/>
<!-- Html Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="html"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_HTML_LABEL"
rows="20"
cols="15"
class="text_area span6"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_HTML_HINT"
required="false"
/>
</fieldset>
</fields>
type="radio"
name="add_php_dashboard_methods"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_DASHBOARD_METHODS_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- License Field. Type: Textarea. (joomla) -->
<field
@@ -699,17 +702,17 @@
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_LICENSE_HINT"
required="true"
/>
<!-- Php_preflight_update Field. Type: Textarea. (joomla) -->
<!-- Php_preflight_install Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_preflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_LABEL"
name="php_preflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_DESCRIPTION"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_HINT"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_HINT"
required="true"
/>
<!-- Bom Field. Type: Filelist. (joomla) -->
@@ -722,17 +725,17 @@
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BOM_DESCRIPTION"
hide_default="true"
/>
<!-- Php_postflight_update Field. Type: Textarea. (joomla) -->
<!-- Php_postflight_install Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_postflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_LABEL"
name="php_postflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_DESCRIPTION"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_HINT"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_HINT"
required="true"
/>
<!-- Image Field. Type: Media. (joomla) -->
@@ -743,19 +746,52 @@
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_DESCRIPTION"
directory=""
/>
<!-- Sql Field. Type: Textarea. (joomla) -->
<!-- Php_method_uninstall Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="sql"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_DESCRIPTION"
name="php_method_uninstall"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SQL_HINT"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_HINT"
required="true"
/>
<!-- Add_update_server Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_update_server"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UPDATE_SERVER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Readme Field. Type: Editor. (joomla) -->
<field
type="editor"
name="readme"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README_LABEL"
default="You can use all the normal markdown, including the place-holders."
width="100%"
height="1200px"
buttons="false"
editor="none"
filter="raw"
required="true"
/>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Update_server_target Field. Type: Radio. (joomla) -->
<field
type="radio"
@@ -773,36 +809,14 @@
<option value="3">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_OTHER</option>
</field>
<!-- Add_update_server Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_update_server"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_UPDATE_SERVER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Note_update_server_note_zip Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_zip" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_ZIP_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_zip" />
<!-- Note_on_views Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_views" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_VIEWS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_VIEWS_DESCRIPTION" heading="h4" class="alert alert-info note_on_views" close="false" />
<!-- Sales_server_ftp Field. Type: Ftps. (custom) -->
<!-- Update_server_ftp Field. Type: Ftps. (custom) -->
<field
type="ftps"
name="sales_server_ftp"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_SALES_SERVER_FTP_DESCRIPTION"
name="update_server_ftp"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_FTP_DESCRIPTION"
class="list_class"
multiple="false"
default="0"
@@ -1419,22 +1433,21 @@
</fieldset>
</fields>
</field>
<!-- Name Field. Type: Text. (joomla) -->
<!-- Buildcomp Field. Type: Radio. (joomla) -->
<field
type="text"
name="name"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
required="true"
filter="STRING"
message="Error! Please add component name here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NAME_HINT"
/>
type="radio"
name="buildcomp"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Addcustom_admin_views Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
@@ -2128,11 +2141,12 @@
</field>
<!-- Note_mysql_tweak_options Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_mysql_tweak_options" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MYSQL_TWEAK_OPTIONS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_MYSQL_TWEAK_OPTIONS_DESCRIPTION" heading="h4" class="alert alert-info note_mysql_tweak_options" close="false" />
<!-- Add_css Field. Type: Radio. (joomla) -->
<!-- Add_email_helper Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_css"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_CSS_LABEL"
name="add_email_helper"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
@@ -2214,23 +2228,6 @@
</fieldset>
</fields>
</field>
<!-- Add_email_helper Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_email_helper"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_LABEL"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_EMAIL_HELPER_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Spacer_hr_b Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_b" hr="true" class="spacer_hr_b" />
<!-- Php_helper_both Field. Type: Textarea. (joomla) -->
<field
type="textarea"
@@ -2244,8 +2241,8 @@
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_BOTH_HINT"
required="true"
/>
<!-- Note_add_custom_menus Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_custom_menus" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CUSTOM_MENUS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CUSTOM_MENUS_DESCRIPTION" heading="h4" class="alert alert-info note_add_custom_menus" close="false" />
<!-- Spacer_hr_b Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_b" hr="true" class="spacer_hr_b" />
<!-- Php_helper_admin Field. Type: Textarea. (joomla) -->
<field
type="textarea"
@@ -2259,6 +2256,21 @@
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_ADMIN_HINT"
required="true"
/>
<!-- Note_add_custom_menus Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_custom_menus" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CUSTOM_MENUS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CUSTOM_MENUS_DESCRIPTION" heading="h4" class="alert alert-info note_add_custom_menus" close="false" />
<!-- Php_admin_event Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_admin_event"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_HINT"
required="true"
/>
<!-- Addcustommenus Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
@@ -2382,21 +2394,6 @@
</fieldset>
</fields>
</field>
<!-- Php_admin_event Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_admin_event"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_HINT"
required="true"
/>
<!-- Spacer_hr_c Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_c" hr="true" class="spacer_hr_c" />
<!-- Php_helper_site Field. Type: Textarea. (joomla) -->
<field
type="textarea"
@@ -2410,8 +2407,8 @@
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_SITE_HINT"
required="true"
/>
<!-- Note_add_config Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_config" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CONFIG_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CONFIG_DESCRIPTION" heading="h4" class="alert alert-info note_add_config" close="false" />
<!-- Spacer_hr_c Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_c" hr="true" class="spacer_hr_c" />
<!-- Php_site_event Field. Type: Textarea. (joomla) -->
<field
type="textarea"
@@ -2425,6 +2422,21 @@
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_SITE_EVENT_HINT"
required="true"
/>
<!-- Note_add_config Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_config" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CONFIG_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_CONFIG_DESCRIPTION" heading="h4" class="alert alert-info note_add_config" close="false" />
<!-- Javascript Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="javascript"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT_HINT"
required="true"
/>
<!-- Addconfig Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
@@ -2484,6 +2496,21 @@
</fieldset>
</fields>
</field>
<!-- Css Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="css"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_HINT"
required="true"
/>
<!-- Note_on_contributors Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_contributors" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CONTRIBUTORS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CONTRIBUTORS_DESCRIPTION" heading="h4" class="alert alert-info note_on_contributors" close="false" />
<!-- Php_dashboard_methods Field. Type: Textarea. (joomla) -->
<field
type="textarea"
@@ -2497,22 +2524,6 @@
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_DASHBOARD_METHODS_HINT"
required="true"
/>
<!-- Note_on_contributors Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_contributors" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CONTRIBUTORS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ON_CONTRIBUTORS_DESCRIPTION" heading="h4" class="alert alert-info note_on_contributors" close="false" />
<!-- Add_php_preflight_install Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_preflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_PREFLIGHT_INSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Addcontributors Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
@@ -2629,11 +2640,11 @@
</fieldset>
</fields>
</field>
<!-- Add_php_preflight_update Field. Type: Radio. (joomla) -->
<!-- Add_php_preflight_install Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_preflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_PREFLIGHT_UPDATE_LABEL"
name="add_php_preflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_PREFLIGHT_INSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@@ -2657,11 +2668,11 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Add_php_postflight_install Field. Type: Radio. (joomla) -->
<!-- Add_php_preflight_update Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_postflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_POSTFLIGHT_INSTALL_LABEL"
name="add_php_preflight_update"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_PREFLIGHT_UPDATE_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
@@ -2682,6 +2693,22 @@
max="40"
step="1"
/>
<!-- Add_php_postflight_install Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_postflight_install"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_PHP_POSTFLIGHT_INSTALL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Spacer_hr_d Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_d" hr="true" class="spacer_hr_d" />
<!-- Add_php_postflight_update Field. Type: Radio. (joomla) -->
<field
type="radio"
@@ -2696,8 +2723,8 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Spacer_hr_d Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_d" hr="true" class="spacer_hr_d" />
<!-- Note_add_files Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_files" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_FILES_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_FILES_DESCRIPTION" heading="h4" class="alert alert-info note_add_files" close="false" />
<!-- Add_php_method_uninstall Field. Type: Radio. (joomla) -->
<field
type="radio"
@@ -2712,22 +2739,6 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Note_add_files Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_files" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_FILES_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_FILES_DESCRIPTION" heading="h4" class="alert alert-info note_add_files" close="false" />
<!-- Add_sql Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_sql"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SQL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Addfiles Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
@@ -2786,6 +2797,22 @@
</fieldset>
</fields>
</field>
<!-- Add_sql Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_sql"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SQL_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Spacer_hr_e Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_e" hr="true" class="spacer_hr_e" />
<!-- Addreadme Field. Type: Radio. (joomla) -->
<field
type="radio"
@@ -2799,26 +2826,10 @@
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Spacer_hr_e Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_e" hr="true" class="spacer_hr_e" />
<!-- Note_readme Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_readme" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_README_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_README_DESCRIPTION" heading="h4" class="note_readme" />
<!-- Note_add_folders Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_folders" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_FOLDERS_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_ADD_FOLDERS_DESCRIPTION" heading="h4" class="alert alert-info note_add_folders" close="false" />
<!-- Update_server Field. Type: Url. (joomla) -->
<field
type="url"
name="update_server"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_LABEL"
size="60"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_DESCRIPTION"
class="text_area span12"
filter="url"
validated="url"
message="Error! Please add url here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_HINT"
/>
<!-- Note_readme Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_readme" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_README_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_README_DESCRIPTION" heading="h4" class="note_readme" />
<!-- Addfolders Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
@@ -2876,28 +2887,28 @@
</fieldset>
</fields>
</field>
<!-- Note_update_server_note_ftp Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_ftp" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_ftp" />
<!-- Update_server Field. Type: Url. (joomla) -->
<field
type="url"
name="update_server"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_LABEL"
size="60"
maxlength="150"
description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_DESCRIPTION"
class="text_area span12"
filter="url"
validated="url"
message="Error! Please add url here."
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_UPDATE_SERVER_HINT"
/>
<!-- Spacer_hr_f Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_f" hr="true" class="spacer_hr_f" />
<!-- Note_update_server_note_other Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_other" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_OTHER_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_OTHER_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_other" />
<!-- Note_update_server_note_ftp Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_ftp" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_FTP_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_ftp" />
<!-- To_ignore_note Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="to_ignore_note" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TO_IGNORE_NOTE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TO_IGNORE_NOTE_DESCRIPTION" heading="h4" class="alert alert-info to_ignore_note" />
<!-- Add_sales_server Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_sales_server"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SALES_SERVER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Note_update_server_note_other Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_update_server_note_other" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_OTHER_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_UPDATE_SERVER_NOTE_OTHER_DESCRIPTION" heading="h4" class="alert alert-success note_update_server_note_other" />
<!-- Toignore Field. Type: Text. (joomla) -->
<field
type="text"
@@ -2912,10 +2923,26 @@
hint="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_TOIGNORE_HINT"
autocomplete="on"
/>
<!-- Note_buildcomp_dynamic Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_buildcomp_dynamic" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_DESCRIPTION" heading="h4" class="alert note_buildcomp_dynamic" />
<!-- Add_sales_server Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_sales_server"
label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ADD_SALES_SERVER_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES</option>
<option value="0">
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NO</option>
</field>
<!-- Spacer_hr_g Field. Type: Spacer. A None Database Field. (joomla) -->
<field type="spacer" name="spacer_hr_g" hr="true" class="spacer_hr_g" />
<!-- Note_buildcomp_dynamic_mysql Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_buildcomp_dynamic_mysql" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_NOTE_BUILDCOMP_DYNAMIC_MYSQL_DESCRIPTION" heading="h4" class="alert alert-info note_buildcomp_dynamic_mysql" />
<!-- Jcb_export_package_note Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="jcb_export_package_note" label="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JCB_EXPORT_PACKAGE_NOTE_LABEL" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JCB_EXPORT_PACKAGE_NOTE_DESCRIPTION" heading="h4" class="alert alert-info jcb_export_package_note" close="true" />
<!-- Buildcompsql Field. Type: Textarea. (joomla) -->
<field
type="textarea"

View File

@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 77 of this MVC
@build 30th May, 2017
@version @update number 81 of this MVC
@build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage layout.js
@@ -23,42 +23,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvysvyw_required = false;
jform_vvvvvytvyx_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvys = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvys(add_php_view_vvvvvys);
var add_php_view_vvvvvyt = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyt(add_php_view_vvvvvyt);
});
// the vvvvvys function
function vvvvvys(add_php_view_vvvvvys)
// the vvvvvyt function
function vvvvvyt(add_php_view_vvvvvyt)
{
// set the function logic
if (add_php_view_vvvvvys == 1)
if (add_php_view_vvvvvyt == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvysvyw_required)
if (jform_vvvvvytvyx_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_vvvvvysvyw_required = false;
jform_vvvvvytvyx_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvysvyw_required)
if (!jform_vvvvvytvyx_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvysvyw_required = true;
jform_vvvvvytvyx_required = true;
}
}
}
@@ -99,6 +99,7 @@ function isSet(val)
return false;
}
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){
@@ -143,10 +144,10 @@ function getSnippetDetails(id){
jQuery('.snippet-usage').append(usage);
}
})
}
}
function getDynamicValues_server(dynamicId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
var request = 'token='+token+'&view=layout&id='+dynamicId;
}
@@ -170,10 +171,10 @@ function getDynamicValues(id){
});
}
})
}
}
function getLayoutDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLayoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
@@ -196,30 +197,4 @@ function getLayoutDetails(id){
});
}
})
}
function getDynamicFormDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicFormDetails(id){
getDynamicFormDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
}

View File

@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 51 of this MVC
@build 17th July, 2017
@version @update number 54 of this MVC
@build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage site_view.js
@@ -23,7 +23,6 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvyivyk_required = false;
jform_vvvvvyjvyl_required = false;
jform_vvvvvykvym_required = false;
jform_vvvvvylvyn_required = false;
@@ -32,271 +31,272 @@ jform_vvvvvynvyp_required = false;
jform_vvvvvyovyq_required = false;
jform_vvvvvypvyr_required = false;
jform_vvvvvyqvys_required = false;
jform_vvvvvyqvyt_required = false;
jform_vvvvvyrvyt_required = false;
jform_vvvvvyrvyu_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvyi = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyi(add_php_view_vvvvvyi);
var add_php_view_vvvvvyj = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyj(add_php_view_vvvvvyj);
var add_php_jview_display_vvvvvyj = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvyj(add_php_jview_display_vvvvvyj);
var add_php_jview_display_vvvvvyk = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvyk(add_php_jview_display_vvvvvyk);
var add_php_jview_vvvvvyk = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvyk(add_php_jview_vvvvvyk);
var add_php_jview_vvvvvyl = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvyl(add_php_jview_vvvvvyl);
var add_php_document_vvvvvyl = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvyl(add_php_document_vvvvvyl);
var add_php_document_vvvvvym = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvym(add_php_document_vvvvvym);
var add_css_document_vvvvvym = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvym(add_css_document_vvvvvym);
var add_css_document_vvvvvyn = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvyn(add_css_document_vvvvvyn);
var add_js_document_vvvvvyn = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyn(add_js_document_vvvvvyn);
var add_js_document_vvvvvyo = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvyo(add_js_document_vvvvvyo);
var add_css_vvvvvyo = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvyo(add_css_vvvvvyo);
var add_css_vvvvvyp = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvyp(add_css_vvvvvyp);
var add_php_ajax_vvvvvyp = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvyp(add_php_ajax_vvvvvyp);
var add_php_ajax_vvvvvyq = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvyq(add_php_ajax_vvvvvyq);
var add_custom_button_vvvvvyq = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyq(add_custom_button_vvvvvyq);
var add_custom_button_vvvvvyr = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvyr(add_custom_button_vvvvvyr);
});
// the vvvvvyi function
function vvvvvyi(add_php_view_vvvvvyi)
// the vvvvvyj function
function vvvvvyj(add_php_view_vvvvvyj)
{
// set the function logic
if (add_php_view_vvvvvyi == 1)
if (add_php_view_vvvvvyj == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvyivyk_required)
if (jform_vvvvvyjvyl_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_vvvvvyivyk_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvyivyk_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvyivyk_required = true;
}
}
}
// the vvvvvyj function
function vvvvvyj(add_php_jview_display_vvvvvyj)
{
// set the function logic
if (add_php_jview_display_vvvvvyj == 1)
{
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvyjvyl_required)
{
updateFieldRequired('php_jview_display',0);
jQuery('#jform_php_jview_display').prop('required','required');
jQuery('#jform_php_jview_display').attr('aria-required',true);
jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvyjvyl_required = false;
}
}
else
{
jQuery('#jform_php_jview_display').closest('.control-group').hide();
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvyjvyl_required)
{
updateFieldRequired('php_jview_display',1);
jQuery('#jform_php_jview_display').removeAttr('required');
jQuery('#jform_php_jview_display').removeAttr('aria-required');
jQuery('#jform_php_jview_display').removeClass('required');
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvyjvyl_required = true;
}
}
}
// the vvvvvyk function
function vvvvvyk(add_php_jview_vvvvvyk)
function vvvvvyk(add_php_jview_display_vvvvvyk)
{
// set the function logic
if (add_php_jview_vvvvvyk == 1)
if (add_php_jview_display_vvvvvyk == 1)
{
jQuery('#jform_php_jview').closest('.control-group').show();
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvykvym_required)
{
updateFieldRequired('php_jview',0);
jQuery('#jform_php_jview').prop('required','required');
jQuery('#jform_php_jview').attr('aria-required',true);
jQuery('#jform_php_jview').addClass('required');
updateFieldRequired('php_jview_display',0);
jQuery('#jform_php_jview_display').prop('required','required');
jQuery('#jform_php_jview_display').attr('aria-required',true);
jQuery('#jform_php_jview_display').addClass('required');
jform_vvvvvykvym_required = false;
}
}
else
{
jQuery('#jform_php_jview').closest('.control-group').hide();
jQuery('#jform_php_jview_display').closest('.control-group').hide();
if (!jform_vvvvvykvym_required)
{
updateFieldRequired('php_jview',1);
jQuery('#jform_php_jview').removeAttr('required');
jQuery('#jform_php_jview').removeAttr('aria-required');
jQuery('#jform_php_jview').removeClass('required');
updateFieldRequired('php_jview_display',1);
jQuery('#jform_php_jview_display').removeAttr('required');
jQuery('#jform_php_jview_display').removeAttr('aria-required');
jQuery('#jform_php_jview_display').removeClass('required');
jform_vvvvvykvym_required = true;
}
}
}
// the vvvvvyl function
function vvvvvyl(add_php_document_vvvvvyl)
function vvvvvyl(add_php_jview_vvvvvyl)
{
// set the function logic
if (add_php_document_vvvvvyl == 1)
if (add_php_jview_vvvvvyl == 1)
{
jQuery('#jform_php_document').closest('.control-group').show();
jQuery('#jform_php_jview').closest('.control-group').show();
if (jform_vvvvvylvyn_required)
{
updateFieldRequired('php_document',0);
jQuery('#jform_php_document').prop('required','required');
jQuery('#jform_php_document').attr('aria-required',true);
jQuery('#jform_php_document').addClass('required');
updateFieldRequired('php_jview',0);
jQuery('#jform_php_jview').prop('required','required');
jQuery('#jform_php_jview').attr('aria-required',true);
jQuery('#jform_php_jview').addClass('required');
jform_vvvvvylvyn_required = false;
}
}
else
{
jQuery('#jform_php_document').closest('.control-group').hide();
jQuery('#jform_php_jview').closest('.control-group').hide();
if (!jform_vvvvvylvyn_required)
{
updateFieldRequired('php_document',1);
jQuery('#jform_php_document').removeAttr('required');
jQuery('#jform_php_document').removeAttr('aria-required');
jQuery('#jform_php_document').removeClass('required');
updateFieldRequired('php_jview',1);
jQuery('#jform_php_jview').removeAttr('required');
jQuery('#jform_php_jview').removeAttr('aria-required');
jQuery('#jform_php_jview').removeClass('required');
jform_vvvvvylvyn_required = true;
}
}
}
// the vvvvvym function
function vvvvvym(add_css_document_vvvvvym)
function vvvvvym(add_php_document_vvvvvym)
{
// set the function logic
if (add_css_document_vvvvvym == 1)
if (add_php_document_vvvvvym == 1)
{
jQuery('#jform_css_document').closest('.control-group').show();
jQuery('#jform_php_document').closest('.control-group').show();
if (jform_vvvvvymvyo_required)
{
updateFieldRequired('css_document',0);
jQuery('#jform_css_document').prop('required','required');
jQuery('#jform_css_document').attr('aria-required',true);
jQuery('#jform_css_document').addClass('required');
updateFieldRequired('php_document',0);
jQuery('#jform_php_document').prop('required','required');
jQuery('#jform_php_document').attr('aria-required',true);
jQuery('#jform_php_document').addClass('required');
jform_vvvvvymvyo_required = false;
}
}
else
{
jQuery('#jform_css_document').closest('.control-group').hide();
jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_vvvvvymvyo_required)
{
updateFieldRequired('css_document',1);
jQuery('#jform_css_document').removeAttr('required');
jQuery('#jform_css_document').removeAttr('aria-required');
jQuery('#jform_css_document').removeClass('required');
updateFieldRequired('php_document',1);
jQuery('#jform_php_document').removeAttr('required');
jQuery('#jform_php_document').removeAttr('aria-required');
jQuery('#jform_php_document').removeClass('required');
jform_vvvvvymvyo_required = true;
}
}
}
// the vvvvvyn function
function vvvvvyn(add_js_document_vvvvvyn)
function vvvvvyn(add_css_document_vvvvvyn)
{
// set the function logic
if (add_js_document_vvvvvyn == 1)
if (add_css_document_vvvvvyn == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
jQuery('#jform_css_document').closest('.control-group').show();
if (jform_vvvvvynvyp_required)
{
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
updateFieldRequired('css_document',0);
jQuery('#jform_css_document').prop('required','required');
jQuery('#jform_css_document').attr('aria-required',true);
jQuery('#jform_css_document').addClass('required');
jform_vvvvvynvyp_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
jQuery('#jform_css_document').closest('.control-group').hide();
if (!jform_vvvvvynvyp_required)
{
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
updateFieldRequired('css_document',1);
jQuery('#jform_css_document').removeAttr('required');
jQuery('#jform_css_document').removeAttr('aria-required');
jQuery('#jform_css_document').removeClass('required');
jform_vvvvvynvyp_required = true;
}
}
}
// the vvvvvyo function
function vvvvvyo(add_css_vvvvvyo)
function vvvvvyo(add_js_document_vvvvvyo)
{
// set the function logic
if (add_css_vvvvvyo == 1)
if (add_js_document_vvvvvyo == 1)
{
jQuery('#jform_css').closest('.control-group').show();
jQuery('#jform_js_document').closest('.control-group').show();
if (jform_vvvvvyovyq_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
updateFieldRequired('js_document',0);
jQuery('#jform_js_document').prop('required','required');
jQuery('#jform_js_document').attr('aria-required',true);
jQuery('#jform_js_document').addClass('required');
jform_vvvvvyovyq_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
jQuery('#jform_js_document').closest('.control-group').hide();
if (!jform_vvvvvyovyq_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
updateFieldRequired('js_document',1);
jQuery('#jform_js_document').removeAttr('required');
jQuery('#jform_js_document').removeAttr('aria-required');
jQuery('#jform_js_document').removeClass('required');
jform_vvvvvyovyq_required = true;
}
}
}
// the vvvvvyp function
function vvvvvyp(add_php_ajax_vvvvvyp)
function vvvvvyp(add_css_vvvvvyp)
{
// set the function logic
if (add_php_ajax_vvvvvyp == 1)
if (add_css_vvvvvyp == 1)
{
jQuery('#jform_css').closest('.control-group').show();
if (jform_vvvvvypvyr_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
jform_vvvvvypvyr_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
if (!jform_vvvvvypvyr_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
jform_vvvvvypvyr_required = true;
}
}
}
// the vvvvvyq function
function vvvvvyq(add_php_ajax_vvvvvyq)
{
// set the function logic
if (add_php_ajax_vvvvvyq == 1)
{
jQuery('#jform_ajax_input').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
if (jform_vvvvvypvyr_required)
if (jform_vvvvvyqvys_required)
{
updateFieldRequired('php_ajaxmethod',0);
jQuery('#jform_php_ajaxmethod').prop('required','required');
jQuery('#jform_php_ajaxmethod').attr('aria-required',true);
jQuery('#jform_php_ajaxmethod').addClass('required');
jform_vvvvvypvyr_required = false;
jform_vvvvvyqvys_required = false;
}
}
@@ -304,42 +304,42 @@ function vvvvvyp(add_php_ajax_vvvvvyp)
{
jQuery('#jform_ajax_input').closest('.control-group').hide();
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
if (!jform_vvvvvypvyr_required)
if (!jform_vvvvvyqvys_required)
{
updateFieldRequired('php_ajaxmethod',1);
jQuery('#jform_php_ajaxmethod').removeAttr('required');
jQuery('#jform_php_ajaxmethod').removeAttr('aria-required');
jQuery('#jform_php_ajaxmethod').removeClass('required');
jform_vvvvvypvyr_required = true;
jform_vvvvvyqvys_required = true;
}
}
}
// the vvvvvyq function
function vvvvvyq(add_custom_button_vvvvvyq)
// the vvvvvyr function
function vvvvvyr(add_custom_button_vvvvvyr)
{
// set the function logic
if (add_custom_button_vvvvvyq == 1)
if (add_custom_button_vvvvvyr == 1)
{
jQuery('#jform_custom_button').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
if (jform_vvvvvyqvys_required)
if (jform_vvvvvyrvyt_required)
{
updateFieldRequired('php_controller',0);
jQuery('#jform_php_controller').prop('required','required');
jQuery('#jform_php_controller').attr('aria-required',true);
jQuery('#jform_php_controller').addClass('required');
jform_vvvvvyqvys_required = false;
jform_vvvvvyrvyt_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
if (jform_vvvvvyqvyt_required)
if (jform_vvvvvyrvyu_required)
{
updateFieldRequired('php_model',0);
jQuery('#jform_php_model').prop('required','required');
jQuery('#jform_php_model').attr('aria-required',true);
jQuery('#jform_php_model').addClass('required');
jform_vvvvvyqvyt_required = false;
jform_vvvvvyrvyu_required = false;
}
}
@@ -347,22 +347,22 @@ function vvvvvyq(add_custom_button_vvvvvyq)
{
jQuery('#jform_custom_button').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
if (!jform_vvvvvyqvys_required)
if (!jform_vvvvvyrvyt_required)
{
updateFieldRequired('php_controller',1);
jQuery('#jform_php_controller').removeAttr('required');
jQuery('#jform_php_controller').removeAttr('aria-required');
jQuery('#jform_php_controller').removeClass('required');
jform_vvvvvyqvys_required = true;
jform_vvvvvyrvyt_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
if (!jform_vvvvvyqvyt_required)
if (!jform_vvvvvyrvyu_required)
{
updateFieldRequired('php_model',1);
jQuery('#jform_php_model').removeAttr('required');
jQuery('#jform_php_model').removeAttr('aria-required');
jQuery('#jform_php_model').removeClass('required');
jform_vvvvvyqvyt_required = true;
jform_vvvvvyrvyu_required = true;
}
}
}
@@ -403,6 +403,7 @@ function isSet(val)
return false;
}
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){
@@ -447,12 +448,12 @@ function getSnippetDetails(id){
jQuery('.snippet-usage').append(usage);
}
})
}
}
function getDynamicValues_server(dynamicId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
var request = 'token='+token+'&view=template&id='+dynamicId;
var request = 'token='+token+'&view=site_view&id='+dynamicId;
}
return jQuery.ajax({
type: 'GET',
@@ -474,10 +475,10 @@ function getDynamicValues(id){
});
}
})
}
}
function getLayoutDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLayoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
@@ -500,8 +501,8 @@ function getLayoutDetails(id){
});
}
})
}
}
function getTemplateDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.templateDetails&format=json";
if(token.length > 0 && id > 0){
@@ -526,30 +527,4 @@ function getTemplateDetails(id){
});
}
})
}
function getDynamicFormDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicFormDetails(id){
getDynamicFormDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
}

View File

@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 16 of this MVC
@build 20th October, 2016
@version @update number 17 of this MVC
@build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage snippet.js

View File

@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 40 of this MVC
@build 1st April, 2017
@version @update number 45 of this MVC
@build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage template.js
@@ -23,42 +23,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvyrvyv_required = false;
jform_vvvvvysvyw_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvyr = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvyr(add_php_view_vvvvvyr);
var add_php_view_vvvvvys = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvys(add_php_view_vvvvvys);
});
// the vvvvvyr function
function vvvvvyr(add_php_view_vvvvvyr)
// the vvvvvys function
function vvvvvys(add_php_view_vvvvvys)
{
// set the function logic
if (add_php_view_vvvvvyr == 1)
if (add_php_view_vvvvvys == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvyrvyv_required)
if (jform_vvvvvysvyw_required)
{
updateFieldRequired('php_view',0);
jQuery('#jform_php_view').prop('required','required');
jQuery('#jform_php_view').attr('aria-required',true);
jQuery('#jform_php_view').addClass('required');
jform_vvvvvyrvyv_required = false;
jform_vvvvvysvyw_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvyrvyv_required)
if (!jform_vvvvvysvyw_required)
{
updateFieldRequired('php_view',1);
jQuery('#jform_php_view').removeAttr('required');
jQuery('#jform_php_view').removeAttr('aria-required');
jQuery('#jform_php_view').removeClass('required');
jform_vvvvvyrvyv_required = true;
jform_vvvvvysvyw_required = true;
}
}
}
@@ -99,6 +99,7 @@ function isSet(val)
return false;
}
function getSnippetDetails_server(snippetId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.snippetDetails&format=json";
if(token.length > 0 && snippetId > 0){
@@ -143,10 +144,10 @@ function getSnippetDetails(id){
jQuery('.snippet-usage').append(usage);
}
})
}
}
function getDynamicValues_server(dynamicId){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicValues&format=json";
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getDynamicValues&format=json";
if(token.length > 0 && dynamicId > 0){
var request = 'token='+token+'&view=template&id='+dynamicId;
}
@@ -170,25 +171,10 @@ function getDynamicValues(id){
});
}
})
}
}
function getLayoutDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getLayoutDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.layoutDetails&format=json";
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getLayoutDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
@@ -211,8 +197,8 @@ function getLayoutDetails(id){
});
}
})
}
}
function getTemplateDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.templateDetails&format=json";
if(token.length > 0 && id > 0){
@@ -237,30 +223,4 @@ function getTemplateDetails(id){
});
}
})
}
function getDynamicFormDetails_server(id){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.dynamicFormDetails&format=json";
if(token.length > 0 && id > 0){
var request = 'token='+token+'&id='+id;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getDynamicFormDetails(id){
getDynamicFormDetails_server(id).done(function(result) {
if(result){
jQuery('#details').append(result);
// make sure the code bocks are active
jQuery("code").click(function() {
jQuery(this).selText().addClass("selected");
});
}
})
}
}

View File

@@ -145,39 +145,16 @@
required="false"
button="true"
/>
<!-- Template Field. Type: Textarea. (joomla) -->
<!-- Dynamic_get Field. Type: Dynamicget. (custom) -->
<field
type="textarea"
name="template"
label="COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_HINT"
required="true"
type="dynamicget"
name="dynamic_get"
label="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="false"
button="true"
/>
<!-- Php_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_HINT"
required="true"
/>
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_TEMPLATE_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Add_php_view Field. Type: Radio. (joomla) -->
<field
type="radio"
@@ -192,22 +169,45 @@
<option value="0">
COM_COMPONENTBUILDER_TEMPLATE_NO</option>
</field>
<!-- Dynamic_get Field. Type: Dynamicget. (custom) -->
<!-- Template Field. Type: Textarea. (joomla) -->
<field
type="dynamicget"
name="dynamic_get"
label="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_LABEL"
description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_DESCRIPTION"
multiple="false"
required="false"
button="true"
type="textarea"
name="template"
label="COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_LABEL"
rows="20"
cols="15"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_HINT"
required="true"
/>
<!-- Note_snippet_usage Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_snippet_usage" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_SNIPPET_USAGE_LABEL" heading="h4" class="snippet-usage note_snippet_usage" />
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"
name="not_required"
default="[]"
/>
<!-- Note_uikit_snippet Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_uikit_snippet" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_UIKIT_SNIPPET_LABEL" heading="h4" class="snippet-code note_uikit_snippet" />
<!-- Dynamic_values Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="dynamic_values" label="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_VALUES_LABEL" description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_VALUES_DESCRIPTION" heading="h4" class="dynamic_values" />
<!-- Note_add_language_string Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_add_language_string" label="COM_COMPONENTBUILDER_TEMPLATE_NOTE_ADD_LANGUAGE_STRING_LABEL" description="COM_COMPONENTBUILDER_TEMPLATE_NOTE_ADD_LANGUAGE_STRING_DESCRIPTION" heading="h4" class="note_add_language_string" />
<!-- Php_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_view"
label="COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_HINT"
required="true"
/>
</fieldset>
<!-- Access Control Fields. -->

View File

@@ -122,7 +122,7 @@ class ComponentbuilderModelFtp extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getWadlinked_components()
public function getWaelinked_components()
{
// Get the user object.
$user = JFactory::getUser();

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage import.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.5
@build 20th September, 2017
@version 2.5.6
@build 6th October, 2017
@created 30th April, 2015
@package Component Builder
@subpackage import_joomla_components.php
@@ -1012,6 +1012,31 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
}
}
/*
* Convert repeatable field
*
* @param array $array The array
* @param string $name The main field name
*
* @return array
*/
protected function convertRepeatable($array, $name)
{
$bucket = array();
foreach ($array as $key => $values)
{
foreach ($values as $nr => $value)
{
if (!isset($bucket[$name . $nr]) || !ComponentbuilderHelper::checkArray($bucket[$name . $nr]))
{
$bucket[$name . $nr] = array();
}
$bucket[$name . $nr][$key] = $value;
}
}
return $bucket;
}
/**
* Prep the item
*
@@ -1081,21 +1106,27 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
if (isset($item->join_view_table) && ComponentbuilderHelper::checkJson($item->join_view_table))
{
$join_view_table = json_decode($item->join_view_table, true);
foreach ($join_view_table['view_table'] as $nr => $id)
// check if this is old values for repeatable fields
if (isset($join_view_table['view_table']))
{
$join_view_table = $this->convertRepeatable($join_view_table, 'join_view_table');
}
foreach ($join_view_table as $nr => $join_values)
{
$id = $join_values['view_table'];
if (!is_numeric($id))
{
continue;
}
// update the join_view_table
// update the id's with local id's
if (isset($this->newID['admin_view'][$id]))
{
$join_view_table['view_table'][$nr] = $this->newID['admin_view'][$id];
$join_view_table[$nr]['view_table'] = $this->newID['admin_view'][$id];
}
else
{
$this->app->enqueueMessage(JText::sprintf('COM_COMPONENTBUILDER_BJOIN_VIEW_TABLE_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BVIEW_TABLEB_SO_THE_IDS_WAS_REMOVED', '('.ComponentbuilderHelper::safeString($type, 'w').':'.$item->id.')', $id), 'warning');
$join_view_table['view_table'][$nr] = '';
$this->app->enqueueMessage(JText::sprintf('COM_COMPONENTBUILDER_BJOIN_VIEW_TABLE_IN_SB_HAS_ID_MISMATCH_OF_SELECTED_BJOIN_VIEW_TABLEB_SO_THE_IDS_WAS_REMOVED', '('.ComponentbuilderHelper::safeString($type, 'w').':'.$item->id.')', $id), 'warning');
$join_values['view_table'] = '';
}
}
// load it back
@@ -1105,6 +1136,33 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
{
unset($item->join_view_table);
}
// repeatable fields to update
$updaterR = array(
'join_db_table' => 'db_table',
'order' => 'table_key',
'where' => 'table_key',
'global' => 'name',
'filter' => 'filter_type'
);
// update the repeatable fields
foreach ($updaterR as $up => $sleutel)
{
if (isset($item->{$up}) && ComponentbuilderHelper::checkJson($item->{$up}))
{
$updateArray = json_decode($item->{$up}, true);
// check if this is old values for repeatable fields
if (isset($updateArray[$sleutel]))
{
$updateArray = $this->convertRepeatable($updateArray, $up);
}
// load it back
$item->{$up} = json_encode($updateArray);
}
else
{
unset($item->{$up});
}
}
break;
case 'layout':
case 'template':
@@ -1634,6 +1692,12 @@ class ComponentbuilderModelImport_joomla_components extends JModelLegacy
if (ComponentbuilderHelper::checkJson($properties))
{
$properties = json_decode($properties, true);
// check if this is old values for repeatable fields
if (isset($properties['name']))
{
$properties = $this->convertRepeatable($properties, 'properties');
}
// now check to find type
foreach ($properties as $property)
{
if ('type' === $property['name'])

File diff suppressed because it is too large Load Diff

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 378 of this MVC
@build 18th September, 2017
@version @update number 385 of this MVC
@build 6th October, 2017
@created 6th May, 2015
@package Component Builder
@subpackage joomla_components.php
@@ -1350,27 +1350,25 @@ class ComponentbuilderModelJoomla_components extends JModelList
{
foreach ($items as $nr => &$item)
{
// decode readme
$item->readme = base64_decode($item->readme);
// decode php_postflight_install
$item->php_postflight_install = base64_decode($item->php_postflight_install);
// decode php_preflight_install
$item->php_preflight_install = base64_decode($item->php_preflight_install);
// decode php_method_uninstall
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
// decode css
$item->css = base64_decode($item->css);
// decode sql
$item->sql = base64_decode($item->sql);
// decode php_preflight_update
$item->php_preflight_update = base64_decode($item->php_preflight_update);
// decode php_postflight_update
$item->php_postflight_update = base64_decode($item->php_postflight_update);
if ($basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true)))
{
// decrypt whmcs_key
$item->whmcs_key = $basic->decryptString($item->whmcs_key);
}
// decode php_preflight_update
$item->php_preflight_update = base64_decode($item->php_preflight_update);
// decode php_postflight_update
$item->php_postflight_update = base64_decode($item->php_postflight_update);
// decode sql
$item->sql = base64_decode($item->sql);
// decode php_preflight_install
$item->php_preflight_install = base64_decode($item->php_preflight_install);
// decode php_postflight_install
$item->php_postflight_install = base64_decode($item->php_postflight_install);
// decode php_method_uninstall
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
// decode readme
$item->readme = base64_decode($item->readme);
if ($basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true)))
{
// decrypt export_key
@@ -1386,6 +1384,10 @@ class ComponentbuilderModelJoomla_components extends JModelList
$item->php_helper_site = base64_decode($item->php_helper_site);
// decode php_site_event
$item->php_site_event = base64_decode($item->php_site_event);
// decode javascript
$item->javascript = base64_decode($item->javascript);
// decode css
$item->css = base64_decode($item->css);
// decode php_dashboard_methods
$item->php_dashboard_methods = base64_decode($item->php_dashboard_methods);
// decode buildcompsql

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 77 of this MVC
@build 30th May, 2017
@version @update number 81 of this MVC
@build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage layout.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 77 of this MVC
@build 30th May, 2017
@version @update number 81 of this MVC
@build 27th September, 2017
@created 18th May, 2015
@package Component Builder
@subpackage layouts.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 51 of this MVC
@build 17th July, 2017
@version @update number 54 of this MVC
@build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage site_view.php
@@ -185,7 +185,7 @@ class ComponentbuilderModelSite_view extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVyulinked_components()
public function getVyvlinked_components()
{
// Get the user object.
$user = JFactory::getUser();

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 51 of this MVC
@build 17th July, 2017
@version @update number 54 of this MVC
@build 27th September, 2017
@created 29th May, 2015
@package Component Builder
@subpackage site_views.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 16 of this MVC
@build 20th October, 2016
@version @update number 17 of this MVC
@build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage snippet.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 16 of this MVC
@build 20th October, 2016
@version @update number 17 of this MVC
@build 27th September, 2017
@created 19th May, 2015
@package Component Builder
@subpackage snippets.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 40 of this MVC
@build 1st April, 2017
@version @update number 45 of this MVC
@build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage template.php

View File

@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 40 of this MVC
@build 1st April, 2017
@version @update number 45 of this MVC
@build 27th September, 2017
@created 26th May, 2015
@package Component Builder
@subpackage templates.php