Added the option to customize the import of data per view.

This commit is contained in:
2016-05-04 05:53:33 +01:00
parent 951e0c1f5d
commit 6b70aa45e6
374 changed files with 4370 additions and 2718 deletions

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage admin_view.php
@ -96,46 +96,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->metadata = $registry->toArray();
}
if (!empty($item->php_allowedit))
if (!empty($item->php_before_delete))
{
// base64 Decode php_allowedit.
$item->php_allowedit = base64_decode($item->php_allowedit);
}
if (!empty($item->php_getitems))
{
// base64 Decode php_getitems.
$item->php_getitems = base64_decode($item->php_getitems);
}
if (!empty($item->php_after_delete))
{
// base64 Decode php_after_delete.
$item->php_after_delete = base64_decode($item->php_after_delete);
}
if (!empty($item->php_save))
{
// base64 Decode php_save.
$item->php_save = base64_decode($item->php_save);
}
if (!empty($item->php_batchmove))
{
// base64 Decode php_batchmove.
$item->php_batchmove = base64_decode($item->php_batchmove);
}
if (!empty($item->php_getitem))
{
// base64 Decode php_getitem.
$item->php_getitem = base64_decode($item->php_getitem);
}
if (!empty($item->php_getlistquery))
{
// base64 Decode php_getlistquery.
$item->php_getlistquery = base64_decode($item->php_getlistquery);
// base64 Decode php_before_delete.
$item->php_before_delete = base64_decode($item->php_before_delete);
}
if (!empty($item->php_postsavehook))
@ -144,34 +108,76 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$item->php_postsavehook = base64_decode($item->php_postsavehook);
}
if (!empty($item->sql))
{
// base64 Decode sql.
$item->sql = base64_decode($item->sql);
}
if (!empty($item->php_getlistquery))
{
// base64 Decode php_getlistquery.
$item->php_getlistquery = base64_decode($item->php_getlistquery);
}
if (!empty($item->php_batchcopy))
{
// base64 Decode php_batchcopy.
$item->php_batchcopy = base64_decode($item->php_batchcopy);
}
if (!empty($item->php_before_delete))
{
// base64 Decode php_before_delete.
$item->php_before_delete = base64_decode($item->php_before_delete);
}
if (!empty($item->php_document))
{
// base64 Decode php_document.
$item->php_document = base64_decode($item->php_document);
}
if (!empty($item->sql))
if (!empty($item->php_getitem))
{
// base64 Decode sql.
$item->sql = base64_decode($item->sql);
// base64 Decode php_getitem.
$item->php_getitem = base64_decode($item->php_getitem);
}
if (!empty($item->php_ajaxmethod))
if (!empty($item->html_import_view))
{
// base64 Decode php_ajaxmethod.
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
// base64 Decode html_import_view.
$item->html_import_view = base64_decode($item->html_import_view);
}
if (!empty($item->php_getitems))
{
// base64 Decode php_getitems.
$item->php_getitems = base64_decode($item->php_getitems);
}
if (!empty($item->php_save))
{
// base64 Decode php_save.
$item->php_save = base64_decode($item->php_save);
}
if (!empty($item->php_allowedit))
{
// base64 Decode php_allowedit.
$item->php_allowedit = base64_decode($item->php_allowedit);
}
if (!empty($item->php_batchmove))
{
// base64 Decode php_batchmove.
$item->php_batchmove = base64_decode($item->php_batchmove);
}
if (!empty($item->php_after_delete))
{
// base64 Decode php_after_delete.
$item->php_after_delete = base64_decode($item->php_after_delete);
}
if (!empty($item->php_import_save))
{
// base64 Decode php_import_save.
$item->php_import_save = base64_decode($item->php_import_save);
}
if (!empty($item->css_view))
@ -208,6 +214,18 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
{
// base64 Decode javascript_views_footer.
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
}
if (!empty($item->php_ajaxmethod))
{
// base64 Decode php_ajaxmethod.
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
}
if (!empty($item->php_import_setdata))
{
// base64 Decode php_import_setdata.
$item->php_import_setdata = base64_decode($item->php_import_setdata);
}
if (!empty($item->id))
@ -226,7 +244,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVxafields()
public function getVxdfields()
{
// Get the user object.
$user = JFactory::getUser();
@ -295,13 +313,13 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
$item->datatype = $this->selectionTranslationVxafields($item->datatype, 'datatype');
$item->datatype = $this->selectionTranslationVxdfields($item->datatype, 'datatype');
// convert indexes
$item->indexes = $this->selectionTranslationVxafields($item->indexes, 'indexes');
$item->indexes = $this->selectionTranslationVxdfields($item->indexes, 'indexes');
// convert null_switch
$item->null_switch = $this->selectionTranslationVxafields($item->null_switch, 'null_switch');
$item->null_switch = $this->selectionTranslationVxdfields($item->null_switch, 'null_switch');
// convert store
$item->store = $this->selectionTranslationVxafields($item->store, 'store');
$item->store = $this->selectionTranslationVxdfields($item->store, 'store');
}
}
@ -336,7 +354,7 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationVxafields($value,$name)
public function selectionTranslationVxdfields($value,$name)
{
// Array of datatype language strings
if ($name == 'datatype')
@ -1099,46 +1117,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['metadata'] = (string) $metadata;
}
// Set the php_allowedit string to base64 string.
if (isset($data['php_allowedit']))
// Set the php_before_delete string to base64 string.
if (isset($data['php_before_delete']))
{
$data['php_allowedit'] = base64_encode($data['php_allowedit']);
}
// Set the php_getitems string to base64 string.
if (isset($data['php_getitems']))
{
$data['php_getitems'] = base64_encode($data['php_getitems']);
}
// Set the php_after_delete string to base64 string.
if (isset($data['php_after_delete']))
{
$data['php_after_delete'] = base64_encode($data['php_after_delete']);
}
// Set the php_save string to base64 string.
if (isset($data['php_save']))
{
$data['php_save'] = base64_encode($data['php_save']);
}
// Set the php_batchmove string to base64 string.
if (isset($data['php_batchmove']))
{
$data['php_batchmove'] = base64_encode($data['php_batchmove']);
}
// Set the php_getitem string to base64 string.
if (isset($data['php_getitem']))
{
$data['php_getitem'] = base64_encode($data['php_getitem']);
}
// Set the php_getlistquery string to base64 string.
if (isset($data['php_getlistquery']))
{
$data['php_getlistquery'] = base64_encode($data['php_getlistquery']);
$data['php_before_delete'] = base64_encode($data['php_before_delete']);
}
// Set the php_postsavehook string to base64 string.
@ -1147,34 +1129,76 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
$data['php_postsavehook'] = base64_encode($data['php_postsavehook']);
}
// Set the sql string to base64 string.
if (isset($data['sql']))
{
$data['sql'] = base64_encode($data['sql']);
}
// Set the php_getlistquery string to base64 string.
if (isset($data['php_getlistquery']))
{
$data['php_getlistquery'] = base64_encode($data['php_getlistquery']);
}
// Set the php_batchcopy string to base64 string.
if (isset($data['php_batchcopy']))
{
$data['php_batchcopy'] = base64_encode($data['php_batchcopy']);
}
// Set the php_before_delete string to base64 string.
if (isset($data['php_before_delete']))
{
$data['php_before_delete'] = base64_encode($data['php_before_delete']);
}
// Set the php_document string to base64 string.
if (isset($data['php_document']))
{
$data['php_document'] = base64_encode($data['php_document']);
}
// Set the sql string to base64 string.
if (isset($data['sql']))
// Set the php_getitem string to base64 string.
if (isset($data['php_getitem']))
{
$data['sql'] = base64_encode($data['sql']);
$data['php_getitem'] = base64_encode($data['php_getitem']);
}
// Set the php_ajaxmethod string to base64 string.
if (isset($data['php_ajaxmethod']))
// Set the html_import_view string to base64 string.
if (isset($data['html_import_view']))
{
$data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']);
$data['html_import_view'] = base64_encode($data['html_import_view']);
}
// Set the php_getitems string to base64 string.
if (isset($data['php_getitems']))
{
$data['php_getitems'] = base64_encode($data['php_getitems']);
}
// Set the php_save string to base64 string.
if (isset($data['php_save']))
{
$data['php_save'] = base64_encode($data['php_save']);
}
// Set the php_allowedit string to base64 string.
if (isset($data['php_allowedit']))
{
$data['php_allowedit'] = base64_encode($data['php_allowedit']);
}
// Set the php_batchmove string to base64 string.
if (isset($data['php_batchmove']))
{
$data['php_batchmove'] = base64_encode($data['php_batchmove']);
}
// Set the php_after_delete string to base64 string.
if (isset($data['php_after_delete']))
{
$data['php_after_delete'] = base64_encode($data['php_after_delete']);
}
// Set the php_import_save string to base64 string.
if (isset($data['php_import_save']))
{
$data['php_import_save'] = base64_encode($data['php_import_save']);
}
// Set the css_view string to base64 string.
@ -1211,6 +1235,18 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin
if (isset($data['javascript_views_footer']))
{
$data['javascript_views_footer'] = base64_encode($data['javascript_views_footer']);
}
// Set the php_ajaxmethod string to base64 string.
if (isset($data['php_ajaxmethod']))
{
$data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']);
}
// Set the php_import_setdata string to base64 string.
if (isset($data['php_import_setdata']))
{
$data['php_import_setdata'] = base64_encode($data['php_import_setdata']);
}
// Set the Params Items to data

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage admin_views.php
@ -261,32 +261,34 @@ class ComponentbuilderModelAdmin_views extends JModelList
continue;
}
// decode php_allowedit
$item->php_allowedit = base64_decode($item->php_allowedit);
// decode php_getitems
$item->php_getitems = base64_decode($item->php_getitems);
// decode php_after_delete
$item->php_after_delete = base64_decode($item->php_after_delete);
// decode php_save
$item->php_save = base64_decode($item->php_save);
// decode php_batchmove
$item->php_batchmove = base64_decode($item->php_batchmove);
// decode php_getitem
$item->php_getitem = base64_decode($item->php_getitem);
// decode php_getlistquery
$item->php_getlistquery = base64_decode($item->php_getlistquery);
// decode php_postsavehook
$item->php_postsavehook = base64_decode($item->php_postsavehook);
// decode php_batchcopy
$item->php_batchcopy = base64_decode($item->php_batchcopy);
// decode php_before_delete
$item->php_before_delete = base64_decode($item->php_before_delete);
// decode php_document
$item->php_document = base64_decode($item->php_document);
// decode php_postsavehook
$item->php_postsavehook = base64_decode($item->php_postsavehook);
// decode sql
$item->sql = base64_decode($item->sql);
// decode php_ajaxmethod
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
// decode php_getlistquery
$item->php_getlistquery = base64_decode($item->php_getlistquery);
// decode php_batchcopy
$item->php_batchcopy = base64_decode($item->php_batchcopy);
// decode php_document
$item->php_document = base64_decode($item->php_document);
// decode php_getitem
$item->php_getitem = base64_decode($item->php_getitem);
// decode html_import_view
$item->html_import_view = base64_decode($item->html_import_view);
// decode php_getitems
$item->php_getitems = base64_decode($item->php_getitems);
// decode php_save
$item->php_save = base64_decode($item->php_save);
// decode php_allowedit
$item->php_allowedit = base64_decode($item->php_allowedit);
// decode php_batchmove
$item->php_batchmove = base64_decode($item->php_batchmove);
// decode php_after_delete
$item->php_after_delete = base64_decode($item->php_after_delete);
// decode php_import_save
$item->php_import_save = base64_decode($item->php_import_save);
// decode css_view
$item->css_view = base64_decode($item->css_view);
// decode css_views
@ -299,6 +301,10 @@ class ComponentbuilderModelAdmin_views extends JModelList
$item->javascript_views_file = base64_decode($item->javascript_views_file);
// decode javascript_views_footer
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
// decode php_ajaxmethod
$item->php_ajaxmethod = base64_decode($item->php_ajaxmethod);
// decode php_import_setdata
$item->php_import_setdata = base64_decode($item->php_import_setdata);
// unset the values we don't want exported.
unset($item->asset_id);
unset($item->checked_out);

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage ajax.php
@ -45,6 +45,439 @@ class ComponentbuilderModelAjax extends JModelList
}
// Used in admin_view
public function getImportScripts($type)
{
$script = array();
if ('setdata' == $type)
{
// set the setdata script
$script['setdata'] = array();
$script['setdata'][] = "\t\tif (###-#-#-Component###Helper::checkArray(\$target_headers))";
$script['setdata'][] = "\t\t{";
$script['setdata'][] = "\t\t\t// make sure the file is loaded\t\t";
$script['setdata'][] = "\t\t\tJLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers');";
$script['setdata'][] = "\t\t\t\$jinput = JFactory::getApplication()->input;";
$script['setdata'][] = "\t\t\tforeach(\$target_headers as \$header)";
$script['setdata'][] = "\t\t\t{";
$script['setdata'][] = "\t\t\t\t\$data['target_headers'][\$header] = \$jinput->getString(\$header, null);";
$script['setdata'][] = "\t\t\t}";
$script['setdata'][] = "\t\t\t// set the data";
$script['setdata'][] = "\t\t\tif(isset(\$package['dir']))";
$script['setdata'][] = "\t\t\t{";
$script['setdata'][] = "\t\t\t\t\$inputFileType = PHPExcel_IOFactory::identify(\$package['dir']);";
$script['setdata'][] = "\t\t\t\t\$excelReader = PHPExcel_IOFactory::createReader(\$inputFileType);";
$script['setdata'][] = "\t\t\t\t\$excelReader->setReadDataOnly(true);";
$script['setdata'][] = "\t\t\t\t\$excelObj = \$excelReader->load(\$package['dir']);";
$script['setdata'][] = "\t\t\t\t\$data['array'] = \$excelObj->getActiveSheet()->toArray(null, true,true,true);";
$script['setdata'][] = "\t\t\t\t\$excelObj->disconnectWorksheets();";
$script['setdata'][] = "\t\t\t\tunset(\$excelObj);";
$script['setdata'][] = "\t\t\t\treturn \$this->save(\$data,\$table);";
$script['setdata'][] = "\t\t\t}";
$script['setdata'][] = "\t\t}";
$script['setdata'][] = "\t\treturn false;";
}
elseif ('save' == $type)
{
$script['save'][] = "\t\t// import the data if there is any";
$script['save'][] = "\t\tif(###-#-#-Component###Helper::checkArray(\$data['array']))";
$script['save'][] = "\t\t{";
$script['save'][] = "\t\t\t// get user object";
$script['save'][] = "\t\t\t\$user \t\t= JFactory::getUser();";
$script['save'][] = "\t\t\t// remove header if it has headers";
$script['save'][] = "\t\t\t\$id_key \t= \$data['target_headers']['id'];";
$script['save'][] = "\t\t\t\$published_key \t= \$data['target_headers']['published'];";
$script['save'][] = "\t\t\t\$ordering_key \t= \$data['target_headers']['ordering'];";
$script['save'][] = "\t\t\t// get the first array set";
$script['save'][] = "\t\t\t\$firstSet = reset(\$data['array']);";
$script['save'][] = "";
$script['save'][] = "\t\t\t// check if first array is a header array and remove if true";
$script['save'][] = "\t\t\tif(\$firstSet[\$id_key] == 'id' || \$firstSet[\$published_key] == 'published' || \$firstSet[\$ordering_key] == 'ordering')";
$script['save'][] = "\t\t\t{";
$script['save'][] = "\t\t\t\tarray_shift(\$data['array']);";
$script['save'][] = "\t\t\t}";
$script['save'][] = "\t\t\t";
$script['save'][] = "\t\t\t// make sure there is still values in array and that it was not only headers";
$script['save'][] = "\t\t\tif(###-#-#-Component###Helper::checkArray(\$data['array']) && \$user->authorise(\$table.'.import', 'com_###-#-#-component###') && \$user->authorise('core.import', 'com_###-#-#-component###'))";
$script['save'][] = "\t\t\t{";
$script['save'][] = "\t\t\t\t// set target.";
$script['save'][] = "\t\t\t\t\$target\t= array_flip(\$data['target_headers']);";
$script['save'][] = "\t\t\t\t// Get a db connection.";
$script['save'][] = "\t\t\t\t\$db = JFactory::getDbo();";
$script['save'][] = "\t\t\t\t// set some defaults";
$script['save'][] = "\t\t\t\t\$todayDate\t\t= JFactory::getDate()->toSql();";
$script['save'][] = "\t\t\t\t// get global action permissions";
$script['save'][] = "\t\t\t\t\$canDo\t\t\t= ###-#-#-Component###Helper::getActions(\$table);";
$script['save'][] = "\t\t\t\t\$canEdit\t\t= \$canDo->get('core.edit');";
$script['save'][] = "\t\t\t\t\$canState\t\t= \$canDo->get('core.edit.state');";
$script['save'][] = "\t\t\t\t\$canCreate\t\t= \$canDo->get('core.create');";
$script['save'][] = "\t\t\t\t\$hasAlias\t\t= \$this->getAliasesUsed(\$table);";
$script['save'][] = "\t\t\t\t// prosses the data";
$script['save'][] = "\t\t\t\tforeach(\$data['array'] as \$row)";
$script['save'][] = "\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\$found = false;";
$script['save'][] = "\t\t\t\t\tif (isset(\$row[\$id_key]) && is_numeric(\$row[\$id_key]) && \$row[\$id_key] > 0)";
$script['save'][] = "\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t// raw items import & update!";
$script['save'][] = "\t\t\t\t\t\t\$query = \$db->getQuery(true);";
$script['save'][] = "\t\t\t\t\t\t\$query";
$script['save'][] = "\t\t\t\t\t\t\t->select('version')";
$script['save'][] = "\t\t\t\t\t\t\t->from(\$db->quoteName('#__###-#-#-component###_'.\$table))";
$script['save'][] = "\t\t\t\t\t\t\t->where(\$db->quoteName('id') . ' = '. \$db->quote(\$row[\$id_key]));";
$script['save'][] = "\t\t\t\t\t\t// Reset the query using our newly populated query object.";
$script['save'][] = "\t\t\t\t\t\t\$db->setQuery(\$query);";
$script['save'][] = "\t\t\t\t\t\t\$db->execute();";
$script['save'][] = "\t\t\t\t\t\t\$found = \$db->getNumRows();";
$script['save'][] = "\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t";
$script['save'][] = "\t\t\t\t\tif(\$found && \$canEdit)";
$script['save'][] = "\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t// update item";
$script['save'][] = "\t\t\t\t\t\t\$id \t\t= \$row[\$id_key];";
$script['save'][] = "\t\t\t\t\t\t\$version\t= \$db->loadResult();";
$script['save'][] = "\t\t\t\t\t\t// reset all buckets";
$script['save'][] = "\t\t\t\t\t\t\$query \t\t= \$db->getQuery(true);";
$script['save'][] = "\t\t\t\t\t\t\$fields \t= array();";
$script['save'][] = "\t\t\t\t\t\t// Fields to update.";
$script['save'][] = "\t\t\t\t\t\tforeach(\$row as \$key => \$cell)";
$script['save'][] = "\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t// ignore column";
$script['save'][] = "\t\t\t\t\t\t\tif ('IGNORE' == \$target[\$key])";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\t// update modified";
$script['save'][] = "\t\t\t\t\t\t\tif ('modified_by' == \$target[\$key])";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\t// update modified";
$script['save'][] = "\t\t\t\t\t\t\tif ('modified' == \$target[\$key])";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\t// update version";
$script['save'][] = "\t\t\t\t\t\t\tif ('version' == \$target[\$key])";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\t\$cell = (int) \$version + 1;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\t// verify publish authority";
$script['save'][] = "\t\t\t\t\t\t\tif ('published' == \$target[\$key] && !\$canState)";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\t// set to update array";
$script['save'][] = "\t\t\t\t\t\t\tif(in_array(\$key, \$data['target_headers']) && is_numeric(\$cell))";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\t\$fields[] = \$db->quoteName(\$target[\$key]) . ' = ' . \$cell;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\telseif(in_array(\$key, \$data['target_headers']) && is_string(\$cell))";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\t\$fields[] = \$db->quoteName(\$target[\$key]) . ' = ' . \$db->quote(\$cell);";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\telseif(in_array(\$key, \$data['target_headers']) && is_null(\$cell))";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\t// if import data is null then set empty";
$script['save'][] = "\t\t\t\t\t\t\t\t\$fields[] = \$db->quoteName(\$target[\$key]) . \" = ''\";";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t// load the defaults";
$script['save'][] = "\t\t\t\t\t\t\$fields[]\t= \$db->quoteName('modified_by') . ' = ' . \$db->quote(\$user->id);";
$script['save'][] = "\t\t\t\t\t\t\$fields[]\t= \$db->quoteName('modified') . ' = ' . \$db->quote(\$todayDate);";
$script['save'][] = "\t\t\t\t\t\t// Conditions for which records should be updated.";
$script['save'][] = "\t\t\t\t\t\t\$conditions = array(";
$script['save'][] = "\t\t\t\t\t\t\t\$db->quoteName('id') . ' = ' . \$id";
$script['save'][] = "\t\t\t\t\t\t);";
$script['save'][] = "\t\t\t\t\t\t";
$script['save'][] = "\t\t\t\t\t\t\$query->update(\$db->quoteName('#__###-#-#-component###_'.\$table))->set(\$fields)->where(\$conditions);";
$script['save'][] = "\t\t\t\t\t\t\$db->setQuery(\$query);";
$script['save'][] = "\t\t\t\t\t\t\$db->execute();";
$script['save'][] = "\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\telseif (\$canCreate)";
$script['save'][] = "\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t// insert item";
$script['save'][] = "\t\t\t\t\t\t\$query = \$db->getQuery(true);";
$script['save'][] = "\t\t\t\t\t\t// reset all buckets";
$script['save'][] = "\t\t\t\t\t\t\$columns \t= array();";
$script['save'][] = "\t\t\t\t\t\t\$values \t= array();";
$script['save'][] = "\t\t\t\t\t\t\$version\t= false;";
$script['save'][] = "\t\t\t\t\t\t// Insert columns. Insert values.";
$script['save'][] = "\t\t\t\t\t\tforeach(\$row as \$key => \$cell)";
$script['save'][] = "\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t// ignore column";
$script['save'][] = "\t\t\t\t\t\t\tif ('IGNORE' == \$target[\$key])";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\t// remove id";
$script['save'][] = "\t\t\t\t\t\t\tif ('id' == \$target[\$key])";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\t// update created";
$script['save'][] = "\t\t\t\t\t\t\tif ('created_by' == \$target[\$key])";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\t// update created";
$script['save'][] = "\t\t\t\t\t\t\tif ('created' == \$target[\$key])";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\t// Make sure the alias is incremented";
$script['save'][] = "\t\t\t\t\t\t\tif ('alias' == \$target[\$key])";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\t\$cell = \$this->getAlias(\$cell,\$table);";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\t// update version";
$script['save'][] = "\t\t\t\t\t\t\tif ('version' == \$target[\$key])";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\t\$cell = 1;";
$script['save'][] = "\t\t\t\t\t\t\t\t\$version = true;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\t// set to insert array";
$script['save'][] = "\t\t\t\t\t\t\tif(in_array(\$key, \$data['target_headers']) && is_numeric(\$cell))";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\t\$columns[] \t= \$target[\$key];";
$script['save'][] = "\t\t\t\t\t\t\t\t\$values[] \t= \$cell;";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\telseif(in_array(\$key, \$data['target_headers']) && is_string(\$cell))";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\t\$columns[] \t= \$target[\$key];";
$script['save'][] = "\t\t\t\t\t\t\t\t\$values[] \t= \$db->quote(\$cell);";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t\telseif(in_array(\$key, \$data['target_headers']) && is_null(\$cell))";
$script['save'][] = "\t\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\t// if import data is null then set empty";
$script['save'][] = "\t\t\t\t\t\t\t\t\$columns[] \t= \$target[\$key];";
$script['save'][] = "\t\t\t\t\t\t\t\t\$values[] \t= \"''\";";
$script['save'][] = "\t\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t// load the defaults";
$script['save'][] = "\t\t\t\t\t\t\$columns[] \t= 'created_by';";
$script['save'][] = "\t\t\t\t\t\t\$values[] \t= \$db->quote(\$user->id);";
$script['save'][] = "\t\t\t\t\t\t\$columns[] \t= 'created';";
$script['save'][] = "\t\t\t\t\t\t\$values[] \t= \$db->quote(\$todayDate);";
$script['save'][] = "\t\t\t\t\t\tif (!\$version)";
$script['save'][] = "\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\$columns[] \t= 'version';";
$script['save'][] = "\t\t\t\t\t\t\t\$values[] \t= 1;";
$script['save'][] = "\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t\t// Prepare the insert query.";
$script['save'][] = "\t\t\t\t\t\t\$query";
$script['save'][] = "\t\t\t\t\t\t\t->insert(\$db->quoteName('#__###-#-#-component###_'.\$table))";
$script['save'][] = "\t\t\t\t\t\t\t->columns(\$db->quoteName(\$columns))";
$script['save'][] = "\t\t\t\t\t\t\t->values(implode(',', \$values));";
$script['save'][] = "\t\t\t\t\t\t// Set the query using our newly populated query object and execute it.";
$script['save'][] = "\t\t\t\t\t\t\$db->setQuery(\$query);";
$script['save'][] = "\t\t\t\t\t\t\$done = \$db->execute();";
$script['save'][] = "\t\t\t\t\t\tif (\$done)";
$script['save'][] = "\t\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\t\t\$aId = \$db->insertid();";
$script['save'][] = "\t\t\t\t\t\t\t// make sure the access of asset is set";
$script['save'][] = "\t\t\t\t\t\t\t###-#-#-Component###Helper::setAsset(\$aId,\$table);";
$script['save'][] = "\t\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t\telse";
$script['save'][] = "\t\t\t\t\t{";
$script['save'][] = "\t\t\t\t\t\treturn false;";
$script['save'][] = "\t\t\t\t\t}";
$script['save'][] = "\t\t\t\t}";
$script['save'][] = "\t\t\t\treturn true;";
$script['save'][] = "\t\t\t}";
$script['save'][] = "\t\t}";
$script['save'][] = "\t\treturn false;";
}
elseif ('view' == $type)
{
$script['view'][] = "<script type=\"text/javascript\">";
$script['view'][] = "\n\t<?php if (\$this->hasPackage && ###-#-#-Component###Helper::checkArray(\$this->headerList)) : ?>";
$script['view'][] = "\tJoomla.continueImport = function()";
$script['view'][] = "\t{";
$script['view'][] = "\t\tvar form = document.getElementById('adminForm');";
$script['view'][] = "\t\tvar error = false;";
$script['view'][] = "\t\tvar therequired = [<?php \$i = 0; foreach(\$this->headerList as \$name => \$title) { echo (\$i != 0)? ', \"vdm_'.\$name.'\"':'\"vdm_'.\$name.'\"'; \$i++; } ?>];";
$script['view'][] = "\t\tfor(i = 0; i < therequired.length; i++)";
$script['view'][] = "\t\t{";
$script['view'][] = "\t\t\tif(jQuery('#'+therequired[i]).val() == \"\" )";
$script['view'][] = "\t\t\t{";
$script['view'][] = "\t\t\t\terror = true;";
$script['view'][] = "\t\t\t\tbreak;";
$script['view'][] = "\t\t\t}";
$script['view'][] = "\t\t}";
$script['view'][] = "\t\t// do field validation";
$script['view'][] = "\t\tif (error)";
$script['view'][] = "\t\t{";
$script['view'][] = "\t\t\talert(\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_MSG_PLEASE_SELECT_ALL_COLUMNS', true); ?>\");";
$script['view'][] = "\t\t}";
$script['view'][] = "\t\telse";
$script['view'][] = "\t\t{";
$script['view'][] = "\t\t\tjQuery('#loading').css('display', 'block');";
$script['view'][] = "\n\t\t\tform.gettype.value = 'continue';";
$script['view'][] = "\t\t\tform.submit();";
$script['view'][] = "\t\t}";
$script['view'][] = "\t};";
$script['view'][] = "\t<?php else: ?>";
$script['view'][] = "\tJoomla.submitbutton = function()";
$script['view'][] = "\t{";
$script['view'][] = "\t\tvar form = document.getElementById('adminForm');";
$script['view'][] = "\n\t\t// do field validation";
$script['view'][] = "\t\tif (form.import_package.value == \"\")";
$script['view'][] = "\t\t{";
$script['view'][] = "\t\t\talert(\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_MSG_PLEASE_SELECT_A_FILE', true); ?>\");";
$script['view'][] = "\t\t}";
$script['view'][] = "\t\telse";
$script['view'][] = "\t\t{";
$script['view'][] = "\t\t\tjQuery('#loading').css('display', 'block');";
$script['view'][] = "\n\t\t\tform.gettype.value = 'upload';";
$script['view'][] = "\t\t\tform.submit();";
$script['view'][] = "\t\t}";
$script['view'][] = "\t};";
$script['view'][] = "\n\tJoomla.submitbutton3 = function()";
$script['view'][] = "\t{";
$script['view'][] = "\t\tvar form = document.getElementById('adminForm');";
$script['view'][] = "\n\t\t// do field validation";
$script['view'][] = "\t\tif (form.import_directory.value == \"\"){";
$script['view'][] = "\t\t\talert(\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_MSG_PLEASE_SELECT_A_DIRECTORY', true); ?>\");";
$script['view'][] = "\t\t}";
$script['view'][] = "\t\telse";
$script['view'][] = "\t\t{";
$script['view'][] = "\t\t\tjQuery('#loading').css('display', 'block');";
$script['view'][] = "\n\t\t\tform.gettype.value = 'folder';";
$script['view'][] = "\t\t\tform.submit();";
$script['view'][] = "\t\t}";
$script['view'][] = "\t};";
$script['view'][] = "\n\tJoomla.submitbutton4 = function()";
$script['view'][] = "\t{";
$script['view'][] = "\t\tvar form = document.getElementById('adminForm');";
$script['view'][] = "\n\t\t// do field validation";
$script['view'][] = "\t\tif (form.import_url.value == \"\" || form.import_url.value == \"http://\")";
$script['view'][] = "\t\t{";
$script['view'][] = "\t\t\talert(\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_MSG_ENTER_A_URL', true); ?>\");";
$script['view'][] = "\t\t}";
$script['view'][] = "\t\telse";
$script['view'][] = "\t\t{";
$script['view'][] = "\t\t\tjQuery('#loading').css('display', 'block');";
$script['view'][] = "\n\t\t\tform.gettype.value = 'url';";
$script['view'][] = "\t\t\tform.submit();";
$script['view'][] = "\t\t}";
$script['view'][] = "\t};";
$script['view'][] = "\t<?php endif; ?>";
$script['view'][] = "\n\t// Add spindle-wheel for importations:";
$script['view'][] = "\tjQuery(document).ready(function(\$) {";
$script['view'][] = "\t\tvar outerDiv = \$('body');";
$script['view'][] = "\n\t\t\$('<div id=\"loading\"></div>')";
$script['view'][] = "\t\t\t.css(\"background\", \"rgba(255, 255, 255, .8) url('components/com_###-#-#-component###/assets/images/import.gif') 50% 15% no-repeat\")";
$script['view'][] = "\t\t\t.css(\"top\", outerDiv.position().top - \$(window).scrollTop())";
$script['view'][] = "\t\t\t.css(\"left\", outerDiv.position().left - \$(window).scrollLeft())";
$script['view'][] = "\t\t\t.css(\"width\", outerDiv.width())";
$script['view'][] = "\t\t\t.css(\"height\", outerDiv.height())";
$script['view'][] = "\t\t\t.css(\"position\", \"fixed\")";
$script['view'][] = "\t\t\t.css(\"opacity\", \"0.80\")";
$script['view'][] = "\t\t\t.css(\"-ms-filter\", \"progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)\")";
$script['view'][] = "\t\t\t.css(\"filter\", \"alpha(opacity = 80)\")";
$script['view'][] = "\t\t\t.css(\"display\", \"none\")";
$script['view'][] = "\t\t\t.appendTo(outerDiv);";
$script['view'][] = "\t});";
$script['view'][] = "\n</script>";
$script['view'][] = "\n<div id=\"installer-import\" class=\"clearfix\">";
$script['view'][] = "<form enctype=\"multipart/form-data\" action=\"<?php echo JRoute::_('index.php?option=com_###-#-#-component###&view=###-#-#-view###');?>\" method=\"post\" name=\"adminForm\" id=\"adminForm\" class=\"form-horizontal form-validate\">";
$script['view'][] = "\n\t<?php if (!empty( \$this->sidebar)) : ?>";
$script['view'][] = "\t\t<div id=\"j-sidebar-container\" class=\"span2\">";
$script['view'][] = "\t\t\t<?php echo \$this->sidebar; ?>";
$script['view'][] = "\t\t</div>";
$script['view'][] = "\t\t<div id=\"j-main-container\" class=\"span10\">";
$script['view'][] = "\t<?php else : ?>";
$script['view'][] = "\t\t<div id=\"j-main-container\">";
$script['view'][] = "\t<?php endif;?>";
$script['view'][] = "\n<?php if (\$this->hasPackage && ###-#-#-Component###Helper::checkArray(\$this->headerList) && ###-#-#-Component###Helper::checkArray(\$this->headers)) : ?>";
$script['view'][] = "<fieldset class=\"uploadform\">";
$script['view'][] = "<legend><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_LINK_FILE_TO_TABLE_COLUMNS'); ?></legend>";
$script['view'][] = "<div class=\"control-group\">";
$script['view'][] = "<label class=\"control-label\" ><h4><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_TABLE_COLUMNS'); ?></h4></label>";
$script['view'][] = "<div class=\"controls\">";
$script['view'][] = "<label class=\"control-label\" ><h4><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FILE_COLUMNS'); ?></h4></label>";
$script['view'][] = "</div>";
$script['view'][] = "</div>";
$script['view'][] = "<?php foreach(\$this->headerList as \$name => \$title): ?>";
$script['view'][] = "<div class=\"control-group\">";
$script['view'][] = "<label for=\"<?php echo \$name; ?>\" class=\"control-label\" ><?php echo \$title; ?></label>";
$script['view'][] = "<div class=\"controls\">";
$script['view'][] = "<select name=\"<?php echo \$name; ?>\" id=\"vdm_<?php echo \$name; ?>\" required class=\"required input_box\" >";
$script['view'][] = "<option value=\"\"><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_PLEASE_SELECT_COLUMN'); ?></option>";
$script['view'][] = "<option value=\"IGNORE\"><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_IGNORE_COLUMN'); ?></option>";
$script['view'][] = "<?php foreach(\$this->headers as \$value => \$option): ?>";
$script['view'][] = "<?php \$selected = (strtolower(\$option) == strtolower (\$title) || strtolower(\$option) == strtolower(\$name))? 'selected=\"selected\"':''; ?>";
$script['view'][] = "<option value=\"<?php echo ###-#-#-Component###Helper::htmlEscape(\$value); ?>\" class=\"required\" <?php echo \$selected ?>><?php echo ###-#-#-Component###Helper::htmlEscape(\$option); ?></option>";
$script['view'][] = "<?php endforeach; ?>";
$script['view'][] = "</select>";
$script['view'][] = "</div>";
$script['view'][] = "</div>";
$script['view'][] = "<?php endforeach; ?>";
$script['view'][] = "<div class=\"form-actions\">";
$script['view'][] = "<input class=\"btn btn-primary\" type=\"button\" value=\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_CONTINUE'); ?>\" onclick=\"Joomla.continueImport()\" />";
$script['view'][] = "</div>";
$script['view'][] = "</fieldset>";
$script['view'][] = "<input type=\"hidden\" name=\"gettype\" value=\"continue\" />";
$script['view'][] = "<?php else: ?>";
$script['view'][] = "\t\t<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'upload')); ?>";
$script['view'][] = "\n<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'upload', JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FROM_UPLOAD', true)); ?>";
$script['view'][] = "<fieldset class=\"uploadform\">";
$script['view'][] = "<legend><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_UPDATE_DATA'); ?></legend>";
$script['view'][] = "<div class=\"control-group\">";
$script['view'][] = "<label for=\"import_package\" class=\"control-label\"><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_SELECT_FILE'); ?></label>";
$script['view'][] = "<div class=\"controls\">";
$script['view'][] = "<input class=\"input_box\" id=\"import_package\" name=\"import_package\" type=\"file\" size=\"57\" />";
$script['view'][] = "</div>";
$script['view'][] = "</div>";
$script['view'][] = "<div class=\"form-actions\">";
$script['view'][] = "<input class=\"btn btn-primary\" type=\"button\" value=\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_UPLOAD_BOTTON'); ?>\" onclick=\"Joomla.submitbutton()\" />&nbsp;&nbsp;&nbsp;<small><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FORMATS_ACCEPTED'); ?> (.csv .xls .ods)</small>";
$script['view'][] = "</div>";
$script['view'][] = "</fieldset>";
$script['view'][] = "<?php echo JHtml::_('bootstrap.endTab'); ?>";
$script['view'][] = "\n<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'directory', JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FROM_DIRECTORY', true)); ?>";
$script['view'][] = "<fieldset class=\"uploadform\">";
$script['view'][] = "<legend><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_UPDATE_DATA'); ?></legend>";
$script['view'][] = "<div class=\"control-group\">";
$script['view'][] = "<label for=\"import_directory\" class=\"control-label\"><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_SELECT_FILE_DIRECTORY'); ?></label>";
$script['view'][] = "<div class=\"controls\">";
$script['view'][] = "<input type=\"text\" id=\"import_directory\" name=\"import_directory\" class=\"span5 input_box\" size=\"70\" value=\"<?php echo \$this->state->get('import.directory'); ?>\" />";
$script['view'][] = "</div>";
$script['view'][] = "</div>";
$script['view'][] = "<div class=\"form-actions\">";
$script['view'][] = "<input type=\"button\" class=\"btn btn-primary\" value=\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_GET_BOTTON'); ?>\" onclick=\"Joomla.submitbutton3()\" />&nbsp;&nbsp;&nbsp;<small><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FORMATS_ACCEPTED'); ?> (.csv .xls .ods)</small>";
$script['view'][] = "</div>";
$script['view'][] = "</fieldset>";
$script['view'][] = "<?php echo JHtml::_('bootstrap.endTab'); ?>";
$script['view'][] = "\n<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'url', JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FROM_URL', true)); ?>";
$script['view'][] = "<fieldset class=\"uploadform\">";
$script['view'][] = "<legend><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_UPDATE_DATA'); ?></legend>";
$script['view'][] = "<div class=\"control-group\">";
$script['view'][] = "<label for=\"import_url\" class=\"control-label\"><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_SELECT_FILE_URL'); ?></label>";
$script['view'][] = "<div class=\"controls\">";
$script['view'][] = "<input type=\"text\" id=\"import_url\" name=\"import_url\" class=\"span5 input_box\" size=\"70\" value=\"http://\" />";
$script['view'][] = "</div>";
$script['view'][] = "</div>";
$script['view'][] = "<div class=\"form-actions\">";
$script['view'][] = "<input type=\"button\" class=\"btn btn-primary\" value=\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_GET_BOTTON'); ?>\" onclick=\"Joomla.submitbutton4()\" />&nbsp;&nbsp;&nbsp;<small><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FORMATS_ACCEPTED'); ?> (.csv .xls .ods)</small>";
$script['view'][] = "</div>";
$script['view'][] = "</fieldset>";
$script['view'][] = "\n<?php echo JHtml::_('bootstrap.endTab'); ?>";
$script['view'][] = "\n<?php echo JHtml::_('bootstrap.endTabSet'); ?>";
$script['view'][] = "\t\t<input type=\"hidden\" name=\"gettype\" value=\"upload\" />";
$script['view'][] = "<?php endif; ?>";
$script['view'][] = "<input type=\"hidden\" name=\"task\" value=\"import.import\" />";
$script['view'][] = "<?php echo JHtml::_('form.token'); ?>";
$script['view'][] = "</form>";
$script['view'][] = "</div>";
}
// return the needed script
if (isset($script[$type]))
{
return str_replace('-#-#-', '', implode("\n",$script[$type]));
}
return false;
}
public function getFieldSelectOptions($id)
{
// Get a db connection.

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage compiler.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage component.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilder.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage components.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage custom_admin_view.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage custom_admin_views.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dynamic_get.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dynamic_gets.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage field.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fields.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage adminviews.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage articles.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customadminviews.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customfilelist.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customfolderlist.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage customgets.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dbtables.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage dynamicgets.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fields.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldsmulti.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtypes.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage maingets.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage siteviews.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippets.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtype.php
@ -112,7 +112,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return mixed An array of data items on success, false on failure.
*/
public function getVyvfields()
public function getVyyfields()
{
// Get the user object.
$user = JFactory::getUser();
@ -196,13 +196,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
foreach ($items as $nr => &$item)
{
// convert datatype
$item->datatype = $this->selectionTranslationVyvfields($item->datatype, 'datatype');
$item->datatype = $this->selectionTranslationVyyfields($item->datatype, 'datatype');
// convert indexes
$item->indexes = $this->selectionTranslationVyvfields($item->indexes, 'indexes');
$item->indexes = $this->selectionTranslationVyyfields($item->indexes, 'indexes');
// convert null_switch
$item->null_switch = $this->selectionTranslationVyvfields($item->null_switch, 'null_switch');
$item->null_switch = $this->selectionTranslationVyyfields($item->null_switch, 'null_switch');
// convert store
$item->store = $this->selectionTranslationVyvfields($item->store, 'store');
$item->store = $this->selectionTranslationVyyfields($item->store, 'store');
}
}
@ -216,7 +216,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin
*
* @return translatable string
*/
public function selectionTranslationVyvfields($value,$name)
public function selectionTranslationVyyfields($value,$name)
{
// Array of datatype language strings
if ($name == 'datatype')

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtypes.php

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage admin_view.js
@ -44,6 +44,9 @@ jform_vvvvvwyvww_required = false;
jform_vvvvvwzvwx_required = false;
jform_vvvvvxavwy_required = false;
jform_vvvvvxbvwz_required = false;
jform_vvvvvxfvxa_required = false;
jform_vvvvvxfvxb_required = false;
jform_vvvvvxfvxc_required = false;
// Initial Script
jQuery(document).ready(function()
@ -112,6 +115,12 @@ jQuery(document).ready(function()
var source_vvvvvxd = jQuery("#jform_source input[type='radio']:checked").val();
var add_sql_vvvvvxd = jQuery("#jform_add_sql input[type='radio']:checked").val();
vvvvvxd(source_vvvvvxd,add_sql_vvvvvxd);
var add_custom_import_vvvvvxf = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvvxf(add_custom_import_vvvvvxf);
var add_custom_import_vvvvvxg = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
vvvvvxg(add_custom_import_vvvvvxg);
});
// the vvvvvwi function
@ -750,6 +759,91 @@ function vvvvvxd(source_vvvvvxd,add_sql_vvvvvxd)
}
}
// the vvvvvxf function
function vvvvvxf(add_custom_import_vvvvvxf)
{
// set the function logic
if (add_custom_import_vvvvvxf == 1)
{
jQuery('#jform_html_import_view').closest('.control-group').show();
if (jform_vvvvvxfvxa_required)
{
updateFieldRequired('html_import_view',0);
jQuery('#jform_html_import_view').prop('required','required');
jQuery('#jform_html_import_view').attr('aria-required',true);
jQuery('#jform_html_import_view').addClass('required');
jform_vvvvvxfvxa_required = false;
}
jQuery('.note_advanced_import').closest('.control-group').show();
jQuery('#jform_php_import_save').closest('.control-group').show();
if (jform_vvvvvxfvxb_required)
{
updateFieldRequired('php_import_save',0);
jQuery('#jform_php_import_save').prop('required','required');
jQuery('#jform_php_import_save').attr('aria-required',true);
jQuery('#jform_php_import_save').addClass('required');
jform_vvvvvxfvxb_required = false;
}
jQuery('#jform_php_import_setdata').closest('.control-group').show();
if (jform_vvvvvxfvxc_required)
{
updateFieldRequired('php_import_setdata',0);
jQuery('#jform_php_import_setdata').prop('required','required');
jQuery('#jform_php_import_setdata').attr('aria-required',true);
jQuery('#jform_php_import_setdata').addClass('required');
jform_vvvvvxfvxc_required = false;
}
}
else
{
jQuery('#jform_html_import_view').closest('.control-group').hide();
if (!jform_vvvvvxfvxa_required)
{
updateFieldRequired('html_import_view',1);
jQuery('#jform_html_import_view').removeAttr('required');
jQuery('#jform_html_import_view').removeAttr('aria-required');
jQuery('#jform_html_import_view').removeClass('required');
jform_vvvvvxfvxa_required = true;
}
jQuery('.note_advanced_import').closest('.control-group').hide();
jQuery('#jform_php_import_save').closest('.control-group').hide();
if (!jform_vvvvvxfvxb_required)
{
updateFieldRequired('php_import_save',1);
jQuery('#jform_php_import_save').removeAttr('required');
jQuery('#jform_php_import_save').removeAttr('aria-required');
jQuery('#jform_php_import_save').removeClass('required');
jform_vvvvvxfvxb_required = true;
}
jQuery('#jform_php_import_setdata').closest('.control-group').hide();
if (!jform_vvvvvxfvxc_required)
{
updateFieldRequired('php_import_setdata',1);
jQuery('#jform_php_import_setdata').removeAttr('required');
jQuery('#jform_php_import_setdata').removeAttr('aria-required');
jQuery('#jform_php_import_setdata').removeClass('required');
jform_vvvvvxfvxc_required = true;
}
}
}
// the vvvvvxg function
function vvvvvxg(add_custom_import_vvvvvxg)
{
// set the function logic
if (add_custom_import_vvvvvxg == 0)
{
jQuery('.note_beginner_import').closest('.control-group').show();
}
else
{
jQuery('.note_beginner_import').closest('.control-group').hide();
}
}
// update required fields
function updateFieldRequired(name,status)
{
@ -836,4 +930,51 @@ function getTableColumns(tableName,fieldKey){
jQuery('textarea#jform_addtables_fields_sourcemap-'+fieldKey).val('');
}
})
}
function getImportScripts_server(typpe){
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getImportScripts&format=json";
if(token.length > 0 && typpe.length > 0){
var request = 'token='+token+'&type='+typpe;
}
return jQuery.ajax({
type: 'GET',
url: getUrl,
dataType: 'jsonp',
data: request,
jsonp: 'callback'
});
}
function getImportScripts(id){
if (1 == id) {
// get the current values
var current_setdata = jQuery('textarea#jform_php_import_setdata').val();
var current_save = jQuery('textarea#jform_php_import_save').val();
var current_view = jQuery('textarea#jform_html_import_view').val();
// set the setData method script
if(current_setdata.length == 0){
getImportScripts_server('setdata').done(function(result) {
if(result){
jQuery('textarea#jform_php_import_setdata').val(result);
}
});
}
// set the save method script
if(current_save.length == 0){
getImportScripts_server('save').done(function(result) {
if(result){
jQuery('textarea#jform_php_import_save').val(result);
}
});
}
// set the view script
if(current_view.length == 0){
getImportScripts_server('view').done(function(result) {
if(result){
jQuery('textarea#jform_html_import_view').val(result);
}
});
}
}
}

View File

@ -143,177 +143,6 @@
message="Error! Please add some short description here."
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_HINT"
/>
<!-- Php_allowedit Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_allowedit"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT_HINT"
required="true"
/>
<!-- Php_getitems Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_getitems"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_HINT"
required="true"
/>
<!-- Php_after_delete Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_after_delete"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE_HINT"
required="true"
/>
<!-- Ajax_input Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
name="ajax_input"
label="Ajax Input"
id="ajax_input"
class="ajax_inputs"
select="COM_COMPONENTBUILDER_ADMIN_VIEW_AJAX_INPUT_SELECT"
icon="list"
maximum="150">
<fields name="ajax_input_fields" label="">
<fieldset hidden="true" name="ajax_input_modal" repeat="true">
<!-- Value_name Field. Type: Text. (joomla) -->
<field
type="text"
name="value_name"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_VALUE_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_VALUE_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
filter="STRING"
message="Error! Please add value name here."
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_VALUE_NAME_HINT"
/>
<!-- Task_name Field. Type: Text. (joomla) -->
<field
type="text"
name="task_name"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_TASK_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_TASK_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
filter="WORD"
message="Error! Please add task name here."
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_TASK_NAME_HINT"
/>
<!-- Input_default Field. Type: Text. (joomla) -->
<field
type="text"
name="input_default"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_DEFAULT_LABEL"
size="40"
maxlength="150"
default="NULL"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_DEFAULT_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
filter="STRING"
message="Error! Please add default input value here."
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_DEFAULT_HINT"
/>
<!-- Input_filter Field. Type: List. (joomla) -->
<field
type="list"
name="input_filter"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_FILTER_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_FILTER_DESCRIPTION"
class="list_class"
multiple="false"
filter="WORD"
default="INT">
<!-- Option Set. -->
<option value="INT">
COM_COMPONENTBUILDER_ADMIN_VIEW_INT</option>
<option value="UINT">
COM_COMPONENTBUILDER_ADMIN_VIEW_UINT</option>
<option value="FLOAT">
COM_COMPONENTBUILDER_ADMIN_VIEW_FLOAT</option>
<option value="BOOLEAN">
COM_COMPONENTBUILDER_ADMIN_VIEW_BOOLEAN</option>
<option value="WORD">
COM_COMPONENTBUILDER_ADMIN_VIEW_WORD</option>
<option value="ALNUM">
COM_COMPONENTBUILDER_ADMIN_VIEW_ALNUM</option>
<option value="CMD">
COM_COMPONENTBUILDER_ADMIN_VIEW_CMD</option>
<option value="BASE64">
COM_COMPONENTBUILDER_ADMIN_VIEW_BASESIXTY_FOUR</option>
<option value="STRING">
COM_COMPONENTBUILDER_ADMIN_VIEW_STRING</option>
<option value="HTML">
COM_COMPONENTBUILDER_ADMIN_VIEW_HTML</option>
<option value="ARRAY">
COM_COMPONENTBUILDER_ADMIN_VIEW_ARRAY</option>
<option value="PATH">
COM_COMPONENTBUILDER_ADMIN_VIEW_PATH</option>
<option value="USERNAME">
COM_COMPONENTBUILDER_ADMIN_VIEW_USERNAME</option>
<option value="RAW">
COM_COMPONENTBUILDER_ADMIN_VIEW_RAW</option>
<option value="unknown">
COM_COMPONENTBUILDER_ADMIN_VIEW_UNKNOWN</option>
</field>
<!-- Method_name Field. Type: Text. (joomla) -->
<field
type="text"
name="method_name"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_METHOD_NAME_LABEL"
size="40"
maxlength="150"
default="getValueNow"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_METHOD_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
filter="WORD"
message="Error! Please add method name here."
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_METHOD_NAME_HINT"
/>
<!-- User_check Field. Type: Radio. (joomla) -->
<field
type="radio"
name="user_check"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_USER_CHECK_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_USER_CHECK_DESCRIPTION"
default="1">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
</field>
</fieldset>
</fields>
</field>
<!-- Type Field. Type: List. (joomla) -->
<field
type="list"
@ -329,17 +158,56 @@
<option value="2">
COM_COMPONENTBUILDER_ADMIN_VIEW_READONLY</option>
</field>
<!-- Php_save Field. Type: Textarea. (joomla) -->
<!-- Php_before_delete Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_save"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE_LABEL"
name="php_before_delete"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE_DESCRIPTION"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE_HINT"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_HINT"
required="true"
/>
<!-- Php_postsavehook Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_postsavehook"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK_HINT"
required="true"
/>
<!-- Sql Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="sql"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_SQL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_SQL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_SQL_HINT"
required="true"
/>
<!-- Php_getlistquery Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_getlistquery"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_HINT"
required="true"
/>
<!-- Description Field. Type: Textarea. (joomla) -->
@ -354,17 +222,17 @@
filter="HTML"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_DESCRIPTION_HINT"
/>
<!-- Php_batchmove Field. Type: Textarea. (joomla) -->
<!-- Php_batchcopy Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_batchmove"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE_LABEL"
name="php_batchcopy"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE_DESCRIPTION"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE_HINT"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY_HINT"
required="true"
/>
<!-- Icon Field. Type: Media. (joomla) -->
@ -375,19 +243,45 @@
description="COM_COMPONENTBUILDER_ADMIN_VIEW_ICON_DESCRIPTION"
directory=""
/>
<!-- Source Field. Type: Radio. (joomla) -->
<!-- Php_document Field. Type: Textarea. (joomla) -->
<field
type="radio"
name="source"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_SOURCE_LABEL"
class="btn-group btn-group-yesno"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_ADMIN_VIEW_TABLE</option>
<option value="2">
COM_COMPONENTBUILDER_ADMIN_VIEW_DUMP</option>
</field>
type="textarea"
name="php_document"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_HINT"
required="true"
/>
<!-- Php_getitem Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_getitem"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_HINT"
required="true"
/>
<!-- Html_import_view Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="html_import_view"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_HTML_IMPORT_VIEW_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_HTML_IMPORT_VIEW_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_HTML_IMPORT_VIEW_HINT"
required="true"
/>
<!-- Icon_add Field. Type: Media. (joomla) -->
<field
type="media"
@ -404,32 +298,32 @@
description="COM_COMPONENTBUILDER_ADMIN_VIEW_ICON_CATEGORY_DESCRIPTION"
directory=""
/>
<!-- Php_getitem Field. Type: Textarea. (joomla) -->
<!-- Php_getitems Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_getitem"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_LABEL"
name="php_getitems"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_DESCRIPTION"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_HINT"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_HINT"
required="true"
/>
<!-- Note_on_permissions Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_permissions" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_PERMISSIONS_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_PERMISSIONS_DESCRIPTION" heading="h4" class="alert alert-info note_on_permissions" close="true" />
<!-- Php_getlistquery Field. Type: Textarea. (joomla) -->
<!-- Php_save Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_getlistquery"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_LABEL"
name="php_save"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_DESCRIPTION"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_HINT"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE_HINT"
required="true"
/>
<!-- Addpermissions Field. Type: Repeatable. (joomla) -->
@ -504,32 +398,32 @@
</fieldset>
</fields>
</field>
<!-- Php_postsavehook Field. Type: Textarea. (joomla) -->
<!-- Php_allowedit Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_postsavehook"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK_LABEL"
name="php_allowedit"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK_DESCRIPTION"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK_HINT"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT_HINT"
required="true"
/>
<!-- Note_on_tabs Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_tabs" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_TABS_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_TABS_DESCRIPTION" heading="h4" class="alert alert-info note_on_tabs" close="true" />
<!-- Php_batchcopy Field. Type: Textarea. (joomla) -->
<!-- Php_batchmove Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_batchcopy"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY_LABEL"
name="php_batchmove"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY_DESCRIPTION"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY_HINT"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE_HINT"
required="true"
/>
<!-- Addtabs Field. Type: Repeatable. (joomla) -->
@ -563,61 +457,34 @@
</fieldset>
</fields>
</field>
<!-- Php_before_delete Field. Type: Textarea. (joomla) -->
<!-- Php_after_delete Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_before_delete"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_LABEL"
name="php_after_delete"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_DESCRIPTION"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_HINT"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE_HINT"
required="true"
/>
<!-- Note_on_views Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_views" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_VIEWS_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_VIEWS_DESCRIPTION" heading="h4" class="alert alert-info note_on_views" close="true" />
<!-- Php_document Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_document"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_LABEL"
rows="17"
cols="5"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_HINT"
required="true"
/>
<!-- Add_php_ajax Field. Type: Radio. (joomla) -->
<!-- Source Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_ajax"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_AJAX_LABEL"
name="source"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_SOURCE_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
COM_COMPONENTBUILDER_ADMIN_VIEW_TABLE</option>
<option value="2">
COM_COMPONENTBUILDER_ADMIN_VIEW_DUMP</option>
</field>
<!-- Sql Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="sql"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_SQL_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_SQL_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_SQL_HINT"
required="true"
/>
<!-- Addfields Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
@ -810,19 +677,21 @@
</fieldset>
</fields>
</field>
<!-- Note_advanced_import Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_advanced_import" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ADVANCED_IMPORT_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ADVANCED_IMPORT_DESCRIPTION" heading="h4" class="alert alert-success note_advanced_import" />
<!-- Note_on_conditions Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_on_conditions" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_CONDITIONS_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_CONDITIONS_DESCRIPTION" heading="h4" class="alert alert-info note_on_conditions" close="true" />
<!-- Php_ajaxmethod Field. Type: Textarea. (joomla) -->
<!-- Php_import_save Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_ajaxmethod"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD_LABEL"
name="php_import_save"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD_DESCRIPTION"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD_HINT"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE_HINT"
required="true"
/>
<!-- Addconditions Field. Type: Repeatable. (joomla) -->
@ -1416,6 +1285,195 @@
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FOOTER_HINT"
required="true"
/>
<!-- Note_beginner_import Field. Type: Note. A None Database Field. (joomla) -->
<field type="note" name="note_beginner_import" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_BEGINNER_IMPORT_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_BEGINNER_IMPORT_DESCRIPTION" heading="h4" class="alert alert-info note_beginner_import" />
<!-- Add_php_ajax Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_php_ajax"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_AJAX_LABEL"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
</field>
<!-- Add_custom_import Field. Type: Radio. (joomla) -->
<field
type="radio"
name="add_custom_import"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CUSTOM_IMPORT_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CUSTOM_IMPORT_DESCRIPTION"
class="btn-group btn-group-yesno"
default="0"
required="true">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
</field>
<!-- Php_ajaxmethod Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_ajaxmethod"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD_HINT"
required="true"
/>
<!-- Php_import_setdata Field. Type: Textarea. (joomla) -->
<field
type="textarea"
name="php_import_setdata"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SETDATA_LABEL"
rows="30"
cols="15"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SETDATA_DESCRIPTION"
class="text_area span12"
filter="raw"
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SETDATA_HINT"
required="true"
/>
<!-- Ajax_input Field. Type: Repeatable. (joomla) -->
<field
type="repeatable"
name="ajax_input"
label="Ajax Input"
id="ajax_input"
class="ajax_inputs"
select="COM_COMPONENTBUILDER_ADMIN_VIEW_AJAX_INPUT_SELECT"
icon="list"
maximum="150">
<fields name="ajax_input_fields" label="">
<fieldset hidden="true" name="ajax_input_modal" repeat="true">
<!-- Value_name Field. Type: Text. (joomla) -->
<field
type="text"
name="value_name"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_VALUE_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_VALUE_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
filter="STRING"
message="Error! Please add value name here."
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_VALUE_NAME_HINT"
/>
<!-- Task_name Field. Type: Text. (joomla) -->
<field
type="text"
name="task_name"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_TASK_NAME_LABEL"
size="40"
maxlength="150"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_TASK_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
filter="WORD"
message="Error! Please add task name here."
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_TASK_NAME_HINT"
/>
<!-- Input_default Field. Type: Text. (joomla) -->
<field
type="text"
name="input_default"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_DEFAULT_LABEL"
size="40"
maxlength="150"
default="NULL"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_DEFAULT_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
filter="STRING"
message="Error! Please add default input value here."
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_DEFAULT_HINT"
/>
<!-- Input_filter Field. Type: List. (joomla) -->
<field
type="list"
name="input_filter"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_FILTER_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_INPUT_FILTER_DESCRIPTION"
class="list_class"
multiple="false"
filter="WORD"
default="INT">
<!-- Option Set. -->
<option value="INT">
COM_COMPONENTBUILDER_ADMIN_VIEW_INT</option>
<option value="UINT">
COM_COMPONENTBUILDER_ADMIN_VIEW_UINT</option>
<option value="FLOAT">
COM_COMPONENTBUILDER_ADMIN_VIEW_FLOAT</option>
<option value="BOOLEAN">
COM_COMPONENTBUILDER_ADMIN_VIEW_BOOLEAN</option>
<option value="WORD">
COM_COMPONENTBUILDER_ADMIN_VIEW_WORD</option>
<option value="ALNUM">
COM_COMPONENTBUILDER_ADMIN_VIEW_ALNUM</option>
<option value="CMD">
COM_COMPONENTBUILDER_ADMIN_VIEW_CMD</option>
<option value="BASE64">
COM_COMPONENTBUILDER_ADMIN_VIEW_BASESIXTY_FOUR</option>
<option value="STRING">
COM_COMPONENTBUILDER_ADMIN_VIEW_STRING</option>
<option value="HTML">
COM_COMPONENTBUILDER_ADMIN_VIEW_HTML</option>
<option value="ARRAY">
COM_COMPONENTBUILDER_ADMIN_VIEW_ARRAY</option>
<option value="PATH">
COM_COMPONENTBUILDER_ADMIN_VIEW_PATH</option>
<option value="USERNAME">
COM_COMPONENTBUILDER_ADMIN_VIEW_USERNAME</option>
<option value="RAW">
COM_COMPONENTBUILDER_ADMIN_VIEW_RAW</option>
<option value="unknown">
COM_COMPONENTBUILDER_ADMIN_VIEW_UNKNOWN</option>
</field>
<!-- Method_name Field. Type: Text. (joomla) -->
<field
type="text"
name="method_name"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_METHOD_NAME_LABEL"
size="40"
maxlength="150"
default="getValueNow"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_METHOD_NAME_DESCRIPTION"
class="text_area"
readonly="false"
disabled="false"
filter="WORD"
message="Error! Please add method name here."
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_METHOD_NAME_HINT"
/>
<!-- User_check Field. Type: Radio. (joomla) -->
<field
type="radio"
name="user_check"
label="COM_COMPONENTBUILDER_ADMIN_VIEW_USER_CHECK_LABEL"
description="COM_COMPONENTBUILDER_ADMIN_VIEW_USER_CHECK_DESCRIPTION"
default="1">
<!-- Option Set. -->
<option value="1">
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
<option value="0">
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
</field>
</fieldset>
</fields>
</field>
<!-- Not_required Field. Type: Hidden. (joomla) -->
<field
type="hidden"

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage component.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage custom_admin_view.js
@ -24,255 +24,255 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvxfvxb_required = false;
jform_vvvvvxgvxc_required = false;
jform_vvvvvxhvxd_required = false;
jform_vvvvvxivxe_required = false;
jform_vvvvvxjvxf_required = false;
jform_vvvvvxkvxg_required = false;
jform_vvvvvxlvxh_required = false;
jform_vvvvvxhvxe_required = false;
jform_vvvvvxivxf_required = false;
jform_vvvvvxjvxg_required = false;
jform_vvvvvxkvxh_required = false;
jform_vvvvvxlvxi_required = false;
jform_vvvvvxmvxj_required = false;
jform_vvvvvxnvxk_required = false;
jform_vvvvvxnvxl_required = false;
jform_vvvvvxovxm_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvxf = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxf(add_php_view_vvvvvxf);
var add_php_view_vvvvvxh = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxh(add_php_view_vvvvvxh);
var add_php_jview_display_vvvvvxg = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvxg(add_php_jview_display_vvvvvxg);
var add_php_jview_display_vvvvvxi = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvxi(add_php_jview_display_vvvvvxi);
var add_php_jview_vvvvvxh = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvxh(add_php_jview_vvvvvxh);
var add_php_jview_vvvvvxj = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvxj(add_php_jview_vvvvvxj);
var add_php_document_vvvvvxi = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvxi(add_php_document_vvvvvxi);
var add_php_document_vvvvvxk = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvxk(add_php_document_vvvvvxk);
var add_css_document_vvvvvxj = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvxj(add_css_document_vvvvvxj);
var add_css_document_vvvvvxl = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvxl(add_css_document_vvvvvxl);
var add_js_document_vvvvvxk = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvxk(add_js_document_vvvvvxk);
var add_js_document_vvvvvxm = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvxm(add_js_document_vvvvvxm);
var add_custom_button_vvvvvxl = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvxl(add_custom_button_vvvvvxl);
var add_custom_button_vvvvvxn = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvxn(add_custom_button_vvvvvxn);
var add_css_vvvvvxm = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvxm(add_css_vvvvvxm);
var add_css_vvvvvxo = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvxo(add_css_vvvvvxo);
});
// the vvvvvxf function
function vvvvvxf(add_php_view_vvvvvxf)
// the vvvvvxh function
function vvvvvxh(add_php_view_vvvvvxh)
{
// set the function logic
if (add_php_view_vvvvvxf == 1)
if (add_php_view_vvvvvxh == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvxfvxb_required)
if (jform_vvvvvxhvxe_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_vvvvvxfvxb_required = false;
jform_vvvvvxhvxe_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvxfvxb_required)
if (!jform_vvvvvxhvxe_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_vvvvvxfvxb_required = true;
jform_vvvvvxhvxe_required = true;
}
}
}
// the vvvvvxg function
function vvvvvxg(add_php_jview_display_vvvvvxg)
// the vvvvvxi function
function vvvvvxi(add_php_jview_display_vvvvvxi)
{
// set the function logic
if (add_php_jview_display_vvvvvxg == 1)
if (add_php_jview_display_vvvvvxi == 1)
{
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvxgvxc_required)
if (jform_vvvvvxivxf_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_vvvvvxgvxc_required = false;
jform_vvvvvxivxf_required = false;
}
}
else
{
jQuery('#jform_php_jview_display').closest('.control-group').hide();
if (!jform_vvvvvxgvxc_required)
if (!jform_vvvvvxivxf_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_vvvvvxgvxc_required = true;
jform_vvvvvxivxf_required = true;
}
}
}
// the vvvvvxh function
function vvvvvxh(add_php_jview_vvvvvxh)
// the vvvvvxj function
function vvvvvxj(add_php_jview_vvvvvxj)
{
// set the function logic
if (add_php_jview_vvvvvxh == 1)
if (add_php_jview_vvvvvxj == 1)
{
jQuery('#jform_php_jview').closest('.control-group').show();
if (jform_vvvvvxhvxd_required)
if (jform_vvvvvxjvxg_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_vvvvvxhvxd_required = false;
jform_vvvvvxjvxg_required = false;
}
}
else
{
jQuery('#jform_php_jview').closest('.control-group').hide();
if (!jform_vvvvvxhvxd_required)
if (!jform_vvvvvxjvxg_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_vvvvvxhvxd_required = true;
jform_vvvvvxjvxg_required = true;
}
}
}
// the vvvvvxi function
function vvvvvxi(add_php_document_vvvvvxi)
// the vvvvvxk function
function vvvvvxk(add_php_document_vvvvvxk)
{
// set the function logic
if (add_php_document_vvvvvxi == 1)
if (add_php_document_vvvvvxk == 1)
{
jQuery('#jform_php_document').closest('.control-group').show();
if (jform_vvvvvxivxe_required)
if (jform_vvvvvxkvxh_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_vvvvvxivxe_required = false;
jform_vvvvvxkvxh_required = false;
}
}
else
{
jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_vvvvvxivxe_required)
if (!jform_vvvvvxkvxh_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_vvvvvxivxe_required = true;
jform_vvvvvxkvxh_required = true;
}
}
}
// the vvvvvxj function
function vvvvvxj(add_css_document_vvvvvxj)
// the vvvvvxl function
function vvvvvxl(add_css_document_vvvvvxl)
{
// set the function logic
if (add_css_document_vvvvvxj == 1)
if (add_css_document_vvvvvxl == 1)
{
jQuery('#jform_css_document').closest('.control-group').show();
if (jform_vvvvvxjvxf_required)
if (jform_vvvvvxlvxi_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_vvvvvxjvxf_required = false;
jform_vvvvvxlvxi_required = false;
}
}
else
{
jQuery('#jform_css_document').closest('.control-group').hide();
if (!jform_vvvvvxjvxf_required)
if (!jform_vvvvvxlvxi_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_vvvvvxjvxf_required = true;
jform_vvvvvxlvxi_required = true;
}
}
}
// the vvvvvxk function
function vvvvvxk(add_js_document_vvvvvxk)
// the vvvvvxm function
function vvvvvxm(add_js_document_vvvvvxm)
{
// set the function logic
if (add_js_document_vvvvvxk == 1)
if (add_js_document_vvvvvxm == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
if (jform_vvvvvxkvxg_required)
if (jform_vvvvvxmvxj_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_vvvvvxkvxg_required = false;
jform_vvvvvxmvxj_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
if (!jform_vvvvvxkvxg_required)
if (!jform_vvvvvxmvxj_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_vvvvvxkvxg_required = true;
jform_vvvvvxmvxj_required = true;
}
}
}
// the vvvvvxl function
function vvvvvxl(add_custom_button_vvvvvxl)
// the vvvvvxn function
function vvvvvxn(add_custom_button_vvvvvxn)
{
// set the function logic
if (add_custom_button_vvvvvxl == 1)
if (add_custom_button_vvvvvxn == 1)
{
jQuery('#jform_custom_button').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
if (jform_vvvvvxlvxh_required)
if (jform_vvvvvxnvxk_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_vvvvvxlvxh_required = false;
jform_vvvvvxnvxk_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
if (jform_vvvvvxlvxi_required)
if (jform_vvvvvxnvxl_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_vvvvvxlvxi_required = false;
jform_vvvvvxnvxl_required = false;
}
}
@ -280,53 +280,53 @@ function vvvvvxl(add_custom_button_vvvvvxl)
{
jQuery('#jform_custom_button').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
if (!jform_vvvvvxlvxh_required)
if (!jform_vvvvvxnvxk_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_vvvvvxlvxh_required = true;
jform_vvvvvxnvxk_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
if (!jform_vvvvvxlvxi_required)
if (!jform_vvvvvxnvxl_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_vvvvvxlvxi_required = true;
jform_vvvvvxnvxl_required = true;
}
}
}
// the vvvvvxm function
function vvvvvxm(add_css_vvvvvxm)
// the vvvvvxo function
function vvvvvxo(add_css_vvvvvxo)
{
// set the function logic
if (add_css_vvvvvxm == 1)
if (add_css_vvvvvxo == 1)
{
jQuery('#jform_css').closest('.control-group').show();
if (jform_vvvvvxmvxj_required)
if (jform_vvvvvxovxm_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
jform_vvvvvxmvxj_required = false;
jform_vvvvvxovxm_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
if (!jform_vvvvvxmvxj_required)
if (!jform_vvvvvxovxm_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
jform_vvvvvxmvxj_required = true;
jform_vvvvvxovxm_required = true;
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage field.js
@ -24,202 +24,92 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvyuvyo_required = false;
jform_vvvvvyvvyp_required = false;
jform_vvvvvywvyq_required = false;
jform_vvvvvyzvyr_required = false;
jform_vvvvvzavys_required = false;
jform_vvvvvzbvyt_required = false;
jform_vvvvvzcvyu_required = false;
jform_vvvvvywvyr_required = false;
jform_vvvvvyxvys_required = false;
jform_vvvvvyyvyt_required = false;
jform_vvvvvzbvyu_required = false;
jform_vvvvvzcvyv_required = false;
jform_vvvvvzdvyw_required = false;
jform_vvvvvzevyx_required = false;
// Initial Script
jQuery(document).ready(function()
{
var datalenght_vvvvvyu = jQuery("#jform_datalenght").val();
vvvvvyu(datalenght_vvvvvyu);
var datalenght_vvvvvyw = jQuery("#jform_datalenght").val();
vvvvvyw(datalenght_vvvvvyw);
var datadefault_vvvvvyv = jQuery("#jform_datadefault").val();
vvvvvyv(datadefault_vvvvvyv);
var datadefault_vvvvvyx = jQuery("#jform_datadefault").val();
vvvvvyx(datadefault_vvvvvyx);
var datatype_vvvvvyw = jQuery("#jform_datatype").val();
vvvvvyw(datatype_vvvvvyw);
var datatype_vvvvvyy = jQuery("#jform_datatype").val();
vvvvvyy(datatype_vvvvvyy);
var store_vvvvvyx = jQuery("#jform_store").val();
var datatype_vvvvvyx = jQuery("#jform_datatype").val();
vvvvvyx(store_vvvvvyx,datatype_vvvvvyx);
var store_vvvvvyz = jQuery("#jform_store").val();
var datatype_vvvvvyz = jQuery("#jform_datatype").val();
vvvvvyz(store_vvvvvyz,datatype_vvvvvyz);
var add_css_view_vvvvvyz = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvvyz(add_css_view_vvvvvyz);
var add_css_view_vvvvvzb = jQuery("#jform_add_css_view input[type='radio']:checked").val();
vvvvvzb(add_css_view_vvvvvzb);
var add_css_views_vvvvvza = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvvza(add_css_views_vvvvvza);
var add_css_views_vvvvvzc = jQuery("#jform_add_css_views input[type='radio']:checked").val();
vvvvvzc(add_css_views_vvvvvzc);
var add_javascript_view_footer_vvvvvzb = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvvzb(add_javascript_view_footer_vvvvvzb);
var add_javascript_view_footer_vvvvvzd = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
vvvvvzd(add_javascript_view_footer_vvvvvzd);
var add_javascript_views_footer_vvvvvzc = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvvzc(add_javascript_views_footer_vvvvvzc);
var add_javascript_views_footer_vvvvvze = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
vvvvvze(add_javascript_views_footer_vvvvvze);
});
// the vvvvvyu function
function vvvvvyu(datalenght_vvvvvyu)
// the vvvvvyw function
function vvvvvyw(datalenght_vvvvvyw)
{
if (isSet(datalenght_vvvvvyu) && datalenght_vvvvvyu.constructor !== Array)
if (isSet(datalenght_vvvvvyw) && datalenght_vvvvvyw.constructor !== Array)
{
var temp_vvvvvyu = datalenght_vvvvvyu;
var datalenght_vvvvvyu = [];
datalenght_vvvvvyu.push(temp_vvvvvyu);
var temp_vvvvvyw = datalenght_vvvvvyw;
var datalenght_vvvvvyw = [];
datalenght_vvvvvyw.push(temp_vvvvvyw);
}
else if (!isSet(datalenght_vvvvvyu))
else if (!isSet(datalenght_vvvvvyw))
{
var datalenght_vvvvvyu = [];
var datalenght_vvvvvyw = [];
}
var datalenght = datalenght_vvvvvyu.some(datalenght_vvvvvyu_SomeFunc);
var datalenght = datalenght_vvvvvyw.some(datalenght_vvvvvyw_SomeFunc);
// set this function logic
if (datalenght)
{
jQuery('#jform_datalenght_other').closest('.control-group').show();
if (jform_vvvvvyuvyo_required)
if (jform_vvvvvywvyr_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_vvvvvyuvyo_required = false;
jform_vvvvvywvyr_required = false;
}
}
else
{
jQuery('#jform_datalenght_other').closest('.control-group').hide();
if (!jform_vvvvvyuvyo_required)
if (!jform_vvvvvywvyr_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_vvvvvyuvyo_required = true;
}
}
}
// the vvvvvyu Some function
function datalenght_vvvvvyu_SomeFunc(datalenght_vvvvvyu)
{
// set the function logic
if (datalenght_vvvvvyu == 'Other')
{
return true;
}
return false;
}
// the vvvvvyv function
function vvvvvyv(datadefault_vvvvvyv)
{
if (isSet(datadefault_vvvvvyv) && datadefault_vvvvvyv.constructor !== Array)
{
var temp_vvvvvyv = datadefault_vvvvvyv;
var datadefault_vvvvvyv = [];
datadefault_vvvvvyv.push(temp_vvvvvyv);
}
else if (!isSet(datadefault_vvvvvyv))
{
var datadefault_vvvvvyv = [];
}
var datadefault = datadefault_vvvvvyv.some(datadefault_vvvvvyv_SomeFunc);
// set this function logic
if (datadefault)
{
jQuery('#jform_datadefault_other').closest('.control-group').show();
if (jform_vvvvvyvvyp_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_vvvvvyvvyp_required = false;
}
}
else
{
jQuery('#jform_datadefault_other').closest('.control-group').hide();
if (!jform_vvvvvyvvyp_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_vvvvvyvvyp_required = true;
}
}
}
// the vvvvvyv Some function
function datadefault_vvvvvyv_SomeFunc(datadefault_vvvvvyv)
{
// set the function logic
if (datadefault_vvvvvyv == 'Other')
{
return true;
}
return false;
}
// the vvvvvyw function
function vvvvvyw(datatype_vvvvvyw)
{
if (isSet(datatype_vvvvvyw) && datatype_vvvvvyw.constructor !== Array)
{
var temp_vvvvvyw = datatype_vvvvvyw;
var datatype_vvvvvyw = [];
datatype_vvvvvyw.push(temp_vvvvvyw);
}
else if (!isSet(datatype_vvvvvyw))
{
var datatype_vvvvvyw = [];
}
var datatype = datatype_vvvvvyw.some(datatype_vvvvvyw_SomeFunc);
// set this function logic
if (datatype)
{
jQuery('#jform_store').closest('.control-group').show();
if (jform_vvvvvywvyq_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvvywvyq_required = false;
}
}
else
{
jQuery('#jform_store').closest('.control-group').hide();
if (!jform_vvvvvywvyq_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvvywvyq_required = true;
jform_vvvvvywvyr_required = true;
}
}
}
// the vvvvvyw Some function
function datatype_vvvvvyw_SomeFunc(datatype_vvvvvyw)
function datalenght_vvvvvyw_SomeFunc(datalenght_vvvvvyw)
{
// set the function logic
if (datatype_vvvvvyw == 'CHAR' || datatype_vvvvvyw == 'VARCHAR' || datatype_vvvvvyw == 'TEXT' || datatype_vvvvvyw == 'MEDIUMTEXT' || datatype_vvvvvyw == 'LONGTEXT')
if (datalenght_vvvvvyw == 'Other')
{
return true;
}
@ -227,31 +117,141 @@ function datatype_vvvvvyw_SomeFunc(datatype_vvvvvyw)
}
// the vvvvvyx function
function vvvvvyx(store_vvvvvyx,datatype_vvvvvyx)
function vvvvvyx(datadefault_vvvvvyx)
{
if (isSet(store_vvvvvyx) && store_vvvvvyx.constructor !== Array)
if (isSet(datadefault_vvvvvyx) && datadefault_vvvvvyx.constructor !== Array)
{
var temp_vvvvvyx = store_vvvvvyx;
var store_vvvvvyx = [];
store_vvvvvyx.push(temp_vvvvvyx);
var temp_vvvvvyx = datadefault_vvvvvyx;
var datadefault_vvvvvyx = [];
datadefault_vvvvvyx.push(temp_vvvvvyx);
}
else if (!isSet(store_vvvvvyx))
else if (!isSet(datadefault_vvvvvyx))
{
var store_vvvvvyx = [];
var datadefault_vvvvvyx = [];
}
var store = store_vvvvvyx.some(store_vvvvvyx_SomeFunc);
var datadefault = datadefault_vvvvvyx.some(datadefault_vvvvvyx_SomeFunc);
if (isSet(datatype_vvvvvyx) && datatype_vvvvvyx.constructor !== Array)
// set this function logic
if (datadefault)
{
var temp_vvvvvyx = datatype_vvvvvyx;
var datatype_vvvvvyx = [];
datatype_vvvvvyx.push(temp_vvvvvyx);
jQuery('#jform_datadefault_other').closest('.control-group').show();
if (jform_vvvvvyxvys_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_vvvvvyxvys_required = false;
}
}
else if (!isSet(datatype_vvvvvyx))
else
{
var datatype_vvvvvyx = [];
jQuery('#jform_datadefault_other').closest('.control-group').hide();
if (!jform_vvvvvyxvys_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_vvvvvyxvys_required = true;
}
}
var datatype = datatype_vvvvvyx.some(datatype_vvvvvyx_SomeFunc);
}
// the vvvvvyx Some function
function datadefault_vvvvvyx_SomeFunc(datadefault_vvvvvyx)
{
// set the function logic
if (datadefault_vvvvvyx == 'Other')
{
return true;
}
return false;
}
// the vvvvvyy function
function vvvvvyy(datatype_vvvvvyy)
{
if (isSet(datatype_vvvvvyy) && datatype_vvvvvyy.constructor !== Array)
{
var temp_vvvvvyy = datatype_vvvvvyy;
var datatype_vvvvvyy = [];
datatype_vvvvvyy.push(temp_vvvvvyy);
}
else if (!isSet(datatype_vvvvvyy))
{
var datatype_vvvvvyy = [];
}
var datatype = datatype_vvvvvyy.some(datatype_vvvvvyy_SomeFunc);
// set this function logic
if (datatype)
{
jQuery('#jform_store').closest('.control-group').show();
if (jform_vvvvvyyvyt_required)
{
updateFieldRequired('store',0);
jQuery('#jform_store').prop('required','required');
jQuery('#jform_store').attr('aria-required',true);
jQuery('#jform_store').addClass('required');
jform_vvvvvyyvyt_required = false;
}
}
else
{
jQuery('#jform_store').closest('.control-group').hide();
if (!jform_vvvvvyyvyt_required)
{
updateFieldRequired('store',1);
jQuery('#jform_store').removeAttr('required');
jQuery('#jform_store').removeAttr('aria-required');
jQuery('#jform_store').removeClass('required');
jform_vvvvvyyvyt_required = true;
}
}
}
// the vvvvvyy Some function
function datatype_vvvvvyy_SomeFunc(datatype_vvvvvyy)
{
// set the function logic
if (datatype_vvvvvyy == 'CHAR' || datatype_vvvvvyy == 'VARCHAR' || datatype_vvvvvyy == 'TEXT' || datatype_vvvvvyy == 'MEDIUMTEXT' || datatype_vvvvvyy == 'LONGTEXT')
{
return true;
}
return false;
}
// the vvvvvyz function
function vvvvvyz(store_vvvvvyz,datatype_vvvvvyz)
{
if (isSet(store_vvvvvyz) && store_vvvvvyz.constructor !== Array)
{
var temp_vvvvvyz = store_vvvvvyz;
var store_vvvvvyz = [];
store_vvvvvyz.push(temp_vvvvvyz);
}
else if (!isSet(store_vvvvvyz))
{
var store_vvvvvyz = [];
}
var store = store_vvvvvyz.some(store_vvvvvyz_SomeFunc);
if (isSet(datatype_vvvvvyz) && datatype_vvvvvyz.constructor !== Array)
{
var temp_vvvvvyz = datatype_vvvvvyz;
var datatype_vvvvvyz = [];
datatype_vvvvvyz.push(temp_vvvvvyz);
}
else if (!isSet(datatype_vvvvvyz))
{
var datatype_vvvvvyz = [];
}
var datatype = datatype_vvvvvyz.some(datatype_vvvvvyz_SomeFunc);
// set this function logic
@ -265,148 +265,148 @@ function vvvvvyx(store_vvvvvyx,datatype_vvvvvyx)
}
}
// the vvvvvyx Some function
function store_vvvvvyx_SomeFunc(store_vvvvvyx)
// the vvvvvyz Some function
function store_vvvvvyz_SomeFunc(store_vvvvvyz)
{
// set the function logic
if (store_vvvvvyx == 4)
if (store_vvvvvyz == 4)
{
return true;
}
return false;
}
// the vvvvvyx Some function
function datatype_vvvvvyx_SomeFunc(datatype_vvvvvyx)
// the vvvvvyz Some function
function datatype_vvvvvyz_SomeFunc(datatype_vvvvvyz)
{
// set the function logic
if (datatype_vvvvvyx == 'CHAR' || datatype_vvvvvyx == 'VARCHAR' || datatype_vvvvvyx == 'TEXT' || datatype_vvvvvyx == 'MEDIUMTEXT' || datatype_vvvvvyx == 'LONGTEXT')
if (datatype_vvvvvyz == 'CHAR' || datatype_vvvvvyz == 'VARCHAR' || datatype_vvvvvyz == 'TEXT' || datatype_vvvvvyz == 'MEDIUMTEXT' || datatype_vvvvvyz == 'LONGTEXT')
{
return true;
}
return false;
}
// the vvvvvyz function
function vvvvvyz(add_css_view_vvvvvyz)
// the vvvvvzb function
function vvvvvzb(add_css_view_vvvvvzb)
{
// set the function logic
if (add_css_view_vvvvvyz == 1)
if (add_css_view_vvvvvzb == 1)
{
jQuery('#jform_css_view').closest('.control-group').show();
if (jform_vvvvvyzvyr_required)
if (jform_vvvvvzbvyu_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_vvvvvyzvyr_required = false;
jform_vvvvvzbvyu_required = false;
}
}
else
{
jQuery('#jform_css_view').closest('.control-group').hide();
if (!jform_vvvvvyzvyr_required)
if (!jform_vvvvvzbvyu_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_vvvvvyzvyr_required = true;
jform_vvvvvzbvyu_required = true;
}
}
}
// the vvvvvza function
function vvvvvza(add_css_views_vvvvvza)
// the vvvvvzc function
function vvvvvzc(add_css_views_vvvvvzc)
{
// set the function logic
if (add_css_views_vvvvvza == 1)
if (add_css_views_vvvvvzc == 1)
{
jQuery('#jform_css_views').closest('.control-group').show();
if (jform_vvvvvzavys_required)
if (jform_vvvvvzcvyv_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_vvvvvzavys_required = false;
jform_vvvvvzcvyv_required = false;
}
}
else
{
jQuery('#jform_css_views').closest('.control-group').hide();
if (!jform_vvvvvzavys_required)
if (!jform_vvvvvzcvyv_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_vvvvvzavys_required = true;
jform_vvvvvzcvyv_required = true;
}
}
}
// the vvvvvzb function
function vvvvvzb(add_javascript_view_footer_vvvvvzb)
// the vvvvvzd function
function vvvvvzd(add_javascript_view_footer_vvvvvzd)
{
// set the function logic
if (add_javascript_view_footer_vvvvvzb == 1)
if (add_javascript_view_footer_vvvvvzd == 1)
{
jQuery('#jform_javascript_view_footer').closest('.control-group').show();
if (jform_vvvvvzbvyt_required)
if (jform_vvvvvzdvyw_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_vvvvvzbvyt_required = false;
jform_vvvvvzdvyw_required = false;
}
}
else
{
jQuery('#jform_javascript_view_footer').closest('.control-group').hide();
if (!jform_vvvvvzbvyt_required)
if (!jform_vvvvvzdvyw_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_vvvvvzbvyt_required = true;
jform_vvvvvzdvyw_required = true;
}
}
}
// the vvvvvzc function
function vvvvvzc(add_javascript_views_footer_vvvvvzc)
// the vvvvvze function
function vvvvvze(add_javascript_views_footer_vvvvvze)
{
// set the function logic
if (add_javascript_views_footer_vvvvvzc == 1)
if (add_javascript_views_footer_vvvvvze == 1)
{
jQuery('#jform_javascript_views_footer').closest('.control-group').show();
if (jform_vvvvvzcvyu_required)
if (jform_vvvvvzevyx_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_vvvvvzcvyu_required = false;
jform_vvvvvzevyx_required = false;
}
}
else
{
jQuery('#jform_javascript_views_footer').closest('.control-group').hide();
if (!jform_vvvvvzcvyu_required)
if (!jform_vvvvvzevyx_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_vvvvvzcvyu_required = true;
jform_vvvvvzevyx_required = true;
}
}
}

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage fieldtype.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage help_document.js
@ -24,38 +24,38 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvzfvyw_required = false;
jform_vvvvvzgvyx_required = false;
jform_vvvvvzhvyy_required = false;
jform_vvvvvzivyz_required = false;
jform_vvvvvzhvyz_required = false;
jform_vvvvvzivza_required = false;
jform_vvvvvzjvzb_required = false;
jform_vvvvvzkvzc_required = false;
// Initial Script
jQuery(document).ready(function()
{
var location_vvvvvzd = jQuery("#jform_location input[type='radio']:checked").val();
vvvvvzd(location_vvvvvzd);
var location_vvvvvzf = jQuery("#jform_location input[type='radio']:checked").val();
vvvvvzf(location_vvvvvzf);
var location_vvvvvze = jQuery("#jform_location input[type='radio']:checked").val();
vvvvvze(location_vvvvvze);
var type_vvvvvzf = jQuery("#jform_type").val();
vvvvvzf(type_vvvvvzf);
var type_vvvvvzg = jQuery("#jform_type").val();
vvvvvzg(type_vvvvvzg);
var location_vvvvvzg = jQuery("#jform_location input[type='radio']:checked").val();
vvvvvzg(location_vvvvvzg);
var type_vvvvvzh = jQuery("#jform_type").val();
vvvvvzh(type_vvvvvzh);
var target_vvvvvzi = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzi(target_vvvvvzi);
var type_vvvvvzi = jQuery("#jform_type").val();
vvvvvzi(type_vvvvvzi);
var type_vvvvvzj = jQuery("#jform_type").val();
vvvvvzj(type_vvvvvzj);
var target_vvvvvzk = jQuery("#jform_target input[type='radio']:checked").val();
vvvvvzk(target_vvvvvzk);
});
// the vvvvvzd function
function vvvvvzd(location_vvvvvzd)
// the vvvvvzf function
function vvvvvzf(location_vvvvvzf)
{
// set the function logic
if (location_vvvvvzd == 1)
if (location_vvvvvzf == 1)
{
jQuery('#jform_admin_view').closest('.control-group').show();
}
@ -65,11 +65,11 @@ function vvvvvzd(location_vvvvvzd)
}
}
// the vvvvvze function
function vvvvvze(location_vvvvvze)
// the vvvvvzg function
function vvvvvzg(location_vvvvvzg)
{
// set the function logic
if (location_vvvvvze == 2)
if (location_vvvvvzg == 2)
{
jQuery('#jform_site_view').closest('.control-group').show();
}
@ -79,116 +79,6 @@ function vvvvvze(location_vvvvvze)
}
}
// the vvvvvzf function
function vvvvvzf(type_vvvvvzf)
{
if (isSet(type_vvvvvzf) && type_vvvvvzf.constructor !== Array)
{
var temp_vvvvvzf = type_vvvvvzf;
var type_vvvvvzf = [];
type_vvvvvzf.push(temp_vvvvvzf);
}
else if (!isSet(type_vvvvvzf))
{
var type_vvvvvzf = [];
}
var type = type_vvvvvzf.some(type_vvvvvzf_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_url').closest('.control-group').show();
if (jform_vvvvvzfvyw_required)
{
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvvzfvyw_required = false;
}
}
else
{
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_vvvvvzfvyw_required)
{
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvvzfvyw_required = true;
}
}
}
// the vvvvvzf Some function
function type_vvvvvzf_SomeFunc(type_vvvvvzf)
{
// set the function logic
if (type_vvvvvzf == 3)
{
return true;
}
return false;
}
// the vvvvvzg function
function vvvvvzg(type_vvvvvzg)
{
if (isSet(type_vvvvvzg) && type_vvvvvzg.constructor !== Array)
{
var temp_vvvvvzg = type_vvvvvzg;
var type_vvvvvzg = [];
type_vvvvvzg.push(temp_vvvvvzg);
}
else if (!isSet(type_vvvvvzg))
{
var type_vvvvvzg = [];
}
var type = type_vvvvvzg.some(type_vvvvvzg_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
if (jform_vvvvvzgvyx_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_vvvvvzgvyx_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
if (!jform_vvvvvzgvyx_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_vvvvvzgvyx_required = true;
}
}
}
// the vvvvvzg Some function
function type_vvvvvzg_SomeFunc(type_vvvvvzg)
{
// set the function logic
if (type_vvvvvzg == 1)
{
return true;
}
return false;
}
// the vvvvvzh function
function vvvvvzh(type_vvvvvzh)
{
@ -208,27 +98,27 @@ function vvvvvzh(type_vvvvvzh)
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_vvvvvzhvyy_required)
jQuery('#jform_url').closest('.control-group').show();
if (jform_vvvvvzhvyz_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_vvvvvzhvyy_required = false;
updateFieldRequired('url',0);
jQuery('#jform_url').prop('required','required');
jQuery('#jform_url').attr('aria-required',true);
jQuery('#jform_url').addClass('required');
jform_vvvvvzhvyz_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_vvvvvzhvyy_required)
jQuery('#jform_url').closest('.control-group').hide();
if (!jform_vvvvvzhvyz_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_vvvvvzhvyy_required = true;
updateFieldRequired('url',1);
jQuery('#jform_url').removeAttr('required');
jQuery('#jform_url').removeAttr('aria-required');
jQuery('#jform_url').removeClass('required');
jform_vvvvvzhvyz_required = true;
}
}
}
@ -237,7 +127,7 @@ function vvvvvzh(type_vvvvvzh)
function type_vvvvvzh_SomeFunc(type_vvvvvzh)
{
// set the function logic
if (type_vvvvvzh == 2)
if (type_vvvvvzh == 3)
{
return true;
}
@ -245,32 +135,142 @@ function type_vvvvvzh_SomeFunc(type_vvvvvzh)
}
// the vvvvvzi function
function vvvvvzi(target_vvvvvzi)
function vvvvvzi(type_vvvvvzi)
{
if (isSet(type_vvvvvzi) && type_vvvvvzi.constructor !== Array)
{
var temp_vvvvvzi = type_vvvvvzi;
var type_vvvvvzi = [];
type_vvvvvzi.push(temp_vvvvvzi);
}
else if (!isSet(type_vvvvvzi))
{
var type_vvvvvzi = [];
}
var type = type_vvvvvzi.some(type_vvvvvzi_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_article').closest('.control-group').show();
if (jform_vvvvvzivza_required)
{
updateFieldRequired('article',0);
jQuery('#jform_article').prop('required','required');
jQuery('#jform_article').attr('aria-required',true);
jQuery('#jform_article').addClass('required');
jform_vvvvvzivza_required = false;
}
}
else
{
jQuery('#jform_article').closest('.control-group').hide();
if (!jform_vvvvvzivza_required)
{
updateFieldRequired('article',1);
jQuery('#jform_article').removeAttr('required');
jQuery('#jform_article').removeAttr('aria-required');
jQuery('#jform_article').removeClass('required');
jform_vvvvvzivza_required = true;
}
}
}
// the vvvvvzi Some function
function type_vvvvvzi_SomeFunc(type_vvvvvzi)
{
// set the function logic
if (target_vvvvvzi == 1)
if (type_vvvvvzi == 1)
{
return true;
}
return false;
}
// the vvvvvzj function
function vvvvvzj(type_vvvvvzj)
{
if (isSet(type_vvvvvzj) && type_vvvvvzj.constructor !== Array)
{
var temp_vvvvvzj = type_vvvvvzj;
var type_vvvvvzj = [];
type_vvvvvzj.push(temp_vvvvvzj);
}
else if (!isSet(type_vvvvvzj))
{
var type_vvvvvzj = [];
}
var type = type_vvvvvzj.some(type_vvvvvzj_SomeFunc);
// set this function logic
if (type)
{
jQuery('#jform_content-lbl').closest('.control-group').show();
if (jform_vvvvvzjvzb_required)
{
updateFieldRequired('content',0);
jQuery('#jform_content').prop('required','required');
jQuery('#jform_content').attr('aria-required',true);
jQuery('#jform_content').addClass('required');
jform_vvvvvzjvzb_required = false;
}
}
else
{
jQuery('#jform_content-lbl').closest('.control-group').hide();
if (!jform_vvvvvzjvzb_required)
{
updateFieldRequired('content',1);
jQuery('#jform_content').removeAttr('required');
jQuery('#jform_content').removeAttr('aria-required');
jQuery('#jform_content').removeClass('required');
jform_vvvvvzjvzb_required = true;
}
}
}
// the vvvvvzj Some function
function type_vvvvvzj_SomeFunc(type_vvvvvzj)
{
// set the function logic
if (type_vvvvvzj == 2)
{
return true;
}
return false;
}
// the vvvvvzk function
function vvvvvzk(target_vvvvvzk)
{
// set the function logic
if (target_vvvvvzk == 1)
{
jQuery('#jform_groups').closest('.control-group').show();
if (jform_vvvvvzivyz_required)
if (jform_vvvvvzkvzc_required)
{
updateFieldRequired('groups',0);
jQuery('#jform_groups').prop('required','required');
jQuery('#jform_groups').attr('aria-required',true);
jQuery('#jform_groups').addClass('required');
jform_vvvvvzivyz_required = false;
jform_vvvvvzkvzc_required = false;
}
}
else
{
jQuery('#jform_groups').closest('.control-group').hide();
if (!jform_vvvvvzivyz_required)
if (!jform_vvvvvzkvzc_required)
{
updateFieldRequired('groups',1);
jQuery('#jform_groups').removeAttr('required');
jQuery('#jform_groups').removeAttr('aria-required');
jQuery('#jform_groups').removeClass('required');
jform_vvvvvzivyz_required = true;
jform_vvvvvzkvzc_required = true;
}
}
}

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layout.js
@ -24,42 +24,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvxxvxv_required = false;
jform_vvvvvxzvxy_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvxx = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxx(add_php_view_vvvvvxx);
var add_php_view_vvvvvxz = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxz(add_php_view_vvvvvxz);
});
// the vvvvvxx function
function vvvvvxx(add_php_view_vvvvvxx)
// the vvvvvxz function
function vvvvvxz(add_php_view_vvvvvxz)
{
// set the function logic
if (add_php_view_vvvvvxx == 1)
if (add_php_view_vvvvvxz == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvxxvxv_required)
if (jform_vvvvvxzvxy_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_vvvvvxxvxv_required = false;
jform_vvvvvxzvxy_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvxxvxv_required)
if (!jform_vvvvvxzvxy_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_vvvvvxxvxv_required = true;
jform_vvvvvxzvxy_required = true;
}
}
}

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage site_view.js
@ -24,280 +24,280 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvxnvxk_required = false;
jform_vvvvvxovxl_required = false;
jform_vvvvvxpvxm_required = false;
jform_vvvvvxqvxn_required = false;
jform_vvvvvxrvxo_required = false;
jform_vvvvvxsvxp_required = false;
jform_vvvvvxtvxq_required = false;
jform_vvvvvxuvxr_required = false;
jform_vvvvvxvvxs_required = false;
jform_vvvvvxpvxn_required = false;
jform_vvvvvxqvxo_required = false;
jform_vvvvvxrvxp_required = false;
jform_vvvvvxsvxq_required = false;
jform_vvvvvxtvxr_required = false;
jform_vvvvvxuvxs_required = false;
jform_vvvvvxvvxt_required = false;
jform_vvvvvxwvxu_required = false;
jform_vvvvvxxvxv_required = false;
jform_vvvvvxxvxw_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvxn = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxn(add_php_view_vvvvvxn);
var add_php_view_vvvvvxp = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxp(add_php_view_vvvvvxp);
var add_php_jview_display_vvvvvxo = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvxo(add_php_jview_display_vvvvvxo);
var add_php_jview_display_vvvvvxq = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
vvvvvxq(add_php_jview_display_vvvvvxq);
var add_php_jview_vvvvvxp = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvxp(add_php_jview_vvvvvxp);
var add_php_jview_vvvvvxr = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
vvvvvxr(add_php_jview_vvvvvxr);
var add_php_document_vvvvvxq = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvxq(add_php_document_vvvvvxq);
var add_php_document_vvvvvxs = jQuery("#jform_add_php_document input[type='radio']:checked").val();
vvvvvxs(add_php_document_vvvvvxs);
var add_css_document_vvvvvxr = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvxr(add_css_document_vvvvvxr);
var add_css_document_vvvvvxt = jQuery("#jform_add_css_document input[type='radio']:checked").val();
vvvvvxt(add_css_document_vvvvvxt);
var add_js_document_vvvvvxs = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvxs(add_js_document_vvvvvxs);
var add_js_document_vvvvvxu = jQuery("#jform_add_js_document input[type='radio']:checked").val();
vvvvvxu(add_js_document_vvvvvxu);
var add_css_vvvvvxt = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvxt(add_css_vvvvvxt);
var add_css_vvvvvxv = jQuery("#jform_add_css input[type='radio']:checked").val();
vvvvvxv(add_css_vvvvvxv);
var add_php_ajax_vvvvvxu = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvxu(add_php_ajax_vvvvvxu);
var add_php_ajax_vvvvvxw = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
vvvvvxw(add_php_ajax_vvvvvxw);
var add_custom_button_vvvvvxv = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvxv(add_custom_button_vvvvvxv);
var add_custom_button_vvvvvxx = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
vvvvvxx(add_custom_button_vvvvvxx);
});
// the vvvvvxn function
function vvvvvxn(add_php_view_vvvvvxn)
// the vvvvvxp function
function vvvvvxp(add_php_view_vvvvvxp)
{
// set the function logic
if (add_php_view_vvvvvxn == 1)
if (add_php_view_vvvvvxp == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvxnvxk_required)
if (jform_vvvvvxpvxn_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_vvvvvxnvxk_required = false;
jform_vvvvvxpvxn_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvxnvxk_required)
if (!jform_vvvvvxpvxn_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_vvvvvxnvxk_required = true;
jform_vvvvvxpvxn_required = true;
}
}
}
// the vvvvvxo function
function vvvvvxo(add_php_jview_display_vvvvvxo)
// the vvvvvxq function
function vvvvvxq(add_php_jview_display_vvvvvxq)
{
// set the function logic
if (add_php_jview_display_vvvvvxo == 1)
if (add_php_jview_display_vvvvvxq == 1)
{
jQuery('#jform_php_jview_display').closest('.control-group').show();
if (jform_vvvvvxovxl_required)
if (jform_vvvvvxqvxo_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_vvvvvxovxl_required = false;
jform_vvvvvxqvxo_required = false;
}
}
else
{
jQuery('#jform_php_jview_display').closest('.control-group').hide();
if (!jform_vvvvvxovxl_required)
if (!jform_vvvvvxqvxo_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_vvvvvxovxl_required = true;
jform_vvvvvxqvxo_required = true;
}
}
}
// the vvvvvxp function
function vvvvvxp(add_php_jview_vvvvvxp)
// the vvvvvxr function
function vvvvvxr(add_php_jview_vvvvvxr)
{
// set the function logic
if (add_php_jview_vvvvvxp == 1)
if (add_php_jview_vvvvvxr == 1)
{
jQuery('#jform_php_jview').closest('.control-group').show();
if (jform_vvvvvxpvxm_required)
if (jform_vvvvvxrvxp_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_vvvvvxpvxm_required = false;
jform_vvvvvxrvxp_required = false;
}
}
else
{
jQuery('#jform_php_jview').closest('.control-group').hide();
if (!jform_vvvvvxpvxm_required)
if (!jform_vvvvvxrvxp_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_vvvvvxpvxm_required = true;
jform_vvvvvxrvxp_required = true;
}
}
}
// the vvvvvxq function
function vvvvvxq(add_php_document_vvvvvxq)
// the vvvvvxs function
function vvvvvxs(add_php_document_vvvvvxs)
{
// set the function logic
if (add_php_document_vvvvvxq == 1)
if (add_php_document_vvvvvxs == 1)
{
jQuery('#jform_php_document').closest('.control-group').show();
if (jform_vvvvvxqvxn_required)
if (jform_vvvvvxsvxq_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_vvvvvxqvxn_required = false;
jform_vvvvvxsvxq_required = false;
}
}
else
{
jQuery('#jform_php_document').closest('.control-group').hide();
if (!jform_vvvvvxqvxn_required)
if (!jform_vvvvvxsvxq_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_vvvvvxqvxn_required = true;
jform_vvvvvxsvxq_required = true;
}
}
}
// the vvvvvxr function
function vvvvvxr(add_css_document_vvvvvxr)
// the vvvvvxt function
function vvvvvxt(add_css_document_vvvvvxt)
{
// set the function logic
if (add_css_document_vvvvvxr == 1)
if (add_css_document_vvvvvxt == 1)
{
jQuery('#jform_css_document').closest('.control-group').show();
if (jform_vvvvvxrvxo_required)
if (jform_vvvvvxtvxr_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_vvvvvxrvxo_required = false;
jform_vvvvvxtvxr_required = false;
}
}
else
{
jQuery('#jform_css_document').closest('.control-group').hide();
if (!jform_vvvvvxrvxo_required)
if (!jform_vvvvvxtvxr_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_vvvvvxrvxo_required = true;
jform_vvvvvxtvxr_required = true;
}
}
}
// the vvvvvxs function
function vvvvvxs(add_js_document_vvvvvxs)
// the vvvvvxu function
function vvvvvxu(add_js_document_vvvvvxu)
{
// set the function logic
if (add_js_document_vvvvvxs == 1)
if (add_js_document_vvvvvxu == 1)
{
jQuery('#jform_js_document').closest('.control-group').show();
if (jform_vvvvvxsvxp_required)
if (jform_vvvvvxuvxs_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_vvvvvxsvxp_required = false;
jform_vvvvvxuvxs_required = false;
}
}
else
{
jQuery('#jform_js_document').closest('.control-group').hide();
if (!jform_vvvvvxsvxp_required)
if (!jform_vvvvvxuvxs_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_vvvvvxsvxp_required = true;
jform_vvvvvxuvxs_required = true;
}
}
}
// the vvvvvxt function
function vvvvvxt(add_css_vvvvvxt)
// the vvvvvxv function
function vvvvvxv(add_css_vvvvvxv)
{
// set the function logic
if (add_css_vvvvvxt == 1)
if (add_css_vvvvvxv == 1)
{
jQuery('#jform_css').closest('.control-group').show();
if (jform_vvvvvxtvxq_required)
if (jform_vvvvvxvvxt_required)
{
updateFieldRequired('css',0);
jQuery('#jform_css').prop('required','required');
jQuery('#jform_css').attr('aria-required',true);
jQuery('#jform_css').addClass('required');
jform_vvvvvxtvxq_required = false;
jform_vvvvvxvvxt_required = false;
}
}
else
{
jQuery('#jform_css').closest('.control-group').hide();
if (!jform_vvvvvxtvxq_required)
if (!jform_vvvvvxvvxt_required)
{
updateFieldRequired('css',1);
jQuery('#jform_css').removeAttr('required');
jQuery('#jform_css').removeAttr('aria-required');
jQuery('#jform_css').removeClass('required');
jform_vvvvvxtvxq_required = true;
jform_vvvvvxvvxt_required = true;
}
}
}
// the vvvvvxu function
function vvvvvxu(add_php_ajax_vvvvvxu)
// the vvvvvxw function
function vvvvvxw(add_php_ajax_vvvvvxw)
{
// set the function logic
if (add_php_ajax_vvvvvxu == 1)
if (add_php_ajax_vvvvvxw == 1)
{
jQuery('#jform_ajax_input').closest('.control-group').show();
jQuery('#jform_php_ajaxmethod').closest('.control-group').show();
if (jform_vvvvvxuvxr_required)
if (jform_vvvvvxwvxu_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_vvvvvxuvxr_required = false;
jform_vvvvvxwvxu_required = false;
}
}
@ -305,42 +305,42 @@ function vvvvvxu(add_php_ajax_vvvvvxu)
{
jQuery('#jform_ajax_input').closest('.control-group').hide();
jQuery('#jform_php_ajaxmethod').closest('.control-group').hide();
if (!jform_vvvvvxuvxr_required)
if (!jform_vvvvvxwvxu_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_vvvvvxuvxr_required = true;
jform_vvvvvxwvxu_required = true;
}
}
}
// the vvvvvxv function
function vvvvvxv(add_custom_button_vvvvvxv)
// the vvvvvxx function
function vvvvvxx(add_custom_button_vvvvvxx)
{
// set the function logic
if (add_custom_button_vvvvvxv == 1)
if (add_custom_button_vvvvvxx == 1)
{
jQuery('#jform_custom_button').closest('.control-group').show();
jQuery('#jform_php_controller').closest('.control-group').show();
if (jform_vvvvvxvvxs_required)
if (jform_vvvvvxxvxv_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_vvvvvxvvxs_required = false;
jform_vvvvvxxvxv_required = false;
}
jQuery('#jform_php_model').closest('.control-group').show();
if (jform_vvvvvxvvxt_required)
if (jform_vvvvvxxvxw_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_vvvvvxvvxt_required = false;
jform_vvvvvxxvxw_required = false;
}
}
@ -348,22 +348,22 @@ function vvvvvxv(add_custom_button_vvvvvxv)
{
jQuery('#jform_custom_button').closest('.control-group').hide();
jQuery('#jform_php_controller').closest('.control-group').hide();
if (!jform_vvvvvxvvxs_required)
if (!jform_vvvvvxxvxv_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_vvvvvxvvxs_required = true;
jform_vvvvvxxvxv_required = true;
}
jQuery('#jform_php_model').closest('.control-group').hide();
if (!jform_vvvvvxvvxt_required)
if (!jform_vvvvvxxvxw_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_vvvvvxvvxt_required = true;
jform_vvvvvxxvxw_required = true;
}
}
}

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippet.js

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage template.js
@ -24,42 +24,42 @@
/-----------------------------------------------------------------------------------------------------------------------------*/
// Some Global Values
jform_vvvvvxwvxu_required = false;
jform_vvvvvxyvxx_required = false;
// Initial Script
jQuery(document).ready(function()
{
var add_php_view_vvvvvxw = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxw(add_php_view_vvvvvxw);
var add_php_view_vvvvvxy = jQuery("#jform_add_php_view input[type='radio']:checked").val();
vvvvvxy(add_php_view_vvvvvxy);
});
// the vvvvvxw function
function vvvvvxw(add_php_view_vvvvvxw)
// the vvvvvxy function
function vvvvvxy(add_php_view_vvvvvxy)
{
// set the function logic
if (add_php_view_vvvvvxw == 1)
if (add_php_view_vvvvvxy == 1)
{
jQuery('#jform_php_view').closest('.control-group').show();
if (jform_vvvvvxwvxu_required)
if (jform_vvvvvxyvxx_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_vvvvvxwvxu_required = false;
jform_vvvvvxyvxx_required = false;
}
}
else
{
jQuery('#jform_php_view').closest('.control-group').hide();
if (!jform_vvvvvxwvxu_required)
if (!jform_vvvvvxyvxx_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_vvvvvxwvxu_required = true;
jform_vvvvvxyvxx_required = true;
}
}
}

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage help_document.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage help_documents.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage import.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layout.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage layouts.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage site_view.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage site_views.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippet.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage snippets.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage template.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.1.4
@build 2nd May, 2016
@version 2.1.5
@build 4th May, 2016
@created 30th April, 2015
@package Component Builder
@subpackage templates.php