Converted all the JCB tables to have a DYNAMIC row format #371
12
README.md
12
README.md
@ -12,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.8) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.10) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -144,13 +144,13 @@ TODO
|
|||||||
+ *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*: 19th December, 2018
|
+ *Last Build*: 30th January, 2019
|
||||||
+ *Version*: 2.9.8
|
+ *Version*: 2.9.10
|
||||||
+ *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*: **195562**
|
+ *Line count*: **194699**
|
||||||
+ *Field count*: **1087**
|
+ *Field count*: **1089**
|
||||||
+ *File count*: **1275**
|
+ *File count*: **1277**
|
||||||
+ *Folder count*: **201**
|
+ *Folder count*: **201**
|
||||||
|
|
||||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||||
|
@ -12,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.8) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.9.10) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -144,13 +144,13 @@ TODO
|
|||||||
+ *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*: 19th December, 2018
|
+ *Last Build*: 30th January, 2019
|
||||||
+ *Version*: 2.9.8
|
+ *Version*: 2.9.10
|
||||||
+ *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*: **195562**
|
+ *Line count*: **194699**
|
||||||
+ *Field count*: **1087**
|
+ *Field count*: **1089**
|
||||||
+ *File count*: **1275**
|
+ *File count*: **1277**
|
||||||
+ *Folder count*: **201**
|
+ *Folder count*: **201**
|
||||||
|
|
||||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||||
|
@ -19,6 +19,13 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
*/
|
*/
|
||||||
abstract class ###Component###Email
|
abstract class ###Component###Email
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* The active recipient
|
||||||
|
*
|
||||||
|
* @var activeRecipient (array)
|
||||||
|
*/
|
||||||
|
public static $active = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuraiton object
|
* Configuraiton object
|
||||||
*
|
*
|
||||||
@ -54,6 +61,44 @@ abstract class ###Component###Email
|
|||||||
return self::$config;
|
return self::$config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the global mailer object, only creating it if it doesn't already exist.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static function getMailerInstance()
|
||||||
|
{
|
||||||
|
if (!self::$mailer)
|
||||||
|
{
|
||||||
|
self::$mailer = self::createMailer();
|
||||||
|
}
|
||||||
|
|
||||||
|
return self::$mailer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check that a string looks like an email address.
|
||||||
|
* @param string $address The email address to check
|
||||||
|
* @param string|callable $patternselect A selector for the validation pattern to use :
|
||||||
|
* * `auto` Pick best pattern automatically;
|
||||||
|
* * `pcre8` Use the squiloople.com pattern, requires PCRE > 8.0, PHP >= 5.3.2, 5.2.14;
|
||||||
|
* * `pcre` Use old PCRE implementation;
|
||||||
|
* * `php` Use PHP built-in FILTER_VALIDATE_EMAIL;
|
||||||
|
* * `html5` Use the pattern given by the HTML5 spec for 'email' type form input elements.
|
||||||
|
* * `noregex` Don't use a regex: super fast, really dumb.
|
||||||
|
* Alternatively you may pass in a callable to inject your own validator, for example:
|
||||||
|
* PHPMailer::validateAddress('user@example.com', function($address) {
|
||||||
|
* return (strpos($address, '@') !== false);
|
||||||
|
* });
|
||||||
|
* You can also set the PHPMailer::$validator static to a callable, allowing built-in methods to use your validator.
|
||||||
|
* @return boolean
|
||||||
|
* @static
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
public static function validateAddress($address, $patternselect = null)
|
||||||
|
{
|
||||||
|
return self::getMailerInstance()->validateAddress($address, $patternselect);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a mailer object.
|
* Get a mailer object.
|
||||||
*
|
*
|
||||||
@ -281,14 +326,71 @@ abstract class ###Component###Email
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (method_exists('###Component###Helper','storeMessage'))
|
if (method_exists('###Component###Helper','storeMessage'))
|
||||||
|
{
|
||||||
|
// if we have active recipient details
|
||||||
|
if (isset(self::$active[$recipient]))
|
||||||
|
{
|
||||||
|
// store the massage if the method is set
|
||||||
|
###Component###Helper::storeMessage($sendmail, self::$active[$recipient], $subject, $body, $textonly, $mode, 'email');
|
||||||
|
// clear memory
|
||||||
|
unset(self::$active[$recipient]);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
// store the massage if the method is set
|
// store the massage if the method is set
|
||||||
###Component###Helper::storeMessage($sendmail, $recipient, $subject, $body, $textonly, $mode, 'email');
|
###Component###Helper::storeMessage($sendmail, $recipient, $subject, $body, $textonly, $mode, 'email');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $sendmail;
|
return $sendmail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set html text (in a row) and subject (as title) to a email table.
|
||||||
|
* do not use <p> instead use <br />
|
||||||
|
* in your html that you pass to this method
|
||||||
|
* since it is a table row it does not
|
||||||
|
* work well with paragraphs
|
||||||
|
*
|
||||||
|
* @return string on success
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static function setBasicBody($html, $subject)
|
||||||
|
{
|
||||||
|
$body = array();
|
||||||
|
$body[] = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">";
|
||||||
|
$body[] = "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
|
||||||
|
$body[] = "<head>";
|
||||||
|
$body[] = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";
|
||||||
|
$body[] = "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>";
|
||||||
|
$body[] = "<title>" . $subject . "</title>";
|
||||||
|
$body[] = "<style type=\"text/css\">";
|
||||||
|
$body[] = "#outlook a {padding:0;}";
|
||||||
|
$body[] = ".ExternalClass {width:100%;}";
|
||||||
|
$body[] = ".ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} ";
|
||||||
|
$body[] = "p {margin: 0; padding: 0; font-size: 0px; line-height: 0px;} ";
|
||||||
|
$body[] = "table td {border-collapse: collapse;}";
|
||||||
|
$body[] = "table {border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }";
|
||||||
|
$body[] = "img {display: block; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic;}";
|
||||||
|
$body[] = "a img {border: none;}";
|
||||||
|
$body[] = "a {text-decoration: none; color: #000001;}";
|
||||||
|
$body[] = "a.phone {text-decoration: none; color: #000001 !important; pointer-events: auto; cursor: default;}";
|
||||||
|
$body[] = "span {font-size: 13px; line-height: 17px; font-family: monospace; color: #000001;}";
|
||||||
|
$body[] = "</style>";
|
||||||
|
$body[] = "<!--[if gte mso 9]>";
|
||||||
|
$body[] = "<style>";
|
||||||
|
$body[] = "/* Target Outlook 2007 and 2010 */";
|
||||||
|
$body[] = "</style>";
|
||||||
|
$body[] = "<![endif]-->";
|
||||||
|
$body[] = "</head>";
|
||||||
|
$body[] = "<body style=\"width:100%; margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;\">";
|
||||||
|
$body[] = $html;
|
||||||
|
$body[] = "</body>";
|
||||||
|
$body[] = "</html>";
|
||||||
|
|
||||||
|
return implode("\n", $body);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set html text (in a row) and subject (as title) to a email table.
|
* Set html text (in a row) and subject (as title) to a email table.
|
||||||
* do not use <p> instead use <br />
|
* do not use <p> instead use <br />
|
||||||
|
@ -42,6 +42,8 @@ class ###Component###View###Views### extends JViewLegacy
|
|||||||
$this->listOrder = $this->escape($this->state->get('list.ordering'));
|
$this->listOrder = $this->escape($this->state->get('list.ordering'));
|
||||||
$this->listDirn = $this->escape($this->state->get('list.direction'));
|
$this->listDirn = $this->escape($this->state->get('list.direction'));
|
||||||
$this->saveOrder = $this->listOrder == 'ordering';
|
$this->saveOrder = $this->listOrder == 'ordering';
|
||||||
|
// set the return here value
|
||||||
|
$this->return_here = urlencode(base64_encode((string) JUri::getInstance()));
|
||||||
// get global action permissions
|
// get global action permissions
|
||||||
$this->canDo = ###Component###Helper::getActions('###view###');###JVIEWLISTCANDO###
|
$this->canDo = ###Component###Helper::getActions('###view###');###JVIEWLISTCANDO###
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -38,20 +37,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -23,16 +23,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
###LAYOUTITEMS###
|
###LAYOUTITEMS###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -17,7 +17,6 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -19,13 +19,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
###LAYOUTITEMS###
|
###LAYOUTITEMS###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -157,6 +157,10 @@ abstract class ###Component###HelperRoute
|
|||||||
self::$lookup[$language][$view][$item->query['id']] = $item->id;
|
self::$lookup[$language][$view][$item->query['id']] = $item->id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
self::$lookup[$language][$view][0] = $item->id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -166,6 +170,8 @@ abstract class ###Component###HelperRoute
|
|||||||
foreach ($needles as $view => $ids)
|
foreach ($needles as $view => $ids)
|
||||||
{
|
{
|
||||||
if (isset(self::$lookup[$language][$view]))
|
if (isset(self::$lookup[$language][$view]))
|
||||||
|
{
|
||||||
|
if (###Component###Helper::checkArray($ids))
|
||||||
{
|
{
|
||||||
foreach ($ids as $id)
|
foreach ($ids as $id)
|
||||||
{
|
{
|
||||||
@ -175,6 +181,11 @@ abstract class ###Component###HelperRoute
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
elseif (isset(self::$lookup[$language][$view][0]))
|
||||||
|
{
|
||||||
|
return self::$lookup[$language][$view][0];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,19 +5,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('###view###, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('###view###, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -5,19 +5,9 @@ Joomla.submitbutton = function(task)
|
|||||||
if (task == ''){
|
if (task == ''){
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
var isValid=true;
|
|
||||||
var action = task.split('.');
|
var action = task.split('.');
|
||||||
if (action[1] != 'cancel' && action[1] != 'close'){
|
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||||
var forms = $$('form.form-validate');
|
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||||
for (var i=0;i<forms.length;i++){
|
|
||||||
if (!document.formvalidator.isValid(forms[i])){
|
|
||||||
isValid = false;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (isValid){
|
|
||||||
Joomla.submitform(task);
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
alert(Joomla.JText._('###sview###, some values are not acceptable.','Some values are unacceptable'));
|
alert(Joomla.JText._('###sview###, some values are not acceptable.','Some values are unacceptable'));
|
||||||
|
@ -718,7 +718,8 @@ class Get
|
|||||||
public $mysqlTableKeys = array(
|
public $mysqlTableKeys = array(
|
||||||
'engine' => array('default' => 'MyISAM'),
|
'engine' => array('default' => 'MyISAM'),
|
||||||
'charset' => array('default' => 'utf8'),
|
'charset' => array('default' => 'utf8'),
|
||||||
'collate' => array('default' => 'utf8_general_ci')
|
'collate' => array('default' => 'utf8_general_ci'),
|
||||||
|
'row_format' => array('default' => '')
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3007,16 +3008,26 @@ class Get
|
|||||||
switch ($result->main_source)
|
switch ($result->main_source)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
|
// check if auto sync is set
|
||||||
|
if ($result->select_all == 1)
|
||||||
|
{
|
||||||
|
$result->view_selection = '*';
|
||||||
|
}
|
||||||
// set the view data
|
// set the view data
|
||||||
$result->main_get[0]['selection'] = $this->setDataSelection($result->key, $view_code, $result->view_selection, $result->view_table_main, 'a', '', 'view');
|
$result->main_get[0]['selection'] = $this->setDataSelection($result->key, $view_code, $result->view_selection, $result->view_table_main, 'a', null, 'view');
|
||||||
$result->main_get[0]['as'] = 'a';
|
$result->main_get[0]['as'] = 'a';
|
||||||
$result->main_get[0]['key'] = $result->key;
|
$result->main_get[0]['key'] = $result->key;
|
||||||
$result->main_get[0]['context'] = $context;
|
$result->main_get[0]['context'] = $context;
|
||||||
unset($result->view_selection);
|
unset($result->view_selection);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
// check if auto sync is set
|
||||||
|
if ($result->select_all == 1)
|
||||||
|
{
|
||||||
|
$result->db_selection = '*';
|
||||||
|
}
|
||||||
// set the database data
|
// set the database data
|
||||||
$result->main_get[0]['selection'] = $this->setDataSelection($result->key, $view_code, $result->db_selection, $result->db_table_main, 'a', '', 'db');
|
$result->main_get[0]['selection'] = $this->setDataSelection($result->key, $view_code, $result->db_selection, $result->db_table_main, 'a', null, 'db');
|
||||||
$result->main_get[0]['as'] = 'a';
|
$result->main_get[0]['as'] = 'a';
|
||||||
$result->main_get[0]['key'] = $result->key;
|
$result->main_get[0]['key'] = $result->key;
|
||||||
$result->main_get[0]['context'] = $context;
|
$result->main_get[0]['context'] = $context;
|
||||||
@ -4197,9 +4208,6 @@ class Get
|
|||||||
public function setDataSelection($method_key, $view_code, $string, $asset, $as, $row_type, $type)
|
public function setDataSelection($method_key, $view_code, $string, $asset, $as, $row_type, $type)
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkString($string))
|
if (ComponentbuilderHelper::checkString($string))
|
||||||
{
|
|
||||||
$lines = explode(PHP_EOL, $string);
|
|
||||||
if (ComponentbuilderHelper::checkArray($lines))
|
|
||||||
{
|
{
|
||||||
if ('db' === $type)
|
if ('db' === $type)
|
||||||
{
|
{
|
||||||
@ -4213,6 +4221,30 @@ class Get
|
|||||||
$table = '#__' . $this->componentCodeName . '_' . $view;
|
$table = '#__' . $this->componentCodeName . '_' . $view;
|
||||||
$queryName = $view;
|
$queryName = $view;
|
||||||
}
|
}
|
||||||
|
// just get all values from table if * is found
|
||||||
|
if ($string === '*' || strpos($string, '*') !== false)
|
||||||
|
{
|
||||||
|
if ($type == 'view')
|
||||||
|
{
|
||||||
|
$_string = ComponentbuilderHelper::getViewTableColumns($asset, $as, $row_type);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$_string = ComponentbuilderHelper::getDbTableColumns($asset, $as, $row_type);
|
||||||
|
}
|
||||||
|
// get only selected values
|
||||||
|
$lines = explode(PHP_EOL, $_string);
|
||||||
|
// make sure to set the string to *
|
||||||
|
$string = '*';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// get only selected values
|
||||||
|
$lines = explode(PHP_EOL, $string);
|
||||||
|
}
|
||||||
|
// only continue if lines are available
|
||||||
|
if (ComponentbuilderHelper::checkArray($lines))
|
||||||
|
{
|
||||||
$gets = array();
|
$gets = array();
|
||||||
$keys = array();
|
$keys = array();
|
||||||
// first load all options
|
// first load all options
|
||||||
@ -4270,8 +4302,17 @@ class Get
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ComponentbuilderHelper::checkArray($gets) && ComponentbuilderHelper::checkArray($keys))
|
if (ComponentbuilderHelper::checkArray($gets) && ComponentbuilderHelper::checkArray($keys))
|
||||||
|
{
|
||||||
|
// single joined selection needs the prefix to the values to avoid conflict in the names
|
||||||
|
// so we most still add then AS
|
||||||
|
if ($string == '*' && 1 != $row_type)
|
||||||
|
{
|
||||||
|
$querySelect = "\$query->select('" . $as . ".*');";
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
$querySelect = '$query->select($db->quoteName(' . PHP_EOL . $this->_t(3) . 'array(' . implode(',', $gets) . '),' . PHP_EOL . $this->_t(3) . 'array(' . implode(',', $keys) . ')));';
|
$querySelect = '$query->select($db->quoteName(' . PHP_EOL . $this->_t(3) . 'array(' . implode(',', $gets) . '),' . PHP_EOL . $this->_t(3) . 'array(' . implode(',', $keys) . ')));';
|
||||||
|
}
|
||||||
$queryFrom = '$db->quoteName(' . $this->db->quote($table) . ', ' . $this->db->quote($as) . ')';
|
$queryFrom = '$db->quoteName(' . $this->db->quote($table) . ', ' . $this->db->quote($as) . ')';
|
||||||
// return the select query
|
// return the select query
|
||||||
return array('select' => $querySelect, 'from' => $queryFrom, 'name' => $queryName, 'table' => $table, 'type' => $type, 'select_gets' => $gets, 'select_keys' => $keys);
|
return array('select' => $querySelect, 'from' => $queryFrom, 'name' => $queryName, 'table' => $table, 'type' => $type, 'select_gets' => $gets, 'select_keys' => $keys);
|
||||||
@ -4915,7 +4956,7 @@ class Get
|
|||||||
// when the custom code is loaded
|
// when the custom code is loaded
|
||||||
if ($loaded === true)
|
if ($loaded === true)
|
||||||
{
|
{
|
||||||
$string = $this->insertCustomCode($string, $debug);
|
$string = $this->insertCustomCode($bucket, $string, $debug);
|
||||||
}
|
}
|
||||||
// if debug
|
// if debug
|
||||||
if ($debug)
|
if ($debug)
|
||||||
@ -4936,19 +4977,13 @@ class Get
|
|||||||
* @return string on success
|
* @return string on success
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
protected function insertCustomCode($string, $debug = 0)
|
protected function insertCustomCode($ids, $string, $debug = 0)
|
||||||
{
|
{
|
||||||
$code = array();
|
$code = array();
|
||||||
// if debug
|
|
||||||
if ($debug)
|
|
||||||
{
|
|
||||||
echo '$this->customCode:';
|
|
||||||
var_dump($this->customCode);
|
|
||||||
}
|
|
||||||
// load the code
|
// load the code
|
||||||
foreach ($this->customCode as $item)
|
foreach ($ids as $id)
|
||||||
{
|
{
|
||||||
$this->buildCustomCodePlaceholders($item, $code, $debug);
|
$this->buildCustomCodePlaceholders($this->customCodeMemory[$id], $code, $debug);
|
||||||
}
|
}
|
||||||
// if debug
|
// if debug
|
||||||
if ($debug)
|
if ($debug)
|
||||||
|
@ -1427,18 +1427,18 @@ class Fields extends Structure
|
|||||||
elseif ($typeName === 'subform')
|
elseif ($typeName === 'subform')
|
||||||
{
|
{
|
||||||
// now add to the field set
|
// now add to the field set
|
||||||
$field .= PHP_EOL . $this->_t(2) . "<!--" . $this->setLine(__LINE__) . " " . ComponentbuilderHelper::safeString($name, 'F') . " Field. Type: " . ComponentbuilderHelper::safeString($typeName, 'F') . ". (joomla) -->";
|
$field .= PHP_EOL . $this->_t(2) . $taber . "<!--" . $this->setLine(__LINE__) . " " . ComponentbuilderHelper::safeString($name, 'F') . " Field. Type: " . ComponentbuilderHelper::safeString($typeName, 'F') . ". (joomla) -->";
|
||||||
$field .= PHP_EOL . $this->_t(2) . "<field";
|
$field .= PHP_EOL . $this->_t(2) . $taber . "<field";
|
||||||
$fieldsSet = array();
|
$fieldsSet = array();
|
||||||
foreach ($fieldAttributes as $property => $value)
|
foreach ($fieldAttributes as $property => $value)
|
||||||
{
|
{
|
||||||
if ($property != 'fields')
|
if ($property != 'fields')
|
||||||
{
|
{
|
||||||
$field .= PHP_EOL . $this->_t(3) . $property . '="' . $value . '"';
|
$field .= PHP_EOL . $this->_t(3) . $taber . $property . '="' . $value . '"';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$field .= ">";
|
$field .= ">";
|
||||||
$field .= PHP_EOL . $this->_t(3) . '<form hidden="true" name="list_' . $fieldAttributes['name'] . '_modal" repeat="true">';
|
$field .= PHP_EOL . $this->_t(3) . $taber . '<form hidden="true" name="list_' . $fieldAttributes['name'] . '_modal" repeat="true">';
|
||||||
if (strpos($fieldAttributes['fields'], ',') !== false)
|
if (strpos($fieldAttributes['fields'], ',') !== false)
|
||||||
{
|
{
|
||||||
// mulitpal fields
|
// mulitpal fields
|
||||||
@ -1475,7 +1475,7 @@ class Fields extends Structure
|
|||||||
$r_multiple = false;
|
$r_multiple = false;
|
||||||
$r_langLabel = '';
|
$r_langLabel = '';
|
||||||
// add the tabs needed
|
// add the tabs needed
|
||||||
$r_taber = $this->_t(2);
|
$r_taber = $this->_t(2) . $taber;
|
||||||
// get field values
|
// get field values
|
||||||
$r_fieldValues = $this->setFieldAttributes($fieldData, $view, $r_name, $r_typeName, $r_multiple, $r_langLabel, $langView, $view_name_list, $view_name_single, $placeholders, true);
|
$r_fieldValues = $this->setFieldAttributes($fieldData, $view, $r_name, $r_typeName, $r_multiple, $r_langLabel, $langView, $view_name_list, $view_name_single, $placeholders, true);
|
||||||
// check if values were set
|
// check if values were set
|
||||||
@ -1493,6 +1493,24 @@ class Fields extends Structure
|
|||||||
// 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);
|
||||||
}
|
}
|
||||||
|
elseif ($r_typeName === 'subform')
|
||||||
|
{
|
||||||
|
// set nested depth
|
||||||
|
if (isset($fieldAttributes['nested_depth']))
|
||||||
|
{
|
||||||
|
$r_fieldValues['nested_depth'] = ++$fieldAttributes['nested_depth'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$r_fieldValues['nested_depth'] = 1;
|
||||||
|
}
|
||||||
|
// only continue if nest is bellow 20 (this should be a safe limit)
|
||||||
|
if ($r_fieldValues['nested_depth'] <= 20)
|
||||||
|
{
|
||||||
|
// now add to the field set
|
||||||
|
$field .= $this->setField('special', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray, null, $r_taber);
|
||||||
|
}
|
||||||
|
}
|
||||||
elseif (ComponentbuilderHelper::checkArray($r_fieldValues['custom']))
|
elseif (ComponentbuilderHelper::checkArray($r_fieldValues['custom']))
|
||||||
{
|
{
|
||||||
// add to custom
|
// add to custom
|
||||||
@ -1518,8 +1536,8 @@ class Fields extends Structure
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$field .= PHP_EOL . $this->_t(3) . "</form>";
|
$field .= PHP_EOL . $this->_t(3) . $taber . "</form>";
|
||||||
$field .= PHP_EOL . $this->_t(2) . "</field>";
|
$field .= PHP_EOL . $this->_t(2) . $taber . "</field>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif ($setType === 'custom')
|
elseif ($setType === 'custom')
|
||||||
@ -1862,6 +1880,25 @@ class Fields extends Structure
|
|||||||
// 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));
|
||||||
}
|
}
|
||||||
|
elseif ($r_typeName === 'subform')
|
||||||
|
{
|
||||||
|
// set nested depth
|
||||||
|
if (isset($fieldAttributes['nested_depth']))
|
||||||
|
{
|
||||||
|
$r_fieldValues['nested_depth'] = ++$fieldAttributes['nested_depth'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$r_fieldValues['nested_depth'] = 1;
|
||||||
|
}
|
||||||
|
// only continue if nest is bellow 20 (this should be a safe limit)
|
||||||
|
if ($r_fieldValues['nested_depth'] <= 20)
|
||||||
|
{
|
||||||
|
// now add to the field set
|
||||||
|
ComponentbuilderHelper::xmlAppend($form, $this->setField('special', $r_fieldValues, $r_name, $r_typeName, $langView, $view_name_single, $view_name_list, $placeholders, $r_optionArray));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
elseif (ComponentbuilderHelper::checkArray($r_fieldValues['custom']))
|
elseif (ComponentbuilderHelper::checkArray($r_fieldValues['custom']))
|
||||||
{
|
{
|
||||||
// add to custom
|
// add to custom
|
||||||
|
@ -614,7 +614,7 @@ class Interpretation extends Fields
|
|||||||
}
|
}
|
||||||
// give notice of this issue
|
// give notice of this issue
|
||||||
$this->app->enqueueMessage(JText::_('<hr /><h3>WHMCS Error</h3>'), 'Error');
|
$this->app->enqueueMessage(JText::_('<hr /><h3>WHMCS Error</h3>'), 'Error');
|
||||||
$this->app->enqueueMessage(JText::sprintf('The <b>WHMCS class</b> could not be added to this component. You will need to enable the add-on in the Joomla Component area (Add WHMCS)->Yes.', $this->libraries[$id]->name), 'Error');
|
$this->app->enqueueMessage(JText::sprintf('The <b>WHMCS class</b> could not be added to this component. You will need to enable the add-on in the Joomla Component area (Add WHMCS)->Yes. If you have done this, then please check that you have your own <b>Basic Encryption<b/> set in the global settings of JCB. Then open and save this component again, making sure that your WHMCS settings are still correct.', $this->libraries[$id]->name), 'Error');
|
||||||
return "//" . $this->setLine(__LINE__) . " The WHMCS class could not be added to this component." . PHP_EOL . "//" . $this->setLine(__LINE__) . " Please note that you will need to enable the add-on in the Joomla Component area (Add WHMCS)->Yes.";
|
return "//" . $this->setLine(__LINE__) . " The WHMCS class could not be added to this component." . PHP_EOL . "//" . $this->setLine(__LINE__) . " Please note that you will need to enable the add-on in the Joomla Component area (Add WHMCS)->Yes.";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5270,7 +5270,9 @@ class Interpretation extends Fields
|
|||||||
$routeHelper[] = $this->_t(2) . "else";
|
$routeHelper[] = $this->_t(2) . "else";
|
||||||
$routeHelper[] = $this->_t(2) . "{";
|
$routeHelper[] = $this->_t(2) . "{";
|
||||||
$routeHelper[] = $this->_t(3) . "//" . $this->setLine(__LINE__) . " Initialize the needel array.";
|
$routeHelper[] = $this->_t(3) . "//" . $this->setLine(__LINE__) . " Initialize the needel array.";
|
||||||
$routeHelper[] = $this->_t(3) . "\$needles = array();";
|
$routeHelper[] = $this->_t(3) . "\$needles = array(";
|
||||||
|
$routeHelper[] = $this->_t(4) . "'" . $viewName_single . "' => array()";
|
||||||
|
$routeHelper[] = $this->_t(3) . ");";
|
||||||
$routeHelper[] = $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create the link but don't add the id.";
|
$routeHelper[] = $this->_t(3) . "//" . $this->setLine(__LINE__) . " Create the link but don't add the id.";
|
||||||
$routeHelper[] = $this->_t(3) . "\$link = 'index.php?option=com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . "&view=" . $viewName_single . "';";
|
$routeHelper[] = $this->_t(3) . "\$link = 'index.php?option=com_" . $this->fileContentStatic[$this->hhh . 'component' . $this->hhh] . "&view=" . $viewName_single . "';";
|
||||||
$routeHelper[] = $this->_t(2) . "}";
|
$routeHelper[] = $this->_t(2) . "}";
|
||||||
@ -6358,7 +6360,13 @@ class Interpretation extends Fields
|
|||||||
$easy[$_mysqlTableKey] = $this->mysqlTableKeys[$_mysqlTableKey]['default'];
|
$easy[$_mysqlTableKey] = $this->mysqlTableKeys[$_mysqlTableKey]['default'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$db_ .= PHP_EOL . ") ENGINE=" . $easy['engine'] . " AUTO_INCREMENT=0 DEFAULT CHARSET=" . $easy['charset'] . " DEFAULT COLLATE=" . $easy['collate'] . ";";
|
// add a little fix for the row_format
|
||||||
|
if (ComponentbuilderHelper::checkString($easy['row_format']))
|
||||||
|
{
|
||||||
|
$easy['row_format'] = ' ROW_FORMAT=' . $easy['row_format'];
|
||||||
|
}
|
||||||
|
// now build db string
|
||||||
|
$db_ .= PHP_EOL . ") ENGINE=" . $easy['engine'] . " AUTO_INCREMENT=0 DEFAULT CHARSET=" . $easy['charset'] . " DEFAULT COLLATE=" . $easy['collate'] . $easy['row_format'] . ";";
|
||||||
|
|
||||||
// check if this is a new table that should be added via update SQL
|
// check if this is a new table that should be added via update SQL
|
||||||
if (isset($this->addSQL['adminview']) && ComponentbuilderHelper::checkArray($this->addSQL['adminview']) && in_array($view, $this->addSQL['adminview']))
|
if (isset($this->addSQL['adminview']) && ComponentbuilderHelper::checkArray($this->addSQL['adminview']) && in_array($view, $this->addSQL['adminview']))
|
||||||
@ -6366,6 +6374,12 @@ class Interpretation extends Fields
|
|||||||
// build the update array
|
// build the update array
|
||||||
$this->updateSQLBuilder["CREATETABLEIFNOTEXISTS`#__" . $component . "_" . $view . "`"] = $db_;
|
$this->updateSQLBuilder["CREATETABLEIFNOTEXISTS`#__" . $component . "_" . $view . "`"] = $db_;
|
||||||
}
|
}
|
||||||
|
// check if the table row_format has changed
|
||||||
|
if (ComponentbuilderHelper::checkString($easy['row_format']) && isset($this->updateSQL['table_row_format']) && isset($this->updateSQL['table_row_format'][$view]))
|
||||||
|
{
|
||||||
|
// build the update array
|
||||||
|
$this->updateSQLBuilder["ALTERTABLE`#__" . $component . "_" . $view . "`" . trim($easy['row_format'])] = "ALTER TABLE `#__" . $component . "_" . $view . "`" . $easy['row_format'] . ";";
|
||||||
|
}
|
||||||
// check if the table engine has changed
|
// check if the table engine has changed
|
||||||
if (isset($this->updateSQL['table_engine']) && isset($this->updateSQL['table_engine'][$view]))
|
if (isset($this->updateSQL['table_engine']) && isset($this->updateSQL['table_engine'][$view]))
|
||||||
{
|
{
|
||||||
@ -7110,7 +7124,7 @@ class Interpretation extends Fields
|
|||||||
$referal = '';
|
$referal = '';
|
||||||
if (!$ref)
|
if (!$ref)
|
||||||
{
|
{
|
||||||
$ref = '&ref=' . $viewName_list;
|
$ref = '&return=<?php echo $this->return_here; ?>';
|
||||||
}
|
}
|
||||||
// in linked tab/view so must add ref to default
|
// in linked tab/view so must add ref to default
|
||||||
else
|
else
|
||||||
|
@ -1011,6 +1011,174 @@ abstract class ComponentbuilderHelper
|
|||||||
return '<div>'.JText::_('COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE').'</div>';
|
return '<div>'.JText::_('COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE').'</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the database table columns
|
||||||
|
**/
|
||||||
|
public static function getDbTableColumns($tableName, $as, $type)
|
||||||
|
{
|
||||||
|
// Get a db connection.
|
||||||
|
$db = JFactory::getDbo();
|
||||||
|
// get the columns
|
||||||
|
$columns = $db->getTableColumns("#__" . $tableName);
|
||||||
|
// set the type (multi or single)
|
||||||
|
$unique = '';
|
||||||
|
if (1 == $type)
|
||||||
|
{
|
||||||
|
$unique = self::safeString($tableName) . '_';
|
||||||
|
}
|
||||||
|
if (self::checkArray($columns))
|
||||||
|
{
|
||||||
|
// build the return string
|
||||||
|
$tableColumns = array();
|
||||||
|
foreach ($columns as $column => $typeCast)
|
||||||
|
{
|
||||||
|
$tableColumns[] = $as . "." . $column . ' AS ' . $unique . $column;
|
||||||
|
}
|
||||||
|
return implode("\n", $tableColumns);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the view table columns
|
||||||
|
**/
|
||||||
|
public static function getViewTableColumns($admin_view, $as, $type)
|
||||||
|
{
|
||||||
|
// Get a db connection.
|
||||||
|
$db = JFactory::getDbo();
|
||||||
|
|
||||||
|
// Create a new query object.
|
||||||
|
$query = $db->getQuery(true);
|
||||||
|
$query->select($db->quoteName(array('a.addfields', 'b.name_single')));
|
||||||
|
$query->from($db->quoteName('#__componentbuilder_admin_fields', 'a'));
|
||||||
|
$query->join('LEFT', $db->quoteName('#__componentbuilder_admin_view', 'b') . ' ON (' . $db->quoteName('a.admin_view') . ' = ' . $db->quoteName('b.id') . ')');
|
||||||
|
$query->where($db->quoteName('b.published') . ' = 1');
|
||||||
|
$query->where($db->quoteName('a.admin_view') . ' = ' . (int) $admin_view);
|
||||||
|
|
||||||
|
// Reset the query using our newly populated query object.
|
||||||
|
$db->setQuery($query);
|
||||||
|
$db->execute();
|
||||||
|
if ($db->getNumRows())
|
||||||
|
{
|
||||||
|
$result = $db->loadObject();
|
||||||
|
$tableName = '';
|
||||||
|
if (1 == $type)
|
||||||
|
{
|
||||||
|
$tableName = self::safeString($result->name_single) . '_';
|
||||||
|
}
|
||||||
|
$addfields = json_decode($result->addfields, true);
|
||||||
|
if (self::checkArray($addfields))
|
||||||
|
{
|
||||||
|
// reset all buckets
|
||||||
|
$field = array();
|
||||||
|
$fields = array();
|
||||||
|
// get data
|
||||||
|
foreach ($addfields as $nr => $value)
|
||||||
|
{
|
||||||
|
$tmp = self::getFieldNameAndType((int) $value['field']);
|
||||||
|
if (self::checkArray($tmp))
|
||||||
|
{
|
||||||
|
$field[$nr] = $tmp;
|
||||||
|
}
|
||||||
|
// insure it is set to alias if needed
|
||||||
|
if (isset($value['alias']) && $value['alias'] == 1)
|
||||||
|
{
|
||||||
|
$field[$nr]['name'] = 'alias';
|
||||||
|
}
|
||||||
|
// remove a field that is not being stored in the database
|
||||||
|
if (!isset($value['list']) || $value['list'] == 2)
|
||||||
|
{
|
||||||
|
unset($field[$nr]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// add the basic defaults
|
||||||
|
$fields[] = $as . ".id AS " . $tableName . "id";
|
||||||
|
$fields[] = $as . ".asset_id AS " . $tableName . "asset_id";
|
||||||
|
// load data
|
||||||
|
foreach ($field as $n => $f)
|
||||||
|
{
|
||||||
|
if (self::checkArray($f))
|
||||||
|
{
|
||||||
|
$fields[] = $as . "." . $f['name'] . " AS " . $tableName . $f['name'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// add the basic defaults
|
||||||
|
$fields[] = $as . ".published AS " . $tableName . "published";
|
||||||
|
$fields[] = $as . ".created_by AS " . $tableName . "created_by";
|
||||||
|
$fields[] = $as . ".modified_by AS " . $tableName . "modified_by";
|
||||||
|
$fields[] = $as . ".created AS " . $tableName . "created";
|
||||||
|
$fields[] = $as . ".modified AS " . $tableName . "modified";
|
||||||
|
$fields[] = $as . ".version AS " . $tableName . "version";
|
||||||
|
$fields[] = $as . ".hits AS " . $tableName . "hits";
|
||||||
|
if (0) // TODO access is not set here but per/view in the form linking this admin view to which these field belong to the components (boooo I know but that is the case and so we can't ever really know at this point if this view has access set)
|
||||||
|
{
|
||||||
|
$fields[] = $as . ".access AS " . $tableName . "access";
|
||||||
|
}
|
||||||
|
$fields[] = $as . ".ordering AS " . $tableName . "ordering";
|
||||||
|
// return the field of this view
|
||||||
|
return implode("\n", $fields);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected static function getFieldNameAndType($id)
|
||||||
|
{
|
||||||
|
// Get a db connection.
|
||||||
|
$db = JFactory::getDbo();
|
||||||
|
|
||||||
|
// Create a new query object.
|
||||||
|
$query = $db->getQuery(true);
|
||||||
|
|
||||||
|
// Order it by the ordering field.
|
||||||
|
$query->select($db->quoteName(array('a.name', 'a.xml')));
|
||||||
|
$query->select($db->quoteName(array('c.name'), array('type_name')));
|
||||||
|
$query->from('#__componentbuilder_field AS a');
|
||||||
|
$query->join('LEFT', $db->quoteName('#__componentbuilder_fieldtype', 'c') . ' ON (' . $db->quoteName('a.fieldtype') . ' = ' . $db->quoteName('c.id') . ')');
|
||||||
|
$query->where($db->quoteName('a.id') . ' = '. $db->quote($id));
|
||||||
|
|
||||||
|
// Reset the query using our newly populated query object.
|
||||||
|
$db->setQuery($query);
|
||||||
|
$db->execute();
|
||||||
|
if ($db->getNumRows())
|
||||||
|
{
|
||||||
|
// Load the results as a list of stdClass objects (see later for more options on retrieving data).
|
||||||
|
$field = $db->loadObject();
|
||||||
|
// load the values form params
|
||||||
|
$field->xml = json_decode($field->xml);
|
||||||
|
$field->type_name = self::safeString($field->type_name);
|
||||||
|
$load = true;
|
||||||
|
// if category then name must be catid (only one per view)
|
||||||
|
if ($field->type_name == 'category')
|
||||||
|
{
|
||||||
|
$name = 'catid';
|
||||||
|
}
|
||||||
|
// if tag is set then enable all tag options for this view (only one per view)
|
||||||
|
elseif ($field->type_name == 'tag')
|
||||||
|
{
|
||||||
|
$name = 'tags';
|
||||||
|
}
|
||||||
|
// don't add spacers or notes
|
||||||
|
elseif ($field->type_name == 'spacer' || $field->type_name == 'note')
|
||||||
|
{
|
||||||
|
// make sure the name is unique
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$name = self::safeString(self::getBetween($field->xml,'name="','"'));
|
||||||
|
}
|
||||||
|
|
||||||
|
// use field core name only if not found in xml
|
||||||
|
if (!self::checkString($name))
|
||||||
|
{
|
||||||
|
$name = self::safeString($field->name);;
|
||||||
|
}
|
||||||
|
return array('name' => $name, 'type' => $field->type_name);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The array of dynamic content
|
* The array of dynamic content
|
||||||
*
|
*
|
||||||
@ -1354,9 +1522,15 @@ abstract class ComponentbuilderHelper
|
|||||||
{
|
{
|
||||||
$it = new RecursiveDirectoryIterator($dir);
|
$it = new RecursiveDirectoryIterator($dir);
|
||||||
$it = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
|
$it = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST);
|
||||||
|
// remove ending /
|
||||||
|
$dir = rtrim($dir, '/');
|
||||||
|
// now loop the files & folders
|
||||||
foreach ($it as $file)
|
foreach ($it as $file)
|
||||||
{
|
{
|
||||||
if ('.' === $file->getBasename() || '..' === $file->getBasename()) continue;
|
if ('.' === $file->getBasename() || '..' === $file->getBasename()) continue;
|
||||||
|
// set file dir
|
||||||
|
$file_dir = $file->getPathname();
|
||||||
|
// check if this is a dir or a file
|
||||||
if ($file->isDir())
|
if ($file->isDir())
|
||||||
{
|
{
|
||||||
$keeper = false;
|
$keeper = false;
|
||||||
@ -1364,7 +1538,7 @@ abstract class ComponentbuilderHelper
|
|||||||
{
|
{
|
||||||
foreach ($ignore as $keep)
|
foreach ($ignore as $keep)
|
||||||
{
|
{
|
||||||
if (strpos($file->getPathname(), $dir.'/'.$keep) !== false)
|
if (strpos($file_dir, $dir.'/'.$keep) !== false)
|
||||||
{
|
{
|
||||||
$keeper = true;
|
$keeper = true;
|
||||||
}
|
}
|
||||||
@ -1374,7 +1548,7 @@ abstract class ComponentbuilderHelper
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
JFolder::delete($file->getPathname());
|
JFolder::delete($file_dir);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1383,7 +1557,7 @@ abstract class ComponentbuilderHelper
|
|||||||
{
|
{
|
||||||
foreach ($ignore as $keep)
|
foreach ($ignore as $keep)
|
||||||
{
|
{
|
||||||
if (strpos($file->getPathname(), $dir.'/'.$keep) !== false)
|
if (strpos($file_dir, $dir.'/'.$keep) !== false)
|
||||||
{
|
{
|
||||||
$keeper = true;
|
$keeper = true;
|
||||||
}
|
}
|
||||||
@ -1393,9 +1567,10 @@ abstract class ComponentbuilderHelper
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
JFile::delete($file->getPathname());
|
JFile::delete($file_dir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// delete the root folder if not ignore found
|
||||||
if (!self::checkArray($ignore))
|
if (!self::checkArray($ignore))
|
||||||
{
|
{
|
||||||
return JFolder::delete($dir);
|
return JFolder::delete($dir);
|
||||||
@ -2356,11 +2531,12 @@ abstract class ComponentbuilderHelper
|
|||||||
*
|
*
|
||||||
* @param string $data The base64 string
|
* @param string $data The base64 string
|
||||||
* @param string $key We store the string with that suffix :)
|
* @param string $key We store the string with that suffix :)
|
||||||
|
* @param string $default The default switch
|
||||||
*
|
*
|
||||||
* @return string The opened string
|
* @return string The opened string
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public static function openValidBase64($data, $key = '__.o0=base64=Oo.__')
|
public static function openValidBase64($data, $key = '__.o0=base64=Oo.__', $default = 'string')
|
||||||
{
|
{
|
||||||
// check that we have a string
|
// check that we have a string
|
||||||
if (self::checkString($data))
|
if (self::checkString($data))
|
||||||
@ -2379,8 +2555,13 @@ abstract class ComponentbuilderHelper
|
|||||||
return base64_decode($data);
|
return base64_decode($data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// check if we should just return the string
|
||||||
|
if ('string' === $default)
|
||||||
|
{
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
return $default;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3884,6 +4065,11 @@ abstract class ComponentbuilderHelper
|
|||||||
*/
|
*/
|
||||||
public static function getEditURL(&$item, $view, $views, $ref = '', $component = 'com_componentbuilder', $jRoute = true)
|
public static function getEditURL(&$item, $view, $views, $ref = '', $component = 'com_componentbuilder', $jRoute = true)
|
||||||
{
|
{
|
||||||
|
// make sure the user has access to view
|
||||||
|
if (!JFactory::getUser()->authorise($view. '.access', $component))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
// build record
|
// build record
|
||||||
$record = new stdClass();
|
$record = new stdClass();
|
||||||
// check that we have the ID
|
// check that we have the ID
|
||||||
|
@ -14,6 +14,13 @@
|
|||||||
*/
|
*/
|
||||||
abstract class ComponentbuilderEmail
|
abstract class ComponentbuilderEmail
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* The active recipient
|
||||||
|
*
|
||||||
|
* @var activeRecipient (array)
|
||||||
|
*/
|
||||||
|
public static $active = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuraiton object
|
* Configuraiton object
|
||||||
*
|
*
|
||||||
@ -49,6 +56,44 @@ abstract class ComponentbuilderEmail
|
|||||||
return self::$config;
|
return self::$config;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the global mailer object, only creating it if it doesn't already exist.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static function getMailerInstance()
|
||||||
|
{
|
||||||
|
if (!self::$mailer)
|
||||||
|
{
|
||||||
|
self::$mailer = self::createMailer();
|
||||||
|
}
|
||||||
|
|
||||||
|
return self::$mailer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check that a string looks like an email address.
|
||||||
|
* @param string $address The email address to check
|
||||||
|
* @param string|callable $patternselect A selector for the validation pattern to use :
|
||||||
|
* * `auto` Pick best pattern automatically;
|
||||||
|
* * `pcre8` Use the squiloople.com pattern, requires PCRE > 8.0, PHP >= 5.3.2, 5.2.14;
|
||||||
|
* * `pcre` Use old PCRE implementation;
|
||||||
|
* * `php` Use PHP built-in FILTER_VALIDATE_EMAIL;
|
||||||
|
* * `html5` Use the pattern given by the HTML5 spec for 'email' type form input elements.
|
||||||
|
* * `noregex` Don't use a regex: super fast, really dumb.
|
||||||
|
* Alternatively you may pass in a callable to inject your own validator, for example:
|
||||||
|
* PHPMailer::validateAddress('user@example.com', function($address) {
|
||||||
|
* return (strpos($address, '@') !== false);
|
||||||
|
* });
|
||||||
|
* You can also set the PHPMailer::$validator static to a callable, allowing built-in methods to use your validator.
|
||||||
|
* @return boolean
|
||||||
|
* @static
|
||||||
|
* @access public
|
||||||
|
*/
|
||||||
|
public static function validateAddress($address, $patternselect = null)
|
||||||
|
{
|
||||||
|
return self::getMailerInstance()->validateAddress($address, $patternselect);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a mailer object.
|
* Get a mailer object.
|
||||||
*
|
*
|
||||||
@ -276,14 +321,71 @@ abstract class ComponentbuilderEmail
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (method_exists('ComponentbuilderHelper','storeMessage'))
|
if (method_exists('ComponentbuilderHelper','storeMessage'))
|
||||||
|
{
|
||||||
|
// if we have active recipient details
|
||||||
|
if (isset(self::$active[$recipient]))
|
||||||
|
{
|
||||||
|
// store the massage if the method is set
|
||||||
|
ComponentbuilderHelper::storeMessage($sendmail, self::$active[$recipient], $subject, $body, $textonly, $mode, 'email');
|
||||||
|
// clear memory
|
||||||
|
unset(self::$active[$recipient]);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
// store the massage if the method is set
|
// store the massage if the method is set
|
||||||
ComponentbuilderHelper::storeMessage($sendmail, $recipient, $subject, $body, $textonly, $mode, 'email');
|
ComponentbuilderHelper::storeMessage($sendmail, $recipient, $subject, $body, $textonly, $mode, 'email');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $sendmail;
|
return $sendmail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set html text (in a row) and subject (as title) to a email table.
|
||||||
|
* do not use <p> instead use <br />
|
||||||
|
* in your html that you pass to this method
|
||||||
|
* since it is a table row it does not
|
||||||
|
* work well with paragraphs
|
||||||
|
*
|
||||||
|
* @return string on success
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static function setBasicBody($html, $subject)
|
||||||
|
{
|
||||||
|
$body = array();
|
||||||
|
$body[] = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">";
|
||||||
|
$body[] = "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
|
||||||
|
$body[] = "<head>";
|
||||||
|
$body[] = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />";
|
||||||
|
$body[] = "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"/>";
|
||||||
|
$body[] = "<title>" . $subject . "</title>";
|
||||||
|
$body[] = "<style type=\"text/css\">";
|
||||||
|
$body[] = "#outlook a {padding:0;}";
|
||||||
|
$body[] = ".ExternalClass {width:100%;}";
|
||||||
|
$body[] = ".ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} ";
|
||||||
|
$body[] = "p {margin: 0; padding: 0; font-size: 0px; line-height: 0px;} ";
|
||||||
|
$body[] = "table td {border-collapse: collapse;}";
|
||||||
|
$body[] = "table {border-collapse: collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }";
|
||||||
|
$body[] = "img {display: block; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic;}";
|
||||||
|
$body[] = "a img {border: none;}";
|
||||||
|
$body[] = "a {text-decoration: none; color: #000001;}";
|
||||||
|
$body[] = "a.phone {text-decoration: none; color: #000001 !important; pointer-events: auto; cursor: default;}";
|
||||||
|
$body[] = "span {font-size: 13px; line-height: 17px; font-family: monospace; color: #000001;}";
|
||||||
|
$body[] = "</style>";
|
||||||
|
$body[] = "<!--[if gte mso 9]>";
|
||||||
|
$body[] = "<style>";
|
||||||
|
$body[] = "/* Target Outlook 2007 and 2010 */";
|
||||||
|
$body[] = "</style>";
|
||||||
|
$body[] = "<![endif]-->";
|
||||||
|
$body[] = "</head>";
|
||||||
|
$body[] = "<body style=\"width:100%; margin:0; padding:0; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;\">";
|
||||||
|
$body[] = $html;
|
||||||
|
$body[] = "</body>";
|
||||||
|
$body[] = "</html>";
|
||||||
|
|
||||||
|
return implode("\n", $body);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set html text (in a row) and subject (as title) to a email table.
|
* Set html text (in a row) and subject (as title) to a email table.
|
||||||
* do not use <p> instead use <br />
|
* do not use <p> instead use <br />
|
||||||
|
@ -543,7 +543,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_ALIAS_BUILDER_TYPE="Alias Builder Type"
|
|||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ALIAS_BUILDER_TYPE_DESCRIPTION="How should the alias be build for this view"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ALIAS_BUILDER_TYPE_DESCRIPTION="How should the alias be build for this view"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ALIAS_BUILDER_TYPE_LABEL="Alias Builder Type"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ALIAS_BUILDER_TYPE_LABEL="Alias Builder Type"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ALNUM="ALNUM"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ALNUM="ALNUM"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ARCHIVE="ARCHIVE"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ARCHIVE="Archive"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ARMSCIIEIGHT_ARMSCIIEIGHT_ARMENIAN_MOST_SUITABLE_COLLATION_ARMSCIIEIGHT_GENERAL_CI="armscii8 - ARMSCII-8 Armenian (most suitable collation = armscii8_general_ci)"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ARMSCIIEIGHT_ARMSCIIEIGHT_ARMENIAN_MOST_SUITABLE_COLLATION_ARMSCIIEIGHT_GENERAL_CI="armscii8 - ARMSCII-8 Armenian (most suitable collation = armscii8_general_ci)"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ARMSCIIEIGHT_BIN_CHARSET_ARMSCIIEIGHT="armscii8_bin (charset = armscii8)"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ARMSCIIEIGHT_BIN_CHARSET_ARMSCIIEIGHT="armscii8_bin (charset = armscii8)"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ARMSCIIEIGHT_GENERAL_CI_CHARSET_ARMSCIIEIGHT="armscii8_general_ci (charset = armscii8)"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ARMSCIIEIGHT_GENERAL_CI_CHARSET_ARMSCIIEIGHT="armscii8_general_ci (charset = armscii8)"
|
||||||
@ -610,7 +610,9 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_COG="Cog"
|
|||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_COGS="Cogs"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_COGS="Cogs"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_COMMENT="Comment"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_COMMENT="Comment"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_COMMENTS_TWO="Comments 2"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_COMMENTS_TWO="Comments 2"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_COMPACT="COMPACT"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_COMPASS="Compass"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_COMPASS="Compass"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_COMPRESSED="COMPRESSED"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_CONTRACT="Contract"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_CONTRACT="Contract"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_CONTRACT_TWO="Contract 2"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_CONTRACT_TWO="Contract 2"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_CORECREATE="core.create"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_CORECREATE="core.create"
|
||||||
@ -685,6 +687,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_DESCRIPTION_LABEL="Description"
|
|||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_DETAILS="Details"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_DETAILS="Details"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_DOWNLOAD="Download"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_DOWNLOAD="Download"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_DUMP="Dump"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_DUMP="Dump"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_DYNAMIC="DYNAMIC"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_EDIT="Editing the Admin View"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_EDIT="Editing the Admin View"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ENTER="Enter"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ENTER="Enter"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ENVELOPE="Envelope"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ENVELOPE="Envelope"
|
||||||
@ -890,6 +893,9 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL_TABLE_COLLATE_LABEL="mySql Table Collation
|
|||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL_TABLE_ENGINE="Mysql Table Engine"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL_TABLE_ENGINE="Mysql Table Engine"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL_TABLE_ENGINE_DESCRIPTION="Select the mySql Table Engine you would like to use for this admin view's table."
|
COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL_TABLE_ENGINE_DESCRIPTION="Select the mySql Table Engine you would like to use for this admin view's table."
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL_TABLE_ENGINE_LABEL="mySql Table Engines"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL_TABLE_ENGINE_LABEL="mySql Table Engines"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL_TABLE_ROW_FORMAT="Mysql Table Row Format"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL_TABLE_ROW_FORMAT_DESCRIPTION="The row format of a table determines how its rows are physically stored, which in turn can affect the performance of queries and DML operations."
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_MYSQL_TABLE_ROW_FORMAT_LABEL="mySql Table Row Format"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_DESCRIPTION="Enter Name Here"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_DESCRIPTION="Enter Name Here"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_HINT="Name Here"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_HINT="Name Here"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LABEL="Name"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LABEL="Name"
|
||||||
@ -1074,6 +1080,7 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_RADIO_UNCHECKED="Radio Unchecked"
|
|||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_RAW="RAW"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_RAW="RAW"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_READONLY="readonly"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_READONLY="readonly"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_READWRITE="read/write"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_READWRITE="read/write"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_REDUNDANT="REDUNDANT"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_REMOVE="Remove"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_REMOVE="Remove"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_REPLY="Reply"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_REPLY="Reply"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_RUN_EXPANSION_BUTTON_ACCESS="Admin View Run Expansion Button Access"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_RUN_EXPANSION_BUTTON_ACCESS="Admin View Run Expansion Button Access"
|
||||||
@ -3703,7 +3710,7 @@ COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_DESCRIPTION="<div c
|
|||||||
<div id='usedin-c' style='display:none;'><h2>Admin Views</h2><div id='area-c'></div></div>
|
<div id='usedin-c' style='display:none;'><h2>Admin Views</h2><div id='area-c'></div></div>
|
||||||
<div id='usedin-d' style='display:none;'><h2>Admin Fields Relations</h2><div id='area-d'></div></div>
|
<div id='usedin-d' style='display:none;'><h2>Admin Fields Relations</h2><div id='area-d'></div></div>
|
||||||
<div id='usedin-e' style='display:none;'><h2>Custom Admin Views</h2><div id='area-e'></div></div>
|
<div id='usedin-e' style='display:none;'><h2>Custom Admin Views</h2><div id='area-e'></div></div>
|
||||||
<div id='usedin-f' style='display:none;'><h2>Site Views</h2><div id='area-r'></div></div>
|
<div id='usedin-f' style='display:none;'><h2>Site Views</h2><div id='area-f'></div></div>
|
||||||
<div id='usedin-g' style='display:none;'><h2>Fields</h2><div id='area-g'></div></div>
|
<div id='usedin-g' style='display:none;'><h2>Fields</h2><div id='area-g'></div></div>
|
||||||
<div id='usedin-h' style='display:none;'><h2>Fieldtypes</h2><div id='area-h'></div></div>
|
<div id='usedin-h' style='display:none;'><h2>Fieldtypes</h2><div id='area-h'></div></div>
|
||||||
<div id='usedin-i' style='display:none;'><h2>Dynamic Gets</h2><div id='area-i'></div></div>
|
<div id='usedin-i' style='display:none;'><h2>Dynamic Gets</h2><div id='area-i'></div></div>
|
||||||
@ -4066,6 +4073,9 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_SAVE_WARNING="Alias already existed so a number
|
|||||||
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_DESCRIPTION="Fields to be selected from table."
|
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_DESCRIPTION="Fields to be selected from table."
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_HINT="b.field AS field"
|
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_HINT="b.field AS field"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_LABEL="Selection"
|
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECTION_LABEL="Selection"
|
||||||
|
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECT_ALL="Select All"
|
||||||
|
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECT_ALL_DESCRIPTION="Should all the fields be selected, even those newly added at a later stage."
|
||||||
|
COM_COMPONENTBUILDER_DYNAMIC_GET_SELECT_ALL_LABEL="Select All"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GET_SINGLE="Single"
|
COM_COMPONENTBUILDER_DYNAMIC_GET_SINGLE="Single"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GET_SS="ss"
|
COM_COMPONENTBUILDER_DYNAMIC_GET_SS="ss"
|
||||||
COM_COMPONENTBUILDER_DYNAMIC_GET_STATE="State"
|
COM_COMPONENTBUILDER_DYNAMIC_GET_STATE="State"
|
||||||
@ -4324,6 +4334,7 @@ COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEW_FOOTER_LABEL="Add JavaScript (vie
|
|||||||
COM_COMPONENTBUILDER_FIELD_BASESIXTY_FOUR="base64"
|
COM_COMPONENTBUILDER_FIELD_BASESIXTY_FOUR="base64"
|
||||||
COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALDBKEY="Basic Encryption (local-DB-key)"
|
COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALDBKEY="Basic Encryption (local-DB-key)"
|
||||||
COM_COMPONENTBUILDER_FIELD_BIGINT="BIGINT"
|
COM_COMPONENTBUILDER_FIELD_BIGINT="BIGINT"
|
||||||
|
COM_COMPONENTBUILDER_FIELD_BLOB="BLOB"
|
||||||
COM_COMPONENTBUILDER_FIELD_BSB_NOT_FOUND_IN_LOCAL_DATABASE_TABLE_S_SO_IMPORTED_OF_ITS_VALUES_FAILED_PLEASE_UPDATE_YOUR_JCB_INSTALL_AND_TRY_AGAIN="Field <b>%s</b> not found in local database table (%s) so imported of its values failed, please update your JCB install and try again."
|
COM_COMPONENTBUILDER_FIELD_BSB_NOT_FOUND_IN_LOCAL_DATABASE_TABLE_S_SO_IMPORTED_OF_ITS_VALUES_FAILED_PLEASE_UPDATE_YOUR_JCB_INSTALL_AND_TRY_AGAIN="Field <b>%s</b> not found in local database table (%s) so imported of its values failed, please update your JCB install and try again."
|
||||||
COM_COMPONENTBUILDER_FIELD_CATID_DESCRIPTION="select one of the following categories"
|
COM_COMPONENTBUILDER_FIELD_CATID_DESCRIPTION="select one of the following categories"
|
||||||
COM_COMPONENTBUILDER_FIELD_CATID_LABEL="Category"
|
COM_COMPONENTBUILDER_FIELD_CATID_LABEL="Category"
|
||||||
@ -4386,7 +4397,9 @@ COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_DESCRIPTION="Add JavaScript fo
|
|||||||
COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL="Javascript (edit view footer)"
|
COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL="Javascript (edit view footer)"
|
||||||
COM_COMPONENTBUILDER_FIELD_JSON="JSON"
|
COM_COMPONENTBUILDER_FIELD_JSON="JSON"
|
||||||
COM_COMPONENTBUILDER_FIELD_KEY="KEY"
|
COM_COMPONENTBUILDER_FIELD_KEY="KEY"
|
||||||
|
COM_COMPONENTBUILDER_FIELD_LONGBLOB="LONGBLOB"
|
||||||
COM_COMPONENTBUILDER_FIELD_LONGTEXT="LONGTEXT"
|
COM_COMPONENTBUILDER_FIELD_LONGTEXT="LONGTEXT"
|
||||||
|
COM_COMPONENTBUILDER_FIELD_MEDIUMBLOB="MEDIUMBLOB"
|
||||||
COM_COMPONENTBUILDER_FIELD_MEDIUMTEXT="MEDIUMTEXT"
|
COM_COMPONENTBUILDER_FIELD_MEDIUMTEXT="MEDIUMTEXT"
|
||||||
COM_COMPONENTBUILDER_FIELD_MEDIUM_ENCRYPTION_LOCALFILEKEY="Medium Encryption (local-file-key)"
|
COM_COMPONENTBUILDER_FIELD_MEDIUM_ENCRYPTION_LOCALFILEKEY="Medium Encryption (local-file-key)"
|
||||||
COM_COMPONENTBUILDER_FIELD_MODIFIED_BY_DESC="The last user that modified this Field."
|
COM_COMPONENTBUILDER_FIELD_MODIFIED_BY_DESC="The last user that modified this Field."
|
||||||
@ -4526,6 +4539,7 @@ COM_COMPONENTBUILDER_FIELD_STORE_LABEL="Store Method"
|
|||||||
COM_COMPONENTBUILDER_FIELD_TEN="10"
|
COM_COMPONENTBUILDER_FIELD_TEN="10"
|
||||||
COM_COMPONENTBUILDER_FIELD_TEXT="TEXT"
|
COM_COMPONENTBUILDER_FIELD_TEXT="TEXT"
|
||||||
COM_COMPONENTBUILDER_FIELD_TIME="TIME"
|
COM_COMPONENTBUILDER_FIELD_TIME="TIME"
|
||||||
|
COM_COMPONENTBUILDER_FIELD_TINYBLOB="TINYBLOB"
|
||||||
COM_COMPONENTBUILDER_FIELD_TINYINT="TINYINT"
|
COM_COMPONENTBUILDER_FIELD_TINYINT="TINYINT"
|
||||||
COM_COMPONENTBUILDER_FIELD_TWO_HUNDRED_AND_FIFTY_FIVE="255"
|
COM_COMPONENTBUILDER_FIELD_TWO_HUNDRED_AND_FIFTY_FIVE="255"
|
||||||
COM_COMPONENTBUILDER_FIELD_TWO_THOUSAND_AND_FORTY_EIGHT="2048"
|
COM_COMPONENTBUILDER_FIELD_TWO_THOUSAND_AND_FORTY_EIGHT="2048"
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'admin_view'
|
'admin_view'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'tabs'
|
'tabs'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'admin_view'
|
'admin_view'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'addfields'
|
'addfields'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'admin_view'
|
'admin_view'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'addconditions'
|
'addconditions'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'admin_view'
|
'admin_view'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'addrelations'
|
'addrelations'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'css_views'
|
'css_views'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'php_model_list'
|
'php_model_list'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -27,16 +27,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'php_import_ext'
|
'php_import_ext'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'system_name'
|
'system_name'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'note_linked_to_notice'
|
'note_linked_to_notice'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -22,20 +22,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'not_required'
|
'not_required'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'note_create_edit_display'
|
'note_create_edit_display'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -24,20 +24,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -20,20 +20,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -25,16 +25,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'javascript_views_footer'
|
'javascript_views_footer'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'sql'
|
'sql'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,6 +18,7 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'mysql_table_engine',
|
'mysql_table_engine',
|
||||||
'mysql_table_charset',
|
'mysql_table_charset',
|
||||||
'mysql_table_collate',
|
'mysql_table_collate',
|
||||||
|
'mysql_table_row_format',
|
||||||
'add_sql',
|
'add_sql',
|
||||||
'source',
|
'source',
|
||||||
'addtables'
|
'addtables'
|
||||||
@ -25,20 +26,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -54,16 +54,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'php_document'
|
'php_document'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -24,16 +24,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'addlinked_views'
|
'addlinked_views'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'joomla_component'
|
'joomla_component'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'addadmin_views'
|
'addadmin_views'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'joomla_component'
|
'joomla_component'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'addconfig'
|
'addconfig'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'joomla_component'
|
'joomla_component'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'addcustommenus'
|
'addcustommenus'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'joomla_component'
|
'joomla_component'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'addcustom_admin_views'
|
'addcustom_admin_views'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'joomla_component'
|
'joomla_component'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'dashboard_tab'
|
'dashboard_tab'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -22,16 +22,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'note_constant_paths'
|
'note_constant_paths'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'joomla_component'
|
'joomla_component'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,16 +21,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'addfolders'
|
'addfolders'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'joomla_component'
|
'joomla_component'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'sql_tweak'
|
'sql_tweak'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'joomla_component'
|
'joomla_component'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'addsite_views'
|
'addsite_views'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -24,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
$app = JFactory::getApplication();
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = $displayData->get('fields') ?: array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
@ -26,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'joomla_component'
|
'joomla_component'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'version_update'
|
'version_update'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,16 +19,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'php_model'
|
'php_model'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,20 +21,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,14 +14,19 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'system_name',
|
'system_name',
|
||||||
'context'
|
'context'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'default'
|
'default'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,20 +25,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -23,20 +23,10 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
foreach ($fields as $field)
|
?>
|
||||||
{
|
<?php foreach($fields as $field): ?>
|
||||||
$field = is_array($field) ? $field : array($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
foreach ($field as $f)
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
{
|
<?php endif; ?>
|
||||||
if ($form->getField($f))
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
{
|
<?php endforeach; ?>
|
||||||
if (in_array($f, $hiddenFields))
|
|
||||||
{
|
|
||||||
$form->setFieldAttribute($f, 'type', 'hidden');
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $form->renderField($f);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -14,13 +14,18 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
$form = $displayData->getForm();
|
$form = $displayData->getForm();
|
||||||
|
|
||||||
$fields = array(
|
$fields = $displayData->get('fields') ?: array(
|
||||||
'not_required'
|
'not_required'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-inline form-inline-header">
|
<div class="form-inline form-inline-header">
|
||||||
<?php foreach($fields as $field){
|
<?php foreach($fields as $field): ?>
|
||||||
echo $form->renderField($field);
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
} ?>
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -25,16 +25,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'css'
|
'css'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -18,16 +18,14 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'note_linked_to_notice'
|
'note_linked_to_notice'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$hiddenFields = $displayData->get('hidden_fields') ?: array();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="form-vertical">
|
<div class="form-vertical">
|
||||||
<?php foreach($fields as $field): ?>
|
<?php foreach($fields as $field): ?>
|
||||||
<div class="control-group">
|
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||||
<div class="control-label">
|
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||||
<?php echo $form->getLabel($field); ?>
|
<?php endif; ?>
|
||||||
</div>
|
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||||
<div class="controls">
|
|
||||||
<?php echo $form->getInput($field); ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user