Added the Feature to Combine/Join Values/Fields in the admin list view (called field relations) #293
@ -125,12 +125,12 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 22nd May, 2018
|
+ *Last Build*: 24th May, 2018
|
||||||
+ *Version*: 2.7.11
|
+ *Version*: 2.7.11
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **185406**
|
+ *Line count*: **185617**
|
||||||
+ *Field count*: **1052**
|
+ *Field count*: **1053**
|
||||||
+ *File count*: **1236**
|
+ *File count*: **1236**
|
||||||
+ *Folder count*: **197**
|
+ *Folder count*: **197**
|
||||||
|
|
||||||
|
@ -125,12 +125,12 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 22nd May, 2018
|
+ *Last Build*: 24th May, 2018
|
||||||
+ *Version*: 2.7.11
|
+ *Version*: 2.7.11
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **185406**
|
+ *Line count*: **185617**
|
||||||
+ *Field count*: **1052**
|
+ *Field count*: **1053**
|
||||||
+ *File count*: **1236**
|
+ *File count*: **1236**
|
||||||
+ *Folder count*: **197**
|
+ *Folder count*: **197**
|
||||||
|
|
||||||
|
@ -11,3 +11,6 @@
|
|||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
|
||||||
|
.codefield {
|
||||||
|
width: 500px;
|
||||||
|
}
|
||||||
|
@ -53,6 +53,7 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
|||||||
$this->registerTask('checkRuleName', 'ajax');
|
$this->registerTask('checkRuleName', 'ajax');
|
||||||
$this->registerTask('fieldOptions', 'ajax');
|
$this->registerTask('fieldOptions', 'ajax');
|
||||||
$this->registerTask('getFieldPropertyDesc', 'ajax');
|
$this->registerTask('getFieldPropertyDesc', 'ajax');
|
||||||
|
$this->registerTask('getCodeGlueOptions', 'ajax');
|
||||||
$this->registerTask('snippetDetails', 'ajax');
|
$this->registerTask('snippetDetails', 'ajax');
|
||||||
$this->registerTask('setSnippetGithub', 'ajax');
|
$this->registerTask('setSnippetGithub', 'ajax');
|
||||||
$this->registerTask('getSnippets', 'ajax');
|
$this->registerTask('getSnippets', 'ajax');
|
||||||
@ -1032,6 +1033,47 @@ class ComponentbuilderControllerAjax extends JControllerLegacy
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'getCodeGlueOptions':
|
||||||
|
try
|
||||||
|
{
|
||||||
|
$returnRaw = $jinput->get('raw', false, 'BOOLEAN');
|
||||||
|
$listfieldValue = $jinput->get('listfield', NULL, 'INT');
|
||||||
|
$joinfieldsValue = $jinput->get('joinfields', NULL, 'STRING');
|
||||||
|
$typeValue = $jinput->get('type', NULL, 'INT');
|
||||||
|
$areaValue = $jinput->get('area', NULL, 'INT');
|
||||||
|
if($listfieldValue && $joinfieldsValue && $typeValue && $areaValue && $user->id != 0)
|
||||||
|
{
|
||||||
|
$result = $this->getModel('ajax')->getCodeGlueOptions($listfieldValue, $joinfieldsValue, $typeValue, $areaValue);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result = false;
|
||||||
|
}
|
||||||
|
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||||
|
{
|
||||||
|
echo $callback . "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
elseif($returnRaw)
|
||||||
|
{
|
||||||
|
echo json_encode($result);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(Exception $e)
|
||||||
|
{
|
||||||
|
if($callback = $jinput->get('callback', null, 'CMD'))
|
||||||
|
{
|
||||||
|
echo $callback."(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'snippetDetails':
|
case 'snippetDetails':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -677,5 +677,4 @@ class Compiler extends Infusion
|
|||||||
|
|
||||||
// any help to improve this is welcome...
|
// any help to improve this is welcome...
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -487,6 +487,20 @@ class Get
|
|||||||
*/
|
*/
|
||||||
public $catOtherName = array();
|
public $catOtherName = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The field relations values
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
public $fieldRelations = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The list join fields
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
public $listJoinBuilder = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The linked admin view tabs
|
* The linked admin view tabs
|
||||||
*
|
*
|
||||||
@ -1340,18 +1354,21 @@ class Get
|
|||||||
'b.addfields',
|
'b.addfields',
|
||||||
'b.id',
|
'b.id',
|
||||||
'c.addconditions',
|
'c.addconditions',
|
||||||
'c.id'
|
'c.id',
|
||||||
|
'r.addrelations'
|
||||||
), array(
|
), array(
|
||||||
'addfields',
|
'addfields',
|
||||||
'addfields_id',
|
'addfields_id',
|
||||||
'addconditions',
|
'addconditions',
|
||||||
'addconditions_id'
|
'addconditions_id',
|
||||||
|
'addrelations'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$query->from('#__componentbuilder_admin_view AS a');
|
$query->from('#__componentbuilder_admin_view AS a');
|
||||||
$query->join('LEFT', $this->db->quoteName('#__componentbuilder_admin_fields', 'b') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('b.admin_view') . ')');
|
$query->join('LEFT', $this->db->quoteName('#__componentbuilder_admin_fields', 'b') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('b.admin_view') . ')');
|
||||||
$query->join('LEFT', $this->db->quoteName('#__componentbuilder_admin_fields_conditions', 'c') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('c.admin_view') . ')');
|
$query->join('LEFT', $this->db->quoteName('#__componentbuilder_admin_fields_conditions', 'c') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('c.admin_view') . ')');
|
||||||
|
$query->join('LEFT', $this->db->quoteName('#__componentbuilder_admin_fields_relations', 'r') . ' ON (' . $this->db->quoteName('a.id') . ' = ' . $this->db->quoteName('r.admin_view') . ')');
|
||||||
$query->where($this->db->quoteName('a.id') . ' = ' . (int) $id);
|
$query->where($this->db->quoteName('a.id') . ' = ' . (int) $id);
|
||||||
|
|
||||||
// Reset the query using our newly populated query object.
|
// Reset the query using our newly populated query object.
|
||||||
@ -1624,7 +1641,7 @@ class Get
|
|||||||
$conditionValue['match_type'] = $type;
|
$conditionValue['match_type'] = $type;
|
||||||
$conditionValue['match_xml'] = $fieldValue['settings']->xml;
|
$conditionValue['match_xml'] = $fieldValue['settings']->xml;
|
||||||
// if custom field load field being extended
|
// if custom field load field being extended
|
||||||
if (!ComponentbuilderHelper::typeField($type))
|
if (!ComponentbuilderHelper::fieldCheck($type))
|
||||||
{
|
{
|
||||||
$conditionValue['match_extends'] = ComponentbuilderHelper::getBetween($fieldValue['settings']->xml, 'extends="', '"');
|
$conditionValue['match_extends'] = ComponentbuilderHelper::getBetween($fieldValue['settings']->xml, 'extends="', '"');
|
||||||
}
|
}
|
||||||
@ -1642,6 +1659,35 @@ class Get
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($view->addconditions);
|
unset($view->addconditions);
|
||||||
|
|
||||||
|
// prep the buckets
|
||||||
|
$this->fieldRelations[$name_list] = array();
|
||||||
|
$this->listJoinBuilder[$name_list] = array();
|
||||||
|
// set the relations
|
||||||
|
$view->addrelations = (isset($view->addrelations) && ComponentbuilderHelper::checkJson($view->addrelations)) ? json_decode($view->addrelations, true) : null;
|
||||||
|
if (ComponentbuilderHelper::checkArray($view->addrelations))
|
||||||
|
{
|
||||||
|
foreach ($view->addrelations as $nr => $relationsValue)
|
||||||
|
{
|
||||||
|
// only add if list view field is selected and joind fields are set
|
||||||
|
if (isset($relationsValue['listfield']) &&
|
||||||
|
is_numeric($relationsValue['listfield']) &&
|
||||||
|
$relationsValue['listfield'] > 0 &&
|
||||||
|
isset($relationsValue['joinfields']) &&
|
||||||
|
ComponentbuilderHelper::checkArray($relationsValue['joinfields']))
|
||||||
|
{
|
||||||
|
// load the field relations
|
||||||
|
$this->fieldRelations[$name_list][(int) $relationsValue['listfield']] = $relationsValue;
|
||||||
|
// load the list joints
|
||||||
|
foreach ($relationsValue['joinfields'] as $join)
|
||||||
|
{
|
||||||
|
$this->listJoinBuilder[$name_list][(int) $join] = (int) $join;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
unset($view->addrelations);
|
||||||
|
|
||||||
// set linked views
|
// set linked views
|
||||||
$this->linkedAdminViews[$name_single] = null;
|
$this->linkedAdminViews[$name_single] = null;
|
||||||
$view->addlinked_views = (isset($view->addlinked_views) && ComponentbuilderHelper::checkJson($view->addlinked_views)) ? json_decode($view->addlinked_views, true) : null;
|
$view->addlinked_views = (isset($view->addlinked_views) && ComponentbuilderHelper::checkJson($view->addlinked_views)) ? json_decode($view->addlinked_views, true) : null;
|
||||||
|
@ -1075,7 +1075,7 @@ class Fields extends Structure
|
|||||||
// set the array of field names
|
// set the array of field names
|
||||||
$this->setFieldsNames($view_name_single, $fieldAttributes['name']);
|
$this->setFieldsNames($view_name_single, $fieldAttributes['name']);
|
||||||
|
|
||||||
if ($this->defaultField($typeName, 'option'))
|
if (ComponentbuilderHelper::fieldCheck($typeName, 'option'))
|
||||||
{
|
{
|
||||||
//reset options array
|
//reset options array
|
||||||
$optionArray = array();
|
$optionArray = array();
|
||||||
@ -1087,7 +1087,7 @@ class Fields extends Structure
|
|||||||
$this->setBuilders($langLabel, $langView, $view_name_single, $view_name_list, $name, $view, $field, $typeName, $multiple, false, $optionArray);
|
$this->setBuilders($langLabel, $langView, $view_name_single, $view_name_list, $name, $view, $field, $typeName, $multiple, false, $optionArray);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif ($this->defaultField($typeName, 'plain'))
|
elseif (ComponentbuilderHelper::fieldCheck($typeName, 'plain'))
|
||||||
{
|
{
|
||||||
if ($build)
|
if ($build)
|
||||||
{
|
{
|
||||||
@ -1097,7 +1097,7 @@ class Fields extends Structure
|
|||||||
// now add to the field set
|
// now add to the field set
|
||||||
$dynamicField = $this->setField('plain', $fieldAttributes, $name, $typeName, $langView, $view_name_single, $view_name_list, $placeholders, $optionArray);
|
$dynamicField = $this->setField('plain', $fieldAttributes, $name, $typeName, $langView, $view_name_single, $view_name_list, $placeholders, $optionArray);
|
||||||
}
|
}
|
||||||
elseif ($this->defaultField($typeName, 'spacer'))
|
elseif (ComponentbuilderHelper::fieldCheck($typeName, 'spacer'))
|
||||||
{
|
{
|
||||||
if ($build)
|
if ($build)
|
||||||
{
|
{
|
||||||
@ -1117,7 +1117,7 @@ class Fields extends Structure
|
|||||||
// now add to the field set
|
// now add to the field set
|
||||||
$dynamicField = $this->setField('spacer', $fieldAttributes, $name, $typeName, $langView, $view_name_single, $view_name_list, $placeholders, $optionArray);
|
$dynamicField = $this->setField('spacer', $fieldAttributes, $name, $typeName, $langView, $view_name_single, $view_name_list, $placeholders, $optionArray);
|
||||||
}
|
}
|
||||||
elseif ($this->defaultField($typeName, 'special'))
|
elseif (ComponentbuilderHelper::fieldCheck($typeName, 'special'))
|
||||||
{
|
{
|
||||||
// set the repeatable field or subform field
|
// set the repeatable field or subform field
|
||||||
if ($typeName === 'repeatable' || $typeName === 'subform')
|
if ($typeName === 'repeatable' || $typeName === 'subform')
|
||||||
@ -1378,12 +1378,12 @@ class Fields extends Structure
|
|||||||
{
|
{
|
||||||
//reset options array
|
//reset options array
|
||||||
$r_optionArray = array();
|
$r_optionArray = array();
|
||||||
if ($this->defaultField($r_typeName, 'option'))
|
if (ComponentbuilderHelper::fieldCheck($r_typeName, 'option'))
|
||||||
{
|
{
|
||||||
// now add to the field set
|
// now add to the field set
|
||||||
$field .= $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber);
|
$field .= $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber);
|
||||||
}
|
}
|
||||||
elseif ($this->defaultField($r_typeName, 'plain'))
|
elseif (ComponentbuilderHelper::fieldCheck($r_typeName, 'plain'))
|
||||||
{
|
{
|
||||||
// now add to the field set
|
// now add to the field set
|
||||||
$field .= $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber);
|
$field .= $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber);
|
||||||
@ -1465,12 +1465,12 @@ class Fields extends Structure
|
|||||||
{
|
{
|
||||||
//reset options array
|
//reset options array
|
||||||
$r_optionArray = array();
|
$r_optionArray = array();
|
||||||
if ($this->defaultField($r_typeName, 'option'))
|
if (ComponentbuilderHelper::fieldCheck($r_typeName, 'option'))
|
||||||
{
|
{
|
||||||
// now add to the field set
|
// now add to the field set
|
||||||
$field .= $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber);
|
$field .= $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber);
|
||||||
}
|
}
|
||||||
elseif ($this->defaultField($r_typeName, 'plain'))
|
elseif (ComponentbuilderHelper::fieldCheck($r_typeName, 'plain'))
|
||||||
{
|
{
|
||||||
// now add to the field set
|
// now add to the field set
|
||||||
$field .= $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber);
|
$field .= $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber);
|
||||||
@ -1715,12 +1715,12 @@ class Fields extends Structure
|
|||||||
{
|
{
|
||||||
//reset options array
|
//reset options array
|
||||||
$r_optionArray = array();
|
$r_optionArray = array();
|
||||||
if ($this->defaultField($r_typeName, 'option'))
|
if (ComponentbuilderHelper::fieldCheck($r_typeName, 'option'))
|
||||||
{
|
{
|
||||||
// now add to the field set
|
// now add to the field set
|
||||||
ComponentbuilderHelper::xmlAppend($fieldSetXML, $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray));
|
ComponentbuilderHelper::xmlAppend($fieldSetXML, $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray));
|
||||||
}
|
}
|
||||||
elseif ($this->defaultField($r_typeName, 'plain'))
|
elseif (ComponentbuilderHelper::fieldCheck($r_typeName, 'plain'))
|
||||||
{
|
{
|
||||||
// now add to the field set
|
// now add to the field set
|
||||||
ComponentbuilderHelper::xmlAppend($fieldSetXML, $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray));
|
ComponentbuilderHelper::xmlAppend($fieldSetXML, $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray));
|
||||||
@ -1812,12 +1812,12 @@ class Fields extends Structure
|
|||||||
{
|
{
|
||||||
//reset options array
|
//reset options array
|
||||||
$r_optionArray = array();
|
$r_optionArray = array();
|
||||||
if ($this->defaultField($r_typeName, 'option'))
|
if (ComponentbuilderHelper::fieldCheck($r_typeName, 'option'))
|
||||||
{
|
{
|
||||||
// now add to the field set
|
// now add to the field set
|
||||||
ComponentbuilderHelper::xmlAppend($form, $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray));
|
ComponentbuilderHelper::xmlAppend($form, $this->setField('option', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray));
|
||||||
}
|
}
|
||||||
elseif ($this->defaultField($r_typeName, 'plain'))
|
elseif (ComponentbuilderHelper::fieldCheck($r_typeName, 'plain'))
|
||||||
{
|
{
|
||||||
// now add to the field set
|
// now add to the field set
|
||||||
ComponentbuilderHelper::xmlAppend($form, $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray));
|
ComponentbuilderHelper::xmlAppend($form, $this->setField('plain', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray));
|
||||||
@ -2049,7 +2049,7 @@ class Fields extends Structure
|
|||||||
$fieldAttributes = array();
|
$fieldAttributes = array();
|
||||||
$setCustom = false;
|
$setCustom = false;
|
||||||
// setup joomla default fields
|
// setup joomla default fields
|
||||||
if (!$this->defaultField($typeName))
|
if (!ComponentbuilderHelper::fieldCheck($typeName))
|
||||||
{
|
{
|
||||||
$fieldAttributes['custom'] = array();
|
$fieldAttributes['custom'] = array();
|
||||||
$setCustom = true;
|
$setCustom = true;
|
||||||
@ -2399,6 +2399,10 @@ class Fields extends Structure
|
|||||||
$this->dbKeys[$view_name_single][] = $name;
|
$this->dbKeys[$view_name_single][] = $name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// set list switch
|
||||||
|
$listSwitch = (isset($field['list']) && $field['list'] == 1);
|
||||||
|
// set list join
|
||||||
|
$listJoin = (isset($this->listJoinBuilder[$view_name_list][(int) $field['field']]));
|
||||||
// add history to this view
|
// add history to this view
|
||||||
if (isset($view['history']) && $view['history'])
|
if (isset($view['history']) && $view['history'])
|
||||||
{
|
{
|
||||||
@ -2443,10 +2447,13 @@ class Fields extends Structure
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// build the list values
|
// build the list values
|
||||||
if ((isset($field['list']) && $field['list'] == 1) && $typeName != 'repeatable' && $typeName != 'subform')
|
if (($listSwitch || $listJoin) && $typeName != 'repeatable' && $typeName != 'subform')
|
||||||
{
|
{
|
||||||
// load to list builder
|
// load to list builder
|
||||||
|
if ($listSwitch)
|
||||||
|
{
|
||||||
$this->listBuilder[$view_name_list][] = array(
|
$this->listBuilder[$view_name_list][] = array(
|
||||||
|
'id' => (int) $field['field'],
|
||||||
'type' => $typeName,
|
'type' => $typeName,
|
||||||
'code' => $name,
|
'code' => $name,
|
||||||
'lang' => $listLangName,
|
'lang' => $listLangName,
|
||||||
@ -2457,9 +2464,28 @@ class Fields extends Structure
|
|||||||
'custom' => $custom,
|
'custom' => $custom,
|
||||||
'multiple' => $multiple,
|
'multiple' => $multiple,
|
||||||
'options' => $options);
|
'options' => $options);
|
||||||
|
}
|
||||||
|
// load the list join builder
|
||||||
|
elseif ($listJoin)
|
||||||
|
{
|
||||||
|
$this->listJoinBuilder[$view_name_list][(int) $field['field']] = array(
|
||||||
|
'type' => $typeName,
|
||||||
|
'code' => $name,
|
||||||
|
'lang' => $listLangName,
|
||||||
|
'title' => (isset($field['title']) && $field['title']) ? true : false,
|
||||||
|
'alias' => (isset($field['alias']) && $field['alias']) ? true : false,
|
||||||
|
'link' => (isset($field['link']) && $field['link']) ? true : false,
|
||||||
|
'sort' => (isset($field['sort']) && $field['sort']) ? true : false,
|
||||||
|
'custom' => $custom,
|
||||||
|
'multiple' => $multiple,
|
||||||
|
'options' => $options);
|
||||||
|
}
|
||||||
|
// build custom builder list
|
||||||
|
if ($listSwitch || $listJoin)
|
||||||
|
{
|
||||||
$this->customBuilderList[$view_name_list][] = $name;
|
$this->customBuilderList[$view_name_list][] = $name;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// set the hidden field of this view
|
// set the hidden field of this view
|
||||||
if ($typeName === 'hidden')
|
if ($typeName === 'hidden')
|
||||||
{
|
{
|
||||||
@ -2601,7 +2627,7 @@ class Fields extends Structure
|
|||||||
}
|
}
|
||||||
|
|
||||||
// load the json list display fix
|
// load the json list display fix
|
||||||
if ((isset($field['list']) && $field['list'] == 1) && $typeName != 'repeatable' && $typeName != 'subform')
|
if (($listSwitch || $listJoin) && $typeName != 'repeatable' && $typeName != 'subform')
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($options))
|
if (ComponentbuilderHelper::checkArray($options))
|
||||||
{
|
{
|
||||||
@ -2636,12 +2662,12 @@ class Fields extends Structure
|
|||||||
// check if field should be added to uikit
|
// check if field should be added to uikit
|
||||||
$this->buildSiteFieldData($view_name_single, $name, 'uikit', $typeName);
|
$this->buildSiteFieldData($view_name_single, $name, 'uikit', $typeName);
|
||||||
// load the selection translation fix
|
// load the selection translation fix
|
||||||
if (ComponentbuilderHelper::checkArray($options) && (isset($field['list']) && $field['list'] == 1) && $typeName != 'repeatable' && $typeName != 'subform')
|
if (ComponentbuilderHelper::checkArray($options) && ($listSwitch || $listJoin) && $typeName != 'repeatable' && $typeName != 'subform')
|
||||||
{
|
{
|
||||||
$this->selectionTranslationFixBuilder[$view_name_list][$name] = $options;
|
$this->selectionTranslationFixBuilder[$view_name_list][$name] = $options;
|
||||||
}
|
}
|
||||||
// build the sort values
|
// build the sort values
|
||||||
if ($dbSwitch && (isset($field['sort']) && $field['sort'] == 1) && (isset($field['list']) && $field['list'] == 1) && (!$multiple && $typeName != 'checkbox' && $typeName != 'checkboxes' && $typeName != 'repeatable' && $typeName != 'subform'))
|
if ($dbSwitch && (isset($field['sort']) && $field['sort'] == 1) && ($listSwitch || $listJoin) && (!$multiple && $typeName != 'checkbox' && $typeName != 'checkboxes' && $typeName != 'repeatable' && $typeName != 'subform'))
|
||||||
{
|
{
|
||||||
$this->sortBuilder[$view_name_list][] = array('type' => $typeName, 'code' => $name, 'lang' => $listLangName, 'custom' => $custom, 'options' => $options);
|
$this->sortBuilder[$view_name_list][] = array('type' => $typeName, 'code' => $name, 'lang' => $listLangName, 'custom' => $custom, 'options' => $options);
|
||||||
}
|
}
|
||||||
@ -2652,7 +2678,7 @@ class Fields extends Structure
|
|||||||
$this->searchBuilder[$view_name_list][] = array('type' => $typeName, 'code' => $name, 'custom' => $custom, 'list' => $_list);
|
$this->searchBuilder[$view_name_list][] = array('type' => $typeName, 'code' => $name, 'custom' => $custom, 'list' => $_list);
|
||||||
}
|
}
|
||||||
// build the filter values
|
// build the filter values
|
||||||
if ($dbSwitch && (isset($field['filter']) && $field['filter'] == 1) && (isset($field['list']) && $field['list'] == 1) && (!$multiple && $typeName != 'checkbox' && $typeName != 'checkboxes' && $typeName != 'repeatable' && $typeName != 'subform'))
|
if ($dbSwitch && (isset($field['filter']) && $field['filter'] == 1) && ($listSwitch || $listJoin) && (!$multiple && $typeName != 'checkbox' && $typeName != 'checkboxes' && $typeName != 'repeatable' && $typeName != 'subform'))
|
||||||
{
|
{
|
||||||
$this->filterBuilder[$view_name_list][] = array('type' => $typeName, 'code' => $name, 'lang' => $listLangName, 'database' => $view_name_single, 'function' => ComponentbuilderHelper::safeString($name, 'F'), 'custom' => $custom, 'options' => $options);
|
$this->filterBuilder[$view_name_list][] = array('type' => $typeName, 'code' => $name, 'lang' => $listLangName, 'database' => $view_name_single, 'function' => ComponentbuilderHelper::safeString($name, 'F'), 'custom' => $custom, 'options' => $options);
|
||||||
}
|
}
|
||||||
@ -2993,58 +3019,6 @@ class Fields extends Structure
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* default Fields
|
|
||||||
*
|
|
||||||
* @param string $type The field type
|
|
||||||
* @param boolean $option The field grouping
|
|
||||||
*
|
|
||||||
* @return boolean if the field was found
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public function defaultField($type, $option = 'default')
|
|
||||||
{
|
|
||||||
// list of default fields
|
|
||||||
// https://docs.joomla.org/Form_field
|
|
||||||
$defaults = array(
|
|
||||||
'default' => array(
|
|
||||||
'accesslevel', 'cachehandler', 'calendar', 'captcha', 'category', 'checkbox',
|
|
||||||
'checkboxes', 'color', 'combo', 'componentlayout', 'contentlanguage', 'editor',
|
|
||||||
'chromestyle', 'contenttype', 'databaseconnection', 'editors', 'email', 'file',
|
|
||||||
'filelist', 'folderlist', 'groupedlist', 'hidden', 'file', 'headertag', 'helpsite',
|
|
||||||
'imagelist', 'integer', 'language', 'list', 'media', 'menu', 'note', 'number', 'password',
|
|
||||||
'plugins', 'radio', 'repeatable', 'range', 'rules', 'subform', 'sessionhandler', 'spacer', 'sql', 'tag',
|
|
||||||
'tel', 'menuitem', 'meter', 'modulelayout', 'moduleorder', 'moduleposition', 'moduletag',
|
|
||||||
'templatestyle', 'text', 'textarea', 'timezone', 'url', 'user', 'usergroup'
|
|
||||||
),
|
|
||||||
'plain' => array(
|
|
||||||
'accesslevel', 'checkbox', 'cachehandler', 'calendar', 'category', 'chromestyle', 'color',
|
|
||||||
'contenttype', 'combo', 'componentlayout', 'databaseconnection', 'editor', 'editors',
|
|
||||||
'email', 'file', 'filelist', 'folderlist', 'headertag', 'helpsite',
|
|
||||||
'hidden', 'imagelist', 'integer', 'language', 'media', 'menu',
|
|
||||||
'menuitem', 'meter', 'modulelayout', 'moduleorder', 'moduletag', 'number', 'password', 'range', 'rules',
|
|
||||||
'sessionhandler', 'tag', 'tel', 'text', 'textarea',
|
|
||||||
'timezone', 'url', 'user', 'usergroup'
|
|
||||||
),
|
|
||||||
'spacer' => array(
|
|
||||||
'note', 'spacer'
|
|
||||||
),
|
|
||||||
'option' => array(
|
|
||||||
'plugins', 'checkboxes', 'contentlanguage', 'list', 'radio', 'sql'
|
|
||||||
),
|
|
||||||
'special' => array(
|
|
||||||
'contentlanguage', 'groupedlist', 'moduleposition', 'plugin',
|
|
||||||
'repeatable', 'templatestyle', 'subform'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
if (in_array($type, $defaults[$option]))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xmlPrettyPrint
|
* xmlPrettyPrint
|
||||||
*
|
*
|
||||||
|
@ -6327,6 +6327,7 @@ class Interpretation extends Fields
|
|||||||
$Helper = $this->fileContentStatic[$this->hhh . 'Component' . $this->hhh] . 'Helper';
|
$Helper = $this->fileContentStatic[$this->hhh . 'Component' . $this->hhh] . 'Helper';
|
||||||
// setup correct core target
|
// setup correct core target
|
||||||
$coreLoad = false;
|
$coreLoad = false;
|
||||||
|
$core = null;
|
||||||
if (isset($this->permissionCore[$viewName_single]))
|
if (isset($this->permissionCore[$viewName_single]))
|
||||||
{
|
{
|
||||||
$core = $this->permissionCore[$viewName_single];
|
$core = $this->permissionCore[$viewName_single];
|
||||||
@ -6409,200 +6410,45 @@ class Interpretation extends Fields
|
|||||||
// start adding the dynamic
|
// start adding the dynamic
|
||||||
foreach ($this->listBuilder[$viewName_list] as $item)
|
foreach ($this->listBuilder[$viewName_list] as $item)
|
||||||
{
|
{
|
||||||
|
// set some defaults
|
||||||
|
$customAdminViewButtons = '';
|
||||||
|
// set the item default class
|
||||||
|
$itemClass = 'hidden-phone';
|
||||||
|
// get list item code
|
||||||
|
$itemCode = $this->getListItemCode($item, $viewName_list, $doNotEscape);
|
||||||
|
// is this a linked item
|
||||||
|
if ($item['link'] || (ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] === 'user'))
|
||||||
|
{
|
||||||
|
// set some defaults
|
||||||
$checkoutTriger = false;
|
$checkoutTriger = false;
|
||||||
if (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && isset($item['custom']['table']) && ComponentbuilderHelper::checkString($item['custom']['table']))
|
// set the item default class
|
||||||
{
|
$itemClass = 'nowrap';
|
||||||
$item['id'] = $item['code'];
|
// get list item link
|
||||||
if (!$item['multiple'])
|
$itemLink = $this->getListItemLink($item, $checkoutTriger, $viewName_single, $viewName_list);
|
||||||
{
|
// get list item link autority
|
||||||
$item['code'] = $item['code'] . '_' . $item['custom']['text'];
|
$itemLinkAutority = $this->getListItemLinkAutority($item, $viewName_single, $viewName_list, $coreLoad, $core);
|
||||||
}
|
// set item row
|
||||||
}
|
$itemRow = $this->getListItemLinkRow($itemCode, $itemLink, $itemLinkAutority, $viewName_list, $checkoutTriger);
|
||||||
// check if translated value is used
|
|
||||||
if (isset($this->selectionTranslationFixBuilder[$viewName_list]) && ComponentbuilderHelper::checkArray($this->selectionTranslationFixBuilder[$viewName_list]) && array_key_exists($item['code'], $this->selectionTranslationFixBuilder[$viewName_list]))
|
|
||||||
{
|
|
||||||
$itemCode = '<?php echo JText:' . ':_($item->' . $item['code'] . '); ?>';
|
|
||||||
}
|
|
||||||
elseif (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['text'] === 'user')
|
|
||||||
{
|
|
||||||
$itemCode = '<?php echo JFactory::getUser((int)$item->' . $item['code'] . ')->name; ?>';
|
|
||||||
}
|
|
||||||
elseif ($doNotEscape)
|
|
||||||
{
|
|
||||||
if (in_array($item['code'], $this->doNotEscape[$viewName_list]))
|
|
||||||
{
|
|
||||||
$itemCode = '<?php echo $item->' . $item['code'] . '; ?>';
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$itemCode = '<?php echo $this->escape($item->' . $item['code'] . '); ?>';
|
// set item row
|
||||||
|
$itemRow = PHP_EOL . "\t\t\t<?php echo " . $itemCode . "; ?>";
|
||||||
}
|
}
|
||||||
}
|
// check if buttons was aready added
|
||||||
else
|
if ($firstTimeBeingAdded) // TODO we must improve this to allow more items to be targeted instead of just the first item :)
|
||||||
{
|
{
|
||||||
$itemCode = '<?php echo $this->escape($item->' . $item['code'] . '); ?>';
|
// get custom admin view buttons
|
||||||
}
|
$customAdminViewButtons = $this->getCustomAdminViewButtons($item, $viewName_single, $viewName_list, $coreLoad);
|
||||||
if ($item['link'])
|
// make sure the custom admin view buttons are only added once
|
||||||
{
|
|
||||||
// allways rest custom links
|
|
||||||
$customAdminView = '';
|
|
||||||
// if to be linked
|
|
||||||
if ($item['type'] === 'category' && !$item['title'])
|
|
||||||
{
|
|
||||||
$otherViews = $this->catCodeBuilder[$viewName_single]['views'];
|
|
||||||
// category and linked
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td class="' . $this->setListFieldClass($item['code'], $viewName_list, 'nowrap') . '">';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php if (\$this->user->authorise('core.edit', 'com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . "." . $otherViews . ".category.' . (int)\$item->" . $item['code'] . ")): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->' . $item['code'] . '; ?>&extension=com_' . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . '.' . $otherViews . '"><?php echo $this->escape($item->category_title); ?></a>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t<?php echo \$this->escape(\$item->category_title); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
elseif ($item['type'] === 'user' && !$item['title'])
|
|
||||||
{
|
|
||||||
// user and linked
|
|
||||||
$body .= PHP_EOL . "\t\t<?php \$" . $item['code'] . "User = JFactory::getUser(\$item->" . $item['code'] . "); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td class="' . $this->setListFieldClass($item['code'], $viewName_list, 'nowrap') . '">';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php if (\$this->user->authorise('core.edit', 'com_users')): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<a href="index.php?option=com_users&task=user.edit&id=<?php echo (int) $item->' . $item['code'] . ' ?>"><?php echo $' . $item['code'] . 'User->name; ?></a>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t<?php echo \$" . $item['code'] . "User->name; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$add = true;
|
|
||||||
if (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] != 'user' && !$item['title'])
|
|
||||||
{
|
|
||||||
// link to that item instead
|
|
||||||
$link = 'index.php?option=' . $item['custom']['component'] . '&view=' . $item['custom']['views'] . '&task=' . $item['custom']['view'] . '.edit&id=<?php echo $item->' . $item['id'] . '; ?>&ref=' . $viewName_list;
|
|
||||||
|
|
||||||
$coreLoadLink = false;
|
|
||||||
if (isset($this->permissionCore[$item['custom']['view']]))
|
|
||||||
{
|
|
||||||
$coreLink = $this->permissionCore[$item['custom']['view']];
|
|
||||||
$coreLoadLink = true;
|
|
||||||
}
|
|
||||||
// check if the item has permissions.
|
|
||||||
if ($coreLoadLink && (isset($coreLink['core.edit']) && isset($this->permissionBuilder[$coreLink['core.edit']])) && ComponentbuilderHelper::checkArray($this->permissionBuilder[$coreLink['core.edit']]) && in_array($item['custom']['view'], $this->permissionBuilder[$coreLink['core.edit']]))
|
|
||||||
{
|
|
||||||
$accessCheck = "\$this->user->authorise('" . $coreLink['core.edit'] . "', 'com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . "." . $item['custom']['view'] . ".' . (int)\$item->" . $item['id'] . ")";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$accessCheck = "\$this->user->authorise('core.edit', 'com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . "." . $item['custom']['view'] . ".' . (int)\$item->" . $item['id'] . ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] === 'user' && !$item['title'])
|
|
||||||
{
|
|
||||||
// user and linked
|
|
||||||
$body .= PHP_EOL . "\t\t<?php \$" . $item['id'] . " = JFactory::getUser(\$item->" . $item['id'] . "); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td class="' . $this->setListFieldClass($item['code'], $viewName_list, 'nowrap') . '">';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php if (\$this->user->authorise('core.edit', 'com_users')): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<a href="index.php?option=com_users&task=user.edit&id=<?php echo (int) $item->' . $item['id'] . ' ?>"><?php echo $' . $item['id'] . '->name; ?></a>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t<?php echo \$" . $item['id'] . "->name; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
|
|
||||||
$add = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// start building the links
|
|
||||||
$link = '<?php echo $edit; ?>&id=<?php echo $item->id; ?>';
|
|
||||||
// check if custom links should be added to this list views
|
|
||||||
if (isset($this->customAdminViewListLink[$viewName_list]) && ComponentbuilderHelper::checkArray($this->customAdminViewListLink[$viewName_list]) && $firstTimeBeingAdded)
|
|
||||||
{
|
|
||||||
// make sure the custom links are only added once
|
|
||||||
$firstTimeBeingAdded = false;
|
$firstTimeBeingAdded = false;
|
||||||
// start building the links
|
|
||||||
$customAdminView = PHP_EOL . "\t\t\t" . '<div class="btn-group">';
|
|
||||||
foreach ($this->customAdminViewListLink[$viewName_list] as $customLinkView)
|
|
||||||
{
|
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t<?php if (\$canDo->get('" . $customLinkView['link'] . ".access')): ?>";
|
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t\t" . '<a class="hasTooltip btn btn-mini" href="index.php?option=com_' . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . '&view=' . $customLinkView['link'] . '&id=<?php echo $item->id; ?>" title="<?php echo JText:' . ':_(' . "'COM_" . $this->fileContentStatic[$this->hhh . 'COMPONENT' . $this->hhh] . '_' . $customLinkView['NAME'] . "'" . '); ?>" ><span class="icon-' . $customLinkView['icon'] . '"></span></a>';
|
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t\t" . '<a class="hasTooltip btn btn-mini disabled" href="#" title="<?php echo JText:' . ':_(' . "'COM_" . $this->fileContentStatic[$this->hhh . 'COMPONENT' . $this->hhh] . '_' . $customLinkView['NAME'] . "'" . '); ?>"><span class="icon-' . $customLinkView['icon'] . '"></span></a>';
|
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
}
|
}
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t" . '</div>';
|
// add row to body
|
||||||
}
|
$body .= PHP_EOL . "\t\t<td class=\"" . $this->setListFieldClass($item['code'], $viewName_list, $itemClass) . "\">";
|
||||||
// check if the item has permissions.
|
$body .= $itemRow;
|
||||||
if ($coreLoad && isset($core['core.edit']) && isset($this->permissionBuilder['global'][$core['core.edit']]) && ComponentbuilderHelper::checkArray($this->permissionBuilder['global'][$core['core.edit']]) && in_array($viewName_single, $this->permissionBuilder['global'][$core['core.edit']]))
|
$body .= $customAdminViewButtons;
|
||||||
{
|
|
||||||
// set permissions.
|
|
||||||
$accessCheck = "\$canDo->get('" . $core['core.edit'] . "')";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// set permissions.
|
|
||||||
$accessCheck = "\$canDo->get('core.edit')";
|
|
||||||
}
|
|
||||||
// triger the checked out script to be added
|
|
||||||
$checkoutTriger = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($add)
|
|
||||||
{
|
|
||||||
// set as linked
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td class="' . $this->setListFieldClass($item['code'], $viewName_list, 'nowrap') . '">';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php if (" . $accessCheck . "): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<div class="name">' . PHP_EOL . "\t\t\t\t\t" . '<a href="' . $link . '">' . $itemCode . '</a>';
|
|
||||||
if ($checkoutTriger)
|
|
||||||
{
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t\t<?php if (\$item->checked_out): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t\t\t<?php echo JHtml::_('jgrid.checkedout', \$i, \$userChkOut->name, \$item->checked_out_time, '" . $viewName_list . ".', \$canCheckin); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t\t<?php endif; ?>";
|
|
||||||
}
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '</div>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<div class="name">' . $itemCode . '</div>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
$body .= $customAdminView;
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
$body .= PHP_EOL . "\t\t</td>";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ($item['type'] === 'category')
|
|
||||||
{
|
|
||||||
$body .= PHP_EOL . "\t\t<td class=\"" . $this->setListFieldClass($item['code'], $viewName_list, 'hidden-phone') . "\">";
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php echo \$this->escape(\$item->category_title); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
elseif (ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] === 'user')
|
|
||||||
{
|
|
||||||
// custom user and linked
|
|
||||||
$body .= PHP_EOL . "\t\t<?php \$" . $item['code'] . " = JFactory::getUser(\$item->" . $item['id'] . "); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td class="' . $this->setListFieldClass($item['code'], $viewName_list, 'nowrap hidden-phone') . '">';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php if (\$this->user->authorise('core.edit', 'com_users')): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<a href="index.php?option=com_users&task=user.edit&id=<?php echo (int) $item->' . $item['id'] . ' ?>"><?php echo $' . $item['code'] . '->name; ?></a>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t<?php echo \$" . $item['code'] . "->name; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
elseif ($item['type'] === 'user')
|
|
||||||
{
|
|
||||||
// user name only
|
|
||||||
$body .= PHP_EOL . "\t\t<?php \$" . $item['code'] . "User = JFactory::getUser(\$item->" . $item['code'] . "); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td class="' . $this->setListFieldClass($item['code'], $viewName_list, 'nowrap') . '">';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php echo \$" . $item['code'] . "User->name; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// normal not linked
|
|
||||||
$body .= PHP_EOL . "\t\t<td class=\"" . $this->setListFieldClass($item['code'], $viewName_list, 'hidden-phone') . "\">";
|
|
||||||
$body .= PHP_EOL . "\t\t\t" . $itemCode;
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// add the defaults
|
// add the defaults
|
||||||
if (!isset($this->fieldsNames[$viewName_single]['published']))
|
if (!isset($this->fieldsNames[$viewName_single]['published']))
|
||||||
{
|
{
|
||||||
@ -6644,6 +6490,192 @@ class Interpretation extends Fields
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function getListItemLinkRow($itemCode, $itemLink, $itemLinkAutority, $viewName_list, $checkoutTriger, $class = true)
|
||||||
|
{
|
||||||
|
// add class
|
||||||
|
$tab = '';
|
||||||
|
if ($class)
|
||||||
|
{
|
||||||
|
$link .= PHP_EOL . "\t\t\t" . '<div class="name">';
|
||||||
|
$tab = "\t";
|
||||||
|
}
|
||||||
|
// the link logic
|
||||||
|
$link .= PHP_EOL . $tab . "\t\t\t<?php if (" . $itemLinkAutority . "): ?>";
|
||||||
|
$link .= PHP_EOL . $tab . "\t\t\t\t" . '<a href="' . $itemLink . '"><?php echo ' . $itemCode . '; ?></a>';
|
||||||
|
if ($checkoutTriger)
|
||||||
|
{
|
||||||
|
$link .= PHP_EOL . $tab . "\t\t\t\t<?php if (\$item->checked_out): ?>";
|
||||||
|
$link .= PHP_EOL . $tab . "\t\t\t\t\t<?php echo JHtml::_('jgrid.checkedout', \$i, \$userChkOut->name, \$item->checked_out_time, '" . $viewName_list . ".', \$canCheckin); ?>";
|
||||||
|
$link .= PHP_EOL . $tab . "\t\t\t\t<?php endif; ?>";
|
||||||
|
}
|
||||||
|
$link .= PHP_EOL . $tab . "\t\t\t<?php else: ?>";
|
||||||
|
$link .= PHP_EOL . $tab . "\t\t\t\t<?php echo " . $itemCode . "; ?>";
|
||||||
|
$link .= PHP_EOL . $tab . "\t\t\t<?php endif; ?>";
|
||||||
|
// add class
|
||||||
|
if ($class)
|
||||||
|
{
|
||||||
|
$link .= PHP_EOL . "\t\t\t</div>";
|
||||||
|
}
|
||||||
|
// return the link logic
|
||||||
|
return $link;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function getCustomAdminViewButtons($viewName_list, $ref = '')
|
||||||
|
{
|
||||||
|
$customAdminViewButton = '';
|
||||||
|
// check if custom links should be added to this list views
|
||||||
|
if (isset($this->customAdminViewListLink[$viewName_list]) && ComponentbuilderHelper::checkArray($this->customAdminViewListLink[$viewName_list]))
|
||||||
|
{
|
||||||
|
// start building the links
|
||||||
|
$customAdminViewButton .= PHP_EOL . "\t\t\t" . '<div class="btn-group">';
|
||||||
|
foreach ($this->customAdminViewListLink[$viewName_list] as $customLinkView)
|
||||||
|
{
|
||||||
|
$customAdminViewButton .= PHP_EOL . "\t\t\t<?php if (\$canDo->get('" . $customLinkView['link'] . ".access')): ?>";
|
||||||
|
$customAdminViewButton .= PHP_EOL . "\t\t\t\t" . '<a class="hasTooltip btn btn-mini" href="index.php?option=com_' . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . '&view=' . $customLinkView['link'] . '&id=<?php echo $item->id; ?>' . $ref . '" title="<?php echo JText:' . ':_(' . "'COM_" . $this->fileContentStatic[$this->hhh . 'COMPONENT' . $this->hhh] . '_' . $customLinkView['NAME'] . "'" . '); ?>" ><span class="icon-' . $customLinkView['icon'] . '"></span></a>';
|
||||||
|
$customAdminViewButton .= PHP_EOL . "\t\t\t<?php else: ?>";
|
||||||
|
$customAdminViewButton .= PHP_EOL . "\t\t\t\t" . '<a class="hasTooltip btn btn-mini disabled" href="#" title="<?php echo JText:' . ':_(' . "'COM_" . $this->fileContentStatic[$this->hhh . 'COMPONENT' . $this->hhh] . '_' . $customLinkView['NAME'] . "'" . '); ?>"><span class="icon-' . $customLinkView['icon'] . '"></span></a>';
|
||||||
|
$customAdminViewButton .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
||||||
|
}
|
||||||
|
$customAdminViewButton .= PHP_EOL . "\t\t\t" . '</div>';
|
||||||
|
}
|
||||||
|
return $customAdminViewButton;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function getListItemCode(&$item, $viewName_list, $doNotEscape, $escape = '$this->escape')
|
||||||
|
{
|
||||||
|
// first update the code id needed
|
||||||
|
if (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && isset($item['custom']['table']) && ComponentbuilderHelper::checkString($item['custom']['table']))
|
||||||
|
{
|
||||||
|
$item['id_code'] = $item['code'];
|
||||||
|
if (!$item['multiple'])
|
||||||
|
{
|
||||||
|
$item['code'] = $item['code'] . '_' . $item['custom']['text'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// check if category
|
||||||
|
if ($item['type'] === 'category' && !$item['title'])
|
||||||
|
{
|
||||||
|
return $escape . '($item->category_title)';
|
||||||
|
}
|
||||||
|
// check if user
|
||||||
|
elseif ($item['type'] === 'user')
|
||||||
|
{
|
||||||
|
return 'JFactory::getUser((int)$item->' . $item['code'] . ')->name';
|
||||||
|
}
|
||||||
|
// check if custom user
|
||||||
|
elseif (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] === 'user' && isset($item['id_code']))
|
||||||
|
{
|
||||||
|
return 'JFactory::getUser((int)$item->' . $item['id_code'] . ')->name';
|
||||||
|
}
|
||||||
|
// check if translated value is used
|
||||||
|
elseif (isset($this->selectionTranslationFixBuilder[$viewName_list]) && ComponentbuilderHelper::checkArray($this->selectionTranslationFixBuilder[$viewName_list]) && array_key_exists($item['code'], $this->selectionTranslationFixBuilder[$viewName_list]))
|
||||||
|
{
|
||||||
|
return 'JText:' . ':_($item->' . $item['code'] . ')';
|
||||||
|
}
|
||||||
|
elseif (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['text'] === 'user')
|
||||||
|
{
|
||||||
|
return 'JFactory::getUser((int)$item->' . $item['code'] . ')->name';
|
||||||
|
}
|
||||||
|
elseif ($doNotEscape)
|
||||||
|
{
|
||||||
|
if (in_array($item['code'], $this->doNotEscape[$viewName_list]))
|
||||||
|
{
|
||||||
|
return '$item->' . $item['code'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// default
|
||||||
|
return $escape . '($item->' . $item['code'] . ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function getListItemLink($item, &$checkoutTriger, $viewName_single, $viewName_list, $ref = null)
|
||||||
|
{
|
||||||
|
// set referal if not set
|
||||||
|
$referal = '';
|
||||||
|
if (!$ref)
|
||||||
|
{
|
||||||
|
$ref = '&ref=' . $viewName_list;
|
||||||
|
}
|
||||||
|
// in linked tab/view so must add ref to default
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$referal = $ref;
|
||||||
|
}
|
||||||
|
// if to be linked
|
||||||
|
if ($item['type'] === 'category' && !$item['title'])
|
||||||
|
{
|
||||||
|
// get the other view
|
||||||
|
$otherViews = $this->catCodeBuilder[$viewName_single]['views'];
|
||||||
|
// return the link to category
|
||||||
|
return 'index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->' . $item['code'] . '; ?>&extension=com_' . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . '.' . $otherViews;
|
||||||
|
}
|
||||||
|
elseif ($item['type'] === 'user' && !$item['title'])
|
||||||
|
{
|
||||||
|
// return user link
|
||||||
|
return 'index.php?option=com_users&task=user.edit&id=<?php echo (int) $item->' . $item['code'] . ' ?>';
|
||||||
|
}
|
||||||
|
elseif (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] != 'user' && !$item['title'] && isset($item['id_code']))
|
||||||
|
{
|
||||||
|
// link to that linked item
|
||||||
|
return 'index.php?option=' . $item['custom']['component'] . '&view=' . $item['custom']['views'] . '&task=' . $item['custom']['view'] . '.edit&id=<?php echo $item->' . $item['id_code'] . '; ?>' . $ref;
|
||||||
|
}
|
||||||
|
elseif (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] === 'user' && !$item['title'] && isset($item['id_code']))
|
||||||
|
{
|
||||||
|
// return user link
|
||||||
|
return 'index.php?option=com_users&task=user.edit&id=<?php echo (int) $item->' . $item['id_code'] . ' ?>';
|
||||||
|
}
|
||||||
|
// make sure to triger the checkout
|
||||||
|
$checkoutTriger = true;
|
||||||
|
// basic default item link
|
||||||
|
return '<?php echo $edit; ?>&id=<?php echo $item->id; ?>'.$referal;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function getListItemLinkAutority($item, $viewName_single, $viewName_list, $coreLoad, $core, $user = '$this->user')
|
||||||
|
{
|
||||||
|
// if to be linked
|
||||||
|
if ($item['type'] === 'category' && !$item['title'])
|
||||||
|
{
|
||||||
|
// get the other view
|
||||||
|
$otherViews = $this->catCodeBuilder[$viewName_single]['views'];
|
||||||
|
// return the autority to category
|
||||||
|
return $user . "->authorise('core.edit', 'com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . "." . $otherViews . ".category.' . (int)\$item->" . $item['code'] . ")";
|
||||||
|
}
|
||||||
|
elseif ($item['type'] === 'user' && !$item['title'])
|
||||||
|
{
|
||||||
|
// return user autority
|
||||||
|
return $user . "->authorise('core.edit', 'com_users')";
|
||||||
|
}
|
||||||
|
elseif (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] != 'user' && !$item['title'] && isset($item['id_code']))
|
||||||
|
{
|
||||||
|
// link to that linked item
|
||||||
|
$coreLoadLink = false;
|
||||||
|
if (isset($this->permissionCore[$item['custom']['view']]))
|
||||||
|
{
|
||||||
|
$coreLink = $this->permissionCore[$item['custom']['view']];
|
||||||
|
$coreLoadLink = true;
|
||||||
|
}
|
||||||
|
// check if the item has permissions.
|
||||||
|
if ($coreLoadLink && (isset($coreLink['core.edit']) && isset($this->permissionBuilder[$coreLink['core.edit']])) && ComponentbuilderHelper::checkArray($this->permissionBuilder[$coreLink['core.edit']]) && in_array($item['custom']['view'], $this->permissionBuilder[$coreLink['core.edit']]))
|
||||||
|
{
|
||||||
|
return $user . "->authorise('" . $coreLink['core.edit'] . "', 'com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . "." . $item['custom']['view'] . ".' . (int)\$item->" . $item['id_code'] . ")";
|
||||||
|
}
|
||||||
|
// return default for this external item
|
||||||
|
return $user . "->authorise('core.edit', 'com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . "." . $item['custom']['view'] . ".' . (int)\$item->" . $item['id_code'] . ")";
|
||||||
|
}
|
||||||
|
elseif (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] === 'user' && !$item['title'] && isset($item['id_code']))
|
||||||
|
{
|
||||||
|
// return user link
|
||||||
|
return $user . "->authorise('core.edit', 'com_users')";
|
||||||
|
}
|
||||||
|
// check if the item has custom permissions.
|
||||||
|
elseif ($coreLoad && isset($core['core.edit']) && isset($this->permissionBuilder['global'][$core['core.edit']]) && ComponentbuilderHelper::checkArray($this->permissionBuilder['global'][$core['core.edit']]) && in_array($viewName_single, $this->permissionBuilder['global'][$core['core.edit']]))
|
||||||
|
{
|
||||||
|
// set permissions.
|
||||||
|
return "\$canDo->get('" . $core['core.edit'] . "')";
|
||||||
|
}
|
||||||
|
// set core permissions.
|
||||||
|
return "\$canDo->get('core.edit')";
|
||||||
|
}
|
||||||
|
|
||||||
protected function setListFieldClass($name, $listViewName, $default = '')
|
protected function setListFieldClass($name, $listViewName, $default = '')
|
||||||
{
|
{
|
||||||
return (isset($this->listFieldClass[$listViewName]) && isset($this->listFieldClass[$listViewName][$name])) ? $this->listFieldClass[$listViewName][$name] : $default;
|
return (isset($this->listFieldClass[$listViewName]) && isset($this->listFieldClass[$listViewName][$name])) ? $this->listFieldClass[$listViewName][$name] : $default;
|
||||||
@ -7548,6 +7580,7 @@ class Interpretation extends Fields
|
|||||||
$firstTimeBeingAdded = true;
|
$firstTimeBeingAdded = true;
|
||||||
// setup correct core target
|
// setup correct core target
|
||||||
$coreLoad = false;
|
$coreLoad = false;
|
||||||
|
$core = null;
|
||||||
if (isset($this->permissionCore[$viewName_single]))
|
if (isset($this->permissionCore[$viewName_single]))
|
||||||
{
|
{
|
||||||
$core = $this->permissionCore[$viewName_single];
|
$core = $this->permissionCore[$viewName_single];
|
||||||
@ -7572,212 +7605,44 @@ class Interpretation extends Fields
|
|||||||
// start adding the dynamic
|
// start adding the dynamic
|
||||||
foreach ($this->listBuilder[$viewName_list] as $item)
|
foreach ($this->listBuilder[$viewName_list] as $item)
|
||||||
{
|
{
|
||||||
$counter++;
|
// set the ref
|
||||||
|
$ref = '&ref=' . $refview . '&refid=<?php echo $id; ?>';
|
||||||
|
// set some defaults
|
||||||
|
$customAdminViewButtons = '';
|
||||||
|
// get list item code
|
||||||
|
$itemCode = $this->getListItemCode($item, $viewName_list, $doNotEscape, '$displayData->escape');
|
||||||
|
// is this a linked item
|
||||||
|
if (($item['link'] || (ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] === 'user')) && (!isset($item['custom']) || !isset($item['custom']['view']) || $refview !== $item['custom']['view']))
|
||||||
|
{
|
||||||
|
// set some defaults
|
||||||
$checkoutTriger = false;
|
$checkoutTriger = false;
|
||||||
if (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && isset($item['custom']['table']) && ComponentbuilderHelper::checkString($item['custom']['table']))
|
// get list item link
|
||||||
{
|
$itemLink = $this->getListItemLink($item, $checkoutTriger, $viewName_single, $viewName_list, $ref);
|
||||||
$item['id'] = $item['code'];
|
// get list item link autority
|
||||||
if (!$item['multiple'])
|
$itemLinkAutority = $this->getListItemLinkAutority($item, $viewName_single, $viewName_list, $coreLoad, $core, '$user');
|
||||||
{
|
// set item row
|
||||||
$item['code'] = $item['code'] . '_' . $item['custom']['text'];
|
$itemRow = $this->getListItemLinkRow($itemCode, $itemLink, $itemLinkAutority, $viewName_list, $checkoutTriger, false);
|
||||||
}
|
|
||||||
}
|
|
||||||
// check if translated vlaue is used
|
|
||||||
if (isset($this->selectionTranslationFixBuilder[$viewName_list]) && ComponentbuilderHelper::checkArray($this->selectionTranslationFixBuilder[$viewName_list]) && array_key_exists($item['code'], $this->selectionTranslationFixBuilder[$viewName_list]))
|
|
||||||
{
|
|
||||||
$itemCode = '<?php echo JText:' . ':_($item->' . $item['code'] . '); ?>';
|
|
||||||
}
|
|
||||||
elseif ($item['custom']['text'] === 'user')
|
|
||||||
{
|
|
||||||
$itemCode = '<?php echo JFactory::getUser((int)$item->' . $item['code'] . ')->name; ?>';
|
|
||||||
}
|
|
||||||
elseif ($doNotEscape)
|
|
||||||
{
|
|
||||||
if (in_array($item['code'], $this->doNotEscape[$viewName_list]))
|
|
||||||
{
|
|
||||||
$itemCode = '<?php echo $item->' . $item['code'] . '; ?>';
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$itemCode = '<?php echo $displayData->escape($item->' . $item['code'] . '); ?>';
|
// set item row
|
||||||
|
$itemRow = PHP_EOL . "\t\t\t<?php echo " . $itemCode . "; ?>";
|
||||||
}
|
}
|
||||||
}
|
// check if buttons was aready added
|
||||||
else
|
if ($firstTimeBeingAdded) // TODO we must improve this to allow morw items to be targeted instead of just the first item :)
|
||||||
{
|
{
|
||||||
$itemCode = '<?php echo $displayData->escape($item->' . $item['code'] . '); ?>';
|
// get custom admin view buttons
|
||||||
}
|
$customAdminViewButtons = $this->getCustomAdminViewButtons($item, $viewName_single, $viewName_list, $coreLoad, $ref);
|
||||||
|
// make sure the custom admin view buttons are only added once
|
||||||
if ($item['link'])
|
|
||||||
{
|
|
||||||
// allways rest custom links
|
|
||||||
$customAdminView = '';
|
|
||||||
// if to be linked
|
|
||||||
if ($item['type'] === 'category' && !$item['title'])
|
|
||||||
{
|
|
||||||
$otherViews = $this->catCodeBuilder[$viewName_single]['views'];
|
|
||||||
// category and linked
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td class="' . $this->setListFieldClass($item['code'], $viewName_list, 'nowrap') . '">';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php if (\$user->authorise('core.edit', 'com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . "." . $otherViews . ".category.' . (int)\$item->" . $item['code'] . ")): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->' . $item['code'] . '; ?>&extension=com_' . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . '.' . $otherViews . '"><?php echo $displayData->escape($item->category_title); ?></a>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t<?php echo \$displayData->escape(\$item->category_title); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
elseif ($item['type'] === 'user' && !$item['title'])
|
|
||||||
{
|
|
||||||
// user and linked
|
|
||||||
$body .= PHP_EOL . "\t\t<?php \$" . $item['code'] . "User = JFactory::getUser(\$item->" . $item['code'] . "); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td class="' . $this->setListFieldClass($item['code'], $viewName_list, 'nowrap') . '">';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php if (\$user->authorise('core.edit', 'com_users')): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<a href="index.php?option=com_users&task=user.edit&id=<?php echo (int) $item->' . $item['code'] . ' ?>"><?php echo $' . $item['code'] . 'User->name; ?></a>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t<?php echo \$" . $item['code'] . "User->name; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$add = true;
|
|
||||||
if (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] != 'user' && !$item['title'])
|
|
||||||
{
|
|
||||||
if ($refview === $item['custom']['view'])
|
|
||||||
{
|
|
||||||
// normal not linked
|
|
||||||
$body .= PHP_EOL . "\t\t<td>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t" . $itemCode;
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
|
|
||||||
$add = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// link to that item instead
|
|
||||||
$link = 'index.php?option=' . $item['custom']['component'] . '&view=' . $item['custom']['views'] . '&task=' . $item['custom']['view'] . '.edit&id=<?php echo $item->' . $item['id'] . '; ?>&ref=' . $refview . '&refid=<?php echo $id; ?>';
|
|
||||||
|
|
||||||
|
|
||||||
$coreLoadLink = false;
|
|
||||||
if (isset($this->permissionCore[$item['custom']['view']]))
|
|
||||||
{
|
|
||||||
$coreLink = $this->permissionCore[$item['custom']['view']];
|
|
||||||
$coreLoadLink = true;
|
|
||||||
}
|
|
||||||
// check if the item has permissions.
|
|
||||||
if ($coreLoadLink && isset($this->permissionBuilder[$coreLink['core.edit']]) && ComponentbuilderHelper::checkArray($this->permissionBuilder[$coreLink['core.edit']]) && in_array($item['custom']['view'], $this->permissionBuilder[$coreLink['core.edit']]))
|
|
||||||
{
|
|
||||||
$accessCheck = "\$user->authorise('" . $coreLink['core.edit'] . "', 'com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . "." . $item['custom']['view'] . ".' . (int)\$item->" . $item['id'] . ")";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$accessCheck = "\$user->authorise('core.edit', 'com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . "." . $item['custom']['view'] . ".' . (int)\$item->" . $item['id'] . ")";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif (isset($item['custom']) && ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] === 'user' && !$item['title'])
|
|
||||||
{
|
|
||||||
// user and linked
|
|
||||||
$body .= PHP_EOL . "\t\t<?php \$_" . $item['id'] . " = JFactory::getUser(\$item->" . $item['id'] . "); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td class="' . $this->setListFieldClass($item['code'], $viewName_list, 'nowrap') . '">';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php if (\$user->authorise('core.edit', 'com_users')): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<a href="index.php?option=com_users&task=user.edit&id=<?php echo (int) $item->' . $item['id'] . ' ?>"><?php echo $_' . $item['id'] . '->name; ?></a>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t<?php echo \$_" . $item['id'] . "->name; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
|
|
||||||
$add = false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$link = '<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=' . $refview . '&refid=<?php echo $id; ?>';
|
|
||||||
// check if custom links should be added to this list views
|
|
||||||
if (isset($this->customAdminViewListLink[$viewName_list]) && ComponentbuilderHelper::checkArray($this->customAdminViewListLink[$viewName_list]) && $firstTimeBeingAdded)
|
|
||||||
{
|
|
||||||
// make sure the custom links are only added once
|
|
||||||
$firstTimeBeingAdded = false;
|
$firstTimeBeingAdded = false;
|
||||||
// start building the links
|
|
||||||
$customAdminView = PHP_EOL . "\t\t\t" . '<div class="btn-group">';
|
|
||||||
foreach ($this->customAdminViewListLink[$viewName_list] as $customLinkView)
|
|
||||||
{
|
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t<?php if (\$canDo->get('" . $customLinkView['link'] . ".access')): ?>";
|
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t\t" . '<a class="hasTooltip btn btn-mini" href="index.php?option=com_' . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . '&view=' . $customLinkView['link'] . '&id=<?php echo $item->id; ?>&ref=' . $refview . '&refid=<?php echo $id; ?>" title="<?php echo JText:' . ':_(' . "'COM_" . $this->fileContentStatic[$this->hhh . 'COMPONENT' . $this->hhh] . '_' . $customLinkView['NAME'] . "'" . '); ?>" ><span class="icon-' . $customLinkView['icon'] . '"></span></a>';
|
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t\t" . '<a class="hasTooltip btn btn-mini disabled" href="#" title="<?php echo JText:' . ':_(' . "'COM_" . $this->fileContentStatic[$this->hhh . 'COMPONENT' . $this->hhh] . '_' . $customLinkView['NAME'] . "'" . '); ?>"><span class="icon-' . $customLinkView['icon'] . '"></span></a>';
|
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
}
|
}
|
||||||
$customAdminView .= PHP_EOL . "\t\t\t" . '</div>';
|
// add row to body
|
||||||
}
|
|
||||||
// check if the item has permissions.
|
|
||||||
if ($coreLoad && isset($core['core.edit']) && isset($this->permissionBuilder['global'][$core['core.edit']]) && ComponentbuilderHelper::checkArray($this->permissionBuilder['global'][$core['core.edit']]) && in_array($viewName_single, $this->permissionBuilder['global'][$core['core.edit']]))
|
|
||||||
{
|
|
||||||
// set permissions.
|
|
||||||
$accessCheck = "\$canDo->get('" . $core['core.edit'] . "')";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// set permissions.
|
|
||||||
$accessCheck = "\$canDo->get('core.edit')";
|
|
||||||
}
|
|
||||||
// triger the checked out script to be added
|
|
||||||
$checkoutTriger = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($add)
|
|
||||||
{
|
|
||||||
// set as linked
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td class="' . $this->setListFieldClass($item['code'], $viewName_list, 'nowrap') . '">';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php if (" . $accessCheck . "): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<a href="' . $link . '">' . $itemCode . '</a>';
|
|
||||||
if ($checkoutTriger)
|
|
||||||
{
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t\t<?php if (\$item->checked_out): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t\t\t<?php echo JHtml::_('jgrid.checkedout', \$i, \$userChkOut->name, \$item->checked_out_time, '" . $viewName_list . ".', \$canCheckin); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t\t<?php endif; ?>";
|
|
||||||
}
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<div class="name">' . $itemCode . '</div>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
$body .= $customAdminView;
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ($item['type'] === 'category')
|
|
||||||
{
|
|
||||||
$body .= PHP_EOL . "\t\t<td>";
|
$body .= PHP_EOL . "\t\t<td>";
|
||||||
$body .= PHP_EOL . "\t\t\t<?php echo \$displayData->escape(\$item->category_title); ?>";
|
$body .= $itemRow;
|
||||||
|
$body .= $customAdminViewButtons;
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
$body .= PHP_EOL . "\t\t</td>";
|
||||||
}
|
// increment counter
|
||||||
elseif (ComponentbuilderHelper::checkArray($item['custom']) && $item['custom']['extends'] === 'user')
|
$counter++;
|
||||||
{
|
|
||||||
// custom user and linked
|
|
||||||
$body .= PHP_EOL . "\t\t<?php \$_" . $item['code'] . " = JFactory::getUser(\$item->" . $item['id'] . "); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php if (\$user->authorise('core.edit', 'com_users')): ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t" . '<a href="index.php?option=com_users&task=user.edit&id=<?php echo (int) $item->' . $item['id'] . ' ?>"><?php echo $_' . $item['code'] . '->name; ?></a>';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php else: ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t\t<?php echo \$_" . $item['code'] . "->name; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php endif; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
elseif ($item['type'] === 'user')
|
|
||||||
{
|
|
||||||
// user name only
|
|
||||||
$body .= PHP_EOL . "\t\t<?php \$" . $item['code'] . "User = JFactory::getUser(\$item->" . $item['code'] . "); ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t" . '<td class="' . $this->setListFieldClass($item['code'], $viewName_list, 'nowrap') . '">';
|
|
||||||
$body .= PHP_EOL . "\t\t\t<?php echo \$" . $item['code'] . "User->name; ?>";
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// normal not linked
|
|
||||||
$body .= PHP_EOL . "\t\t<td>";
|
|
||||||
$body .= PHP_EOL . "\t\t\t" . $itemCode;
|
|
||||||
$body .= PHP_EOL . "\t\t</td>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$counter = $counter + 2;
|
$counter = $counter + 2;
|
||||||
$data_value = (3 == $this->footableVersion) ? 'data-sort-value' : 'data-value';
|
$data_value = (3 == $this->footableVersion) ? 'data-sort-value' : 'data-value';
|
||||||
@ -9303,7 +9168,7 @@ class Interpretation extends Fields
|
|||||||
}
|
}
|
||||||
// set target type
|
// set target type
|
||||||
$targetTypeSufix = "";
|
$targetTypeSufix = "";
|
||||||
if ($this->defaultField($target['type'], 'spacer'))
|
if (ComponentbuilderHelper::fieldCheck($target['type'], 'spacer'))
|
||||||
{
|
{
|
||||||
// target a class if this is a note or spacer
|
// target a class if this is a note or spacer
|
||||||
$targetType = ".";
|
$targetType = ".";
|
||||||
@ -9369,7 +9234,7 @@ class Interpretation extends Fields
|
|||||||
{
|
{
|
||||||
case 1: // Is
|
case 1: // Is
|
||||||
// only 4 list/radio/checkboxes
|
// only 4 list/radio/checkboxes
|
||||||
if (ComponentbuilderHelper::typeField($type, 'list') || ComponentbuilderHelper::typeField($type, 'dynamic') || !ComponentbuilderHelper::typeField($type))
|
if (ComponentbuilderHelper::fieldCheck($type, 'list') || ComponentbuilderHelper::fieldCheck($type, 'dynamic') || !ComponentbuilderHelper::fieldCheck($type))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($options))
|
if (ComponentbuilderHelper::checkArray($options))
|
||||||
{
|
{
|
||||||
@ -9400,7 +9265,7 @@ class Interpretation extends Fields
|
|||||||
break;
|
break;
|
||||||
case 2: // Is Not
|
case 2: // Is Not
|
||||||
// only 4 list/radio/checkboxes
|
// only 4 list/radio/checkboxes
|
||||||
if (ComponentbuilderHelper::typeField($type, 'list') || ComponentbuilderHelper::typeField($type, 'dynamic') || !ComponentbuilderHelper::typeField($type))
|
if (ComponentbuilderHelper::fieldCheck($type, 'list') || ComponentbuilderHelper::fieldCheck($type, 'dynamic') || !ComponentbuilderHelper::fieldCheck($type))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($options))
|
if (ComponentbuilderHelper::checkArray($options))
|
||||||
{
|
{
|
||||||
@ -9431,7 +9296,7 @@ class Interpretation extends Fields
|
|||||||
break;
|
break;
|
||||||
case 3: // Any Selection
|
case 3: // Any Selection
|
||||||
// only 4 list/radio/checkboxes/dynamic_list
|
// only 4 list/radio/checkboxes/dynamic_list
|
||||||
if (ComponentbuilderHelper::typeField($type, 'list') || ComponentbuilderHelper::typeField($type, 'dynamic') || !ComponentbuilderHelper::typeField($type))
|
if (ComponentbuilderHelper::fieldCheck($type, 'list') || ComponentbuilderHelper::fieldCheck($type, 'dynamic') || !ComponentbuilderHelper::fieldCheck($type))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($options))
|
if (ComponentbuilderHelper::checkArray($options))
|
||||||
{
|
{
|
||||||
@ -9469,21 +9334,21 @@ class Interpretation extends Fields
|
|||||||
break;
|
break;
|
||||||
case 4: // Active (not empty)
|
case 4: // Active (not empty)
|
||||||
// only 4 text_field
|
// only 4 text_field
|
||||||
if (ComponentbuilderHelper::typeField($type, 'text'))
|
if (ComponentbuilderHelper::fieldCheck($type, 'text'))
|
||||||
{
|
{
|
||||||
$string .= 'isSet(' . $value . ')';
|
$string .= 'isSet(' . $value . ')';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 5: // Unactive (empty)
|
case 5: // Unactive (empty)
|
||||||
// only 4 text_field
|
// only 4 text_field
|
||||||
if (ComponentbuilderHelper::typeField($type, 'text'))
|
if (ComponentbuilderHelper::fieldCheck($type, 'text'))
|
||||||
{
|
{
|
||||||
$string .= '!isSet(' . $value . ')';
|
$string .= '!isSet(' . $value . ')';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 6: // Key Word All (case-sensitive)
|
case 6: // Key Word All (case-sensitive)
|
||||||
// only 4 text_field
|
// only 4 text_field
|
||||||
if (ComponentbuilderHelper::typeField($type, 'text'))
|
if (ComponentbuilderHelper::fieldCheck($type, 'text'))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($options['keywords']))
|
if (ComponentbuilderHelper::checkArray($options['keywords']))
|
||||||
{
|
{
|
||||||
@ -9507,7 +9372,7 @@ class Interpretation extends Fields
|
|||||||
break;
|
break;
|
||||||
case 7: // Key Word Any (case-sensitive)
|
case 7: // Key Word Any (case-sensitive)
|
||||||
// only 4 text_field
|
// only 4 text_field
|
||||||
if (ComponentbuilderHelper::typeField($type, 'text'))
|
if (ComponentbuilderHelper::fieldCheck($type, 'text'))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($options['keywords']))
|
if (ComponentbuilderHelper::checkArray($options['keywords']))
|
||||||
{
|
{
|
||||||
@ -9531,7 +9396,7 @@ class Interpretation extends Fields
|
|||||||
break;
|
break;
|
||||||
case 8: // Key Word All (case-insensitive)
|
case 8: // Key Word All (case-insensitive)
|
||||||
// only 4 text_field
|
// only 4 text_field
|
||||||
if (ComponentbuilderHelper::typeField($type, 'text'))
|
if (ComponentbuilderHelper::fieldCheck($type, 'text'))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($options['keywords']))
|
if (ComponentbuilderHelper::checkArray($options['keywords']))
|
||||||
{
|
{
|
||||||
@ -9556,7 +9421,7 @@ class Interpretation extends Fields
|
|||||||
break;
|
break;
|
||||||
case 9: // Key Word Any (case-insensitive)
|
case 9: // Key Word Any (case-insensitive)
|
||||||
// only 4 text_field
|
// only 4 text_field
|
||||||
if (ComponentbuilderHelper::typeField($type, 'text'))
|
if (ComponentbuilderHelper::fieldCheck($type, 'text'))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($options['keywords']))
|
if (ComponentbuilderHelper::checkArray($options['keywords']))
|
||||||
{
|
{
|
||||||
@ -9581,7 +9446,7 @@ class Interpretation extends Fields
|
|||||||
break;
|
break;
|
||||||
case 10: // Min Length
|
case 10: // Min Length
|
||||||
// only 4 text_field
|
// only 4 text_field
|
||||||
if (ComponentbuilderHelper::typeField($type, 'text'))
|
if (ComponentbuilderHelper::fieldCheck($type, 'text'))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($options))
|
if (ComponentbuilderHelper::checkArray($options))
|
||||||
{
|
{
|
||||||
@ -9598,7 +9463,7 @@ class Interpretation extends Fields
|
|||||||
break;
|
break;
|
||||||
case 11: // Max Length
|
case 11: // Max Length
|
||||||
// only 4 text_field
|
// only 4 text_field
|
||||||
if (ComponentbuilderHelper::typeField($type, 'text'))
|
if (ComponentbuilderHelper::fieldCheck($type, 'text'))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($options))
|
if (ComponentbuilderHelper::checkArray($options))
|
||||||
{
|
{
|
||||||
@ -9615,7 +9480,7 @@ class Interpretation extends Fields
|
|||||||
break;
|
break;
|
||||||
case 12: // Exact Length
|
case 12: // Exact Length
|
||||||
// only 4 text_field
|
// only 4 text_field
|
||||||
if (ComponentbuilderHelper::typeField($type, 'text'))
|
if (ComponentbuilderHelper::fieldCheck($type, 'text'))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkArray($options))
|
if (ComponentbuilderHelper::checkArray($options))
|
||||||
{
|
{
|
||||||
@ -9643,7 +9508,7 @@ class Interpretation extends Fields
|
|||||||
$buket = array();
|
$buket = array();
|
||||||
if (ComponentbuilderHelper::checkString($options))
|
if (ComponentbuilderHelper::checkString($options))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::typeField($type, 'list') || ComponentbuilderHelper::typeField($type, 'dynamic') || !ComponentbuilderHelper::typeField($type))
|
if (ComponentbuilderHelper::fieldCheck($type, 'list') || ComponentbuilderHelper::fieldCheck($type, 'dynamic') || !ComponentbuilderHelper::fieldCheck($type))
|
||||||
{
|
{
|
||||||
$optionsArray = array_map('trim', (array) explode(PHP_EOL, $options));
|
$optionsArray = array_map('trim', (array) explode(PHP_EOL, $options));
|
||||||
if (!ComponentbuilderHelper::checkArray($optionsArray))
|
if (!ComponentbuilderHelper::checkArray($optionsArray))
|
||||||
@ -9663,7 +9528,7 @@ class Interpretation extends Fields
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif (ComponentbuilderHelper::typeField($type, 'text'))
|
elseif (ComponentbuilderHelper::fieldCheck($type, 'text'))
|
||||||
{
|
{
|
||||||
// check to get the key words if set
|
// check to get the key words if set
|
||||||
$keywords = ComponentbuilderHelper::getBetween($options, 'keywords="', '"');
|
$keywords = ComponentbuilderHelper::getBetween($options, 'keywords="', '"');
|
||||||
@ -9721,12 +9586,12 @@ class Interpretation extends Fields
|
|||||||
// this is only since 3.3.4
|
// this is only since 3.3.4
|
||||||
$select = 'var ' . $keyName . ' = jQuery("#jform_' . $name . '_id").val();';
|
$select = 'var ' . $keyName . ' = jQuery("#jform_' . $name . '_id").val();';
|
||||||
}
|
}
|
||||||
elseif ($type === 'list' || ComponentbuilderHelper::typeField($type, 'dynamic') || !ComponentbuilderHelper::typeField($type))
|
elseif ($type === 'list' || ComponentbuilderHelper::fieldCheck($type, 'dynamic') || !ComponentbuilderHelper::fieldCheck($type))
|
||||||
{
|
{
|
||||||
$select = 'var ' . $keyName . ' = jQuery("#jform_' . $name . '").val();';
|
$select = 'var ' . $keyName . ' = jQuery("#jform_' . $name . '").val();';
|
||||||
$isArray = true;
|
$isArray = true;
|
||||||
}
|
}
|
||||||
elseif (ComponentbuilderHelper::typeField($type, 'text'))
|
elseif (ComponentbuilderHelper::fieldCheck($type, 'text'))
|
||||||
{
|
{
|
||||||
$select = 'var ' . $keyName . ' = jQuery("#jform_' . $name . '").val();';
|
$select = 'var ' . $keyName . ' = jQuery("#jform_' . $name . '").val();';
|
||||||
}
|
}
|
||||||
|
@ -1914,21 +1914,30 @@ abstract class ComponentbuilderHelper
|
|||||||
return array_unique($bucket);
|
return array_unique($bucket);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function typeField($type,$option = 'default')
|
|
||||||
{
|
/**
|
||||||
// list of default fields
|
* Field Grouping https://docs.joomla.org/Form_field
|
||||||
// https://docs.joomla.org/Form_field
|
**/
|
||||||
$fields = array(
|
protected static $fieldGroups = array(
|
||||||
'default' => array(
|
'default' => array(
|
||||||
'accesslevel', 'cachehandler', 'calendar', 'captcha', 'category', 'checkbox',
|
'accesslevel', 'cachehandler', 'calendar', 'captcha', 'category', 'checkbox',
|
||||||
'checkboxes', 'color', 'combo', 'componentlayout', 'contentlanguage', 'editor',
|
'checkboxes', 'color', 'combo', 'componentlayout', 'contentlanguage', 'editor',
|
||||||
'chromestyle', 'contenttype', 'databaseconnection', 'editors', 'email', 'file',
|
'chromestyle', 'contenttype', 'databaseconnection', 'editors', 'email', 'file',
|
||||||
'filelist', 'folderlist', 'groupedlist', 'hidden', 'file', 'headertag', 'helpsite',
|
'filelist', 'folderlist', 'groupedlist', 'hidden', 'file', 'headertag', 'helpsite',
|
||||||
'imagelist','integer','language','list','media','menu','note','password',
|
'imagelist', 'integer', 'language', 'list', 'media', 'menu', 'note', 'number', 'password',
|
||||||
'plugins','range','radio','repeatable','rules','subform','sessionhandler','spacer','sql','tag',
|
'plugins', 'radio', 'repeatable', 'range', 'rules', 'subform', 'sessionhandler', 'spacer', 'sql', 'tag',
|
||||||
'tel','menuitem','modulelayout','meter','moduleorder','moduleposition','moduletag',
|
'tel', 'menuitem', 'meter', 'modulelayout', 'moduleorder', 'moduleposition', 'moduletag',
|
||||||
'templatestyle', 'text', 'textarea', 'timezone', 'url', 'user', 'usergroup'
|
'templatestyle', 'text', 'textarea', 'timezone', 'url', 'user', 'usergroup'
|
||||||
),
|
),
|
||||||
|
'plain' => array(
|
||||||
|
'accesslevel', 'checkbox', 'cachehandler', 'calendar', 'category', 'chromestyle', 'color',
|
||||||
|
'contenttype', 'combo', 'componentlayout', 'databaseconnection', 'editor', 'editors',
|
||||||
|
'email', 'file', 'filelist', 'folderlist', 'headertag', 'helpsite',
|
||||||
|
'hidden', 'imagelist', 'integer', 'language', 'media', 'menu',
|
||||||
|
'menuitem', 'meter', 'modulelayout', 'moduleorder', 'moduletag', 'number', 'password', 'range', 'rules',
|
||||||
|
'sessionhandler', 'tag', 'tel', 'text', 'textarea',
|
||||||
|
'timezone', 'url', 'user', 'usergroup'
|
||||||
|
),
|
||||||
'text' => array(
|
'text' => array(
|
||||||
'calendar','color','editor','email','password','tel','text','textarea','url','number','range'
|
'calendar','color','editor','email','password','tel','text','textarea','url','number','range'
|
||||||
),
|
),
|
||||||
@ -1937,16 +1946,49 @@ abstract class ComponentbuilderHelper
|
|||||||
),
|
),
|
||||||
'dynamic' => array(
|
'dynamic' => array(
|
||||||
'category','headertag','tag','rules','user','file','filelist','folderlist','imagelist','integer','timezone','media','meter'
|
'category','headertag','tag','rules','user','file','filelist','folderlist','imagelist','integer','timezone','media','meter'
|
||||||
|
),
|
||||||
|
'spacer' => array(
|
||||||
|
'note', 'spacer'
|
||||||
|
),
|
||||||
|
'option' => array(
|
||||||
|
'plugins', 'checkboxes', 'contentlanguage', 'list', 'radio', 'sql'
|
||||||
|
),
|
||||||
|
'special' => array(
|
||||||
|
'contentlanguage', 'groupedlist', 'moduleposition', 'plugin',
|
||||||
|
'repeatable', 'templatestyle', 'subform'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (in_array($type,$fields[$option]))
|
/**
|
||||||
|
* Field Checker
|
||||||
|
*
|
||||||
|
* @param string $type The field type
|
||||||
|
* @param boolean $option The field grouping
|
||||||
|
*
|
||||||
|
* @return boolean if the field was found
|
||||||
|
*/
|
||||||
|
public static function fieldCheck($type, $option = 'default')
|
||||||
|
{
|
||||||
|
// now check
|
||||||
|
if (isset(self::$fieldGroups[$option]) && in_array($type, self::$fieldGroups[$option]))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the spacer IDs
|
||||||
|
*
|
||||||
|
* @return array ids of the spacer field types
|
||||||
|
*/
|
||||||
|
public static function getSpacerIds()
|
||||||
|
{
|
||||||
|
// get the database object to use quote
|
||||||
|
$db = JFactory::getDbo();
|
||||||
|
return self::getVars('fieldtype', (array) array_map(function($name) use($db) { return $db->quote(ucfirst($name)); }, self::$fieldGroups['spacer']), 'name', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set the session defaults if not set
|
* set the session defaults if not set
|
||||||
**/
|
**/
|
||||||
|
@ -11,6 +11,7 @@ COM_COMPONENTBUILDER_ADD_CORRESPONDING_LINE_NUMBERS_TO_THE_DYNAMIC_COMMENTS_SO_T
|
|||||||
COM_COMPONENTBUILDER_ADD_CUSTOM_CODE_PLACEHOLDERS="Add Custom Code Placeholders"
|
COM_COMPONENTBUILDER_ADD_CUSTOM_CODE_PLACEHOLDERS="Add Custom Code Placeholders"
|
||||||
COM_COMPONENTBUILDER_ADD_KEY_HERE="add key here"
|
COM_COMPONENTBUILDER_ADD_KEY_HERE="add key here"
|
||||||
COM_COMPONENTBUILDER_ADD_MENU="Add Menu"
|
COM_COMPONENTBUILDER_ADD_MENU="Add Menu"
|
||||||
|
COM_COMPONENTBUILDER_ADD_MORE_FIELDS_TO_THIS_ADMIN_VIEW="Add more fields to this admin view"
|
||||||
COM_COMPONENTBUILDER_ADD_TO_BACKUP_FOLDER_AMP_SALES_SERVER_SMALLIF_SETSMALL="Add to Backup Folder & Sales Server <small>(if set)</small>"
|
COM_COMPONENTBUILDER_ADD_TO_BACKUP_FOLDER_AMP_SALES_SERVER_SMALLIF_SETSMALL="Add to Backup Folder & Sales Server <small>(if set)</small>"
|
||||||
COM_COMPONENTBUILDER_ADD_TO_REPOSITORY_FOLDER="Add to Repository Folder"
|
COM_COMPONENTBUILDER_ADD_TO_REPOSITORY_FOLDER="Add to Repository Folder"
|
||||||
COM_COMPONENTBUILDER_ADD_YOUR_OWN_JCB_PACKAGES_TO_THE_COMMUNITY_A_S_GITHUBA_REPOSITORYBR_WATCH_THIS_A_S_TUTORIALA_TO_SEE_HOW="Add your own JCB packages to the community <a %s >gitHub</a> repository.<br />Watch this <a %s >tutorial</a> to see how!"
|
COM_COMPONENTBUILDER_ADD_YOUR_OWN_JCB_PACKAGES_TO_THE_COMMUNITY_A_S_GITHUBA_REPOSITORYBR_WATCH_THIS_A_S_TUTORIALA_TO_SEE_HOW="Add your own JCB packages to the community <a %s >gitHub</a> repository.<br />Watch this <a %s >tutorial</a> to see how!"
|
||||||
@ -253,12 +254,13 @@ COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ADDRELATIONS_LABEL="Relations"
|
|||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ADMIN_VIEW="Admin View"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ADMIN_VIEW="Admin View"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ADMIN_VIEW_DESCRIPTION="Select an admin view"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ADMIN_VIEW_DESCRIPTION="Select an admin view"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ADMIN_VIEW_LABEL="View"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ADMIN_VIEW_LABEL="View"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CONCATENATE="Concatenate"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_AREA_LABEL="Area"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CONCATENATE_RAQUO_GLUE="Concatenate » Glue"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CREATED_BY_DESC="The user that created this Admin Fields Relations."
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CREATED_BY_DESC="The user that created this Admin Fields Relations."
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CREATED_BY_LABEL="Created By"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CREATED_BY_LABEL="Created By"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CREATED_DATE_DESC="The date this Admin Fields Relations was created."
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CREATED_DATE_DESC="The date this Admin Fields Relations was created."
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CREATED_DATE_LABEL="Created Date"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CREATED_DATE_LABEL="Created Date"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CUSTOM_CODE="Custom Code"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CUSTOM_RAQUO_CODE="Custom » Code"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_EDIT="Editing the Admin Fields Relations"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_EDIT="Editing the Admin Fields Relations"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ERROR_UNIQUE_ALIAS="Another Admin Fields Relations has the same alias."
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ERROR_UNIQUE_ALIAS="Another Admin Fields Relations has the same alias."
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ID="Id"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ID="Id"
|
||||||
@ -269,12 +271,14 @@ COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_JOIN_TYPE_LABEL="Join Type"
|
|||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_LISTFIELD="Listfield"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_LISTFIELD="Listfield"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_LISTFIELD_DESCRIPTION="Select the target list field."
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_LISTFIELD_DESCRIPTION="Select the target list field."
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_LISTFIELD_LABEL="List Field"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_LISTFIELD_LABEL="List Field"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODEL="Model"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODIFIED_BY_DESC="The last user that modified this Admin Fields Relations."
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODIFIED_BY_DESC="The last user that modified this Admin Fields Relations."
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODIFIED_BY_LABEL="Modified By"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODIFIED_BY_LABEL="Modified By"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODIFIED_DATE_DESC="The date this Admin Fields Relations was modified."
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODIFIED_DATE_DESC="The date this Admin Fields Relations was modified."
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODIFIED_DATE_LABEL="Modified Date"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODIFIED_DATE_LABEL="Modified Date"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_NEW="A New Admin Fields Relations"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_NEW="A New Admin Fields Relations"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_NOTE_ON_RELATIONS_DESCRIPTION="<p>Here you are able to combine/join multiple fields into one for display in the list view of the admin area.</p><p>You are able to add calculations, or even model the values into one result.</p>"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_NOTE_ON_RELATIONS_DESCRIPTION="<p>Here you are able to combine/join multiple fields into one for display in the list view of the admin area.</p>
|
||||||
|
<p>You are able to add calculations, or even model the values into one result.</p>"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_NOTE_ON_RELATIONS_LABEL="Relations Implementation"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_NOTE_ON_RELATIONS_LABEL="Relations Implementation"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ORDERING_LABEL="Ordering"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_ORDERING_LABEL="Ordering"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_PERMISSION="Permissions"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_PERMISSION="Permissions"
|
||||||
@ -287,6 +291,7 @@ COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_SET_LABEL="Set"
|
|||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_STATUS="Status"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_STATUS="Status"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_VERSION_DESC="A count of the number of times this Admin Fields Relations has been revised."
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_VERSION_DESC="A count of the number of times this Admin Fields Relations has been revised."
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_VERSION_LABEL="Revision"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_VERSION_LABEL="Revision"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_VIEW="View"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RIGHT_IN_TAB="Right in Tab"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RIGHT_IN_TAB="Right in Tab"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RIGHT_OF_TABS="Right of Tabs"
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RIGHT_OF_TABS="Right of Tabs"
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Admin Fields to customise the alias."
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Admin Fields to customise the alias."
|
||||||
|
@ -68,14 +68,14 @@ $can = ComponentbuilderHelper::getActions('field');
|
|||||||
$canDo = ComponentbuilderHelper::getActions('field',$item,'fields');
|
$canDo = ComponentbuilderHelper::getActions('field',$item,'fields');
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nowrap">
|
<td>
|
||||||
<?php if ($canDo->get('field.edit')): ?>
|
<?php if ($canDo->get('field.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=fieldtype&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=fieldtype&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'fields.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'fields.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $displayData->escape($item->name); ?></div>
|
<?php echo $displayData->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@ -93,7 +93,7 @@ $can = ComponentbuilderHelper::getActions('field');
|
|||||||
<td>
|
<td>
|
||||||
<?php echo JText::_($item->store); ?>
|
<?php echo JText::_($item->store); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td>
|
||||||
<?php if ($user->authorise('core.edit', 'com_componentbuilder.fields.category.' . (int)$item->catid)): ?>
|
<?php if ($user->authorise('core.edit', 'com_componentbuilder.fields.category.' . (int)$item->catid)): ?>
|
||||||
<a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->catid; ?>&extension=com_componentbuilder.fields"><?php echo $displayData->escape($item->category_title); ?></a>
|
<a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->catid; ?>&extension=com_componentbuilder.fields"><?php echo $displayData->escape($item->category_title); ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
@ -59,14 +59,14 @@ $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=jooml
|
|||||||
$canDo = ComponentbuilderHelper::getActions('joomla_component',$item,'joomla_components');
|
$canDo = ComponentbuilderHelper::getActions('joomla_component',$item,'joomla_components');
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="nowrap">
|
<td>
|
||||||
<?php if ($canDo->get('joomla_component.edit')): ?>
|
<?php if ($canDo->get('joomla_component.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=server&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>&ref=server&refid=<?php echo $id; ?>"><?php echo $displayData->escape($item->system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $displayData->escape($item->system_name); ?></div>
|
<?php echo $displayData->escape($item->system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -89,26 +89,6 @@ class ComponentbuilderModelAdmin_fields_relations extends JModelAdmin
|
|||||||
$item->addrelations = $addrelations->toArray();
|
$item->addrelations = $addrelations->toArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
// check what type of conditions array we have here (should be subform... but just incase)
|
|
||||||
// This could happen due to huge data sets
|
|
||||||
if (isset($item->addconditions) && isset($item->addconditions['target_field']))
|
|
||||||
{
|
|
||||||
$bucket = array();
|
|
||||||
foreach($item->addconditions as $option => $values)
|
|
||||||
{
|
|
||||||
foreach($values as $nr => $value)
|
|
||||||
{
|
|
||||||
$bucket['addconditions'.$nr][$option] = $value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$item->addconditions = $bucket;
|
|
||||||
// update the fields
|
|
||||||
$conditionsUpdate = new stdClass();
|
|
||||||
$conditionsUpdate->id = (int) $item->id;
|
|
||||||
$conditionsUpdate->addconditions = json_encode($bucket);
|
|
||||||
$this->_db->updateObject('#__componentbuilder_admin_fields_conditions', $conditionsUpdate, 'id');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($item->id))
|
if (!empty($item->id))
|
||||||
{
|
{
|
||||||
$item->tags = new JHelperTags;
|
$item->tags = new JHelperTags;
|
||||||
|
@ -1092,7 +1092,7 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
{
|
{
|
||||||
$result = $this->_db->loadObject();
|
$result = $this->_db->loadObject();
|
||||||
$result->name = strtolower($result->name);
|
$result->name = strtolower($result->name);
|
||||||
if (ComponentbuilderHelper::typeField($result->name,'list'))
|
if (ComponentbuilderHelper::fieldCheck($result->name,'list'))
|
||||||
{
|
{
|
||||||
// load the values form params
|
// load the values form params
|
||||||
$xml = json_decode($result->xml);
|
$xml = json_decode($result->xml);
|
||||||
@ -1136,15 +1136,15 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
// return found field options
|
// return found field options
|
||||||
return $optionSet;
|
return $optionSet;
|
||||||
}
|
}
|
||||||
elseif (ComponentbuilderHelper::typeField($result->name,'text'))
|
elseif (ComponentbuilderHelper::fieldCheck($result->name,'text'))
|
||||||
{
|
{
|
||||||
return "keywords=\"\"\nlength=\"\"";
|
return "keywords=\"\"\nlength=\"\"";
|
||||||
}
|
}
|
||||||
elseif (ComponentbuilderHelper::typeField($result->name,'dynamic'))
|
elseif (ComponentbuilderHelper::fieldCheck($result->name,'dynamic'))
|
||||||
{
|
{
|
||||||
return 'dynamic_list';
|
return 'dynamic_list';
|
||||||
}
|
}
|
||||||
elseif (ComponentbuilderHelper::typeField($result->name))
|
elseif (ComponentbuilderHelper::fieldCheck($result->name))
|
||||||
{
|
{
|
||||||
return 'match field type not supported. Select another!';
|
return 'match field type not supported. Select another!';
|
||||||
}
|
}
|
||||||
@ -2567,6 +2567,52 @@ class ComponentbuilderModelAjax extends JModelList
|
|||||||
return $xml;
|
return $xml;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Used in admin_fields_relations
|
||||||
|
public function getCodeGlueOptions($listfield, $joinfields, $type, $area)
|
||||||
|
{
|
||||||
|
// CONCATENATE GLUE
|
||||||
|
if ($type == 1)
|
||||||
|
{
|
||||||
|
// MODEL
|
||||||
|
if ($area == 1)
|
||||||
|
{
|
||||||
|
return ', ';
|
||||||
|
}
|
||||||
|
// VIEW
|
||||||
|
elseif ($area == 2)
|
||||||
|
{
|
||||||
|
return '<br />';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// CUSTOM CODE
|
||||||
|
elseif ($type == 2)
|
||||||
|
{
|
||||||
|
// build fields array
|
||||||
|
$fields = array_map( function ($id) {
|
||||||
|
return (int) $id;
|
||||||
|
}, (array) explode(',', $joinfields));
|
||||||
|
// add the list field to array
|
||||||
|
array_unshift($fields, (int) $listfield);
|
||||||
|
// get field names
|
||||||
|
$names = array_map( function ($id) {
|
||||||
|
return '[' . $id . ']=> ' . ComponentbuilderHelper::getVar('field', $id, 'id', 'name');
|
||||||
|
}, $fields);
|
||||||
|
// create note
|
||||||
|
$note = "// ". implode('; ', $names);
|
||||||
|
// MODEL
|
||||||
|
if ($area == 1)
|
||||||
|
{
|
||||||
|
return $note . PHP_EOL . PHP_EOL . '$item->[' . implode("] . ', ' . \$item->[", $fields) . '];';
|
||||||
|
}
|
||||||
|
// VIEW
|
||||||
|
elseif ($area == 2)
|
||||||
|
{
|
||||||
|
return '$this->escape($item->[' . implode("]) . '<br />' . \$this->escape(\$item->[", $fields). ']);' . PHP_EOL . PHP_EOL . $note;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Used in get_snippets
|
// Used in get_snippets
|
||||||
|
|
||||||
public function getSnippets($libraries)
|
public function getSnippets($libraries)
|
||||||
|
@ -123,6 +123,8 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
|||||||
$item->main_source = $this->selectionTranslation($item->main_source, 'main_source');
|
$item->main_source = $this->selectionTranslation($item->main_source, 'main_source');
|
||||||
// convert gettype
|
// convert gettype
|
||||||
$item->gettype = $this->selectionTranslation($item->gettype, 'gettype');
|
$item->gettype = $this->selectionTranslation($item->gettype, 'gettype');
|
||||||
|
// convert addcalculation
|
||||||
|
$item->addcalculation = $this->selectionTranslation($item->addcalculation, 'addcalculation');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -168,6 +170,19 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
|||||||
return $gettypeArray[$value];
|
return $gettypeArray[$value];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Array of addcalculation language strings
|
||||||
|
if ($name === 'addcalculation')
|
||||||
|
{
|
||||||
|
$addcalculationArray = array(
|
||||||
|
1 => 'COM_COMPONENTBUILDER_DYNAMIC_GET_YES',
|
||||||
|
0 => 'COM_COMPONENTBUILDER_DYNAMIC_GET_NO'
|
||||||
|
);
|
||||||
|
// Now check if value is found in this array
|
||||||
|
if (isset($addcalculationArray[$value]) && ComponentbuilderHelper::checkString($addcalculationArray[$value]))
|
||||||
|
{
|
||||||
|
return $addcalculationArray[$value];
|
||||||
|
}
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,6 +205,10 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
|||||||
// From the componentbuilder_item table
|
// From the componentbuilder_item table
|
||||||
$query->from($db->quoteName('#__componentbuilder_dynamic_get', 'a'));
|
$query->from($db->quoteName('#__componentbuilder_dynamic_get', 'a'));
|
||||||
|
|
||||||
|
// From the componentbuilder_admin_view table.
|
||||||
|
$query->select($db->quoteName('h.system_name','view_table_main_system_name'));
|
||||||
|
$query->join('LEFT', $db->quoteName('#__componentbuilder_admin_view', 'h') . ' ON (' . $db->quoteName('a.view_table_main') . ' = ' . $db->quoteName('h.id') . ')');
|
||||||
|
|
||||||
// Filter by published state
|
// Filter by published state
|
||||||
$published = $this->getState('filter.published');
|
$published = $this->getState('filter.published');
|
||||||
if (is_numeric($published))
|
if (is_numeric($published))
|
||||||
|
@ -64,16 +64,22 @@ class JFormFieldAliasbuilder extends JFormFieldList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// filter by fields linked
|
||||||
|
if (ComponentbuilderHelper::checkArray($fieldIds))
|
||||||
|
{
|
||||||
|
// get list of field types that does not work in list views (note, spacer)
|
||||||
|
$spacers = ComponentbuilderHelper::getSpacerIds();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
$query->select($db->quoteName(array('a.id','a.name','b.name'),array('id','name','type')));
|
$query->select($db->quoteName(array('a.id','a.name','b.name'),array('id','name','type')));
|
||||||
$query->from($db->quoteName('#__componentbuilder_field', 'a'));
|
$query->from($db->quoteName('#__componentbuilder_field', 'a'));
|
||||||
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'b') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('b.id') . ')');
|
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'b') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('b.id') . ')');
|
||||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||||
// filter by fields linked
|
|
||||||
if (ComponentbuilderHelper::checkArray($fieldIds))
|
|
||||||
{
|
|
||||||
// only load these fields
|
// only load these fields
|
||||||
$query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')');
|
$query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')');
|
||||||
|
// none of these field types
|
||||||
|
if (ComponentbuilderHelper::checkArray($spacers))
|
||||||
|
{
|
||||||
|
$query->where($db->quoteName('a.fieldtype') . ' NOT IN (' . implode(',', $spacers) . ')');
|
||||||
}
|
}
|
||||||
$query->order('a.name ASC');
|
$query->order('a.name ASC');
|
||||||
$db->setQuery((string)$query);
|
$db->setQuery((string)$query);
|
||||||
@ -85,7 +91,9 @@ class JFormFieldAliasbuilder extends JFormFieldList
|
|||||||
{
|
{
|
||||||
$options[] = JHtml::_('select.option', $item->id, $item->name . ' [' . $item->type . ']');
|
$options[] = JHtml::_('select.option', $item->id, $item->name . ' [' . $item->type . ']');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return $options;
|
return $options;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return array(JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_ADD_MORE_FIELDS_TO_THIS_ADMIN_VIEW')));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -76,12 +76,20 @@ class JFormFieldJoinfields extends JFormFieldList
|
|||||||
// filter by fields linked
|
// filter by fields linked
|
||||||
if (ComponentbuilderHelper::checkArray($fieldIds))
|
if (ComponentbuilderHelper::checkArray($fieldIds))
|
||||||
{
|
{
|
||||||
|
// get list of field types that does not work in list views (note, spacer)
|
||||||
|
$spacers = ComponentbuilderHelper::getSpacerIds();
|
||||||
$query = $db->getQuery(true);
|
$query = $db->getQuery(true);
|
||||||
$query->select($db->quoteName(array('a.id','a.name'),array('id','name')));
|
$query->select($db->quoteName(array('a.id','a.name','t.name'),array('id','name','type')));
|
||||||
$query->from($db->quoteName('#__componentbuilder_field', 'a'));
|
$query->from($db->quoteName('#__componentbuilder_field', 'a'));
|
||||||
|
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 't') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('t.id') . ')');
|
||||||
$query->where($db->quoteName('a.published') . ' >= 1');
|
$query->where($db->quoteName('a.published') . ' >= 1');
|
||||||
// only load these fields
|
// only load these fields
|
||||||
$query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')');
|
$query->where($db->quoteName('a.id') . ' IN (' . implode(',', $fieldIds) . ')');
|
||||||
|
// none of these field types
|
||||||
|
if (ComponentbuilderHelper::checkArray($spacers))
|
||||||
|
{
|
||||||
|
$query->where($db->quoteName('a.fieldtype') . ' NOT IN (' . implode(',', $spacers) . ')');
|
||||||
|
}
|
||||||
$query->order('a.name ASC');
|
$query->order('a.name ASC');
|
||||||
$db->setQuery((string)$query);
|
$db->setQuery((string)$query);
|
||||||
$items = $db->loadObjectList();
|
$items = $db->loadObjectList();
|
||||||
@ -90,12 +98,12 @@ class JFormFieldJoinfields extends JFormFieldList
|
|||||||
{
|
{
|
||||||
foreach($items as $item)
|
foreach($items as $item)
|
||||||
{
|
{
|
||||||
$options[] = JHtml::_('select.option', $item->id, $item->name);
|
$options[] = JHtml::_('select.option', $item->id, $item->name . ' [' . $item->type . ']');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $options;
|
return $options;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return array(JHtml::_('select.option', '', JText::_('COM_COMPONENTBUILDER_ADD_MORE_FIELDS_TO_THIS_ADMIN_VIEW')));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,10 +11,33 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function getFieldSelectOptions_server(fieldId){
|
// little script to set the value
|
||||||
var getUrl = "index.php?option=com_componentbuilder&task=ajax.fieldSelectOptions&format=json";
|
function getCodeGlueOptions(field) {
|
||||||
if(token.length > 0 && fieldId > 0){
|
// get the ID
|
||||||
var request = 'token='+token+'&id='+fieldId;
|
var id = jQuery(field).attr('id');
|
||||||
|
var target = id.split('__');
|
||||||
|
//set the subID
|
||||||
|
var subID = target[0]+'__'+target[1];
|
||||||
|
// get listfield value
|
||||||
|
var listfield = jQuery('#'+subID+'__listfield').val();
|
||||||
|
// get joinfields values
|
||||||
|
var joinfields = jQuery('#'+subID+'__joinfields').val();
|
||||||
|
// get type value
|
||||||
|
var type = jQuery('#'+subID+'__join_type').val();
|
||||||
|
// get area value
|
||||||
|
var area = jQuery('#'+subID+'__area').val();
|
||||||
|
// get codeGlueOptions
|
||||||
|
getCodeGlueOptions_server(listfield, joinfields, type, area).done(function(result) {
|
||||||
|
if(result){
|
||||||
|
jQuery('#'+subID+'__set').val(result);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function getCodeGlueOptions_server(listfield, joinfields, type, area){
|
||||||
|
var getUrl = "index.php?option=com_componentbuilder&task=ajax.getCodeGlueOptions&format=json";
|
||||||
|
if(token.length > 0 && listfield > 0 && joinfields.length >= 1 && type > 0 && area > 0) {
|
||||||
|
var request = 'token='+token+'&listfield='+listfield+'&type='+type+'&area='+area+'&joinfields='+joinfields;
|
||||||
}
|
}
|
||||||
return jQuery.ajax({
|
return jQuery.ajax({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
@ -25,20 +48,4 @@ function getFieldSelectOptions_server(fieldId){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFieldSelectOptions(fieldKey){
|
|
||||||
// first check if the field is set
|
|
||||||
if(jQuery("#jform_addconditions__addconditions"+fieldKey+"__match_field").length) {
|
|
||||||
var fieldId = jQuery("#jform_addconditions__addconditions"+fieldKey+"__match_field option:selected").val();
|
|
||||||
getFieldSelectOptions_server(fieldId).done(function(result) {
|
|
||||||
if(result){
|
|
||||||
jQuery('textarea#jform_addconditions__addconditions'+fieldKey+'__match_options').val(result);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
jQuery('textarea#jform_addconditions__addconditions'+fieldKey+'__match_options').val('');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -116,6 +116,7 @@
|
|||||||
class="fieldMedium"
|
class="fieldMedium"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="false"
|
required="false"
|
||||||
|
onchange="getCodeGlueOptions(this)"
|
||||||
button="false"
|
button="false"
|
||||||
/>
|
/>
|
||||||
<!-- Joinfields Field. Type: Joinfields. (custom) -->
|
<!-- Joinfields Field. Type: Joinfields. (custom) -->
|
||||||
@ -127,8 +128,26 @@
|
|||||||
class="fieldMedium"
|
class="fieldMedium"
|
||||||
multiple="true"
|
multiple="true"
|
||||||
required="false"
|
required="false"
|
||||||
|
onchange="getCodeGlueOptions(this)"
|
||||||
button="false"
|
button="false"
|
||||||
/>
|
/>
|
||||||
|
<!-- Area Field. Type: List. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="list"
|
||||||
|
name="area"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_AREA_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
multiple="false"
|
||||||
|
required="false"
|
||||||
|
validate="int"
|
||||||
|
default="1"
|
||||||
|
onchange="getCodeGlueOptions(this)">
|
||||||
|
<!-- Option Set. -->
|
||||||
|
<option value="1">
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_MODEL</option>
|
||||||
|
<option value="2">
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_VIEW</option>
|
||||||
|
</field>
|
||||||
<!-- Join_type Field. Type: List. (joomla) -->
|
<!-- Join_type Field. Type: List. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="list"
|
type="list"
|
||||||
@ -138,26 +157,26 @@
|
|||||||
multiple="false"
|
multiple="false"
|
||||||
required="false"
|
required="false"
|
||||||
validate="int"
|
validate="int"
|
||||||
default="1">
|
default="1"
|
||||||
|
onchange="getCodeGlueOptions(this)">
|
||||||
<!-- Option Set. -->
|
<!-- Option Set. -->
|
||||||
<option value="1">
|
<option value="1">
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CONCATENATE</option>
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CONCATENATE_RAQUO_GLUE</option>
|
||||||
<option value="2">
|
<option value="2">
|
||||||
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CUSTOM_CODE</option>
|
COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_CUSTOM_RAQUO_CODE</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Set Field. Type: Text. (joomla) -->
|
<!-- Set Field. Type: Textarea. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="textarea"
|
||||||
name="set"
|
name="set"
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_SET_LABEL"
|
label="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_SET_LABEL"
|
||||||
size="150"
|
rows="4"
|
||||||
maxlength="150"
|
cols="5"
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_SET_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_SET_DESCRIPTION"
|
||||||
class="text_area"
|
class="text_area codefield"
|
||||||
required="false"
|
filter="raw"
|
||||||
filter="RAW"
|
|
||||||
hint="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_SET_HINT"
|
hint="COM_COMPONENTBUILDER_ADMIN_FIELDS_RELATIONS_SET_HINT"
|
||||||
autocomplete="on"
|
required="false"
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
|
File diff suppressed because one or more lines are too long
@ -101,31 +101,3 @@ $componentParams = JComponentHelper::getParams('com_componentbuilder');
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php $numberAddconditions = range(0, count( (array) $this->item->addconditions) + 3, 1);?>
|
|
||||||
|
|
||||||
// for the values already set
|
|
||||||
jQuery(document).ready(function(){
|
|
||||||
<?php foreach($numberAddconditions as $fieldNr): ?>
|
|
||||||
jQuery('#adminForm').on('change', '#jform_addconditions__addconditions<?php echo $fieldNr ?>__match_field',function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
getFieldSelectOptions(<?php echo $fieldNr ?>);
|
|
||||||
});
|
|
||||||
<?php endforeach; ?>
|
|
||||||
jQuery(document).on('subform-row-add', function(event, row){
|
|
||||||
var groupName = jQuery(row).data('group');
|
|
||||||
var fieldName = groupName.replace(/([0-9])/g, '');
|
|
||||||
var fieldNr = groupName.replace(/([A-z_])/g, '');
|
|
||||||
if ('addconditions' === fieldName) {
|
|
||||||
jQuery('#adminForm').on('change', '#jform_addconditions__addconditions'+fieldNr+'__match_field',function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
getFieldSelectOptions(fieldNr);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=admin_views&task=admin_view.
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('admin_view.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('admin_view.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admin_views.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admin_views.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->system_name); ?></div>
|
<?php echo $this->escape($item->system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="btn-group" style="margin: 5px 0 0 0;">
|
<div class="btn-group" style="margin: 5px 0 0 0;">
|
||||||
<?php if ($canDo->get('admin_view.edit') && $admin_field_id = ComponentbuilderHelper::getVar('admin_fields', $item->id, 'admin_view', 'id')): ?>
|
<?php if ($canDo->get('admin_view.edit') && $admin_field_id = ComponentbuilderHelper::getVar('admin_fields', $item->id, 'admin_view', 'id')): ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields&task=admin_fie
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('admin_fields.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('admin_fields.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->admin_view_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->admin_view_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admins_fields.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admins_fields.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->admin_view_system_name); ?></div>
|
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('admin_fields.edit.state')) : ?>
|
<?php if ($canDo->get('admin_fields.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields_conditions&tas
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('admin_fields_conditions.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('admin_fields_conditions.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->admin_view_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->admin_view_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admins_fields_conditions.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admins_fields_conditions.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->admin_view_system_name); ?></div>
|
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('admin_fields_conditions.edit.state')) : ?>
|
<?php if ($canDo->get('admin_fields_conditions.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=admins_fields_relations&task
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('admin_fields_relations.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('admin_fields_relations.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->admin_view_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->admin_view_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admins_fields_relations.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'admins_fields_relations.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->admin_view_system_name); ?></div>
|
<?php echo $this->escape($item->admin_view_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('admin_fields_relations.edit.state')) : ?>
|
<?php if ($canDo->get('admin_fields_relations.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=components_admin_views&task=
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('component_admin_views.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('component_admin_views.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_admin_views.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_admin_views.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->joomla_component_system_name); ?></div>
|
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('component_admin_views.edit.state')) : ?>
|
<?php if ($canDo->get('component_admin_views.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=components_config&task=compo
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('component_config.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('component_config.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_config.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_config.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->joomla_component_system_name); ?></div>
|
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('component_config.edit.state')) : ?>
|
<?php if ($canDo->get('component_config.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=components_custom_admin_menu
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('component_custom_admin_menus.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('component_custom_admin_menus.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_custom_admin_menus.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_custom_admin_menus.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->joomla_component_system_name); ?></div>
|
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('component_custom_admin_menus.edit.state')) : ?>
|
<?php if ($canDo->get('component_custom_admin_menus.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=components_custom_admin_view
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('component_custom_admin_views.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('component_custom_admin_views.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_custom_admin_views.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_custom_admin_views.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->joomla_component_system_name); ?></div>
|
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('component_custom_admin_views.edit.state')) : ?>
|
<?php if ($canDo->get('component_custom_admin_views.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=components_dashboard&task=co
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('component_dashboard.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('component_dashboard.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_dashboard.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_dashboard.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->joomla_component_system_name); ?></div>
|
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('component_dashboard.edit.state')) : ?>
|
<?php if ($canDo->get('component_dashboard.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=components_files_folders&tas
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('component_files_folders.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('component_files_folders.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_files_folders.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_files_folders.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->joomla_component_system_name); ?></div>
|
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('component_files_folders.edit.state')) : ?>
|
<?php if ($canDo->get('component_files_folders.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=components_mysql_tweaks&task
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('component_mysql_tweaks.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('component_mysql_tweaks.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_mysql_tweaks.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_mysql_tweaks.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->joomla_component_system_name); ?></div>
|
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('component_mysql_tweaks.edit.state')) : ?>
|
<?php if ($canDo->get('component_mysql_tweaks.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=components_site_views&task=c
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('component_site_views.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('component_site_views.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_site_views.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_site_views.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->joomla_component_system_name); ?></div>
|
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('component_site_views.edit.state')) : ?>
|
<?php if ($canDo->get('component_site_views.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=components_updates&task=comp
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('component_updates.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('component_updates.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->joomla_component_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_updates.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'components_updates.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->joomla_component_system_name); ?></div>
|
<?php echo $this->escape($item->joomla_component_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('component_updates.edit.state')) : ?>
|
<?php if ($canDo->get('component_updates.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=custom_admin_views&task=cust
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('core.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('core.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'custom_admin_views.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'custom_admin_views.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->system_name); ?></div>
|
<?php echo $this->escape($item->system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo $this->escape($item->name); ?>
|
<?php echo $this->escape($item->name); ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=custom_codes&task=custom_cod
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('custom_code.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('custom_code.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->component_system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->component_system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'custom_codes.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'custom_codes.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->component_system_name); ?></div>
|
<?php echo $this->escape($item->component_system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo $this->escape($item->path); ?>
|
<?php echo $this->escape($item->path); ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=dynamic_gets&task=dynamic_ge
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('dynamic_get.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('dynamic_get.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'dynamic_gets.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'dynamic_gets.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->name); ?></div>
|
<?php echo $this->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo JText::_($item->main_source); ?>
|
<?php echo JText::_($item->main_source); ?>
|
||||||
|
@ -61,25 +61,25 @@ $edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('field.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('field.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'fields.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'fields.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->name); ?></div>
|
<?php echo $this->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($this->user->authorise('fieldtype.edit', 'com_componentbuilder.fieldtype.' . (int)$item->fieldtype)): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($this->user->authorise('fieldtype.edit', 'com_componentbuilder.fieldtype.' . (int)$item->fieldtype)): ?>
|
||||||
<a href="index.php?option=com_componentbuilder&view=fieldtypes&task=fieldtype.edit&id=<?php echo $item->fieldtype; ?>&ref=fields"><?php echo $this->escape($item->fieldtype_name); ?></a>
|
<a href="index.php?option=com_componentbuilder&view=fieldtypes&task=fieldtype.edit&id=<?php echo $item->fieldtype; ?>&ref=fields"><?php echo $this->escape($item->fieldtype_name); ?></a>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->fieldtype_name); ?></div>
|
<?php echo $this->escape($item->fieldtype_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo JText::_($item->datatype); ?>
|
<?php echo JText::_($item->datatype); ?>
|
||||||
@ -94,11 +94,13 @@ $edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
|
|||||||
<?php echo JText::_($item->store); ?>
|
<?php echo JText::_($item->store); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
|
<div class="name">
|
||||||
<?php if ($this->user->authorise('core.edit', 'com_componentbuilder.fields.category.' . (int)$item->catid)): ?>
|
<?php if ($this->user->authorise('core.edit', 'com_componentbuilder.fields.category.' . (int)$item->catid)): ?>
|
||||||
<a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->catid; ?>&extension=com_componentbuilder.fields"><?php echo $this->escape($item->category_title); ?></a>
|
<a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->catid; ?>&extension=com_componentbuilder.fields"><?php echo $this->escape($item->category_title); ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php echo $this->escape($item->category_title); ?>
|
<?php echo $this->escape($item->category_title); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('field.edit.state')) : ?>
|
<?php if ($canDo->get('field.edit.state')) : ?>
|
||||||
|
@ -61,26 +61,28 @@ $edit = "index.php?option=com_componentbuilder&view=fieldtypes&task=fieldtype.ed
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('fieldtype.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('fieldtype.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'fieldtypes.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'fieldtypes.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->name); ?></div>
|
<?php echo $this->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo $this->escape($item->short_description); ?>
|
<?php echo $this->escape($item->short_description); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
|
<div class="name">
|
||||||
<?php if ($this->user->authorise('core.edit', 'com_componentbuilder.fieldtypes.category.' . (int)$item->catid)): ?>
|
<?php if ($this->user->authorise('core.edit', 'com_componentbuilder.fieldtypes.category.' . (int)$item->catid)): ?>
|
||||||
<a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->catid; ?>&extension=com_componentbuilder.fieldtypes"><?php echo $this->escape($item->category_title); ?></a>
|
<a href="index.php?option=com_categories&task=category.edit&id=<?php echo (int)$item->catid; ?>&extension=com_componentbuilder.fieldtypes"><?php echo $this->escape($item->category_title); ?></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php echo $this->escape($item->category_title); ?>
|
<?php echo $this->escape($item->category_title); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('fieldtype.edit.state')) : ?>
|
<?php if ($canDo->get('fieldtype.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=help_documents&task=help_doc
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('help_document.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('help_document.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->title); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->title); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'help_documents.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'help_documents.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->title); ?></div>
|
<?php echo $this->escape($item->title); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo JText::_($item->type); ?>
|
<?php echo JText::_($item->type); ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=jooml
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('joomla_component.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('joomla_component.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'joomla_components.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->system_name); ?></div>
|
<?php echo $this->escape($item->system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="btn-group" style="margin: 5px 0 0 0;">
|
<div class="btn-group" style="margin: 5px 0 0 0;">
|
||||||
<?php if ($canDo->get('component_admin_views.edit') && $component_admin_views_id = ComponentbuilderHelper::getVar('component_admin_views', $item->id, 'joomla_component', 'id')): ?>
|
<?php if ($canDo->get('component_admin_views.edit') && $component_admin_views_id = ComponentbuilderHelper::getVar('component_admin_views', $item->id, 'joomla_component', 'id')): ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=language_translations&task=l
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('language_translation.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('language_translation.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $item->source; ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $item->source; ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'language_translations.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'language_translations.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $item->source; ?></div>
|
<?php echo $item->source; ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('language_translation.edit.state')) : ?>
|
<?php if ($canDo->get('language_translation.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=languages&task=language.edit
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('language.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('language.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'languages.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'languages.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->name); ?></div>
|
<?php echo $this->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo $this->escape($item->langtag); ?>
|
<?php echo $this->escape($item->langtag); ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=layouts&task=layout.edit";
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('core.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('core.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'layouts.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'layouts.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->name); ?></div>
|
<?php echo $this->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo $this->escape($item->alias); ?>
|
<?php echo $this->escape($item->alias); ?>
|
||||||
@ -79,13 +79,13 @@ $edit = "index.php?option=com_componentbuilder&view=layouts&task=layout.edit";
|
|||||||
<?php echo $this->escape($item->description); ?>
|
<?php echo $this->escape($item->description); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($this->user->authorise('dynamic_get.edit', 'com_componentbuilder.dynamic_get.' . (int)$item->dynamic_get)): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($this->user->authorise('dynamic_get.edit', 'com_componentbuilder.dynamic_get.' . (int)$item->dynamic_get)): ?>
|
||||||
<a href="index.php?option=com_componentbuilder&view=dynamic_gets&task=dynamic_get.edit&id=<?php echo $item->dynamic_get; ?>&ref=layouts"><?php echo $this->escape($item->dynamic_get_name); ?></a>
|
<a href="index.php?option=com_componentbuilder&view=dynamic_gets&task=dynamic_get.edit&id=<?php echo $item->dynamic_get; ?>&ref=layouts"><?php echo $this->escape($item->dynamic_get_name); ?></a>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->dynamic_get_name); ?></div>
|
<?php echo $this->escape($item->dynamic_get_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('core.edit.state')) : ?>
|
<?php if ($canDo->get('core.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=libraries&task=library.edit"
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('library.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('library.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'libraries.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'libraries.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->name); ?></div>
|
<?php echo $this->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="btn-group" style="margin: 5px 0 0 0;">
|
<div class="btn-group" style="margin: 5px 0 0 0;">
|
||||||
<?php if ($canDo->get('library_config.edit') && $library_config_id = ComponentbuilderHelper::getVar('library_config', $item->id, 'library', 'id')): ?>
|
<?php if ($canDo->get('library_config.edit') && $library_config_id = ComponentbuilderHelper::getVar('library_config', $item->id, 'library', 'id')): ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=libraries_config&task=librar
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('library_config.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('library_config.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->library_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->library_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'libraries_config.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'libraries_config.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->library_name); ?></div>
|
<?php echo $this->escape($item->library_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('library_config.edit.state')) : ?>
|
<?php if ($canDo->get('library_config.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=libraries_files_folders_urls
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('library_files_folders_urls.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('library_files_folders_urls.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->library_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->library_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'libraries_files_folders_urls.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'libraries_files_folders_urls.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->library_name); ?></div>
|
<?php echo $this->escape($item->library_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('library_files_folders_urls.edit.state')) : ?>
|
<?php if ($canDo->get('library_files_folders_urls.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=servers&task=server.edit";
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('server.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('server.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'servers.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'servers.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->name); ?></div>
|
<?php echo $this->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo JText::_($item->protocol); ?>
|
<?php echo JText::_($item->protocol); ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=site_views&task=site_view.ed
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('core.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('core.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->system_name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->system_name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'site_views.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'site_views.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->system_name); ?></div>
|
<?php echo $this->escape($item->system_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo $this->escape($item->name); ?>
|
<?php echo $this->escape($item->name); ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=snippet_types&task=snippet_t
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('snippet_type.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('snippet_type.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'snippet_types.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'snippet_types.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->name); ?></div>
|
<?php echo $this->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo $this->escape($item->description); ?>
|
<?php echo $this->escape($item->description); ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=snippets&task=snippet.edit";
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('core.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('core.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'snippets.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'snippets.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->name); ?></div>
|
<?php echo $this->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo $this->escape($item->url); ?>
|
<?php echo $this->escape($item->url); ?>
|
||||||
@ -82,13 +82,13 @@ $edit = "index.php?option=com_componentbuilder&view=snippets&task=snippet.edit";
|
|||||||
<?php echo $this->escape($item->heading); ?>
|
<?php echo $this->escape($item->heading); ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($this->user->authorise('library.edit', 'com_componentbuilder.library.' . (int)$item->library)): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($this->user->authorise('library.edit', 'com_componentbuilder.library.' . (int)$item->library)): ?>
|
||||||
<a href="index.php?option=com_componentbuilder&view=libraries&task=library.edit&id=<?php echo $item->library; ?>&ref=snippets"><?php echo $this->escape($item->library_name); ?></a>
|
<a href="index.php?option=com_componentbuilder&view=libraries&task=library.edit&id=<?php echo $item->library; ?>&ref=snippets"><?php echo $this->escape($item->library_name); ?></a>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->library_name); ?></div>
|
<?php echo $this->escape($item->library_name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="center">
|
<td class="center">
|
||||||
<?php if ($canDo->get('core.edit.state')) : ?>
|
<?php if ($canDo->get('core.edit.state')) : ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=templates&task=template.edit
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('core.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('core.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'templates.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'templates.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->name); ?></div>
|
<?php echo $this->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo $this->escape($item->alias); ?>
|
<?php echo $this->escape($item->alias); ?>
|
||||||
|
@ -61,16 +61,16 @@ $edit = "index.php?option=com_componentbuilder&view=validation_rules&task=valida
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
<td class="nowrap">
|
<td class="nowrap">
|
||||||
<?php if ($canDo->get('validation_rule.edit')): ?>
|
|
||||||
<div class="name">
|
<div class="name">
|
||||||
|
<?php if ($canDo->get('validation_rule.edit')): ?>
|
||||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->name); ?></a>
|
||||||
<?php if ($item->checked_out): ?>
|
<?php if ($item->checked_out): ?>
|
||||||
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'validation_rules.', $canCheckin); ?>
|
<?php echo JHtml::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'validation_rules.', $canCheckin); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<div class="name"><?php echo $this->escape($item->name); ?></div>
|
<?php echo $this->escape($item->name); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="hidden-phone">
|
<td class="hidden-phone">
|
||||||
<?php echo $this->escape($item->short_description); ?>
|
<?php echo $this->escape($item->short_description); ?>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="component" version="3.2" method="upgrade">
|
<extension type="component" version="3.2" method="upgrade">
|
||||||
<name>COM_COMPONENTBUILDER</name>
|
<name>COM_COMPONENTBUILDER</name>
|
||||||
<creationDate>22nd May, 2018</creationDate>
|
<creationDate>24th May, 2018</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
||||||
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
||||||
|
@ -1914,21 +1914,30 @@ abstract class ComponentbuilderHelper
|
|||||||
return array_unique($bucket);
|
return array_unique($bucket);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function typeField($type,$option = 'default')
|
|
||||||
{
|
/**
|
||||||
// list of default fields
|
* Field Grouping https://docs.joomla.org/Form_field
|
||||||
// https://docs.joomla.org/Form_field
|
**/
|
||||||
$fields = array(
|
protected static $fieldGroups = array(
|
||||||
'default' => array(
|
'default' => array(
|
||||||
'accesslevel', 'cachehandler', 'calendar', 'captcha', 'category', 'checkbox',
|
'accesslevel', 'cachehandler', 'calendar', 'captcha', 'category', 'checkbox',
|
||||||
'checkboxes', 'color', 'combo', 'componentlayout', 'contentlanguage', 'editor',
|
'checkboxes', 'color', 'combo', 'componentlayout', 'contentlanguage', 'editor',
|
||||||
'chromestyle', 'contenttype', 'databaseconnection', 'editors', 'email', 'file',
|
'chromestyle', 'contenttype', 'databaseconnection', 'editors', 'email', 'file',
|
||||||
'filelist', 'folderlist', 'groupedlist', 'hidden', 'file', 'headertag', 'helpsite',
|
'filelist', 'folderlist', 'groupedlist', 'hidden', 'file', 'headertag', 'helpsite',
|
||||||
'imagelist','integer','language','list','media','menu','note','password',
|
'imagelist', 'integer', 'language', 'list', 'media', 'menu', 'note', 'number', 'password',
|
||||||
'plugins','range','radio','repeatable','rules','subform','sessionhandler','spacer','sql','tag',
|
'plugins', 'radio', 'repeatable', 'range', 'rules', 'subform', 'sessionhandler', 'spacer', 'sql', 'tag',
|
||||||
'tel','menuitem','modulelayout','meter','moduleorder','moduleposition','moduletag',
|
'tel', 'menuitem', 'meter', 'modulelayout', 'moduleorder', 'moduleposition', 'moduletag',
|
||||||
'templatestyle', 'text', 'textarea', 'timezone', 'url', 'user', 'usergroup'
|
'templatestyle', 'text', 'textarea', 'timezone', 'url', 'user', 'usergroup'
|
||||||
),
|
),
|
||||||
|
'plain' => array(
|
||||||
|
'accesslevel', 'checkbox', 'cachehandler', 'calendar', 'category', 'chromestyle', 'color',
|
||||||
|
'contenttype', 'combo', 'componentlayout', 'databaseconnection', 'editor', 'editors',
|
||||||
|
'email', 'file', 'filelist', 'folderlist', 'headertag', 'helpsite',
|
||||||
|
'hidden', 'imagelist', 'integer', 'language', 'media', 'menu',
|
||||||
|
'menuitem', 'meter', 'modulelayout', 'moduleorder', 'moduletag', 'number', 'password', 'range', 'rules',
|
||||||
|
'sessionhandler', 'tag', 'tel', 'text', 'textarea',
|
||||||
|
'timezone', 'url', 'user', 'usergroup'
|
||||||
|
),
|
||||||
'text' => array(
|
'text' => array(
|
||||||
'calendar','color','editor','email','password','tel','text','textarea','url','number','range'
|
'calendar','color','editor','email','password','tel','text','textarea','url','number','range'
|
||||||
),
|
),
|
||||||
@ -1937,16 +1946,49 @@ abstract class ComponentbuilderHelper
|
|||||||
),
|
),
|
||||||
'dynamic' => array(
|
'dynamic' => array(
|
||||||
'category','headertag','tag','rules','user','file','filelist','folderlist','imagelist','integer','timezone','media','meter'
|
'category','headertag','tag','rules','user','file','filelist','folderlist','imagelist','integer','timezone','media','meter'
|
||||||
|
),
|
||||||
|
'spacer' => array(
|
||||||
|
'note', 'spacer'
|
||||||
|
),
|
||||||
|
'option' => array(
|
||||||
|
'plugins', 'checkboxes', 'contentlanguage', 'list', 'radio', 'sql'
|
||||||
|
),
|
||||||
|
'special' => array(
|
||||||
|
'contentlanguage', 'groupedlist', 'moduleposition', 'plugin',
|
||||||
|
'repeatable', 'templatestyle', 'subform'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (in_array($type,$fields[$option]))
|
/**
|
||||||
|
* Field Checker
|
||||||
|
*
|
||||||
|
* @param string $type The field type
|
||||||
|
* @param boolean $option The field grouping
|
||||||
|
*
|
||||||
|
* @return boolean if the field was found
|
||||||
|
*/
|
||||||
|
public static function fieldCheck($type, $option = 'default')
|
||||||
|
{
|
||||||
|
// now check
|
||||||
|
if (isset(self::$fieldGroups[$option]) && in_array($type, self::$fieldGroups[$option]))
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the spacer IDs
|
||||||
|
*
|
||||||
|
* @return array ids of the spacer field types
|
||||||
|
*/
|
||||||
|
public static function getSpacerIds()
|
||||||
|
{
|
||||||
|
// get the database object to use quote
|
||||||
|
$db = JFactory::getDbo();
|
||||||
|
return self::getVars('fieldtype', (array) array_map(function($name) use($db) { return $db->quote(ucfirst($name)); }, self::$fieldGroups['spacer']), 'name', 'id');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set the session defaults if not set
|
* set the session defaults if not set
|
||||||
**/
|
**/
|
||||||
|
@ -22,6 +22,9 @@ COM_COMPONENTBUILDER_DTLICENSEDTDDSDD="<dt>License</dt><dd>%s</dd>"
|
|||||||
COM_COMPONENTBUILDER_DTOWNERDTDDSDD="<dt>Owner</dt><dd>%s</dd>"
|
COM_COMPONENTBUILDER_DTOWNERDTDDSDD="<dt>Owner</dt><dd>%s</dd>"
|
||||||
COM_COMPONENTBUILDER_DTWEBSITEDTDDSDD="<dt>Website</dt><dd>%s</dd>"
|
COM_COMPONENTBUILDER_DTWEBSITEDTDDSDD="<dt>Website</dt><dd>%s</dd>"
|
||||||
COM_COMPONENTBUILDER_EDIT_S="Edit %s"
|
COM_COMPONENTBUILDER_EDIT_S="Edit %s"
|
||||||
|
COM_COMPONENTBUILDER_EDIT_THE_ADMIN_FIELDS="Edit the admin fields"
|
||||||
|
COM_COMPONENTBUILDER_EDIT_THE_ADMIN_FIELDS_CONDITIONS="Edit the admin fields conditions"
|
||||||
|
COM_COMPONENTBUILDER_EDIT_THE_ADMIN_FIELDS_RELATIONS="Edit the admin fields relations"
|
||||||
COM_COMPONENTBUILDER_EMAIL_S="Email: %s"
|
COM_COMPONENTBUILDER_EMAIL_S="Email: %s"
|
||||||
COM_COMPONENTBUILDER_EMAIL_WITH_THE_NEW_KEY_WAS_SEND="Email with the new key was send"
|
COM_COMPONENTBUILDER_EMAIL_WITH_THE_NEW_KEY_WAS_SEND="Email with the new key was send"
|
||||||
COM_COMPONENTBUILDER_EMCOMPANYEM_BSB="<em>Company:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMCOMPANYEM_BSB="<em>Company:</em> <b>%s</b>"
|
||||||
@ -68,8 +71,19 @@ COM_COMPONENTBUILDER_THE_BPHPSECLIBNETSFTPB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_L
|
|||||||
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_PATH_ON_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> path on <b>%s</b> server."
|
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_PATH_ON_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> path on <b>%s</b> server."
|
||||||
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> server."
|
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> server."
|
||||||
COM_COMPONENTBUILDER_THE_BSB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESVDM_IOVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>%s</b> library\class is not available! This library\class should have been added to your <b>libraries/vdm_io/vendor</b> folder. Please contact your system administrator for more info!"
|
COM_COMPONENTBUILDER_THE_BSB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESVDM_IOVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>%s</b> library\class is not available! This library\class should have been added to your <b>libraries/vdm_io/vendor</b> folder. Please contact your system administrator for more info!"
|
||||||
|
COM_COMPONENTBUILDER_THE_COMPONENT_ADMIN_VIEWS="The component admin views"
|
||||||
|
COM_COMPONENTBUILDER_THE_COMPONENT_CONFIG="The component config"
|
||||||
|
COM_COMPONENTBUILDER_THE_COMPONENT_CUSTOM_ADMIN_MENUS="The component custom admin menus"
|
||||||
|
COM_COMPONENTBUILDER_THE_COMPONENT_CUSTOM_ADMIN_VIEWS="The component custom admin views"
|
||||||
|
COM_COMPONENTBUILDER_THE_COMPONENT_DASHBOARD="The component dashboard"
|
||||||
|
COM_COMPONENTBUILDER_THE_COMPONENT_FILES_FOLDERS="The component files & folders"
|
||||||
|
COM_COMPONENTBUILDER_THE_COMPONENT_MYSQL_TWEAKS="The component mysql tweaks"
|
||||||
|
COM_COMPONENTBUILDER_THE_COMPONENT_SITE_VIEWS="The component site views"
|
||||||
|
COM_COMPONENTBUILDER_THE_COMPONENT_UPDATES="The component updates"
|
||||||
COM_COMPONENTBUILDER_THE_FTP_CONNECTION_FOR_BSB_COULD_NOT_BE_MADE_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP connection for <b>%s</b> could not be made. Please check your signature details!"
|
COM_COMPONENTBUILDER_THE_FTP_CONNECTION_FOR_BSB_COULD_NOT_BE_MADE_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP connection for <b>%s</b> could not be made. Please check your signature details!"
|
||||||
COM_COMPONENTBUILDER_THE_FTP_SIGNATURE_FOR_BSB_WAS_NOT_WELL_FORMED_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP signature for <b>%s</b> was not well formed, please check your signature details!"
|
COM_COMPONENTBUILDER_THE_FTP_SIGNATURE_FOR_BSB_WAS_NOT_WELL_FORMED_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP signature for <b>%s</b> was not well formed, please check your signature details!"
|
||||||
|
COM_COMPONENTBUILDER_THE_LIBRARY_CONFIG_FIELDS="The library config fields"
|
||||||
|
COM_COMPONENTBUILDER_THE_LIBRARY_FILES_FOLDERS_URLS="The library files, folders & URLs"
|
||||||
COM_COMPONENTBUILDER_THE_LOGIN_TO_BSB_HAS_FAILED_PLEASE_CHECK_THAT_YOUR_DETAILS_ARE_CORRECT="The login to <b>%s</b> has failed, please check that your details are correct!"
|
COM_COMPONENTBUILDER_THE_LOGIN_TO_BSB_HAS_FAILED_PLEASE_CHECK_THAT_YOUR_DETAILS_ARE_CORRECT="The login to <b>%s</b> has failed, please check that your details are correct!"
|
||||||
COM_COMPONENTBUILDER_THE_PACKAGE_KEY_IS_CODESCODE="The package key is: <code>%s</code>"
|
COM_COMPONENTBUILDER_THE_PACKAGE_KEY_IS_CODESCODE="The package key is: <code>%s</code>"
|
||||||
COM_COMPONENTBUILDER_THE_PACKAGE_KEY_IS_S="The package key is: %s"
|
COM_COMPONENTBUILDER_THE_PACKAGE_KEY_IS_S="The package key is: %s"
|
||||||
|
Loading…
Reference in New Issue
Block a user